/* Onevalid — sistema visual.
   Paleta tomada de la app (packages/ui_kit/lib/src/theme/app_colors.dart) y del icono (degradado azul → turquesa). */

@font-face {
  font-family: "Raleway";
  src: url("/assets/fonts/raleway.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0e1330;
  --ink-2: #161c45;
  --ink-3: #232b63;
  --text: #3b4163;
  --muted: #62688c;
  --line: #e3e6f3;
  --line-2: #eef0f8;
  --bg: #f6f7fc;
  --surface: #ffffff;

  --brand: #6777cc;
  --brand-strong: #5263c2;
  --brand-2: #8a97da;
  --brand-3: #b7c0ef;
  --brand-tint: #eef0fb;
  --blue: #1f7fea;
  --teal: #26c2bf;

  --ok: #00a385;
  --ok-deep: #018b72;
  --ok-tint: #e2f6f1;
  --ko: #f86868;
  --ko-deep: #d94848;
  --ko-tint: #feeeee;
  --warn: #ff984e;
  --warn-deep: #c9621a;
  --warn-tint: #fff2e8;

  --grad: linear-gradient(115deg, var(--blue) 0%, var(--brand) 52%, var(--teal) 100%);
  --grad-icon: linear-gradient(45deg, #1a7bea 0%, #2bc8c3 100%);

  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(14, 19, 48, .05), 0 2px 8px rgba(14, 19, 48, .04);
  --shadow: 0 14px 34px -14px rgba(14, 19, 48, .2), 0 2px 6px rgba(14, 19, 48, .05);
  --shadow-lg: 0 50px 90px -34px rgba(31, 40, 110, .45), 0 16px 30px -16px rgba(14, 19, 48, .25);

  --font-display: "Raleway", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container: 1180px;
  --header-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.62;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand-strong); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink-3); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -.012em;
  margin: 0 0 .5em;
}
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--brand-3); color: var(--ink); }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.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;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon-sm { width: 18px; height: 18px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .95em 1.45em; border-radius: 999px; border: 1px solid transparent;
  font: 600 1rem/1 var(--font-body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn .icon { width: 19px; height: 19px; }
.btn-primary { background: var(--brand-strong); color: #fff; box-shadow: 0 10px 24px -10px rgba(82, 99, 194, .75); }
.btn-primary:hover { background: #4555b5; color: #fff; transform: translateY(-1px); box-shadow: 0 14px 30px -12px rgba(82, 99, 194, .85); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { color: var(--ink); border-color: var(--brand-3); transform: translateY(-1px); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { color: var(--ink); transform: translateY(-1px); box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .5); }
.btn-outline-light { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .28); }
.btn-outline-light:hover { color: #fff; background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .5); }
.btn-sm { padding: .7em 1.1em; font-size: .92rem; }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(246, 247, 252, .72);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background-color .25s ease;
}
.site-header.is-scrolled, .site-header.is-open { background: rgba(255, 255, 255, .9); border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font: 800 1.32rem/1 var(--font-display); letter-spacing: -.025em; color: var(--ink); text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand .logo { width: 34px; height: 34px; }
.nav-links { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--text); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); align-items: center; justify-content: center; cursor: pointer;
}
.mobile-menu { display: none; border-top: 1px solid var(--line); padding: 12px 0 20px; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu a { display: block; padding: 12px 4px; color: var(--ink); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--line-2); }
.mobile-menu .btn { margin-top: 16px; width: 100%; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; padding: 64px 0 88px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -240px -10% auto -10%; height: 1100px; z-index: -2; pointer-events: none;
  background:
    radial-gradient(38% 42% at 80% 30%, rgba(38, 194, 191, .22), transparent 70%),
    radial-gradient(42% 46% at 62% 52%, rgba(103, 119, 204, .24), transparent 70%),
    radial-gradient(34% 38% at 12% 12%, rgba(31, 127, 234, .12), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .75;
  background-image: linear-gradient(var(--line-2) 1px, transparent 1px), linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: radial-gradient(62% 58% at 50% 34%, #000 25%, transparent 78%);
  mask-image: radial-gradient(62% 58% at 50% 34%, #000 25%, transparent 78%);
}
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: .86rem; font-weight: 600; color: var(--ink);
}
.eyebrow .tag { background: var(--ok-tint); color: var(--ok-deep); padding: 4px 10px; border-radius: 999px; font-size: .76rem; letter-spacing: .02em; }
.hero h1 { font-size: clamp(2.45rem, 5.3vw, 4.25rem); font-weight: 800; letter-spacing: -.035em; margin: 22px 0 22px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(1.06rem, 1.45vw, 1.22rem); color: var(--muted); max-width: 35em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 30px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 24px; list-style: none; margin: 0; padding: 0; font-size: .95rem; color: var(--text); }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points .icon { color: var(--ok); width: 19px; height: 19px; stroke-width: 2.4; }

/* ---------- Móvil de demostración ---------- */
.device-stage { position: relative; display: grid; place-items: center; min-height: 660px; }
.device-stage::before {
  content: ""; position: absolute; width: 440px; height: 440px; border-radius: 50%; z-index: 0;
  background: conic-gradient(from 200deg, rgba(31, 127, 234, .28), rgba(38, 194, 191, .28), rgba(103, 119, 204, .3), rgba(31, 127, 234, .28));
  filter: blur(60px);
}
.phone {
  position: relative; z-index: 1; width: 304px; height: 624px; padding: 11px; border-radius: 50px;
  background: linear-gradient(160deg, #262d5c, #0b0f26 40%);
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgba(255, 255, 255, .08);
  transform: rotate(-2deg);
}
.phone::after {
  content: ""; position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 28px; border-radius: 20px; background: #05071a; z-index: 3;
}
.screen { position: relative; height: 100%; border-radius: 40px; overflow: hidden; background: #f9f9f9; display: flex; flex-direction: column; font-size: 12px; color: #5a5a5a; }
.status-bar { display: flex; justify-content: space-between; align-items: center; padding: 18px 26px 0; height: 50px; font-weight: 600; color: var(--ink); font-size: 12.5px; }
.status-bar .icon { width: 15px; height: 15px; stroke-width: 2.2; }
.status-icons { display: flex; gap: 5px; align-items: center; color: var(--ink); }
.app-bar { padding: 6px 18px 12px; background: #fff; border-bottom: 2px solid var(--brand-3); }
.app-bar-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.app-event { font: 700 15px/1.2 var(--font-display); color: var(--ink); }
.app-gate { font-size: 11.5px; color: #9a9a9a; margin-top: 2px; }
.chip-offline {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 999px;
  background: var(--warn-tint); color: var(--warn-deep); font-weight: 700; font-size: 10.5px; white-space: nowrap;
}
.chip-offline .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--warn); }
.viewfinder {
  position: relative; margin: 14px 14px 12px; height: 214px; border-radius: 22px; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 20%, #2a3170, #0d1130 70%);
  display: grid; place-items: center;
}
.viewfinder .qr { width: 112px; height: 112px; color: #fff; opacity: .92; }
.scan-frame { position: absolute; inset: 42px 72px; }
.scan-frame i { position: absolute; width: 26px; height: 26px; border: 3px solid #fff; border-radius: 4px; opacity: .95; }
.scan-frame i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.scan-frame i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.scan-frame i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.scan-frame i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.scan-line {
  position: absolute; left: 60px; right: 60px; top: 46px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, #2bc8c3, transparent);
  box-shadow: 0 0 16px 3px rgba(43, 200, 195, .65);
  animation: scan 2.6s ease-in-out infinite;
}
@keyframes scan { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(118px); } }
.vf-hint { position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; color: rgba(255, 255, 255, .72); font-size: 10.5px; }
.result {
  margin: 0 14px; padding: 14px 16px; border-radius: 18px; color: #fff; background: var(--ok);
  box-shadow: 0 12px 24px -14px rgba(0, 163, 133, .9);
  transition: background-color .35s ease, box-shadow .35s ease;
}
.result[data-state="dup"] { background: var(--ko); box-shadow: 0 12px 24px -14px rgba(248, 104, 104, .9); }
.result[data-state="early"] { background: var(--warn); box-shadow: 0 12px 24px -14px rgba(255, 152, 78, .9); }
.result-head { display: flex; align-items: center; gap: 10px; }
.result-badge { width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .22); display: grid; place-items: center; }
.result-badge .icon { width: 18px; height: 18px; stroke-width: 2.8; }
.result-title { font: 800 17px/1.1 var(--font-display); letter-spacing: -.01em; }
.result-name { font-weight: 700; font-size: 13px; margin-top: 10px; }
.result-meta { display: flex; justify-content: space-between; gap: 8px; margin-top: 3px; font-size: 11.5px; opacity: .92; }
.capacity { margin: 12px 14px 0; padding: 12px 14px; border-radius: 16px; background: #fff; border: 1px solid #ececf3; }
.capacity-row { display: flex; justify-content: space-between; font-size: 11.5px; }
.capacity-row strong { color: var(--ink); font-size: 13px; }
.bar { height: 7px; border-radius: 99px; background: var(--brand-tint); margin-top: 8px; overflow: hidden; }
.bar > span { display: block; height: 100%; width: 64%; border-radius: inherit; background: var(--grad); transition: width .6s ease; }
.tabbar { margin-top: auto; display: grid; grid-template-columns: repeat(4, 1fr); padding: 10px 8px 22px; background: #fff; border-top: 1px solid #ececf3; }
.tab { display: grid; justify-items: center; gap: 3px; font-size: 10px; color: #9a9a9a; }
.tab .icon { width: 20px; height: 20px; }
.tab.is-active { color: var(--brand); font-weight: 700; }

.float-card {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 11px;
  padding: 11px 15px 11px 11px; border-radius: 16px; background: rgba(255, 255, 255, .94);
  border: 1px solid var(--line); box-shadow: var(--shadow);
  font-size: .82rem; line-height: 1.3; color: var(--muted);
  animation: float 6s ease-in-out infinite;
}
.float-card strong { display: block; color: var(--ink); font-size: .9rem; }
.float-card .fc-icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.float-card .fc-icon .icon { width: 20px; height: 20px; }
.fc-warn { background: var(--warn-tint); color: var(--warn-deep); }
.fc-teal { background: #e2f7f6; color: #138f8c; }
.fc-brand { background: var(--brand-tint); color: var(--brand-strong); }
.fc-1 { top: 96px; right: -26px; }
.fc-2 { top: 248px; left: -44px; animation-delay: -2s; }
.fc-3 { bottom: 34px; left: -36px; animation-delay: -4s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- Prueba social ---------- */
.proof { padding: 0 0 24px; }
.proof-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden;
}
.proof-item { padding: 26px 28px; border-left: 1px solid var(--line); }
.proof-item:first-child { border-left: 0; }
.proof-num { font: 800 clamp(1.7rem, 2.6vw, 2.2rem)/1.1 var(--font-display); font-feature-settings: "lnum" 1; color: var(--ink); letter-spacing: -.02em; }
.proof-num .unit { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.proof-label { margin-top: 6px; font-size: .92rem; color: var(--muted); }
.proof-note { margin: 12px 0 0; text-align: center; font-size: .8rem; color: var(--muted); }

/* ---------- Secciones ---------- */
.section { padding: 104px 0; }
.section-tight { padding: 80px 0; }
.section-head { max-width: 780px; margin: 0 auto 56px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.kicker { display: inline-block; margin-bottom: 14px; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--brand-strong); }
.section-head h2, .h2 { font-size: clamp(1.95rem, 3.7vw, 3rem); font-weight: 800; letter-spacing: -.028em; }
.section-head p { font-size: 1.12rem; color: var(--muted); margin: 0; }

/* Problema → solución */
.contrast { display: grid; gap: 14px; max-width: 1040px; margin: 0 auto; }
.contrast-row {
  display: grid; grid-template-columns: 1fr auto 1.15fr; align-items: center; gap: 18px;
  padding: 18px 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.contrast-side { display: flex; align-items: flex-start; gap: 12px; }
.contrast-side p { margin: 0; }
.contrast-bad { color: var(--muted); }
.contrast-good { color: var(--ink); font-weight: 500; }
.mark { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none; margin-top: 1px; }
.mark .icon { width: 15px; height: 15px; stroke-width: 2.8; }
.mark-bad { background: var(--ko-tint); color: var(--ko-deep); }
.mark-good { background: var(--ok-tint); color: var(--ok-deep); }
.contrast-arrow { color: var(--brand-3); }

/* Bento de funciones */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.card {
  position: relative; overflow: hidden; padding: 28px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d9ddf0; }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.icon-badge { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; background: var(--brand-tint); color: var(--brand-strong); }
.icon-badge.ok { background: var(--ok-tint); color: var(--ok-deep); }
.icon-badge.teal { background: #e2f7f6; color: #138f8c; }
.icon-badge.warn { background: var(--warn-tint); color: var(--warn-deep); }
.icon-badge.blue { background: #e6f1fd; color: #1768c4; }
.card h3 { font-size: 1.26rem; font-weight: 700; margin-bottom: .45em; }
.card p { margin: 0; color: var(--muted); font-size: .98rem; }
.card-visual { margin-top: 22px; }

.state-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.state-chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 12px; font-size: .86rem; font-weight: 600; color: #fff; }
.state-chip .icon { width: 16px; height: 16px; stroke-width: 2.6; }
.state-ok { background: var(--ok); }
.state-ko { background: var(--ko); }
.state-warn { background: var(--warn); }
.state-plain { background: var(--brand-tint); color: var(--brand-strong); }

.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tl-step { padding: 10px 12px; border-radius: 12px; background: var(--bg); border: 1px dashed var(--line); font-size: .82rem; color: var(--muted); }
.tl-step strong { display: block; color: var(--ink); font-size: .9rem; }
.tl-step.is-off { background: var(--warn-tint); border-color: #ffd9bd; }
.tl-step.is-off strong { color: var(--warn-deep); }

.mini-bars { display: flex; align-items: flex-end; gap: 7px; height: 76px; }
.mini-bars span { flex: 1; border-radius: 6px 6px 3px 3px; background: var(--brand-tint); }
.mini-bars span.hi { background: var(--grad); }
.mini-bars .bar-a { height: 38%; }
.mini-bars .bar-b { height: 55%; }
.mini-bars .bar-c { height: 72%; }
.mini-bars .bar-d { height: 48%; }
.mini-bars .bar-e { height: 88%; }
.mini-bars .bar-f { height: 62%; }
.mini-bars .bar-g { height: 100%; }

.span-6 { grid-column: span 6; }
.brand-card { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; background: linear-gradient(115deg, #fff 52%, #f0f2fd); }
.brand-card > * { min-width: 0; }
.brand-card p { max-width: 38em; }
.brand-demo { display: flex; align-items: center; justify-content: center; gap: 22px; }
.brand-ticket {
  position: relative; overflow: hidden; width: 220px; padding: 22px 18px 16px; border-radius: 16px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); transform: rotate(-3deg);
}
.brand-ticket::before { content: ""; position: absolute; inset: 0 0 auto; height: 8px; background: linear-gradient(90deg, #e4572e, #ffc914); }
.bt-logo { display: inline-block; padding: 7px 11px; border-radius: 8px; border: 1.5px dashed #e4572e; color: #c2410c; font: 800 .76rem/1 var(--font-display); letter-spacing: .14em; }
.bt-line { display: block; height: 8px; margin-top: 14px; border-radius: 4px; background: var(--line-2); }
.bt-line.short { width: 60%; margin-top: 8px; }
.bt-row { display: flex; justify-content: space-between; margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: .8rem; color: var(--muted); }
.bt-row strong { color: #c2410c; }
.brand-swatches { display: grid; grid-template-columns: repeat(2, 36px); gap: 10px; }
.swatch { width: 36px; height: 36px; border-radius: 11px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }
.sw-1 { background: #e4572e; }
.sw-2 { background: #ffc914; }
.sw-3 { background: #17bebb; }
.sw-4 { background: #2e282a; }

.receipt { display: grid; gap: 7px; font-size: .88rem; }
.receipt-row { display: flex; justify-content: space-between; padding: 9px 12px; border-radius: 10px; background: var(--bg); }
.receipt-row strong { color: var(--ink); }
.receipt-row.total { background: var(--ink); color: #c9cde8; }
.receipt-row.total strong { color: #fff; }

/* ---------- Sección oscura: offline ---------- */
.dark { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); color: #c5cae6; }
.dark::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 55% at 85% 20%, rgba(38, 194, 191, .18), transparent 70%),
    radial-gradient(45% 60% at 10% 90%, rgba(103, 119, 204, .25), transparent 70%);
}
.dark h2, .dark h3 { color: #fff; }
.dark .kicker { color: #7fe3df; }
.dark .section-head p, .dark .lead-dark { color: #aeb4d8; }
.offline-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
.checklist { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist .tick { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; flex: none; background: rgba(38, 194, 191, .16); color: #7fe3df; margin-top: 1px; }
.checklist .tick .icon { width: 15px; height: 15px; stroke-width: 2.8; }
.checklist strong { color: #fff; font-weight: 600; }
.mesh-card { position: relative; border-radius: var(--radius-lg); padding: 18px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .08); }
.mesh { width: 100%; height: auto; }
.mesh .link { stroke: rgba(183, 192, 239, .38); stroke-width: 1.6; stroke-dasharray: 5 7; fill: none; animation: dash 14s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -240; } }
.mesh .node-body { fill: #1b2250; stroke: rgba(183, 192, 239, .5); stroke-width: 1.5; }
.mesh .node-screen { fill: #0e1330; }
.mesh .node-label { fill: #dfe3ff; font: 600 13px var(--font-body); }
.mesh .node-sub { fill: #8d94c4; font: 500 11px var(--font-body); }
.mesh .pulse { fill: #2bc8c3; filter: drop-shadow(0 0 6px rgba(43, 200, 195, .9)); }
.mesh .cloud { fill: none; stroke: rgba(255, 152, 78, .9); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mesh .cloud-label { fill: #ffb987; font: 700 12px var(--font-body); letter-spacing: .06em; }

/* ---------- Pasos ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { position: relative; padding: 30px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.step-num {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 20px;
  background: var(--grad); color: #fff; font: 800 1rem/1 var(--font-display); font-feature-settings: "lnum" 1;
}
.step h3 { font-size: 1.22rem; }
.step p { margin: 0; color: var(--muted); }

/* ---------- Casos de uso ---------- */
.uses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.use { display: flex; gap: 16px; padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.use .icon-badge { flex: none; margin: 0; width: 44px; height: 44px; }
.use h3 { font-size: 1.08rem; margin-bottom: .3em; }
.use p { margin: 0; font-size: .95rem; color: var(--muted); }

/* ---------- Hardware ---------- */
.hardware { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.hw { padding: 28px; border-radius: var(--radius); background: linear-gradient(180deg, #fff, #fbfbfe); border: 1px solid var(--line); }
.hw-art { height: 120px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 14px; background: var(--bg); color: var(--brand); }
.hw-art svg { width: 120px; height: 96px; }
.hw h3 { font-size: 1.15rem; }
.hw p { margin: 0; color: var(--muted); font-size: .96rem; }

/* ---------- Seguridad ---------- */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.trust-item { padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.trust-item .icon-badge { width: 42px; height: 42px; margin-bottom: 14px; }
.trust-item h3 { font-size: 1.02rem; margin-bottom: .35em; }
.trust-item p { margin: 0; font-size: .93rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 840px; margin: 0 auto; }
.faq details { margin-bottom: 12px; padding: 0 24px; border-radius: 16px; background: #fff; border: 1px solid var(--line); transition: box-shadow .2s ease, border-color .2s ease; }
.faq details[open] { box-shadow: var(--shadow); border-color: #d9ddf0; }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; font: 700 1.08rem/1.35 var(--font-display); color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 11px; height: 11px; margin-top: -5px;
  border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand);
  transform: rotate(45deg); transition: transform .2s ease, margin .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 5px; }
.faq .answer { padding: 0 0 22px; color: var(--muted); }
.faq .answer p:last-child { margin: 0; }

/* ---------- CTA final ---------- */
.cta-band {
  position: relative; isolation: isolate; overflow: hidden; text-align: center;
  padding: 72px 48px; border-radius: 34px; background: var(--ink); color: #b9bfe0;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(50% 80% at 15% 0%, rgba(31, 127, 234, .35), transparent 70%),
    radial-gradient(50% 80% at 90% 100%, rgba(38, 194, 191, .3), transparent 70%),
    radial-gradient(40% 60% at 60% 40%, rgba(103, 119, 204, .3), transparent 70%);
}
.cta-band h2 { color: #fff; font-size: clamp(1.9rem, 3.8vw, 3rem); font-weight: 800; letter-spacing: -.028em; max-width: 820px; margin: 0 auto .45em; }
.cta-band p { max-width: 620px; margin: 0 auto; font-size: 1.1rem; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }

/* ---------- Pie ---------- */
.site-footer { margin-top: 104px; padding: 60px 0 32px; background: #fff; border-top: 1px solid var(--line); font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 36px; }
.footer-about p { margin: 16px 0 0; color: var(--muted); max-width: 30em; }
.footer-col h2 { font: 700 .8rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); margin: 6px 0 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--text); text-decoration: none; }
.footer-col a:hover { color: var(--brand-strong); text-decoration: underline; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .84rem; }
.footer-legal p { margin: 0; }

/* ---------- Páginas legales ---------- */
.legal-hero { position: relative; isolation: isolate; overflow: hidden; padding: 64px 0 40px; border-bottom: 1px solid var(--line); }
.legal-hero::before {
  content: ""; position: absolute; inset: -200px -10% auto 40%; height: 520px; z-index: -1;
  background: radial-gradient(50% 50% at 50% 50%, rgba(103, 119, 204, .18), transparent 70%);
}
.breadcrumb { font-size: .88rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--muted); }
.legal-hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.028em; margin-bottom: .35em; }
.legal-hero p { color: var(--muted); max-width: 46em; margin: 0; }
.updated { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .84rem; color: var(--text); }
.legal-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; padding: 48px 0 24px; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; font-size: .9rem; }
.toc h2 { font: 700 .76rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); margin: 0 0 14px; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc a { display: block; padding: 6px 0 6px 14px; border-left: 2px solid var(--line); color: var(--muted); text-decoration: none; line-height: 1.35; }
.toc a:hover { color: var(--ink); border-left-color: var(--brand); }
.prose { max-width: 780px; font-size: 1rem; }
.prose h2 { font-size: 1.5rem; font-weight: 800; margin: 2.3em 0 .7em; letter-spacing: -.02em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.12rem; font-weight: 700; margin: 1.7em 0 .5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin: .35em 0; }
.prose strong { color: var(--ink); }
.table-wrap { overflow-x: auto; margin: 1.2em 0 1.6em; border-radius: 14px; border: 1px solid var(--line); background: #fff; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { padding: 13px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose tr:last-child th, .prose tr:last-child td { border-bottom: 0; }
.prose thead th { background: var(--brand-tint); color: var(--ink); font-weight: 700; }
.prose tbody th { width: 32%; color: var(--ink); font-weight: 600; background: #fbfbfe; }
.id-card { margin: 0 0 2.2em; padding: 24px 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.id-card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.id-card-head .logo { width: 44px; height: 44px; }
.id-card-head strong { display: block; font: 800 1.2rem/1.2 var(--font-display); color: var(--ink); }
.id-card-head span { color: var(--muted); font-size: .9rem; }
.id-card dl { display: grid; grid-template-columns: 210px 1fr; gap: 10px 18px; margin: 0; font-size: .95rem; }
.id-card dt { color: var(--muted); }
.id-card dd { margin: 0; color: var(--ink); font-weight: 500; }
.callout { margin: 1.4em 0; padding: 18px 20px; border-radius: 14px; background: var(--brand-tint); border: 1px solid #dfe3f8; color: var(--ink-3); }
.callout p:last-child { margin: 0; }
.callout.ok { background: var(--ok-tint); border-color: #c6ece2; color: #0b5e4f; }
.steps-list { counter-reset: s; list-style: none; padding: 0 !important; }
.steps-list li { counter-increment: s; position: relative; padding-left: 46px; margin: 0 0 16px; }
.steps-list li::before {
  content: counter(s); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center; background: var(--grad); color: #fff; font: 800 .9rem/1 var(--font-display);
}

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.notfound .code { font: 800 clamp(5rem, 14vw, 9rem)/1 var(--font-display); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin: 0; }

/* ---------- Animación de aparición (solo se activa con JS, fuera de la primera pantalla) ---------- */
.reveal-ready { opacity: 0; transform: translateY(20px); }
.reveal-ready.is-visible { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s ease; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .lead { margin-inline: auto; }
  .hero-actions, .hero-points { justify-content: center; }
  .device-stage { min-height: 0; padding: 20px 0 10px; }
  .bento .span-2, .bento .span-3, .bento .span-4 { grid-column: span 3; }
  .offline-grid { grid-template-columns: 1fr; gap: 40px; }
  .trust, .hardware { grid-template-columns: repeat(2, 1fr); }
  .bento .span-6 { grid-column: span 6; }
  .brand-card { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 920px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header.is-open .mobile-menu { display: block; }
  .legal-layout { grid-template-columns: 1fr; gap: 28px; }
  .toc { position: static; padding: 18px 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
  .steps, .uses, .hardware { grid-template-columns: 1fr 1fr; }
  .contrast-row { grid-template-columns: 1fr; gap: 12px; }
  .contrast-arrow { display: none; }
  .contrast-good { padding-top: 12px; border-top: 1px dashed var(--line); }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding: 76px 0; }
  .hero { padding: 40px 0 64px; }
  .proof-grid { grid-template-columns: 1fr 1fr; }
  .proof-item { padding: 20px; }
  .proof-item:nth-child(3) { border-left: 0; }
  .proof-item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .bento { grid-template-columns: 1fr; }
  .bento > * { grid-column: auto !important; }
  .steps, .uses, .hardware, .trust { grid-template-columns: 1fr; }
  .cta-band { padding: 52px 22px; border-radius: 26px; }
  .footer-grid { grid-template-columns: 1fr; }
  .id-card dl { grid-template-columns: 1fr; gap: 2px; }
  .id-card dd { margin-bottom: 10px; }
  .phone { transform: none; width: 280px; height: 576px; }
  .viewfinder { height: 186px; }
  .scan-frame { inset: 34px 62px; }
  @keyframes scan { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(96px); } }
  .fc-1 { right: 0; top: 6px; }
  .fc-2 { left: 0; top: 250px; }
  .fc-3 { display: none; }
  .timeline { grid-template-columns: 1fr; }
  .brand-demo { gap: 14px; }
  .brand-ticket { width: 190px; }
  .brand-swatches { grid-template-columns: repeat(2, 30px); gap: 8px; }
  .swatch { width: 30px; height: 30px; }
}
@media (max-width: 420px) {
  .float-card { font-size: .76rem; padding: 9px 12px 9px 9px; }
  .float-card .fc-icon { width: 32px; height: 32px; }
  .hero-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal-ready { opacity: 1; transform: none; }
  .mesh .pulse { display: none; }
}

/* ---------- Comparativa ---------- */
.compare { max-width: 960px; margin: 0 auto; }
.compare table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.compare th, .compare td { padding: 17px 20px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare thead th { background: #fbfbfe; font: 700 .76rem/1.2 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.compare thead th.col-ov { color: var(--brand-strong); }
.compare tbody th { width: 34%; color: var(--ink); font-weight: 600; }
.compare td { color: var(--muted); }
.compare td.col-ov { color: var(--ink); font-weight: 600; background: rgba(103, 119, 204, .06); }
.compare .yes, .compare .no { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 10px; border-radius: 50%; vertical-align: -7px; }
.compare .yes { background: var(--ok-tint); color: var(--ok-deep); }
.compare .no { background: var(--line-2); color: #8a8fb0; }
.compare .yes .icon, .compare .no .icon { width: 14px; height: 14px; stroke-width: 2.8; }
.compare-note { margin: 14px 0 0; text-align: center; font-size: .82rem; color: var(--muted); }
@media (max-width: 720px) {
  .compare thead { display: none; }
  .compare table, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: auto; }
  .compare tr { padding: 16px 16px 10px; border-bottom: 1px solid var(--line); }
  .compare tr:last-child { border-bottom: 0; }
  .compare tbody th { width: auto; padding: 0 0 8px; border: 0; font-size: 1rem; }
  .compare td { display: flex; align-items: center; padding: 7px 0; border: 0; }
  .compare td.col-ov { background: none; }
  .compare td::before { content: attr(data-label); flex: 0 0 92px; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
}
