/* 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, #1e264ebe , #335b96), url("../../img/banners/bannerCIBJ.jpg") 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 **/
  
  .cards-section {
    padding: 1rem;
  }
  
  .filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 1rem;
    justify-content: center;   /* 🔑 centra horizontalmente */
    align-items: center;       /* opcional: centra verticalmente si hay varias filas */
    text-align: center;        /* asegura que el texto dentro de los botones también quede centrado */
  }
  
  
  .filter-buttons button {
    padding: 0.5rem 1rem;
    border: none;
    background: #ddd;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s;
  }
  
  .filter-buttons button.active,
  .filter-buttons button:hover {
    background: #333;
    color: #fff;
  }
  
  .cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
  }
  
  .card {
    background: var(--color-secundario);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
  }
  
  .card:hover {
    transform: scale(1.03);
  }
  
  .card__media img {
    width: 100%;
    height: auto;
    display: block;
  }

  /* Color de tarjetas */

  .card__content {
    background-color: var(--color-secundario);
  }

  /*** 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, #202c56 , #202c566b), url('../../img/inicio/contenido/07.jpg') #fff center / cover no-repeat scroll;
  border: 2px solid #fbc02d;
  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-fail);
  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-principal);
  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: 2px solid #fbc02d;
  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, #202c56 , #202c566b), url('../../img/cursos/curso-unam/banner02.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-terciario);
  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;
  }
}


























:root{
    --bg: #0f1f1a;
    --bg-soft: #15251f;
    --text: #ffffff;
    --muted: #c8d5ce;
    --accent: #29a36b;
    --accent-contrast: #0c1b15;
  
    --light-bg: #ffffff;
    --light-surface: #f3f5f4;
    --light-text: #1b1f1e;
    --light-muted: #5b6a62;
    --light-accent: #1d6f4d;
  }
  
  * { box-sizing: border-box; }
  .cards-section img { 
    max-width: 100%; 
    display: block;
 }
  
 .cards-section {
    max-width: 980px;
    margin: 0 auto;
    padding: 1rem;
  }
  
  .cards-section h2{
    text-align: center;
    font-size: 1rem;
    margin: 0 0 0.75rem;
  }
  
  .cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
  }
  
  
  @media (min-width: 480px){
    .cards-grid{
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  .card{
    border-radius: 16px;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto 1fr;
    min-height: 340px;
    position: relative;
  }
  
  .card__media{
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
  }
  .card__media img{
    width: 100%;
    /*height: auto;*/
    height:450px;
    object-fit: cover;
    transform: scale(1.02);
  }
  
  .card__content{
    display: grid;
    gap: 0.75rem;
    padding: 1.2rem;
  }
  
  /* Variante oscura */
  .card--dark{
    background: linear-gradient(180deg, rgba(1, 68, 163, 0.4), rgb(1, 30, 92)), var(--bg);
    color: var(--color-blanco);
  }
  .card--dark .card__title{ color: var(--color-blanco); }
  
  .card--dark .card__action{
    background: var(--accent);
    color: var(--text);
    border: none;
  }
  
  /* Variante clara */
  .card--light{
    background: linear-gradient(180deg, rgba(243,245,244,0.65), rgba(255,255,255,1));
    color: var(--light-text);
    border: 1px solid #e3e7e5;
  }
  .card--light .card__title{ color: var(--color-blanco);; }
  
  .card__header{
    display: grid;
    gap: 0.25rem;
  }
  .card__name{
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 1rem;
    text-align: center;
    color: var(--color-blanco);
  }
  .card__title{
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0;
    color: var(--color-blanco);
  }
  
  .card__stats{
    display: flex;
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0.25rem 0 0.5rem;
  }
  .stat{
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
  }
  .stat__icon{
    display: inline-flex;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
  }
  .card--light .stat__icon{
    background: #e9eeeb;
  }
  
  .card__action{
    padding: 0.65rem 0.9rem;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
  }
  .card__action--light{
    background: #ffffff;
    color: var(--light-text);
    border: 1px solid #e3e7e5;
  }
  
  .card__action:focus-visible{
    outline: 3px solid #71d3a7;
    outline-offset: 2px;
  }
  .card__action:hover{
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  }
  .card--dark .card__action:hover{
    background: #22b076;
  }
  .card__action:active{
    transform: translateY(0);
    box-shadow: none;
  }
  
  @media (prefers-reduced-motion: reduce){
    .card__action{ transition: none; }
  }
  
  /* Pequeñas mejoras de contraste en dark */
  .card--dark .stat__icon{
    background: rgba(41,163,107,0.18);
  }
  
  /* Utilidad de lectura en pantallas pequeñas */
  @media (max-width: 360px){
    .card__name{ font-size: 1rem; }
    .card__title{ font-size: 0.9rem; }
  }
  