/* ==========================================================================
   Otterflow — styles.css
   Arquetipo: Mouse-Reactive Gradient (oscuro + un acento: verde agua de marca)
   Secciones: 0 fuentes · 1 tokens · 2 base · 3 utilidades · 4 nav · 5 hero
   6 demo · 7 servicios · 8 cifras · 9 proceso · 10 manifiesto · 11 FAQ
   12 CTA · 13 footer · 14 cookies · 15 legales · 16 auditoría · 17 responsive
   ========================================================================== */

/* ---------- 0. Fuentes (autoalojadas: no se envía nada a terceros) ---------- */
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/instrument-serif.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/instrument-serif-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("assets/fonts/inter.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("assets/fonts/jetbrains-mono.woff2") format("woff2");
}

/* ---------- 1. Tokens ---------- */
:root {
  --bg: #070B17;
  --bg-2: #0C1222;
  --bg-3: #121A2E;
  --ink: #EEF2F8;
  --ink-soft: #C3CBDA;
  --mute: #8591AA;
  --mute-2: #5E6B86;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);

  --accent: #00C9A7;          /* verde agua de marca: el único acento */
  --accent-ink: #032A22;
  --accent-dim: rgba(0, 201, 167, 0.12);
  --accent-soft: rgba(0, 201, 167, 0.35);
  --warn: #FFB27A;            /* solo para "revisar con calma" */

  /* colores del degradado reactivo */
  --g1: #00C9A7;
  --g2: #2F45FF;
  --g3: #0A6B8F;

  --font-display: "Instrument Serif", "Times New Roman", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --nav-h: 72px;
  --gutter: clamp(20px, 5vw, 64px);
  --maxw: 1240px;
  --radius: 18px;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }

::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 300;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; border-radius: 10px; font-weight: 600; text-decoration: none;
  transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 16px; }

/* ---------- 3. Utilidades ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { width: 100%; max-width: 980px; margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: clamp(88px, 12vw, 160px); }
.mono { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.01em; }
.muted { color: var(--mute); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}

.section-head { max-width: 820px; margin-bottom: clamp(48px, 7vw, 80px); }
.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.3rem, 5.4vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.section-title em, .hero-title em, .cta-title em {
  font-style: italic;
  color: var(--accent);
}
.section-sub {
  margin-top: 24px;
  max-width: 60ch;
  color: var(--ink-soft);
  font-size: 18px;
  text-wrap: pretty;
}
.section-sub a { color: var(--accent); }

/* Botones */
.btn {
  --mx: 0px; --my: 0px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  line-height: 1.2;
  transform: translate(var(--mx), var(--my));
  transition: transform .35s var(--ease-out), background-color .25s, color .25s, border-color .25s, box-shadow .35s var(--ease-out);
}
.btn span[aria-hidden] { transition: transform .3s var(--ease-out); }
.btn:hover span[aria-hidden] { transform: translateX(4px); }
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 0 0 0 var(--accent-soft);
}
.btn-primary:hover { box-shadow: 0 10px 40px -8px var(--accent-soft); }
.btn-primary:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn-ghost {
  border: 1px solid var(--line-2);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-lg { padding: 19px 30px; font-size: 16px; }

.link-arrow {
  display: inline-flex; gap: 8px; align-items: center;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .35s var(--ease-out);
  padding-bottom: 2px;
}
.link-arrow:hover { background-size: 100% 1px; }

.linklike {
  color: var(--mute); text-decoration: none; font-size: 14px; padding: 0;
  transition: color .2s;
}
.linklike:hover { color: var(--ink); }

/* Revelados al hacer scroll (sin JS: todo visible) */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].is-revealed { opacity: 1; transform: none; }
/* Defensa: si un elemento combina reveal + split, nunca queda invisible */
.reveal[data-split], [data-reveal][data-split] { opacity: 1; transform: none; }

/* ---------- 4. Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  transition: background-color .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(7, 11, 23, 0.9);
  border-bottom-color: var(--line);
}
@supports (backdrop-filter: blur(12px)) {
  .nav.is-scrolled { background: rgba(7, 11, 23, 0.62); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); }
}
.nav-inner {
  height: 100%;
  max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 600; font-size: 19px; letter-spacing: -0.02em;
  color: var(--ink);
}
.logo-mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #00997F);
  font-size: 18px;
  transition: transform .5s var(--ease-out);
}
.logo:hover .logo-mark { transform: rotate(-8deg) scale(1.06); }
.logo-word span { color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a:not(.nav-cta) {
  position: relative;
  font-size: 14px; font-weight: 500;
  color: var(--mute);
  text-decoration: none;
  padding-block: 6px;
  transition: color .2s;
}
.nav-links a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--ease-out);
}
.nav-links a:not(.nav-cta):hover,
.nav-links a.is-active { color: var(--ink); }
.nav-links a:not(.nav-cta):hover::after,
.nav-links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav-cta {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 14px; font-weight: 600;
  text-decoration: none;
  transition: box-shadow .3s var(--ease-out);
}
.nav-cta:hover { box-shadow: 0 8px 30px -6px var(--accent-soft); }

.nav-toggle { display: none; width: 44px; height: 44px; position: relative; }
.nav-toggle span {
  position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--ink);
  transition: transform .35s var(--ease-out), top .35s var(--ease-out);
}
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 26px; }
.nav-open .nav-toggle span:first-child { top: 21px; transform: rotate(45deg); }
.nav-open .nav-toggle span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- 5. Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: calc(var(--nav-h) + 48px);
  padding-bottom: 120px;
  isolation: isolate;
  overflow: clip;
}
.hero-gradient {
  --mx: 70%; --my: 35%;
  position: absolute; inset: -10%;
  z-index: -2;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(0, 201, 167, 0.55) 0%, transparent 32%),
    radial-gradient(circle at calc(100% - var(--mx)) calc(var(--my) + 25%), rgba(47, 69, 255, 0.42) 0%, transparent 38%),
    radial-gradient(circle at calc(var(--mx) - 30%) calc(100% - var(--my)), rgba(10, 107, 143, 0.45) 0%, transparent 40%);
  filter: blur(60px) saturate(130%);
  opacity: .9;
}
.hero-grid {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 75%);
  opacity: .55;
}
.hero-inner { position: relative; }
.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3rem, 8.4vw, 8.2rem);
  line-height: 0.95;
  letter-spacing: -0.025em;
  max-width: 14ch;
  text-wrap: balance;
}
.hero-title em { padding-right: .02em; margin-right: -.04em; }
.hero-sub {
  margin-top: 36px;
  max-width: 56ch;
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--ink-soft);
  text-wrap: pretty;
}
.hero-sub strong { color: var(--ink); font-weight: 600; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.hero-note { margin-top: 20px; color: var(--mute-2); }

.hero-marquee {
  position: absolute; left: 0; right: 0; bottom: 0;
  border-top: 1px solid var(--line);
  padding-block: 18px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex; gap: 28px; width: max-content;
  font-family: var(--font-display); font-size: 26px; color: var(--mute);
  animation: marquee 38s linear infinite;
}
.marquee-track i { font-style: normal; color: var(--accent); opacity: .6; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 6. Demo ---------- */
.demo { border-top: 1px solid var(--line); }
.demo-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px minmax(0, 1.25fr);
  align-items: center;
  gap: 0;
}
.demo-card {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 36px);
}
.demo-card .tag { display: block; color: var(--mute); margin-bottom: 18px; }
.demo-quote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  line-height: 1.18;
  color: var(--ink);
  min-height: 5.9em;
}
.demo-quote .caret {
  display: inline-block; width: 2px; height: .95em; margin-left: 2px;
  background: var(--accent); vertical-align: -0.1em;
  animation: caret 1s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }
.demo-out {
  border-color: var(--accent-soft);
  background:
    linear-gradient(180deg, var(--accent-dim), transparent 60%),
    var(--bg-2);
  box-shadow: 0 40px 120px -50px rgba(0, 201, 167, .45);
}
.demo-out .tag { color: var(--accent); }
.demo-out h3 {
  font-family: var(--font-display); font-weight: 400;
  font-size: 1.9rem; line-height: 1.1; margin-bottom: 18px;
}
.demo-list { display: grid; gap: 14px; }
.demo-list li {
  display: grid; grid-template-columns: 14px 1fr; gap: 12px;
  color: var(--ink-soft); font-size: 15.5px; line-height: 1.55;
}
.js .demo-list li { opacity: 0; transform: translateX(-10px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.js .demo-out.is-revealed .demo-list li { opacity: 1; transform: none; }
.js .demo-out.is-revealed .demo-list li:nth-child(1) { transition-delay: .5s; }
.js .demo-out.is-revealed .demo-list li:nth-child(2) { transition-delay: .75s; }
.js .demo-out.is-revealed .demo-list li:nth-child(3) { transition-delay: 1s; }
.dot { width: 9px; height: 9px; border-radius: 50%; margin-top: .55em; }
.dot-go { background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.dot-wait { background: var(--warn); }

.demo-arrow {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  color: var(--mute); text-align: center;
  padding-inline: 8px;
}
.demo-line {
  position: relative; display: block;
  width: 100%; height: 1px;
  background: linear-gradient(90deg, var(--line-2), var(--accent));
}
.demo-line::after {
  content: ""; position: absolute; right: -1px; top: -4px;
  border: 4.5px solid transparent; border-left: 7px solid var(--accent);
}
.demo-pulse {
  position: absolute; top: -3px; left: 0;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 14px var(--accent);
  animation: pulseTravel 2.4s var(--ease-in-out) infinite;
}
@keyframes pulseTravel {
  0% { left: 0; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { left: calc(100% - 7px); opacity: 0; }
}

/* ---------- 7. Servicios (filas acordeón con inversión al pasar) ---------- */
.svc-list { border-top: 1px solid var(--line-2); }
.svc { border-bottom: 1px solid var(--line-2); }
.svc-row {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto 44px;
  align-items: center;
  gap: 20px;
  padding: clamp(22px, 3vw, 34px) clamp(8px, 1.5vw, 20px);
  cursor: pointer;
  list-style: none;
  isolation: isolate;
  overflow: hidden;
  transition: color .45s var(--ease-out);
}
.svc-row::-webkit-details-marker { display: none; }
.svc-row::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--accent);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .55s var(--ease-out);
}
@media (hover: hover) {
  .svc-row:hover { color: var(--accent-ink); }
  .svc-row:hover::before { transform: scaleY(1); }
  .svc-row:hover .svc-num,
  .svc-row:hover .svc-tag { color: var(--accent-ink); border-color: rgba(3, 42, 34, .35); }
  .svc-row:hover .svc-plus::before,
  .svc-row:hover .svc-plus::after { background: var(--accent-ink); }
}
.svc-num { color: var(--mute); transition: color .45s; }
.svc-name {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.6vw, 4rem);
  line-height: 1;
  letter-spacing: -0.015em;
}
.svc-tag {
  font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--mute);
  border: 1px solid var(--line-2);
  padding: 7px 12px; border-radius: 999px;
  white-space: nowrap;
  transition: color .45s, border-color .45s;
}
.svc-tag.is-free { color: var(--accent); border-color: var(--accent-soft); }
.svc-tag.is-soon { color: var(--warn); border-color: rgba(255, 178, 122, .35); }
.svc.is-soon .svc-name { color: var(--mute); }
.svc.is-soon .svc-row:hover .svc-name { color: var(--accent-ink); }
.svc-plus { position: relative; width: 22px; height: 22px; justify-self: end; }
.svc-plus::before, .svc-plus::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px;
  background: var(--ink);
  transition: transform .45s var(--ease-out), background-color .45s;
}
.svc-plus::after { transform: rotate(90deg); }
.svc[open] .svc-plus::after { transform: rotate(0deg); }

.svc-body { overflow: hidden; }
.svc-body-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 56px);
  padding: 8px clamp(8px, 1.5vw, 20px) clamp(36px, 5vw, 56px) calc(64px + 20px + clamp(8px, 1.5vw, 20px));
}
.svc-text p { color: var(--ink-soft); font-size: 17.5px; text-wrap: pretty; }
.svc-text .btn, .svc-text .link-arrow { margin-top: 28px; }
.svc-text .mono.muted { margin-top: 14px; }
.checks { margin-top: 22px; display: grid; gap: 10px; }
.checks li {
  position: relative; padding-left: 28px; color: var(--ink-soft); font-size: 15.5px;
}
.checks li::before {
  content: ""; position: absolute; left: 2px; top: .5em;
  width: 12px; height: 7px;
  border-left: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg);
}

/* Tratamiento duotono de las fotos (acento + negro) */
.duotone {
  position: relative; overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 4 / 3;
  background: var(--bg-3);
}
.duotone img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.1) brightness(.85);
  transform: scale(1.04);
  transition: filter .8s var(--ease-out), transform 1.2s var(--ease-out);
}
.duotone::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(0, 201, 167, .55), rgba(7, 11, 23, .75));
  mix-blend-mode: multiply;
  transition: opacity .8s var(--ease-out);
  pointer-events: none;
}
.duotone:hover img { filter: grayscale(.1) contrast(1.05) brightness(1); transform: scale(1); }
.duotone:hover::after { opacity: .25; }

/* ---------- 8. Cifras ---------- */
.stats { border-block: 1px solid var(--line); background: var(--bg-2); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat {
  display: flex; flex-direction: column; gap: 8px;
  padding: clamp(32px, 5vw, 56px) clamp(12px, 2vw, 28px);
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: 0; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 7vw, 6rem);
  line-height: .9;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stat-num small { font-size: .5em; color: var(--accent); margin-left: .08em; }
.stat-label { color: var(--mute); font-size: 15px; }

/* ---------- 9. Proceso ---------- */
.steps {
  --progress: 1;
  position: relative;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px);
  counter-reset: step;
}
.steps::before, .steps::after {
  content: ""; position: absolute; left: 0; right: 0; top: 34px; height: 1px;
}
.steps::before { background: var(--line-2); }
.steps::after {
  background: var(--accent);
  transform: scaleX(var(--progress)); transform-origin: left;
  box-shadow: 0 0 12px var(--accent);
}
.step { position: relative; display: grid; gap: 28px; align-content: start; }
.step-num {
  position: relative; z-index: 1;
  width: 68px; height: 68px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--accent-soft);
  font-family: var(--font-mono); font-size: 14px; color: var(--accent);
}
.step h3 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.6rem, 2.4vw, 2.1rem); line-height: 1.1; margin-bottom: 12px;
}
.step p { color: var(--ink-soft); font-size: 16px; text-wrap: pretty; }

/* ---------- 10. Manifiesto ---------- */
.manifesto { text-align: left; border-top: 1px solid var(--line); }
.manifesto-text {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.2vw, 3.6rem);
  line-height: 1.14;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}
.manifesto-text strong { font-weight: 400; font-style: italic; color: var(--accent); }
.manifesto-text .w { transition: opacity .25s linear; }
.manifesto-text.is-split .w { opacity: .18; }
.manifesto-text.is-split .w.is-on { opacity: 1; }

/* ---------- 11. FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-head { position: sticky; top: calc(var(--nav-h) + 32px); margin-bottom: 0; }
.faq-list { border-top: 1px solid var(--line-2); }
.faq-item { border-bottom: 1px solid var(--line-2); }
.faq-item summary {
  position: relative;
  list-style: none; cursor: pointer;
  padding: 24px 48px 24px 0;
  font-size: clamp(17px, 1.6vw, 19px); font-weight: 500;
  transition: color .2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; position: absolute; right: 6px; top: 50%;
  width: 10px; height: 10px; margin-top: -7px;
  border-right: 1.5px solid var(--mute); border-bottom: 1.5px solid var(--mute);
  transform: rotate(45deg);
  transition: transform .35s var(--ease-out), border-color .2s;
}
.faq-item summary:hover { color: var(--accent); }
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: -2px; border-color: var(--accent); }
.faq-body { overflow: hidden; }
.faq-body p { padding: 0 48px 26px 0; color: var(--ink-soft); text-wrap: pretty; }
.faq-body a { color: var(--accent); }

/* ---------- 12. CTA final ---------- */
.cta-final { overflow: clip; isolation: isolate; border-top: 1px solid var(--line); text-align: center; }
.cta-gradient {
  position: absolute; inset: 10% -10% -30%; z-index: -1;
  background:
    radial-gradient(40% 50% at 50% 60%, rgba(0, 201, 167, .32), transparent 70%),
    radial-gradient(30% 40% at 25% 80%, rgba(47, 69, 255, .25), transparent 70%);
  filter: blur(40px);
}
.cta-inner { display: flex; flex-direction: column; align-items: center; }
.cta-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 6.6rem);
  line-height: .98; letter-spacing: -0.02em;
  max-width: 14ch; text-wrap: balance;
}
.cta-sub { margin-top: 28px; max-width: 56ch; color: var(--ink-soft); font-size: 18px; }
.cta-buttons { margin-top: 40px; }
.cta-or { margin-top: 64px; color: var(--mute-2); }
.big-mail {
  margin-top: 14px;
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(2rem, 6vw, 5rem);
  line-height: 1.1;
  text-decoration: none;
  color: var(--ink);
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 2px no-repeat;
  transition: background-size .6s var(--ease-out), color .3s;
  padding-bottom: 4px;
  overflow-wrap: anywhere;
}
.big-mail:hover { background-size: 100% 2px; color: var(--accent); }

/* ---------- 13. Footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg); padding-top: 64px; }
.footer-inner {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px;
  padding-bottom: 48px;
}
.footer-brand p { margin-top: 14px; font-size: 15px; }
.footer-links { display: grid; gap: 12px; align-content: start; }
.footer-links a { color: var(--mute); text-decoration: none; font-size: 14px; transition: color .2s; }
.footer-links a:hover { color: var(--ink); }
.footer-base {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-block: 24px 32px; border-top: 1px solid var(--line);
}

/* ---------- 14. Banner de cookies ---------- */
.consent {
  position: fixed; z-index: 400;
  left: 16px; right: 16px; bottom: 16px;
  max-width: 460px;
  background: #0E1628;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7);
  transform: translateY(24px); opacity: 0;
  transition: transform .5s var(--ease-out), opacity .5s var(--ease-out);
}
.consent.is-in { transform: none; opacity: 1; }
.consent h2 { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; line-height: 1.1; margin-bottom: 10px; }
.consent p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.55; }
.consent a { color: var(--accent); }
.consent-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.consent-actions .btn { padding: 11px 18px; font-size: 14px; flex: 1 1 auto; justify-content: center; }
.consent-prefs { display: none; margin-top: 16px; border-top: 1px solid var(--line); }
.consent.show-prefs .consent-prefs { display: block; }
.consent-opt {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center;
  padding-block: 14px; border-bottom: 1px solid var(--line);
}
.consent-opt strong { font-size: 14.5px; font-weight: 600; }
.consent-opt span { grid-column: 1; color: var(--mute); font-size: 13px; line-height: 1.45; }
.switch { grid-row: 1 / span 2; grid-column: 2; position: relative; width: 44px; height: 26px; }
.switch input { position: absolute; inset: 0; opacity: 0; cursor: pointer; z-index: 1; margin: 0; }
.switch i {
  position: absolute; inset: 0; border-radius: 999px; background: var(--bg-3); border: 1px solid var(--line-2);
  transition: background-color .25s;
}
.switch i::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--mute); transition: transform .3s var(--ease-out), background-color .25s;
}
.switch input:checked + i { background: var(--accent-dim); border-color: var(--accent-soft); }
.switch input:checked + i::after { transform: translateX(18px); background: var(--accent); }
.switch input:disabled { cursor: not-allowed; }
.switch input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- 15. Páginas legales ---------- */
.legal { padding-top: calc(var(--nav-h) + 72px); padding-bottom: 120px; position: relative; isolation: isolate; }
.legal .hero-gradient { inset: -30% -10% auto; height: 520px; opacity: .45; }
.legal-head { margin-bottom: 56px; }
.legal-head h1 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1; letter-spacing: -0.02em;
}
.legal-head p { margin-top: 18px; color: var(--mute); }
.legal-body { max-width: 72ch; }
.legal-body h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.15;
  margin: 56px 0 16px;
}
.legal-body h3 { font-size: 17px; font-weight: 600; margin: 28px 0 8px; }
.legal-body p, .legal-body li { color: var(--ink-soft); font-size: 16.5px; }
.legal-body p + p { margin-top: 14px; }
.legal-body ul { margin: 14px 0; display: grid; gap: 8px; }
.legal-body ul li { position: relative; padding-left: 20px; }
.legal-body ul li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 8px; height: 1px; background: var(--accent); }
.legal-body a { color: var(--accent); }
.legal-body strong { color: var(--ink); font-weight: 600; }
.legal-body .btn { margin-top: 18px; }
.todo {
  background: rgba(255, 178, 122, .16);
  color: var(--warn);
  border: 1px dashed rgba(255, 178, 122, .5);
  border-radius: 6px;
  padding: 1px 6px;
  font-family: var(--font-mono); font-size: .86em;
}
.data-table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14.5px; }
.data-table-wrap { overflow-x: auto; overflow-y: visible; }
.data-table th, .data-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line-2); vertical-align: top; color: var(--ink-soft); }
.data-table th { color: var(--ink); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.data-table code { font-family: var(--font-mono); font-size: 13px; color: var(--accent); }
.legal-card {
  margin-top: 16px; padding: 20px 22px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px;
}
.legal-card dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; font-size: 15.5px; }
.legal-card dt { color: var(--mute); }
.legal-card dd { color: var(--ink); }

/* ---------- 16. Auditoría (formulario por pasos) ---------- */
.page-audit { min-height: 100vh; min-height: 100svh; }
.audit {
  position: relative; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  padding: calc(var(--nav-h) + 40px) 0 96px;
}
.audit .hero-gradient { position: fixed; opacity: .38; }
.audit-wrap { width: 100%; max-width: 760px; margin-inline: auto; padding-inline: var(--gutter); }
.audit-top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-bottom: 26px;
}
.step-count { color: var(--mute); }

.thread { display: flex; align-items: center; margin-bottom: 56px; min-height: 12px; }
.thread .t-dot {
  flex: none; width: 10px; height: 10px; border-radius: 50%;
  border: 1.5px solid var(--line-2); background: var(--bg);
  transition: background-color .35s, border-color .35s, box-shadow .35s, transform .35s var(--ease-out);
}
.thread .t-dot.done { background: var(--accent); border-color: var(--accent); }
.thread .t-dot.current { border-color: var(--accent); box-shadow: 0 0 0 5px var(--accent-dim); transform: scale(1.15); }
.thread .t-seg { flex: 1; height: 1.5px; background: var(--line-2); position: relative; overflow: hidden; }
.thread .t-seg.done::after { content: ""; position: absolute; inset: 0; background: var(--accent); animation: segFill .5s var(--ease-out) both; transform-origin: left; }
@keyframes segFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.a-step { display: none; }
.a-step.on { display: block; animation: stepIn .6s var(--ease-out) both; }
@keyframes stepIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.a-step h1, .a-step h2 {
  font-family: var(--font-display); font-weight: 400;
  line-height: 1.04; letter-spacing: -0.015em; text-wrap: balance;
}
.a-step h1 { font-size: clamp(2.4rem, 5.6vw, 4.2rem); }
.a-step h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.a-step .lead, .a-step .sub { margin-top: 18px; color: var(--ink-soft); font-size: 17.5px; max-width: 60ch; text-wrap: pretty; }
.a-step form, .a-step .fields { margin-top: 40px; }

.field { margin-top: 28px; }
.field label, .field .label { display: block; font-weight: 600; font-size: 15.5px; margin-bottom: 4px; }
.field .opt { color: var(--mute-2); font-weight: 400; }
.field .hint { color: var(--mute); font-size: 14px; margin-bottom: 10px; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
  width: 100%;
  margin-top: 8px;
  background: rgba(12, 18, 34, 0.8);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 15px 16px;
  color: var(--ink);
  font: inherit; font-size: 16px;
  transition: border-color .2s, box-shadow .25s, background-color .2s;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
.field input::placeholder, .field textarea::placeholder { color: var(--mute-2); }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-dim); background: var(--bg-2);
}

.area-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 36px; }
.area-chip {
  display: grid; grid-template-columns: 22px 1fr; gap: 14px; align-items: start;
  text-align: left;
  padding: 18px;
  background: rgba(12, 18, 34, 0.8);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  transition: border-color .2s, background-color .25s, transform .3s var(--ease-out);
}
.area-chip:hover { border-color: var(--mute); transform: translateY(-2px); }
.area-chip .tick {
  width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--line-2);
  position: relative; transition: background-color .2s, border-color .2s;
}
.area-chip .tick::after {
  content: ""; position: absolute; left: 6px; top: 3px; width: 6px; height: 11px;
  border-right: 2px solid var(--accent-ink); border-bottom: 2px solid var(--accent-ink);
  transform: rotate(45deg) scale(0); transition: transform .25s var(--ease-out);
}
.area-chip.sel { border-color: var(--accent); background: var(--accent-dim); }
.area-chip.sel .tick { background: var(--accent); border-color: var(--accent); }
.area-chip.sel .tick::after { transform: rotate(45deg) scale(1); }
.a-name { display: block; font-weight: 600; font-size: 16px; }
.a-desc { display: block; margin-top: 4px; color: var(--mute); font-size: 14px; line-height: 1.45; }
.area-badge {
  display: inline-block; margin-bottom: 18px;
  font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--accent); border: 1px solid var(--accent-soft); border-radius: 999px; padding: 6px 12px;
}

.check-field {
  display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start;
  margin-top: 28px; font-size: 14.5px; color: var(--ink-soft); cursor: pointer;
}
.check-field input { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 7px; border: 1.5px solid var(--line-2); background: var(--bg-2); position: relative; cursor: pointer; transition: background-color .2s, border-color .2s; }
.check-field input:checked { background: var(--accent); border-color: var(--accent); }
.check-field input:checked::after { content: ""; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px; border-right: 2px solid var(--accent-ink); border-bottom: 2px solid var(--accent-ink); transform: rotate(45deg); }
.check-field a { color: var(--accent); }
.privacy-note { margin-top: 16px; color: var(--mute); font-size: 13.5px; line-height: 1.55; }
.privacy-note a { color: var(--accent); }

.nav-row { display: flex; align-items: center; gap: 12px; margin-top: 44px; flex-wrap: wrap; }
.nav-row .grow { flex: 1; }
.btn-back { color: var(--mute); padding: 15px 8px; font-weight: 500; font-size: 15px; transition: color .2s; }
.btn-back:hover { color: var(--ink); }
.btn-skip { color: var(--mute-2); padding: 15px 8px; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.btn-skip:hover { color: var(--ink); }
.foot-note { margin-top: 18px; color: var(--mute-2); text-align: right; }

#error {
  display: none; margin-top: 22px;
  padding: 14px 16px; border-radius: 12px;
  background: rgba(255, 107, 53, .1); border: 1px solid rgba(255, 107, 53, .4); color: #FFC3A8;
  font-size: 15px;
}
#error.on { display: block; }

.audit-state { display: none; text-align: center; padding-top: 12vh; }
.audit-state.on { display: block; animation: stepIn .6s var(--ease-out) both; }
.spinner {
  width: 46px; height: 46px; margin: 0 auto 22px; border-radius: 50%;
  border: 2px solid var(--line-2); border-top-color: var(--accent);
  animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.done-mark {
  width: 76px; height: 76px; margin: 0 auto 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink); font-size: 34px; font-weight: 700;
  box-shadow: 0 0 0 10px var(--accent-dim), 0 20px 60px -10px var(--accent-soft);
}
.audit-state h1, .audit-state h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1; }
.audit-state p { margin: 20px auto 0; max-width: 52ch; color: var(--ink-soft); font-size: 17.5px; }
.audit-state .btn { margin-top: 34px; }

.audit-footer { padding: 32px 0; border-top: 1px solid var(--line); }
.audit-footer ul { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; }
.audit-footer a { color: var(--mute); text-decoration: none; font-size: 13.5px; }
.audit-footer a:hover { color: var(--ink); }

/* ---------- 17. Responsive ---------- */
@media (max-width: 1023px) {
  .demo-flow { grid-template-columns: 1fr; gap: 0; }
  .demo-arrow { flex-direction: row; justify-content: center; padding: 22px 0; }
  .demo-line { width: 1px; height: 56px; background: linear-gradient(180deg, var(--line-2), var(--accent)); }
  .demo-line::after { right: auto; left: -4px; top: auto; bottom: -1px; border: 4.5px solid transparent; border-top: 7px solid var(--accent); }
  .demo-pulse { left: -3px; animation-name: pulseTravelY; }
  @keyframes pulseTravelY { 0% { top: 0; opacity: 0; } 15%, 85% { opacity: 1; } 100% { top: calc(100% - 7px); opacity: 0; } }
  .demo-quote { min-height: 0; }

  .faq-grid { grid-template-columns: 1fr; }
  .faq-head { position: static; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

@media (max-width: 860px) {
  :root { --nav-h: 64px; }
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    padding: 12px var(--gutter) 28px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: transform .35s var(--ease-out), opacity .3s, visibility 0s .35s;
  }
  .nav-open .nav-links { transform: none; opacity: 1; visibility: visible; transition: transform .35s var(--ease-out), opacity .3s; }
  .nav-open .nav { background: var(--bg); border-bottom-color: var(--line); }
  .nav-links a:not(.nav-cta) { width: 100%; padding: 16px 0; font-size: 20px; color: var(--ink); border-bottom: 1px solid var(--line); }
  .nav-links a:not(.nav-cta)::after { display: none; }
  .nav-cta { margin-top: 20px; padding: 14px 22px; font-size: 16px; }

  .svc-row { grid-template-columns: 36px minmax(0, 1fr) 28px; gap: 12px; }
  .svc-tag { grid-column: 2; grid-row: 2; justify-self: start; margin-top: 4px; }
  .svc-plus { grid-column: 3; grid-row: 1; }
  .svc-body-inner { grid-template-columns: 1fr; padding-left: clamp(8px, 1.5vw, 20px); }

  .steps { grid-template-columns: 1fr; gap: 36px; }
  .steps::before, .steps::after { left: 34px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .steps::after { transform: scaleY(var(--progress)); transform-origin: top; }
  .step { grid-template-columns: 68px 1fr; gap: 22px; }

  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding-bottom: 100px; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .marquee-track { font-size: 20px; }
  .stat-label { font-size: 13.5px; }
  .area-grid { grid-template-columns: 1fr; }
  .nav-row .btn-next { width: 100%; justify-content: center; order: 3; }
  .foot-note { text-align: left; }
  .legal-card dl { grid-template-columns: 1fr; gap: 2px; }
  .legal-card dd { margin-bottom: 10px; }
  .consent { left: 10px; right: 10px; bottom: 10px; padding: 18px; }
}

/* Solo efectos realmente intrusivos se detienen con movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  .demo-pulse { animation: none; opacity: 0; }
  .marquee-track { animation-duration: 90s; }
}
