/* Vitia · sitio de presentación
   Tokens del sistema de diseño de la app (DESIGN.md): cobalto para acción, magenta para citas,
   ámbar para coincidencias, teal/ámbar/rojo para estados. HeroLight 300/400/700. */

@font-face { font-family: "HeroLight"; src: url("../fonts/HeroLight-Light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "HeroLight"; src: url("../fonts/HeroLight-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "HeroLight"; src: url("../fonts/HeroLight-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  /* Claro */
  --ground: #f5f6fb;
  --sidebar: #eef0f8;
  --surface: #ffffff;
  --raised: #f2f4fa;
  --raised-2: #e6eaf5;
  --inset: #eceff7;
  --line: rgba(16, 28, 72, 0.12);
  --line-strong: rgba(16, 28, 72, 0.2);
  --text-strong: #0a0f24;
  --text: #141a33;
  --doc-text: #232a45;
  --text-2: #3d4566;
  --muted: #5a6282;

  --accent: #004aad;
  --accent-hover: #003b8a;
  --accent-soft: rgba(0, 74, 173, 0.08);
  --accent-line: rgba(0, 74, 173, 0.32);

  --cite: #cb6ce6;
  --cite-ink: #2a0a35;
  --cite-text: #8e2fae;
  --cite-soft: rgba(203, 108, 230, 0.12);
  --cite-wash: rgba(203, 108, 230, 0.2);
  --cite-line: rgba(203, 108, 230, 0.55);
  --cite-ring: rgba(203, 108, 230, 0.28);

  --ok: #1a7a55;      --ok-soft: rgba(26, 122, 85, 0.1);
  --warn: #9a5b00;    --warn-soft: rgba(154, 91, 0, 0.1);
  --danger: #c42b2b;  --danger-soft: rgba(196, 43, 43, 0.09);
  --mark: #ffd166;    --mark-ink: #2a1a00;

  /* Oscuro (consola de la app y bandas profundas) */
  --n-ground: #0b0f1e;
  --n-deep: #070b18;
  --n-surface: #111729;
  --n-raised: #161e36;
  --n-raised-2: #1d2745;
  --n-line: rgba(255, 255, 255, 0.11);
  --n-line-strong: rgba(255, 255, 255, 0.19);
  --n-text-strong: #ffffff;
  --n-text: #eef0fa;
  --n-text-2: #c4c9df;
  --n-muted: #929bbb;
  --n-accent: #6b9bff;
  --n-cite-ink: #22062c;
  --n-cite-text: #dc95f0;

  --on-cobalt: #ffffff;
  --on-cobalt-2: #d4e1fb;
  --on-cobalt-line: rgba(255, 255, 255, 0.26);

  --brand-grad: linear-gradient(115deg, #004aad 0%, #5b5bb8 55%, #cb6ce6 100%);

  --shadow-sm: 0 1px 2px rgba(16, 28, 72, 0.08);
  --shadow: 0 10px 30px rgba(16, 28, 72, 0.1), 0 2px 6px rgba(16, 28, 72, 0.06);
  --shadow-lg: 0 30px 60px rgba(10, 20, 60, 0.18), 0 8px 18px rgba(10, 20, 60, 0.1);
  --shadow-night: 0 34px 70px rgba(5, 10, 30, 0.42), 0 10px 22px rgba(5, 10, 30, 0.28);
  --shadow-cite: 0 12px 28px rgba(142, 47, 174, 0.2), 0 2px 6px rgba(16, 28, 72, 0.08);

  --r-mark: 3px;
  --r-ctl: 4px;
  --r-control: 10px;
  --r-tile: 12px;
  --r-panel: 14px;
  --r-bubble: 16px;
  --r-xl: 22px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  --gutter: 32px;
  --header-h: 72px;

  color-scheme: light;
  font-family: "HeroLight", "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: no-preference) { :root { scroll-behavior: smooth; } }

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--ground); overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

::selection { background: rgba(0, 74, 173, 0.18); color: var(--text-strong); }
.security ::selection, .demo-panel ::selection, .foot ::selection, .console ::selection { background: rgba(255, 255, 255, 0.28); color: #fff; }
.form ::selection { background: rgba(0, 74, 173, 0.18); color: var(--text-strong); }

html { scrollbar-color: rgba(16, 28, 72, 0.25) var(--ground); scrollbar-width: thin; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--ground); }
::-webkit-scrollbar-thumb { background: rgba(16, 28, 72, 0.22); border-radius: 999px; border: 3px solid var(--ground); }
::-webkit-scrollbar-thumb:hover { background: rgba(16, 28, 72, 0.36); }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.security :focus-visible, .demo-copy :focus-visible, .foot :focus-visible { outline-color: #fff; }

.wrap { width: 100%; max-width: 1360px; margin: 0 auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--surface); color: var(--accent); padding: 10px 16px; border-radius: var(--r-control);
  box-shadow: var(--shadow); font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.tag { font-size: 11.5px; line-height: 1; padding: 5px 9px; border-radius: 999px; color: var(--n-muted); background: rgba(255, 255, 255, 0.07); }

/* Chip de cita: firma del sistema. Muestra el documento y la página, no solo un número. */
.pill, .cite {
  --doc-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h8l4 4v14H6z'/%3E%3Cpath d='M14 3v4h4M9 12h6M9 16h4'/%3E%3C/svg%3E");
  display: inline-flex; align-items: center; gap: 4px;
  height: 21px; padding: 0 7px 0 5px; border-radius: 6px;
  border: 1px solid var(--cite-line); background: var(--cite-soft); color: var(--cite-text);
  font-size: 11.5px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums;
  white-space: nowrap; vertical-align: 1px;
}
.pill.is-db {
  --doc-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cellipse cx='12' cy='5.5' rx='7' ry='2.5'/%3E%3Cpath d='M5 5.5v13c0 1.4 3.1 2.5 7 2.5s7-1.1 7-2.5v-13M5 12c0 1.4 3.1 2.5 7 2.5s7-1.1 7-2.5'/%3E%3C/svg%3E");
}
.pill::before, .cite::before {
  content: ""; width: 12px; height: 12px; flex: none; background: currentColor;
  -webkit-mask: var(--doc-ic) center / contain no-repeat; mask: var(--doc-ic) center / contain no-repeat;
}

/* Controles: formales y compactos. Esquina corta, sin resplandor; el estado se marca con color, no con movimiento. */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 16px; border-radius: var(--r-ctl);
  border: 1px solid transparent; font-weight: 700; font-size: 14px; line-height: 1;
  text-decoration: none; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.btn:focus-visible { outline-offset: 2px; border-radius: var(--r-ctl); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn-lg { height: 42px; padding: 0 20px; font-size: 14.5px; }
.btn .ic { width: 15px; height: 15px; stroke-width: 2; }
.btn-primary {
  background: var(--accent); color: #fff; border-color: #00408f;
  box-shadow: 0 1px 2px rgba(10, 20, 60, 0.16);
}
.btn-primary:hover { background: var(--accent-hover); border-color: #00326f; color: #fff; }
.btn-primary:active { background: #00316f; box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2); }
.btn-ghost { background: var(--surface); color: var(--text-strong); border-color: rgba(16, 28, 72, 0.22); box-shadow: 0 1px 2px rgba(16, 28, 72, 0.06); }
.btn-ghost:hover { background: #f6f7fb; border-color: rgba(16, 28, 72, 0.34); color: var(--text-strong); }
.btn-ghost:active { background: var(--raised); box-shadow: none; }
.btn-light { background: #fff; color: var(--accent); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.14); }
.btn-light:hover { background: #eef2fb; color: var(--accent-hover); }
.btn-light:active { background: #e2e9f8; box-shadow: none; }

/* Cabecera */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 40; height: var(--header-h);
  background: rgba(245, 246, 251, 0); border-bottom: 1px solid transparent;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.top.is-scrolled {
  background: rgba(255, 255, 255, 0.86); border-bottom-color: var(--line);
  -webkit-backdrop-filter: saturate(1.5) blur(14px); backdrop-filter: saturate(1.5) blur(14px);
}
.top-row { height: 100%; display: flex; align-items: center; gap: 36px; }
.brand { display: block; flex: none; }
.brand img { width: 104px; height: auto; }
.top-nav { display: flex; align-items: center; gap: 4px; margin-right: auto; }
.top-nav a:not(.btn) {
  position: relative; padding: 8px 12px; border-radius: var(--r-control);
  color: var(--text-2); font-size: 14.5px; text-decoration: none;
  transition: color .15s var(--ease), background-color .15s var(--ease);
}
.top-nav a:not(.btn):hover { color: var(--text-strong); background: var(--accent-soft); }
.top-nav a.is-current { color: var(--accent); }
.top-nav-cta { display: none; }
.top-actions { display: flex; align-items: center; gap: 18px; }
.link-quiet { color: var(--text-2); font-size: 14.5px; text-decoration: none; }
.link-quiet:hover { color: var(--accent); }
.menu-btn { display: none; width: 38px; height: 38px; border-radius: var(--r-ctl); border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); align-items: center; justify-content: center; }
.menu-btn .ic path { transition: transform .25s var(--ease), opacity .2s var(--ease); transform-origin: center; }
.menu-btn[aria-expanded="true"] .m1 { transform: translateY(5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .m2 { opacity: 0; }
.menu-btn[aria-expanded="true"] .m3 { transform: translateY(-5px) rotate(-45deg); }

/* Hero */
.hero { position: relative; padding: calc(var(--header-h) + 64px) 0 72px; overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(900px 520px at 85% 8%, rgba(0, 74, 173, 0.14), transparent 70%),
    radial-gradient(700px 420px at 70% 90%, rgba(203, 108, 230, 0.11), transparent 70%),
    linear-gradient(180deg, #dfe3f0 0%, #e6e9f4 100%);
}
.hero::after {
  content: ""; 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: 56px 56px; opacity: .35;
  -webkit-mask-image: radial-gradient(1000px 600px at 75% 30%, #000 0%, transparent 72%);
  mask-image: radial-gradient(1000px 600px at 75% 30%, #000 0%, transparent 72%);
}
/* Los dos trazos del isotipo, a escala de página */
.hero-bg, .sec-bg, .demo-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.hero-bg span, .sec-bg span, .demo-bg span {
  position: absolute; top: -20%; height: 140%; width: 180px; border-radius: 28px;
  background: linear-gradient(90deg, #004aad, #cb6ce6);
}
.hero-bg span { opacity: .06; }
.hero-bg span:first-child { right: 4%; transform: skewX(-18deg); }
.hero-bg span:last-child { right: 19%; width: 150px; transform: skewX(18deg); opacity: .045; }

.hero-grid { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: 64px; align-items: center; }
.hero-copy { max-width: 540px; }
/* Sello de DevyData sobre el título */
.hero-by {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; padding: 7px 14px 7px 12px;
  border-radius: 999px; background: rgba(255, 255, 255, 0.72); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); color: var(--text-2); font-size: 13px; text-decoration: none;
  transition: border-color .15s var(--ease), background-color .15s var(--ease);
}
.hero-by:hover { color: var(--text-2); background: #fff; border-color: var(--line-strong); }
.hero-by img { width: auto; height: 18px; }
.hero h1 {
  font-size: clamp(40px, 4.4vw, 62px); line-height: 1.04; font-weight: 700; letter-spacing: -0.025em;
  color: var(--text-strong); text-wrap: balance;
}
.lede { margin-top: 24px; font-size: clamp(16.5px, 1.25vw, 18.5px); line-height: 1.6; color: var(--text-2); max-width: 52ch; text-wrap: pretty; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); }
.hero-points .ic { width: 16px; height: 16px; color: var(--ok); }

/* Escenario */
.stage { position: relative; min-width: 0; }
.sector-tabs {
  position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  padding: 3px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-sm); margin-bottom: 16px; isolation: isolate;
}
.sector-tabs button {
  position: relative; z-index: 1; height: 32px; padding: 0 16px; border: 0; border-radius: var(--r-ctl); background: transparent;
  color: var(--text-2); font-size: 13.5px; font-weight: 400; white-space: nowrap;
  transition: color .2s var(--ease);
}
.sector-tabs button:hover { color: var(--text-strong); }
.sector-tabs button[aria-selected="true"] { color: #fff; font-weight: 700; }
.sector-tabs button.is-hint::after {
  content: ""; position: absolute; top: 7px; right: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--cite);
  animation: hint 1.6s var(--ease) infinite;
}
@keyframes hint { 0%, 100% { box-shadow: 0 0 0 0 var(--cite-ring); } 50% { box-shadow: 0 0 0 5px rgba(203, 108, 230, 0); } }
.tab-ink {
  position: absolute; z-index: 0; top: 0; left: 0; width: 0; height: 32px; border-radius: var(--r-ctl);
  background: var(--accent); box-shadow: 0 1px 2px rgba(10, 20, 60, 0.16);
  transition: transform .45s var(--ease), width .45s var(--ease), height .45s var(--ease);
}

.stage-body { position: relative; height: 532px; }

/* Hoja del documento */
.sheet {
  position: absolute; z-index: 1; left: 0; top: 0; width: 54%; height: 486px;
  background: #fff; border-radius: 6px; border: 1px solid var(--line);
  box-shadow: var(--shadow-lg); overflow: hidden;
  transition: opacity .35s var(--ease), filter .35s var(--ease), transform .45s var(--ease);
}
.sheet::before { /* borde de página apilada */
  content: ""; position: absolute; inset: auto 0 0 0; height: 40px; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 85%);
}
.sheet.is-out { opacity: 0; filter: blur(6px); transform: translateY(6px); }
.sheet-head {
  position: relative; z-index: 3; display: flex; justify-content: space-between; align-items: center; gap: 10px;
  height: 40px; padding: 0 16px; background: var(--raised); border-bottom: 1px solid var(--line);
  font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums;
}
.sheet-kind { font-weight: 700; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet-page { white-space: nowrap; }
.sheet-doc {
  position: relative; padding: 22px 24px 60px;
  font-family: "Times New Roman", Tinos, "Liberation Serif", Georgia, serif;
  font-size: 13px; line-height: 1.62; color: var(--doc-text);
  transition: transform .8s var(--ease);
}
.sheet-doc .d-org { font-family: "HeroLight", "Segoe UI", sans-serif; font-size: 10.5px; letter-spacing: .08em; color: var(--muted); margin-bottom: 4px; }
.sheet-doc .d-title { font-weight: 700; text-align: center; font-size: 13.5px; margin: 6px 0 14px; color: var(--text-strong); letter-spacing: .01em; }
.sheet-doc p + p { margin-top: 10px; }
.sheet-doc p { text-align: justify; hyphens: auto; }
.sheet-doc .d-passage {
  position: relative; margin: 12px -10px; padding: 10px; border-radius: 8px;
  border: 1px solid transparent; color: var(--doc-text);
  background-image: linear-gradient(var(--cite-wash), var(--cite-wash));
  background-repeat: no-repeat; background-size: 0% 100%;
  transition: background-size .9s var(--ease), border-color .5s var(--ease), box-shadow .6s var(--ease), color .4s var(--ease);
}
.sheet-doc .d-passage.is-lit {
  background-size: 100% 100%; border-color: var(--cite); color: var(--text-strong);
  box-shadow: 0 0 0 4px var(--cite-ring), var(--shadow-cite);
}
.sheet-doc mark { background: var(--mark); color: var(--mark-ink); border-radius: var(--r-mark); padding: 0 2px; }
.sheet-ocr {
  position: absolute; z-index: 3; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px; background: var(--warn-soft); color: var(--warn);
  font-size: 11.5px; font-weight: 700;
}
.sheet-ocr .ic { width: 14px; height: 14px; }
.sheet.is-scan .sheet-doc { filter: contrast(1.02) saturate(.9); }
.scan {
  position: absolute; z-index: 2; left: 0; right: 0; top: 40px; height: 64px; pointer-events: none; opacity: 0;
  background: linear-gradient(180deg, rgba(0, 74, 173, 0), rgba(0, 74, 173, 0.08) 70%, rgba(0, 74, 173, 0.5) 98%, rgba(0, 74, 173, 0));
}
.sheet.is-reading .scan { animation: scan 1.3s var(--ease-io) both; }
@keyframes scan { 0% { opacity: 0; transform: translateY(-40px); } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(400px); } }

/* Consola (la app en tema oscuro) */
.console {
  position: absolute; z-index: 2; right: 0; top: 40px; width: 48.5%; height: 492px;
  display: flex; flex-direction: column;
  background: var(--n-surface); color: var(--n-text); border: 1px solid var(--n-line);
  border-radius: var(--r-bubble); box-shadow: var(--shadow-night); overflow: hidden;
}
.console-bar { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px 0 16px; border-bottom: 1px solid var(--n-line); background: var(--n-ground); }
.console-dot { width: 22px; height: 22px; border-radius: 7px; background: var(--brand-grad); flex: none; position: relative; }
.console-dot::after { content: ""; position: absolute; inset: 6px 7px; border-radius: 2px; border-left: 2px solid rgba(255,255,255,.9); border-right: 2px solid rgba(255,255,255,.9); transform: skewX(-12deg); }
.console-title { font-size: 13px; font-weight: 700; color: var(--n-text-2); margin-right: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread {
  flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; padding: 16px 16px 10px; overflow-y: auto;
  font-size: 13.5px; line-height: 1.58; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}
.thread::-webkit-scrollbar { width: 8px; }
.thread::-webkit-scrollbar-track { background: transparent; }
.thread::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.16); border: 2px solid var(--n-surface); }
.thread .q {
  align-self: flex-end; max-width: 88%; padding: 9px 13px; border-radius: 14px 14px 4px 14px;
  background: var(--n-raised-2); border: 1px solid var(--n-line-strong); color: var(--n-text-strong);
}
.thread .q:empty { display: none; }
.status { display: inline-flex; align-items: center; gap: 9px; color: var(--n-muted); font-size: 13px; }
/* Cargando: las dos barras de la V del logo se encienden por turnos mientras Vitia lee. */
.vload { width: 15px; height: 17px; flex: none; overflow: visible; }
.vload path { stroke-width: 18; stroke-linejoin: round; transform-box: fill-box; transform-origin: center; }
.vload .vl-a { fill: url(#vl-ga); stroke: url(#vl-ga); }
.vload .vl-b { fill: url(#vl-gb); stroke: url(#vl-gb); }
.motion .vload path { animation: vbar 1.05s var(--ease-io) infinite; }
.motion .vload .vl-b { animation-delay: .2s; }
@keyframes vbar { 0%, 100% { opacity: .3; transform: translateY(9%) scaleY(.9); } 45% { opacity: 1; transform: none; } }
.motion .status-t {
  background: linear-gradient(90deg, var(--n-muted) 30%, var(--n-text-strong) 50%, var(--n-muted) 70%) 0 0 / 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 1.6s linear infinite;
}
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -150% 0; } }
.thread .a { color: var(--n-text); }
.thread .a:empty { display: none; }
.thread .a p + p { margin-top: 8px; }
.thread .a strong { color: var(--n-text-strong); font-weight: 700; }
.thread .a .w { opacity: 1; }
.motion .thread .a .w { opacity: 0; transition: opacity .35s var(--ease); }
.motion .thread .a .w.on { opacity: 1; }
/* En la consola oscura la cita es un botón: se enciende al abrir su fuente. */
.cite {
  margin: 0 1px; background: rgba(203, 108, 230, 0.14); color: var(--n-cite-text);
  transition: border-color .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
.cite:hover { border-color: var(--cite); background: rgba(203, 108, 230, 0.22); }
.cite.is-on { background: var(--cite); border-color: var(--cite); color: var(--n-cite-ink); box-shadow: 0 0 0 3px rgba(203, 108, 230, 0.22); }
.cite:focus-visible { outline-color: #fff; }
.sources { display: grid; gap: 6px; margin-top: 2px; }
.sources:empty { display: none; }
.sources li button {
  width: 100%; display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: center; text-align: left;
  padding: 8px 10px; border-radius: 10px; border: 1px solid var(--n-line); background: var(--n-raised); color: var(--n-text);
  transition: border-color .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease);
}
.sources li button:hover { border-color: rgba(203, 108, 230, 0.5); }
.sources li button.is-on { border-color: var(--cite); box-shadow: 0 0 0 3px rgba(203, 108, 230, 0.16); }
.sources .s-ic {
  grid-row: span 2; width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center;
  background: rgba(203, 108, 230, 0.14); color: var(--n-cite-text);
}
.sources .s-ic .ic { width: 15px; height: 15px; }
.sources li button.is-on .s-ic { background: var(--cite); color: var(--n-cite-ink); }
.sources .s-t { font-size: 12.5px; font-weight: 700; color: var(--n-text-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sources .s-l { font-size: 11.5px; color: var(--n-muted); font-variant-numeric: tabular-nums; }
.motion .sources li { animation: rise .45s var(--ease) both; }
.motion .sources li:nth-child(2) { animation-delay: .08s; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.motion .thread .q.in, .motion .status.in { animation: rise .32s var(--ease) both; }

.composer {
  position: relative; display: flex; align-items: center; gap: 2px; margin: 0 12px 12px; height: 44px; padding: 0 6px 0 14px;
  border-radius: 12px; background: var(--n-raised); border: 1px solid var(--n-line-strong); font-size: 13px; color: var(--n-text);
}
.composer-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: calc(100% - 50px); }
.caret { width: 1.5px; height: 16px; background: var(--n-accent); opacity: 0; }
.composer.is-typing .caret { opacity: 1; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.composer-ph { position: absolute; left: 14px; color: var(--n-muted); pointer-events: none; }
.composer.is-typing .composer-ph { display: none; }
.composer-send { margin-left: auto; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--n-accent); color: #071331; }
.composer-send .ic { width: 16px; height: 16px; }

/* Hilo magenta entre cita y pasaje */
.thread-line { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 5; }
.thread-line path { fill: none; stroke: url(#tl-grad); stroke-width: 2; stroke-linecap: round; filter: drop-shadow(0 2px 6px rgba(142, 47, 174, 0.35)); }
.thread-line circle { fill: var(--cite); stroke: #fff; stroke-width: 2; opacity: 0; transition: opacity .3s var(--ease); }
.thread-line.is-on circle { opacity: 1; }
.thread-line circle#tl-a { stroke: var(--n-surface); }

.stage-note { margin-top: 14px; font-size: 12.5px; color: var(--muted); padding-left: 2px; }

/* Para quién */
.audience { border-block: 1px solid var(--line); background: var(--surface); }
.aud-row { display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: 40px; align-items: center; padding-block: 30px; }
.aud-row h2 { font-size: 15px; line-height: 1.4; font-weight: 700; color: var(--text-strong); }
.aud-list { display: flex; flex-wrap: wrap; gap: 10px; }
.aud-list li {
  padding: 6px 12px; border-radius: var(--r-ctl); border: 1px solid var(--line-strong); background: var(--surface);
  font-size: 13.5px; color: var(--text-2);
}

/* Encabezados de sección */
.sec-head { max-width: 640px; }
.sec-head h2 { font-size: clamp(30px, 3.1vw, 44px); line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; color: var(--text-strong); text-wrap: balance; }
.sec-head p { margin-top: 16px; font-size: 17px; line-height: 1.6; color: var(--text-2); text-wrap: pretty; }

/* Cómo funciona */
.how { padding: 120px 0 112px; }
.how-steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 64px; counter-reset: s; }
.how-steps::before, .how-steps::after { content: ""; position: absolute; top: 21px; left: 22px; right: 22px; height: 1px; background: var(--line-strong); }
.how-steps::after { background: var(--brand-grad); height: 2px; top: 20.5px; transform-origin: left; transform: scaleX(var(--p, 1)); }
.how-steps li { position: relative; padding-right: 40px; }
.how-n {
  position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line-strong); color: var(--accent); font-weight: 700; font-size: 16px;
  font-variant-numeric: tabular-nums; transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.how-steps li.is-on .how-n { background: var(--accent); border-color: var(--accent); color: #fff; }
.how-steps h3 { margin-top: 26px; font-size: 20px; line-height: 1.3; font-weight: 700; color: var(--text-strong); }
.how-steps p { margin-top: 10px; font-size: 15.5px; color: var(--text-2); max-width: 36ch; }
.how-art { margin-top: 26px; display: flex; flex-direction: column; gap: 8px; max-width: 300px; }
.how-art .file {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-tile);
  background: var(--surface); border: 1px solid var(--line); font-size: 13.5px; color: var(--text);
}
.how-art .file i, .vf-file i {
  font-style: normal; font-size: 10.5px; font-weight: 700; padding: 3px 6px; border-radius: 5px;
  background: var(--accent-soft); color: var(--accent); min-width: 38px; text-align: center;
}
.how-art .f2 { margin-left: 18px; } .how-art .f3 { margin-left: 36px; }
.how-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.how-fields span { padding: 10px 12px; border-radius: var(--r-tile); background: var(--surface); border: 1px solid var(--line); font-size: 13px; color: var(--text); font-variant-numeric: tabular-nums; }
.how-fields b { display: block; font-size: 11.5px; font-weight: 400; color: var(--muted); }
.how-cite { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 12px 14px; border-radius: var(--r-panel); border: 1px solid var(--cite); background: linear-gradient(var(--cite-soft), var(--cite-soft)), var(--surface); box-shadow: var(--shadow-cite); }
.how-cite-l { font-size: 13.5px; color: var(--text-strong); font-weight: 700; font-variant-numeric: tabular-nums; }

/* Capacidades */
.caps { padding: 112px 0 120px; background: var(--surface); border-top: 1px solid var(--line); }
.caps-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; margin-top: 64px; align-items: start; }
.caps-list { display: flex; flex-direction: column; }
.cap { padding: 34px 0; border-top: 1px solid var(--line); cursor: default; }
.cap:last-child { border-bottom: 1px solid var(--line); }
.cap h3 { display: flex; align-items: center; gap: 12px; font-size: 21px; line-height: 1.3; font-weight: 700; color: var(--text-2); transition: color .3s var(--ease); }
.cap h3::after {
  content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.cap p { margin-top: 10px; font-size: 15.5px; color: var(--muted); max-width: 52ch; transition: color .3s var(--ease); }
.cap.is-on h3 { color: var(--text-strong); }
.cap.is-on h3::after { transform: scaleX(1); }
.cap.is-on p { color: var(--text-2); }

.caps-stage {
  position: sticky; top: calc(var(--header-h) + 40px); height: 500px; border-radius: var(--r-xl);
  background:
    radial-gradient(500px 300px at 90% 0%, rgba(203, 108, 230, 0.12), transparent 70%),
    radial-gradient(600px 360px at 0% 100%, rgba(0, 74, 173, 0.12), transparent 70%),
    var(--sidebar);
  border: 1px solid var(--line); overflow: hidden; display: grid; place-items: center; padding: 40px;
}
.caps-stage::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(16, 28, 72, 0.14) 1px, transparent 1px); background-size: 18px 18px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%);
}
.caps-stage .vig { position: absolute; width: min(460px, calc(100% - 64px)); opacity: 0; transform: translateY(14px) scale(.985); filter: blur(4px); pointer-events: none; transition: opacity .45s var(--ease), transform .6s var(--ease), filter .45s var(--ease); }
.caps-stage .vig.is-on { opacity: 1; transform: none; filter: none; }
.cap .vig { display: none; }

.vig { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); box-shadow: var(--shadow-lg); padding: 20px; font-size: 14px; color: var(--text); }
.v-q { margin-left: auto; width: fit-content; max-width: 85%; padding: 9px 13px; border-radius: 14px 14px 4px 14px; background: var(--raised-2); border: 1px solid var(--line-strong); color: var(--text-strong); }
.v-a { margin-top: 12px; padding: 12px 14px; border-radius: 4px 14px 14px 14px; border: 1px solid var(--line); line-height: 1.65; }
.v-a b { color: var(--text-strong); }
.v-follow { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.v-follow span, .vn-filter span { font-size: 12px; padding: 4px 9px; border-radius: var(--r-ctl); background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.vn-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 2px; border-bottom: 1px solid var(--line); }
.vn-t { display: flex; flex-direction: column; font-size: 13px; color: var(--text-2); min-width: 0; }
.vn-t b { font-size: 14px; color: var(--text-strong); font-variant-numeric: tabular-nums; }
.vn-filter { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.vn-filter span { background: var(--inset); color: var(--text-2); font-weight: 400; }
.badge { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 3px 10px 3px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--danger-soft); color: var(--danger); }
.vc-head, .vc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vc-head span { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-bottom: 8px; border-bottom: 1px solid var(--line-strong); }
.vc-row { position: relative; padding: 12px 0 30px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--text-2); }
.vc-row em { position: absolute; left: 0; bottom: 8px; font-style: normal; font-size: 11.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px; }
.vc-row em.match { background: var(--ok-soft); color: var(--ok); }
.vc-row em.diverge { background: var(--warn-soft); color: var(--warn); }
.vr-doc { font-size: 13px; font-weight: 700; color: var(--text-strong); padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.vig-review ul { display: grid; gap: 2px; margin-top: 10px; }
.vig-review li { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; padding: 8px 10px; border-radius: 10px; font-size: 14px; color: var(--text); }
.vig-review li .ic { width: 18px; height: 18px; margin-top: 1px; }
.vig-review li.ok .ic { color: var(--ok); }
.vig-review li.warn { background: var(--warn-soft); }
.vig-review li.warn .ic { color: var(--warn); }
.vig-review li small { grid-column: 2; font-size: 12.5px; color: var(--warn); }
.vf-drop { display: flex; flex-direction: column; gap: 8px; padding: 14px; border: 1.5px dashed var(--line-strong); border-radius: var(--r-tile); background: var(--inset); }
.vf-file { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; }
.vf-temp { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); }
.vf-temp .ic { width: 14px; height: 14px; }
.vf-out { display: grid; gap: 8px; margin-top: 14px; }
.vf-out li { font-size: 13.5px; color: var(--text); line-height: 1.5; }
.vf-out b { display: block; font-size: 11.5px; font-weight: 400; color: var(--muted); }
.vf-out b.ok { color: var(--ok); font-weight: 700; }
.vf-out b.warn { color: var(--warn); font-weight: 700; }
.vf-row { display: flex; flex-wrap: wrap; gap: 8px; }
.vf-row .vf-file { flex: 1 1 160px; }
.vf-q { margin-top: 14px; font-size: 13.5px; }
.vig-draft { display: grid; gap: 14px; background: var(--raised); }
.vd-page { padding: 22px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.vd-t { font-weight: 700; color: var(--text-strong); font-size: 14px; margin-bottom: 14px; }
.vd-l { position: relative; height: 7px; border-radius: 4px; background: var(--raised-2); margin-top: 9px; }
.vd-l sup { position: absolute; right: -14px; top: -6px; font-size: 10px; font-weight: 700; color: var(--cite-text); }
.w100 { width: 100%; } .w95 { width: 95%; } .w90 { width: 90%; } .w70 { width: 70%; } .w60 { width: 60%; }
.vd-notes { display: grid; gap: 3px; margin-top: 18px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--text-2); }
.vd-notes sup { color: var(--cite-text); font-weight: 700; }
.vd-btn { justify-self: start; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: var(--r-control); background: var(--accent); color: #fff; font-weight: 700; font-size: 14px; }
.vd-btn .ic { width: 16px; height: 16px; }

/* Confianza */
.trust { padding: 120px 0; }
.trust-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; align-items: center; }
.trust h2 { font-size: clamp(36px, 4vw, 56px); line-height: 1.05; font-weight: 700; letter-spacing: -0.025em; color: var(--text-strong); }
.trust-copy > p { margin-top: 20px; font-size: 17px; line-height: 1.65; color: var(--text-2); max-width: 54ch; }
.trust-facts { display: grid; gap: 0; margin-top: 34px; }
.trust-facts div { padding: 16px 0; border-top: 1px solid var(--line); }
.trust-facts dt { font-weight: 700; color: var(--text-strong); font-size: 15.5px; }
.trust-facts dd { margin-top: 4px; color: var(--text-2); font-size: 15px; }
.trust-demo { display: grid; gap: 18px; }
.answer-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-bubble); padding: 22px 24px; font-size: 15.5px; line-height: 1.65; color: var(--text); box-shadow: var(--shadow); }
.answer-card.is-silent { margin-left: 56px; background: var(--surface); }
.ac-label { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: var(--text-2); margin-bottom: 12px; }
.ac-dot { width: 8px; height: 8px; border-radius: 50%; }
.ac-dot.ok { background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
.ac-dot.warn { background: #d08a1c; box-shadow: 0 0 0 4px var(--warn-soft); }
.ac-part { display: grid; grid-template-columns: 112px 1fr; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.ac-k { font-size: 12.5px; color: var(--muted); padding-top: 3px; }

/* Seguridad */
/* A medida: fuentes del cliente (incluida su base de datos) que confluyen en Vitia */
.custom { padding: 120px 0; background: var(--surface); border-top: 1px solid var(--line); }
.custom-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; align-items: center; }
.custom h2 { font-size: clamp(32px, 3.4vw, 48px); line-height: 1.08; font-weight: 700; letter-spacing: -0.02em; color: var(--text-strong); text-wrap: balance; }
.custom-copy > p { margin-top: 20px; font-size: 17px; line-height: 1.65; color: var(--text-2); max-width: 56ch; }
.custom-facts { display: grid; margin-top: 32px; }
.custom-facts div { padding: 18px 0; border-top: 1px solid var(--line); }
.custom-facts dt { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text-strong); font-size: 15.5px; }
.custom-facts dt .ic { width: 30px; height: 30px; padding: 6px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); }
.custom-facts dd { margin-top: 6px; padding-left: 40px; color: var(--text-2); font-size: 15px; }

.cx { display: flex; flex-direction: column; align-items: center; padding: 32px; border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--ground); }
.cx-sources { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: 100%; }
.cx-src {
  display: grid; justify-items: start; align-content: start; gap: 2px; padding: 14px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.cx-src.is-db { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow-sm); }
.cx-ic { display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 8px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); }
.cx-ic .ic { width: 17px; height: 17px; }
.cx-src b { font-size: 14px; color: var(--text-strong); line-height: 1.3; }
.cx-src small { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
/* Conectores: un trazo bajo cada fuente, una barra que los une y un trazo hacia Vitia */
.cx-join { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: 100%; height: 44px; }
.cx-join i { position: relative; }
.cx-join i::before { content: ""; position: absolute; left: 50%; top: 0; width: 1px; height: 22px; background: var(--accent-line); }
.cx-join::before { content: ""; position: absolute; top: 22px; left: calc((100% - 24px) / 6); right: calc((100% - 24px) / 6); height: 1px; background: var(--accent-line); }
.cx-join::after { content: ""; position: absolute; top: 22px; left: 50%; width: 1px; height: 22px; background: var(--accent-line); }
.cx-core {
  display: inline-flex; align-items: center; gap: 12px; padding: 12px 18px 12px 14px; border-radius: 10px;
  background: var(--n-surface); color: var(--n-text); box-shadow: var(--shadow-night);
}
.cx-mark { width: 22px; height: 25px; flex: none; overflow: visible; }
.cx-mark path { stroke-width: 18; stroke-linejoin: round; }
.cx-core span { display: grid; font-size: 12.5px; color: var(--n-muted); line-height: 1.35; }
.cx-core b { font-size: 15px; color: var(--n-text-strong); }
.cx-down { width: 1px; height: 28px; background: var(--accent-line); }
.cx-answer {
  width: 100%; padding: 18px 20px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow); font-size: 14.5px; line-height: 1.7; color: var(--text);
}
.cx-answer b { color: var(--text-strong); }
.cx-q { margin-bottom: 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.cx .stage-note { margin-top: 14px; }

.security { position: relative; isolation: isolate; overflow: hidden; padding: 120px 0; background: var(--n-ground); color: var(--n-text); }
.security::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(800px 500px at 0% 0%, rgba(0, 74, 173, 0.45), transparent 70%), radial-gradient(700px 500px at 100% 100%, rgba(203, 108, 230, 0.16), transparent 70%); }
.sec-bg span { opacity: .07; }
.sec-bg span:first-child { left: 6%; transform: skewX(18deg); }
.sec-bg span:last-child { left: 20%; width: 140px; transform: skewX(-18deg); opacity: .05; }
.security-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 72px; align-items: start; }
.security h2 { font-size: clamp(32px, 3.4vw, 48px); line-height: 1.08; font-weight: 700; letter-spacing: -0.02em; color: #fff; }
.security-copy p { margin-top: 18px; font-size: 17px; color: var(--n-text-2); max-width: 40ch; }
.security-copy .btn { margin-top: 30px; }
.security-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
.security-list div { padding: 22px 0; border-top: 1px solid var(--n-line); }
.security-list dt { display: flex; align-items: center; gap: 12px; font-weight: 700; color: #fff; font-size: 16px; }
.security-list dt .ic { width: 20px; height: 20px; color: var(--n-accent); }
.security-list dd { margin-top: 8px; padding-left: 32px; color: var(--n-text-2); font-size: 15px; line-height: 1.55; }

/* Habilitación */
.adopt { padding: 112px 0; }
.adopt-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 72px; align-items: start; }
.adopt-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.adopt-list li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 24px 0; border-top: 1px solid var(--line); }
.adopt-list li > .ic { width: 44px; height: 44px; padding: 11px; border-radius: var(--r-tile); background: var(--accent-soft); color: var(--accent); }
.adopt-list h3 { font-size: 17px; font-weight: 700; color: var(--text-strong); }
.adopt-list p { margin-top: 4px; font-size: 15px; color: var(--text-2); }

/* FAQ */
.faq { padding: 112px 0; background: var(--surface); border-top: 1px solid var(--line); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 72px; align-items: start; }
.faq .sec-head { position: sticky; top: calc(var(--header-h) + 40px); }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0;
  font-size: 17.5px; font-weight: 700; color: var(--text-strong); cursor: pointer; list-style: none;
  transition: color .15s var(--ease);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--accent); }
.faq-list .chev { width: 20px; height: 20px; color: var(--muted); transition: transform .3s var(--ease), color .2s var(--ease); }
.faq-list details[open] .chev { transform: rotate(180deg); color: var(--accent); }
.faq-a { padding: 0 48px 24px 0; }
.faq-a p { font-size: 16px; line-height: 1.65; color: var(--text-2); max-width: 64ch; }
.motion .faq-list details[open] .faq-a { animation: rise .35s var(--ease) both; }

/* Demo */
.demo { padding: 40px 0 120px; background: var(--surface); }
.demo-panel {
  position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px;
  padding: 72px; border-radius: 28px; background: var(--accent); color: #fff;
}
.demo-panel::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(700px 500px at 100% 0%, rgba(203, 108, 230, 0.4), transparent 65%), radial-gradient(600px 500px at 0% 100%, rgba(3, 24, 70, 0.7), transparent 70%); }
.demo-bg span { opacity: .12; background: linear-gradient(90deg, #fff, #cb6ce6); }
.demo-bg span:first-child { left: 30%; transform: skewX(-18deg); width: 140px; }
.demo-bg span:last-child { left: 42%; transform: skewX(18deg); width: 110px; opacity: .08; }
.demo-copy h2 { font-size: clamp(34px, 3.6vw, 52px); line-height: 1.05; font-weight: 700; letter-spacing: -0.025em; }
.demo-copy > p { margin-top: 18px; font-size: 17.5px; line-height: 1.6; color: var(--on-cobalt-2); max-width: 42ch; }
.demo-points { display: grid; gap: 12px; margin-top: 30px; }
.demo-points li { display: flex; align-items: center; gap: 10px; font-size: 15.5px; }
.demo-points .ic { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); color: #fff; }
.demo-mail { margin-top: 30px; font-size: 15px; color: var(--on-cobalt-2); }
.demo-mail a { color: #fff; font-weight: 700; }

.form { position: relative; background: var(--surface); color: var(--text); border-radius: 20px; padding: 32px; box-shadow: 0 30px 60px rgba(2, 16, 50, 0.35); }
.form-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field label, .field .label { font-size: 13px; color: var(--text-2); font-weight: 700; }
.opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; height: 40px; padding: 8px 12px; border-radius: var(--r-ctl);
  border: 1px solid rgba(16, 28, 72, 0.22); background: var(--surface); color: var(--text); font-size: 14.5px;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease), background-color .15s var(--ease);
}
.field textarea { height: auto; min-height: 92px; resize: vertical; line-height: 1.5; }
.field input:hover, .field textarea:hover { border-color: rgba(16, 28, 72, 0.32); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 3px var(--accent-soft); }
.field input[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }
.field input::placeholder, .field textarea::placeholder { color: #646c8a; }
.err { min-height: 0; font-size: 12.5px; color: var(--danger); }
.err:empty { display: none; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span {
  display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: var(--r-ctl);
  border: 1px solid rgba(16, 28, 72, 0.22); background: var(--surface); font-size: 13.5px; color: var(--text-2);
  transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease);
}
.seg label:hover span { border-color: var(--accent-line); color: var(--text-strong); }
.seg input:checked + span { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 700; }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 18px; margin-top: 6px; }
.form-note { font-size: 13px; color: var(--muted); }
.form-error { grid-column: 1 / -1; font-size: 14px; color: var(--danger); }
.form-error:empty { display: none; }
.spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .7s linear infinite; }
.is-sending .spinner { display: inline-block; }
.is-sending .btn-label { opacity: .85; }
.btn[disabled] { cursor: progress; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-done { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-height: 420px; padding: 8px; outline: none; }
.done-ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); }
.done-ic .ic { width: 26px; height: 26px; stroke-width: 2.2; }
.motion .form-done:not([hidden]) .done-ic { animation: pop .55s var(--ease) both; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.form-done h3 { margin-top: 20px; font-size: 24px; font-weight: 700; color: var(--text-strong); }
.form-done p { margin-top: 8px; color: var(--text-2); font-size: 16px; max-width: 40ch; }

/* Pie */
.foot { background: var(--n-deep); color: var(--n-text-2); padding: 72px 0 32px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--n-line); }
.foot-brand img { width: 112px; }
.foot-brand p { margin-top: 18px; font-size: 14.5px; max-width: 38ch; color: var(--n-muted); }
.foot-by { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; color: var(--n-muted); font-size: 13px; text-decoration: none; }
.foot-by img { width: auto; height: 20px; filter: brightness(0) invert(1); opacity: .85; transition: opacity .15s var(--ease); }
.foot-by:hover { color: #fff; }
.foot-by:hover img { opacity: 1; }
.foot-col { display: flex; flex-direction: column; gap: 10px; }
.foot-col h3 { font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.foot-col a { color: var(--n-text-2); text-decoration: none; font-size: 14.5px; width: fit-content; }
.foot-col a:hover { color: #fff; text-decoration: underline; }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; padding-top: 24px; font-size: 13px; color: var(--n-muted); }

/* Aparición de secciones: una sola gramática, contenido visible por defecto */
.motion .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .8s var(--ease); }
.motion .reveal.is-in { opacity: 1; transform: none; }
.motion .hero-copy > * { animation: rise .8s var(--ease) both; }
.motion .hero-copy > :nth-child(2) { animation-delay: .08s; }
.motion .hero-copy > :nth-child(3) { animation-delay: .16s; }
.motion .hero-copy > :nth-child(4) { animation-delay: .24s; }
.motion .hero-copy > :nth-child(5) { animation-delay: .32s; }
.motion .stage { animation: stageIn 1s var(--ease) .12s both; }
@keyframes stageIn { from { opacity: 0; transform: translateY(24px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

/* Responsive */
@media (max-width: 1180px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy { max-width: 720px; }
  .stage { max-width: 820px; }
  .top-nav a:not(.btn) { padding: 8px 9px; font-size: 14px; }
}

@media (max-width: 960px) {
  :root { --gutter: 24px; --header-h: 64px; }
  .top-row { gap: 16px; }
  .menu-btn { display: inline-flex; }
  .top-actions { margin-left: auto; gap: 12px; }
  .top-actions .link-quiet { display: none; }
  .top-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 12px var(--gutter) 20px;
    background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    opacity: 0; transform: translateY(-8px); visibility: hidden; pointer-events: none;
    transition: opacity .2s var(--ease), transform .25s var(--ease), visibility 0s .25s;
  }
  .top.is-open { background: var(--surface); border-bottom-color: var(--line); }
  .top.is-open .top-nav { opacity: 1; transform: none; visibility: visible; pointer-events: auto; transition: opacity .2s var(--ease), transform .25s var(--ease); }
  .top-nav a:not(.btn) { padding: 13px 4px; font-size: 16px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .top-nav a:not(.btn):hover { background: transparent; }
  .top-nav-cta { display: inline-flex; margin-top: 14px; height: 48px; }

  .hero { padding: calc(var(--header-h) + 44px) 0 56px; }
  .how, .caps, .trust, .security, .adopt, .faq { padding: 88px 0; }
  .how-steps { grid-template-columns: 1fr; gap: 44px; }
  .how-steps::before, .how-steps::after { top: 22px; bottom: 22px; left: 21.5px; right: auto; width: 1px; height: auto; }
  .how-steps::after { width: 2px; left: 21px; transform-origin: top; transform: scaleY(var(--p, 1)); }
  .how-steps li { padding: 0 0 0 68px; }
  .how-n { position: absolute; left: 0; top: 0; }
  .how-steps h3 { margin-top: 8px; }

  .caps-grid { grid-template-columns: 1fr; gap: 0; margin-top: 40px; }
  .caps-stage { display: none; }
  .cap .vig { display: block; margin-top: 22px; box-shadow: var(--shadow); }
  .cap h3, .cap p { color: inherit; }
  .cap h3 { color: var(--text-strong); }
  .cap p { color: var(--text-2); }
  .cap h3::after { display: none; }

  .trust-grid, .custom-grid, .security-grid, .adopt-grid, .faq-grid { grid-template-columns: 1fr; gap: 44px; }
  .faq .sec-head { position: static; }
  .demo-panel { grid-template-columns: 1fr; gap: 40px; padding: 48px 32px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .aud-row { grid-template-columns: 1fr; gap: 16px; }
  .aud-list li { padding: 6px 12px; font-size: 13.5px; }
}

@media (max-width: 720px) {
  :root { --gutter: 16px; font-size: 15.5px; }
  .top-actions .btn-sm { display: none; }
  .hero h1 { font-size: clamp(34px, 9.6vw, 44px); }
  .hero-cta .btn { flex: 1 1 auto; }
  .sector-tabs { display: grid; width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row; gap: 2px; }
  .sector-tabs button { padding: 0 6px; font-size: 14px; }
  .stage-body { height: auto; display: flex; flex-direction: column; }
  .sheet { position: relative; width: 100%; height: 280px; }
  .console { position: relative; width: calc(100% - 16px); margin: -22px 0 0 auto; top: 0; height: auto; min-height: 430px; }
  .thread { min-height: 330px; }
  .security-list, .adopt-list { grid-template-columns: 1fr; }
  .custom { padding: 88px 0; }
  .cx { padding: 20px 16px; }
  .cx-sources { grid-template-columns: 1fr; gap: 8px; }
  .cx-src { grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; }
  .cx-ic { grid-row: span 2; margin-bottom: 0; }
  .cx-join { display: block; width: 1px; height: 28px; background: var(--accent-line); }
  .cx-join i, .cx-join::before, .cx-join::after { display: none; }
  .custom-facts dd { padding-left: 0; }
  .answer-card.is-silent { margin-left: 20px; }
  .ac-part { grid-template-columns: 1fr; gap: 4px; }
  .form { padding: 22px; }
  .form-fields { grid-template-columns: 1fr; }
  .form-foot .btn { width: 100%; }
  .demo { padding: 24px 0 80px; }
  .demo-panel { padding: 40px 20px 20px; border-radius: 22px; margin-inline: -4px; }
  .faq-a { padding-right: 0; }
  .foot-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .sheet-doc .d-passage, .caps-stage .vig, .how-n, .cap h3, .cap p, .faq-list .chev { transition-duration: .2s !important; }
}

/* 404 */
.nf { min-height: 100vh; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 18px; max-width: 640px; margin: 0 auto; padding: 40px var(--gutter); }
.nf img { width: 120px; margin-bottom: 24px; }
.nf h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.1; letter-spacing: -0.02em; color: var(--text-strong); }
.nf p { color: var(--text-2); font-size: 17px; margin-bottom: 10px; }
