/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/
/* Caja de Reseteo*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}
/*** Seccion Infromativa de cursos ***/


.section {
    height: 10vh;
  }
  
  .icon {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
  }
  
  .header {
    display: flex;
    align-items: center;
    padding-top: 5rem;
    background: linear-gradient(to bottom, #78003cb7 , #78003c69), url("../../img/cursos/curso-ipn/banner.png") no-repeat center center fixed;
    background-attachment: fixed; 
    background-size: cover; 
    -moz-background-size: cover; 
    -webkit-background-size: cover; 
    background-repeat: no-repeat; 
    background-position: top center;
  }
  @media (max-width: 43.75em) {
    .header {
      text-align: center;
    }
  }
  .header .container__preparacion {
    max-width: 980px;
    width: 100%;
    margin: 0 auto;
  }
  .header__top {
    display: flex;
    align-items: center;
  }
  @media (max-width: 43.75em) {
    .header__top {
      flex-direction: column-reverse;
    }
  }
  .header__top .icon {
    width: 1.25em;
    height: 1.25em;
    margin-right: 0.625em;
  }
  .header__logo {
    width: 200px;
    margin-right: 2em;
    border-radius: 5px;
  }
  @media (max-width: 43.75em) {
    .header__logo {
      margin: 1.25em 0 0;
    }
  }
  
  .header__title__small, .header__link, .header__blurb {
    color: #fff;
    font-size: 1rem !important;
    margin: 3rem auto;
    left: 0;
  }
  .header__title {
    margin: 0 0 0.3611111111em;
    font-weight: normal;
    font-size: 3rem;
  }
  .header__title__small {
    display: block;
    font-size: 1.5rem;
  }
  .header__title__strong {
    font-weight: bold;
    color: white;
    font-size: 2rem;
  }
  .header__link {
    display: inline-flex;
    align-items: center;
    transition: 0.25s;
  }
  .header__link:hover, .header__link:focus {
    color: white;
    text-decoration: none;
  }
  .header__link:active {
    color: rgba(255, 255, 255, 0.4);
    transition: 0s;
  }
  .header__blurb {
    margin: 2rem ;
    font-size: 1.5rem;
    line-height: 1.5;
  }
  .header__tiles {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    margin-bottom: -62px;
    background: #E4E4E4;
    box-shadow: inset 0 0 0 1px white, 0 10px 30px rgba(0, 0, 0, 0.15);
  }
  .header__tile {
    flex: 1;
    height: 100%;
    position: relative;
    padding: 2em 1em;
    font-size: 1.25em;
    white-space: nowrap;
    color: #555;
    border: 1px solid transparent;
  }
  @media (max-width: 62em) {
    .header__tile {
      flex-basis: 50%;
    }
  }
  @media (max-width: 30em) {
    .header__tile {
      flex-basis: 100%;
    }
  }
  .header__tile::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: white;
    transition: 0.3s;
  }
  .header__tile > span {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    position: relative;
  }
  .header__tile:hover, .header__tile:focus {
    color: inherit;
    text-decoration: none;
    outline: none;
  }
  .header__tile:hover > span, .header__tile:focus > span {
    z-index: 1;
  }
  .header__tile:hover .icon, .header__tile:focus .icon {
    color: currentColor;
  }
  @media (min-width: 49.4375em) {
    .header__tile:hover::before, .header__tile:focus::before {
      z-index: 1;
      transform: scale(1.15);
      box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2);
    }
    .header__tile:active::before {
      transition: 0.1s;
      transform: scale(1.2);
    }
  }
  .header__tile .icon {
    width: 42px;
    height: 42px;
    margin-right: 0.75em;
    color: #ccc;
    transition: 0.3s;
  }

  /** Testimonial **/
  



  /*** Testimonials ***/
  .heading {
    position: relative;
}
.testimonials {
    background: url("https://images.unsplash.com/photo-1643671918145-b96f00897f56?q=80&w=1374&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D") center center no-repeat;
    background-size: cover;
    background-attachment: fixed;
    padding: 130px 0 150px;
    color: #ffffff;
    position: relative;
    width: 80%;
    margin: 0 auto;
    border-radius: 20px;
}
.testimonials:before {
    content: "";
    background: rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 100%;
    top: 0;
    position: absolute;
    left: 0;
    border-radius: 20px;
}
.testimonials .heading h2 {
    font-size: 25px;
    font-weight: 700;
    color: #ffffff;
}

.testimonials .heading h2 span {
    color:  var(--color-terciario);
}

.testimonials p {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.7;
    color: #d1e5e7;
    margin: 20px 0;
    padding: 0;
}

/* Image */
.testimonials .carousel-inner .carousel-item .team {
    width: 100px;
    height: 100px;
    border: 2px solid  var(--color-terciario);
    border-radius: 100%;
    padding: 5px;
    margin: 50px 0 15px;
}

.testimonials .carousel-inner .carousel-item h3 {
    font-size: 20px;
    color: #ffffff;
    font-weight: 600;
}

.testimonials .carousel-inner .carousel-item h4 {
    font-size: 14px;
    font-weight: 300;
    color: #e2e1e1;
    margin-bottom: 20px;
}

.testimonials .carousel-indicators {
    bottom: -30px;
}

.testimonials .carousel-indicators li {
    background-color: #b8b7b7;
    border-radius: 50px !important;
    height: 18px;
    width: 18px;
}

.testimonials .carousel-indicators .active {
    background-color: var(--color-terciario);
}

.testimonials .control span {
    cursor: pointer;
}

.testimonials .icon {
    height: 40px;
    width: 40px;
    background-size: 100%, 100%;
    border-radius: 50%;
    font-size: 30px;
    background-image: none;
    color: #ffffff;
}






/*** Info cursos ***/

.subtitulo {
  font-size: 1.2em;
  margin-top: 10px;
}

.contenedor__mas__info{
  display: flex;
  flex-wrap: wrap;
  padding: 2rem;
  gap: 20px;
  max-width: 1100px;
  width: 90%;
  margin: 0 auto;
  background-color: #fff;
  background: linear-gradient(to bottom, #78003c , #202c566b), url('https://www.liderempresarial.com/wp-content/uploads/2023/07/IPN-admision-2024.webp') #fff center / cover no-repeat scroll;
  border: 2px solid #78003c;
  border-radius: 20px;
  justify-content: space-evenly;
}



h2 {
  color: var(--color-terciario);
  margin-bottom: 15px;
}

.contenedor__mas__info ul {
  list-style-type: disc;
  padding-left: 20px;
  margin-bottom: 20px;
}

.contenedor__mas__info li{
  color: var(--color-letras-contenido) !important;
  padding: 7px;
}
.pregunta {
  background-color: var(--color-ipn);
  padding: 20px;
  border-left: 5px solid var(--color-terciario);
  border-right: 5px solid var(--color-terciario);
  border-radius: 50px;
  color: var(--color-blanco);
  transition: ease-in .2s;
}
.pregunta:hover {
  cursor: pointer;
  transition: ease-in .2s;
  transform: scale(1.1);
  background-color: var(--color-terciario);
  padding: 20px;
  border-left: 5px solid var(--color-ipn);
  border-right: 5px solid var(--color-principal);
  border-radius: 50px;
  color: var(--color-blanco);
}


/* Responsive */
@media (max-width: 768px) {
  .contenedor {
    flex-direction: column;
  }

  section {
    flex: 1 1 100%;
  }
}




.banner__oferta {
  background-color: #fffde7;
  border: 3px solid #78003c;
  border-radius: 10px;
  max-width: 1100px;
  width: 95%;
  margin: 40px auto;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  background: linear-gradient(to bottom, #00fbff , #202c566b), url('../../img/cursos/curso-ipn/banner.png') #fff center / cover no-repeat scroll;
}

.contenido {
  text-align: center;
}

h2 {
  font-size: 1.8em;
  color: var(--color-letras-contenido);
  margin-bottom: 20px;
}

.codigo {
  background-color: var(--color-ipn);
  padding: 4px 8px;
  border-radius: 5px;
  font-weight: bold;
}

.precios {
  margin: 15px 0;
  font-size: 1.5em;
}

.precio-original {
  text-decoration: line-through;
  color: var(--color-fail);
  font-weight: 700;
  margin-right: 10px;
}

.precio-descuento {
  color: var(--color-exito);
  font-weight: bold;
}

.descripcion {
  font-size: 1.1em;
  margin: 20px 0;
  color: var(--color-blanco);
}

.boton {
  display: inline-block;
  background-color: var(--color-terciario);
  color: var(--color-letras-contenido);
  padding: 12px 24px;
  font-size: 1em;
  font-weight: bold;
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.boton:hover {
  background-color: var(--color-principal);
  color: var(--color-letras-contenido);
}

/* Responsive */
@media (max-width: 600px) {
  h2 {
    font-size: 1.4em;
  }

  .precios {
    font-size: 1.2em;
  }

  .descripcion {
    font-size: 1em;
  }

  .boton {
    width: 100%;
    padding: 14px;
  }
}



/* Grid cursos */
:root {
  --color-acento: #1885c2;
  --color-fondo: #f9f9f9;
  --color-texto: #333;
  --color-tarjeta: #ffffff;
}

.container__cursos {
  max-width: 1100px;
  margin: auto;
  padding: 1rem;
}

.section__cursos {
  margin-bottom: 2rem;
}

.section__cursos h2 {
  color: var(--color-acento);
  margin-bottom: 0.5rem;
}

.grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.card__cursos__preparacion {
  background-color: var(--color-tarjeta);
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  padding: 1rem;
  flex: 1 1 250px;
  transition:  ease-in .2s;
  border: var(--color-ipn) solid 2px;
  background: linear-gradient(to bottom, #202c5600 , #202c5630), url('../../img/cursos/curso-ipn/03.png') #fff center / cover no-repeat scroll;
}


.card__cursos__preparacion:hover {
  transform:scale(1.05);
  cursor: pointer;
  transition:  ease-in .2s;
}

.card__cursos__preparacion h3 {
  margin-top: 0;
  font-size: 1.1rem;
  color: var(--color-acento);
}

@media (max-width: 600px) {
  .card__cursos__preparacion {
    background-color: var(--color-tarjeta);
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    padding: 1rem;
    flex: 1 1 50px;
  }
  .grid {
    flex-direction: column;
  }
}


/* Estilo para el contenedor */
.contenedor__lista {
  width: 95%;
  max-width: 450px;
  margin: 0 auto;
  padding: 15px;
  border: 2px solid transparent;
  border-radius: 8px;
  /*background-color: #f9f9f9;*/
}

/* Estilo para la lista */
.contenedor__lista ul {
  list-style-type: none; /* Quita los puntos */
  padding: 0;
}

/* Estilo para cada elemento */
.contenedor__lista ul li {
  background-color: var(--color-ipn) !important;
  color: #f9f9f9 !important;
  margin: 1rem 0;
  padding: 10px;
  border-radius: 5px;
  transition: background-color 0.3s;
}

/* Efecto hover */
.contenedor__lista ul li:hover {
  background-color: #c0c0c0;
  cursor: pointer;
}


/* Banner horario */


.banner__horario {
  background: linear-gradient(135deg, #78003c, #5c0a33) !important;
  color: #fff;
  padding: 20px;
  text-align: center;
  max-width: 1100px;
  width: 95%;
  margin: 2rem auto;
  border-radius: 20px;
  border: solid var(--color-terciario);
}

.banner__horario h1 {
  font-size: 2rem;
  margin-bottom: 15px;
  font-weight: bold;
}

.horarios {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.horario {
  background: rgba(255, 255, 255, 0.1);
  padding: 15px 25px;
  border-radius: 10px;
  min-width: 250px;
  transition: transform 0.3s ease;
}

.horario:hover {
  transform: scale(1.05);
}

.horario span {
  font-size: 1.5rem;
  margin-right: 10px;
}

.horario p {
  margin: 0;
  font-size: 1rem;
}

/* Responsive */
@media (max-width: 600px) {
  .banner__horario h1 {
    font-size: 1.5rem;
  }
  .horarios {
    flex-direction: column;
    align-items: center;
  }
  .horario {
    width: 100%;
    max-width: 300px;
  }
}












/* Contenedor del Texto Descriptivo */

.texto-descriptivo {
  margin: 1.5rem auto;
}

.texto-descriptivo h1{
 font-size: 2rem !important;
 color: var(--color-ipn) !important;
}


.grid-imagenes {
  margin: 0 auto;
}

.texto-descriptivo {
  text-align: center;
  max-width: 800px;
  margin-bottom: 40px;
}

.texto-descriptivo h1 {
  font-size: 2.5rem;
  color: #2c3e50;
  margin-bottom: 10px;
}

.texto-descriptivo h3 {
  font-size: 2.5rem;
  color: #2c3e50;
  margin-bottom: 10px;
}

.texto-descriptivo p {
  font-size: 1.1rem;
  color: #666;
  line-height: 1.6;
}

/* Contenedor del Grid Centrado */
.grid-imagenes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  width: 100%;
  max-width: 1000px; /* Ancho máximo contenido */
  justify-content: center;
}

/* Estilos de las Tarjetas/Imágenes */
.grid-item1 {
  margin: 1rem;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #78003c !important;
  aspect-ratio: 4 / 3; 
  cursor: pointer; /* Cambia el cursor para indicar que es cliqueable */
}

.texto-descriptivo .grid-item1 img{
  margin: 0 auto;
  width: 250px !important;
  height: 250% !important;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

/* Efecto Hover */
.grid-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.grid-item:hover img {
  transform: scale(1.05);
}

/* --- ESTILOS DEL LIGHTBOX (IMAGEN GRANDE) --- */
.lightbox {
  display: none; /* Oculto por defecto */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9); /* Fondo oscuro translúcido */
  z-index: 1000;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Cuando el lightbox está activo */
.lightbox.active {
  display: flex;
  opacity: 1;
}

/* Imagen ampliada dentro del lightbox */
.lightbox-content {
  max-width: 85%;
  max-height: 85%;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.lightbox.active .lightbox-content {
  transform: scale(1); /* Efecto de suavizado al abrirse */
}

/* Botón de cerrar (X) */
.close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s;
  user-select: none;
}

.close-btn:hover {
  color: #bbb;
}