/* =========================================================
   SENTINEL CONTROL™ — Sistema visual del sitio
   Construido sobre los tokens oficiales (tokens.css) del
   Manual de marca v3.2. No se redefinen valores de marca aquí:
   solo se componen.
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Bitter:ital,wght@0,400;0,500;0,600;0,700;1,500&family=Inter:wght@400;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root{
  /* Alias semánticos sobre las rampas oficiales (sc-*) */
  --navy:        var(--sc-azul-noche-950);   /* #08172F */
  --navy-raise:  #0E2142;                     /* panel elevado sobre navy, interpolado, no es ancla */
  --cian:        var(--sc-cian-300);          /* #0BE1F9 — solo sobre oscuro */
  --senal:       var(--sc-azul-senal-500);    /* #0096E9 — puente, degradados */
  --profundo:    var(--sc-azul-profundo-700); /* #0062C0 — acción sobre claro */
  --acero:       var(--sc-acero-700);         /* #5A6B85 */
  --violeta:     var(--sc-violeta-600);       /* solo dataviz/diagramas */
  --verde:       var(--sc-verde-500);
  --verde-on-light: var(--sc-verde-700);
  --verde-on-dark:  var(--sc-verde-600);
  --ambar:       var(--sc-ambar-400);
  --ambar-on-light: var(--sc-ambar-700);
  --ambar-on-dark:  var(--sc-ambar-500);
  --rojo:        var(--sc-rojo-600);
  --rojo-on-light: var(--sc-rojo-700);
  --rojo-on-dark:  var(--sc-rojo-400);

  --paper: #FBFCFE;
  --paper-dim: var(--sc-acero-50);
  --border-dark: #1E3B60;
  --border-light: var(--sc-acero-200);
  --text-on-dark-hi: #FFFFFF;
  --text-on-dark-mid: var(--sc-acero-300);
  --text-on-light-hi: var(--navy);
  --text-on-light-mid: var(--sc-acero-700);

  --f-title: 'Bitter', Georgia, serif;
  --f-body: 'Inter', -apple-system, sans-serif;
  --f-mono: 'JetBrains Mono', 'SF Mono', monospace;

  --radius-card: 10px;
  --radius-control: 8px;
  --radius-pill: 999px;

  --ease-brand: cubic-bezier(.2,.7,.3,1);
  --dur-fast: 180ms;
  --dur-med: 420ms;
  --dur-slow: 700ms;

  --wrap: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

/* ---------- Reset ---------- */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: auto; }
html.has-smooth-scroll{ scroll-behavior: auto; }
body{
  margin: 0;
  background: var(--paper);
  color: var(--text-on-light-hi);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4{ margin: 0; font-family: var(--f-title); font-weight: 500; }
p{ margin: 0; }
button{ font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.container{ max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.mono{ font-family: var(--f-mono); font-feature-settings: "tnum" 1; }

::selection{ background: var(--cian); color: var(--navy); }

/* Custom scrollbar (webkit) */
::-webkit-scrollbar{ width: 10px; }
::-webkit-scrollbar-track{ background: var(--paper-dim); }
::-webkit-scrollbar-thumb{ background: var(--acero); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover{ background: var(--profundo); }

/* ---------- Accesibilidad / reduced motion ---------- */
.skip-link{
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--cian); color: var(--navy); padding: .6rem 1rem; font-weight: 600;
}
.skip-link:focus{ left: var(--gutter); top: var(--gutter); }
:focus-visible{ outline: 2px solid var(--cian); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Progress bar ---------- */
.scroll-progress{
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--cian); z-index: 2000; transition: width 80ms linear;
}

/* ---------- Cursor personalizado (solo puntero fino) ---------- */
.cursor-dot{
  position: fixed; top: 0; left: 0; width: 10px; height: 10px; border-radius: 50%;
  background: var(--cian); pointer-events: none; z-index: 3000; mix-blend-mode: difference;
  transform: translate(-50%,-50%); transition: width var(--dur-fast) var(--ease-brand), height var(--dur-fast) var(--ease-brand), opacity var(--dur-fast);
  opacity: 0;
}
.cursor-dot.is-visible{ opacity: 1; }
.cursor-dot.is-active{ width: 46px; height: 46px; background: transparent; border: 1.5px solid var(--cian); }
@media (pointer: coarse), (prefers-reduced-motion: reduce){ .cursor-dot{ display: none; } }

/* ---------- Loader ---------- */
.loader{
  position: fixed; inset: 0; z-index: 4000; background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .5s var(--ease-brand), visibility .5s;
}
.loader img{ width: 56px; height: 56px; opacity: 0; transform: scale(.85); transition: opacity .6s var(--ease-brand), transform .6s var(--ease-brand); }
.loader.is-ready img{ opacity: 1; transform: scale(1); }
.loader.is-done{ opacity: 0; visibility: hidden; }
@media (prefers-reduced-motion: reduce){ .loader{ display: none; } }

/* =========================================================
   HEADER
   ========================================================= */
.site-header{
  position: fixed; top: 0; left: 0; right: 0; z-index: 1500;
  display: flex; align-items: center; justify-content: space-between;
  padding: .85rem var(--gutter);
  background: rgba(8,23,47,.46);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: background var(--dur-med) var(--ease-brand), padding var(--dur-med) var(--ease-brand);
}
.site-header.is-solid{ background: rgba(8,23,47,.86); padding: .6rem var(--gutter); }
.brand-mark{ display: flex; align-items: center; gap: .6rem; }
.brand-mark img{ height: 50px; width: auto; }
.main-nav{ display: none; }
.main-nav ul{ display: flex; gap: 1.9rem; }
.main-nav a{
  font-size: .86rem; font-weight: 600; color: var(--text-on-dark-mid);
  letter-spacing: .01em; position: relative; padding: .2rem 0;
  transition: color var(--dur-fast);
}
.main-nav a::after{
  content: ""; position: absolute; left: 0; right: 100%; bottom: -3px; height: 1.5px;
  background: var(--cian); transition: right var(--dur-med) var(--ease-brand);
}
.main-nav a:hover, .main-nav a:focus-visible{ color: #fff; }
.main-nav a:hover::after, .main-nav a:focus-visible::after{ right: 0; }
.header-actions{ display: flex; align-items: center; gap: .9rem; }
.header-actions > a.btn{ display: none; }
.menu-toggle{ display: flex; flex-direction: column; gap: 4px; padding: .5rem; z-index: 1600; }
.menu-toggle span{ width: 20px; height: 1.5px; background: #fff; transition: transform var(--dur-fast), opacity var(--dur-fast); }

@media (min-width: 880px){
  .main-nav{ display: block; }
  .menu-toggle{ display: none; }
  .header-actions > a.btn{ display: inline-flex; }
}

.mobile-drawer{
  position: fixed; inset: 0; z-index: 1400; background: var(--navy);
  display: flex; flex-direction: column; justify-content: center; gap: 1.6rem;
  padding: 2rem var(--gutter); transform: translateY(-100%); transition: transform var(--dur-med) var(--ease-brand);
}
.mobile-drawer.is-open{ transform: translateY(0); }
.mobile-drawer a{ font-family: var(--f-title); font-size: 1.6rem; color: #fff; }
.mobile-drawer .mono{ color: var(--cian); font-size: .8rem; }
@media (min-width: 880px){ .mobile-drawer{ display: none; } }

/* ---------- Botones ---------- */
.btn{
  display: inline-flex; align-items: center; gap: .55rem; font-weight: 600; font-size: .92rem;
  padding: .85rem 1.5rem; border-radius: var(--radius-control);
  transition: transform var(--dur-fast) var(--ease-brand), box-shadow var(--dur-fast), background var(--dur-fast);
  white-space: nowrap;
}
.btn svg{ width: 16px; height: 16px; }
.btn-cian{ background: var(--cian); color: var(--navy); }
.btn-cian:hover{ box-shadow: 0 0 0 5px rgba(11,225,249,.18); transform: translateY(-1px); }
.btn-blue{ background: var(--profundo); color: #fff; }
.btn-blue:hover{ box-shadow: 0 10px 24px -8px rgba(0,98,192,.55); transform: translateY(-1px); }
.btn-ghost-dark{ border: 1px solid rgba(255,255,255,.28); color: #fff; }
.btn-ghost-dark:hover{ border-color: var(--cian); color: var(--cian); }
.btn-ghost-light{ border: 1px solid var(--border-light); color: var(--navy); }
.btn-ghost-light:hover{ border-color: var(--profundo); color: var(--profundo); }
[data-magnetic]{ will-change: transform; }

/* =========================================================
   SECCIONES — base
   ========================================================= */
section{ position: relative; }
.section-dark{ background: var(--navy); color: #fff; }
.section-light{ background: var(--paper); color: var(--text-on-light-hi); }
.section-dim{ background: var(--paper-dim); color: var(--text-on-light-hi); }
.section-pad{ padding: clamp(4.5rem, 9vw, 8rem) 0; }

.eyebrow{
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--f-mono); font-size: .76rem; letter-spacing: .09em; text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.section-dark .eyebrow{ color: var(--cian); }
.section-light .eyebrow, .section-dim .eyebrow{ color: var(--profundo); }
.eyebrow::before{ content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

h2.h-title{ font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.12; letter-spacing: -.01em; max-width: 18ch; }
.section-dark h2.h-title{ color: #fff; }
.lede{ font-size: clamp(1.02rem, 1.3vw, 1.18rem); color: var(--text-on-light-mid); max-width: 56ch; margin-top: 1.1rem; }
.section-dark .lede{ color: var(--text-on-dark-mid); }

/* Visible por defecto: sin JS (o si JS tarda/falla), el contenido se ve.
   Solo si main.js llega a añadir .pre se arma el estado oculto que
   .is-visible revierte — igual que el titular del hero. */
.reveal{ transition: opacity var(--dur-slow) var(--ease-brand), transform var(--dur-slow) var(--ease-brand); }
.reveal.pre{ opacity: 0; transform: translateY(26px); }
.reveal.pre.is-visible{ opacity: 1; transform: translateY(0); }
.reveal-stagger > *{ transition: opacity var(--dur-med) var(--ease-brand), transform var(--dur-med) var(--ease-brand); }
.reveal-stagger.pre > *{ opacity: 0; transform: translateY(20px); }
.reveal-stagger.pre.is-visible > *{ opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(1){ transition-delay: 0ms; }
.reveal-stagger.is-visible > *:nth-child(2){ transition-delay: 90ms; }
.reveal-stagger.is-visible > *:nth-child(3){ transition-delay: 180ms; }
.reveal-stagger.is-visible > *:nth-child(4){ transition-delay: 270ms; }
.reveal-stagger.is-visible > *:nth-child(5){ transition-delay: 360ms; }
.reveal-stagger.is-visible > *:nth-child(6){ transition-delay: 450ms; }

/* =========================================================
   HERO
   ========================================================= */
.hero{
  min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
  padding: 8.5rem var(--gutter) 5rem; overflow: hidden; isolation: isolate;
}
.hero-bg{ position: absolute; inset: 0; z-index: -1; background: var(--navy); }
.hero-bg .blob{
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; will-change: transform;
}
.hero-bg .blob-1{ width: 46vw; height: 46vw; background: radial-gradient(circle, var(--senal), transparent 70%); top: -14%; right: -10%; }
.hero-bg .blob-2{ width: 34vw; height: 34vw; background: radial-gradient(circle, var(--cian), transparent 70%); bottom: -12%; left: -8%; opacity: .32; }
.hero-bg .grid-lines{
  position: absolute; inset: 0; opacity: .25;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at 60% 30%, black 0%, transparent 65%);
  mask-image: radial-gradient(ellipse at 60% 30%, black 0%, transparent 65%);
}
.hero-bg .noise{
  position: absolute; inset: 0; opacity: .05; mix-blend-mode: overlay; pointer-events: none;
}

.hero-grid{ display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; max-width: var(--wrap); margin: 0 auto; width: 100%; }
@media (min-width: 980px){ .hero-grid{ grid-template-columns: 1.1fr .9fr; } }

.hero-copy .eyebrow{ color: var(--cian); }
.hero-title{
  color: #fff; font-size: clamp(2.5rem, 6vw, 4.4rem); line-height: 1.04; letter-spacing: -.015em;
}
/* Visible por defecto (sin JS, o si el script tarda): el titular nunca
   depende de JavaScript para mostrarse. Solo si main.js llega a marcar
   .js-anim se arma el estado oculto que la animación de entrada revierte. */
.hero-title .line{ display: block; overflow: hidden; }
.hero-title .line span{ display: block; }
.hero-title.js-anim .line span{ transform: translateY(105%); transition: transform 900ms var(--ease-brand); }
.hero-title.js-anim.is-visible .line span{ transform: translateY(0); }
.hero-title .line:nth-child(1) span{ transition-delay: 60ms; }
.hero-title .line:nth-child(2) span{ transition-delay: 180ms; }
.hero-title .accent{ color: var(--cian); }

.hero-sub{ color: var(--text-on-dark-mid); font-size: 1.08rem; max-width: 46ch; margin-top: 1.4rem; }
.hero-ctas{ display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }

.hero-stat{
  margin-top: 2.6rem; display: flex; gap: .9rem; align-items: baseline;
  font-family: var(--f-mono); font-size: .82rem; color: var(--text-on-dark-mid);
  border-top: 1px solid var(--border-dark); padding-top: 1.1rem; max-width: 46ch;
}
.hero-stat strong{ color: #fff; font-size: 1.05rem; }

/* ---------- Tarjeta de evidencia flotante (hero) ---------- */
.evidence-card{
  background: var(--navy-raise); border: 1px solid var(--border-dark); border-radius: var(--radius-card);
  padding: 1.4rem 1.5rem 1.6rem; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6);
  transform-style: preserve-3d; will-change: transform; transition: transform 160ms var(--ease-brand);
}
.evidence-card__head{ display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.1rem; }
.evidence-card__title{ font-size: .92rem; color: #fff; font-weight: 600; }
.evidence-card__sub{ font-family: var(--f-mono); font-size: .72rem; color: var(--text-on-dark-mid); }
.evidence-card__rows{ display: grid; gap: .6rem; }
.evidence-row{ display: flex; justify-content: space-between; gap: 1rem; font-size: .82rem; padding: .35rem 0; border-bottom: 1px dashed rgba(255,255,255,.08); }
.evidence-row:last-child{ border-bottom: 0; }
.evidence-row .k{ color: var(--text-on-dark-mid); }
.evidence-row .v{ font-family: var(--f-mono); color: #fff; text-align: right; }

.state-chip{
  display: inline-flex; align-items: center; gap: .4rem; font-family: var(--f-mono); font-size: .72rem; font-weight: 500;
  padding: .3rem .7rem; border-radius: var(--radius-pill); letter-spacing: .02em;
}
.state-chip .dot{ width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.state-chip[data-state="cumple"]{ color: var(--verde-on-dark); background: rgba(15,169,104,.14); }
.state-chip[data-state="riesgo"]{ color: var(--ambar-on-dark); background: rgba(242,160,7,.14); }
.state-chip[data-state="incidencia"]{ color: var(--rojo-on-dark); background: rgba(224,69,75,.14); }
.state-chip[data-state="curso"]{ color: var(--cian); background: rgba(11,225,249,.12); }
.state-chip[data-state="curso"] .dot{ animation: pulse-dot 2s var(--ease-brand) infinite; }

/* variantes sobre fondo claro (nunca cian) */
.section-light .state-chip[data-state="cumple"], .section-dim .state-chip[data-state="cumple"]{ color: var(--verde-on-light); background: rgba(15,169,104,.1); }
.section-light .state-chip[data-state="riesgo"], .section-dim .state-chip[data-state="riesgo"]{ color: var(--ambar-on-light); background: rgba(242,160,7,.1); }
.section-light .state-chip[data-state="incidencia"], .section-dim .state-chip[data-state="incidencia"]{ color: var(--rojo-on-light); background: rgba(224,69,75,.1); }
.section-light .state-chip[data-state="curso"], .section-dim .state-chip[data-state="curso"]{ color: var(--profundo); background: rgba(0,98,192,.08); }

/* currentColor evita que el punto "en curso" emita brillo cian cuando el
   chip vive sobre fondo claro (ahí el color de contexto es azul profundo) */
@keyframes pulse-dot{
  0%, 100%{ box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 55%, transparent); }
  50%{ box-shadow: 0 0 0 5px color-mix(in srgb, currentColor 0%, transparent); }
}

.scroll-cue{
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  color: var(--text-on-dark-mid); font-family: var(--f-mono); font-size: .68rem; letter-spacing: .08em;
}
.scroll-cue svg{ width: 14px; height: 14px; animation: bob 1.8s ease-in-out infinite; }
@keyframes bob{ 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(6px); } }

/* =========================================================
   MARQUEE (vocabulario de marca)
   ========================================================= */
.marquee-strip{ background: var(--navy-raise); border-top: 1px solid var(--border-dark); border-bottom: 1px solid var(--border-dark); overflow: hidden; padding: .95rem 0; }
.marquee-track{ display: flex; gap: 2.5rem; white-space: nowrap; width: max-content; animation: marquee 34s linear infinite; }
.marquee-strip:hover .marquee-track{ animation-play-state: paused; }
.marquee-track span{ font-family: var(--f-mono); font-size: .82rem; color: var(--text-on-dark-mid); letter-spacing: .03em; }
.marquee-track span.dim{ color: var(--border-dark); }
@keyframes marquee{ from{ transform: translateX(0); } to{ transform: translateX(-50%); } }

/* =========================================================
   PROBLEMA
   ========================================================= */
.problem-grid{ display: grid; gap: 2.5rem; margin-top: 3rem; }
@media (min-width: 860px){ .problem-grid{ grid-template-columns: repeat(3, 1fr); } }
.compare-card{
  background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-card);
  padding: 1.6rem; transition: transform var(--dur-fast) var(--ease-brand), box-shadow var(--dur-fast);
}
.compare-card:hover{ transform: translateY(-4px); box-shadow: 0 20px 40px -24px rgba(8,23,47,.22); }
.compare-card h3{ font-family: var(--f-body); font-weight: 600; font-size: .98rem; margin-bottom: 1rem; display: flex; align-items: center; gap: .55rem; }
.compare-card ul{ display: grid; gap: .65rem; }
.compare-card li{ display: flex; gap: .6rem; font-size: .9rem; color: var(--text-on-light-mid); align-items: flex-start; }
.compare-card li svg{ width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; }
.compare-card.is-bad li svg{ color: var(--rojo-on-light); }
.compare-card.is-bad h3 svg{ color: var(--rojo-on-light); }
.compare-card.is-good{ border-color: var(--profundo); background: linear-gradient(180deg, #fff, var(--paper-dim)); }
.compare-card.is-good li svg{ color: var(--verde-on-light); }
.compare-card.is-good h3 svg{ color: var(--profundo); }

/* =========================================================
   SELECTOR DE SEGMENTO (seguridad / limpieza)
   ========================================================= */
.seg-tab{
  display: inline-flex; align-items: center; padding: .75rem 1.4rem; border-radius: var(--radius-pill);
  border: 1px solid var(--border-light); font-weight: 600; font-size: .88rem; color: var(--text-on-light-mid);
  transition: background var(--dur-fast) var(--ease-brand), color var(--dur-fast), border-color var(--dur-fast);
}
.seg-tab:hover{ border-color: var(--profundo); color: var(--profundo); }
.seg-tab.is-active{ background: var(--profundo); color: #fff; border-color: var(--profundo); }
.seg-tab.is-active:hover{ color: #fff; }
.cap-grid[data-seg-panel]{ display: none; }
.cap-grid[data-seg-panel].is-active{ display: grid; }

/* =========================================================
   CALLOUT de exclusividad
   ========================================================= */
.callout{
  margin-top: 3rem; border-left: 3px solid var(--profundo); padding: 1.4rem 1.8rem;
  background: var(--paper-dim); border-radius: 0 var(--radius-card) var(--radius-card) 0;
  font-family: var(--f-title); font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.4; max-width: 60ch;
}
.callout footer{ margin-top: .9rem; font-family: var(--f-mono); font-size: .72rem; color: var(--text-on-light-mid); }

/* =========================================================
   GRID DE CAPACIDADES
   ========================================================= */
.cap-grid{ display: grid; gap: 1.25rem; margin-top: 3rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.cap-card{
  background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-card); padding: 1.5rem;
  transition: transform var(--dur-fast) var(--ease-brand), border-color var(--dur-fast);
}
.cap-card:hover{ transform: translateY(-4px); border-color: var(--profundo); }
.cap-card .ico{
  width: 40px; height: 40px; border-radius: var(--radius-control); background: rgba(0,98,192,.08);
  display: flex; align-items: center; justify-content: center; color: var(--profundo); margin-bottom: 1rem;
}
.cap-card .ico svg{ width: 20px; height: 20px; stroke-width: 1.75; }
.cap-card h3{ font-family: var(--f-body); font-weight: 600; font-size: .96rem; margin-bottom: .45rem; }
.cap-card p{ font-size: .86rem; color: var(--text-on-light-mid); line-height: 1.55; }
.cap-note{ margin-top: 1.6rem; font-family: var(--f-mono); font-size: .76rem; color: var(--text-on-light-mid); }

/* =========================================================
   EVIDENCIA — reporte completo
   ========================================================= */
.report-wrap{ margin-top: 3rem; display: grid; gap: 2.5rem; }
@media (min-width: 980px){ .report-wrap{ grid-template-columns: 1fr 1fr; align-items: start; } }
.report-copy p{ color: var(--text-on-dark-mid); font-size: 1rem; line-height: 1.7; }
.report-copy p + p{ margin-top: 1rem; }
.states-row{ display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.8rem; }

.report-card{
  background: var(--navy-raise); border: 1px solid var(--border-dark); border-radius: var(--radius-card);
  padding: 1.6rem 1.7rem 1.8rem; box-shadow: 0 50px 100px -40px rgba(0,0,0,.65);
}
.report-card__top{ display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.3rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--border-dark); }
.report-card__top h4{ font-family: var(--f-body); font-weight: 600; color: #fff; font-size: 1rem; }
.report-card__top span{ font-family: var(--f-mono); font-size: .74rem; color: var(--text-on-dark-mid); }
.report-fields{ display: grid; gap: 0; }
.report-field{
  display: flex; justify-content: space-between; gap: 1rem; padding: .62rem 0; border-bottom: 1px dashed rgba(255,255,255,.08);
  opacity: 0; transform: translateX(10px); transition: opacity 420ms var(--ease-brand), transform 420ms var(--ease-brand);
}
.report-field.is-shown{ opacity: 1; transform: translateX(0); }
.report-field:last-child{ border-bottom: 0; }
.report-field .k{ font-size: .82rem; color: var(--text-on-dark-mid); }
.report-field .v{ font-family: var(--f-mono); font-size: .82rem; color: #fff; text-align: right; }
.report-footnote{ margin-top: 1rem; font-family: var(--f-mono); font-size: .68rem; color: var(--acero); }

/* =========================================================
   CÓMO FUNCIONA — ruta
   ========================================================= */
.route{ position: relative; margin-top: 4rem; }
.route-svg{ position: absolute; top: 28px; left: 0; width: 100%; height: 3px; z-index: 0; }
.route-svg path{ fill: none; stroke: var(--border-light); stroke-width: 2; }
.route-svg path.draw{ stroke: var(--profundo); stroke-dasharray: 1000; stroke-dashoffset: 1000; transition: stroke-dashoffset 1.1s var(--ease-brand); }
.route-svg path.draw.is-drawn{ stroke-dashoffset: 0; }
.route-steps{ display: grid; gap: 2.2rem; position: relative; z-index: 1; grid-template-columns: repeat(1, 1fr); }
@media (min-width: 860px){ .route-steps{ grid-template-columns: repeat(4, 1fr); } }
.route-step{ text-align: left; }
.route-step .num{
  width: 56px; height: 56px; border-radius: 50%; background: #fff; border: 1px solid var(--border-light);
  display: flex; align-items: center; justify-content: center; font-family: var(--f-mono); font-size: .95rem; color: var(--profundo);
  margin-bottom: 1.1rem; transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}
.route-step.is-visible .num{ background: var(--profundo); color: #fff; border-color: var(--profundo); }
.route-step h3{ font-family: var(--f-body); font-weight: 600; font-size: .98rem; margin-bottom: .5rem; }
.route-step p{ font-size: .86rem; color: var(--text-on-light-mid); line-height: 1.55; }

/* =========================================================
   REFORMA 2027
   ========================================================= */
.reform-band{ background: linear-gradient(135deg, var(--navy) 0%, #0A2F52 100%); color: #fff; }
.reform-grid{ display: grid; gap: 3rem; align-items: center; }
@media (min-width: 980px){ .reform-grid{ grid-template-columns: 1.1fr .9fr; } }
.countdown{ display: flex; gap: 1.4rem; flex-wrap: wrap; margin-top: 2rem; }
.countdown .unit{ min-width: 84px; }
.countdown .num{ font-family: var(--f-mono); font-size: clamp(2.1rem, 4vw, 3.1rem); color: var(--cian); line-height: 1; }
.countdown .lab{ font-family: var(--f-mono); font-size: .68rem; color: var(--text-on-dark-mid); letter-spacing: .08em; margin-top: .35rem; display: block; }
.fine-box{
  background: var(--navy-raise); border: 1px solid var(--border-dark); border-radius: var(--radius-card); padding: 1.6rem 1.7rem;
}
.fine-box .amt{ font-family: var(--f-mono); font-size: clamp(1.5rem,2.6vw,2rem); color: var(--ambar-on-dark); }
.fine-box p{ font-size: .86rem; color: var(--text-on-dark-mid); margin-top: .7rem; line-height: 1.6; }
.fine-box footer{ font-family: var(--f-mono); font-size: .68rem; color: var(--acero); margin-top: .9rem; }

/* =========================================================
   AUDIENCIAS
   ========================================================= */
.aud-grid{ display: grid; gap: 1.3rem; margin-top: 3rem; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); }
.aud-card{
  position: relative; background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-card);
  padding: 1.6rem; overflow: hidden; min-height: 220px; display: flex; flex-direction: column; justify-content: flex-end;
  transition: transform var(--dur-fast) var(--ease-brand);
}
.aud-card:hover{ transform: translateY(-4px); }
.aud-card .tag{ font-family: var(--f-mono); font-size: .7rem; color: var(--profundo); margin-bottom: .6rem; display: block; }
.aud-card h3{ font-family: var(--f-body); font-weight: 600; font-size: 1rem; margin-bottom: .6rem; }
.aud-card .worry{ font-size: .84rem; color: var(--text-on-light-mid); line-height: 1.5; }
.aud-card .says{
  position: absolute; inset: 0; background: var(--navy); color: #fff; padding: 1.6rem; display: flex; flex-direction: column;
  justify-content: flex-end; opacity: 0; transform: translateY(8px); transition: opacity var(--dur-fast), transform var(--dur-fast);
}
.aud-card:hover .says, .aud-card:focus-within .says{ opacity: 1; transform: translateY(0); }
.aud-card .says .tag{ color: var(--cian); }
.aud-card .says q{ font-family: var(--f-title); font-size: 1.05rem; line-height: 1.4; quotes: none; }

/* =========================================================
   VIDEO
   ========================================================= */
/* El master es cuadrado (1080x1080): el marco respeta esa proporción
   para que el video se vea completo, sin recorte ni barras de relleno. */
.video-frame{
  margin: 3rem auto 0; max-width: 640px; position: relative; border-radius: var(--radius-card); overflow: hidden;
  background: var(--navy); aspect-ratio: 1/1; border: 1px solid var(--border-dark);
}
.video-frame video{ width: 100%; height: 100%; object-fit: cover; }
.video-poster{
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 30% 20%, rgba(11,225,249,.16), transparent 55%), var(--navy);
  cursor: pointer; transition: opacity var(--dur-med) var(--ease-brand);
}
.video-poster img{ width: 72px; height: 72px; opacity: .9; }
.video-poster .play-ring{
  position: absolute; width: 96px; height: 96px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; transition: transform var(--dur-fast), border-color var(--dur-fast);
}
.video-poster:hover .play-ring{ transform: scale(1.08); border-color: var(--cian); }
.video-poster .play-ring svg{ width: 22px; height: 22px; color: #fff; margin-left: 3px; }
.video-poster.is-hidden{ opacity: 0; pointer-events: none; }

/* Galería de video: filmstrip horizontal con scroll-snap -- escala sola a
   cualquier cantidad de videos (hoy 2, mañana más) sin rediseñar nada; cada
   tarjeta abre el lightbox en vez de reproducir inline, para no competir con
   el resto de la página. */
.video-gallery{
  margin-top: 2.8rem; display: flex; gap: 1.3rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: .6rem; -webkit-overflow-scrolling: touch;
}
.video-gallery::-webkit-scrollbar{ height: 6px; }
.video-gallery::-webkit-scrollbar-thumb{ background: var(--border-dark); border-radius: 3px; }
.video-card{
  flex: 0 0 clamp(260px, 32vw, 360px); scroll-snap-align: start; cursor: pointer;
  border-radius: var(--radius-card); overflow: hidden; border: 1px solid var(--border-dark);
  background: var(--navy); transition: transform var(--dur-fast) var(--ease-brand), border-color var(--dur-fast);
}
.video-card:hover{ transform: translateY(-4px); border-color: var(--cian); }
.video-card__poster{
  aspect-ratio: 16/10; position: relative; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 30% 20%, rgba(11,225,249,.18), transparent 55%), var(--navy);
}
.video-card__poster img{ width: 48px; height: 48px; opacity: .85; }
.video-card__play{
  position: absolute; width: 60px; height: 60px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; transition: transform var(--dur-fast), border-color var(--dur-fast);
}
.video-card:hover .video-card__play{ transform: scale(1.08); border-color: var(--cian); }
.video-card__play svg{ width: 18px; height: 18px; color: #fff; margin-left: 2px; }
.video-card__body{ padding: 1rem 1.1rem 1.2rem; text-align: left; }
.video-card__title{ display: block; font-family: var(--f-title); font-size: 1.02rem; color: #fff; line-height: 1.3; }
.video-card__desc{ display: block; font-size: .82rem; color: var(--text-on-dark-mid); margin-top: .35rem; line-height: 1.5; }

.video-lightbox{ position: fixed; inset: 0; z-index: 5100; display: none; }
.video-lightbox.is-open{ display: block; }
.video-lightbox__overlay{
  position: absolute; inset: 0; background: rgba(2,8,20,.88); backdrop-filter: blur(4px);
  opacity: 0; transition: opacity var(--dur-med) var(--ease-brand);
}
.video-lightbox.is-open .video-lightbox__overlay{ opacity: 1; }
.video-lightbox__panel{
  position: relative; z-index: 1; max-width: 920px; margin: 5vh auto; padding: 0 1rem;
  transform: translateY(18px); opacity: 0;
  transition: transform var(--dur-med) var(--ease-brand), opacity var(--dur-med) var(--ease-brand);
}
.video-lightbox.is-open .video-lightbox__panel{ transform: translateY(0); opacity: 1; }
.video-lightbox__title{ color: #fff; font-size: 1.1rem; margin: 0 0 .8rem .2rem; }
.video-lightbox__frame{ border-radius: var(--radius-card); overflow: hidden; background: #000; aspect-ratio: 16/9; }
.video-lightbox__frame video{ width: 100%; height: 100%; }
.video-lightbox__close{
  position: absolute; top: -3rem; right: 1rem; width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: #fff; border: 1px solid rgba(255,255,255,.3);
  transition: background var(--dur-fast);
}
.video-lightbox__close:hover{ background: rgba(255,255,255,.12); }
.video-lightbox__close svg{ width: 18px; height: 18px; }

/* =========================================================
   CENTRO DE CAPACITACIÓN (capacitacion.html)
   Portado de digivalle-site, tokens equivalentes de Sentinel-site. Prefijo
   training- para no chocar con .video-card/.video-lightbox de la galería
   de la landing (son dos cosas distintas: esto es el curso completo).
   ========================================================= */
.training-shell{ display:grid; grid-template-columns: 300px 1fr; min-height: 100vh; background: var(--navy); }
.training-sidebar{ border-right: 1px solid var(--border-dark); padding: 7.5rem 1.4rem 2rem; overflow-y:auto; }
.training-sidebar h2{ font-family: var(--f-title); font-size: 1.1rem; font-style: italic; color: #fff; padding: 0 .6rem 1.2rem; }
.training-group{ margin-bottom: 1.4rem; }
.training-group h6{ font-size:.72rem; text-transform:uppercase; letter-spacing:.12em; color: var(--text-on-dark-mid); padding: .3rem .6rem; margin-bottom:.3rem; }
.training-group ul{ list-style:none; display:flex; flex-direction:column; gap:.15rem; }
.training-video-item{
  display:flex; align-items:center; gap:.7rem; width:100%; text-align:left;
  padding: .65rem .6rem; border-radius: var(--radius-control); border: 1px solid transparent;
  background: transparent; color: var(--text-on-dark-mid); cursor:pointer; font-size:.92rem; font-family: var(--f-body);
  transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}
.training-video-item .dot{ width:7px; height:7px; border-radius:50%; background: var(--border-dark); flex-shrink:0; transition: background var(--dur-fast); }
.training-video-item:hover{ background: var(--navy-raise); color: var(--text-on-dark-hi); }
.training-video-item.active{ background: var(--navy-raise); border-color: var(--cian); color: var(--text-on-dark-hi); }
.training-video-item.active .dot{ background: var(--cian); box-shadow: 0 0 0 3px rgba(11,225,249,.2); }
.training-main{ padding: 7.5rem 2.5rem 3rem; display:flex; flex-direction:column; }
.training-main .now-playing{ margin-bottom: 1.2rem; }
.training-main .now-playing span{ display:block; color: var(--cian); font-size:.78rem; text-transform:uppercase; letter-spacing:.12em; font-weight:700; margin-bottom:.4rem; }
.training-main .now-playing h1{ font-family: var(--f-title); color: #fff; font-size: clamp(1.5rem,3vw,2.1rem); font-style: italic; }
.training-video-frame{ position:relative; width:100%; background:#000; border-radius: var(--radius-card); overflow:hidden; border: 1px solid var(--border-dark); }
.training-video-frame video{ width:100%; max-height: 68vh; display:block; }
.training-nav-btns{ display:flex; gap: .8rem; margin-top: 1.4rem; }
@media (max-width: 980px){
  .training-shell{ grid-template-columns: 1fr; }
  .training-sidebar{ border-right:none; border-bottom:1px solid var(--border-dark); padding-top: 6.5rem; }
  .training-main{ padding-top: 2.5rem; }
}

/* =========================================================
   CIERRE
   ========================================================= */
.closing{ text-align: center; padding: clamp(5rem,12vw,9rem) 0; }
.closing img{ width: clamp(64px,9vw,110px); height: auto; margin: 0 auto 2.2rem; }
.closing h2{ font-size: clamp(2rem,4.4vw,3.2rem); color: #fff; max-width: 20ch; margin: 0 auto; line-height: 1.15; }
.closing .lede{ margin: 1.3rem auto 2.4rem; }
.closing-ctas{ display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.closing-contact{ margin-top: 3rem; font-family: var(--f-mono); font-size: .82rem; color: var(--text-on-dark-mid); display: flex; gap: 1.6rem; justify-content: center; flex-wrap: wrap; }
.closing-contact a:hover{ color: var(--cian); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer{ background: #050F20; color: var(--text-on-dark-mid); padding: 3.5rem 0 2rem; }
.footer-top{ display: grid; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--border-dark); }
@media (min-width: 780px){ .footer-top{ grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr; } }
.footer-brand img{ height: 38px; width: auto; margin-bottom: 1.1rem; }
.footer-brand p{ font-size: .84rem; max-width: 30ch; line-height: 1.6; }
.footer-col h4{ font-family: var(--f-body); font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: #fff; margin-bottom: 1rem; }
.footer-col ul{ display: grid; gap: .65rem; }
.footer-col a, .footer-col span{ font-size: .86rem; }
.footer-col a:hover{ color: var(--cian); }
.footer-col .soon{ opacity: .55; }
.footer-bottom{ display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.6rem; font-family: var(--f-mono); font-size: .72rem; }
.footer-credit{ display: inline-flex; align-items: center; gap: .5rem; }
.footer-credit img{ width: 16px; height: 16px; opacity: .85; }
.footer-bottom a:hover{ color: var(--cian); }

/* =========================================================
   MODAL: AGENDA TU DEMO
   ========================================================= */
.demo-modal{ position: fixed; inset: 0; z-index: 5000; display: none; }
.demo-modal.is-open{ display: block; }
.demo-modal__overlay{
  position: absolute; inset: 0; background: rgba(8,23,47,.72); backdrop-filter: blur(4px);
  opacity: 0; transition: opacity var(--dur-med) var(--ease-brand);
}
.demo-modal.is-open .demo-modal__overlay{ opacity: 1; }
.demo-modal__panel{
  position: relative; z-index: 1; max-width: 580px; margin: 4vh auto; max-height: 92vh; overflow-y: auto;
  background: #fff; border-radius: var(--radius-card); padding: 2.1rem clamp(1.3rem,4vw,2.2rem) 2.2rem;
  transform: translateY(18px); opacity: 0;
  transition: transform var(--dur-med) var(--ease-brand), opacity var(--dur-med) var(--ease-brand);
}
.demo-modal.is-open .demo-modal__panel{ transform: translateY(0); opacity: 1; }
@media (max-width: 640px){
  .demo-modal__panel{ margin: 0; max-width: none; width: 100%; height: 100%; max-height: none; border-radius: 0; }
}
.demo-modal__close{
  position: absolute; top: 1rem; right: 1rem; width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: var(--text-on-light-mid);
  transition: background var(--dur-fast);
}
.demo-modal__close:hover{ background: var(--paper-dim); }
.demo-modal__close svg{ width: 18px; height: 18px; }
.demo-modal__panel h2{ font-size: 1.4rem; color: var(--navy); padding-right: 2rem; }
.demo-modal__sub{ font-size: .9rem; color: var(--text-on-light-mid); margin-top: .4rem; margin-bottom: 1.5rem; }

.demo-form__hp{ position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#demo-form{ display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.demo-form__row{ display: flex; flex-direction: column; gap: .35rem; }
.demo-form__row--full{ grid-column: 1 / -1; }
.demo-form__row label{ font-size: .82rem; font-weight: 600; color: var(--navy); }
.demo-form__row input, .demo-form__row select, .demo-form__row textarea{
  width: 100%; font: inherit; font-size: .92rem; padding: .65rem .8rem; border: 1px solid var(--border-light);
  border-radius: var(--radius-control); background: #fff; color: var(--text-on-light-hi);
  transition: border-color var(--dur-fast);
}
.demo-form__row input:focus, .demo-form__row select:focus, .demo-form__row textarea:focus{
  outline: none; border-color: var(--profundo);
}
.demo-form__row.has-error input, .demo-form__row.has-error select, .demo-form__row.has-error textarea{
  border-color: var(--rojo-on-light);
}
.demo-form__error{ font-size: .76rem; color: var(--rojo-on-light); min-height: 1em; }
.demo-form__checkbox{ flex-direction: row; align-items: flex-start; gap: .55rem; }
.demo-form__checkbox label{ font-weight: 400; font-size: .84rem; color: var(--text-on-light-mid); }
.demo-form__checkbox input{ margin-top: .2rem; width: auto; }
.demo-form__submit{ grid-column: 1 / -1; justify-self: start; margin-top: .4rem; }
.demo-form__submit[disabled]{ opacity: .6; cursor: progress; }
.demo-form__status{ grid-column: 1 / -1; font-size: .86rem; margin: 0; min-height: 1.2em; }
.demo-form__status.is-success{ color: var(--verde-on-light); }
.demo-form__status.is-error{ color: var(--rojo-on-light); }
@media (max-width: 560px){ #demo-form{ grid-template-columns: 1fr; } }

/* ---------- Utilidades ---------- */
.vh{ position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
