* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Roboto', sans-serif;
  scroll-behavior: smooth;
  background-color: #f5f5f5;
  color: #333;
  line-height: 1.8;
  font-size: 20px;
}

header img {
  width: 100%;
  height: auto;
  display: block;
}

.tab-container {
  background-color: #004b80ed;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.tabs-left {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-left: auto; /* Este es el cambio para alinear a la derecha */
}

.tab-container button {
  background-color: #bb9336;
  border: none;
  padding: 10px 18px;
  border-radius: 20px;
  font-size: 16px;
  color: #fff;
  cursor: pointer;
}

.tab-container button:hover,
.tab-container button.active {
  background-color: #8b9095;
}

.boton-inicio {
  background-color: #9f1010;
  color: white;
  padding: 10px 18px;
  border-radius: 20px;
  font-size: 16px;
  text-decoration: none;
  font-weight: bold;
}

.boton-inicio:hover {
  background-color: #8b9095;
}




.tab-content {
  display: none;
  padding: 40px 20px;
}

.tab-content.active {
  display: block;
}

.content-wrapper {
  max-width: 1000px;
  margin: auto;
}

h2 {
  color: #af7613;
  font-weight: bold;
  margin-bottom: 16px;
  font-weight: 600;
  position: relative;
  padding-bottom: 8px;
}

h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 67vw;
  height: 2px;
  background-color: #2874A6;
  transform: translateX(-20px);
}

.profesor-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  background: #fff;
  padding: 30px;
  box-shadow: 0 4px 12px #74a9d8d9;
  margin: 25px 0;
  border-radius: 10px;
}

.profesor-img {
  flex: 1;
  min-width: 350px;
  text-align: center;
}






.profesor-img img {
  width: 100%;
  max-width: 450px;
  border: 4px solid #dceefc;
  cursor: pointer;
}

.profesor-datos {
  flex: 2;
}

.profe {
  font-weight: bold;
  font-size: 26px;
  color: #004b80;
  margin-bottom: 8px;
}

.boton-descarga {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 18px;
  background-color: #2874A6;
  color: white;
  border-radius: 25px;
  text-decoration: none;
  font-size: 14px;
}

.documentos-curso {
  background: #f9fbff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 12px #cce3f9;
  margin: 20px 0;
}

.documentos-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.documento {
  width: 170px;
  background: #fff;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  text-decoration: none;
  color: #333;
}

.documento img {
  width: 40px;
  height: 40px;
  margin-bottom: 8px;
}

.galeria {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  padding: 20px;
}

.galeria img {
  width: 100%;
  border-radius: 8px;
  border: 2px solid #dceefc;
  cursor: pointer;
}

.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80%;
  border-radius: 10px;
}

.close {
  position: absolute;
  top: 30px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.hamburger div {
  width: 25px;
  height: 3px;
  background-color: white;
}

@media (max-width: 768px) {
  .tab-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .tabs-left {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 10px;
    margin-left: 0; /* En móviles, reiniciamos el margen izquierdo */
  }

  .tabs-left.show {
    display: flex;
  }

  .boton-inicio {
    margin-top: 10px;
    width: 100%;
    text-align: center;
  }

  .hamburger {
    display: flex;
    margin-left: auto;
  }
}

/* FOOTER ESTILOS */
.footer {
  background-color: #004b80;
  color: #fff;
  padding: 40px 20px;
  font-size: 15px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: auto;
  gap: 30px;
}

.footer-column {
  flex: 1;
  min-width: 250px;
}

.footer-logo {
  max-width: 160px;
  height: auto;
}

.footer-column h4 {
  font-size: 16px;
  margin-bottom: 12px;
  text-align: center;
  color: #ffda85;
}

.footer-column p,
.footer-column a {
  margin: 6px 0;
  color: #fff;
  text-decoration: none;
}

.footer-column a:hover {
  color: #ffd700;
  text-decoration: underline;
}

.social-icons a {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
  justify-content: center;
}

.social-icons i {
  font-size: 18px;
  color: #ffffff;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  padding-top: 15px;
  border-top: 1px solid #ffffff33;
  font-size: 13px;
  color: #cccccc;
}

@media (max-width: 768px) {

body {
    
font-size: 18px;
}


/*descarga de material del curso, ajustes para  visualización en disp. móvil*/

.documento {
  display: flex;
  padding: 10px;
  text-align: center;
  color: #333;
  margin: auto;
   }

.documentos-curso{
  box-shadow: none;
  }


.galeria {
  display: none;
  }

.nombre_galeria {
  display: none;
}

.prueba{

  text-align: center;
}

.correo {

  display: none;
}

.boton-descarga {
display: flex;
justify-content: center;
    background-color: #9f1010;

}

.profe{

  text-align: center;
}

.profesor-img {
  padding-right: 10px;
  text-align: center;
  min-width: 300px;

}


.content-wrapper h2 {
  text-align: center;
}

.footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /**/


  .footer-logo {
    margin-bottom: 15px;
  }
}



@media (max-width: 360px) {


.profesor-img {
  padding-right: 0px;
  text-align: center;
  min-width: 280px;

}


.profesor-container {
        
    padding: 10px;
}
