body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  color: #333;
  background-color: #fff;
}

a {
  text-decoration: none;
  color: inherit;
}



.logo {
  font-size: 20px;
  font-weight: bold;
  color: #111;
}

.nav a {
  margin: 0 15px;
  font-weight: 500;
  color: #444;
}

.btn-ingresar {
  background-color: #1e1e1e;
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 5px;
}

.hero {
  padding: 40px 20px;
  background-color: #f8f8f8;
  text-align: center;
}

.hero-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
}

.hero-content h2 {
  color: #e53935;
  margin-bottom: 15px;
}

.hero-content p {
  margin: 5px 0;
}

.btn-cta {
  display: inline-block;
  margin-top: 20px;
  background-color: #e53935;
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
}


/* Capa azul semitransparente */
.docente::before {
    content: "";
    position: absolute;
    top: 1470px;
    left: 0;
    width: 100%;
    height: 52.5%;
    background-color: rgba(0, 87, 168, 0.5);
    z-index: 1;
}

/* Asegurate que el contenido esté por encima de la capa */
.docente * {
    position: relative;
    z-index: 2;
}

.docente-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin-top: 30px;
  gap: 30px;
}

.docente-info {
  max-width: 400px;
  text-align: left;
}

.docente-btns {
  margin-top: 15px;
}

.btn-rojo {
  background-color: #e53935;
  color: white;
  border: none;
  padding: 8px 16px;
  margin-right: 10px;
  border-radius: 5px;
  transition: all ease .5s;
}
button.btn-rojo:hover {
    padding: 15px 40px;
    background-color: #fff;
    color: #e53935;
}
.btn-azul {
  background-color: #1e88e5;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 5px;
  transition: all ease .5s;
}
button.btn-azul:hover {
    padding: 13px 37px;
    background-color: #fff;
    color: #1e88e5;
}
.cursos {
  background-color: #f1f1f1;
  padding: 50px 20px;
  text-align: center;
}

.cursos-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

.curso-card {
  background: white;
  padding: 20px;
  border-radius: 10px;
  width: 250px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.footer {
  background-color: #222;
  color: white;
  padding: 30px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  text-align: center;
}
/* //////////////////////////////////////////////////////////////////////////*/
/* //////////////////////////////////////////////////////////////////////////*/
/*//////////////////////////////// ESTILOS NUEVOS ////////////////////////// */
/*///////////////////////////////////////////////////////////////////////////*/


/* ////////////////// ///////// HERO //////////////////////////////// */

body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #fff;
  color: #333;
}

.sobre-nosotros {
  display: flex;
  flex-wrap: wrap;
  padding: 40px 20px;
  max-width: 1200px;
  margin: auto;
  gap: 40px;
  align-items: center;
}

.imagenes {
    flex: 40%;
    display: grid
;
    grid-template-columns: 250px;
    grid-template-rows: 2fr 1fr;
    position: relative;
    width: 200px !important;
    justify-content: center;
}

.img1 {
    border-radius: 40px 40px 40px 40px;
    width: 350px;
    height: 272px;
    object-fit: cover;
    grid-column: 1;
    box-shadow: 10px 10px 21px rgba(0, 0, 0, 0.5);
}
.img2 {
    width: 173px;
    height: 170px;
    grid-column: 2 / 3;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 10px 10px 21px rgba(0, 0, 0, 0.5);
}


.img3 {
    border-radius: 0px 20px 20px 20px;
    width: 190px;
    height: 260px;
    object-fit: cover;
    grid-column: 2 / 2;
    box-shadow: 10px 10px 21px rgba(0, 0, 0, 0.5);
}

.etiqueta {
    position: absolute;
    bottom: 90px;
    left: 0;
    background-color: #0057A8;
    color: white;
    padding: 10px 15px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    width: calc(100% - 63px);
    height: 100px;
    font-size: 14px;
    font-weight: 700;
    text-align: right;
    border-radius: 30px 30px 30px 0px;
    grid-column: 1 / 2;
    box-shadow: 10px 10px 21px rgba(0, 0, 0, 0.5);
}
span.heroIconText {
    position: relative;
    right: 5px;
    font-size: 17px;
}
.etiqueta img {
    width: 70px;
    height: 70px;
    background-color: #0057a8;
    padding: 10px;
    border-radius: 100px;
    position: absolute;
    left: -20px;
    bottom: -30px;
}

.contenido {
  flex: 1 1 50%;
}

.subtitulo {
    color: #D32F2F;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 20px;
    text-decoration-line: underline;
}

.contenido h2 {
    color: #373737;
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 34px;
    font-weight: 900;
}

.descripcion {
  margin-bottom: 20px;
  font-size: 15px;
  line-height: 1.5;
}

.beneficios {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 25px;
}

.beneficio {
  display: flex;
  align-items: start;
  gap: 12px;
  font-size: 15px;
}

.icono.rojo {
    font-size: 20px;
    color: #D32F2F;
    line-height: 1;
    background-color: #D32F2Fdd;
    padding: 23px;
    border-radius: 230px;
}
.iconoHeroGroup{
    padding: 26px 23px !important;
}
.iconoHeroDocs {
    padding: 21px 23px !important;
}

.iconoHeroImgDocs {
    width: 42px;
    position: relative;
    left: 5px;
}
.iconoHeroImgGroup {
    width: 42px;
    position: relative;
}
.btn-ver-cursos {
  display: inline-block;
  padding: 10px 20px;
  background-color: #0057A8;
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: bold;
  font-size: 14px;
}

@media (max-width: 768px) {
  .sobre-nosotros {
    flex-direction: column;
    padding: 20px;
  }

  .etiqueta {
    position: static;
    margin-top: 20px;
  }
}


.verCursoHero {
    background-color: #0057A8;
    color: white;
    padding: 10px 15px;
    display: flex
;
    align-items: center;
    width: 180px;
    height: 50px;
    font-size: 14px;
    font-weight: 700;
    text-align: right;
    border-radius: 30px 30px 30px 0px;
    grid-column: 1 / 2;
    box-shadow: 10px 10px 21px rgba(0, 0, 0, 0.5);
    justify-self: center;
}
span.verCursoHeroSpan {
    position: relative;
    padding: 0px 20px;
    vertical-align: -webkit-baseline-middle;
    text-align: center;
}
.verCursoHeroImg {
    width: 38px;
    background-color: #fbebeb;
    padding: 7px;
    border-radius: 50px;
    vertical-align: -webkit-baseline-middle;
}

/* //////////////////// fin HERO ///////////////////////////////////// */




/*   ///////////// Seccion docente ////////// */

.docente {
    background-image: url(img/backgroundDocente.jpg);
    background-size: cover;
    background-position: center;
    height: 360px;
    background-position-y: 32%;
    padding: 0;
    position: relative;
    overflow: hidden;
    align-content: center;
}

.docente::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(0 81 157 / 60%); /* Azul semitransparente */
  z-index: 0;
}

.docente-card, .docente-info, .docente-img-wrapper, .docenteTitulo {
  position: relative;
  z-index: 2;
}





h3.docenteTitulo {
    z-index: 2;
    position: relative;
    color: #fff;
    top: 30px;
}

.docente-info {
    max-width: 400px;
    text-align: left;
    color: #fff;
    position: relative;
}

.btn-azul {
    background-color: #1e88e5;
    color: white;
    border: none;
    padding: 11px 24px;
    border-radius: 5px;
    font-size: 15px;
}

.btn-rojo {
    background-color: #c70000;
    color: white;
    border: none;
    padding: 12px 36px;
    margin-right: 10px;
    border-radius: 5px;
    font-size: 18px;
}

.docente-img-wrapper {
  position: relative;
  width: fit-content;
  max-width: 400px;
}

.fotoDocente {
  display: block;
  width: 100%;
  height: auto;
}

.icono.rojo {
    font-size: 20px;
    color: #D32F2F;
    line-height: 1;
    background-color: #c70000;
    padding: 23px;
    border-radius: 230px;
    position: relative;
    top: -14px;
}



.iconosRojos {
    background-color: white;
    color: #ff725e;
    clip-path: circle(30px at 45px 41px) !important;
    padding: 15px;
    font-size: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.beneficio p {
    font-weight: 900;
    color: #373737;
}
.docente-info {
    max-width: max-content;
    text-align: left;
    color: #fff;
    position: relative;
}

.docente-info {
    max-width: max-content;
    text-align: left;
    color: #fff;
    height: max-content;
    position: relative;
    top: 12px;
}
.docente-card {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 0;
    margin: 0;
    align-items: center;
}

img.fotoDocente {
    width: 296px;
    border-radius: 40px 40px 40px 40px;
    z-index: 2;
    position: relative;
    left: 0;
    object-fit: contain;
}
.docente-info p {
    width: 41rem !important;
}

/* fin docente */





/* modal estilo */

  /* Fondo del modal */
  .modal {
    display: none; /* Oculto por defecto */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: auto;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    padding: 40px 20px;
  }

  /* Contenedor del modal */
  .modal-contenido {
    background: #fff;
    border-radius: 15px;
    max-width: 400px;
    margin: auto;
    padding: 30px 25px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    position: relative;
    font-family: 'Segoe UI', sans-serif;
    animation: aparecer 0.4s ease-out;
  }
  @media (max-width: 768px) {

    .modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: auto;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    padding: 40px 0;
}
.modal-contenido {
    background: #fff;
    border-radius: 15px;
    max-width: 80%;
    margin: auto;
    padding: 30px 25px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    position: relative;
    font-family: 'Segoe UI', sans-serif;
    animation: aparecer 0.4s 
ease-out;
}
  }

  @keyframes aparecer {
    from {
      opacity: 0;
      transform: translateY(-20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Botón cerrar */
  .cerrar {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 26px;
    font-weight: bold;
    color: #777;
    cursor: pointer;
    transition: color 0.3s;
  }

  
  .cerrar:hover {
    color: #c70000;
  }

  /* Título */
  .modal-contenido h3 {
    margin-bottom: 25px;
    color: #30903a;
    font-size: 22px;
    text-align: center;
  }

  /* Inputs */
  .modal-contenido input[type="password"] {
    width: 95%;
    padding: 10px 12px;
    margin-top: 6px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    transition: border-color 0.3s;
    font-size: 15px;
  }

  .modal-contenido input[type="password"]:focus {
    border-color: #30903a;
    outline: none;
  }

  /* Etiquetas */
  .modal-contenido label {
    font-weight: bold;
    font-size: 14px;
    color: #444;
  }

  /* Botón */
  .modal-contenido button[type="submit"] {
    width: 100%;
    background-color: #30903a;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
  }

  .modal-contenido button[type="submit"]:hover {
    background-color: #256c2c;
  }
/* //////////////// */



/* /////////////////// RESEÑAS estilo ////////////////////////// */
.testimonial-container {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  padding: 20px;
  font-family: 'Segoe UI', sans-serif;
}

.testimonial-card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  padding: 20px;
  width: 45%;
}

.stars {
  color: #2f57eb;
  font-size: 20px;
  margin-bottom: 10px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
  margin-bottom: 10px;
}

.user-info img {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-text {
  font-size: 14px;
  color: #333;
  margin-bottom: 15px;
}

.reply-box {
  background: #f7f7f7;
  border-radius: 10px;
  padding: 10px;
}

.reply-text {
  font-size: 13px;
  color: #555;
  margin-top: 5px;
}


/* */
.testimonio-card {
      position: relative;
      background: white;
      border-radius: 12px;
      padding: 20px;
      margin: 20px auto;
      width: 100%;
      max-width: 400px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .insta-etiqueta {
      position: absolute;
      top: 0;
      left: 0;
      background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
      color: white;
      font-size: 12px;
      font-weight: bold;
      padding: 5px 10px;
      border-top-left-radius: 12px;
      border-bottom-right-radius: 12px;
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .alumno-etiqueta {
  position: absolute;
  top: 0;
  left: 0;
  background: #007BFF; /* Azul sobrio */
  color: white;
  font-size: 12px;
  font-weight: bold;
  padding: 5px 10px;
  border-top-left-radius: 12px;
  border-bottom-right-radius: 12px;
}
    .mensaje {
      font-size: 15px;
      color: #333;
      margin-bottom: 15px;
    }

    .autor {
      font-weight: bold;
      text-align: right;
      color: #555;
    }
    .titulosReseñas {
    text-align: center;
    font-size: 25px;
}
.carousel-track {
    display: flex
;
    gap: 50px;
    animation: scrollCarousel 30s linear infinite;
    width: max-content;
}
.testimonial-card, .testimonio-card {
    flex: 0 0 300px;
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    align-content: center;
}
.carousel {
    overflow: hidden;
    position: relative;
    width: 100%;
    max-width: 100% !important;
    margin: 0px !important;
    justify-self: anchor-center;
}
/* ////////////////////////////////////////////////////// */
 /*/////////////////////////////// CARROUSEL COMENTARIOS //////////////////////////*/
    .carousel {
  overflow: hidden;
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto 40px;
}

.carousel-track {
  display: flex;
  gap: 20px;
  animation: scrollCarousel 30s linear infinite;
  width: max-content;
}


.insta-etiqueta {
  position: absolute;
  top: 0;
  left: 0;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: white;
  font-size: 12px;
  font-weight: bold;
  padding: 5px 10px;
  border-top-left-radius: 10px;
  border-bottom-right-radius: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

@keyframes scrollCarousel {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
.carousel {
    overflow: hidden;
    position: relative;
    width: 100%;
    max-width: 91%;
    margin: 0 auto 40px;
}
 /* ////////////////////////////////// */

 /* responsive para Mobile */

  /* Ajustes responsive */
@media (max-width: 768px) {
  .sobre-nosotros {
    flex-direction: column;
    padding: 20px 10px;
    gap: 20px;
    text-align: center;
  }

  .imagenes {
    flex: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100% !important;
  }

  .imagenes img,
  .img1, .img2, .img3 {
    width: 90% !important;
    height: auto !important;
    max-width: 320px;
  }

  .etiqueta {
    position: static;
    margin: 15px auto 0 auto;
    width: 90%;
    height: auto;
    font-size: 13px;
    text-align: center;
    justify-content: center;
  }

  .contenido h2 {
    font-size: 22px;
    line-height: 1.3;
  }

  .subtitulo {
    font-size: 16px;
  }

  .descripcion,
  .beneficio p {
    font-size: 14px;
    text-align: center;
  }

  .beneficios {
    gap: 10px;
  }

  .beneficio {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .verCursoHero {
    width: 160px;
    height: auto;
    font-size: 13px;
    margin: 20px auto;
  }

  /* DOCENTE */
  .docente {
    height: auto;
    padding: 20px 10px;
  }

  .docente-card {
    flex-direction: column-reverse;
    align-items: center;
    gap: 20px;
  }

  .docente-info {
    max-width: 100%;
    text-align: center;
  }

  .docente-info p {
    width: 100% !important;
    font-size: 14px;
  }

  

  /* Testimonios */
  .carousel-track {
    gap: 0px;
  }

  .testimonio-card,
  .testimonial-card {
    max-width: 85%;
  }
}
@media (max-width: 768px) {
    
            h3.docenteTitulo {
        z-index: 2;
        position: relative;
        color: #fff;
        justify-self: center !important;
        width: 100% !important;
        top: -15px;
    }
}
@media (max-width: 768px) {
    .etiqueta {
        position: static;
        margin: 15px auto 0 auto;
        width: 50%;
        font-size: 13px;
        text-align: center;
        justify-content: center;
    }
    .etiqueta img {
    width: 50px !important;
    height: 40px;
    background-color: #e9d9d9;
    padding: 10px;
    border-radius: 100px;
    position: relative;
}
.docente-card {
    flex-direction: column-reverse;
    align-items: center;
    justify-content: center; /* asegura centrado */
    text-align: center;
  }

  .docente-img-wrapper {
    display: flex;
    justify-content: center; /* centra la foto */
    width: 100%;
  }
  img.fotoDocente {
    width: 80% !important;
    max-width: 280px;
    position: static;
    top: 0;
  }
  img.fotoDocente {
    width: 80% !important;
    max-width: 280px;
    position: static;
    top: 0;
    margin: 0 auto; /* centrado extra */
  }
img.fotoDocente {
        width: 80% !important;
        max-width: 280px;
        position: static;
        top: 0;
        justify-self: anchor-center;
    }
}
.carousel-track {
  display: flex;
  gap: 20px;
  animation: scrollCarousel 30s linear infinite;
  width: max-content;
  transition: transform 0.5s ease; /* para el salto suave */
}

/* En mobile desactivo la animación */
@media (max-width: 768px) {
  .carousel-track {
    animation: none; /* SIN animación continua */
    gap: 0;          /* mejor alineado en mobile */
  }
}


/* Cards normales */
.testimonio-card {
  flex: 0 0 300px;         /* ancho fijo */
  max-width: 300px;
  margin: 0 10px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 20px;
}

/* Track y contenedor */
.carousel {
  overflow: hidden;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.carousel-track {
  display: flex;
  transition: transform .5s ease;
}

/* En mobile: una card visible a la vez */
@media (max-width: 768px) {
  .testimonio-card {
    flex: 0 0 85%;     /* ocupa casi toda la pantalla */
    max-width: 85%;
  }
}

@media (max-width: 768px) {
  .testimonio-card,
  .testimonial-card {
    flex: 0 0 300px;   /* ancho fijo para que la altura no se estire */
    max-width: 300px;
    height: auto;      /* altura según contenido */
    margin-left: 15px;  
  }

  .carousel-track {
    align-items: flex-start;  /* evitar estirado por flex */
    gap: 12px;
    animation: none;          /* saltos en mobile */
  }
}



 /* ///////////////////// */
/* /////////////////// Perfil estilo ////////////////////////// */
.perfil {
    background-color: white;
    padding: 0px;
    max-width: 100vw;
    margin: 0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.acciones {
    display: flex
;
    flex-direction: column;
    margin-bottom: 0;
    font-size: 14px;
    width: max-content;
    position: relative;
    left: 6vw;
    top: 6vh;
}
.codigo {
    text-align: right;
    font-size: 14px;
    margin-top: -40px;
    margin-bottom: 20px;
    width: max-content;
    justify-self: end;
    position: relative;
    right: 6vw;
}
.datos img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: #ccc;
    object-fit: cover;
}
.materias-container {
    display: grid
;
    flex-wrap: wrap;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 40px;
    justify-items: anchor-center;
    padding: 0;
}
.fechaVencimiento{
  color: #c70000;
}
/* /////////////////////////////////////////////////////////////// */

/* //////////////////// TIENDA ESTILO //////////////////////////////// */
h2.nombreEnTienda {
    justify-self: end;
    position: relative;
    top: 10vh;
    right: 7vw;
}
.codigoEnTienda {
    justify-self: end;
    position: relative;
    top: 12vh;
    right: 7vw;
}
@media (max-width: 768px) {
    h1 {
        font-size: 2em;
        position: relative;
        top: -90px;
    }
}
/* //////////////////////////////////////////////////////////////////// */

/* ////////////////////////////// CARRITO ESTILO //////////////////////// */
.contenedorCarrito {
    background-color: #373737;
    width: 80vw;
    height: 40vh;
    justify-items: anchor-center;
    justify-self: center;
    border-radius: 20px;
    padding: 50px;
    margin: 50px;
    color: #fff;
}
/*///////////////////////////////////////////////////////////////////////// */




