/*
 * sitio.css: estilos compartidos de fluentminds.mx
 * ------------------------------------------------
 * Lo usan index.html y /cursos-en-video/. Mismos tokens que la app y la
 * tienda (ver README: "Sistema visual"). Si cambias este archivo, sube el
 * ?v= en los <link> de cada página para que Cloudflare no sirva la copia vieja.
 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Tokens: extraídos directamente de la plataforma ── */
:root {
  /* Sidebar oscuro de la app */
  --ink:        #1c2733;
  --ink-deep:   #141d27;
  /* Teal de marca (chip FM y banner de la app) — ajustado para contraste AA con texto blanco */
  --teal:       #0d7d74;
  --teal-dark:  #0b6e66;
  --teal-deep:  #14494a;
  --teal-soft:  #e6f4f2;
  /* Naranja de marca (acento principal, como en el hero) */
  --orange:      #ff6b1a;
  --orange-dark: #e85d10;
  --orange-soft: #fff0e6;
  /* Fondo oscuro del hero (degradado navy → teal) */
  --hero-top:   #10343a;
  --hero-mid:   #123f42;
  --hero-bot:   #ffffff;
  /* Fondo y superficies de la app */
  --bg:         #f1f5f9;
  --surface:    #ffffff;
  --border:     #e2e8f0;
  /* Texto */
  --text:       #1e293b;
  --muted:      #64748b;
  --faint:      #697586;
  /* Acentos de estado (los mismos de los stat cards) */
  --green:      #16a34a;
  --green-soft: #dcfce7;
  --amber:      #d97706;
  --amber-soft: #fef3c7;
  --blue:       #3b82f6;
  --blue-soft:  #dbeafe;
  --purple:     #8b5cf6;
  --purple-soft:#ede9fe;
  --red:        #dc2626;
  --red-soft:   #fee2e2;
  /* Gradiente del banner de la app */
  --banner: linear-gradient(120deg, #16403f 0%, #14625c 55%, #109187 100%);
  --radius: 14px;
  --shadow-card: 0 1px 3px rgba(15,23,42,0.05), 0 8px 24px rgba(15,23,42,0.05);
  --shadow-float: 0 12px 40px rgba(15,23,42,0.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: #ffffff;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}
/* El hero lleva su propio fondo degradado (navy → teal) y se funde a
   blanco en su borde inferior mediante .hero::after. Al vivir dentro del
   hero, el degradado siempre calza con su altura real sin importar cómo
   envuelva el texto, y nunca invade la sección siguiente. */

/* Etiqueta en mayúsculas, el sello tipográfico de los stat cards de la app */
.microlabel {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--muted);
}
.num { font-variant-numeric: tabular-nums; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: transparent;
  backdrop-filter: blur(2px);
  border-bottom: 1px solid transparent;
  padding: 0 2rem;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
nav.scrolled {
  box-shadow: 0 4px 20px rgba(15,23,42,0.06);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
/* En el tope (hero oscuro) el texto del nav es claro */
.nav-logo .logo-text strong { color: #fff; transition: color 0.3s ease; }
.nav-logo .logo-text span { color: rgba(255,255,255,0.65); transition: color 0.3s ease; }
nav.scrolled .logo-text strong { color: var(--ink); }
nav.scrolled .logo-text span { color: var(--faint); }
nav.scrolled .nav-links > a { color: var(--muted); }
.nav-logo {
  display: flex; align-items: center; gap: 0.65rem;
  text-decoration: none;
}
/* Chip FM idéntico al de la app */
.logo-chip {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--orange);
  color: #fff; font-weight: 800; font-size: 0.8rem;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(255,107,26,0.4);
}
/* Logo en imagen (logo.webp): tu logo ya incluye ícono + texto,
   así que se muestra completo. Altura fija y ancho automático
   para que el texto de tu logo se lea bien y no se deforme. */
.logo-img {
  height: 52px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}
/* Intercambio automático: logo blanco sobre hero oscuro, logo oscuro cuando el nav se vuelve blanco al bajar */
.nav-logo { position: relative; }
.nav-logo .logo-dark { display: none; }
nav.scrolled .nav-logo .logo-light { display: none; }
nav.scrolled .nav-logo .logo-dark { display: block; }
.footer-logo-img { height: 60px; max-width: 220px; }
@media (max-width: 640px) {
  .logo-img { height: 44px; }
}
.logo-text { line-height: 1.1; }
.logo-text strong { display: block; font-size: 0.95rem; font-weight: 700; color: var(--ink); }
.logo-text span { display: block; font-size: 0.62rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links > a {
  font-size: 0.875rem; font-weight: 500;
  color: rgba(255,255,255,0.85); text-decoration: none;
  transition: color 0.2s;
}
.nav-links > a:hover { color: #fff; }
nav.scrolled .nav-links > a:hover { color: var(--orange-dark); }
.btn-nav {
  background: var(--orange); color: #fff !important;
  padding: 0.6rem 1.4rem;
  border-radius: 10px;
  font-size: 0.875rem; font-weight: 700 !important;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(255,107,26,0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-nav:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,107,26,0.5);
}
.btn-nav:active { transform: translateY(0); }
.btn-nav .arrow { display: inline-block; transition: transform 0.2s ease; }
.btn-nav:hover .arrow { transform: translateX(3px); }

/* Con 5 enlaces + Acceder, bajo 1024 px ya no caben: pasan al menú hamburguesa */
@media (max-width: 1023px) {
  .nav-links .hide-mobile { display: none; }
  .nav-links { gap: 0.75rem; }
}
@media (max-width: 640px) {
  /* Nav más compacto en móvil para que el botón no abarque tanto */
  nav { padding: 0 1rem; }
  .nav-links { gap: 0.6rem; }
  .btn-nav {
    padding: 0.5rem 0.9rem;
    font-size: 0.8125rem;
    border-radius: 9px;
  }
  .btn-nav .arrow { display: none; }
}

/* ── Menú hamburguesa (solo móvil) ── */
.nav-toggle {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; padding: 0 9px;
  background: transparent; border: none; cursor: pointer;
  border-radius: 10px;
}
.nav-toggle span {
  display: block; height: 2.5px; width: 100%;
  background: #fff; border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease, background 0.3s ease;
}
nav.scrolled .nav-toggle span { background: var(--ink); }
body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; top: 64px; left: 0; right: 0; z-index: 99;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(15,23,42,0.12);
  display: flex; flex-direction: column;
  padding: 0.5rem 1.25rem 1.25rem;
  transform: translateY(-12px); opacity: 0; visibility: hidden;
  transition: transform 0.28s ease, opacity 0.28s ease, visibility 0.28s;
}
body.menu-open .mobile-menu { transform: translateY(0); opacity: 1; visibility: visible; }
.mobile-menu a {
  padding: 1rem 0.5rem; font-size: 1.05rem; font-weight: 600;
  color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--border);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu .mm-whatsapp {
  margin-top: 1rem; text-align: center;
  background: #1a8a4f; color: #fff; border-radius: 12px;
  border: none; font-weight: 700;
  box-shadow: 0 4px 14px rgba(26,138,79,0.3);
}
@media (max-width: 1023px) {
  .nav-toggle { display: flex; }
}

/* ── HERO (transparente: deja ver el degradado del body) ── */
.hero {
  min-height: 92vh;
  display: flex; align-items: center;
  padding: 10rem 2rem 7rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg,
    var(--hero-top) 0%,
    var(--hero-mid) 45%,
    #17494e 78%,
    #1c565a 100%);
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 90% 70% at 78% 30%, rgba(255,107,26,0.10) 0%, transparent 65%);
  pointer-events: none;
}
/* Fundido a blanco en el borde inferior del hero: la transición ocurre
   dentro del hero, así siempre calza con su altura real y no invade ni
   oscurece la sección siguiente. */
.hero::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 140px;
  background: linear-gradient(180deg, rgba(28,86,90,0) 0%, #1c565a 30%, #ffffff 100%);
  pointer-events: none;
  z-index: 3;
}
/* Orbe de luz naranja/dorado difuminado que flota en el hero.
   Se mueve solo (animación) y, con JS, sigue suavemente al cursor. */
.hero-orb {
  position: absolute;
  top: 38%; left: 62%;
  width: 460px; height: 460px;
  margin: -230px 0 0 -230px;   /* centrar respecto a su punto */
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%,
    rgba(255,179,71,0.55) 0%,
    rgba(255,122,26,0.38) 32%,
    rgba(232,93,16,0.18) 55%,
    rgba(232,93,16,0) 72%);
  filter: blur(30px);
  pointer-events: none;
  z-index: 1;
  will-change: transform;
  animation: orb-float 14s ease-in-out infinite;
}
/* Deriva aleatoria/orgánica cuando el mouse no está encima */
@keyframes orb-float {
  0%   { transform: translate(0, 0) scale(1); }
  20%  { transform: translate(-60px, 40px) scale(1.08); }
  40%  { transform: translate(50px, -30px) scale(0.96); }
  60%  { transform: translate(-30px, -55px) scale(1.05); }
  80%  { transform: translate(45px, 35px) scale(1.02); }
  100% { transform: translate(0, 0) scale(1); }
}
/* Al seguir el mouse, el JS controla la posición con una transición suave
   y desactiva la animación de deriva. */
.hero-orb.following {
  animation: none;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
@media (prefers-reduced-motion: reduce) {
  .hero-orb { animation: none; }
}
@media (max-width: 640px) {
  .hero-orb { width: 340px; height: 340px; margin: -170px 0 0 -170px; top: 30%; left: 70%; }
}
.hero-inner {
  max-width: 1140px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1fr; gap: 4rem; align-items: center;
  position: relative; z-index: 2;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.09em;
  text-transform: uppercase; color: #ffd9c2;
  background: rgba(255,107,26,0.14);
  border: 1px solid rgba(255,107,26,0.32);
  padding: 0.35rem 0.875rem; border-radius: 100px;
  margin-bottom: 1.75rem;
}
.hero-eyebrow::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--orange); flex-shrink: 0;
  animation: pulse 1.8s infinite;
}
h1 {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: clamp(2.3rem, 4.6vw, 3.9rem);
  font-weight: 800; line-height: 1.08;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 1.75rem;
}
h1 .accent { color: var(--orange); }
/* Primera frase "Desbloquea la voz de tu empresa." en su propio bloque y
   forzada a UNA sola línea. El tamaño escala con el ancho para que nunca
   se parta ni se desborde. El resto del título va debajo, en Inter. */
.hero-title-lead {
  display: block;
  white-space: nowrap;
  width: max-content;
  max-width: 100%;
  font-size: clamp(0.9rem, 4.6vw, 3.9rem);
  margin-bottom: 0.15em;
  /* Degradado horizontal: naranja oscuro (izq) → amarillo-naranja (der) */
  background: linear-gradient(90deg, #d94f0a 0%, #ff7a1a 45%, #ffb347 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero-title-rest {
  display: block;
  max-width: 620px;
}
/* "Desbloquea" hereda el degradado de la frase completa */
h1 .accent-display { color: inherit; }
.hero-sub {
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  color: rgba(255,255,255,0.9);
  max-width: 540px; margin-bottom: 2.5rem;
  line-height: 1.5; font-weight: 500;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary {
  background: var(--orange); color: #fff;
  padding: 0.95rem 2.1rem; border-radius: 12px;
  font-weight: 700; font-size: 1.05rem;
  text-decoration: none; transition: all 0.2s;
  box-shadow: 0 6px 20px rgba(255,107,26,0.4);
}
.btn-primary:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(255,107,26,0.55);
}
.btn-primary .arrow { display: inline-block; margin-left: 0.4rem; transition: transform 0.2s ease; }
.btn-primary:hover .arrow { transform: translateX(4px); }
.btn-secondary {
  background: rgba(255,255,255,0.08); color: #fff;
  padding: 0.95rem 2.1rem; border-radius: 12px;
  font-weight: 600; font-size: 1.05rem;
  text-decoration: none; border: 1.5px solid rgba(255,255,255,0.35);
  transition: all 0.2s;
}
.btn-secondary:hover { border-color: #fff; background: rgba(255,255,255,0.16); }
/* Botón de WhatsApp */
.btn-whatsapp {
  display: inline-flex; align-items: center; gap: 0.55rem;
  background: #1a8a4f; color: #fff;
  padding: 0.875rem 1.75rem; border-radius: 12px;
  font-weight: 700; font-size: 1rem;
  text-decoration: none; transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(26,138,79,0.3);
}
.btn-whatsapp:hover {
  background: #157040;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26,138,79,0.45);
}
.btn-whatsapp svg { width: 20px; height: 20px; flex-shrink: 0; fill: #fff; }
/* Botón flotante de WhatsApp (esquina inferior) */
.whatsapp-float {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 200;
  display: inline-flex; align-items: center; gap: 0.55rem;
  background: #1a8a4f; color: #fff;
  padding: 0.8rem 1.35rem; border-radius: 100px;
  font-weight: 700; font-size: 0.9375rem;
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(26,138,79,0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.whatsapp-float:hover { background: #157040; transform: translateY(-2px); box-shadow: 0 12px 34px rgba(26,138,79,0.55); }
.whatsapp-float svg { width: 22px; height: 22px; flex-shrink: 0; fill: #fff; }
@media (max-width: 640px) {
  .whatsapp-float .wa-label { display: none; }
  .whatsapp-float { padding: 0.9rem; border-radius: 50%; }
}
.hero-trust {
  display: flex; align-items: center; gap: 0.5rem;
  margin-top: 1.5rem; font-size: 0.8125rem;
  color: rgba(255,255,255,0.85); font-weight: 500;
}
.hero-trust svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ── HERO: réplica del dashboard (elemento firma) ── */
.hero-visual { position: relative; }
.dash {
  background: var(--bg);
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-float);
  overflow: hidden;
}
.dash-topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0.65rem 1rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.dash-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border); }
.dash-crumb { margin-left: 0.5rem; font-size: 0.7rem; color: var(--faint); font-weight: 500; }
.dash-body { padding: 1.1rem; display: flex; flex-direction: column; gap: 0.9rem; }
/* Banner con gradiente, como el "Panel de Control" de la app */
.dash-banner {
  background: var(--banner);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  color: #fff;
}
.dash-banner .microlabel { color: rgba(255,255,255,0.65); }
.dash-banner-title { font-size: 1.05rem; font-weight: 800; letter-spacing: -0.01em; margin-top: 0.15rem; }
.dash-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
  position: relative;
}
.stat-card .microlabel { font-size: 0.6rem; }
.stat-val {
  font-size: 1.45rem; font-weight: 800; line-height: 1.15;
  letter-spacing: -0.02em; margin-top: 0.15rem;
}
.stat-val.green { color: var(--green); }
.stat-val.amber { color: var(--amber); }
.stat-sub { font-size: 0.65rem; color: var(--faint); margin-top: 0.1rem; }
.stat-chip {
  position: absolute; top: 0.7rem; right: 0.7rem;
  width: 26px; height: 26px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.stat-chip svg { width: 14px; height: 14px; stroke-width: 2; fill: none; }
.chip-blue   { background: var(--blue-soft); }   .chip-blue svg   { stroke: var(--blue); }
.chip-green  { background: var(--green-soft); }  .chip-green svg  { stroke: var(--green); }
.chip-purple { background: var(--purple-soft); } .chip-purple svg { stroke: var(--purple); }
/* Gráfica de asistencia, como "Tendencia de asistencia" */
.dash-chart {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.95rem 1rem 0.7rem;
}
.dash-chart-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.6rem; }
.dash-chart-title { font-size: 0.8rem; font-weight: 700; color: var(--ink); }
.badge-pill {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.22rem 0.6rem; border-radius: 100px;
}
.badge-pill.green { color: var(--green); background: var(--green-soft); }
.badge-pill.green::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); animation: pulse 1.5s infinite;
}
.dash-chart svg { width: 100%; height: auto; display: block; }
.chart-line {
  fill: none; stroke: var(--teal); stroke-width: 2.5;
  stroke-linecap: round; stroke-linejoin: round;
}
.chart-area { fill: url(#chartFill); opacity: 0.55; }
.chart-pt { fill: var(--teal); }
.chart-axis { font-size: 7px; fill: var(--faint); font-family: 'Inter', sans-serif; }
/* Fila de grupo con barra de progreso, como "Grupos activos" */
.dash-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.8rem 1rem;
}
.dash-group-head { display: flex; justify-content: space-between; align-items: baseline; }
.dash-group-name { font-size: 0.8rem; font-weight: 700; color: var(--ink); }
.dash-group-meta { font-size: 0.65rem; color: var(--faint); margin-top: 0.05rem; }
.dash-group-pct { font-size: 0.8rem; font-weight: 800; color: var(--green); }
.progress {
  height: 6px; border-radius: 100px; background: var(--bg);
  margin-top: 0.6rem; overflow: hidden;
}
.progress-fill {
  height: 100%; width: 0; border-radius: 100px;
  background: var(--green);
  transition: width 1.2s cubic-bezier(0.34, 1.2, 0.64, 1);
}
/* Tarjeta flotante de evaluación */
.float-card {
  position: absolute; bottom: -1.1rem; left: -1.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-float);
  padding: 0.7rem 0.95rem;
  display: flex; align-items: center; gap: 0.65rem;
}
.float-icon {
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--amber-soft);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.float-icon svg { width: 16px; height: 16px; stroke: var(--amber); stroke-width: 2; fill: none; }
.float-title { font-size: 0.72rem; font-weight: 700; color: var(--ink); line-height: 1.2; }
.float-sub { font-size: 0.62rem; color: var(--faint); }

@keyframes pulse {
  0%, 100% { opacity: 1; } 50% { opacity: 0.4; }
}

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .float-card { left: 0.75rem; }
}
@media (max-width: 640px) {
  .hero { min-height: 88vh; padding: 8rem 1.25rem 7rem; }
  .hero-inner { gap: 2rem; }
  /* En móvil el mensaje va primero; el dashboard debajo como apoyo visual */
  .hero-visual { order: 2; }
  h1 { font-size: clamp(2rem, 8vw, 2.7rem); }
  .hero-sub { font-size: 1.08rem; }
  .hero-actions { gap: 0.75rem; }
  .hero-actions .btn-primary,
  .hero-actions .btn-whatsapp,
  .hero-actions .btn-secondary {
    flex: 1 1 100%; text-align: center; justify-content: center;
  }
}

/* ── SECCIONES GENERALES ── */
section { padding: 2.75rem 2rem; }
@media (max-width: 640px) {
  section { padding: 2.25rem 1.25rem; }
}
.section-inner { max-width: 1140px; margin: 0 auto; }
.section-eyebrow {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--orange-dark); margin-bottom: 0.75rem;
  display: inline-flex; align-items: center; gap: 0.6rem;
}
.section-eyebrow::before {
  content: ''; width: 24px; height: 2px;
  background: var(--orange); border-radius: 2px;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800; line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink); margin-bottom: 1.25rem;
}
h2 .accent { color: var(--orange); }
.section-sub {
  font-size: 1.0625rem; color: var(--muted);
  max-width: 560px; line-height: 1.7;
}

/* ── TRUST BAR ── */
.trustbar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 2rem;
}
.trustbar-grid {
  max-width: 1140px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem; text-align: center;
}
.trust-num {
  font-size: 2.4rem; font-weight: 800; letter-spacing: -0.03em;
  color: var(--teal-dark); line-height: 1;
}
.trust-num.green { color: var(--green); }
.trust-lbl { margin-top: 0.45rem; }

/* ── SITUACIONES / LO QUE RESOLVEMOS ── */
.situations { background: transparent; }
.situations-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem; margin-top: 3rem;
}
.situation-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem;
  transition: all 0.2s;
}
.situation-card:hover {
  border-color: rgba(16,145,135,0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(16,145,135,0.08);
}
.situation-icon {
  width: 42px; height: 42px; border-radius: 11px;
  background: var(--teal-soft);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem;
}
.situation-icon svg { width: 21px; height: 21px; stroke: var(--teal); stroke-width: 1.85; fill: none; }
.situation-quote { font-size: 1rem; font-weight: 700; color: var(--ink); line-height: 1.4; margin-bottom: 0.5rem; }
.situation-text { font-size: 0.9rem; color: var(--muted); line-height: 1.6; }

/* ── PARA QUIÉN ── */
.audience { background: transparent; }
.audience-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem; margin-top: 3rem;
}
.audience-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem;
  box-shadow: var(--shadow-card);
  transition: all 0.2s;
}
.audience-card:hover {
  border-color: rgba(16,145,135,0.4);
  box-shadow: 0 8px 32px rgba(16,145,135,0.1);
  transform: translateY(-2px);
}
.card-icon {
  width: 44px; height: 44px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  transition: transform 0.25s ease;
}
.card-icon.teal   { background: var(--teal-soft); }
.card-icon.blue   { background: var(--blue-soft); }
.card-icon.purple { background: var(--purple-soft); }
.card-icon svg { width: 22px; height: 22px; stroke-width: 1.75; fill: none; }
.card-icon.teal svg   { stroke: var(--teal); }
.card-icon.blue svg   { stroke: var(--blue); }
.card-icon.purple svg { stroke: var(--purple); }
.audience-card:hover .card-icon { transform: scale(1.08) rotate(-3deg); }
.audience-swipe-hint { display: none; }
@media (max-width: 860px) {
  .audience-swipe-hint {
    display: block; text-align: center;
    font-size: 0.8rem; font-weight: 600; color: var(--teal-dark);
    margin-top: 1.5rem; margin-bottom: -0.5rem;
  }
  /* En móvil/tablet las 3 modalidades se deslizan horizontalmente (swipe)
     en vez de que la 3ra caiga sola debajo. */
  .audience-grid {
    display: flex; flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    padding: 0.25rem 1.25rem 1rem;
    margin-left: -1.25rem; margin-right: -1.25rem;
    scrollbar-width: none;
  }
  .audience-grid::-webkit-scrollbar { display: none; }
  .audience-card {
    flex: 0 0 80%;
    max-width: 80%;
    scroll-snap-align: center;
  }
}
.card-title {
  font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em;
  color: var(--ink); margin-bottom: 0.75rem;
}
.card-text { font-size: 0.9375rem; color: var(--muted); line-height: 1.6; }
.card-tag {
  display: inline-block; margin-top: 1rem;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--teal-dark); background: var(--teal-soft);
  padding: 0.28rem 0.75rem; border-radius: 100px;
}

/* ── METODOLOGÍA (tema claro para fundirse con la página) ── */
.method { background: transparent; }
.method h2 { color: var(--ink); }
.method h2 .accent { color: var(--orange); }
.method .section-eyebrow { color: var(--orange-dark); }
.method .section-eyebrow::before { background: var(--orange); }
/* Barra de proceso que simula el flujo 1→2→3→4→5.
   Replica el mismo layout que .method-grid para que cada bolita
   quede centrada sobre su tarjeta correspondiente. */
.method-track {
  display: flex; flex-wrap: nowrap; justify-content: center;
  gap: 1.25rem; margin: 2.5rem auto 0;
  position: relative;
}
.method-track-cell {
  flex: 1 1 200px; max-width: 240px;
  display: flex; justify-content: center;
  position: relative;
}
/* Línea que conecta un dot con el siguiente (mitad + gap + mitad) */
.method-track-cell:not(:last-child)::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: calc(100% + 1.25rem); height: 3px;
  background: var(--border); border-radius: 3px;
  transform: translateY(-50%); z-index: 0;
}
.method-track-cell:not(:last-child)::before {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 0; height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--orange-dark));
  border-radius: 3px; transform: translateY(-50%); z-index: 1;
  transition: width 0.5s ease-out;
}
.method-track.visible .method-track-cell:not(:last-child)::before {
  width: calc(100% + 1.25rem);
}
.method-track.visible .method-track-cell:nth-child(1)::before { transition-delay: 0.35s; }
.method-track.visible .method-track-cell:nth-child(2)::before { transition-delay: 0.75s; }
.method-track.visible .method-track-cell:nth-child(3)::before { transition-delay: 1.15s; }
.method-track.visible .method-track-cell:nth-child(4)::before { transition-delay: 1.55s; }
.method-track-dot {
  position: relative; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%;
  background: #fff; border: 3px solid var(--border);
  color: var(--muted); font-weight: 800; font-size: 0.95rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}
.method-track.visible .method-track-dot {
  border-color: var(--orange); color: #fff; background: var(--orange);
}
.method-track.visible .method-track-cell:nth-child(1) .method-track-dot { transition-delay: 0.2s; }
.method-track.visible .method-track-cell:nth-child(2) .method-track-dot { transition-delay: 0.6s; }
.method-track.visible .method-track-cell:nth-child(3) .method-track-dot { transition-delay: 1s; }
.method-track.visible .method-track-cell:nth-child(4) .method-track-dot { transition-delay: 1.4s; }
.method-track.visible .method-track-cell:nth-child(5) .method-track-dot { transition-delay: 1.8s; }
@media (max-width: 640px) {
  .method-track-dot { width: 30px; height: 30px; font-size: 0.8rem; }
  /* En móvil las tarjetas se apilan verticalmente; ocultamos la barra
     horizontal para que no quede desalineada. */
  .method-track { display: none; }
}

.method-grid {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 1.25rem; margin-top: 2.25rem;
}
.method-item {
  flex: 1 1 200px;
  max-width: 240px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.method-item:hover {
  transform: translateY(-3px);
  border-color: rgba(255,107,26,0.35);
  box-shadow: 0 10px 32px rgba(255,107,26,0.1);
}
.method-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--orange-soft); color: var(--orange-dark);
  font-size: 0.85rem; font-weight: 800;
  margin-bottom: 0.85rem;
}
.method-item-title {
  font-size: 1.05rem; font-weight: 700;
  color: var(--ink); margin-bottom: 0.5rem;
}
.method-item-text { font-size: 0.9rem; color: var(--muted); line-height: 1.6; }
.method-swipe-hint { display: none; }
@media (max-width: 640px) {
  .method-swipe-hint {
    display: block; text-align: center;
    font-size: 0.8rem; font-weight: 600; color: var(--orange-dark);
    margin-top: 1.5rem; margin-bottom: -0.5rem;
  }
}
@media (max-width: 640px) {
  /* En móvil los pasos se deslizan horizontalmente (swipe) en lugar de apilarse */
  .method-grid {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    padding: 0.25rem 1.25rem 1rem;
    margin-left: -1.25rem; margin-right: -1.25rem;
    scrollbar-width: none;
  }
  .method-grid::-webkit-scrollbar { display: none; }
  .method-item {
    flex: 0 0 78%;
    max-width: 78%;
    scroll-snap-align: center;
  }
}

/* ── QUIÉN SOY ── */
.about { background: transparent; }
.about-inner {
  max-width: 1140px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 5rem; align-items: center;
}
/* El contenedor tiene el mismo ancho que la foto para que el recuadro
   "+5 años" se ancle a su borde y no dependa del ancho de la imagen. */
.about-media {
  position: relative;
  width: 100%;
  max-width: 360px;
  margin: 0;
}
.about-portrait {
  background: var(--banner);
  border-radius: 18px;
  aspect-ratio: 4/5; width: 100%; max-width: 360px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
}
.about-portrait::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.12), transparent 60%);
}
.about-float {
  position: absolute; top: 100%; right: 0.5rem;
  transform: translateY(-18%);
  background: #ffffff; border: 1px solid var(--border);
  color: var(--ink);
  padding: 0.8rem 1.15rem; border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(15,23,42,0.22);
  text-align: center; z-index: 2;
}
.about-float .num { font-size: 1.5rem; font-weight: 800; line-height: 1; color: var(--orange); }
.about-float div:last-child { font-size: 0.7rem; font-weight: 700; margin-top: 0.2rem; color: var(--muted); line-height: 1.2; }
.about-text { font-size: 1.0625rem; color: var(--muted); line-height: 1.8; margin-bottom: 1.5rem; }
.about-cred { display: flex; align-items: flex-start; gap: 1rem; }
.about-cred + .about-cred { margin-top: 1rem; }
.cred-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--teal-soft);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cred-icon svg { width: 18px; height: 18px; stroke: var(--teal); stroke-width: 1.75; fill: none; }
.cred-title { font-weight: 700; font-size: 0.9375rem; color: var(--ink); }
.cred-sub { font-size: 0.875rem; color: var(--muted); }
@media (max-width: 860px) {
  .about-inner { grid-template-columns: 1fr; gap: 3rem; }
  /* En móvil la foto va DEBAJO del texto de "Quién soy" y centrada */
  .about-media { order: 2; margin: 0 auto; max-width: 320px; }
  /* El recuadro sube a media altura y sobresale poco a la derecha, así
     NO tapa el texto "Maestra certificada" de la base de la foto ni se
     sale de la pantalla. */
  .about-float { right: 0.5rem; padding: 0.65rem 0.95rem; }
}

/* ── TESTIMONIOS ── */
.testimonials { background: transparent; }
/* Carrusel horizontal: las tarjetas se desplazan continuamente hacia la
   derecha en un loop infinito. El track se duplica en el HTML para que
   el bucle sea sin cortes. */
.testimonial-carousel {
  margin-top: 3rem;
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.testimonial-track {
  display: flex; gap: 1.5rem; width: max-content;
  animation: testimonial-scroll 48s linear infinite;
}
.testimonial-carousel:hover .testimonial-track { animation-play-state: paused; }
@keyframes testimonial-scroll {
  /* Empieza mostrando la segunda mitad y se desliza hacia la derecha,
     de modo que las tarjetas entran por la izquierda. */
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .testimonial-track { animation: none; transform: none; flex-wrap: wrap; justify-content: center; }
}
.testimonial-card {
  flex: 0 0 340px; max-width: 340px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem;
  box-shadow: var(--shadow-card);
}
@media (max-width: 640px) {
  .testimonial-card { flex-basis: 280px; max-width: 280px; }
}
.testimonial-mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--teal-soft);
  color: var(--teal); font-weight: 800; font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem; line-height: 1;
  padding-top: 0.4rem;
}
.testimonial-text { font-size: 0.9375rem; color: var(--muted); line-height: 1.7; margin-bottom: 1.5rem; }
.testimonial-who { display: flex; align-items: center; gap: 0.75rem; }
.testimonial-avatar {
  width: 36px; height: 36px; border-radius: 10px;
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.875rem;
}
.testimonial-name { font-weight: 700; font-size: 0.875rem; color: var(--ink); }
.testimonial-role { font-size: 0.75rem; color: var(--muted); }

/* ── SERVICIOS / PRECIOS ── */
.services { background: transparent; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem; margin-top: 3rem;
  max-width: 1140px; margin-left: auto; margin-right: auto;
  align-items: stretch;
}
@media (max-width: 960px) {
  .services-grid { grid-template-columns: 1fr 1fr; max-width: 720px; }
}
@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; max-width: 440px; }
}
.service-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 2rem;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex; flex-direction: column;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--teal); transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(16,145,135,0.12);
  border-color: rgba(16,145,135,0.35);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card.featured {
  border-color: var(--orange);
  box-shadow: 0 8px 40px rgba(255,107,26,0.16);
}
.service-card.featured::before { background: var(--orange); }
/* La tarjeta destacada reserva espacio arriba para que el badge no tape el título */
.service-card.featured { padding-top: 3.5rem; }
.featured-badge {
  position: absolute; top: 1.25rem; left: 2rem; right: auto;
  background: var(--orange); color: #fff;
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.28rem 0.75rem; border-radius: 100px;
}
.service-name {
  font-size: 1.25rem; font-weight: 800; letter-spacing: -0.01em;
  color: var(--ink); margin-bottom: 0.25rem;
}
.service-kicker {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--orange-dark);
  margin-bottom: 0.75rem;
}
.service-desc { font-size: 0.9rem; color: var(--muted); margin-bottom: 1.25rem; line-height: 1.6; }
.service-features { list-style: none; margin-bottom: 2rem; flex-grow: 1; }
.service-features li {
  display: block;
  font-size: 0.875rem; color: var(--muted);
  padding: 0.5rem 0; line-height: 1.55;
  border-top: 1px solid var(--border);
}
.service-features li:first-child { border-top: none; }
.service-features li strong { color: var(--ink); font-weight: 700; }
.service-cta {
  display: block; text-align: center;
  background: var(--bg); color: var(--teal-dark);
  padding: 0.75rem; border-radius: 10px;
  font-weight: 700; font-size: 0.9rem;
  text-decoration: none; transition: all 0.2s;
  border: 1px solid var(--border);
}
.service-card.featured .service-cta {
  background: var(--orange); color: #fff; border-color: var(--orange);
}
.service-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(16,145,135,0.15); border-color: rgba(16,145,135,0.4); }
.service-card.featured .service-cta:hover { background: var(--orange-dark); box-shadow: 0 6px 18px rgba(255,107,26,0.35); }

/* ── CONTACTO ── */
/* Enlace de la tarjeta Asincrónico → tienda de cursos */
.card-link {
  display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 1rem; margin-left: 0.5rem;
  font-size: 0.85rem; font-weight: 700; color: var(--teal-dark); text-decoration: none;
}
.card-link:hover { color: var(--orange-dark); }
.card-link .arrow { transition: transform 0.2s ease; }
.card-link:hover .arrow { transform: translateX(3px); }

/* Cursos en video (para personas) → learning.fluentminds.mx */
.learning-band {
  max-width: 1140px; margin: 0 auto;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center;
  background: var(--banner); color: #fff;
  border-radius: calc(var(--radius) * 1.6); padding: 3rem;
  box-shadow: var(--shadow-card);
}
.learning-band .section-eyebrow { color: #ffd2b8; }
.learning-band h2 { color: #fff; }
.learning-band h2 .accent { color: #ffd2b8; }
.learning-band .section-sub { color: rgba(255,255,255,0.82); }
.learning-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.85rem; }
.learning-points li {
  display: flex; gap: 0.75rem; align-items: flex-start;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius); padding: 0.85rem 1rem; font-size: 0.95rem; line-height: 1.5;
}
.learning-points li strong { display: block; }
.learning-points svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; stroke: #ffd2b8; stroke-width: 2.2; fill: none; }
.learning-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
@media (max-width: 860px) {
  .learning-band { grid-template-columns: 1fr; gap: 2rem; padding: 2rem 1.5rem; }
  .learning-actions a { flex: 1 1 100%; text-align: center; }
}

.contact { background: transparent; }
.contact-inner {
  max-width: 1140px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 5rem; align-items: start;
}
.contact-info h2 { margin-bottom: 1rem; }
.contact-item {
  display: flex; align-items: flex-start; gap: 1rem;
  margin-top: 1.75rem;
}
.contact-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: var(--teal-soft); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.contact-icon svg { width: 20px; height: 20px; stroke: var(--teal); stroke-width: 1.75; fill: none; }
.contact-item-label { font-size: 0.72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.07em; }
.contact-item-value { font-size: 0.9375rem; color: var(--ink); font-weight: 500; margin-top: 0.2rem; }
.contact-item-value a { color: var(--teal-dark); text-decoration: none; }
.contact-item-value a:hover { text-decoration: underline; }

/* Formulario */
.form-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 2.5rem;
  box-shadow: var(--shadow-card);
}
.form-title {
  font-size: 1.25rem; font-weight: 800; letter-spacing: -0.01em;
  color: var(--ink); margin-bottom: 0.5rem;
}
.form-subtitle { font-size: 0.875rem; color: var(--muted); margin-bottom: 2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1rem; }
label {
  display: block; font-size: 0.8125rem; font-weight: 600;
  color: var(--ink); margin-bottom: 0.375rem;
}
input, select, textarea {
  width: 100%;
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: 10px; padding: 0.75rem 1rem;
  font-size: 0.9375rem; font-family: 'Inter', sans-serif;
  color: var(--text); transition: border-color 0.2s, background 0.2s;
  outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--teal); background: var(--surface); }
textarea { resize: vertical; min-height: 100px; }
.btn-submit {
  width: 100%; background: var(--orange); color: #fff;
  border: none; padding: 0.9375rem;
  border-radius: 12px; font-size: 1rem; font-weight: 700;
  cursor: pointer; transition: all 0.2s;
  font-family: 'Inter', sans-serif;
  box-shadow: 0 4px 16px rgba(255,107,26,0.3);
}
.btn-submit:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
}
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.form-note { font-size: 0.75rem; color: var(--muted); margin-top: 0.75rem; text-align: center; }
#turnstile-widget { margin-bottom: 1rem; min-height: 1px; }
#turnstile-widget:empty { margin-bottom: 0; }
.form-error {
  display: none; font-size: 0.8125rem; color: var(--red);
  background: var(--red-soft); border: 1px solid rgba(220,38,38,0.25);
  border-radius: 8px; padding: 0.625rem 0.875rem; margin-bottom: 1rem;
  text-align: center; font-weight: 500;
}
.form-error.show { display: block; }
.form-success {
  display: none; text-align: center; padding: 2rem;
}
.form-success.show { display: block; }
.form-success-icon { margin-bottom: 1rem; }
.form-success h3 {
  font-size: 1.4rem; font-weight: 800; letter-spacing: -0.01em;
  color: var(--teal-dark); margin-bottom: 0.5rem;
}
.form-success p { color: var(--muted); font-size: 0.9rem; }

@media (max-width: 860px) {
  .contact-inner { grid-template-columns: 1fr; gap: 3rem; }
  .form-row { grid-template-columns: 1fr; }
}

/* ── FOOTER (sidebar oscuro de la app) ── */
footer {
  background: var(--ink); color: rgba(255,255,255,0.72);
  padding: 3rem 2rem;
  text-align: center;
  border-top: 3px solid var(--orange);
}
.footer-logo {
  display: inline-flex; align-items: center; gap: 0.65rem;
  margin-bottom: 0.75rem;
}
.footer-logo .logo-text strong { color: #fff; }
.footer-logo .logo-text span { color: rgba(255,255,255,0.62); }
.footer-logo .logo-text { text-align: left; }
.footer-tagline { font-size: 0.875rem; margin-bottom: 2rem; }
.footer-links { display: flex; justify-content: center; gap: 2rem; margin-bottom: 2rem; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,0.75); text-decoration: none; font-size: 0.875rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--orange); }
.footer-copy { font-size: 0.8125rem; color: rgba(255,255,255,0.58); }

/* ── FADE IN ── */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
  .progress-fill { transition: none; }
  .chart-line, .chart-area, .chart-pt { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ═══════════════════════════════════════════════════════════════════
   ECOSISTEMA: cursos en video, membresías y acceso a las plataformas
   (index.html y /cursos-en-video/)
   ═══════════════════════════════════════════════════════════════════ */

/* Al saltar a una sección (#membresias, #contacto...) no queda bajo el menú fijo */
section[id] { scroll-margin-top: 56px; }

/* El atributo hidden gana siempre (varias piezas tienen display propio) */
[hidden] { display: none !important; }

/* ── Menú: página actual ── */
.nav-links > a[aria-current="page"] {
  color: #fff;
  text-decoration: underline; text-decoration-color: var(--orange);
  text-decoration-thickness: 2px; text-underline-offset: 8px;
}
nav.scrolled .nav-links > a[aria-current="page"] { color: var(--ink); }

/* ── Botón "Acceder": elige plataforma (una sola cuenta para las dos) ── */
.acceso { position: relative; }
.acceso-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  border: 0; cursor: pointer; font-family: inherit; line-height: inherit;
}
.acceso-btn .caret { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.5; transition: transform 0.2s ease; }
.acceso.abierto .acceso-btn .caret { transform: rotate(180deg); }
.acceso-menu {
  position: absolute; top: calc(100% + 12px); right: 0; z-index: 120;
  width: 336px; padding: 0.6rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; box-shadow: var(--shadow-float);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.acceso.abierto .acceso-menu { opacity: 1; visibility: visible; transform: none; }
.acceso-titulo { padding: 0.5rem 0.65rem 0.35rem; }
.acceso-opcion {
  display: flex; align-items: center; gap: 0.85rem;
  padding: 0.7rem 0.65rem; border-radius: 12px;
  color: var(--ink); text-decoration: none;
  transition: background 0.15s ease;
}
.acceso-opcion:hover, .acceso-opcion:focus-visible { background: var(--bg); outline: none; }
.acceso-icono {
  width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.acceso-icono svg { width: 20px; height: 20px; fill: none; stroke-width: 1.85; stroke-linecap: round; stroke-linejoin: round; }
.acceso-icono.teal { background: var(--teal-soft); }
.acceso-icono.teal svg { stroke: var(--teal); }
.acceso-icono.naranja { background: var(--orange-soft); }
.acceso-icono.naranja svg { stroke: var(--orange-dark); }
.acceso-texto { min-width: 0; }
.acceso-texto strong { display: block; font-size: 0.9375rem; font-weight: 700; line-height: 1.3; }
.acceso-texto small { display: block; font-size: 0.8rem; color: var(--muted); line-height: 1.4; }
.acceso-opcion .arrow { margin-left: auto; color: var(--faint); transition: transform 0.2s ease, color 0.2s ease; }
.acceso-opcion:hover .arrow, .acceso-opcion:focus-visible .arrow { color: var(--orange-dark); transform: translateX(3px); }
.acceso-nota {
  margin-top: 0.35rem; padding: 0.7rem 0.65rem 0.3rem;
  border-top: 1px solid var(--border);
  font-size: 0.78rem; color: var(--muted);
}
@media (max-width: 640px) {
  .acceso-menu { position: fixed; top: 72px; left: 1rem; right: 1rem; width: auto; }
}

/* Menú móvil: las dos plataformas como tarjetas */
.mobile-menu { max-height: calc(100vh - 64px); overflow-y: auto; }
.mobile-menu .mm-acceso { display: grid; gap: 0.5rem; margin-top: 1rem; }
.mobile-menu .mm-acceso .microlabel { padding: 0 0.25rem; }
.mobile-menu .mm-acceso small { font-weight: 500; }
.mobile-menu .mm-acceso a,
.mobile-menu .mm-acceso a:last-child {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.75rem 0.85rem; font-size: 1rem;
  border: 1px solid var(--border); border-radius: 12px;
}

/* ── Hero del inicio: aviso de lo nuevo ── */
.hero-anuncio {
  display: inline-flex; align-items: center; gap: 0.6rem; max-width: 100%;
  margin: -1.5rem 0 1.5rem; padding: 0.3rem 0.95rem 0.3rem 0.3rem;
  border-radius: 100px; border: 1px solid rgba(255,107,26,0.35);
  background: rgba(255,107,26,0.12); color: #ffe3d1;
  font-size: 0.8125rem; font-weight: 600; text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.hero-anuncio:hover { background: rgba(255,107,26,0.2); border-color: rgba(255,107,26,0.55); }
.hero-anuncio .tag {
  flex-shrink: 0; padding: 0.25rem 0.6rem; border-radius: 100px;
  background: var(--orange); color: #fff;
  font-size: 0.66rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
}
.hero-anuncio .arrow { transition: transform 0.2s ease; }
.hero-anuncio:hover .arrow { transform: translateX(3px); }
@media (max-width: 640px) { .hero-anuncio .largo { display: none; } }

/* ── Encabezado de sección con enlace a la derecha ── */
.section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 0.5rem 2rem;
}
.link-flecha {
  display: inline-flex; align-items: center; gap: 0.35rem; margin-bottom: 1.4rem;
  font-size: 0.9rem; font-weight: 700; color: var(--teal-dark); text-decoration: none;
}
.link-flecha:hover { color: var(--orange-dark); }
.link-flecha .arrow { transition: transform 0.2s ease; }
.link-flecha:hover .arrow { transform: translateX(3px); }

/* ── Membresías en miniatura (inicio): escalera de 4 niveles ── */
.membresias-mini {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius); padding: 1.1rem;
}
.membresias-mini > .microlabel { color: #ffd2b8; padding: 0.15rem 0.4rem 0.7rem; }
.mini-lista { list-style: none; display: grid; gap: 0.45rem; }
.mini-lista a {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.85rem;
  padding: 0.7rem 0.8rem; border-radius: 12px;
  background: rgba(255,255,255,0.06); color: #fff; text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}
.mini-lista a:hover { background: rgba(255,255,255,0.14); transform: translateX(2px); }
.mini-lista strong { display: block; font-size: 0.98rem; font-weight: 800; line-height: 1.25; }
.mini-lista small { display: block; font-size: 0.8rem; color: rgba(255,255,255,0.75); line-height: 1.4; }
.mini-tag {
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: #ffd2b8; background: rgba(255,179,71,0.16);
  padding: 0.22rem 0.55rem; border-radius: 100px; white-space: nowrap;
}
.mini-pie {
  display: flex; justify-content: flex-end; padding: 0.75rem 0.4rem 0.1rem;
}
.mini-pie a { color: #ffd2b8; font-size: 0.85rem; font-weight: 700; text-decoration: none; }
.mini-pie a:hover { color: #fff; }
/* Escalón: 4 barras, se llenan según el nivel de la membresía */
.escalon { display: inline-flex; align-items: flex-end; gap: 3px; height: 22px; width: 26px; }
.escalon i { display: block; width: 4px; border-radius: 2px; background: rgba(255,255,255,0.22); }
.escalon i:nth-child(1) { height: 7px; }
.escalon i:nth-child(2) { height: 12px; }
.escalon i:nth-child(3) { height: 17px; }
.escalon i:nth-child(4) { height: 22px; }
.escalon[data-n="1"] i:nth-child(-n+1),
.escalon[data-n="2"] i:nth-child(-n+2),
.escalon[data-n="3"] i:nth-child(-n+3),
.escalon[data-n="4"] i { background: #ffb347; }
.membresia .escalon i { background: var(--border); }
.membresia .escalon[data-n="1"] i:nth-child(-n+1),
.membresia .escalon[data-n="2"] i:nth-child(-n+2),
.membresia .escalon[data-n="3"] i:nth-child(-n+3),
.membresia .escalon[data-n="4"] i { background: var(--orange); }
@media (max-width: 480px) { .mini-tag { display: none; } .mini-lista a { grid-template-columns: auto 1fr; } }

/* ── Cursos en video: hero de 2 columnas con el reproductor ── */
.hero-pagina { min-height: auto; padding: 9rem 2rem 8.5rem; }
.hero-pagina .hero-inner { grid-template-columns: 1.05fr 1fr; gap: 3.5rem; }
.hero-pagina h1 { font-size: clamp(2.2rem, 4vw, 3.3rem); }
.hero-pagina .hero-title-lead { font-size: inherit; white-space: normal; width: auto; }
.hero-pagina .hero-title-rest, .hero-pagina .hero-trust span { text-wrap: balance; }
.hero-pagina .hero-texto { font-size: clamp(1.08rem, 1.8vw, 1.25rem); max-width: 520px; }
.hero-pagina .hero-eyebrow { color: #ffd9c2; }
@media (max-width: 960px) {
  .hero-pagina .hero-inner { grid-template-columns: 1fr; gap: 3.5rem; }
}
@media (max-width: 640px) {
  /* Abajo queda espacio para el reproductor: el hero se funde a blanco en sus últimos 140 px */
  .hero-pagina { padding: 7.5rem 1.25rem 10rem; }
}

.player-wrap { position: relative; width: 100%; max-width: 520px; margin: 0 auto; }
.player-body { display: grid; grid-template-columns: minmax(0, 1fr) 10rem; gap: 0.75rem; padding: 0.85rem; }
.player-main, .player-list { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.player-main { padding: 0.6rem; }
.player-video { position: relative; aspect-ratio: 16 / 9; border-radius: 9px; overflow: hidden; background: var(--banner); }
.player-play {
  position: absolute; left: 50%; top: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px;
  border-radius: 50%; background: #fff; box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  display: flex; align-items: center; justify-content: center;
}
.player-play svg { width: 18px; height: 18px; fill: var(--orange); margin-left: 3px; }
.player-bar { position: absolute; left: 0.75rem; right: 0.75rem; bottom: 0.75rem; height: 4px; border-radius: 4px; background: rgba(255,255,255,0.3); }
.player-bar span { display: block; height: 100%; width: 62%; border-radius: inherit; background: var(--orange); }
.player-main .microlabel { margin-top: 0.7rem; font-size: 0.58rem; }
.player-titulo { font-size: 0.9rem; font-weight: 700; color: var(--ink); line-height: 1.3; }
.player-list { padding: 0.55rem 0; }
.player-list .microlabel { padding: 0 0.75rem 0.35rem; font-size: 0.58rem; }
.player-item {
  display: flex; gap: 0.45rem; align-items: center; padding: 0.38rem 0.75rem;
  font-size: 0.7rem; color: var(--muted); white-space: nowrap; overflow: hidden;
}
.player-item .ic { width: 0.85rem; text-align: center; flex-shrink: 0; }
.player-item.hecho .ic { color: var(--green); }
.player-item.actual { background: var(--teal-soft); color: var(--teal-dark); font-weight: 600; }
.player-wrap .float-card { bottom: -1.75rem; left: auto; right: -1.25rem; z-index: 4; }
@media (max-width: 960px) { .player-wrap .float-card { right: 0.75rem; } }
@media (max-width: 480px) {
  .player-body { grid-template-columns: 1fr; }
  .player-list { display: none; }
}

/* ── Beneficios: tarjeta que se monta sobre el borde del hero ── */
.beneficios { padding-top: 0; }
.beneficios-barra {
  position: relative; z-index: 5; max-width: 1140px; margin: -4.5rem auto 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px; box-shadow: var(--shadow-float);
}
.beneficio { display: flex; gap: 0.9rem; align-items: flex-start; padding: 1.5rem 1.4rem; }
.beneficio + .beneficio { border-left: 1px solid var(--border); }
.beneficio strong { display: block; font-size: 0.95rem; font-weight: 700; color: var(--ink); line-height: 1.3; }
.beneficio span { display: block; font-size: 0.84rem; color: var(--muted); line-height: 1.5; margin-top: 0.2rem; }
.beneficio .card-icon { width: 40px; height: 40px; margin: 0; flex-shrink: 0; }
.beneficio .card-icon svg { width: 20px; height: 20px; }
@media (max-width: 960px) {
  .beneficios-barra { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .beneficio:nth-child(3) { border-left: none; }
  .beneficio:nth-child(n+3) { border-top: 1px solid var(--border); }
}
@media (max-width: 560px) {
  .beneficios-barra { grid-template-columns: 1fr; margin-top: -3.5rem; }
  .beneficio { padding: 1.1rem 1.2rem; }
  .beneficio + .beneficio { border-left: none; border-top: 1px solid var(--border); }
}
.card-icon.naranja { background: var(--orange-soft); }
.card-icon.naranja svg { stroke: var(--orange-dark); }
.card-icon.ambar { background: var(--amber-soft); }
.card-icon.ambar svg { stroke: var(--amber); }

/* ── Tres caminos: tarjetas enteras clicables ── */
.caminos-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem; margin-top: 2.5rem;
}
a.audience-card { display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.audience-card .microlabel { margin-bottom: 0.35rem; }
.audience-card .card-link { margin: auto 0 0; padding-top: 1.25rem; }
a.audience-card:hover .card-link { color: var(--orange-dark); }
a.audience-card:hover .card-link .arrow { transform: translateX(3px); }
@media (max-width: 960px) {
  .caminos-grid { grid-template-columns: 1fr; max-width: 560px; }
  /* En el inicio .audience-card se desliza (80 % de ancho); aquí van apiladas */
  .caminos-grid .audience-card { flex: none; max-width: none; }
}

/* ── Cursos publicados (vienen de la API de la plataforma) ── */
.cursos-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem; margin-top: 1rem;
}
.curso-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-card); color: inherit; text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.curso-card:hover {
  transform: translateY(-4px); border-color: rgba(16,145,135,0.35);
  box-shadow: 0 12px 40px rgba(16,145,135,0.12);
}
.curso-portada { position: relative; aspect-ratio: 16 / 9; background: var(--banner); }
.curso-portada img { display: block; width: 100%; height: 100%; object-fit: cover; }
.curso-portada .sin-portada { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.curso-portada .sin-portada svg { width: 46px; height: 46px; fill: none; stroke: rgba(255,255,255,0.75); stroke-width: 1.5; }
.curso-nivel {
  position: absolute; left: 0.75rem; top: 0.75rem;
  padding: 0.25rem 0.6rem; border-radius: 100px;
  background: rgba(255,255,255,0.92); color: var(--ink);
  font-size: 0.68rem; font-weight: 700;
}
.curso-cuerpo { flex: 1; display: flex; flex-direction: column; gap: 0.3rem; padding: 1.1rem 1.15rem 1.2rem; }
.curso-titulo { font-size: 1.02rem; font-weight: 700; color: var(--ink); line-height: 1.35; }
.curso-card:hover .curso-titulo { color: var(--teal-dark); }
.curso-meta { font-size: 0.78rem; color: var(--muted); }
.curso-precio {
  margin-top: auto; padding-top: 0.8rem;
  display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem;
}
.curso-precio strong { font-size: 1.15rem; font-weight: 800; color: var(--ink); letter-spacing: -0.01em; }
.curso-precio .incluido { font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.curso-precio .ver { font-size: 0.82rem; font-weight: 700; color: var(--teal-dark); white-space: nowrap; }
.curso-card:hover .curso-precio .ver { color: var(--orange-dark); }
/* Esqueleto mientras cargan */
.curso-card.esqueleto { pointer-events: none; box-shadow: none; }
.esqueleto .curso-portada, .esqueleto .linea {
  background: linear-gradient(90deg, #eef2f6 25%, #f7f9fb 50%, #eef2f6 75%);
  background-size: 200% 100%; animation: brillo 1.3s ease-in-out infinite;
}
.esqueleto .linea { height: 0.8rem; border-radius: 6px; }
.esqueleto .linea.media { width: 70%; }
.esqueleto .linea.corta { width: 40%; margin-top: auto; }
@keyframes brillo { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .esqueleto .curso-portada, .esqueleto .linea { animation: none; } }
/* Sin cursos todavía (o sin conexión con la plataforma) */
.cursos-aviso {
  margin-top: 1rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem;
  padding: 1.75rem 2rem; border-radius: var(--radius);
  background: var(--bg); border: 1px dashed #cbd5e1;
}
.cursos-aviso strong { display: block; font-size: 1.05rem; color: var(--ink); }
.cursos-aviso p { font-size: 0.92rem; color: var(--muted); margin-top: 0.2rem; max-width: 560px; }
.btn-teal {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--teal); color: #fff; padding: 0.8rem 1.4rem; border-radius: 12px;
  font-weight: 700; font-size: 0.95rem; text-decoration: none;
  box-shadow: 0 4px 14px rgba(13,125,116,0.25);
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn-teal:hover { background: var(--teal-dark); transform: translateY(-1px); }

/* ── Cómo funciona con 3 pasos (más anchos y apilados en móvil) ── */
.method-track.tres .method-track-cell,
.method-grid.tres .method-item { max-width: 340px; }
@media (max-width: 640px) {
  .method-grid.tres {
    flex-direction: column; flex-wrap: nowrap; overflow: visible;
    padding: 0; margin: 2rem 0 0;
  }
  .method-grid.tres .method-item { flex: 1 1 auto; max-width: none; }
}

/* ── Certificado ── */
.certificado-inner {
  max-width: 1140px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.cert-mock {
  max-width: 420px; margin: 0 auto; padding: 0.6rem;
  background: #fff; border-radius: 18px; box-shadow: var(--shadow-float);
  transform: rotate(-2deg);
}
.cert-mock-in {
  border: 4px double rgba(13,125,116,0.45); border-radius: 13px;
  padding: 2rem 1.5rem; text-align: center;
}
.cert-mock img { display: block; height: 54px; width: auto; margin: 0 auto; }
.cert-kicker { margin-top: 1rem; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; color: var(--faint); }
.cert-chico { margin-top: 0.75rem; font-size: 0.75rem; color: var(--faint); }
.cert-nombre { font-size: 1.35rem; font-weight: 800; color: var(--ink); letter-spacing: -0.01em; }
.cert-curso { font-weight: 700; color: var(--teal-dark); }
.cert-folio { margin-top: 1rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.62rem; color: var(--faint); }
.check-lista { list-style: none; display: grid; gap: 0.8rem; margin-top: 1.5rem; }
.check-lista li { display: flex; gap: 0.75rem; align-items: flex-start; color: var(--muted); font-size: 0.97rem; line-height: 1.55; }
.check-lista svg {
  width: 24px; height: 24px; flex-shrink: 0; padding: 5px; border-radius: 50%;
  background: var(--teal-soft); stroke: var(--teal); stroke-width: 3; fill: none;
}
.check-lista strong { color: var(--ink); }
@media (max-width: 860px) {
  .certificado-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .cert-mock-wrap { order: 2; }
}

/* ── Membresías para empresas: 2 grupos (video / en vivo) × 2 niveles ── */
.membresias-grupos {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem; margin-top: 2.5rem; align-items: stretch;
}
@media (max-width: 1100px) { .membresias-grupos { grid-template-columns: 1fr; max-width: 760px; } }
.membresia-grupo { display: flex; flex-direction: column; }
.grupo-cabeza {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0 0.25rem 0.9rem; margin-bottom: 1.25rem;
  border-bottom: 2px solid var(--border);
}
.grupo-cabeza .card-icon { width: 36px; height: 36px; margin: 0; border-radius: 10px; }
.grupo-cabeza .card-icon svg { width: 18px; height: 18px; }
.grupo-cabeza strong { display: block; font-size: 0.98rem; color: var(--ink); line-height: 1.3; }
.grupo-cabeza small { display: block; font-size: 0.8rem; color: var(--muted); }
.grupo-tarjetas { flex: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 640px) { .grupo-tarjetas { grid-template-columns: 1fr; } }
.membresia {
  position: relative; display: flex; flex-direction: column;
  padding: 1.6rem 1.4rem 1.4rem; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-card);
  scroll-margin-top: 96px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.membresia::before {
  content: ''; position: absolute; top: 0; left: 1.4rem; right: 1.4rem; height: 3px;
  border-radius: 0 0 3px 3px; background: var(--teal);
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease;
}
.membresia:hover { transform: translateY(-4px); border-color: rgba(16,145,135,0.35); box-shadow: 0 12px 40px rgba(16,145,135,0.12); }
.membresia:hover::before, .membresia:target::before { transform: scaleX(1); }
.membresia:target { border-color: var(--teal); }
.membresia.destacada { border-color: var(--orange); box-shadow: 0 8px 40px rgba(255,107,26,0.16); }
.membresia.destacada::before { background: var(--orange); transform: scaleX(1); }
.membresia .featured-badge { top: -0.7rem; left: 1.4rem; }
.membresia-cabeza { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; }
.membresia-nombre { font-size: 1.45rem; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); line-height: 1.15; }
.membresia .service-kicker { margin: 0.3rem 0 0.75rem; }
.membresia-desc { font-size: 0.89rem; color: var(--muted); line-height: 1.55; margin-bottom: 1.1rem; }
.membresia-lista { list-style: none; display: grid; gap: 0.6rem; padding-top: 1.1rem; margin-bottom: 1.1rem; border-top: 1px solid var(--border); }
.membresia-lista li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.86rem; line-height: 1.45; color: var(--text); }
.membresia-lista svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; fill: none; stroke: var(--teal); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.membresia-lista li.no { color: var(--faint); }
.membresia-lista li.no svg { stroke: #cbd5e1; }
.membresia-ideal { margin-top: auto; padding-bottom: 1.1rem; font-size: 0.8rem; color: var(--muted); line-height: 1.5; }
.membresia-ideal strong { color: var(--ink); }
.membresias-nota { margin-top: 2rem; text-align: center; font-size: 0.92rem; color: var(--muted); }
.membresias-nota a { color: var(--teal-dark); font-weight: 700; text-decoration: none; }
.membresias-nota a:hover { color: var(--orange-dark); }

/* ── Preguntas frecuentes ── */
.faq-inner { max-width: 820px; margin: 0 auto; }
.faq-lista {
  margin-top: 2rem; background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; box-shadow: var(--shadow-card);
}
.faq-lista details + details { border-top: 1px solid var(--border); }
.faq-lista summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 1.5rem; font-weight: 700; font-size: 1rem; color: var(--ink);
}
.faq-lista summary::-webkit-details-marker { display: none; }
.faq-lista summary:hover { color: var(--teal-dark); }
.faq-lista summary:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; border-radius: 14px; }
.faq-lista .mas {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: var(--orange-soft); color: var(--orange-dark); font-size: 1.15rem; font-weight: 700;
  transition: transform 0.2s ease;
}
.faq-lista details[open] .mas { transform: rotate(45deg); }
.faq-lista details p { padding: 0 1.5rem 1.3rem; color: var(--muted); font-size: 0.94rem; line-height: 1.7; }

/* ── Cierre: banda oscura como el hero ── */
.cta-final-band {
  position: relative; overflow: hidden; max-width: 1140px; margin: 0 auto;
  padding: 3.5rem 2rem; text-align: center; color: #fff;
  border-radius: calc(var(--radius) * 1.6);
  background: linear-gradient(180deg, var(--hero-top) 0%, var(--hero-mid) 55%, #1c565a 100%);
}
.cta-final-band::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 80% at 80% 20%, rgba(255,122,26,0.28) 0%, transparent 65%);
}
.cta-final-band > * { position: relative; }
.cta-final-band h2 { color: #fff; }
.cta-final-band h2 .accent { color: #ffb347; }
.cta-final-band p { color: rgba(255,255,255,0.82); max-width: 560px; margin: 0 auto; font-size: 1.05rem; }
.cta-final-band .hero-actions { justify-content: center; margin-top: 2rem; }
@media (max-width: 640px) {
  .cta-final-band { padding: 2.75rem 1.25rem; }
  .cta-final-band .hero-actions a { flex: 1 1 100%; text-align: center; }
}

/* ── Pie: accesos a las dos plataformas ── */
.footer-acceso { margin: -0.75rem 0 2rem; font-size: 0.85rem; color: rgba(255,255,255,0.6); }
.footer-acceso a { color: #ffd2b8; text-decoration: none; font-weight: 600; }
.footer-acceso a:hover { color: var(--orange); }
