/* ============================================================
   DocuSense — Landing
   Sistema visual: el lenguaje de la página = el del producto.
   Confianza por campo (verde/ámbar/rojo), salida JSON, mono.
   ============================================================ */

:root {
  /* Neutros = escala slate (igual que mesaches.com) */
  --paper:      #f9fafb;
  --paper-2:    #f1f5f9;
  --card:       #ffffff;
  --ink:        #1e293b;   /* slate-800 — titulares / texto fuerte */
  --ink-2:      #0f172a;   /* slate-900 — secciones oscuras */
  --ink-soft:   #334155;   /* slate-700 — cuerpo */
  --muted:      #64748b;   /* slate-500 */
  --muted-2:    #94a3b8;   /* slate-400 */
  --line:       #e2e8f0;   /* slate-200 */
  --line-strong:#cbd5e1;   /* slate-300 */

  /* Acento = azul de marca mesaches (#046bd2) */
  --accent:     #046bd2;
  --accent-br:  #045cb4;
  --accent-dim: rgba(4,107,210,.10);
  --accent-ink: #7fb3e8;   /* azul claro para secciones oscuras */

  /* Degradado de marca (del símbolo </M\>) */
  --c1: #5dadd6;  /* cian */
  --c2: #556fb8;  /* azul */
  --c3: #6459a8;  /* violeta */
  --c4: #a7316b;  /* magenta */
  --c5: #bb284e;  /* rojo */
  --grad:  linear-gradient(100deg, var(--c1), var(--c2) 32%, var(--c3) 52%, var(--c4) 78%, var(--c5));
  --grad-2: linear-gradient(120deg, var(--c1), var(--c4));

  /* Semántica de confianza (núcleo del producto) */
  --ok:    #0f9d6e;
  --ok-bg: #0f9d6e16;
  --warn:  #e08a00;
  --warn-bg:#e08a0016;
  --bad:   #bb284e;        /* alineado al rojo de marca */
  --bad-bg:#bb284e16;

  /* Tipografía (mesaches.com): titulares Wix Madefor Display, cuerpo sistema,
     mono solo para datos/código. */
  --display: "Wix Madefor Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sans:    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  /* Radios / sombras */
  --r-sm: 8px;
  --r:    14px;
  --r-lg: 22px;
  --r-xl: 30px;
  --sh-sm: 0 1px 2px rgba(12,18,56,.06), 0 2px 6px rgba(12,18,56,.05);
  --sh:    0 4px 14px rgba(12,18,56,.08), 0 12px 38px rgba(12,18,56,.08);
  --sh-lg: 0 8px 24px rgba(12,18,56,.11), 0 30px 70px rgba(12,18,56,.13);

  --maxw: 1200px;
  --ease: cubic-bezier(.16,1,.3,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
/* scroll-behavior lo gestiona Lenis; nativo sólo si reduced-motion (ver más abajo) */
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink-soft);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; color: var(--ink); }
/* Texto con degradado de marca */
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: #fff; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.mono { font-family: var(--mono); }

/* eyebrow */
.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 500;
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px; border-radius: 2px;
  background: var(--grad-2);
  box-shadow: 0 0 0 4px var(--accent-dim);
}
.dark .eyebrow { color: var(--accent-ink); }
.dark .eyebrow::before { background: var(--accent-ink); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans);
  font-weight: 600; font-size: 15.5px;
  padding: 13px 22px;
  border-radius: 11px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), background .2s, box-shadow .25s, border-color .2s;
  will-change: transform;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px var(--accent-dim); }
.btn-primary:hover { background: var(--accent-br); transform: translateY(-2px); box-shadow: 0 12px 28px var(--accent-dim); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); transform: translateY(-2px); }
.dark .btn-ghost { color: #fff; border-color: #ffffff33; }
.dark .btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 60;
  backdrop-filter: blur(14px);
  background: color-mix(in oklab, var(--paper) 80%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -0.06em; cursor: pointer; user-select: none; }
.brand .mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--grad);
  position: relative; flex: none;
  box-shadow: 0 4px 14px rgba(102,60,120,.32);
  transition: transform .4s var(--ease);
  display: grid; place-items: center;
}
.brand .mark::before {
  content: "</>";
  font-family: var(--mono); font-weight: 700; font-size: 11px;
  color: #fff; letter-spacing: -0.04em;
}
.brand:hover .mark { transform: rotate(-6deg) scale(1.06); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 15px; color: var(--muted); font-weight: 500; transition: color .2s; position: relative; }
.nav-links a:hover { color: var(--ink); }
.nav-links a::after { content:""; position:absolute; left:0; bottom:-5px; height:2px; width:0; background: var(--accent); transition: width .25s var(--ease); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.btn-user { padding-left: 16px; padding-right: 18px; }
.btn-user svg { width: 18px; height: 18px; }
@media (max-width: 600px) { .btn-user .lbl { display: none; } .btn-user { padding: 12px; } }
@media (max-width: 880px) { .nav-links { display: none; } }

/* ---------- Section scaffolding ---------- */
section { position: relative; }
.sec { padding: 110px 0; }
.sec-head { max-width: 720px; margin-bottom: 56px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec h2 { font-size: clamp(26px, 3.5vw, 40px); margin: 20px 0 0; }
.sec-head p { color: var(--muted); font-size: 16.5px; margin-top: 20px; max-width: 56ch; }
.sec-head.center p { margin-left: auto; margin-right: auto; }

.dark { background: var(--ink-2); color: #d7def0; }
.dark h1, .dark h2, .dark h3 { color: #fff; }
.dark .sec-head p { color: #aab2c0; }
.dark .muted { color: #9aa3b2; }

/* ---------- HERO ---------- */
.hero { padding: 64px 0 96px; position: relative; overflow: hidden; }
.scene3d { position: absolute; inset: 0; z-index: 0; pointer-events: none; transition: opacity .4s ease; }
.hero-grid { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.04fr .96fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(32px, 4.4vw, 56px); margin: 24px 0 0; letter-spacing: -0.05em; text-wrap: balance; }
.hero h1 .accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.hero-sub { font-size: 17px; color: var(--muted); margin-top: 26px; max-width: 42ch; }
.hero-cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 26px; margin-top: 40px; flex-wrap: wrap; }
.hero-meta .item { display: flex; flex-direction: column; gap: 3px; }
.hero-meta .k { font-family: var(--mono); font-size: 23px; font-weight: 600; color: var(--ink); letter-spacing: -.02em; }
.hero-meta .l { font-size: 13.5px; color: var(--muted); }
.hero-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(680px 420px at 84% 8%, var(--accent-dim), transparent 70%),
    radial-gradient(520px 380px at 6% 90%, #0f9d6e10, transparent 70%);
}
.grid-lines {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(circle at 70% 20%, #000, transparent 75%);
          mask-image: radial-gradient(circle at 70% 20%, #000, transparent 75%);
  opacity: .5;
}
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-sub { max-width: none; }
}

/* ---------- Extraction card (hero visual) ---------- */
.xcard {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--sh-lg);
  overflow: hidden; position: relative;
}
.xcard-top { display: flex; align-items: center; gap: 9px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--paper); }
.xcard-top .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--line-strong); }
.xcard-top .title { font-family: var(--mono); font-size: 12.5px; color: var(--muted); margin-left: 6px; }
.xcard-top .status { margin-left: auto; }
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  padding: 5px 11px; border-radius: 999px; letter-spacing: .01em;
}
.badge::before { content:""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.ok   { color: var(--ok);   background: var(--ok-bg); }
.badge.warn { color: var(--warn); background: var(--warn-bg); }
.badge.bad  { color: var(--bad);  background: var(--bad-bg); }

.xcard-body { display: grid; grid-template-columns: 196px 1fr; }
@media (max-width: 480px){ .xcard-body { grid-template-columns: 1fr; } .xdoc { border-right: none; border-bottom: 1px solid var(--line); } }
.xdoc {
  border-right: 1px solid var(--line); padding: 16px; background:
    repeating-linear-gradient(135deg, var(--paper) 0 7px, var(--paper-2) 7px 14px);
  position: relative; min-height: 330px;
}
.xdoc .pg { background:#fff; height:100%; border:1px solid var(--line); border-radius:6px; padding:11px 10px; box-shadow: var(--sh-sm); container-type: inline-size; overflow: hidden; }
.xdoc .ln { height: 6px; border-radius: 3px; background: var(--paper-2); }
.xdoc .ln.t { background: var(--ink-soft); width: 60%; height: 8px; }
.xdoc .bbox { position: absolute; border: 1.6px solid var(--warn); border-radius: 4px; background: var(--warn-bg); }

.xfields { padding: 8px 6px; }
.xrow { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 9px; transition: background .2s; }
.xrow:hover { background: var(--paper); }
.xrow .key { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.xrow .val { font-family: var(--mono); font-size: 13.5px; color: var(--ink); font-weight: 500; text-align: right; }
.xrow .meter { grid-column: 1 / -1; height: 4px; border-radius: 3px; background: var(--paper-2); overflow: hidden; }
.xrow .meter > i { display: block; height: 100%; border-radius: 3px; width: 0; transition: width 1.1s var(--ease); }
.xrow .meter > i.ok { background: var(--ok); }
.xrow .meter > i.warn { background: var(--warn); }
.xrow .meter > i.bad { background: var(--bad); }
.xrow .score { font-family: var(--mono); font-size: 11.5px; font-weight: 600; }
.xrow .score.ok { color: var(--ok); } .xrow .score.warn { color: var(--warn); } .xrow .score.bad { color: var(--bad); }
.xcard-foot { display:flex; align-items:center; gap:10px; padding: 13px 18px; border-top: 1px solid var(--line); background: var(--paper); font-family: var(--mono); font-size: 12px; color: var(--muted); }
.pulse-dot { width:8px;height:8px;border-radius:50%; background: var(--ok); box-shadow:0 0 0 0 var(--ok); animation: pulse 2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 #0f9d6e66;} 70%{box-shadow:0 0 0 9px #0f9d6e00;} 100%{box-shadow:0 0 0 0 #0f9d6e00;} }

/* ---------- Trust strip ---------- */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 0; }
.trust-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.trust .label { font-family: var(--mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
.trust .chips { display: flex; gap: 12px; flex-wrap: wrap; }
.chip { font-family: var(--mono); font-size: 13px; color: var(--ink-soft); padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); }

/* ---------- "Qué genera" — JSON output ---------- */
.gen-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 920px){ .gen-grid { grid-template-columns: 1fr; } }
.codeblock { background: var(--ink); border-radius: var(--r-lg); box-shadow: var(--sh-lg); overflow: hidden; border: 1px solid var(--ink-2); }
.codeblock .bar { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid #ffffff14; }
.codeblock .bar .d { width: 11px; height: 11px; border-radius: 50%; }
.codeblock .bar .fn { font-family: var(--mono); font-size: 12px; color: #8b94a6; margin-left: 8px; }
.codeblock pre { margin: 0; padding: 20px 22px; overflow-x: auto; }
.codeblock code { font-family: var(--mono); font-size: 13.5px; line-height: 1.85; color: #cdd4e1; white-space: pre; }
.tok-key { color: #8aa6ff; } .tok-str { color: #6fe0a8; } .tok-num { color: #f0b366; } .tok-pun { color: #6c7689; } .tok-cm { color:#586074; font-style: italic; }
.status-list { display: flex; flex-direction: column; gap: 14px; }
.status-card { display: flex; gap: 16px; padding: 20px; border-radius: var(--r); border: 1px solid var(--line); background: var(--card); box-shadow: var(--sh-sm); transition: transform .3s var(--ease), box-shadow .3s; }
.status-card:hover { transform: translateX(5px); box-shadow: var(--sh); }
.status-card .ic { width: 44px; height: 44px; border-radius: 12px; flex: none; display: grid; place-items: center; font-family: var(--mono); font-weight: 700; font-size: 17px; }
.status-card.ok .ic { color: var(--ok); background: var(--ok-bg); }
.status-card.warn .ic { color: var(--warn); background: var(--warn-bg); }
.status-card.bad .ic { color: var(--bad); background: var(--bad-bg); }
.status-card h4 { font-family: var(--display); font-size: 17px; display: flex; align-items: center; gap: 10px; }
.status-card .thr { font-family: var(--mono); font-size: 12px; padding: 2px 8px; border-radius: 6px; background: var(--paper-2); color: var(--muted); font-weight: 600; }
.status-card p { font-size: 14.5px; color: var(--muted); margin-top: 5px; }

/* ---------- Pipeline ---------- */
.pipe { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; position: relative; margin-top: 20px; }
.pipe::before { content:""; position:absolute; top: 31px; left: 8%; right: 8%; height: 2px; background: var(--line-strong); z-index:0; }
.pipe .step { position: relative; z-index: 1; text-align: center; padding: 0 12px; }
.pipe .node {
  width: 62px; height: 62px; border-radius: 18px; margin: 0 auto 18px;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--sh-sm);
  display: grid; place-items: center; color: var(--accent);
  font-family: var(--mono); font-weight: 700; font-size: 18px;
  transition: transform .4s var(--ease), border-color .3s, box-shadow .3s, color .3s;
}
.pipe .step:hover .node { transform: translateY(-6px) scale(1.06); border-color: var(--accent); box-shadow: 0 12px 26px var(--accent-dim); }
.pipe .step h4 { font-family: var(--display); font-size: 16px; }
.pipe .step p { font-size: 13px; color: var(--muted); margin-top: 6px; }
.pipe .step .svc { font-family: var(--mono); font-size: 10.5px; color: var(--accent); margin-top: 8px; letter-spacing: .02em; }
@media (max-width: 860px){
  .pipe { grid-template-columns: 1fr 1fr; gap: 30px 0; }
  .pipe::before { display: none; }
}

/* ---------- Tools grid ---------- */
.tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 920px){ .tools { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px){ .tools { grid-template-columns: 1fr; } }
.tool {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 26px 24px; box-shadow: var(--sh-sm);
  transition: transform .35s var(--ease), box-shadow .35s, border-color .3s;
  position: relative; overflow: hidden;
}
.tool::after { content:""; position:absolute; inset:0; border-radius: inherit; background: radial-gradient(420px 200px at var(--mx,50%) var(--my,0%), var(--accent-dim), transparent 60%); opacity:0; transition: opacity .35s; pointer-events:none; }
.tool:hover { transform: translateY(-5px); box-shadow: var(--sh); border-color: var(--line-strong); }
.tool:hover::after { opacity: 1; }
.tool .tic { width: 46px; height: 46px; border-radius: 13px; background: var(--accent-dim); color: var(--accent); display: grid; place-items: center; margin-bottom: 18px; }
.tool .tic svg { width: 23px; height: 23px; }
.tool h3 { font-size: 19px; }
.tool p { font-size: 14.5px; color: var(--muted); margin-top: 9px; }
.tool .tag { display:inline-block; margin-top:14px; font-family: var(--mono); font-size:11px; letter-spacing:.06em; text-transform: uppercase; color: var(--muted-2); border:1px solid var(--line); padding:3px 9px; border-radius: 999px; }

/* ---------- Discovery spotlight ---------- */
.spot { display: grid; grid-template-columns: 1fr 380px; gap: 50px; align-items: center; background: var(--card); border:1px solid var(--line); border-radius: var(--r-xl); padding: 50px; box-shadow: var(--sh); }
@media (max-width: 920px){ .spot { grid-template-columns: 1fr; padding: 34px; } }
.spot ol { list-style: none; counter-reset: s; margin-top: 26px; display:flex; flex-direction:column; gap: 16px; }
.spot ol li { counter-increment: s; display:flex; gap:14px; align-items:flex-start; font-size:15.5px; color: var(--ink-soft); }
.spot ol li::before { content: counter(s); font-family: var(--mono); font-weight:700; font-size:13px; color: var(--accent); background: var(--accent-dim); width:26px; height:26px; border-radius:8px; display:grid; place-items:center; flex:none; }
.spot ol li b { color: var(--ink); }
.gauge-wrap { text-align:center; }
.gauge { position: relative; width: 230px; height: 230px; margin: 0 auto; }
.gauge svg { transform: rotate(-90deg); }
.gauge .val { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; }
.gauge .num { font-family: var(--mono); font-weight: 700; font-size: 54px; letter-spacing:-.03em; line-height: 1; }
.gauge .lab { font-size: 12px; color: var(--muted); margin-top: 6px; max-width: 116px; text-align: center; line-height: 1.3; text-wrap: balance; }
.gauge-cap { font-family: var(--mono); font-size: 12.5px; color: var(--muted); margin-top: 16px; }

/* ---------- Comunicación (API / webhooks) ---------- */
.comm-grid { display:grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width:920px){ .comm-grid { grid-template-columns: 1fr; } }
.evt-list { display:flex; flex-direction:column; gap: 12px; margin-top: 8px; }
.evt { display:flex; align-items:center; gap:12px; padding: 15px 18px; background: var(--card); border:1px solid var(--line); border-radius: var(--r); font-family: var(--mono); font-size: 14px; box-shadow: var(--sh-sm); transition: transform .25s var(--ease); }
.evt:hover { transform: translateX(5px); }
.evt .m { color:#fff; font-size:11px; font-weight:700; padding:3px 8px; border-radius:6px; background: var(--accent); }
.evt .ev { color: var(--ink); font-weight:500; }
.evt .ar { margin-left:auto; color: var(--muted-2); }
.feat-row { display:flex; gap: 14px; margin-top: 22px; }
.feat-row .fr { flex:1; padding: 18px; border:1px solid var(--line); border-radius: var(--r); background: var(--card); box-shadow: var(--sh-sm); }
.feat-row .fr .k { font-family: var(--mono); font-size: 13px; color: var(--accent); font-weight:600; }
.feat-row .fr .v { font-size: 14px; color: var(--muted); margin-top: 6px; }

/* ---------- Seguridad / RGPD (dark) ---------- */
.sec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 920px){ .sec-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px){ .sec-grid { grid-template-columns: 1fr; } }
.scard { background: var(--ink-2); border: 1px solid #ffffff12; border-radius: var(--r); padding: 24px 22px; transition: transform .35s var(--ease), border-color .3s, background .3s; }
.scard:hover { transform: translateY(-4px); border-color: var(--accent); background: #1b2230; }
.scard .sic { width: 42px; height: 42px; border-radius: 12px; background: #ffffff0e; color: var(--accent-ink); display:grid; place-items:center; margin-bottom: 16px; }
.scard .sic svg { width: 21px; height: 21px; }
.scard h3 { font-size: 16.5px; color:#fff; }
.scard p { font-size: 14px; color: #9aa3b2; margin-top: 8px; }
.scard code { font-family: var(--mono); font-size: 12px; color: var(--accent-ink); background: #ffffff0e; padding: 1px 6px; border-radius: 5px; }
.rgpd-banner { display:flex; align-items:center; gap:18px; margin-top:36px; padding: 22px 26px; border:1px solid #ffffff1a; border-radius: var(--r); background: linear-gradient(100deg, #ffffff0a, transparent); }
.rgpd-banner .seal { font-family: var(--mono); font-weight:700; font-size: 13px; letter-spacing:.06em; color: var(--ink); background: var(--accent-ink); padding: 9px 14px; border-radius: 10px; flex:none; }
.rgpd-banner p { color:#aab2c0; font-size: 15px; }

/* ---------- Planes ---------- */
.plans { display: flex; align-items: stretch; gap: 18px; }
.plan { flex: 1 1 0; min-width: 0; }
@media (max-width: 920px){ .plans { flex-direction: column; max-width: 460px; margin: 0 auto; } }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px 28px; box-shadow: var(--sh-sm); position: relative; transition: transform .35s var(--ease), box-shadow .35s; display: flex; flex-direction: column; }x-shadow .35s; }
.plan:hover { transform: translateY(-5px); box-shadow: var(--sh); }
.plan.feat { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--sh); }
.plan .pop { position:absolute; top:-12px; left:28px; font-family: var(--mono); font-size:11px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:#fff; background: var(--accent); padding: 5px 11px; border-radius: 999px; }
.plan .name { font-family: var(--display); font-size: 22px; font-weight:600; }
.plan .price { font-family: var(--mono); margin: 14px 0 4px; }
.plan .price .docs { font-size: 34px; font-weight: 700; color: var(--ink); letter-spacing:-.02em; }
.plan .price .per { font-size: 14px; color: var(--muted); }
.plan .blurb { font-size: 14px; color: var(--muted); min-height: 56px; }
.plan ul { list-style: none; margin: 22px 0; display:flex; flex-direction:column; gap: 12px; flex: 1 0 auto; }
.plan li { display:block; position:relative; padding-left: 29px; font-size: 14.5px; line-height: 1.45; color: var(--ink-soft); }
.plan li svg { position:absolute; left:0; top:3px; width: 18px; height: 18px; color: var(--ok); }
.plan li.off { color: var(--muted-2); } .plan li.off svg { color: var(--muted-2); }
.plan li b { font-family: var(--mono); font-weight: 600; color: var(--ink); }
.plan .btn { width: 100%; justify-content: center; margin-top: auto; }

/* ---------- CTA final ---------- */
.cta { padding: 96px 0; }
.cta-card { background: var(--ink-2); border-radius: var(--r-xl); padding: 70px 60px; text-align:center; position:relative; overflow:hidden; box-shadow: var(--sh-lg); }
.cta-card::before { content:""; position:absolute; inset:0; background: radial-gradient(600px 300px at 50% -10%, var(--accent-dim), transparent 70%), radial-gradient(400px 240px at 10% 120%, #0f9d6e18, transparent 70%); }
.cta-card h2 { color:#fff; font-size: clamp(32px, 5vw, 56px); position:relative; }
.cta-card p { color:#aab2c0; font-size: 19px; margin: 18px auto 0; max-width: 52ch; position:relative; }
.cta-card .hero-cta { justify-content:center; position:relative; }
.cta-form { display:flex; gap:10px; justify-content:center; margin-top: 30px; position:relative; flex-wrap:wrap; }
.cta-form input { font-family: var(--sans); font-size: 15px; padding: 14px 18px; border-radius: 11px; border:1px solid #ffffff22; background:#ffffff0e; color:#fff; width: 320px; max-width: 100%; }
.cta-form input::placeholder { color:#8b94a6; }
.cta-form input:focus { outline:none; border-color: var(--accent-ink); background:#ffffff16; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 64px 0 40px; }
.foot-grid { display:grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
@media (max-width: 760px){ .foot-grid { grid-template-columns: 1fr 1fr; gap: 30px; } }
.footer .brand { margin-bottom: 16px; }
.footer .desc { font-size: 14.5px; color: var(--muted); max-width: 34ch; }
.footer .addr { font-family: var(--mono); font-size: 12.5px; color: var(--muted-2); margin-top: 16px; line-height: 1.7; }
.foot-mesaches { display: inline-flex; flex-direction: column; gap: 6px; margin-top: 20px; }
.foot-mesaches .by { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
.foot-mesaches img { height: 26px; width: auto; transition: transform .3s var(--ease); }
.foot-mesaches:hover img { transform: scale(1.04); }
.foot-col h5 { font-family: var(--mono); font-size: 12px; letter-spacing:.1em; text-transform:uppercase; color: var(--muted-2); margin-bottom: 16px; }
.foot-col a { display:block; font-size: 14.5px; color: var(--muted); margin-bottom: 11px; transition: color .2s; }
.foot-col a:hover { color: var(--accent); }
.foot-bottom { display:flex; justify-content:space-between; align-items:center; margin-top: 50px; padding-top: 26px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted-2); flex-wrap:wrap; gap: 12px; }
.foot-bottom .mono { font-family: var(--mono); }

/* ---------- Reveal animation (fail-safe: visible unless JS arms it) ---------- */
[data-reveal] { transition: opacity .8s var(--ease), transform .8s var(--ease); }
html.reveal-ready [data-reveal]:not(.in) { opacity: 0; transform: translateY(26px); }
html.reveal-ready .hero [data-reveal]:not(.in) { transform: none; } /* hero fades only */
html.reveal-ready .anim-subtle [data-reveal]:not(.in) { transform: translateY(11px); }
[data-reveal][data-delay="1"] { transition-delay: .08s; }
[data-reveal][data-delay="2"] { transition-delay: .16s; }
[data-reveal][data-delay="3"] { transition-delay: .24s; }
[data-reveal][data-delay="4"] { transition-delay: .32s; }
[data-reveal][data-delay="5"] { transition-delay: .40s; }
.anim-off [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
.anim-subtle [data-reveal] { transform: translateY(11px); }
.anim-subtle [data-reveal].in { transform: none; }
/* Hero reveals fade only (no positional shift) so captures never catch an overlap mid-slide */
.hero [data-reveal] { transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ---------- Toast (easter eggs) ---------- */
.toast-host { position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%); z-index: 200; display:flex; flex-direction:column; gap:10px; align-items:center; pointer-events:none; }
.toast { font-family: var(--mono); font-size: 13.5px; background: var(--ink); color:#fff; padding: 13px 20px; border-radius: 12px; box-shadow: var(--sh-lg); border:1px solid #ffffff1f; transform: translateY(20px); opacity:0; transition: transform .4s var(--ease), opacity .4s; display:flex; align-items:center; gap:10px; }
.toast.show { transform: none; opacity: 1; }
.toast .k { color: var(--accent-ink); }

/* confetti dots */
.confetti { position: fixed; inset: 0; pointer-events:none; z-index: 190; overflow:hidden; }
.confetti i { position:absolute; width:9px; height:9px; border-radius:2px; top:-20px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(540deg); opacity: .2; } }

/* ============================================================
   3D HERO INMERSIVO · NAV ADAPTATIVA · SMOOTH SCROLL
   ============================================================ */

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }

/* Hero oscuro con escena 3D */
.hero-dark {
  background:
    radial-gradient(120% 90% at 80% 14%, #1a2456 0%, #0c1238 52%),
    #0a0f2e;
  color: #e8ebf2;
  overflow: hidden;
  padding: 96px 0 110px;
  isolation: isolate;
}
canvas#bg3d {
  position: absolute; inset: 0;
  width: 100% !important; height: 100% !important;
  z-index: 0; display: block; pointer-events: none;
}
.hero-glow {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(50% 45% at 16% 92%, rgba(15,157,110,.14), transparent 70%),
    radial-gradient(60% 60% at 50% 120%, rgba(11,14,20,.7), transparent 60%);
}
.hero-dark .wrap { position: relative; z-index: 2; }
.hero-dark::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 130px;
  background: linear-gradient(transparent, var(--paper)); z-index: 1; pointer-events: none;
}
.hero-dark h1 { color: #fff; }
.hero-dark h1 .accent { color: var(--accent-ink); }
.hero-dark .hero-sub { color: #aab3c5; }
.hero-dark .hero-sub b { color: #fff; }
.hero-dark .hero-meta .k { color: #fff; }
.hero-dark .hero-meta .l { color: #8b94a6; }
.hero-dark .eyebrow { color: var(--accent-ink); }
.hero-dark .eyebrow::before { background: var(--accent-ink); box-shadow: 0 0 0 4px rgba(199,201,255,.12); }
.hero-dark .btn-ghost { color: #fff; border-color: #ffffff33; }
.hero-dark .btn-ghost:hover { background: #fff; color: #0b0e14; border-color: #fff; }

/* Titulares en degradado de marca (toggle de Tweaks) */
body.grad-headings .sec h2,
body.grad-headings .cta-card h2 {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
body.grad-headings .dark .sec h2 { filter: saturate(1.3) brightness(1.25); }

/* Nav adaptativa sobre el hero oscuro */
.nav.on-dark { background: transparent; backdrop-filter: none; border-bottom-color: transparent; }
.nav.on-dark .brand { color: #fff; }
.nav.on-dark .nav-links a { color: #c4ccda; }
.nav.on-dark .nav-links a:hover { color: #fff; }
.nav.on-dark .btn-ghost { color: #fff; border-color: #ffffff2e; }
.nav.on-dark .btn-ghost:hover { background: #fff; color: #0b0e14; border-color: #fff; }

/* Botón Panel de Usuario */
.btn-user { gap: 8px; }
.btn-user svg { width: 16px; height: 16px; }
.nav.on-dark .btn-user.btn-ghost { border-color: #ffffff40; }

@media (max-width: 560px) {
  .nav-cta .btn-ghost:not(.btn-user) { display: none; }
  .btn-user .label-full { display: none; }
}

/* Hero inmersivo: una columna; el 3D ocupa la mitad derecha */
.hero-dark .hero-grid { grid-template-columns: 1fr; }
.hero-dark .hero-copy { max-width: 600px; }
@media (max-width: 920px) {
  .hero-dark .hero-copy { max-width: none; }
}

/* Fila de estados (Approved / Review / Rejected) */
.status-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 26px; }
@media (max-width: 860px) { .status-row { grid-template-columns: 1fr; } }
.status-row .status-card { align-items: flex-start; }

/* Indicador de scroll del hero */
.scroll-cue {
  position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%);
  z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: #8b94a6; pointer-events: none;
}
.scroll-cue .mouse { width: 22px; height: 34px; border: 1.5px solid #ffffff44; border-radius: 12px; position: relative; }
.scroll-cue .mouse::before {
  content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 6px; border-radius: 2px;
  background: var(--accent-ink); transform: translateX(-50%); animation: wheel 1.8s var(--ease) infinite;
}
@keyframes wheel { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 9px); } }
@media (prefers-reduced-motion: reduce) { .scroll-cue .mouse::before { animation: none; } }
@media (max-width: 920px) { .scroll-cue { display: none; } }

/* ============================================================
   SCROLLYTELLING FIJADO (estilo Apple) — Cómo funciona
   ============================================================ */
.scrolly { position: relative; background: var(--paper-2); }
.scrolly-track { position: relative; }   /* altura la fija el JS según nº de beats */
.scrolly-stage {
  position: sticky; top: 0; height: 100vh; height: 100dvh; min-height: 640px;
  display: flex; align-items: center; overflow: hidden;
}
.scrolly-stage::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 55% at 82% 50%, var(--accent-dim), transparent 70%);
}
.scrolly-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; width: 100%;
}

/* --- Textos encadenados --- */
.scrolly-text { position: relative; z-index: 2; }
.beats { position: relative; margin-top: 22px; min-height: 210px; }
.beat {
  position: absolute; inset: 0; opacity: 0; transform: translateY(28px) scale(.98);
  transition: opacity .5s var(--ease), transform .5s var(--ease); pointer-events: none;
  filter: blur(2px);
}
.beat.is-on { opacity: 1; transform: none; filter: none; }
.beat h2 { font-size: clamp(26px, 3.4vw, 42px); }
.beat p { margin-top: 16px; font-size: 17px; color: var(--muted); max-width: 30ch; }

/* --- Rail de progreso (6 pasos) --- */
.beat-rail { position: relative; margin-top: 38px; padding-left: 4px; }
.beat-rail .rail-line { position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--line-strong); border-radius: 2px; overflow: hidden; }
.beat-rail .rail-line i { position: absolute; left: 0; top: 0; width: 100%; height: 0; background: var(--grad); transition: height .25s linear; }
.beat-rail ol { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.beat-rail li { display: flex; align-items: center; gap: 14px; font-family: var(--mono); transition: opacity .3s; opacity: .4; }
.beat-rail li.is-on { opacity: 1; }
.beat-rail .rn {
  width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; flex: none;
  font-size: 10px; font-weight: 700; color: var(--muted-2); background: var(--card); border: 1px solid var(--line-strong);
  transition: all .3s var(--ease); position: relative; z-index: 1;
}
.beat-rail li.is-on .rn { color: #fff; background: var(--ink); border-color: var(--ink); }
.beat-rail li.is-active .rn { background: var(--c3); border-color: var(--c3); transform: scale(1.15); box-shadow: 0 4px 12px rgba(100,89,168,.4); }
.beat-rail .rl { font-size: 13.5px; color: var(--ink-soft); font-weight: 500; }

/* --- Visual que se transforma --- */
.scrolly-visual { position: relative; z-index: 1; }
.vcard {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-lg); overflow: hidden; max-width: 460px; margin: 0 auto; width: 100%;
}
.vcard-top { display: flex; align-items: center; gap: 9px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--paper); }
.vcard-top .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--line-strong); }
.vcard-top .vtitle { font-size: 12.5px; color: var(--muted); margin-left: 6px; }
.vcard-top .vbadge {
  margin-left: auto; font-family: var(--mono); font-size: 11px; font-weight: 600;
  padding: 5px 11px; border-radius: 999px; background: var(--paper-2); color: var(--muted);
  transition: background .4s, color .4s;
}
.vcard-top .vbadge.run { background: var(--accent-dim); color: var(--accent); }
.vcard-top .vbadge.ok { background: var(--ok-bg); color: var(--ok); }
.vstage { position: relative; height: 340px; }
.vstate {
  position: absolute; inset: 0; padding: 22px; opacity: 0;
  transform: translateY(24px) scale(.97); transition: opacity .5s var(--ease), transform .5s var(--ease);
  pointer-events: none; display: flex; flex-direction: column; justify-content: center;
}
.vstate.is-on { opacity: 1; transform: none; }

/* doc + ocr */
.vpage { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 8px; height: 100%; padding: 20px 18px; box-shadow: var(--sh-sm); container-type: inline-size; overflow: hidden; }
.vln { height: 7px; border-radius: 4px; background: var(--paper-2); }
.vln.t { height: 11px; width: 55%; background: var(--ink-soft); }
.vscan { position: absolute; left: 0; right: 0; height: 40px; top: 0; background: linear-gradient(var(--c1), transparent); opacity: .55; box-shadow: 0 1px 0 var(--c1); z-index: 4; animation: vscan 2.2s var(--ease) infinite; }
@keyframes vscan { 0% { top: -10%; } 100% { top: 95%; } }
.vbox { position: absolute; border: 1.6px solid var(--c4); border-radius: 4px; background: rgba(167,49,107,.08); animation: vboxin .5s var(--ease) both; }
.vstate[data-state="1"].is-on .vbox:nth-child(3) { animation-delay: .15s; }
.vstate[data-state="1"].is-on .vbox:nth-child(4) { animation-delay: .3s; }
@keyframes vboxin { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }

/* ============================================================
   FACTURA REALISTA — componente escalable (container-query units)
   Se usa en el visual del scrollytelling y en el preview de "Qué consigue".
   Tamaños en cqi → escala con el ancho del contenedor (.vpage / .xdoc .pg).
   ============================================================ */
.inv { font-family: var(--mono); color: #1f2733; height: 100%; display: flex; flex-direction: column; line-height: 1.3; }
.inv-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 3cqi; padding-bottom: 2.6cqi; border-bottom: 0.6cqi solid #1f2733; }
.inv-emisor { display: flex; gap: 2.2cqi; align-items: center; }
.inv-logo { width: 6.6cqi; height: 6.6cqi; border-radius: 1.6cqi; background: var(--grad); display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 3.6cqi; flex: none; }
.inv-emisor b { display: block; font-size: 3.2cqi; font-weight: 700; letter-spacing: -.01em; }
.inv-emisor span { display: block; font-size: 2.3cqi; color: #8390a3; margin-top: .4cqi; }
.inv-title { text-align: right; flex: none; }
.inv-title b { display: block; font-size: 4cqi; font-weight: 800; letter-spacing: .22em; color: #556fb8; }
.inv-title span { display: inline-block; font-size: 2.4cqi; color: #8390a3; margin-top: .6cqi; }
.inv-meta { display: flex; gap: 3.5cqi; padding: 2.8cqi 0; border-bottom: 0.3cqi solid #e7ebf2; }
.inv-meta > div { display: flex; flex-direction: column; gap: .5cqi; }
.inv-meta span { color: #9aa4b4; text-transform: uppercase; letter-spacing: .06em; font-size: 2.1cqi; }
.inv-meta b { font-size: 2.8cqi; font-weight: 600; color: #1f2733; }
.inv-meta .inv-cli { margin-left: auto; text-align: right; align-items: flex-end; }
.inv-table { width: 100%; border-collapse: collapse; margin: 2.6cqi 0; }
.inv-table th { text-align: left; font-size: 2.1cqi; text-transform: uppercase; letter-spacing: .05em; color: #9aa4b4; padding: 0 0 1.6cqi; border-bottom: 0.3cqi solid #e7ebf2; font-weight: 600; }
.inv-table td { font-size: 2.7cqi; padding: 1.7cqi 0; border-bottom: 0.3cqi solid #f1f4f8; color: #3a4452; }
.inv-table th:nth-child(2), .inv-table td:nth-child(2) { text-align: center; width: 12%; }
.inv-table th:last-child, .inv-table td:last-child { text-align: right; width: 26%; font-variant-numeric: tabular-nums; }
.inv-tot { margin-top: auto; display: flex; flex-direction: column; gap: 1cqi; align-items: flex-end; padding-top: 2cqi; }
.inv-tot > div { display: flex; gap: 3.5cqi; font-size: 2.6cqi; color: #8390a3; align-items: baseline; }
.inv-tot b { color: #1f2733; min-width: 20cqi; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.inv-grand { margin-top: .8cqi; padding-top: 1.8cqi; border-top: 0.6cqi solid #1f2733; }
.inv-grand span { font-weight: 800; color: #1f2733; letter-spacing: .04em; font-size: 3cqi; }
.inv-grand b { font-size: 3.6cqi; font-weight: 800; }
.inv-iban { margin-top: 2.4cqi; padding-top: 2cqi; border-top: 0.3cqi solid #e7ebf2; font-size: 2.3cqi; color: #9aa4b4; letter-spacing: .04em; }
.inv-iban span { color: #b6bdc9; text-transform: uppercase; letter-spacing: .08em; margin-right: 1cqi; }

/* OCR: campos detectados resaltados in-situ */
.inv .det { position: relative; }
.inv .det::after {
  content: ""; position: absolute; inset: -0.6cqi -1cqi; border: 0.45cqi solid var(--c4);
  border-radius: 1.1cqi; background: rgba(167,49,107,.08); opacity: 0; pointer-events: none;
}
.vstate[data-state="1"].is-on .inv .det::after { animation: detin .5s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes detin { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }

/* fields */
.vfields { display: flex; flex-direction: column; gap: 10px; }
.vrow { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; border-radius: 10px; background: var(--paper); border: 1px solid var(--line); }
.vrow .vk { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.vrow .vv { font-family: var(--mono); font-size: 13.5px; color: var(--ink); font-weight: 600; }
.vrow .vchk { font-family: var(--mono); font-weight: 700; width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-size: 13px; }
.vrow.ok .vchk { color: var(--ok); background: var(--ok-bg); }
.vrow.warn .vchk { color: var(--warn); background: var(--warn-bg); }
.vstate[data-state="2"].is-on .vrow, .vstate[data-state="3"].is-on .vrow { animation: vrowin .45s var(--ease) both; }
.vstate .vrow:nth-child(2) { animation-delay: .06s; } .vstate .vrow:nth-child(3) { animation-delay: .12s; }
.vstate .vrow:nth-child(4) { animation-delay: .18s; } .vstate .vrow:nth-child(5) { animation-delay: .24s; }
@keyframes vrowin { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }

/* scoring */
.vscore { display: flex; flex-direction: column; gap: 13px; }
.vmeter { display: grid; grid-template-columns: 78px 1fr 38px; align-items: center; gap: 12px; }
.vmeter .vk { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.vmeter i { height: 7px; border-radius: 4px; background: var(--paper-2); position: relative; overflow: hidden; display: block; }
.vmeter i::after { content: ""; position: absolute; left: 0; top: 0; height: 100%; width: 0; border-radius: 4px; transition: width .9s var(--ease); }
.vstate[data-state="4"].is-on .vmeter i::after { width: var(--w); }
.vmeter i.ok::after { background: var(--ok); } .vmeter i.warn::after { background: var(--warn); }
.vmeter b { font-family: var(--mono); font-size: 12px; text-align: right; }
.vmeter b.ok { color: var(--ok); } .vmeter b.warn { color: var(--warn); }
.vglobal { display: flex; align-items: baseline; justify-content: space-between; margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.vglobal span { font-family: var(--mono); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.vglobal b { font-family: var(--mono); font-size: 38px; font-weight: 700; }

/* json delivery */
.vjson { margin: 0; background: var(--ink-2); border-radius: 12px; padding: 20px; }
.vjson code { font-family: var(--mono); font-size: 13px; line-height: 1.9; color: #cdd4e1; white-space: pre; }
.vwebhook { margin-top: 16px; font-family: var(--mono); font-size: 12.5px; color: var(--ok); display: flex; align-items: center; gap: 9px; }

@media (max-width: 920px) {
  .scrolly-grid { grid-template-columns: 1fr; gap: 30px; }
  .scrolly-stage { min-height: 0; height: 100vh; height: 100dvh; }
  .beats { min-height: 150px; }
  .beat p { max-width: none; }
  .scrolly-visual { display: none; }   /* en móvil prima el texto encadenado */
}

/* Fallback sin animación / reduced-motion: mostrar como lista estática */
.anim-off .scrolly-track, .reduce-static .scrolly-track { height: auto !important; }
.anim-off .scrolly-stage, .reduce-static .scrolly-stage { position: static; height: auto; display: block; padding: 90px 0; }
.anim-off .beats, .reduce-static .beats { min-height: 0; }
.anim-off .beat, .reduce-static .beat { position: relative; opacity: 1; transform: none; filter: none; margin-bottom: 22px; }
.anim-off .vstate, .reduce-static .vstate { display: none; }
.anim-off .vstate[data-state="5"], .reduce-static .vstate[data-state="5"] { display: flex; opacity: 1; transform: none; position: relative; }
.anim-off .beat-rail, .reduce-static .beat-rail { display: none; }

/* ============================================================
   MÓVIL — breakpoints consolidados (480 / 420)
   Ajustes de teléfono: paddings, anchos fijos y tipografía que
   desbordaban en viewports estrechos.
   ============================================================ */
@media (max-width: 480px) {
  .cta-card { padding: 40px 20px; }
  .gauge { width: clamp(180px, 70vw, 230px); height: clamp(180px, 70vw, 230px); }
  .gauge svg { width: 100%; height: 100%; }
  .xdoc { min-height: 200px; }
  .codeblock code { font-size: 12px; line-height: 1.7; }
  .nav-cta { gap: 8px; }
  .nav-cta .label-full { display: none; }
}

@media (max-width: 420px) {
  .cta-form input { width: 100%; }
  .hero-sub { max-width: none; }
}
