/* =====================================================================
   Compuservicios — site.css (D-195 Phase 2 rewrite, 2026-09-02)
   Design thesis: "the website is the diagnosis document, opened to the
   public." Dark workbench hero + warm paper sections below.

   TOKEN COMPATIBILITY NOTE — read before touching :root.
   `css/a11y.css` (shared across public/portal/admin/Odysseus) overrides
   these exact custom-property names inside `html[data-contrast="hc"]`
   and `html[data-cvd="1"]`:
     --navy --orange --green --white --off-white --gray --light-gray
     --text-primary --text-body --text-muted --text-brand
   Every new semantic token below (--paper, --ink, --muted, ...) is
   defined AS var(<one of the names above>) rather than a fresh literal,
   so a11y.css's high-contrast/colour-blind overrides propagate into
   every component in this file automatically. Do not give a new token
   its own literal colour without checking whether it needs to inherit
   an a11y override first.

   Brand triad is IMMUTABLE (golden rule): --navy #08225E / --orange
   #F97316 / --green #3D7A6A. Item 9 (.btn--orange contrast) is fixed
   with a DERIVED TOKEN (--orange-ink), never by retuning --orange.
   ===================================================================== */

:root {
  /* ---- brand triad (immutable) ---- */
  --navy:      #08225E;
  --navy-deep: #0D1117;          /* hero gradient end — the diagnosis doc's own bg, not overridden by a11y (hero handled explicitly, see §HC below) */
  --orange:    #F97316;
  --green:     #3D7A6A;

  /* ---- surfaces / neutrals (a11y.css overrides these in HC/CVD) ---- */
  --white:      #FFFFFF;
  --off-white:  #F8F7F4;
  --gray:       #5A5A5A;
  --light-gray: #E3E0D8;
  --text-primary: #08225E;
  --text-body:    #1A1A2E;
  --text-muted:   #5A5A5A;
  --text-brand:   var(--navy);   /* D-121 pattern: dark-mode-safe heading token */

  /* ---- Item 9 fix (D-195 D-1) — a token, never a literal on --orange ---- */
  --orange-ink: #C35305;         /* 4.605:1 on white — measured 2026-09-02, see D-195_CONTENT_AND_DEFAULTS §3 D-1.
     USAGE RULE (measured 2026-09-02, Phase 2 build): --orange-ink is for LIGHT
     backgrounds only (white/paper/paper-2) — text AND icons; there it clears
     both the 4.5:1 text and 3:1 graphical thresholds. On navy/navy-deep fixed
     dark surfaces --orange-ink FAILS (3.26:1 / 4.11:1) — use plain --orange
     there instead, which passes on navy at 5.35:1+ (this is the existing
     btn-primary precedent: navy text on orange = 5.35:1, D-020). Plain
     --orange on a LIGHT background is the opposite failure — 2.80:1, the
     exact Item 9 bug — never use --orange as light-background text, only as
     a light-background ICON at your own risk (also fails 3:1, use
     --orange-ink for icons on light backgrounds too). */

  /* ---- derived semantic aliases (inherit a11y.css overrides via indirection) ---- */
  --paper:   var(--off-white);
  --paper-2: #EFEDE8;
  --line:    #E3E0D8;
  --ink:     var(--text-body);
  --muted:   var(--text-muted);

  /* ---- FIX (2026-09-03, operator-reported dark-mode bug) ----
     --white is BOTH "literal white" (light mode) AND, by :root[data-theme="dark"]
     below, redefined to mean "dark-mode surface colour" (#0F172A) — correct for
     components meant to look like paper (.card, .form, .faq, .testimonio: they
     SHOULD flip to a dark card surface in dark mode, and correctly pair
     var(--white) backgrounds with var(--ink)/var(--text-brand) text that flips
     with them). The bug: many components sit on a FIXED-dark brand surface that
     never flips (--navy, --navy-deep, --orange, --green, --wa-green-ink are all
     immutable brand colours, not surface tokens) and used var(--white) for their
     TEXT/icon/outline colour, assuming "white" always meant literal white. In
     dark mode that assumption breaks silently: header brand text, hero
     headline/tracker text, nav-link hover text, footer headings, footer link
     hover, social-icon focus ring, and every navy/orange/green solid button all
     went near-invisible (near-black #0F172A text on their own still-dark/bright
     surface) — exactly the "white text that turns black and disappears in dark
     mode" the operator reported. --on-dark is a SEPARATE, permanently-fixed
     token (defined once here, deliberately NOT re-declared inside the
     [data-theme="dark"] block below) for literal "text/icon/outline on a
     surface that is dark in both themes." Every rule below that pairs a fixed
     navy/orange/green/wa-green background with foreground colour now uses
     --on-dark instead of --white; every rule that pairs var(--white) as an
     actual flipping PAPER background keeps --white unchanged. */
  --on-dark: #FFFFFF;

  /* ---- WhatsApp brand colour ----
     #25D366 is WhatsApp's own mark, not a Compuservicios immutable token,
     so it isn't bound by the golden-rule brand-triad lock — but white text
     on the raw brand green measures 1.98:1 (checked during this build,
     2026-09-02), a real failure the D-184 Item 9 sweep never caught because
     it only scanned admin_dashboard.html. Same fix pattern as Item 9: a
     hue/saturation-preserving derived token, computed, with margin.
     --wa-green stays the literal brand colour for anything that ISN'T a
     text-bearing surface (e.g. a small on-brand accent); --wa-green-ink is
     what buttons/text actually use. */
  --wa-green: #25D366;
  --wa-green-ink: #167E3D;   /* 5.14:1 with white text — measured 2026-09-02 */

  /* ---- elevation ---- */
  --shadow-sm: 0 2px 8px rgba(8,34,94,0.10);
  --shadow-md: 0 8px 28px rgba(8,34,94,0.14);
  --shadow-lg: 0 18px 48px rgba(8,34,94,0.18);
  --shadow-orange: 0 10px 30px rgba(249,115,22,0.30);

  /* ---- spacing (density dial 3/10 — spacious) ---- */
  --sp-1: .5rem; --sp-2: 1rem; --sp-3: 1.5rem; --sp-4: 2.5rem; --sp-5: 4rem; --sp-6: 6rem;

  /* ---- radius ---- */
  --radius: 14px;
  --radius-pill: 999px;

  /* ---- motion ---- */
  --ease-out: cubic-bezier(.2,.8,.2,1);
  --dur-fast: 150ms;
  --dur: 350ms;
  --dur-slow: 700ms;

  /* ---- type scale (rem — cascades with the a11y font-scale control) ---- */
  --fs-body: 1.0625rem;               /* 17px */
  --fs-1: clamp(2.4rem, 6vw, 4rem);   /* H1 */
  --fs-2: clamp(1.6rem, 3.5vw, 2.4rem); /* H2 */
  --fs-3: 1.25rem;                    /* H3 */
  --fs-eyebrow: .8rem;
  --fs-caption: .85rem;

  /* ---- fonts (self-hosted; see /fonts) ---- */
  --font-display: 'Rajdhani', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Exo 2', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, 'Cascadia Mono', Consolas, monospace;
}

@font-face {
  font-family: 'Rajdhani';
  src: url('/fonts/rajdhani-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Rajdhani';
  src: url('/fonts/rajdhani-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Exo 2';
  src: url('/fonts/exo2-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Exo 2';
  src: url('/fonts/exo2-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Exo 2';
  src: url('/fonts/exo2-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}

/* Dark mode — same pairing pattern as admin_dashboard.html (D-035/D-121).
   Brand triad + --orange-ink unchanged; page/card surfaces + neutrals flip. */
:root[data-theme="dark"] {
  --text-brand: #7BB4FF; /* D-121-A1/A2: navy-on-dark fails; 7BB4FF = 8.34:1 AA */
  --white:      #0F172A;
  --off-white:  #111C33;
  --gray:       #94A3B8;
  --light-gray: #243350;
  --text-primary: #7BB4FF;
  --text-body:    #F1F5F9;
  --text-muted:   #94A3B8;
  --paper-2: #16213E;
  --line:    #243350;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.35);
  --shadow-md: 0 8px 28px rgba(0,0,0,.5);
  --shadow-lg: 0 18px 48px rgba(0,0,0,.6);
}
/* --orange-ink stays readable in dark too: admin_dashboard.html:125-127
   already forces #FFFFFF text on .btn--orange in dark theme; #C35305
   measures 4.61:1 there as well (see D-195_CONTENT_AND_DEFAULTS §3). */

/* =====================================================================
   BASE / RESET
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; text-wrap: balance; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--text-brand); text-decoration: none; transition: color var(--dur-fast) var(--ease-out); }
a:hover, a:focus { text-decoration: underline; color: var(--orange-ink); }
a:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
button { font-family: inherit; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
[hidden] { display: none !important; }

/* Skip link (D-020) — a11y.css also injects one via JS; this covers the
   no-JS case and keeps a single visual language for both. */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 9999;
  background: var(--navy); color: var(--on-dark);
  padding: .75rem 1.25rem; font-weight: 700;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* =====================================================================
   NAV
   ===================================================================== */
header.site-header {
  background: var(--navy); position: sticky; top: 0; z-index: 200;
  box-shadow: 0 2px 10px rgba(0,0,0,.18);
}
.nav {
  max-width: 1180px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: .75rem 1.25rem; gap: 1rem;
}
.nav__brand { display: flex; align-items: center; gap: .6rem; color: var(--on-dark); font-weight: 700; }
.nav__brand img { height: 36px; width: auto; }
.nav__brand span { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: .01em; }
.nav__brand b { color: var(--orange); font-weight: 700; }
.nav__links { display: flex; align-items: center; gap: .25rem; list-style: none; }
.nav__links a {
  color: rgba(255,255,255,.85); padding: .55rem .8rem; border-radius: 8px;
  font-size: .92rem; min-height: 44px; display: flex; align-items: center;
  transition: background var(--dur-fast), color var(--dur-fast);
}
.nav__links a:hover, .nav__links a:focus { background: rgba(255,255,255,.12); color: var(--on-dark); text-decoration: none; }
.nav__links a:focus-visible { outline: 3px solid var(--orange); outline-offset: -3px; }
.nav__actions { display: flex; align-items: center; gap: .5rem; }
.theme-toggle {
  background: transparent; border: 1.5px solid rgba(255,255,255,.3); color: var(--on-dark);
  font-size: 1rem; line-height: 1; padding: .5rem .65rem; border-radius: 8px;
  min-width: 44px; min-height: 44px; cursor: pointer;
  transition: border-color var(--dur-fast), background var(--dur-fast);
}
.theme-toggle:hover { border-color: var(--orange); background: rgba(249,115,22,.15); }
.theme-toggle:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* D-195 Phase 6 (D6-4, 2026-09-02): language toggle, nav location. Buttons
   carry data-lang-option="es"/"en" (read generically by js/i18n.js's
   DOMContentLoaded wiring); the wrapper carries data-lang-select so
   i18n.js's _syncSelectors() keeps aria-pressed correct, including after
   a switch triggered from the a11y panel's own language row instead. */
.lang-toggle { display: inline-flex; gap: 2px; }
.lang-btn {
  background: transparent; border: 1.5px solid rgba(255,255,255,.3); color: var(--on-dark);
  font: inherit; font-weight: 700; font-size: .75rem; line-height: 1;
  padding: .5rem .55rem; border-radius: 8px; min-height: 44px; cursor: pointer;
  transition: border-color var(--dur-fast), background var(--dur-fast);
}
.lang-btn:hover { border-color: var(--orange); background: rgba(249,115,22,.15); }
.lang-btn:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.lang-btn[aria-pressed="true"] { background: var(--orange); border-color: var(--orange); color: #1A1A2E; }

/* ---- Mobile menu toggle (D-200, 2026-09-04, operator complaint: "the button,
   like a -, no sense" + "the menu is over the compuservicios"). Root causes:
   (1) the toggle was display:flex with default row direction, so its three
   bars sat side-by-side and rendered as ONE DASH; (2) DOM order is brand →
   toggle → actions under justify-content:space-between, so the toggle was the
   middle item, flush against the wordmark. Fixed with flex-direction:column
   and order:3 — no HTML change. Styled as a sibling of .theme-toggle/.lang-btn
   (same border, radius, 44px hit area) so it reads as part of one control
   family; brand triad only (navy surface, orange accent). ---- */
.nav-toggle {
  display: none; order: 3; flex-direction: column; justify-content: center; align-items: center; gap: 4px;
  width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 0;
  background: transparent; border: 1.5px solid rgba(255,255,255,.3); border-radius: 10px;
  cursor: pointer; flex-shrink: 0;
  transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.nav-toggle span {
  display: block; width: 20px; height: 2px; margin: 0; border-radius: 2px;
  background: var(--on-dark);
  transition: transform var(--dur) cubic-bezier(.16,.84,.32,1), opacity var(--dur-fast) var(--ease-out), width var(--dur) var(--ease-out), background var(--dur-fast);
  transform-origin: center;
}
.nav-toggle span:nth-child(1) { width: 20px; }
.nav-toggle span:nth-child(2) { width: 14px; align-self: flex-end; margin-right: 12px; background: var(--orange); }
.nav-toggle span:nth-child(3) { width: 20px; }
.nav-toggle:hover { border-color: var(--orange); background: rgba(249,115,22,.15); }
.nav-toggle:active { transform: scale(.94); }
.nav-toggle[aria-expanded="true"] { background: var(--orange); border-color: var(--orange); }
.nav-toggle[aria-expanded="true"] span { background: var(--navy); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; width: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav-toggle:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* Mobile-only WhatsApp row inside the panel (li.nav__wa-item, all pages). Desktop
   keeps #hero-wa in .nav__actions; ≤860px that CTA is hidden (D-199) so the
   panel carries it instead — one WhatsApp entry visible per breakpoint. */
.nav__wa-item { display: none; }

@media (max-width: 860px) {
  .nav { gap: .6rem; padding: .6rem 1rem; }
  .nav__brand { min-width: 0; flex: 1 1 auto; white-space: nowrap; overflow: hidden; }
  .nav__brand span { font-size: 1.05rem; }
  .nav__actions { gap: .35rem; order: 2; }
  .nav-toggle { display: flex; }

  /* Panel: always in the DOM (so it can animate), hidden via opacity /
     transform / visibility — not display:none — so open AND close both play. */
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 210;
    background: var(--navy); flex-direction: column; align-items: stretch;
    padding: .5rem 1rem 1rem; gap: 2px;
    border-top: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 18px 30px -10px rgba(0,0,0,.45);
    opacity: 0; visibility: hidden; pointer-events: none;
    transform: translateY(-10px);
    transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out), visibility 0s linear var(--dur-fast);
  }
  .nav__links::after {       /* orange→green brand rule closing the panel */
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
    background: linear-gradient(90deg, var(--orange) 0 60%, var(--green) 100%);
  }
  .nav__links.open {
    opacity: 1; visibility: visible; pointer-events: auto; transform: none;
    transition: opacity var(--dur) var(--ease-out), transform var(--dur) cubic-bezier(.16,.84,.32,1), visibility 0s;
  }
  .nav__links li { opacity: 0; transform: translateX(-12px); transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out); }
  .nav__links.open li { opacity: 1; transform: none; transition: opacity var(--dur) var(--ease-out), transform var(--dur) cubic-bezier(.16,.84,.32,1); }
  .nav__links.open li:nth-child(1) { transition-delay: 40ms; }
  .nav__links.open li:nth-child(2) { transition-delay: 80ms; }
  .nav__links.open li:nth-child(3) { transition-delay: 120ms; }
  .nav__links.open li:nth-child(4) { transition-delay: 160ms; }
  .nav__links.open li:nth-child(5) { transition-delay: 200ms; }
  .nav__links.open li:nth-child(6) { transition-delay: 240ms; }
  .nav__links a {
    font-size: 1.05rem; font-weight: 600; padding: .85rem .9rem .85rem 1.1rem; border-radius: 10px;
    position: relative; color: rgba(255,255,255,.9);
  }
  .nav__links a::before {   /* orange accent bar, grows on hover/current */
    content: ""; position: absolute; left: 0; top: 50%; width: 3px; height: 0; border-radius: 3px;
    background: var(--orange); transform: translateY(-50%);
    transition: height var(--dur-fast) var(--ease-out);
  }
  .nav__links a:hover::before, .nav__links a:focus-visible::before, .nav__links a[aria-current="page"]::before { height: 60%; }
  .nav__links a[aria-current="page"] { color: var(--on-dark); background: rgba(255,255,255,.06); }
  .nav__wa-item { display: block; margin-top: .5rem; padding-top: .6rem; border-top: 1px solid rgba(255,255,255,.12); }
  .nav__wa-item a { background: var(--wa-green-ink, #128C4A); color: #FFF; justify-content: center; font-weight: 700; }
  .nav__wa-item a:hover, .nav__wa-item a:focus { background: #0f7a40; color: #FFF; }
  .nav__wa-item a::before { display: none; }

  /* Dim the page behind the open panel; tap anywhere on it to close (site.js). */
  body.nav-open::before {
    content: ""; position: fixed; inset: 0; z-index: 199; background: rgba(4,20,58,.55);
    animation: navDim var(--dur) var(--ease-out);
  }
  @keyframes navDim { from { opacity: 0; } }

  /* Mobile nav-overflow fix (2026-09-04, D-199): .sticky-bar already shows a
     WhatsApp button at ≤767px, so the header CTA is redundant — hidden to
     relieve the row. Now the panel's .nav__wa-item covers 768–860px too. */
  #hero-wa { display: none; }
}
@media (max-width: 380px) { .nav__brand img { height: 30px; } .nav__brand span { font-size: .98rem; } .lang-btn { padding: .5rem .45rem; } }

/* ---- Header reacts to scroll (D-200 Item 2, "the one at the top always
   static should be moving while scrolling"): site.js has toggled
   .is-scrolled since Phase 2 but nothing consumed it. Now: the bar
   condenses (padding + logo), deepens its shadow, and an orange→green
   reading-progress line along its bottom edge tracks --scroll-p (0..1,
   set by site.js). Sticky header height change is tiny (≈8px) and the
   header is position:sticky, so no layout jump below it. ---- */
header.site-header { transition: box-shadow var(--dur) var(--ease-out); }
header.site-header::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--orange) 0 70%, var(--green) 100%);
  transform: scaleX(var(--scroll-p, 0)); transform-origin: left center;
  opacity: 0; transition: opacity var(--dur) var(--ease-out);
  pointer-events: none;
}
header.site-header.is-scrolled { box-shadow: 0 6px 22px rgba(0,0,0,.28); }
header.site-header.is-scrolled::after { opacity: 1; }
.nav, .nav__brand img { transition: padding var(--dur) var(--ease-out), height var(--dur) var(--ease-out); }
header.site-header.is-scrolled .nav { padding-top: .45rem; padding-bottom: .45rem; }
header.site-header.is-scrolled .nav__brand img { height: 30px; }
@media (max-width: 860px) { header.site-header.is-scrolled .nav__brand img { height: 28px; } }

/* =====================================================================
   HERO / WORKBENCH
   ===================================================================== */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--on-dark);
  padding: clamp(3rem, 6vw, 5rem) 1.25rem clamp(2.5rem, 5vw, 4rem);
  position: relative; overflow: hidden;
  min-height: min(100svh, 760px);
  display: flex; align-items: center;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 75% 20%, rgba(249,115,22,.14) 0%, transparent 55%);
}
/* HC mode: this component sits on a fixed-dark background regardless of
   theme, so a11y.css's html[data-contrast="hc"] body{background:var(--bg)}
   rule (which targets <body>, not this section) doesn't reach it. Force
   the same true-black/white swap here explicitly so text stays readable. */
html[data-contrast="hc"] .hero { background: #000; color: #FFF; }
html[data-contrast="hc"][data-theme="dark"] .hero { background: #FFF; color: #000; }
html[data-contrast="hc"] .hero::before { display: none; }

.hero__inner { max-width: 900px; margin: 0 auto; position: relative; text-align: center; width: 100%; }
.hero__eyebrow {
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-eyebrow);
  text-transform: uppercase; letter-spacing: .14em; color: var(--orange);
  margin-bottom: .9rem; display: block;
}
.hero__title { font-size: var(--fs-1); line-height: 1.05; margin-bottom: 1rem; }
.hero__title em { color: var(--orange); font-style: normal; }
.hero__sub { font-size: clamp(1.05rem, 2vw, 1.2rem); color: rgba(255,255,255,.85); max-width: 620px; margin: 0 auto 1.75rem; }
.hero__ctas { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2.25rem; }
.hero__robot {
  position: absolute; right: 0; bottom: -8px; width: clamp(120px, 14vw, 190px);
  filter: drop-shadow(0 12px 26px rgba(0,0,0,.35)); pointer-events: none;
}
@media (max-width: 640px) { .hero__robot { display: none; } }

/* ── Ticket tracker strip (the signature element) ── */
.tracker {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius); padding: 1.5rem 1.25rem;
  backdrop-filter: blur(6px);
}
html[data-contrast="hc"] .tracker { background: transparent; border: 2px solid currentColor; backdrop-filter: none; }
.tracker__nodes {
  display: flex; align-items: center; justify-content: space-between;
  gap: .25rem; margin-bottom: 1.25rem; position: relative;
}
.tracker__nodes::before {
  content: ""; position: absolute; left: 20px; right: 20px; top: 16px; height: 2px;
  background: rgba(255,255,255,.2); z-index: 0;
}
html[data-contrast="hc"] .tracker__nodes::before { background: currentColor; }
.tracker__node {
  position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: .4rem;
  flex: 1; min-width: 0;
}
.tracker__dot {
  width: 34px; height: 34px; border-radius: 50%; background: var(--navy-deep);
  border: 2px solid rgba(255,255,255,.35); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: .8rem; font-weight: 700; color: rgba(255,255,255,.6);
  transition: transform var(--dur) var(--ease-out), background var(--dur), border-color var(--dur), color var(--dur);
}
.tracker__node[data-state="idle"] .tracker__dot { animation: trackerPulse 6s ease-in-out infinite; }
.tracker__node[data-state="idle"]:nth-child(2) .tracker__dot { animation-delay: 1.2s; }
.tracker__node[data-state="idle"]:nth-child(3) .tracker__dot { animation-delay: 2.4s; }
.tracker__node[data-state="idle"]:nth-child(4) .tracker__dot { animation-delay: 3.6s; }
.tracker__node[data-state="idle"]:nth-child(5) .tracker__dot { animation-delay: 4.8s; }
@keyframes trackerPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(249,115,22,0); } 50% { box-shadow: 0 0 0 6px rgba(249,115,22,.12); } }
.tracker__node[data-state="done"] .tracker__dot { background: var(--green); border-color: var(--green); color: var(--on-dark); }
.tracker__node[data-state="active"] .tracker__dot { background: var(--orange); border-color: var(--orange); color: var(--navy); transform: scale(1.15); }
.tracker__label {
  font-family: var(--font-display); font-size: .72rem; font-weight: 600;
  letter-spacing: .02em; color: rgba(255,255,255,.7); text-align: center;
}
.tracker__node[data-state="active"] .tracker__label,
.tracker__node[data-state="done"] .tracker__label { color: var(--on-dark); }
@media (max-width: 560px) { .tracker__label { font-size: .62rem; } .tracker__dot { width: 28px; height: 28px; } }

.tracker__form { display: flex; gap: .6rem; flex-wrap: wrap; }
.tracker__input-wrap { flex: 1; min-width: 180px; }
.tracker__input {
  width: 100%; padding: .8rem 1rem; border-radius: 10px; border: 1.5px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.08); color: var(--on-dark); font-family: var(--font-mono); font-size: 1rem;
  min-height: 48px;
}
.tracker__input::placeholder { color: rgba(255,255,255,.45); }
.tracker__input:focus { outline: none; border-color: var(--orange); background: rgba(255,255,255,.12); }
.tracker__result { margin-top: 1rem; }
.tracker__result[hidden] { display: none; }
.tracker__result-card {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 10px;
  padding: 1rem 1.15rem; text-align: left; font-size: .92rem; color: rgba(255,255,255,.9);
}
.tracker__result-card strong { color: var(--on-dark); }
.tracker__error {
  margin-top: 1rem; padding: .85rem 1rem; border-radius: 10px; text-align: left; font-size: .9rem;
  background: rgba(220,38,38,.15); border: 1px solid rgba(248,113,113,.4); color: #FCA5A5;
}
.tracker--full { max-width: 640px; margin: 0 auto; }

/* =====================================================================
   BUTTONS
   ===================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .8rem 1.6rem; border-radius: 10px;
  font-family: var(--font-display); font-size: 1rem; font-weight: 700;
  cursor: pointer; border: 2px solid transparent; text-decoration: none !important;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast), background var(--dur-fast), color var(--dur-fast);
}
.btn:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.btn:active { transform: translateY(0) scale(.98); }
.btn:hover { transform: translateY(-1px); }

.btn--orange { background: var(--orange-ink); color: var(--on-dark); border-color: var(--orange-ink); box-shadow: var(--shadow-orange); }
.btn--orange:hover { background: #a84604; border-color: #a84604; }
.btn--outline { background: transparent; color: var(--on-dark); border-color: rgba(255,255,255,.5); }
.btn--outline:hover { background: rgba(255,255,255,.12); }
.btn--navy { background: var(--navy); color: var(--on-dark); border-color: var(--navy); }
.btn--navy:hover { background: #0a2d7a; border-color: #0a2d7a; }
.btn--navy:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn--wa { background: var(--wa-green-ink); color: #FFFFFF; border-color: var(--wa-green-ink); }
.btn--wa:hover { background: #106030; border-color: #106030; }
.btn--sm { min-height: 40px; padding: .55rem 1.1rem; font-size: .88rem; }
.btn--block { width: 100%; }

/* =====================================================================
   SECTIONS / LAYOUT
   ===================================================================== */
main { display: block; }
.section { padding: var(--sp-5) 1.25rem; }
.section--tight { padding: var(--sp-4) 1.25rem; }
.section__inner { max-width: 1080px; margin: 0 auto; }
.section__inner--narrow { max-width: 760px; }
.section__eyebrow {
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-eyebrow);
  text-transform: uppercase; letter-spacing: .12em; color: var(--orange-ink); margin-bottom: .5rem; display: block;
}
.section__title { font-size: var(--fs-2); color: var(--text-brand); margin-bottom: .6rem; }
.section__sub { color: var(--muted); font-size: 1rem; max-width: 640px; }
.section--paper2 { background: var(--paper-2); }
.section--navy { background: var(--navy); color: var(--on-dark); }
.section--white { background: var(--white); }

/* TL;DR band */
.tldr { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tldr__row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem;
  max-width: 1080px; margin: 0 auto; padding: 1.5rem 1.25rem; text-align: center;
}
.tldr__item { font-size: .92rem; color: var(--ink); font-weight: 500; }
.tldr__item svg { width: 22px; height: 22px; color: var(--orange-ink); margin: 0 auto .5rem; display: block; }
@media (max-width: 860px) { .tldr__row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .tldr__row { grid-template-columns: 1fr; } }

/* Cards grid */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--sp-3); margin-top: var(--sp-3); }
.card {
  background: var(--white); border-radius: var(--radius); padding: var(--sp-3);
  box-shadow: var(--shadow-sm); border-top: 4px solid var(--orange);
  transition: box-shadow var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), border-color var(--dur);
  display: flex; flex-direction: column; gap: .6rem;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.card__icon { width: 32px; height: 32px; color: var(--orange-ink); }
.card__title { color: var(--text-brand); font-size: 1.05rem; }
.card__desc { color: var(--muted); font-size: .92rem; flex: 1; }
.card__link {
  display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; font-size: .88rem;
  color: var(--orange-ink); min-height: 44px;
}

/* Proceso (how it works) */
.proceso {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-3); margin-top: var(--sp-3);
}
@media (max-width: 860px) { .proceso { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .proceso { grid-template-columns: 1fr; } }
.proceso__step { text-align: center; padding: var(--sp-3) var(--sp-2); }
.proceso__num {
  width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: var(--on-dark);
  display: flex; align-items: center; justify-content: center; font-family: var(--font-display);
  font-weight: 700; font-size: 1.1rem; margin: 0 auto .75rem;
}
.proceso__step h3 { color: var(--text-brand); font-size: .98rem; margin-bottom: .35rem; }
.proceso__step p { color: var(--muted); font-size: .88rem; }

/* Compromisos / certificaciones */
.compromisos { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: var(--sp-2); margin-top: var(--sp-3); }
.compromiso { display: flex; gap: .75rem; align-items: flex-start; padding: 1rem; background: var(--paper-2); border-radius: var(--radius); }
.compromiso svg { width: 24px; height: 24px; color: var(--green); flex-shrink: 0; margin-top: .1rem; }
.compromiso p { font-size: .9rem; color: var(--ink); }

/* Testimonios */
.testimonios { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: var(--sp-3); margin-top: var(--sp-3); }
.testimonio { background: var(--white); border-radius: var(--radius); padding: var(--sp-3); box-shadow: var(--shadow-sm); }
.testimonio p { font-style: italic; color: var(--ink); margin-bottom: .75rem; }
.testimonio cite { font-style: normal; font-weight: 600; color: var(--text-brand); font-size: .88rem; }

/* Pricing table */
.price-table { width: 100%; border-collapse: collapse; margin-top: var(--sp-3); font-size: .92rem; }
.price-table caption { text-align: left; font-weight: 600; color: var(--text-brand); margin-bottom: .5rem; }
.price-table th, .price-table td { text-align: left; padding: .65rem .75rem; border-bottom: 1px solid var(--line); }
.price-table th { font-family: var(--font-display); font-weight: 600; color: var(--text-brand); background: var(--paper-2); }
.price-table td:last-child, .price-table th:last-child { text-align: right; font-family: var(--font-mono); }
.price-note { font-size: .85rem; color: var(--muted); margin-top: .75rem; }
.price-caveat {
  background: var(--paper-2); border-left: 4px solid var(--orange); border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem; margin: var(--sp-3) 0; font-size: .92rem;
}
@media (max-width: 640px) {
  .price-table { display: block; overflow-x: auto; white-space: nowrap; }
}

/* FAQ */
.faq { max-width: 760px; margin: var(--sp-3) auto 0; }
.faq details {
  background: var(--white); border-radius: var(--radius); margin-bottom: .75rem; padding: 0;
  border: 1px solid var(--line); overflow: hidden;
}
.faq summary {
  padding: 1rem 1.25rem; cursor: pointer; font-weight: 600; color: var(--text-brand);
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; font-size: 1.3rem; font-weight: 400; color: var(--orange-ink); flex-shrink: 0;
  transition: transform var(--dur-fast);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:focus-visible { outline: 3px solid var(--orange); outline-offset: -3px; }
.faq__answer { padding: 0 1.25rem 1.1rem; color: var(--muted); font-size: .92rem; }

/* Contacto */
.contacto { display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--sp-4); align-items: start; }
@media (max-width: 860px) { .contacto { grid-template-columns: 1fr; } }
.contacto__detail { display: flex; gap: .75rem; align-items: flex-start; margin-bottom: 1rem; }
.contacto__detail svg { width: 22px; height: 22px; color: var(--orange-ink); flex-shrink: 0; margin-top: .15rem; }
.contacto__detail strong { display: block; color: var(--text-brand); font-size: .85rem; }
.contacto__detail span { color: var(--muted); font-size: .95rem; }

/* Form */
.form { display: flex; flex-direction: column; gap: 1rem; background: var(--white); padding: var(--sp-3); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.form__progress { height: 4px; background: var(--line); border-radius: 999px; overflow: hidden; }
.form__progress-bar { height: 100%; width: 0%; background: var(--orange); transition: width var(--dur) var(--ease-out); }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label { font-weight: 600; color: var(--text-brand); font-size: .9rem; }
.field input, .field select, .field textarea {
  padding: .75rem 1rem; border: 1.5px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: 1rem; min-height: 48px; background: var(--white); color: var(--ink);
  transition: border-color var(--dur-fast);
}
.field textarea { min-height: 100px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(8,34,94,.12); }
.field__error { color: #B91C1C; font-size: .82rem; display: none; }
.field.has-error input, .field.has-error textarea { border-color: #DC2626; }
.field.has-error .field__error { display: block; }
.form__success {
  padding: 1.5rem; background: #E8F5E9; color: #1B5E20; border: 1px solid #A5D6A7;
  border-radius: var(--radius); text-align: center; font-weight: 600;
}
:root[data-theme="dark"] .form__success { background: #14361A; color: #86EFAC; border-color: #1F5A2A; }

/* CTA band */
.cta-band { background: var(--navy); color: var(--on-dark); text-align: center; }
.cta-band__robot { width: 140px; margin: 0 auto var(--sp-2); }
.cta-band h2 { font-size: var(--fs-2); margin-bottom: .75rem; }
.cta-band p { color: rgba(255,255,255,.8); margin-bottom: var(--sp-3); }

/* =====================================================================
   FOOTER
   ===================================================================== */
footer.site-footer { background: #04143A; color: rgba(255,255,255,.75); padding: var(--sp-4) 1.25rem var(--sp-3); }
.footer__grid { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: var(--sp-3); }
.footer__col h4 { color: var(--on-dark); font-family: var(--font-display); font-size: .95rem; margin-bottom: .75rem; }
.footer__col a { display: block; color: rgba(255,255,255,.7); font-size: .9rem; padding: .3rem 0; transition: color var(--dur-fast) var(--ease-out), padding-left var(--dur-fast) var(--ease-out); }
.footer__col a:hover { color: var(--on-dark); padding-left: .25rem; }
.footer__social { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .5rem; }
/* `a.social-icon` (not `.social-icon`) — specificity fix (2026-09-03, operator-
   reported: "social media buttons are wrongly displayed, not centered"). These
   anchors sit inside `.footer__col`, and `.footer__col a` above (class+element,
   specificity 0,1,1) was silently beating `.social-icon` (class only, 0,1,0)
   regardless of source order, so `display:inline-flex` never won — the icons
   rendered as `.footer__col a`'s `display:block` instead, killing the
   align-items/justify-content centering entirely (confirmed live via computed
   styles + CSSOM rule matching: rendered width was 27.2px against the
   declared 38px, svg flush top-left instead of centered). Bumping this
   selector to element+class (0,1,1) ties the specificity; being LATER in this
   file than `.footer__col a`, it now wins the tie and restores the intended
   flex box. */
a.social-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px;
  flex-shrink: 0; /* 2026-09-03: narrow footer columns (5 icons + gaps > column
    width) were shrinking icons on the main axis only via flexbox's default
    flex-shrink:1 -- width compressed to ~27px while height stayed 38px
    (shrink only applies to the row axis), producing ovals instead of circles.
    Confirmed live at 655px viewport: wrapWidth 184px < 5*38+4*12=238px needed.
    flex-shrink:0 here + flex-wrap:wrap on .footer__social (above) means icons
    now wrap to a second row at that width instead of deforming. */
  border-radius: 50%; background: rgba(255,255,255,.08); color: rgba(255,255,255,.75);
  transition: background var(--dur-fast), color var(--dur-fast), transform var(--dur-fast);
}
a.social-icon svg { display: block; width: 18px; height: 18px; }
a.social-icon:hover, a.social-icon:focus-visible { background: var(--orange); color: var(--on-dark); transform: translateY(-2px) scale(1.08); }
a.social-icon:focus-visible { outline: 2px solid var(--on-dark); outline-offset: 2px; }
.footer__bottom {
  max-width: 1080px; margin: var(--sp-3) auto 0; padding-top: var(--sp-2); border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; font-size: .82rem;
}
.footer__legal { display: flex; gap: .5rem; flex-wrap: wrap; }
.footer__legal a { border: 1px solid rgba(255,255,255,.25); padding: .3rem .85rem; border-radius: 999px; color: rgba(255,255,255,.75); transition: border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out); }
.footer__legal a:hover { border-color: var(--on-dark); color: var(--on-dark); background: rgba(255,255,255,.08); }

/* Sticky mobile action bar */
.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 150; display: none;
  grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line);
  box-shadow: 0 -4px 16px rgba(0,0,0,.15);
}
.sticky-bar a { background: var(--white); color: var(--text-brand); padding: .9rem; text-align: center; font-weight: 700; font-size: .92rem; display: flex; align-items: center; justify-content: center; gap: .4rem; min-height: 52px; }
.sticky-bar a:last-child { background: var(--wa-green-ink); color: #FFF; }
@media (max-width: 767px) { .sticky-bar { display: grid; } body { padding-bottom: 52px; } }

/* Back to top */
.back-to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 140;
  width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: var(--on-dark);
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity var(--dur), transform var(--dur), visibility var(--dur);
  border: none; cursor: pointer;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--orange-ink); transform: translateY(-3px); }
.back-to-top:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
@media (max-width: 767px) { .back-to-top { bottom: 70px; } }

/* =====================================================================
   COOKIE NOTICE (D-160 markup, styling added 2026-09-03 — operator-reported:
   "el texto de las cookies no está funcionando bien... el botón de entendido
   no funciona"). site.js already toggles `.is-open` correctly and the
   `#cookie-ok` click handler already works (verified in js/site.js) — the
   bug was that ZERO CSS existed for `#cookie-notice` at all, so the banner
   rendered as an unstyled, statically-positioned block dumped at the bottom
   of the page flow (easy to miss / mistake for "not working"), and the
   button had no visual affordance to click. Styled here as a fixed bottom
   banner using the same brand-navy pattern as .cta-band/.section--navy, so
   it reads as part of the UI rather than a leftover default. */
#cookie-notice {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  background: var(--navy); color: var(--on-dark);
  padding: var(--sp-2) var(--sp-3);
  box-shadow: 0 -6px 24px rgba(0,0,0,.25);
  align-items: center; justify-content: center; gap: var(--sp-3);
  flex-wrap: wrap;
  transform: translateY(100%);
  transition: transform var(--dur) var(--ease-out);
}
#cookie-notice.is-open { display: flex; transform: translateY(0); }
#cookie-notice > span { flex: 1 1 480px; font-size: .92rem; line-height: 1.5; max-width: 72ch; }
#cookie-notice a { color: var(--orange); text-decoration: underline; text-underline-offset: 2px; }
#cookie-notice a:hover, #cookie-notice a:focus { color: #FFB870; }
#cookie-ok {
  flex: 0 0 auto; font-family: inherit; font-weight: 700; font-size: .9rem;
  background: var(--orange-ink); color: var(--on-dark); border: 1.5px solid var(--orange-ink);
  padding: .65rem 1.4rem; border-radius: 999px; cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
#cookie-ok:hover { background: #a84604; border-color: #a84604; transform: translateY(-1px); box-shadow: var(--shadow-md); }
#cookie-ok:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
@media (max-width: 640px) {
  #cookie-notice { justify-content: flex-start; padding: var(--sp-2); }
  #cookie-notice > span { flex-basis: 100%; }
  #cookie-ok { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  #cookie-notice { transition: none; }
}
html[data-motion="reduce"] #cookie-notice { transition: none; }

/* =====================================================================
   UTILITIES
   ===================================================================== */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.eyebrow-block { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: var(--sp-3); }
.eyebrow-block .section__sub { margin: 0 auto; }
.robot-inline { width: clamp(90px, 12vw, 140px); }

/* =====================================================================
   MOTION / REVEAL (see js/reveal.js — this only supplies the CSS state)
   Refined 2026-09-03 per operator request ("Mas animaciones de mayor
   calidad al hacer scroll up and down") + ui-ux-pro-max §7 (GSAP anim
   principles, applied as CSS transitions — no GSAP lib: CSP script-src
   is locked to 'self', see netlify.toml, and this is a no-build-step
   static site). Kept y-offset small (18px, was 24px) so it reads as a
   lift/fade rather than a slide, added a small scale-in (GSAP guidance:
   scale + fade reads as higher production value than translate alone,
   as long as the scale delta stays subtle — 0.97→1, not a "pop"), and
   split the easing curve so ENTER settles slightly slower than a plain
   linear-ish ease (more "weight") while EXIT (the reveal engine removes
   .rv--in when a section scrolls back out of view, so it can re-enter)
   stays snappy — the "exit faster than enter" GSAP anti-pattern fix.

   NOTE on which rule governs which direction: a CSS transition always
   plays using the `transition` property found on the element's style
   AFTER the class change (its new computed state), not before. Reveal.js
   only ever toggles `.rv--in` on/off (the base `.rv` class stays put), so:
     - ENTER = `.rv` → `.rv rv--in`  → new state is `.rv--in`, so the
       slow/weighty easing + the `--i` stagger delay live there.
     - EXIT  = `.rv rv--in` → `.rv`  → new state is bare `.rv`, so the
       fast, un-staggered snap-back lives there instead. */
.rv {
  opacity: 0; transform: translateY(18px) scale(.97);
  transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
  will-change: opacity, transform;
}
.rv--up { transform: translateY(-18px) scale(.97); }
.rv--in {
  opacity: 1; transform: none;
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) cubic-bezier(.16,.84,.32,1);
  transition-delay: calc(var(--i, 0) * 60ms);
}
html[data-motion="reduce"] .rv,
html:not([data-motion="auto"]) .rv {
  opacity: 1; transform: none; transition: none;
}
@media (prefers-reduced-motion: reduce) {
  html:not([data-motion="auto"]) .rv { opacity: 1; transform: none; transition: none; }
}

/* ---- D-200 (2026-09-04) load + scroll choreography, vanilla translation of
   ui-ux-pro-max --domain gsap "Stagger List" (headline pieces enter
   individually, expo.out ≈ cubic-bezier(.16,1,.3,1), 400–700ms) and
   "Scroll Reveal" (small y offset, reverse on exit). No GSAP: Immutable
   Law (vanilla only) + CSP script-src 'self'. All of it keys off the
   existing .rv/.rv--in contract from reveal.js, so it already runs on
   first paint (IO fires for in-viewport elements), on reload, and both
   scroll directions — nothing new to wire.

   1. Headline pieces: .hero__title's direct children (the <span> and the
      <em>, i18n-safe — text nodes are never split) rise in one after the
      other once the h1 itself is .rv--in. Same for every .section__title
      via a clip-wipe from below. */
.hero__title.rv > * { display: inline-block; opacity: 0; transform: translateY(.55em) rotate(-1.5deg); transform-origin: left bottom;
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) cubic-bezier(.16,1,.3,1); }
.hero__title.rv--in > * { opacity: 1; transform: none; }
.hero__title.rv--in > *:nth-child(1) { transition-delay: 120ms; }
.hero__title.rv--in > *:nth-child(2) { transition-delay: 300ms; }
.hero__title.rv--in > *:nth-child(3) { transition-delay: 480ms; }
.section__title.rv { clip-path: inset(0 0 100% 0); transform: translateY(12px); transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out), clip-path var(--dur-fast) var(--ease-out); }
.section__title.rv--in { clip-path: inset(0 0 -10% 0); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) cubic-bezier(.16,1,.3,1), clip-path var(--dur-slow) cubic-bezier(.16,1,.3,1); }

/* 2. Hero robot (desktop only, hidden ≤640px): enters from the right on
      load, idles with a slow hover, and drifts with scroll via --sy
      (window.scrollY in px, set by site.js) — parallax at 0.12×. */
.hero__robot { animation: robotIn .9s cubic-bezier(.16,1,.3,1) both, robotIdle 5s ease-in-out 1s infinite; }
@keyframes robotIn { from { opacity: 0; transform: translate(40px, 20px) rotate(4deg); } to { opacity: 1; transform: none; } }
@keyframes robotIdle { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.hero__robot { translate: 0 calc(var(--sy, 0) * .12px); }

/* 3. CTA band ("¿Hablamos?"): robot floats in and idles, heading/copy/button
      stagger via --i. Footer: columns stagger, social icons pop in one by
      one, legal pills follow. All reversible on exit (reveal.js removes
      .rv--in when scrolled out). */
.cta-band__robot.rv { transform: translateY(24px) scale(.9) rotate(-4deg); }
.cta-band__robot.rv--in { animation: robotIdle 4.5s ease-in-out .8s infinite; }
.footer__social .social-icon { opacity: 0; transform: scale(.6) translateY(8px); transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out); }
.footer__social.rv--in .social-icon { opacity: 1; transform: none; transition: opacity var(--dur) var(--ease-out), transform var(--dur) cubic-bezier(.34,1.56,.64,1); }
.footer__social.rv--in .social-icon:nth-child(1) { transition-delay: 60ms; }
.footer__social.rv--in .social-icon:nth-child(2) { transition-delay: 120ms; }
.footer__social.rv--in .social-icon:nth-child(3) { transition-delay: 180ms; }
.footer__social.rv--in .social-icon:nth-child(4) { transition-delay: 240ms; }
.footer__social.rv--in .social-icon:nth-child(5) { transition-delay: 300ms; }
.footer__legal a { transition: border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out), transform var(--dur) cubic-bezier(.16,1,.3,1), opacity var(--dur) var(--ease-out); }
.footer__bottom.rv .footer__legal a { opacity: 0; transform: translateY(8px); }
.footer__bottom.rv--in .footer__legal a { opacity: 1; transform: none; }
.footer__bottom.rv--in .footer__legal a:nth-child(2) { transition-delay: 80ms; }
.footer__bottom.rv--in .footer__legal a:nth-child(3) { transition-delay: 160ms; }

/* 4. Reduced motion (system OR a11y widget) — every rule above collapses
      to the final state; the .rv rules just before this block already do
      the same for the base reveal. */
html[data-motion="reduce"] .hero__title.rv > *, html:not([data-motion="auto"]) .hero__title.rv > *,
html[data-motion="reduce"] .footer__social .social-icon, html:not([data-motion="auto"]) .footer__social .social-icon,
html[data-motion="reduce"] .footer__bottom.rv .footer__legal a, html:not([data-motion="auto"]) .footer__bottom.rv .footer__legal a
  { opacity: 1; transform: none; transition: none; }
html[data-motion="reduce"] .section__title.rv, html:not([data-motion="auto"]) .section__title.rv { clip-path: none; transform: none; }
html[data-motion="reduce"] .hero__robot, html:not([data-motion="auto"]) .hero__robot,
html[data-motion="reduce"] .cta-band__robot, html:not([data-motion="auto"]) .cta-band__robot { animation: none; translate: 0 0; }
html[data-motion="reduce"] header.site-header::after { transition: none; }
@media (prefers-reduced-motion: reduce) {
  html:not([data-motion="auto"]) .hero__title.rv > *, html:not([data-motion="auto"]) .footer__social .social-icon, html:not([data-motion="auto"]) .footer__bottom.rv .footer__legal a { opacity: 1; transform: none; transition: none; }
  html:not([data-motion="auto"]) .section__title.rv { clip-path: none; transform: none; }
  html:not([data-motion="auto"]) .hero__robot, html:not([data-motion="auto"]) .cta-band__robot { animation: none; translate: 0 0; }
}

/* Page-transition fallback (browsers without @view-transition) */
body.page-enter { animation: pageFade .25s var(--ease-out); }
@keyframes pageFade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { body.page-enter { animation: none; } }

/* =====================================================================
   PRINT
   ===================================================================== */
@media print {
  header.site-header, footer.site-footer, .sticky-bar, .back-to-top, .a11y-fab, .a11y-panel, .hero__robot, #cookie-notice { display: none !important; }
  .hero { background: none !important; color: #000 !important; min-height: auto; padding: 1rem 0; }
  body { background: #fff !important; }
}

/* =====================================================================
   RESPONSIVE (mobile-first already above; desktop refinements)
   ===================================================================== */
@media (min-width: 1024px) {
  .cards { grid-template-columns: repeat(4, 1fr); }
}

/* =====================================================================
   LEGAL DOCUMENT PAGES (privacidad.html / terminos.html / cookies.html)
   D-195 Phase 2 re-skin — additive only, reuses existing tokens.
   Content inside .legal-wrap is the operator-approved legal text; these
   rules exist purely to give it the same card/typography treatment as
   the rest of the site (ported from the pages' old scoped <style>).
   ===================================================================== */
.legal-wrap {
  max-width: 820px; margin: 0 auto var(--sp-5);
  background: var(--white); border-radius: var(--radius);
  padding: 2.25rem 2.5rem; box-shadow: var(--shadow-sm);
}
.legal-wrap h1 { color: var(--text-brand); font-size: 1.55rem; margin-bottom: .35rem; }
.legal-wrap h2 { color: var(--text-brand); font-size: 1.08rem; margin-top: 1.9em; margin-bottom: .5em; }
.legal-wrap p, .legal-wrap li { font-size: .95rem; margin-bottom: .6em; }
.legal-wrap ul, .legal-wrap ol { padding-left: 1.35rem; margin-bottom: .8em; }
.legal-wrap .muted { color: var(--muted); font-size: .85rem; }
/* Links inside legal text inherit the global `a { color: var(--text-brand) }`
   rule (site.css:168) — do NOT override with --orange-ink here: orange-ink is
   only dark-mode-safe on solid backgrounds (buttons), and measured 3.88:1 on
   the dark --white card background used by .legal-wrap — a WCAG AA fail. */
.legal-wrap table { width: 100%; border-collapse: collapse; font-size: .88rem; margin: .8em 0; }
.legal-wrap th, .legal-wrap td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.legal-wrap th { background: var(--paper-2); color: var(--text-brand); }
.legal-wrap .ok { color: var(--green); font-weight: 700; }
/* --green (#3D7A6A) measures 3.56:1 on the dark card bg (#0F172A) — WCAG AA
   fail. Dark-safe override below is the same hue/saturation lifted to L=.419,
   measured 2026-09-02: 4.98:1 on #0F172A. Light mode is unchanged. */
:root[data-theme="dark"] .legal-wrap .ok { color: #4A9484; }
.legal-wrap .note { background: #FFF7ED; border-left: 4px solid var(--orange-ink); padding: 12px 14px; border-radius: 6px; font-size: .9rem; margin: 1em 0; }
:root[data-theme="dark"] .legal-wrap .note { background: rgba(249,115,22,.12); }
@media (max-width: 640px) {
  .legal-wrap { padding: 1.5rem 1.15rem; }
}
