/* Serge · prototipo de web oscura (estética de referencia: opereit.ai).
   Marca: granate «Rampa» (docs/comercializacion/marca/MARCA.md). Sobre grafito, los tonos
   de la marca suben un peldaño. Tipografía: ver los @font-face de abajo. */

/* Tipografía de la web: Geist y Geist Mono (SIL Open Font License, assets/Geist-OFL.txt).
   La marca usa Archivo + IBM Plex Mono (MARCA.md); en la web se cambia a petición de Borja
   para distanciarse de la referencia. El logotipo es un SVG vectorizado y no depende de esto. */
@font-face { font-family: Geist; src: url('/assets/Geist-latin.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Geist; src: url('/assets/Geist-latin-ext.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Geist Mono'; src: url('/assets/GeistMono-latin.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Geist Mono'; src: url('/assets/GeistMono-latin-ext.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* Propiedades registradas: permiten que el color del halo se anime al cambiar de módulo. */
@property --glow { syntax: '<color>'; inherits: true; initial-value: #E0566C; }
@property --gx { syntax: '<percentage>'; inherits: true; initial-value: 30%; }
@property --dglow { syntax: '<color>'; inherits: true; initial-value: #C8304A; }

:root {
  color-scheme: dark;
  --bg: #0E0E10;
  --bg-2: #121215;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);
  --ink: #F4F2F0;
  --ink-2: #D6D4D1;
  --muted: #A2A4AC;
  --dim: #74767F;

  --brand: #C8304A;      /* blanco encima: 5,3:1 */
  --brand-hi: #D8455C;
  --brand-lo: #A02C46;
  --brand-deep: #4B1624;

  --ok: #35C2A1;
  --warn: #E8A33A;
  --signal: #E0493B;
  --blue: #7FB5FF;
  --amber: #F0883E;

  --font: Geist, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.75, 0.15, 1);
  --wrap: 1280px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 360;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, canvas { display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 300; letter-spacing: -0.035em; line-height: 1.04; }
p { margin: 0; }
::selection { background: rgba(216, 69, 92, 0.45); color: #fff; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; color: #000; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 12px; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 6px; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}
h2 { font-size: clamp(2.2rem, 4.6vw, 3.7rem); }
.sub { margin-top: 22px; max-width: 540px; color: var(--muted); font-size: clamp(1rem, 1.2vw, 1.12rem); line-height: 1.55; letter-spacing: -0.01em; }
.sub.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ───────── Botones ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 22px; border-radius: 999px;
  font-family: var(--mono); font-size: 14px; font-weight: 500; letter-spacing: -0.01em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  border: 1px solid transparent;
  transition: background-color .25s, color .25s, border-color .25s, transform .3s var(--ease), box-shadow .3s;
}
.btn-sm { height: 34px; padding: 0 16px; font-size: 13px; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: #B02A43; transform: translateY(-1px); box-shadow: 0 10px 34px -10px rgba(216, 69, 92, 0.75); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.85); color: #fff; background: transparent; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: var(--accent-ink); align-self: flex-start; }
.btn-accent:hover { transform: translateY(-1px); box-shadow: 0 12px 30px -12px var(--accent); filter: brightness(1.05); }

/* ───────── Navegación ───────── */
.nav { position: fixed; inset: 0 0 auto; z-index: 60; border-bottom: 1px solid transparent; transition: background-color .4s, border-color .4s; }
.nav::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s; background: rgba(6, 6, 7, 0.78); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); }
.nav.is-scrolled { border-color: var(--line); }
.nav.is-scrolled::before { opacity: 1; }
.nav-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); height: 64px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.nav-logo img { height: 46px; width: auto; margin-left: -8px; }
.nav-links { display: flex; gap: 36px; font-family: var(--mono); font-size: 13.5px; }
.nav-links a, .nav-login { text-decoration: none; color: #E9E7E4; position: relative; transition: color .2s; }
.nav-links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta { justify-self: end; display: flex; align-items: center; gap: 22px; }
.nav-login { font-family: var(--mono); font-size: 13.5px; }
.nav-burger { display: none; width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 999px; background: transparent; cursor: pointer; position: relative; }
.nav-burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: #fff; transition: transform .3s var(--ease); }
.nav-burger span:first-child { top: 16px; }
.nav-burger span:last-child { top: 22px; }
.nav-burger[aria-expanded='true'] span:first-child { transform: translateY(3px) rotate(45deg); }
.nav-burger[aria-expanded='true'] span:last-child { transform: translateY(-3px) rotate(-45deg); }
.sheet { position: absolute; top: 64px; left: 0; right: 0; background: rgba(8, 8, 9, 0.97); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px; display: grid; }
.sheet[hidden] { display: none; }
.sheet a { padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-family: var(--mono); font-size: 15px; }

/* Entrada del menú tras el titular, como en la referencia */
.nav { animation: navIn .9s var(--ease) 1.1s both; }
@keyframes navIn { from { opacity: 0; transform: translateY(-10px); } }

/* ───────── Hero ───────── */
.hero { position: relative; padding-top: clamp(130px, 19vh, 176px); }
.hero-bg { position: absolute; inset: 0 0 auto 0; height: min(1040px, 128vh); overflow: hidden; z-index: 0; }
.hero-bg canvas { position: absolute; inset: -6% 0 0 0; width: 100%; height: 106%; filter: blur(0.6px); transform: translate3d(0, var(--py, 0px), 0); will-change: transform; }
.hero-bg::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 46% 38% at 50% 30%, rgba(14, 14, 16, 0.78), rgba(14, 14, 16, 0.25) 62%, transparent 82%),
    linear-gradient(to bottom, rgba(14, 14, 16, 0) 44%, rgba(14, 14, 16, 0.75) 80%, var(--bg) 97%);
}
.hero-glow { position: absolute; inset: 0; mix-blend-mode: screen; pointer-events: none; opacity: var(--go, 0); transition: opacity .6s; background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 30%), rgba(216, 69, 92, 0.22), transparent 62%); }
.hero-copy { position: relative; z-index: 2; max-width: 1000px; margin: 0 auto; padding: 0 var(--gutter); text-align: center; }
.hero h1 { font-size: clamp(2.45rem, 5.6vw, 4.8rem); line-height: 1.02; letter-spacing: -0.04em; text-wrap: balance; }
.hero .lead { max-width: 640px; margin: 24px auto 0; color: #D9D7D4; font-size: clamp(1rem, 1.3vw, 1.16rem); line-height: 1.5; letter-spacing: -0.012em; text-wrap: pretty; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 32px; }
.hero-ctas.left { justify-content: flex-start; }

/* Titular palabra a palabra */
.split .w { display: inline-block; opacity: 0; filter: blur(10px); transform: translateY(0.18em); transition: opacity .9s var(--ease), filter .9s var(--ease), transform .9s var(--ease); transition-delay: var(--wd, 0s); }
.split.is-in .w { opacity: 1; filter: blur(0); transform: none; }
.fade-in { animation: fadeUp 1s var(--ease) var(--d, 0s) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); filter: blur(6px); } }

/* ───────── Marco del tablero (el interior está en mini.css) ───────── */
.hero-shot { position: relative; z-index: 2; max-width: 1180px; margin: clamp(70px, 11vh, 120px) auto 0; padding: 0 var(--gutter); perspective: 1800px; scroll-margin-top: 90px; }
.app {
  transform-origin: 50% 0;
  transform: rotateX(var(--tilt, 0deg)) scale(var(--ts, 1));
  background: #0B0B0D; border: 1px solid #26262B;
  box-shadow: 0 50px 140px -40px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.02), 0 -30px 120px -60px rgba(216, 69, 92, 0.5);
  font-family: var(--mono); color: #CFCDCA; font-size: 12px; line-height: 1.4; text-align: left;
}
.app-bar { height: 52px; border-bottom: 1px solid #222226; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 20px; }
.app-dots { display: flex; gap: 6px; }
.app-dots i { width: 9px; height: 9px; background: #3A3A3F; }
.app-url { color: #A7A5A2; font-size: 11.5px; }
.app-live { border: 1px solid rgba(53, 194, 161, 0.6); color: var(--ok); font-size: 10.5px; padding: 3px 9px; }
.app-body { display: grid; grid-template-columns: 210px minmax(0, 1fr); }
.app-side { border-right: 1px solid #222226; }
.panel { border: 1px solid #232327; background: #0E0E10; padding: 18px 20px; }
.k { font-size: 10px; color: #8B8D95; letter-spacing: 0.09em; }
.s.ok { color: var(--ok); }
.s.warn { color: var(--warn); }
.app-row { grid-column: 1 / -1; display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; }
.chart .k { text-align: center; margin-bottom: 8px; }
.chart-svg { width: 100%; height: 190px; overflow: visible; }
.months { display: flex; justify-content: space-between; padding: 8px 6px 0; font-size: 9.5px; color: #6E7079; }
.row-head { display: flex; justify-content: space-between; }
.dot-live { color: var(--ok); display: inline-flex; gap: 6px; align-items: center; letter-spacing: 0.02em; }
.dot-live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.live-rows { list-style: none; margin: 10px 0 0; padding: 0; }
.meters { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; padding: 18px 20px 22px; }
.m-k { font-size: 10.5px; color: #8B8D95; text-align: center; margin-bottom: 10px; }
.m-v { font-family: var(--font); font-weight: 300; font-size: 24px; letter-spacing: -0.04em; color: #fff; margin-bottom: 8px; }
.bar { height: 6px; background: #1F1F23; }
.bar i { display: block; height: 100%; width: var(--w); background: var(--c); transform-origin: left; }

/* Píldora sobre el titular */
.pill { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px; padding: 7px 16px 7px 12px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 999px; background: rgba(10, 10, 12, 0.45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-family: var(--mono); font-size: 12.5px; color: #F1EFEC; }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-hi); box-shadow: 0 0 12px var(--brand-hi); }

/* ───────── Cifras ───────── */
.stats { position: relative; z-index: 3; background: var(--bg); padding: 88px 0 24px; margin-top: -2px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.num { font-weight: 300; font-size: clamp(2.6rem, 4.8vw, 3.8rem); letter-spacing: -0.045em; line-height: 1; color: #fff; }
.lab { margin-top: 12px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.marquee-row { display: flex; align-items: center; gap: 28px; margin-top: 76px; }
.marquee-label { font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; }
.marquee-rule { flex: 1; height: 1px; background: var(--line-2); }
.marquee { margin-top: 28px; overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent); }
.marquee-track { display: flex; gap: 16px; width: max-content; animation: marquee 46s linear infinite; padding: 2px 0; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { display: grid; place-items: center; height: 72px; min-width: 188px; padding: 0 30px; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 8px; font-weight: 640; font-size: 17px; letter-spacing: 0.01em; text-transform: uppercase; color: #fff; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(calc(-50% - 8px)); } }

/* ───────── Módulos ───────── */
.mods { position: relative; padding: clamp(110px, 15vh, 160px) 0 clamp(90px, 12vh, 130px); overflow: hidden; }
.mods-glow { position: absolute; left: 0; right: 0; top: 34%; height: 760px; pointer-events: none; transition: --glow .9s var(--ease), --gx .9s var(--ease); background: radial-gradient(42% 48% at var(--gx) 52%, color-mix(in oklab, var(--glow) 42%, transparent), transparent 72%); filter: blur(24px); }
.cards { --tab: 116px; --gap: 16px; position: relative; display: flex; gap: var(--gap); height: 530px; margin-top: 60px; }
.card { position: relative; flex: 0 0 var(--tab); border-radius: 24px; background: #fff; color: #141416; overflow: hidden; transition: flex-grow .85s var(--ease), flex-basis .85s var(--ease), box-shadow .7s var(--ease), transform .4s var(--ease); }
.card:not(.is-open):hover { transform: translateY(-4px); }
.card.is-open { flex: 1 1 auto; box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 30%, white), 0 30px 120px -16px color-mix(in srgb, var(--accent) 75%, transparent), 0 0 70px -10px color-mix(in srgb, var(--accent) 55%, transparent); }
.card-tab { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; border: 0; background: transparent; cursor: pointer; color: #141416; font: inherit; transition: opacity .35s; }
.card-tab span { writing-mode: vertical-rl; transform: rotate(180deg); font-weight: 620; font-size: 30px; letter-spacing: -0.03em; white-space: nowrap; }
.card.is-open .card-tab { opacity: 0; pointer-events: none; }
.card-body { position: absolute; top: 0; bottom: 0; left: 0; width: var(--open-w, 820px); display: grid; grid-template-columns: 1fr minmax(230px, 36%); gap: 40px; padding: 38px 38px 38px 42px; opacity: 0; pointer-events: none; transition: opacity .35s; }
.card.is-open .card-body { opacity: 1; pointer-events: auto; transition: opacity .55s .3s; }
.card-text { display: flex; flex-direction: column; justify-content: center; gap: 11px; max-width: 460px; }
.card-title { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.card h3 { font-weight: 400; font-size: 40px; letter-spacing: -0.035em; }
.tag { font-family: var(--mono); font-size: 11px; color: color-mix(in srgb, var(--accent) 80%, black); background: color-mix(in srgb, var(--accent) 14%, white); padding: 4px 11px; border-radius: 999px; }
.card p { color: #3B3C42; font-size: 15px; line-height: 1.55; margin-bottom: 6px; }
.chips-lbl { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; color: #75777F; margin-top: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chips span { font-family: var(--mono); font-size: 11.5px; padding: 6px 12px; border-radius: 999px; border: 1px solid #D5D6DA; color: #2B2C31; }
.chips.accent span { border-color: color-mix(in srgb, var(--accent) 60%, white); color: color-mix(in srgb, var(--accent) 72%, black); }
.card-text .btn-accent { margin-top: 16px; }
.card-art { position: relative; border-radius: 18px; overflow: hidden; background: #111; }
.card-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; transform: scale(1.06); transition: transform 1.6s var(--ease); }
.card.is-open .card-art canvas { transform: scale(1); }
.extras { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 44px; font-family: var(--mono); font-size: 12px; }
.extras span:not(.extras-lbl) { padding: 7px 13px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink-2); }
.extras-lbl { color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-right: 6px; }

/* ───────── Demo fijada ───────── */
.demo { position: relative; }
.demo-head { text-align: center; padding: 60px var(--gutter) 0; position: relative; z-index: 2; }
.demo-head .eyebrow { margin-bottom: 18px; }
.demo-track { position: relative; height: 470vh; margin-top: -10vh; }
.demo-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.demo-glow { position: absolute; inset: 0; pointer-events: none; transition: --dglow .8s var(--ease), opacity .8s; opacity: var(--dg-o, 0); background: radial-gradient(36% 52% at 50% 54%, color-mix(in oklab, var(--dglow) 62%, transparent) 40%, transparent 78%); filter: blur(40px); }
.demo-copy { position: absolute; z-index: 3; left: max(var(--gutter), calc(50% - 640px)); top: 50%; width: 280px; transform: translateY(-50%); min-height: 260px; }
.step { position: absolute; inset: 0 0 auto 0; opacity: 0; transform: translateY(14px); filter: blur(6px); transition: opacity .6s var(--ease), transform .6s var(--ease), filter .6s var(--ease); pointer-events: none; }
.step.is-on { opacity: 1; transform: none; filter: none; }
.step-n { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11.5px; color: var(--muted); margin-bottom: 18px; }
.step-n i { display: block; width: 46px; height: 1px; background: var(--line-2); position: relative; overflow: hidden; }
.step-n i::after { content: ''; position: absolute; inset: 0; background: var(--brand-hi); transform: scaleX(var(--sp, 0)); transform-origin: left; }
.step h3 { font-size: clamp(1.8rem, 2.5vw, 2.3rem); line-height: 1.06; }
.step p { margin-top: 16px; color: var(--muted); font-size: 15.5px; line-height: 1.55; }

.doc-wrap { position: absolute; z-index: 2; left: 50%; top: 50%; width: 720px; transform: translate(-50%, -50%) scale(var(--doc-s, 1)); transform-origin: 50% 50%; margin-top: 18px; }
.doc { position: relative; background: #fff; color: #141416; padding: 40px 42px 34px; box-shadow: 0 60px 150px -30px rgba(0, 0, 0, 0.9); font-size: 13px; }
.doc .mono, .doc-id, .dl, .dm, .doc-table th, .state, .doc-brand span, .doc-totals span, .doc-foot, .doc-qr span { font-family: var(--mono); }
.doc-top { display: grid; grid-template-columns: 1fr auto auto; align-items: start; gap: 22px; }
.doc-brand { display: flex; align-items: center; gap: 10px; }
.doc-brand img { width: 34px; height: 34px; margin: -6px; }
.doc-brand span { font-size: 11.5px; letter-spacing: 0.04em; margin-left: 4px; }
.doc-title { text-align: right; }
.doc-h { font-size: 30px; font-weight: 300; letter-spacing: -0.03em; line-height: 1; }
.doc-id { font-size: 10.5px; color: #8A8C93; margin-top: 8px; }
.doc-qr { width: 0; opacity: 0; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: 4px; transform: scale(.6) rotate(-6deg); transition: width .6s var(--ease), opacity .5s var(--ease), transform .7s var(--ease); }
.doc-qr svg { width: 66px; height: 66px; }
.doc-qr span { font-size: 8.5px; color: #555; white-space: nowrap; }
.doc-qr.is-on { width: 92px; opacity: 1; transform: none; }
.doc-blocks { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 30px; padding-bottom: 18px; border-bottom: 1px solid #ECECEE; }
.dl { font-size: 9px; letter-spacing: 0.12em; color: #9A9CA3; margin-bottom: 8px; }
.dv { font-size: 13px; line-height: 1.55; }
.doc-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid #ECECEE; }
.dm { font-size: 11.5px; }
#doc-truck { transition: color .4s; }
#doc-truck.is-on { color: #0F8A6D; }
.doc-table { width: 100%; border-collapse: collapse; margin-top: 14px; }
.doc-table th { font-size: 9px; font-weight: 400; letter-spacing: 0.12em; color: #9A9CA3; text-align: left; padding: 0 6px 10px; border-bottom: 1px solid #141416; }
.doc-table td { padding: 7px 6px; border-bottom: 1px solid #EFEFF1; white-space: nowrap; transition: color .4s, background-color .5s; }
.doc-table .r { text-align: right; }
.doc-table td.mono { font-size: 11.5px; }
.doc-row { transition: background-color .5s, box-shadow .5s; }
.doc-row .u { background-image: linear-gradient(currentColor, currentColor); background-size: 0% 1px; background-repeat: no-repeat; background-position: 0 100%; padding-bottom: 2px; transition: background-size .5s var(--ease); }
.doc-row.is-read td { color: var(--brand); }
.doc-row.is-read .u { background-size: 100% 1px; }
.doc-row.is-read.is-done td { color: #141416; }
.doc-row.is-warn td { color: var(--signal); }
.doc-row.is-assigned { background: rgba(53, 194, 161, 0.08); box-shadow: inset 4px 0 0 var(--ok); }
.state { display: inline-block; font-size: 10px; padding: 2px 8px; border-radius: 999px; background: #F1F1F3; color: #6A6C73; transition: background-color .4s, color .4s; }
.state.s-adj { background: rgba(53, 194, 161, 0.16); color: #0F8A6D; }
.state.s-deca { background: rgba(200, 48, 74, 0.12); color: var(--brand); }
.state.s-ent { background: #141416; color: #fff; }
.state.s-carga { background: rgba(232, 163, 58, 0.18); color: #9A5F08; }
.state.s-warn { background: rgba(224, 73, 59, 0.12); color: var(--signal); }
.doc-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-top: 20px; }
.doc-foot { font-size: 9.5px; color: #A2A4AA; max-width: 200px; }
.doc-totals { width: 260px; font-size: 12px; }
.doc-totals div { display: flex; justify-content: space-between; padding: 4px 0; }
.doc-totals span { font-size: 10px; color: #6A6C73; }
.doc-totals b { font-weight: 500; transition: color .4s; }
.doc-totals .tot { border-top: 1px solid #141416; margin-top: 6px; padding-top: 9px; font-size: 15px; }
.doc-totals .tot span { font-size: 12px; color: #141416; }
.doc-totals.is-on b { color: #0B5FD6; }
.doc-totals.is-on .tot b { color: #141416; }
.doc-stamp { position: absolute; left: 33%; bottom: 46px; font-family: var(--mono); font-weight: 500; font-size: 17px; letter-spacing: 0.08em; color: #0F8A6D; border: 2px solid #0F8A6D; padding: 6px 14px 5px; display: flex; flex-direction: column; align-items: center; line-height: 1.1; opacity: 0; transform: rotate(-9deg) scale(1.6); transition: opacity .25s, transform .45s cubic-bezier(.3, 1.6, .5, 1); pointer-events: none; }
.doc-stamp small { font-size: 9.5px; letter-spacing: 0.06em; margin-top: 3px; }
.doc-stamp.is-on { opacity: 0.9; transform: rotate(-9deg) scale(1); }

.doc-chips { position: absolute; left: calc(100% + 30px); top: 0; width: 320px; height: 100%; }
.dchip { position: absolute; left: 0; top: var(--y, 0); white-space: nowrap; font-family: var(--mono); font-size: 11px; font-weight: 500; padding: 7px 13px; border-radius: 999px; opacity: 0; transform: translateX(-10px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.dchip.is-on { opacity: 1; transform: none; }
.dchip.dark { background: #0B0B0D; color: #E6E4E1; border: 1px solid #34343A; }
.dchip.brand { background: var(--brand); color: #fff; box-shadow: 0 0 26px -6px var(--brand-hi); }
.dchip.signal { background: var(--signal); color: #fff; box-shadow: 0 0 26px -6px var(--signal); }
.dchip.teal, .dchip.ok { background: var(--ok); color: #04231C; box-shadow: 0 0 26px -6px var(--ok); }
.dchip.blue { background: var(--blue); color: #061A33; box-shadow: 0 0 26px -6px var(--blue); }

.demo-pill { position: absolute; z-index: 4; left: 50%; top: 52%; transform: translate(-50%, -50%) scale(.85); opacity: 0; pointer-events: none; display: inline-flex; gap: 10px; align-items: center; height: 52px; padding: 0 28px; border-radius: 999px; background: var(--brand); color: #fff; text-decoration: none; font-family: var(--mono); font-weight: 500; font-size: 15px; white-space: nowrap; box-shadow: 0 18px 60px -12px rgba(216, 69, 92, 0.85); transition: opacity .5s var(--ease), transform .6s var(--ease), background-color .25s; }
.demo-pill.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); pointer-events: auto; }
.demo-pill:hover { background: #B02A43; }
.demo-ticker { display: none; }

/* ───────── Todos conectados ───────── */
.hub { padding: clamp(110px, 15vh, 160px) 0 clamp(90px, 12vh, 130px); border-top: 1px solid var(--line); overflow: hidden; }
.hub-head { text-align: center; }
.hub-map { position: relative; max-width: 1200px; margin: 70px auto 0; aspect-ratio: 1200 / 460; }
.hub-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hub-lines .grid { stroke: url(#fade-h); stroke-width: 1; vector-effect: non-scaling-stroke; }
.hub-lines .link { fill: none; stroke: rgba(255, 255, 255, 0.16); stroke-width: 1.2; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease), stroke .3s; transition-delay: calc(var(--i, 0) * 120ms + .2s), 0s; }
.hub-map.is-shown .link { stroke-dashoffset: 0; }
.hub-lines .link.is-flow { stroke: var(--brand-hi); stroke-dasharray: 0.012 0.022; stroke-dashoffset: 0; animation: flow 1.1s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -0.068; } }
.node { position: absolute; left: var(--x); top: var(--y); width: 200px; transform: translate(-50%, -32px); display: flex; flex-direction: column; align-items: center; text-align: center; opacity: 0; transition: opacity .7s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 120ms + .5s); }
.hub-map.is-shown .node { opacity: 1; }
.node-dot { width: 64px; height: 64px; border-radius: 50%; background: #fff; color: #17181C; display: grid; place-items: center; box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.04), 0 10px 40px -10px rgba(0, 0, 0, 0.8); transition: transform .4s var(--ease), box-shadow .4s; }
.node-dot svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.node:not(.center):hover .node-dot { transform: scale(1.08); box-shadow: 0 0 0 6px rgba(216, 69, 92, 0.18), 0 0 40px -4px rgba(216, 69, 92, 0.6); }
.node-lbl { margin-top: 14px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: #ECEAE7; }
.node-txt { margin-top: 4px; font-size: 13px; color: var(--muted); }
.node.center { width: auto; transform: translate(-50%, -50%) scale(.7); }
.hub-map.is-shown .node.center { transform: translate(-50%, -50%) scale(1); }
.node.center .node-dot { width: 108px; height: 108px; box-shadow: 0 0 0 10px rgba(200, 48, 74, 0.1), 0 0 0 22px rgba(200, 48, 74, 0.05), 0 0 110px 16px rgba(200, 48, 74, 0.45); }
.node.center img { width: 70px; height: 70px; }

/* ───────── Precios ───────── */
.pricing { padding: clamp(100px, 13vh, 140px) 0; border-top: 1px solid var(--line); }
.prices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 56px; }
.price { display: flex; flex-direction: column; gap: 10px; padding: 28px 26px; border: 1px solid var(--line-2); border-radius: 20px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0)); transition: border-color .35s, transform .45s var(--ease); }
.price:hover { border-color: rgba(255, 255, 255, 0.3); transform: translateY(-3px); }
.price.feat { border-color: rgba(216, 69, 92, 0.65); background: linear-gradient(180deg, rgba(200, 48, 74, 0.14), rgba(200, 48, 74, 0) 70%); box-shadow: 0 30px 90px -40px rgba(216, 69, 92, 0.7); }
.p-name { font-family: var(--mono); font-size: 13px; color: var(--ink-2); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.p-tag { font-size: 10.5px; color: #fff; background: var(--brand); padding: 3px 9px; border-radius: 999px; }
.p-amount { font-weight: 300; font-size: 46px; letter-spacing: -0.045em; line-height: 1.05; margin-top: 18px; }
.p-amount small { font-size: 14px; letter-spacing: 0; color: var(--muted); font-family: var(--mono); vertical-align: middle; }
.p-amount-sm { font-size: 34px; }
.p-unit { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.price p { color: var(--muted); font-size: 14.5px; line-height: 1.55; margin: 8px 0 18px; }
.price .btn { margin-top: auto; align-self: flex-start; }
.p-note { margin-top: 28px; font-family: var(--mono); font-size: 12px; color: var(--dim); }

/* ───────── Cierre ───────── */
.closing { position: relative; overflow: hidden; min-height: 600px; display: flex; align-items: center; padding: 110px 0; }
.closing canvas { position: absolute; inset: 0; width: 100%; height: 100%; filter: blur(0.6px); }
.closing-veil { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 14, 16, 0.05) 0%, rgba(14, 14, 16, 0.3) 48%, rgba(14, 14, 16, 0.78) 100%), linear-gradient(to bottom, var(--bg) 0%, rgba(14, 14, 16, 0) 14%, rgba(14, 14, 16, 0) 86%, var(--bg) 100%); }
.closing-grid { position: relative; z-index: 2; width: 100%; display: grid; grid-template-columns: 1.3fr 1fr; gap: 60px; align-items: center; }
.closing h2 { font-size: clamp(2.8rem, 6.6vw, 6.2rem); line-height: 0.98; letter-spacing: -0.05em; }
.closing-side p { font-size: clamp(1.02rem, 1.35vw, 1.2rem); line-height: 1.5; color: #ECEAE7; max-width: 470px; letter-spacing: -0.012em; }
.closing-side .hero-ctas { margin-top: 28px; }

/* ───────── Pie ───────── */
.foot { background: var(--bg); padding: 70px 0 34px; }
.foot-grid { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.foot-brand img { height: 46px; width: auto; margin-left: -8px; }
.foot-brand p { color: var(--muted); margin-top: 14px; max-width: 260px; font-size: 14.5px; }
.foot-mail { display: inline-block; margin-top: 26px; font-family: var(--mono); font-size: 13px; text-decoration: none; border-bottom: 1px solid var(--line-2); }
.foot-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.foot-cols div { display: flex; flex-direction: column; gap: 10px; }
.foot-h { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); margin-bottom: 8px; }
.foot-cols a { text-decoration: none; font-size: 15px; color: var(--ink-2); transition: color .2s; }
.foot-cols a:hover { color: #fff; }
.foot-bar { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 11.5px; color: var(--dim); }

/* ───────── Aparición al hacer scroll ───────── */
[data-reveal] { opacity: 0; transform: translateY(26px); filter: blur(6px); transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].is-in { opacity: 1; transform: none; filter: none; }

/* ───────── Pantallas medianas ───────── */
@media (max-width: 1180px) {
  .demo-copy { left: 50%; top: calc(64px + 3vh); width: min(560px, calc(100% - 2 * var(--gutter))); transform: translateX(-50%); text-align: center; min-height: 0; }
  .step-n { justify-content: center; margin-bottom: 10px; }
  .step h3 { font-size: clamp(1.5rem, 4.4vw, 2rem); }
  .step p { margin-top: 10px; font-size: 14.5px; }
  .doc-wrap { top: var(--doc-top, 34%); transform: translate(-50%, 0) scale(var(--doc-s, 1)); transform-origin: 50% 0; margin: 0; }
  .doc-chips { display: none; }
  .demo-ticker { position: absolute; z-index: 4; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; max-width: calc(100% - 2 * var(--gutter)); font-family: var(--mono); font-size: 12px; padding: 8px 14px; border-radius: 999px; background: #0B0B0D; border: 1px solid #34343A; color: #E6E4E1; opacity: 0; transition: opacity .4s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .demo-ticker.is-on { opacity: 1; }
  .demo-ticker i { width: 8px; height: 8px; border-radius: 50%; background: var(--tc, var(--brand)); box-shadow: 0 0 10px var(--tc, var(--brand)); flex: none; }
  .demo-ticker span { overflow: hidden; text-overflow: ellipsis; }
  .demo-pill { top: auto; bottom: 18px; transform: translate(-50%, 0) scale(.9); }
  .demo-pill.is-on { transform: translate(-50%, 0) scale(1); }
  .prices { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .nav-inner { grid-template-columns: 1fr auto; }
  .nav-links, .nav-login { display: none; }
  .nav-burger { display: block; }
  .nav-cta { gap: 10px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }

  /* Módulos: acordeón vertical */
  .cards { flex-direction: column; height: auto; gap: 12px; }
  .card { flex: none !important; border-radius: 20px; }
  .card:not(.is-open):hover { transform: none; }
  .card-tab { position: relative; inset: auto; width: 100%; height: 76px; justify-content: flex-start; padding: 0 24px; }
  .card-tab span { writing-mode: horizontal-tb; transform: none; font-size: 24px; }
  .card-tab::after { content: '+'; margin-left: auto; font-size: 26px; font-weight: 300; transition: transform .4s var(--ease); }
  .card.is-open .card-tab { position: absolute; opacity: 0; pointer-events: none; }
  .card-body { position: relative; width: auto !important; display: none; grid-template-columns: 1fr; gap: 24px; padding: 28px 24px; }
  .card.is-open .card-body { display: grid; animation: fadeUp .6s var(--ease); }
  .card-art { height: 180px; order: -1; }
  .card h3 { font-size: 34px; }

  .hub-map { aspect-ratio: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 36px 12px; margin-top: 56px; padding: 0 var(--gutter); }
  .hub-lines { display: none; }
  .node, .node.center { position: relative; left: auto; top: auto; width: auto; transform: translateY(16px); }
  .hub-map.is-shown .node, .hub-map.is-shown .node.center { transform: none; }
  .node.center { grid-column: 1 / -1; justify-self: center; margin-bottom: 8px; }
  .closing-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .nav-cta .btn-sm { padding: 0 13px; }
  .hero h1 { font-size: clamp(2.15rem, 10vw, 2.8rem); }
  .hero-shot { margin-top: 64px; padding: 0 12px; }
  .app-url { font-size: 10.5px; }
  .app-crumb { display: none; }
  .app-live { display: none; }
  .marquee-track span { height: 60px; min-width: 150px; font-size: 14px; padding: 0 20px; }
  .card-body { padding: 24px 20px; }
  .demo-pill { height: 46px; padding: 0 20px; font-size: 13.5px; }
  .prices { grid-template-columns: 1fr; }
  .closing { min-height: 0; padding: 90px 0; }
  .foot-cols { gap: 36px; }
}

/* ───────── Menos movimiento ───────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee-track span:nth-child(n + 9) { display: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
}
