/*========================================
  RESET & GLOBAL
========================================*/
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  padding: 0;
  background-color: var(--blanco);
  color: var(--gris-oscuro);
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/*========================================
  PALETA DE COLORES BASADA EN LOGO
========================================*/
:root {
  --blanco:       #ffffff;
  --azul-marino:  #0b2545;
  --rojo-logo:    #b5121b;
  --amarillo-logo:#ffc800;
  --gris-claro:   #f5f5f5;
  --gris-oscuro:  #333333;
  --verde:  #4dd91f;

  /* NUEVO: acento turquesa elegante (para sustituir rojo en "Impacto") */
  --turquesa: #2DD4BF;
}

/*========================================
  TIPOGRAFÍA GLOBAL
========================================*/
h1, h2, h3 {
  font-family: 'Aileron', sans-serif;
  color: var(--azul-marino);
  margin-top: 0;
}
p { margin-bottom: 1rem; }

/*========================================
  ENCABEZADO / NAVBAR
========================================*/
header {
  background-color: var(--azul-marino);
  color: var(--blanco);
  padding: 0.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}
.logo img { height: 120px; transition: height 0.3s ease; }

#menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--blanco);
  font-size: 2rem;
  cursor: pointer;
}
nav { position: relative; }
nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  padding: 0;
  margin: 0;
  align-items: center;
}
nav a {
  color: var(--blanco);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  transition: background 0.3s ease, color 0.3s ease;
}
nav a:hover { background-color: var(--amarillo-logo); color: var(--azul-marino); }
nav a.active{ background-color: var(--amarillo-logo); color: var(--azul-marino); }

.cart-icon {
  position: relative;
  margin-left: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.cart-icon img {
  width: 80px;
  height: 80px;
  transition: width 0.3s ease, height 0.3s ease;
}
.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background-color: var(--rojo-logo);
  color: var(--blanco);
  font-size: 0.75rem;
  padding: 2px 5px;
  border-radius: 50%;
}

/*========================================
  FONDOS POR SECCIÓN (variable --bg-pos-y)
========================================*/
.section-bg{
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.section-bg::before{
  content:"";
  position:absolute;
  inset:0;
  background-image: var(--bg-img, none);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center var(--bg-pos-y, 50%);
  z-index: 0;
}
.section-bg::after{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(255,255,255,var(--overlay-alpha, 0.82));
  z-index: 1;
}
.section-bg > *{
  position: relative;
  z-index: 2;
}

/* Fondos específicos */
.bg-inicio     { --bg-img: url("../img/bg-inicio.jpg");     --bg-pos-y: 50%; --overlay-alpha: 0.65; }
.bg-cursos     { --bg-img: url("../img/bg-cursos.jpg");     --bg-pos-y: 50%; }
.bg-beneficios { --bg-img: url("../img/bg-beneficios.jpg"); --bg-pos-y: 50%; }
.bg-nosotros   { --bg-img: url("../img/bg-nosotros.jpg");   --bg-pos-y: 50%; }
.bg-opiniones  { --bg-img: url("../img/bg-opiniones.jpg");  --bg-pos-y: 50%; }
.bg-cta        { --bg-img: url("../img/bg-cta.jpg");        --bg-pos-y: 50%; }

/*========================================
  FADE ON SCROLL (3 configuraciones: distancia, duración, delay)
========================================*/
.fade{
  --fade-distance: 22px;
  --fade-duration: 720ms;
  --fade-delay: 0ms;

  opacity: 0;
  transform: translateY(var(--fade-distance));
  transition:
    opacity var(--fade-duration) ease,
    transform var(--fade-duration) ease;
  transition-delay: var(--fade-delay);
  will-change: opacity, transform;
}
.fade.is-visible{
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce){
  .fade{ opacity: 1 !important; transform: none !important; transition: none !important; }
}

/*========================================
  SECCIÓN HERO
========================================*/
.hero{
  text-align: center;
  padding: 4.5rem 2rem;
  border-bottom: 3px solid var(--amarillo-logo);
  background-color: var(--blanco);
}
.hero .hero-content{ color: var(--azul-marino); }
.hero h1 { font-size: 2.5rem; margin-bottom: 1rem; }
.contenido h2 { text-align: center; }
.hero p { font-size: 1.25rem; margin-bottom: 1.5rem; }

.cta-button {
  background-color: var(--rojo-logo);
  color: var(--blanco);
  border: none;
  padding: 0.8rem 1.75rem;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.cta-button:hover {
  background-color: var(--amarillo-logo);
  color: var(--azul-marino);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/*========================================
  SECCIONES DE CONTENIDO
========================================*/
.contenido {
  padding: 2rem;
  background-color: var(--blanco);
  margin: 1.5rem auto;
  max-width: 1000px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/*========================================
  BENEFICIOS (Tarjetas grandes + alternadas + encimadas)
========================================*/
.beneficios-stack{
  max-width: 1080px;
  margin: 1.2rem auto 0;
  padding: 10px 0 80px;
}

.beneficio-wrap{
  position: relative;
  padding-bottom: 140px; /* MÁS separación entre beneficios */
}

.beneficio-card{
  position: sticky;
  top: var(--sticky-top, 120px);
  z-index: var(--z, 1);

  display: flex;
  align-items: center;
  gap: 34px;

  background: rgba(255,255,255,0.92);
  border-radius: 26px;
  padding: 44px 44px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.08);
  border: 1px solid rgba(11,37,69,0.08);
  backdrop-filter: blur(6px);
}

.beneficio-card.is-reverse{
  flex-direction: row-reverse; /* alterna icono/texto */
}

.beneficio-icon{
  width: 160px;
  height: 160px;
  border-radius: 28px;
  background: rgba(245,245,245,0.95);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  box-shadow: inset 0 0 0 1px rgba(11,37,69,0.06);
}
.beneficio-icon img{
  width: 86px;
  height: 86px;
  object-fit: contain;
  opacity: 0.95;
}

.beneficio-content{
  flex: 1 1 auto;
  min-width: 0;
}
.beneficio-content h3{
  font-size: 2.15rem;
  margin: 0 0 10px;
  line-height: 1.1;
}
.beneficio-content p{
  margin: 0;
  font-size: 1.15rem;
  color: rgba(51,51,51,0.85);
  line-height: 1.55;
  max-width: 760px;
}

/*========================================
  SLIDER + FLIP CARD (CURSOS)
========================================*/
.slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 500px;
  height: 520px;
  margin: 1rem auto;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: height 0.3s ease;
}
.slides {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease;
}
.slide{
  width: 100%;
  flex-shrink: 0;
  height: 100%;
  display: flex;
  align-items: stretch;
  justify-content: center;
}
.slider .arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: background-color 0.2s ease, opacity 0.2s ease;
  z-index: 10;
}
.slider .arrow:hover { background-color: rgba(255, 255, 255, 1); }
.slider .arrow.prev { left: 10px; }
.slider .arrow.next { right: 10px; }
.slider .arrow svg { width: 16px; height: 16px; fill: var(--azul-marino); }

.slider.is-paused .arrow{
  opacity: 0.35;
  pointer-events: none;
}

.flip-card{
  width: 100%;
  height: 100%;
  perspective: 1200px;
}
.flip-inner{
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.7s ease;
  transform-style: preserve-3d;
}
.flip-inner.is-flipped{
  transform: rotateY(180deg);
}
.flip-front, .flip-back{
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 8px;
  overflow: hidden;
  background: var(--gris-claro);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.flip-front img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: var(--gris-claro);
  flex: 1 1 auto;
}
.btn-mas-info{
  margin: 12px auto 18px;
  width: fit-content;
  background: transparent;
  border: 2px solid var(--azul-marino);
  color: var(--azul-marino);
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.btn-mas-info:hover{
  background: var(--azul-marino);
  color: var(--blanco);
  transform: translateY(-1px);
}
.flip-back{
  transform: rotateY(180deg);
  padding: 20px;
  text-align: center;
  justify-content: center;
  background: var(--blanco);
  border: 2px solid rgba(11, 37, 69, 0.12);
}
.flip-back h3{
  margin: 0 0 10px;
  font-size: 1.2rem;
}
.flip-back p{
  margin: 0 0 16px;
  color: var(--gris-oscuro);
  font-size: 0.98rem;
  line-height: 1.45;
  max-width: 420px;
}
.btn-volver{
  background: var(--rojo-logo);
  color: var(--blanco);
  border: none;
  padding: 0.7rem 1.4rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease;
}
.btn-volver:hover{
  background: var(--amarillo-logo);
  color: var(--azul-marino);
  transform: translateY(-1px);
}

/*========================================
  OPINIONES (Slider tipo 3 tarjetas)
========================================*/
.opiniones-title{
  font-size: 2rem;
  margin-bottom: 1.2rem;
  text-align: center;
}

.testimonial-slider{
  position: relative;
  margin-top: 1rem;
}

.t-viewport{
  overflow: hidden;
  width: 100%;
}

.t-track{
  display: flex;
  gap: 22px;
  transition: transform 0.55s ease;
  will-change: transform;
  padding: 10px 6px 0;
}

.t-slide{
  flex: 0 0 calc((100% - 44px) / 3);
  min-width: 0;
}

.testimonial-card{
  background: rgba(255,255,255,0.92);
  border-radius: 14px;
  padding: 22px 20px 18px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
  min-height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.quote-badge{
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--azul-marino);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  box-shadow: 0 10px 18px rgba(11,37,69,0.18);
}
.quote-badge svg{
  width: 28px;
  height: 28px;
  fill: var(--blanco);
  opacity: 0.95;
}

.testimonial-text{
  font-style: italic;
  color: #3a3a3a;
  font-size: 1.03rem;
  line-height: 1.55;
  margin: 0 0 14px;
}

.testimonial-name{
  margin: 0;
  font-weight: 800;
  color: var(--azul-marino);
}

.testimonial-meta{
  margin: 4px 0 0;
  color: rgba(51,51,51,0.55);
  font-weight: 600;
  font-size: 0.92rem;
}

.t-arrow{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: rgba(255,255,255,0.90);
  box-shadow: 0 8px 18px rgba(0,0,0,0.12);
  display: grid;
  place-items: center;
  z-index: 5;
  transition: transform .15s ease, background .2s ease, opacity .2s ease;
}
.t-arrow:hover{
  background: rgba(255,255,255,1);
  transform: translateY(-50%) scale(1.03);
}
.t-arrow svg{
  width: 18px;
  height: 18px;
  fill: var(--azul-marino);
}
.t-prev{ left: -8px; }
.t-next{ right: -8px; }

.t-dots{
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 16px;
}
.t-dot{
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: none;
  background: rgba(11,37,69,0.20);
  cursor: pointer;
  transition: transform .15s ease, background .2s ease;
}
.t-dot.is-active{
  background: rgba(11,37,69,0.65);
  transform: scale(1.15);
}

/*========================================
  PIE DE PÁGINA
========================================*/
footer {
  background-color: var(--azul-marino);
  color: var(--blanco);
  text-align: center;
  padding: 2rem 1rem 1rem;
  margin-top: 2rem;
}
.redes-sociales a { margin: 0 10px; display: inline-block; transition: transform 0.3s, filter 0.3s; }
.redes-sociales img { width: 32px; height: 32px; }
.redes-sociales a:hover img { transform: scale(1.2); filter: brightness(1.2); }
footer p { margin: 0.5rem 0; font-size: 0.95rem; }

/*========================================
  WhatsApp flotante (ARREGLADO)
========================================*/
.wa-float{
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 99999;

  display: inline-flex;
  align-items: center;
  gap: 10px;

  text-decoration: none;
  user-select: none;
}

.wa-icon{
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #25D366;
  box-shadow: 0 14px 30px rgba(0,0,0,.18);
  transition: transform .18s ease, box-shadow .18s ease;
  flex: 0 0 auto;
}

.wa-float:hover .wa-icon{
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(0,0,0,.22);
}

.wa-bubble{
  max-width: 230px;
  background: #ffffff;
  color: var(--azul-marino);
  padding: 10px 12px;
  border-radius: 14px;
  box-shadow: 0 14px 30px rgba(0,0,0,.12);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.2;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  position: relative;
  border: 1px solid rgba(11,37,69,.10);
  flex: 0 1 auto;
}

.wa-bubble::after{
  content: "";
  position: absolute;
  left: -6px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: transparent #ffffff transparent transparent;
  filter: drop-shadow(-1px 0 0 rgba(11,37,69,.10));
}

.wa-float.is-open .wa-bubble{
  opacity: 1;
  transform: translateY(0);
}

/* ping */
.wa-ping{
  position: absolute;
  left: 28px;
  bottom: 28px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(37, 211, 102, .92);
  transform: translate(-50%, 50%);
  box-shadow: 0 0 0 0 rgba(37, 211, 102, .45);
  animation: waPing 1.6s infinite;
  pointer-events: none;
}

@keyframes waPing{
  0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, .45); }
  70%  { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/*========================================
  RESPONSIVE
========================================*/
@media (max-width: 900px){
  .t-slide{ flex: 0 0 calc((100% - 22px) / 2); }
}

@media (max-width: 820px){
  .beneficio-card{
    padding: 34px 26px;
    gap: 20px;
  }
  .beneficio-icon{
    width: 120px;
    height: 120px;
  }
  .beneficio-icon img{
    width: 68px;
    height: 68px;
  }
  .beneficio-content h3{
    font-size: 1.7rem;
  }
  .beneficio-content p{
    font-size: 1.05rem;
  }
}

@media (max-width: 768px) {
  header { padding: 0.5rem 1rem; position: relative; }
  .logo img { height: 80px; }

  header nav { position: static; width: 100%; }

  #menu-toggle {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    display: block;
  }

  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    flex-direction: column;
    gap: 1rem;
    background-color: var(--azul-marino);
    padding: 1rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    border-radius: 0 0 8px 8px;
  }
  nav ul.open { display: flex; }

  nav a { font-size: 0.9rem; padding: 0.5rem; }
  .cart-icon img { width: 60px; height: 60px; }

  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }

  .slider { height: 420px; }

  /* beneficios: en móvil se apilan normal y se desactiva alternancia visual */
  .beneficio-card{
    position: relative;
    top: auto;
    flex-direction: column;
    text-align: center;
  }
  .beneficio-card.is-reverse{ flex-direction: column; }
  .beneficio-wrap{ padding-bottom: 40px; }
}

@media (max-width: 560px){
  .t-slide{ flex: 0 0 100%; }
  .t-prev{ left: -2px; }
  .t-next{ right: -2px; }
}

@media (max-width: 480px) {
  header { padding: 0.5rem; }
  .logo img { height: 60px; }

  nav ul { width: 100%; }
  nav a { width: 100%; text-align: center; }

  #menu-toggle {
    display: block;
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
  }

  .cart-icon { margin-top: 0.5rem; }

  .hero h1 { font-size: 1.5rem; }
  .hero p { font-size: 0.9rem; }

  .slider { height: 360px; }
  .flip-back p { font-size: 0.92rem; }
}


/* =========================================
   FIX: Header ordenado SIEMPRE (logueado o no)
   - Evita menú "amontonado"
   - Mantiene "Mi cuenta / Salir" con estilo pill
   ========================================= */

/* Desktop */
@media (min-width: 980px){
  header nav #nav-list{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;                 /* permite saltos de línea */
    gap: 22px;
  }

  header nav #nav-list > li{
    list-style: none;
  }

  header nav #nav-list > li > a{
    white-space: normal;             /* permite que "CURSOS DISPONIBLES" rompa línea */
    text-align: center;
    line-height: 1.15;
  }

  /* zona de auth siempre a la derecha */
  header nav #nav-list > li.nav-auth{
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
  }

  /* Estilo consistente de botones de auth */
  header nav #nav-list > li.nav-auth a.auth-btn{
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.25);
    background: rgba(255,255,255,.12);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
  }

  header nav #nav-list > li.nav-auth a.auth-btn.auth-logout{
    background: rgba(181,18,27,.22);
    border-color: rgba(181,18,27,.45);
  }
}


/* =========================================================
   HOME V2 (estilo mockup) — SOLO index.php
   No afecta header/footer ni otras páginas
========================================================= */

.home-v2{
  background: #f6f8fb;
}

/* contenedor general */
.home-v2 .home-container{
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 20px;
}

.home-v2 .home-section{
  padding: 72px 0;
}

.home-v2 .section-head{
  text-align: center;
  margin-bottom: 34px;
}

.home-v2 .section-title{
  font-family: 'Aileron', sans-serif;
  color: var(--azul-marino);
  font-size: 2.2rem;
  margin: 0 0 10px;
  letter-spacing: -0.2px;
}

.home-v2 .section-subtitle{
  margin: 0 auto;
  max-width: 780px;
  color: rgba(51,51,51,0.75);
  font-size: 1.08rem;
  line-height: 1.6;
}

/* botones */
.home-v2 .btn-primary{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--rojo-logo);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  padding: 14px 22px;
  border-radius: 14px;
  box-shadow: 0 14px 30px rgba(181,18,27,.20);
  transition: transform .18s ease, box-shadow .18s ease, background .2s ease, color .2s ease;
  border: none;
}
.home-v2 .btn-primary:hover{
  background: var(--amarillo-logo);
  color: var(--azul-marino);
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(11,37,69,.18);
}
.home-v2 .btn-primary.btn-sm{ padding: 12px 18px; border-radius: 12px; }
.home-v2 .btn-icon{ font-weight: 900; }

/* ✅ Quitar flecha "→" en botones (solo Home V2) */
.home-v2 .btn-icon{ display: none !important; }

.home-v2 .btn-secondary{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  padding: 14px 22px;
  border-radius: 14px;
  border: 2px solid rgba(11,37,69,.14);
  color: var(--azul-marino);
  background: rgba(255,255,255,.70);
  transition: transform .18s ease, border-color .2s ease, background .2s ease;
}
.home-v2 .btn-secondary:hover{
  transform: translateY(-2px);
  border-color: rgba(11,37,69,.25);
  background: rgba(255,255,255,.95);
}

.home-v2 .btn-link{
  color: var(--azul-marino);
  font-weight: 800;
  text-decoration: none;
}
.home-v2 .btn-link:hover{ text-decoration: underline; }

/* =========================
   HERO
========================= */
.home-v2 .home-hero{
  position: relative;
  padding-top: 58px;
  padding-bottom: 58px;
  overflow: hidden;
}
.home-v2 .home-hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(600px 300px at 85% 20%, rgba(255,200,0,.18), transparent 55%),
    radial-gradient(420px 260px at 10% 70%, rgba(181,18,27,.10), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.65), rgba(255,255,255,.25));
  pointer-events:none;
}
.home-v2 .hero-grid{
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 46px;
  align-items: center;
}

.home-v2 .hero-badge{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(11,37,69,.08);
  color: var(--azul-marino);
  font-weight: 800;
  font-size: .92rem;
  width: fit-content;
  margin-bottom: 14px;
}

/* ✅ Badge "Inscripciones abiertas" en VERDE */
.home-v2 .hero-badge{
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.26);
}
.home-v2 .hero-badge .dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #25D366; /* verde */
  box-shadow: 0 0 0 0 rgba(37, 211, 102, .35);
  animation: heroPulseGreen 1.6s infinite;
}
@keyframes heroPulseGreen{
  0%{ box-shadow: 0 0 0 0 rgba(37, 211, 102, .35); }
  70%{ box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
  100%{ box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.home-v2 .hero-title{
  font-family: 'Aileron', sans-serif;
  color: #0c1d31;
  font-size: 3.1rem;
  line-height: 1.05;
  margin: 0 0 14px;
  letter-spacing: -0.6px;
}
.home-v2 .hero-subtitle{
  margin: 0 0 22px;
  color: rgba(51,51,51,.78);
  font-size: 1.12rem;
  max-width: 620px;
}

.home-v2 .hero-actions{
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.home-v2 .hero-mini-points{
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.home-v2 .mini-point{
  display:flex;
  align-items:center;
  gap: 10px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(11,37,69,.10);
  padding: 10px 12px;
  border-radius: 12px;
  color: rgba(11,37,69,.85);
  font-weight: 700;
  font-size: .95rem;
}
.home-v2 .mp-dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,200,0,.95);
  box-shadow: 0 0 0 3px rgba(255,200,0,.20);
}

/* media */
.home-v2 .hero-media{
  position: relative;
}
.home-v2 .media-card{
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 26px 60px rgba(0,0,0,.16);
  border: 1px solid rgba(11,37,69,.10);
  transform: rotate(1.5deg);
  transition: transform .35s ease;
  background: #fff;
}
.home-v2 .media-card:hover{
  transform: rotate(0deg);
}
.home-v2 .media-card img{
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
.home-v2 .media-overlay{
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, transparent, rgba(11,37,69,.70));
}
.home-v2 .media-caption{
  position: absolute;
  left: 18px;
  bottom: 16px;
  color: #fff;
}
.home-v2 .cap-title{ margin: 0; font-weight: 900; font-size: 1.15rem; }
.home-v2 .cap-sub{ margin: 2px 0 0; opacity: .92; font-weight: 600; font-size: .95rem; }

.home-v2 .media-glow{
  position:absolute;
  border-radius: 999px;
  filter: blur(18px);
  opacity: .55;
  pointer-events:none;
}
.home-v2 .media-glow.g1{
  width: 140px; height: 140px;
  right: -18px; top: -18px;
  background: rgba(255,200,0,.55);
}
.home-v2 .media-glow.g2{
  width: 180px; height: 180px;
  left: -18px; bottom: -18px;
  background: rgba(181,18,27,.40);
}

/* =========================
   COURSES SECTION
========================= */
.home-v2 .home-courses{
  padding-top: 28px;
}

.home-v2 .courses-grid{
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 34px;
  align-items: center;
}

.home-v2 .info-card{
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(11,37,69,.10);
  border-radius: 22px;
  padding: 26px 24px;
  box-shadow: 0 18px 45px rgba(0,0,0,.08);
}
.home-v2 .info-card h3{
  margin: 0 0 10px;
  color: var(--azul-marino);
  font-size: 1.35rem;
}
.home-v2 .info-card p{
  margin: 0 0 14px;
  color: rgba(51,51,51,.80);
}

.home-v2 .check-list{
  margin: 0 0 18px;
  padding-left: 18px;
  color: rgba(11,37,69,.85);
  font-weight: 700;
}
.home-v2 .check-list li{
  margin: 10px 0;
}

.home-v2 .courses-actions{
  display:flex;
  align-items:center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Ajustes visuales al slider solo en home v2 */
.home-v2 .courses-slider-wrap .slider{
  max-width: 560px;
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 26px 60px rgba(0,0,0,.16);
  border: 1px solid rgba(11,37,69,.10);
}
.home-v2 .courses-slider-wrap .flip-front,
.home-v2 .courses-slider-wrap .flip-back{
  border-radius: 18px;
}

/* =========================
   FEATURES GRID
========================= */
.home-v2 .home-features{
  background: #eef2f7;
  border-top: 1px solid rgba(11,37,69,.06);
  border-bottom: 1px solid rgba(11,37,69,.06);
}

.home-v2 .features-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.home-v2 .feature-card{
  background: rgba(255,255,255,.90);
  border: 1px solid rgba(11,37,69,.10);
  border-radius: 22px;
  padding: 22px 20px;
  box-shadow: 0 18px 45px rgba(0,0,0,.07);
}
.home-v2 .feature-card h3{
  margin: 12px 0 8px;
  color: var(--azul-marino);
  font-size: 1.25rem;
}
.home-v2 .feature-card p{
  margin: 0;
  color: rgba(51,51,51,.78);
  line-height: 1.6;
}

.home-v2 .feature-icon{
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: rgba(245,245,245,.95);
  display: grid;
  place-items: center;
  border: 1px solid rgba(11,37,69,.08);
}
.home-v2 .feature-icon img{
  width: 36px;
  height: 36px;
  object-fit: contain;
}

/* =========================
   ABOUT
========================= */
.home-v2 .home-about{
  background: #ffffff;
}
.home-v2 .about-card{
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(11,37,69,.10);
  border-radius: 24px;
  padding: 30px 26px;
  box-shadow: 0 22px 55px rgba(0,0,0,.08);

  /* ✅ centrado real */
  margin: 0 auto;
  text-align: center;
}
.home-v2 .about-card .section-subtitle{
  margin-left: auto;
  margin-right: auto;
  max-width: 900px;
}
.home-v2 .about-actions{
  display:flex;
  align-items:center;
  justify-content: center; /* ✅ centra botones */
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 16px;
}

/* =========================
   TESTIMONIALS BACKGROUND
========================= */
.home-v2 .home-testimonials{
  background: #e7f4f8;
  border-top: 1px solid rgba(11,37,69,.06);
}

/* =========================
   CTA FINAL
========================= */
.home-v2 .home-cta{
  background: linear-gradient(135deg, #0b2545 0%, #0b2545 60%, rgba(255,200,0,.14) 100%);
  padding: 72px 0;
}
.home-v2 .cta-card{
  text-align: center;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 26px;
  padding: 34px 22px;
  box-shadow: 0 26px 60px rgba(0,0,0,.16);
}
.home-v2 .cta-card h2{
  color: #fff;
  margin: 0 0 10px;
  font-size: 2rem;
}
.home-v2 .cta-card p{
  color: rgba(255,255,255,.85);
  margin: 0 0 18px;
  font-size: 1.06rem;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 980px){
  .home-v2 .hero-grid{
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .home-v2 .hero-title{
    font-size: 2.4rem;
  }
  .home-v2 .courses-grid{
    grid-template-columns: 1fr;
  }
  .home-v2 .courses-slider-wrap .slider{
    margin: 0 auto;
  }
}

@media (max-width: 700px){
  .home-v2 .features-grid{
    grid-template-columns: 1fr;
  }
  .home-v2 .home-section{
    padding: 58px 0;
  }
  .home-v2 .section-title{
    font-size: 1.9rem;
  }
}

/* =========================================
   SECCIÓN IMPACTO (estilo mockup, adaptado)
========================================= */
.impacto-section{
  background: #06344a; /* azul marino profundo */
  padding: 90px 18px;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,.10);
  border-bottom: 1px solid rgba(255,255,255,.10);
}

/* brillo suave como en el mockup */
.impacto-section::before{
  content:"";
  position:absolute;
  inset:-120px -120px auto auto;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(255,200,0,.28), transparent 65%);
  filter: blur(2px);
  pointer-events:none;
}
.impacto-section::after{
  content:"";
  position:absolute;
  inset:auto auto -140px -140px;
  width: 420px;
  height: 420px;

  /* ✅ antes era rojo, ahora turquesa suave */
  background: radial-gradient(circle, rgba(45, 212, 191, .18), transparent 65%);
  filter: blur(2px);
  pointer-events:none;
}

.impacto-inner{
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.impacto-title{
  margin: 0 0 12px;
  color: #fff;
  font-size: 2.4rem;
  letter-spacing: .2px;
  text-shadow: 0 2px 0 rgba(0,0,0,.18);
}

.impacto-sub{
  margin: 0 auto 34px;
  max-width: 820px;
  color: rgba(255,255,255,.78);
  font-size: 1.05rem;
  line-height: 1.6;
}

.impacto-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.impacto-card{
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 22px;
  padding: 26px 22px;
  box-shadow: 0 18px 38px rgba(0,0,0,.16);
  backdrop-filter: blur(6px);
  min-height: 210px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.impacto-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 22px 46px rgba(0,0,0,.20);
  background: rgba(255,255,255,.12);
}

.impacto-num{
  font-family: 'Aileron', sans-serif;
  font-weight: 900;
  font-size: 2.7rem;
  margin-bottom: 10px;
  line-height: 1;
}

/* ✅ Amarillo más suave (opcional) */
.impacto-num--yellow{ color: #FDE68A; }

/* ✅ Cambiado: rojo -> turquesa elegante */
.impacto-num--red{ color: var(--turquesa); }

.impacto-h{
  margin: 0 0 8px;
  font-size: 1.1rem;
  color: rgba(255,255,255,.92);
}

.impacto-p{
  margin: 0;
  font-size: .98rem;
  color: rgba(255,255,255,.72);
  line-height: 1.55;
  max-width: 260px;
}

/* Responsive impacto */
@media (max-width: 980px){
  .impacto-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px){
  .impacto-title{ font-size: 1.9rem; }
  .impacto-grid{ grid-template-columns: 1fr; }
  .impacto-card{ min-height: 190px; }
}

/* =========================================
   FIX: Opiniones con recuadros del MISMO TAMAÑO
   - Las tarjetas quedan igual de altas
   - El texto se recorta (clamp) para no crecer
========================================= */
.t-slide{
  display: flex;              /* permite que la card estire */
}

.testimonial-card{
  height: 290px;              /* ✅ mismo alto para todas (desktop) */
  width: 100%;
  justify-content: flex-start;
}

.testimonial-text{
  display: -webkit-box;
  -webkit-line-clamp: 6;      /* ✅ recorta texto */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* empuja nombre/meta hacia abajo para que se alinee */
.testimonial-name,
.testimonial-meta{
  margin-top: auto;
}

/* Ajustes responsive */
@media (max-width: 900px){
  .testimonial-card{ height: 310px; }
  .testimonial-text{ -webkit-line-clamp: 7; }
}
@media (max-width: 560px){
  .testimonial-card{ height: 320px; }
  .testimonial-text{ -webkit-line-clamp: 8; }
}
