/* ============================================================================
   LANDING F-UMBRAL — hoja única de la landing de Academia.
   Origen: _tests_local/piloto_scrub_hero/piloto_f_umbral.html (bloque <style>)
   + las reglas del fondo por scroll que el piloto tomaba de hero-scrub.css.
   Dirección de arte del portafolio + arquitectura de navegación V11 +
   sistema de botones "Umbral" (el glow ES el estado, radio 2px).
   Alcance: solo la landing. No toca themes.css ni estilos de preguntas.
   ========================================================================== */

:root {
  --bg-color: #030305;
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.5);
  --accent-blue: #3b82f6;
  --accent-violet: #8b5cf6;
  --accent-magenta: #ec4899;
  --glass-bg: rgba(18, 12, 32, 0.62);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  --font-main: 'Plus Jakarta Sans', -apple-system, "Segoe UI", Roboto, sans-serif;
  /* Sistema Umbral */
  --u-magenta: #ff2fd0;
  --u-amber: #ff9a2e;
  --u-violet: #a021f0;
  --u-teal: #2ee6c0;
  --u-red: #ff1f3d;
  --u-ink: #150710;
  --u-utext: #e3d0dc;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body.landing-umbral { background: var(--bg-color); color: var(--text-primary); font-family: var(--font-main); }

/* ---------- Fondo por scroll (canvas de 71 frames + poster de respaldo) ---------- */
.fondo-fijo { position: fixed; inset: 0; z-index: 1; pointer-events: none; }
.fondo-fijo .scrub-hero__poster,
.fondo-fijo .scrub-hero__canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block; opacity: 0.92;
}
/* La barra de carga solo tiene sentido si el motor va a cargar frames: nace
   invisible y el motor la enciende. Sin JS (o en modo estatico) no aparece. */
.scrub-hero__loader {
  position: absolute; left: 50%; bottom: 46px; transform: translateX(-50%);
  width: min(220px, 50vw); height: 3px; background: rgba(255, 255, 255, .15);
  border-radius: 2px; overflow: hidden; z-index: 3; opacity: 0; transition: opacity .5s;
}
.scrub-hero__loader.activo { opacity: 1; }
.scrub-hero__loader.oculto { opacity: 0; }
.scrub-hero__bar { width: 0; height: 100%; background: var(--u-teal); transition: width .3s; }
/* Con el motor pintando, el poster se OCULTA del todo: el canvas es
   semitransparente y un poster visible debajo deja un fantasma del frame 1. */
#scrub-hero.scrub-pintado .scrub-hero__poster { visibility: hidden; }

.page-wrapper { position: relative; z-index: 2; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.gradient-text-outline { color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .9); }

.glass-panel {
  background: var(--glass-bg); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border); border-radius: 20px; box-shadow: var(--glass-shadow);
  transition: transform .3s cubic-bezier(.16,1,.3,1), border-color .3s ease, box-shadow .3s ease;
}
.glass-panel:hover { border-color: rgba(236,72,153,.3); box-shadow: 0 25px 50px rgba(139,92,246,.2); }

/* ---------- Botones: sistema Umbral ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', var(--font-main);
  font-size: 16px; font-weight: 500; line-height: 1;
  padding: 16px 32px; border-radius: 2px; border: none;
  text-decoration: none; cursor: pointer; transition: all .15s ease;
}
.btn-large { padding: 16px 36px; }
/* Primario: magenta -> ámbar. Un solo primario por bloque. */
.btn-gradient {
  border: 0; background: var(--u-magenta); color: var(--u-ink);
  box-shadow: 0 0 34px rgba(255, 47, 208, .5);
}
.btn-gradient:hover {
  background: var(--u-amber); color: var(--u-ink);
  box-shadow: 0 0 42px rgba(255, 154, 46, .6);
}
.btn-gradient:active { background: #e81cb8; box-shadow: 0 0 18px rgba(255, 47, 208, .45); }
/* Secundario: contorno violeta, nunca se rellena */
.btn-pill-outline, .btn-ghost {
  padding: 15px 30px; border: 1px solid var(--u-violet);
  background: transparent; color: var(--u-utext); box-shadow: none;
}
.btn-pill-outline:hover, .btn-ghost:hover {
  border-color: var(--u-magenta); color: #fff;
  box-shadow: 0 0 26px rgba(255, 47, 208, .3); background: transparent;
}
.btn:focus-visible, .mobile-toggle:focus-visible { outline: 2px solid var(--u-teal); outline-offset: 3px; }

/* ---------- Navbar con menú móvil ---------- */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 100; padding: 16px 0;
  backdrop-filter: blur(16px); background: rgba(3,3,5,.7); border-bottom: 1px solid rgba(255,255,255,.05);
}
.nav-container { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.logo { font-size: 22px; font-weight: 800; color: #fff; text-decoration: none; letter-spacing: -.5px; white-space: nowrap; }
.logo-accent { color: var(--accent-magenta); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-link { color: var(--text-secondary); text-decoration: none; font-size: 14px; font-weight: 500; transition: color .2s; }
.nav-link:hover { color: #fff; }
.nav-cta { padding: 11px 20px; font-size: 14px; white-space: nowrap; }
/* min 44x44: objetivo tactil accesible (el piloto quedaba en 39x37). */
.mobile-toggle {
  display: none; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; cursor: pointer; padding: 12px; min-width: 44px; min-height: 44px;
  border: 1px solid rgba(255,255,255,.15); border-radius: 10px; background: transparent;
}
.mobile-toggle span { width: 20px; height: 2px; background: #fff; border-radius: 2px; }
.menu-movil { display: none; }
.menu-movil[hidden] { display: none; }

/* ---------- Hero ---------- */
.hero-section { min-height: 100vh; padding-top: 130px; padding-bottom: 70px; display: flex; align-items: center; }
.hero-container { display: flex; flex-direction: column; align-items: center; text-align: center; width: 100%; }
.hero-eyebrow { font-size: 13px; letter-spacing: 3px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 16px; }
.hero-title { font-size: clamp(42px, 6.5vw, 76px); font-weight: 800; line-height: 1.1; letter-spacing: -1.5px; margin-bottom: 22px; }
.hero-subtitle { font-size: clamp(18px, 2.2vw, 24px); color: var(--text-secondary); margin-bottom: 36px; }
.wavy-ribbon-hero { width: 180px; margin: -8px auto 26px; opacity: .9; }
.scroll-indicator {
  display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px;
  letter-spacing: 1px; color: var(--text-muted); text-transform: uppercase; margin-bottom: 48px;
  animation: bounce 2s infinite;
}
@keyframes bounce { 0%,20%,50%,80%,100% { transform: translateY(0); } 40% { transform: translateY(-8px); } 60% { transform: translateY(-4px); } }

.consultation-card {
  width: 100%; max-width: 760px; padding: 34px 42px;
  background: rgba(22,14,40,.75); border: 1px solid rgba(236,72,153,.25);
  box-shadow: 0 20px 60px rgba(139,92,246,.25); text-align: center;
}
.card-tagline { font-size: 14px; color: var(--text-secondary); margin-bottom: 8px; }
.card-title { font-size: clamp(20px, 3vw, 28px); font-weight: 700; margin-bottom: 24px; }
.card-botones { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- Secciones ---------- */
.seccion { padding: 110px 0; }
.section-header { margin-bottom: 54px; display: flex; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.section-title { font-size: clamp(34px, 5vw, 56px); font-weight: 800; line-height: 1.1; letter-spacing: -1px; }
.section-sub { width: 100%; color: var(--text-secondary); max-width: 640px; margin-top: 10px; }
.wavy-mini { width: 100px; margin-bottom: 12px; }

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.service-card { padding: 36px 30px; min-height: 300px; display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.gradient-card-1 { background: linear-gradient(145deg, rgba(168,85,247,.45), rgba(236,72,153,.35)); border: 1px solid rgba(236,72,153,.3); }
.gradient-card-2 { background: linear-gradient(145deg, rgba(139,92,246,.45), rgba(59,130,246,.35)); border: 1px solid rgba(59,130,246,.3); }
.gradient-card-3 { background: linear-gradient(145deg, rgba(147,51,234,.45), rgba(217,70,239,.35)); border: 1px solid rgba(217,70,239,.3); }
.service-num { font-size: 13px; letter-spacing: 2px; color: var(--text-muted); margin-bottom: 10px; }
.service-title { font-size: 26px; font-weight: 700; margin-bottom: 18px; line-height: 1.2; }
.service-list { list-style: none; display: flex; flex-direction: column; gap: 11px; padding: 0; }
.service-list li { font-size: 15px; color: var(--text-secondary); display: flex; align-items: center; gap: 10px; }
.service-list .dot { color: #fff; font-size: 18px; }
.service-meta { margin-top: auto; padding-top: 18px; }

/* Chips de datos en monoespaciada + señal turquesa */
.service-meta, .hero-eyebrow {
  font-family: 'JetBrains Mono', monospace; letter-spacing: .16em;
  text-transform: uppercase; font-size: 12px;
}
.service-meta { color: var(--u-teal); }

.steps-container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.steps-list { display: flex; flex-direction: column; gap: 22px; }
.step-item {
  display: flex; align-items: center; gap: 20px; padding: 18px 24px;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px; backdrop-filter: blur(12px); transition: transform .3s;
}
.step-item:hover { transform: translateX(10px); border-color: rgba(139,92,246,.4); }
.step-badge {
  width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px;
  box-shadow: 0 0 15px rgba(59,130,246,.5); flex-shrink: 0;
}
.step-text { font-size: 16px; font-weight: 500; color: var(--text-secondary); }
.step-text strong { color: #fff; }
.steps-header { display: flex; flex-direction: column; justify-content: center; gap: 22px; align-items: flex-start; }
.steps-title { font-size: clamp(34px, 4.5vw, 54px); font-weight: 800; line-height: 1.15; letter-spacing: -1px; }
.big-number { font-size: clamp(40px, 5.5vw, 68px); color: var(--text-primary); }

.recursos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.recurso-card { padding: 26px 24px; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 8px; }
.recurso-card h3 { font-size: 18px; font-weight: 700; }
.recurso-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.55; }
.recurso-card .flecha {
  margin-top: auto; padding-top: 12px; color: var(--u-amber); font-weight: 700;
  font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: .16em;
}
.recurso-card:hover .flecha { color: var(--u-magenta); }

.modalidades-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.modalidad-card { padding: 32px 30px; display: flex; flex-direction: column; gap: 10px; }
.modalidad-card h3 { font-size: 21px; font-weight: 700; }
.modalidad-card p { color: var(--text-secondary); font-size: 15px; line-height: 1.6; }
.modalidad-card .btn { margin-top: 14px; align-self: flex-start; }

.protocolo-lista { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
/* "Cómo funciona" se lee sobre la parte más luminosa del fondo animado: el
   panel casi transparente dejaba el texto blanco sobre el vórtice. Fondo con
   cuerpo + títulos en turquesa (el mismo acento de los chips de datos). */
.proto-item {
  padding: 22px 24px; border-radius: 16px;
  background: rgba(18, 12, 32, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(46, 230, 192, .18);
}
.proto-item h4 {
  font-size: 15px; margin-bottom: 8px; color: var(--u-teal);
  font-family: 'JetBrains Mono', monospace; letter-spacing: .06em;
}
.proto-item p { font-size: 14px; color: rgba(233, 240, 255, .88); line-height: 1.55; }

.cta-final { text-align: center; padding: 110px 0 140px; }
.cta-final h2 { font-size: clamp(30px, 4.5vw, 52px); font-weight: 800; letter-spacing: -1px; margin-bottom: 14px; }
.cta-final p { color: var(--text-secondary); margin-bottom: 26px; }

.footer { border-top: 1px solid rgba(255,255,255,.07); padding: 34px 0 46px; }
.footer-container { text-align: center; color: var(--text-muted); font-size: 13px; line-height: 1.7; }

/* ---------- Móvil ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .mobile-toggle { display: flex; }
  /* El menu cuelga del header real (top:100% del .navbar). Con un top fijo
     en px se solapaba con la barra al crecer el CTA a 44 px de alto. */
  .menu-movil.abierto {
    display: flex; flex-direction: column; gap: 4px; position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(3,3,5,.96); backdrop-filter: blur(18px); padding: 14px 24px 20px;
    border-bottom: 1px solid rgba(255,255,255,.08); z-index: 99;
  }
  .menu-movil a { color: var(--text-secondary); text-decoration: none; padding: 14px 4px; font-size: 16px; border-bottom: 1px solid rgba(255,255,255,.05); }
  .menu-movil a:last-child { border-bottom: none; color: #fff; font-weight: 600; }
  .nav-cta { padding: 15px 18px; font-size: 13px; }
  .hero-section { padding-top: 104px; padding-bottom: 44px; }
  .hero-title { letter-spacing: -.5px; }
  .hero-subtitle { margin-bottom: 24px; }
  .wavy-ribbon-hero { width: 130px; margin-bottom: 18px; }
  .scroll-indicator { margin-bottom: 30px; }
  .consultation-card { padding: 24px 18px; }
  .seccion { padding: 72px 0; }
  .steps-container, .modalidades-grid { grid-template-columns: 1fr; gap: 36px; }
  .service-card { min-height: 0; }
  .cta-final { padding: 80px 0 100px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-indicator { animation: none; }
  .btn { transition: none; }
  .btn:hover, .step-item:hover, .glass-panel:hover { transform: none; }
}
