@font-face{font-family:"Manrope";src:url(/assets/fonts/manrope.woff2) format("woff2");font-weight:200 800;font-display:swap}
@font-face{font-family:"DM Sans";src:url(/assets/fonts/dm-sans.woff2) format("woff2");font-weight:100 1000;font-style:normal;font-display:swap}
@font-face{font-family:"DM Sans";src:url(/assets/fonts/dm-sans-italic.woff2) format("woff2");font-weight:100 1000;font-style:italic;font-display:swap}
@font-face{font-family:"DM Mono";src:url(/assets/fonts/dm-mono-400.woff2) format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:"DM Mono";src:url(/assets/fonts/dm-mono-500.woff2) format("woff2");font-weight:500;font-display:swap}
/* Koppi — sistema visual
   Paleta derivada del logotipo (magenta → violeta → azul) sobre neutros con sesgo violeta.
   Display: Bricolage Grotesque · Texto: DM Sans · Datos: JetBrains Mono */

:root {
  --bg: #f5f5f8;
  --surface: #ffffff;
  --surface-2: #eeeef4;
  --ink: #12142a;
  --muted: #5b6077;
  --line: #dcdee8;
  --violet: #5646e0;
  --violet-ink: #4333c4;
  --violet-soft: #ebe8ff;
  --magenta: #c81f7c;
  --blue: #3767e3;
  --ok: #178a5e;
  --ok-soft: #e1f4ec;
  --held: #b7790c;
  --held-soft: #fbf0d9;
  --night: #080b17;
  --night-2: #0f1328;
  --night-3: #171c38;
  --night-line: #262c4d;
  --night-ink: #eef0f8;
  --night-muted: #9ca2bf;
  --grad: linear-gradient(100deg, #d91a9a 0%, #7b46c4 48%, #3767e3 100%);
  --f-display: "Manrope", "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --radius: 14px;
  --radius-sm: 8px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 68px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0e1c;
    --surface: #12162c;
    --surface-2: #181d38;
    --ink: #eceef7;
    --muted: #a2a8c4;
    --line: #262b48;
    --violet: #8f84ff;
    --violet-ink: #aba2ff;
    --violet-soft: #221f4a;
    --magenta: #ee4fa3;
    --ok: #3cc58f;
    --ok-soft: #12302a;
    --held: #e7aa3d;
    --held-soft: #33280f;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b0e1c;
  --surface: #12162c;
  --surface-2: #181d38;
  --ink: #eceef7;
  --muted: #a2a8c4;
  --line: #262b48;
  --violet: #8f84ff;
  --violet-ink: #aba2ff;
  --violet-soft: #221f4a;
  --magenta: #ee4fa3;
  --ok: #3cc58f;
  --ok-soft: #12302a;
  --held: #e7aa3d;
  --held-soft: #33280f;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video, iframe { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); font-weight: 600; line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--surface); padding: 10px 14px; border-radius: 8px; }
.skip:focus { left: 12px; }
[hidden] { display: none !important; }
figure { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Tipografía ---------- */
.display { font-size: clamp(44px, 8.2vw, 104px); font-weight: 650; letter-spacing: -0.035em; line-height: 0.95; }
.h1 { font-size: clamp(38px, 6vw, 76px); letter-spacing: -0.03em; line-height: 0.98; }
.h2 { font-size: clamp(30px, 4.4vw, 54px); letter-spacing: -0.025em; }
.h3 { font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -0.015em; line-height: 1.15; }
.h4 { font-size: 19px; letter-spacing: -0.01em; line-height: 1.25; }
.lead { font-size: clamp(18px, 1.8vw, 21px); line-height: 1.55; color: var(--muted); max-width: 60ch; }
.body { color: var(--muted); max-width: 62ch; }
.small { font-size: 14px; color: var(--muted); }
.eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--violet);
}
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 10vw, 136px); }
.section-tight { padding-block: clamp(48px, 6vw, 80px); }
.stack { display: flex; flex-direction: column; gap: 20px; }
.stack-lg { display: flex; flex-direction: column; gap: 32px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .split.even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .split.middle { align-items: center; }
}
.grid { display: grid; gap: clamp(16px, 2vw, 24px); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .grid-2, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); max-width: 820px; }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }

/* ---------- Superficies nocturnas ---------- */
.night {
  background: var(--night);
  color: var(--night-ink);
  --ink: var(--night-ink);
  --muted: var(--night-muted);
  --line: var(--night-line);
  --surface: var(--night-2);
  --surface-2: var(--night-3);
  --violet: #9a8fff;
  --violet-ink: #b3aaff;
  --violet-soft: #221f4a;
  --ok: #3cc58f; --ok-soft: #12302a; --held: #e7aa3d; --held-soft: #33280f;
  color-scheme: dark;
}
.paper-2 { background: var(--surface-2); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 1px solid transparent;
  font-family: var(--f-body); font-size: 16px; font-weight: 600; line-height: 1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--violet); color: #fff; box-shadow: 0 6px 20px -8px color-mix(in srgb, var(--violet) 70%, transparent); }
.night .btn-primary, .btn-primary.on-dark { background: #fff; color: #10132a; box-shadow: none; }
.btn-primary:hover { background: var(--violet-ink); }
.night .btn-primary:hover { background: #e9e7ff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.link-arrow { font-weight: 600; color: var(--violet); text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }
.arrow::after { content: "→"; }
.ext::after { content: "↗"; font-size: .9em; }

/* ---------- Encabezado ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--night) 88%, transparent);
  backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  color: #eef0f8;
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: 68px; }
.site-header .wrap.sub-row { height: 48px; gap: 16px; }
.site-header .wrap.sub-toc { height: auto; gap: 6px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.brand svg { height: 26px; width: auto; }
.nav { display: none; align-items: center; gap: 4px; margin-left: auto; }
.nav > a, .nav summary {
  font-size: 15px; font-weight: 500; color: #d7daea; text-decoration: none;
  padding: 10px 12px; border-radius: 8px; cursor: pointer; list-style: none;
}
.nav summary::-webkit-details-marker { display: none; }
.nav > a:hover, .nav summary:hover, .nav a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.06); }
.nav details { position: relative; }
.nav summary::after { content: "▾"; font-size: 11px; margin-left: 6px; opacity: .7; }
.nav .menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 300px;
  background: #0f1328; border: 1px solid #262c4d; border-radius: 12px; padding: 8px;
  display: grid; gap: 2px; box-shadow: 0 20px 50px -20px rgba(0,0,0,.6);
}
.nav .menu a { display: grid; gap: 2px; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: #eef0f8; }
.nav .menu a span { font-size: 13px; color: #9ca2bf; }
.nav .menu a:hover { background: rgba(255,255,255,.06); }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.lang { font-family: var(--f-mono); font-size: 13px; color: #c9cce0; text-decoration: none; padding: 8px 10px; border-radius: 8px; }
.lang:hover { background: rgba(255,255,255,.06); color: #fff; }
.menu-btn { background: transparent; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; height: 40px; padding: 0 14px; color: #eef0f8; cursor: pointer; font-size: 15px; }
.header-cta { display: none; }
@media (min-width: 1040px) {
  .nav { display: flex; }
  .header-actions { margin-left: 8px; }
  .menu-btn { display: none; }
  .header-cta { display: inline-flex; }
}
.mobile-nav { background: #0a0d1c; border-top: 1px solid #1d2240; color: #eef0f8; }
.mobile-nav .wrap { display: grid; gap: 4px; padding-block: 16px 24px; height: auto; }
.mobile-nav a { text-decoration: none; padding: 12px 4px; font-size: 18px; border-bottom: 1px solid #1a1f3b; display: flex; justify-content: space-between; }
.mobile-nav a span { color: #9ca2bf; font-size: 14px; }
.mobile-nav .btn { margin-top: 16px; border-bottom: 0; justify-content: center; }
@media (min-width: 1040px) { .mobile-nav { display: none !important; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(48px, 7vw, 96px) clamp(56px, 7vw, 96px); }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto auto; width: 70%; height: 120%;
  background: radial-gradient(closest-side, rgba(123,70,196,.35), transparent 70%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; gap: clamp(36px, 5vw, 56px); grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); } }
.hero .lead { color: var(--night-muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero-note { font-size: 14px; color: var(--night-muted); }
.thesis-line { display: block; }
.strike { position: relative; color: var(--night-muted); }

/* Torre de inventario (firma visual) */
.tower-card {
  position: relative; border: 1px solid var(--night-line); border-radius: 18px;
  background: linear-gradient(180deg, #0f1430 0%, #0a0d1d 100%);
  padding: 18px; display: grid; gap: 14px;
}
.tower-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-family: var(--f-mono); font-size: 12px; color: var(--night-muted); letter-spacing: .06em; text-transform: uppercase; }
.tower-top b { color: var(--night-ink); font-weight: 500; }
.tower-canvas { width: 100%; aspect-ratio: 5 / 6; max-width: 100%; border-radius: 10px; background: #0b0f22; cursor: crosshair; touch-action: manipulation; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--night-muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.unit-pop {
  display: grid; gap: 8px; padding: 14px 16px; border-radius: 12px;
  background: #13183a; border: 1px solid #2b3160; font-size: 14px; color: var(--night-ink);
}
.unit-pop .u-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.unit-pop .u-code { font-family: var(--f-mono); font-size: 15px; letter-spacing: .04em; }
.unit-pop .u-meta { color: var(--night-muted); font-family: var(--f-mono); font-size: 12.5px; }
.unit-pop .u-price { font-family: var(--f-display); font-size: 26px; font-weight: 600; letter-spacing: -.02em; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; font-family: var(--f-body); white-space: nowrap; }
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.held { background: var(--held-soft); color: var(--held); }
.chip.sold { background: color-mix(in srgb, var(--magenta) 16%, transparent); color: var(--magenta); }
.chip.neutral { background: var(--surface-2); color: var(--muted); }

/* ---------- Franja de clientes ---------- */
.clients { border-top: 1px solid var(--night-line); }
.clients .wrap { display: grid; gap: 18px; padding-block: 28px 36px; }
.client-list { display: flex; flex-wrap: wrap; gap: 10px 28px; list-style: none; }
.client-list li { font-family: var(--f-display); font-size: clamp(17px, 1.8vw, 21px); font-weight: 600; color: #c7cae0; letter-spacing: -.01em; }
.more-clients summary { cursor: pointer; font-size: 14px; color: var(--night-muted); list-style: none; }
.more-clients summary::-webkit-details-marker { display: none; }
.more-clients summary::before { content: "+ "; }
.more-clients[open] summary::before { content: "– "; }
.more-clients ul { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; font-size: 15px; color: #aeb3cf; }

/* ---------- Comparativo de la noche (timeline) ---------- */
.switch { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.switch button { border: 0; background: transparent; padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 15px; cursor: pointer; color: var(--muted); }
.switch button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.timeline { list-style: none; display: grid; gap: 0; border-left: 2px solid var(--line); margin-left: 8px; }
.timeline li { position: relative; display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 16px; padding: 0 0 26px 24px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--muted); }
.timeline li.bad::before { border-color: var(--magenta); background: var(--magenta); }
.timeline li.good::before { border-color: var(--ok); background: var(--ok); }
.timeline time { font-family: var(--f-mono); font-size: 13px; color: var(--muted); padding-top: 2px; }
.timeline strong { display: block; font-size: 17px; margin-bottom: 2px; }
.timeline p { color: var(--muted); font-size: 16px; }
.story-outcome { border-radius: var(--radius); padding: 22px; display: grid; gap: 8px; }
.story-outcome.bad { background: color-mix(in srgb, var(--magenta) 8%, var(--surface)); border: 1px solid color-mix(in srgb, var(--magenta) 30%, var(--line)); }
.story-outcome.good { background: color-mix(in srgb, var(--ok) 8%, var(--surface)); border: 1px solid color-mix(in srgb, var(--ok) 30%, var(--line)); }

/* ---------- Barra del 83% ---------- */
.timebar { display: flex; width: 100%; height: 72px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.timebar span { display: flex; align-items: flex-end; padding: 10px; font-family: var(--f-mono); font-size: 13px; font-weight: 500; color: #fff; min-width: 0; overflow: hidden; }
.timebar .t-online { background: #3767e3; }
.timebar .t-offline { background: #5658d4; }
.timebar .t-group { background: #7b46c4; }
.timebar .t-other { background: #a03aa9; }
.timebar .t-sales { background: var(--surface); color: var(--ink); background-image: repeating-linear-gradient(135deg, transparent 0 6px, color-mix(in srgb, var(--ink) 10%, transparent) 6px 7px); }
.timebar-legend { display: grid; gap: 10px 24px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); list-style: none; margin-top: 18px; }
.timebar-legend li { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 10px; align-items: baseline; font-size: 15px; color: var(--muted); }
.timebar-legend b { font-family: var(--f-mono); font-size: 15px; color: var(--ink); font-weight: 500; }
.source { font-size: 13px; color: var(--muted); }
.source a { color: var(--muted); }
.big-stat { font-family: var(--f-display); font-weight: 650; font-size: clamp(88px, 16vw, 200px); letter-spacing: -.05em; line-height: .85; }

/* ---------- Capacidades ---------- */
.cap { display: grid; gap: 14px; padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); align-content: start; }
.cap .cap-k { font-family: var(--f-mono); font-size: 12px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.cap ul { list-style: none; display: grid; gap: 6px; font-size: 15px; color: var(--muted); }
.cap ul li::before { content: "— "; color: var(--violet); }

/* ---------- Demo ---------- */
.demo { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--night-line); background: #0b0f22; color: var(--night-ink); }
.demo-stage { position: relative; aspect-ratio: 16 / 10; max-width: 100%; display: grid; place-items: center; overflow: hidden;
  background:
    linear-gradient(180deg, rgba(8,11,23,.25), rgba(8,11,23,.85)),
    repeating-linear-gradient(90deg, rgba(154,143,255,.08) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(0deg, rgba(154,143,255,.08) 0 1px, transparent 1px 48px),
    radial-gradient(120% 90% at 70% 10%, #2a2466 0%, #0b0f22 60%);
}
.demo-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.demo-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.demo-stage .play { position: relative; z-index: 1; display: grid; justify-items: center; gap: 10px; text-align: center; padding: 20px; }
.demo-stage .play .big { font-family: var(--f-display); font-size: clamp(34px, 5vw, 56px); font-weight: 600; letter-spacing: -.03em; }
.demo-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--night-line); font-size: 14px; color: var(--night-muted); }
.demo-bar a { color: var(--night-ink); font-weight: 600; text-decoration: none; }
.demo-bar a:hover { text-decoration: underline; }
.demo-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.demo-tabs button { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 9px 16px; font-size: 15px; font-weight: 500; cursor: pointer; }
.demo-tabs button[aria-selected="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.demo-caption { display: grid; gap: 6px; margin-top: 16px; }

/* ---------- Comparativa (tabla) ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table.compare { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 16px; }
.compare th, .compare td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 500; background: var(--surface-2); }
.compare tbody th { font-weight: 600; width: 26%; }
.compare td.win { color: var(--ink); font-weight: 500; }
.compare td.lose { color: var(--muted); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }

/* ---------- Calculadoras ---------- */
.calc { display: grid; gap: 0; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
@media (min-width: 900px) { .calc { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.calc-in { padding: clamp(22px, 3vw, 36px); display: grid; gap: 22px; align-content: start; }
.calc-out { padding: clamp(22px, 3vw, 36px); background: var(--night); color: var(--night-ink); display: grid; gap: 18px; align-content: start; }
.field { display: grid; gap: 8px; }
.field > label, .field > legend, .field-label { font-weight: 600; font-size: 15px; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.opts { display: grid; gap: 8px; }
.opt { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-size: 15px; }
.opt:has(input:checked) { border-color: var(--violet); background: var(--violet-soft); }
.opt input { accent-color: var(--violet); width: 18px; height: 18px; margin: 0; }
.opt .opt-price { margin-left: auto; font-family: var(--f-mono); font-size: 14px; color: var(--muted); }
input[type="number"], input[type="text"], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font: inherit; font-size: 16px;
}
input[type="range"] { width: 100%; accent-color: var(--violet); }
.range-row { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 13px; color: var(--muted); }
.out-big { font-family: var(--f-display); font-size: clamp(44px, 6vw, 64px); font-weight: 650; letter-spacing: -.03em; line-height: 1; }
.out-row { display: flex; justify-content: space-between; gap: 12px; padding-block: 12px; border-top: 1px solid var(--night-line); font-size: 15px; color: var(--night-muted); }
.out-row b { color: var(--night-ink); font-family: var(--f-mono); font-weight: 500; }
.out-note { font-size: 13px; color: var(--night-muted); }

/* ---------- Tarjetas de precio ---------- */
.price-card { display: grid; gap: 14px; padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); align-content: start; }
.price-card.feature { border-color: var(--violet); box-shadow: 0 0 0 3px var(--violet-soft); }
.price { font-family: var(--f-display); font-size: clamp(38px, 4.6vw, 52px); font-weight: 650; letter-spacing: -.03em; line-height: 1; }
.price small { font-family: var(--f-body); font-size: 16px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.ticks { list-style: none; display: grid; gap: 10px; font-size: 15px; color: var(--muted); }
.ticks li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 8px; }
.ticks li::before { content: "✓"; color: var(--ok); font-weight: 700; }
.ticks.dim li::before { content: "•"; color: var(--muted); }

/* ---------- Proceso ---------- */
.steps { list-style: none; display: grid; gap: 0; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding-block: 22px; border-top: 1px solid var(--line); }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--f-mono); font-size: 14px; color: var(--violet); padding-top: 4px; }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps h3 { font-size: 21px; margin-bottom: 4px; letter-spacing: -.01em; }
.steps p { color: var(--muted); }
.checklist { list-style: none; display: grid; gap: 0; }
.checklist li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.checklist li span { color: var(--muted); font-size: 14px; text-align: right; }

/* ---------- Proyectos ---------- */
.case { display: grid; gap: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.case:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(18,20,42,.45); }
.case-media { position: relative; aspect-ratio: 16 / 9; max-width: 100%; overflow: hidden; background: var(--grad); }
.case-media img { width: 100%; height: 100%; object-fit: cover; }
.case-media .ph { position: absolute; inset: 0; display: grid; place-items: end start; padding: 18px; font-family: var(--f-display); font-size: 28px; font-weight: 650; color: #fff; letter-spacing: -.02em;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.08) 0 1px, transparent 1px 36px), repeating-linear-gradient(0deg, rgba(255,255,255,.08) 0 1px, transparent 1px 36px); }
.case-media img + .ph { display: none; }
.case-body { display: grid; gap: 10px; padding: 20px 22px 24px; }
.case-meta { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.facts div { padding: 16px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.facts dt { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; font-size: 17px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 9px 16px; font-size: 15px; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.filters button .n { font-family: var(--f-mono); font-size: 12px; opacity: .7; margin-left: 6px; }

/* ---------- Prensa / reconocimiento ---------- */
.press { display: grid; gap: 10px; padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); text-decoration: none; align-content: start; }
.press:hover { border-color: var(--violet); }
.press .src { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.award { display: grid; gap: 6px; padding: 28px; border-radius: var(--radius); background: var(--grad); color: #fff; text-decoration: none; align-content: start; }
.award .src { font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.award .place { font-family: var(--f-display); font-size: 44px; font-weight: 650; letter-spacing: -.03em; line-height: 1; }

/* ---------- Direcciones (tesis) ---------- */
.addresses { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .addresses { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.address { border-radius: var(--radius); padding: 26px; display: grid; gap: 12px; border: 1px solid var(--line); background: var(--surface); align-content: start; }
.address .k { font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.address .v { font-family: var(--f-mono); font-size: clamp(16px, 1.8vw, 19px); word-break: break-word; }
.address.digital { background: var(--night); color: var(--night-ink); border-color: var(--night-line); }
.address.digital .k { color: var(--night-muted); }
.address ul { list-style: none; display: grid; gap: 6px; font-size: 15px; color: var(--muted); }
.address.digital ul { color: var(--night-muted); }

/* ---------- FAQ ---------- */
.faq { display: grid; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; font-weight: 600; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--f-mono); color: var(--violet); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq .a { padding: 0 0 22px; color: var(--muted); max-width: 70ch; display: grid; gap: 10px; }

/* ---------- Eco (chat) ---------- */
.chat { display: grid; gap: 12px; padding: 20px; border-radius: 18px; background: var(--night-2); border: 1px solid var(--night-line); color: var(--night-ink); }
.chat-head { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 12px; color: var(--night-muted); letter-spacing: .06em; text-transform: uppercase; }
.msg { max-width: 88%; padding: 12px 14px; border-radius: 14px; font-size: 15px; line-height: 1.5; }
.msg.user { justify-self: end; background: #2b2a6b; border-bottom-right-radius: 4px; }
.msg.eco { justify-self: start; background: #161b3a; border: 1px solid #262c4d; border-bottom-left-radius: 4px; }
.msg.eco .who { display: block; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #9a8fff; margin-bottom: 4px; }
.chat-note { font-size: 12.5px; color: var(--night-muted); }

/* ---------- Spec sheet (industrial) ---------- */
.spec { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.spec div { padding: 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 4px; margin: 0 -1px -1px 0; }
.spec dt { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.spec dd { margin: 0; font-family: var(--f-display); font-size: 26px; font-weight: 600; letter-spacing: -.02em; }
.spec dd small { font-family: var(--f-body); font-size: 14px; color: var(--muted); font-weight: 500; }

/* ---------- CTA final ---------- */
.cta-final { text-align: left; display: grid; gap: 24px; }
.cta-final .h1 { max-width: 16ch; }

/* ---------- Pie ---------- */
.site-footer { background: var(--night); color: var(--night-muted); font-size: 15px; }
.site-footer .wrap { display: grid; gap: 36px; padding-block: 56px 40px; }
.foot-grid { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 2fr repeat(3, 1fr); } }
.site-footer h2 { font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #eef0f8; font-weight: 500; margin-bottom: 14px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { color: #c9cce0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid var(--night-line); padding-top: 24px; font-size: 13px; }
.foot-legal nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- Modal demo ---------- */
dialog.modal { border: 0; padding: 0; border-radius: 20px; width: min(520px, calc(100% - 32px)); max-height: calc(100% - 32px); background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(0,0,0,.5); }
dialog.modal::backdrop { background: rgba(8,11,23,.7); backdrop-filter: blur(4px); }
.modal-body { padding: clamp(22px, 4vw, 32px); display: grid; gap: 18px; }
.modal-head { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.modal-close { border: 0; background: var(--surface-2); width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 20px; flex: none; }
.form-grid { display: grid; gap: 14px; }
@media (min-width: 520px) { .form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.form-error { color: var(--magenta); font-size: 14px; }
.modal .alt { font-size: 14px; color: var(--muted); }
.modal .alt a { color: var(--violet); }

/* ---------- Utilidades ---------- */
.center { text-align: center; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-40 { margin-top: 40px; }
.max-40 { max-width: 40ch; } .max-56 { max-width: 56ch; }
.divider-grad { height: 3px; width: 64px; background: var(--grad); border-radius: 3px; }
.breadcrumb { font-size: 14px; color: var(--night-muted); display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumb a { color: var(--night-muted); text-decoration: none; }
.breadcrumb a:hover { color: #fff; }
.page-hero { padding-block: clamp(44px, 6vw, 88px); position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; right: -15%; top: -40%; width: 60%; height: 140%; background: radial-gradient(closest-side, rgba(123,70,196,.30), transparent 70%); pointer-events: none; }
.page-hero .wrap { position: relative; display: grid; gap: 22px; }
.page-hero .lead { color: var(--night-muted); }
.kpi-row { display: grid; gap: 1px; grid-template-columns: repeat(2, minmax(0, 1fr)); background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 760px) { .kpi-row { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kpi-row div { background: var(--surface); padding: 20px; display: grid; gap: 4px; }
.kpi-row b { font-family: var(--f-display); font-size: clamp(28px, 3.4vw, 40px); font-weight: 650; letter-spacing: -.03em; line-height: 1; }
.kpi-row span { font-size: 14px; color: var(--muted); }
.note-box { border-radius: var(--radius); padding: 20px 22px; background: var(--violet-soft); color: var(--ink); font-size: 15px; display: grid; gap: 6px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* =====================================================================
   v2 · momentos editoriales
   ===================================================================== */

/* Hero a pantalla completa con comparador */
.hero2 { position: relative; overflow: hidden; background: var(--night); color: var(--night-ink); }
.cmp-hero { --pos: 58%; position: relative; height: clamp(560px, 86vh, 880px); overflow: hidden; cursor: ew-resize; user-select: none; touch-action: pan-y; background: #0b0f22; }
.cmp-layer { position: absolute; inset: 0; }
.cmp-layer img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.cmp-after::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,11,23,.55) 0%, rgba(8,11,23,0) 26%, rgba(8,11,23,0) 44%, rgba(8,11,23,.92) 100%); }
.cmp-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); background: #0a1233; }
.cmp-before img { filter: grayscale(1) contrast(1.35) brightness(1.15) invert(1); mix-blend-mode: screen; opacity: .55; }
.cmp-before::before { content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    repeating-linear-gradient(90deg, rgba(120,150,255,.16) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(0deg, rgba(120,150,255,.16) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(90deg, rgba(120,150,255,.07) 0 1px, transparent 1px 8px),
    repeating-linear-gradient(0deg, rgba(120,150,255,.07) 0 1px, transparent 1px 8px);
}
.cmp-before::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(10,18,51,.2), rgba(8,11,23,.92) 100%); }
.cmp-fallback { position: absolute; inset: 0; background:
  radial-gradient(80% 70% at 70% 30%, #4b2f9a 0%, transparent 60%),
  radial-gradient(60% 60% at 20% 80%, #a3207a 0%, transparent 60%),
  linear-gradient(160deg, #1a1f4d, #080b17); }
.cmp-before .cmp-fallback { background: #0a1233; }
.cmp-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; z-index: 3; box-shadow: 0 0 24px rgba(255,255,255,.5); }
.cmp-handle { position: absolute; top: 26%; left: var(--pos); z-index: 4; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: #fff; color: #10132a; display: grid; place-items: center; font-size: 18px; font-weight: 700; box-shadow: 0 10px 30px rgba(0,0,0,.35); cursor: ew-resize; }
.cmp-handle::before { content: "‹  ›"; letter-spacing: -2px; }
.cmp-tag { position: absolute; top: calc(var(--header-h) * 0 + 24px); z-index: 3; font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; padding: 7px 12px; border-radius: 999px; background: rgba(8,11,23,.6); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(6px); }
.cmp-tag.l { left: 24px; } .cmp-tag.r { right: 24px; }
.hero2-copy { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; pointer-events: none; padding-block: 0 clamp(28px, 5vw, 56px); }
.hero2-copy .wrap { display: grid; gap: 22px; }
.hero2-copy .row, .hero2-copy a, .hero2-copy button { pointer-events: auto; }
.hero2 .display { font-size: clamp(56px, 11.5vw, 168px); line-height: .86; letter-spacing: -.045em; text-shadow: 0 2px 40px rgba(8,11,23,.4); }
.hero2 .lead { color: #d5d8ea; max-width: 54ch; }
.hero2-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px; }

/* Marquesina de clientes */
.marquee { position: relative; overflow: hidden; border-block: 1px solid var(--night-line); background: var(--night); color: #c7cae0; }
.marquee::before, .marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 12%; z-index: 1; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(90deg, var(--night), transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--night), transparent); }
.marquee ul { display: flex; gap: 56px; width: max-content; list-style: none; padding-block: 26px; animation: mq 60s linear infinite; }
.marquee li { font-family: var(--f-display); font-size: clamp(20px, 2.2vw, 28px); font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.marquee li:nth-child(odd) { color: #eef0f8; }
.marquee:hover ul { animation-play-state: paused; }
@keyframes mq { to { transform: translateX(-50%); } }

/* Declaración a gran tamaño */
.statement { font-family: var(--f-display); font-weight: 600; font-size: clamp(34px, 5.6vw, 76px); line-height: 1.02; letter-spacing: -.03em; max-width: 20ch; text-wrap: balance; }
.statement em { font-style: normal; color: var(--muted); }

/* Relato con scroll: la torre se construye */
.scrolly { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.scrolly-stage { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--header-h)); height: 58vh; z-index: 1; display: grid; place-items: center; background: var(--night); padding-block: 12px; }
.scrolly-stage .tower-canvas { height: 100%; width: 100%; aspect-ratio: auto; background: transparent; }
.scrolly-steps { position: relative; z-index: 2; }
.step { min-height: 78vh; display: grid; align-content: center; padding-block: 48px; }
.step-card { display: grid; gap: 16px; max-width: 520px; padding: 24px; border-radius: 18px; background: rgba(15,19,40,.92); border: 1px solid var(--night-line); backdrop-filter: blur(10px); transition: opacity .4s ease, transform .4s ease; }
.step:not(.is-on) .step-card { opacity: .45; }
.step .kicker { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #9a8fff; }
.stage-ui { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); width: min(360px, calc(100% - 32px)); display: grid; gap: 8px; transition: opacity .4s ease; }
[data-stage][data-mode="0"] .stage-ui { opacity: 0; pointer-events: none; }
[data-stage]:not([data-mode="2"]) #tower-feed { visibility: hidden; }
@media (min-width: 980px) {
  .scrolly { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .scrolly-steps { order: -1; }
  .scrolly-stage { height: calc(100vh - var(--header-h)); padding-block: 32px; }
  .step-card { background: transparent; border: 0; padding: 0; backdrop-filter: none; }
  .stage-ui { left: auto; right: 24px; transform: none; bottom: 32px; }
}

/* Imagen a sangre con una frase */
.bleed { position: relative; min-height: clamp(420px, 72vh, 760px); display: grid; align-items: end; overflow: hidden; color: #fff; background: var(--night); }
.bleed > img, .bleed > .cmp-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bleed::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,11,23,0) 30%, rgba(8,11,23,.85) 100%); }
.bleed .wrap { position: relative; z-index: 1; padding-block: clamp(32px, 6vw, 72px); display: grid; gap: 14px; }
.bleed .statement em { color: #b9bdd6; }
.bleed figcaption { font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #c9cce0; }

/* Lista de capacidades a gran formato */
.biglist { list-style: none; border-top: 1px solid var(--line); }
.biglist li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px 32px; padding-block: clamp(22px, 3vw, 34px); border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .biglist li { grid-template-columns: 90px minmax(0, 5fr) minmax(0, 6fr); align-items: baseline; } }
.biglist .k { font-family: var(--f-mono); font-size: 13px; color: var(--violet); letter-spacing: .08em; text-transform: uppercase; }
.biglist h3 { font-size: clamp(28px, 3.6vw, 46px); letter-spacing: -.03em; line-height: 1; }
.biglist p { color: var(--muted); max-width: 52ch; }
.biglist .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.biglist .tags span { font-size: 13px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }

/* Sectores como índice */
.sector-index { list-style: none; border-top: 1px solid var(--line); }
.sector-index a { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; padding-block: clamp(20px, 2.6vw, 30px); border-bottom: 1px solid var(--line); text-decoration: none; transition: padding .25s ease, color .25s ease; }
.sector-index .t { font-family: var(--f-display); font-size: clamp(34px, 6vw, 84px); font-weight: 600; letter-spacing: -.04em; line-height: .95; }
.sector-index .d { display: block; font-family: var(--f-body); font-size: 15px; color: var(--muted); letter-spacing: 0; margin-top: 8px; font-weight: 400; }
.sector-index .go { font-size: clamp(22px, 3vw, 38px); color: var(--violet); transition: transform .25s ease; }
.sector-index a:hover { padding-left: 14px; }
.sector-index a:hover .t { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sector-index a:hover .go { transform: translateX(6px); }

/* Casos en formato editorial */
.case-feature { display: grid; gap: 0; border-radius: 22px; overflow: hidden; background: var(--night); color: var(--night-ink); text-decoration: none; }
@media (min-width: 900px) { .case-feature { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.case-feature .media { position: relative; min-height: 320px; aspect-ratio: 16 / 10; max-width: 100%; overflow: hidden; background: var(--grad); }
.case-feature .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.case-feature:hover .media img { transform: scale(1.03); }
.case-feature .txt { padding: clamp(24px, 3.5vw, 44px); display: grid; gap: 16px; align-content: center; }
.case-feature .facts { border-color: var(--night-line); }
.case-feature .facts div { border-color: var(--night-line); }
.case-feature .facts dt { color: var(--night-muted); }

/* Reveal suave: siempre visible en reposo */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
  .rise.d1 { animation-delay: .08s; } .rise.d2 { animation-delay: .18s; } .rise.d3 { animation-delay: .3s; }
  @keyframes rise { from { transform: translateY(18px); opacity: .001; } to { transform: none; opacity: 1; } }
}

@media (min-width: 760px) { .cmp-handle { top: 50%; } }
.seg { display: none; }
@media (max-width: 979px) {
  .scrolly { padding-block: 56px; gap: 20px; }
  .scrolly-stage { position: relative; top: auto; height: auto; aspect-ratio: 4 / 5; max-height: 70vh; border-radius: 18px; border: 1px solid var(--night-line); overflow: hidden; }
  .stage-ui { position: absolute; }
  .seg { display: flex; gap: 6px; padding: 4px; border-radius: 999px; background: var(--night-2); border: 1px solid var(--night-line); }
  .seg button { flex: 1; border: 0; background: transparent; color: var(--night-muted); padding: 10px 6px; border-radius: 999px; font-size: 14px; font-weight: 600; cursor: pointer; }
  .seg button[aria-pressed="true"] { background: #fff; color: #10132a; }
  .step { min-height: 0; padding-block: 0; }
  .step:not(.is-on) { display: none; }
  .step .step-card { opacity: 1; background: transparent; border: 0; padding: 0; }
  .step-card .h2 { font-size: 28px; }
  #unit-pop { display: none; }
}

.page-hero.has-img { min-height: clamp(480px, 74vh, 760px); display: grid; align-items: end; }
.page-hero.has-img > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero.has-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,11,23,.35) 0%, rgba(8,11,23,.55) 45%, rgba(8,11,23,.94) 100%); }
.page-hero.has-img .wrap { z-index: 1; }
.page-hero.has-img::before { display: none; }
.page-hero .h1 { font-size: clamp(42px, 7vw, 96px); letter-spacing: -.035em; line-height: .95; }

/* Comparador sin filtro (recorrido → campaña) */
.cmp-plain { height: auto; aspect-ratio: 16 / 9; max-width: 100%; border-radius: 20px; }
.cmp-plain .cmp-before img { filter: none; mix-blend-mode: normal; opacity: 1; }
.cmp-plain .cmp-before::before, .cmp-plain .cmp-before::after, .cmp-plain .cmp-after::after { display: none; }
.cmp-plain .cmp-before { background: #0b0f22; }
.cmp-plain .cmp-handle { top: 50%; }
.cmp-plain .cmp-tag { top: 16px; }
.cmp-plain .cmp-tag.l { left: 16px; } .cmp-plain .cmp-tag.r { right: 16px; }
/* El render de la torre ya trae su propio plano: el lado izquierdo lo intensifica */
.hero2 .cmp-after img { object-position: 62% 40%; }
.hero2 .cmp-before img { object-position: 62% 40%; }
@media (max-width: 760px) { .hero2 .cmp-after img, .hero2 .cmp-before img { object-position: 58% 30%; } }
@media (min-width: 900px) { .case-feature .media { aspect-ratio: auto; min-height: 420px; height: 100%; } }
.page-hero.has-img .eyebrow, .page-hero.has-img .breadcrumb a, .page-hero.has-img .breadcrumb { color: #d6d1ff; }


/* =====================================================================
   v3 · tipografía B2B: Manrope + DM Sans, más contenida
   ===================================================================== */
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.04em; }
.display { font-size: clamp(46px, 7.2vw, 92px); font-weight: 600; letter-spacing: -0.055em; line-height: 0.98; }
.h1 { font-size: clamp(38px, 5.4vw, 68px); letter-spacing: -0.05em; line-height: 1.02; }
.h2 { font-size: clamp(30px, 3.9vw, 50px); letter-spacing: -0.05em; line-height: 1.06; }
.h3 { font-size: clamp(21px, 2.1vw, 26px); font-weight: 500; letter-spacing: -0.035em; line-height: 1.25; }
.h4 { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; }
body { font-size: 17px; line-height: 1.7; }
.lead { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.7; }
.eyebrow { font-family: var(--f-body); font-weight: 700; font-size: 12px; letter-spacing: 0.13em; }
.statement { font-weight: 500; font-size: clamp(28px, 3.9vw, 50px); line-height: 1.12; letter-spacing: -0.045em; max-width: 24ch; }
.hero2 .display { font-size: clamp(48px, 7.8vw, 104px); line-height: .95; letter-spacing: -0.06em; font-weight: 600; }
.hero2 .lead { font-size: clamp(17px, 1.5vw, 19px); }
.big-stat { font-weight: 600; letter-spacing: -0.07em; }
.biglist h3 { font-size: clamp(24px, 2.8vw, 34px); font-weight: 500; letter-spacing: -0.045em; line-height: 1.1; }
.biglist .k { font-family: var(--f-body); font-weight: 700; font-size: 12px; letter-spacing: .13em; }
.sector-index .t { font-size: clamp(30px, 4.6vw, 60px); font-weight: 500; letter-spacing: -0.055em; }
.page-hero .h1 { font-size: clamp(40px, 5.8vw, 76px); letter-spacing: -0.055em; line-height: 1; }
.price, .out-big, .kpi-row b, .spec dd, .award .place, .u-price { font-weight: 600; letter-spacing: -0.045em; }
.cap .cap-k, .case-meta, .facts dt, .spec dt, .address .k, .press .src, .award .src, .compare thead th, .site-footer h2, .step .kicker, .cmp-tag, .timeline time, .chat-head, .msg.eco .who, .tower-top, .bleed figcaption { font-family: var(--f-body); font-weight: 700; letter-spacing: .12em; }
.btn { font-size: 15px; font-weight: 600; min-height: 46px; }
.nav > a, .nav summary { font-size: 14px; font-weight: 600; }
.site-header { background: color-mix(in srgb, var(--night) 82%, transparent); }

/* Barra de clientes estática, sobria */
.trustbar { background: var(--night); border-bottom: 1px solid var(--night-line); }
.trustbar .wrap { display: grid; gap: 18px; padding-block: 28px; }
@media (min-width: 900px) { .trustbar .wrap { grid-template-columns: 200px minmax(0, 1fr); align-items: center; } }
.trustbar .lbl { font-size: 12px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--night-muted); }
.trustbar ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 36px; }
.trustbar li { font-family: var(--f-display); font-weight: 600; font-size: 18px; letter-spacing: -.02em; color: #aeb3cf; }

/* Consola del producto */
.console { border-radius: 16px; border: 1px solid var(--night-line); background: #0c1024; color: var(--night-ink); overflow: hidden; box-shadow: 0 40px 100px -40px rgba(91,75,230,.45); }
.console-bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--night-line); background: #0f1430; }
.console-bar .dots { display: flex; gap: 6px; } .console-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: #2a3058; }
.console-bar .url { flex: 1; font-family: var(--f-mono); font-size: 12px; color: var(--night-muted); background: #0b0f22; border: 1px solid var(--night-line); border-radius: 8px; padding: 6px 10px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.console-body { display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .console-body { grid-template-columns: 200px minmax(0, 1fr); } }
.console-side { display: none; padding: 18px 12px; border-right: 1px solid var(--night-line); gap: 4px; align-content: start; }
@media (min-width: 1000px) { .console-side { display: grid; } }
.console-side span { font-size: 14px; color: var(--night-muted); padding: 8px 10px; border-radius: 8px; }
.console-side span.on { background: #1a2046; color: #fff; }
.console-main { padding: clamp(16px, 2.4vw, 26px); display: grid; gap: 18px; min-width: 0; }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 760px) { .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kpi { border: 1px solid var(--night-line); border-radius: 12px; padding: 14px; display: grid; gap: 4px; background: #0f1330; }
.kpi span { font-size: 12.5px; color: var(--night-muted); }
.kpi b { font-family: var(--f-display); font-size: 26px; font-weight: 600; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.kpi em { font-style: normal; font-size: 12.5px; color: #3cc58f; }
.panels { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .panels { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.panel { border: 1px solid var(--night-line); border-radius: 12px; background: #0f1330; padding: 14px 16px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.panel h4, .panel-t { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--night-muted); font-family: var(--f-body); }
.inv { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.inv th { text-align: left; font-weight: 600; color: var(--night-muted); font-size: 12px; padding: 6px 8px; border-bottom: 1px solid var(--night-line); }
.inv td { padding: 9px 8px; border-bottom: 1px solid #1a1f3d; font-variant-numeric: tabular-nums; white-space: nowrap; }
.inv td.m { font-family: var(--f-mono); font-size: 13px; }
.inv tr:last-child td { border-bottom: 0; }
.bars { list-style: none; display: grid; gap: 10px; }
.bars li { display: grid; gap: 5px; font-size: 13.5px; }
.bars .row2 { display: flex; justify-content: space-between; gap: 8px; }
.bars .row2 b { font-family: var(--f-mono); font-weight: 400; color: var(--night-muted); }
.bars .track { height: 6px; border-radius: 6px; background: #1a1f3d; overflow: hidden; }
.bars .track i { display: block; height: 100%; border-radius: 6px; background: var(--grad); }
.integrations { display: flex; flex-wrap: wrap; gap: 8px; }
.integrations span { font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }

/* Torre 3D */
.scrolly-stage { position: sticky; }
.tower3d { position: absolute; inset: 0; }
.tower3d canvas { width: 100% !important; height: 100% !important; display: block; cursor: grab; }
.tower3d canvas:active { cursor: grabbing; }
.tower-hint { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); z-index: 2; font-size: 12px; font-weight: 600; color: var(--night-muted); background: rgba(8,11,23,.6); border: 1px solid var(--night-line); padding: 6px 12px; border-radius: 999px; white-space: nowrap; pointer-events: none; }
[data-stage][data-mode="0"] .tower-hint { opacity: 0; }
@media (max-width: 979px) { .scrolly-stage { position: relative; } }

@media (min-width: 980px) {
  .scrolly-stage .stage-ui { top: auto; bottom: 28px; left: 16px; right: auto; width: 250px; }
  .tower-hint { left: 16px; transform: none; top: 20px; }
}

/* Marquesina de clientes */
.marquee2 { background: var(--night); border-bottom: 1px solid var(--night-line); padding-block: 26px 30px; overflow: hidden; }
.marquee2 .lbl { font-size: 12px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--night-muted); }
.mq-track { position: relative; margin-top: 16px; }
.mq-track::before, .mq-track::after { content: ""; position: absolute; top: 0; bottom: 0; width: 10%; z-index: 1; pointer-events: none; }
.mq-track::before { left: 0; background: linear-gradient(90deg, var(--night), transparent); }
.mq-track::after { right: 0; background: linear-gradient(270deg, var(--night), transparent); }
.mq-track ul { display: flex; gap: 64px; width: max-content; list-style: none; animation: mq 70s linear infinite; }
.mq-track li { font-family: var(--f-display); font-weight: 600; font-size: clamp(20px, 2.2vw, 28px); letter-spacing: -.035em; color: #9ea3c4; white-space: nowrap; }
.mq-track li:nth-child(3n+1) { color: #eef0f8; }
.marquee2:hover .mq-track ul { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .mq-track ul { animation: none; flex-wrap: wrap; width: auto; gap: 12px 32px; padding-inline: var(--gutter); } }

/* Dos direcciones */
.now-line { font-size: 15px; color: var(--muted); }
.now-line b { color: var(--ink); font-weight: 600; }
.twoaddr { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .twoaddr { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.addr { border-radius: 22px; overflow: hidden; display: grid; grid-template-rows: auto 1fr auto; border: 1px solid var(--line); background: var(--surface); }
.addr-dig { background: var(--night); color: var(--night-ink); border-color: var(--night-line); --line: var(--night-line); --muted: var(--night-muted); --ink: var(--night-ink); }
.addr-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 22px; }
.addr-k { font-size: 12px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.live { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.live.open { color: #3cc58f; background: rgba(60,197,143,.12); }
.live.open::before { animation: blink 1.6s ease-in-out infinite; }
.live.closed { color: var(--magenta); background: color-mix(in srgb, var(--magenta) 10%, transparent); }
@keyframes blink { 50% { opacity: .25; } }
.map { position: relative; height: 400px; background: #0e1230; overflow: hidden; }
.map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pin { position: absolute; left: 45%; top: 64%; transform: translate(-50%, -100%); display: grid; justify-items: center; gap: 8px; }
.pin-card { display: grid; gap: 2px; background: #fff; color: #10132a; padding: 10px 14px; border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.35); font-size: 14px; white-space: nowrap; }
.pin-card small { color: #5b6077; font-size: 12.5px; }
.pin-dot { order: 2; width: 16px; height: 16px; border-radius: 50%; background: #e7aa3d; box-shadow: 0 0 0 6px rgba(231,170,61,.25); }
.addr-rows { margin: 0; display: grid; }
.addr-rows div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 14px 22px; border-top: 1px solid var(--line); }
.addr-rows dt { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.addr-rows dd { margin: 0; font-size: 15.5px; }
.addr-phys .addr-rows dd { color: var(--muted); }
.phone-stage { position: relative; height: 430px; overflow: hidden; display: grid; justify-items: center; align-items: start; padding-top: 18px;
  background: radial-gradient(70% 90% at 50% 10%, #2a2466 0%, #080b17 70%); }
.phone { width: 206px; height: 364px; border-radius: 34px; background: #05070f; border: 1px solid #2b3160; padding: 10px; box-shadow: 0 30px 60px -20px rgba(91,75,230,.6); display: grid; grid-template-rows: auto 1fr; gap: 8px; }
.ph-url { font-family: var(--f-mono); font-size: 10.5px; color: #c9cce0; background: #12163a; border-radius: 10px; padding: 7px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-url .lock { color: #3cc58f; font-size: 8px; vertical-align: 1px; }
.ph-screen { position: relative; border-radius: 22px; overflow: hidden; background: #0b0f22; }
.ph-screen img, .ph-screen .cmp-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }
.ph-chips { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.ph-chips span { font-size: 10.5px; font-weight: 600; padding: 5px 9px; border-radius: 999px; background: rgba(8,11,23,.7); color: #fff; backdrop-filter: blur(6px); }
.ph-chips span:first-child { background: #fff; color: #10132a; }
.ph-sheet { position: absolute; left: 8px; right: 8px; bottom: 8px; background: rgba(15,19,40,.94); border: 1px solid #2b3160; border-radius: 16px; padding: 10px 12px; display: grid; gap: 6px; }
.ph-sheet .u-code { font-family: var(--f-mono); font-size: 12px; }
.ph-sheet .u-price { font-family: var(--f-display); font-size: 19px; font-weight: 600; letter-spacing: -.04em; }
.ph-sheet .chip { font-size: 10.5px; padding: 3px 8px; }
.ph-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ph-actions span { text-align: center; font-size: 11px; font-weight: 700; padding: 7px 4px; border-radius: 999px; }
.pa1 { background: #fff; color: #10132a; } .pa2 { background: #5646e0; color: #fff; }
.ph-toast { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; background: #fff; color: #10132a; font-size: 13px; font-weight: 600; padding: 9px 14px; border-radius: 999px; box-shadow: 0 12px 30px rgba(0,0,0,.4); white-space: nowrap; transition: opacity .35s ease; }
.ph-toast .dot { width: 8px; height: 8px; border-radius: 50%; background: #3cc58f; }

.map { height: 430px; }
@media (max-width: 520px) { .addr-rows div { grid-template-columns: 96px minmax(0, 1fr); padding: 12px 18px; } .addr-head { padding: 16px 18px; } }

/* Demo a pantalla completa, dentro de la página */
.demo-expand { background: transparent; border: 1px solid var(--night-line); color: var(--night-ink); font-weight: 600; font-size: 14px; padding: 8px 14px; border-radius: 999px; cursor: pointer; }
.demo-expand:hover { border-color: #fff; }
.demo.is-expanded { position: fixed; inset: 0; z-index: 200; border-radius: 0; border: 0; display: grid; grid-template-rows: 1fr auto; }
.demo.is-expanded .demo-stage { aspect-ratio: auto; height: 100%; }
.demo:fullscreen { display: grid; grid-template-rows: 1fr auto; }
.demo:fullscreen .demo-stage { aspect-ratio: auto; height: 100%; }
.preview-note { color: var(--night-muted); max-width: 34ch; }

/* Loops de video */
.loop-frame { margin: 0; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: #080b17; aspect-ratio: 16 / 9; max-width: 100%; }
.night .loop-frame { border-color: var(--night-line); }
.loopv { width: 100%; height: 100%; display: block; object-fit: cover; }
.hero-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; opacity: 0; transition: opacity .8s ease; }
.hero-vid.is-playing { opacity: 1; }
@media (max-width: 760px) { .hero-vid { object-position: 58% 30%; } }
.cmp-after .hero-vid { z-index: 0; }
.cmp-after::after { z-index: 1; }
.has-bg { position: relative; overflow: hidden; }
.cta-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s ease; }
.cta-bg.is-playing { opacity: .38; }
.has-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,11,23,.95) 0%, rgba(8,11,23,.7) 55%, rgba(8,11,23,.35) 100%); }
.has-bg .wrap { position: relative; z-index: 1; }

/* =====================================================================
   v6 · navegación entre landing y subpáginas
   ===================================================================== */
:root {
  --accent: #9a8fff; --accent-ink: #5646e0;
  --doc-bg: #f3f3f7; --doc-surface: #ffffff; --doc-ink: #12142a; --doc-muted: #5b6077; --doc-line: #dcdee8; --doc-violet: #5646e0;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --doc-bg: #10142a; --doc-surface: #161b36; --doc-ink: #eceef7; --doc-muted: #a2a8c4; --doc-line: #262b48; --doc-violet: #8f84ff; --accent-ink: #8f84ff; } }
:root[data-theme="dark"] { --doc-bg: #10142a; --doc-surface: #161b36; --doc-ink: #eceef7; --doc-muted: #a2a8c4; --doc-line: #262b48; --doc-violet: #8f84ff; --accent-ink: #8f84ff; }
[data-sector="residencial"] { --accent: #9a8fff; --accent-ink: #5646e0; }
[data-sector="industrial"] { --accent: #f0b44c; --accent-ink: #9a6508; }
[data-sector="hoteles"] { --accent: #3fd4c2; --accent-ink: #0f7f73; }
[data-sector="comercial"] { --accent: #ff8a66; --accent-ink: #c2462a; }

/* Barra de sección */
.subnav { border-top: 1px solid rgba(255,255,255,.07); background: rgba(12,15,32,.94); }
.sub-row { display: flex; align-items: center; gap: 16px; height: 48px; }
.sub-back { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: #eef0f8; text-decoration: none; padding: 7px 12px 7px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); white-space: nowrap; flex: none; }
.sub-back:hover { background: rgba(255,255,255,.08); }
.sub-label { font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #9ca2bf; flex: none; }
.sub-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.sub-tabs::-webkit-scrollbar { display: none; }
.sub-tabs a { position: relative; font-size: 14px; font-weight: 600; color: #c9cce0; text-decoration: none; padding: 13px 12px; white-space: nowrap; }
.sub-tabs a:hover { color: #fff; }
.sub-tabs a[aria-current="page"] { color: #fff; }
.sub-tabs a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; border-radius: 2px; background: var(--accent); }
@media (max-width: 640px) { .sub-label { display: none; } .sub-row { gap: 8px; } }
.sub-toc { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-block: 0 10px; }
.sub-toc::-webkit-scrollbar { display: none; }
.sub-toc a { font-size: 13px; font-weight: 600; color: #aeb3cf; text-decoration: none; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.1); white-space: nowrap; }
.sub-toc a.on { background: #fff; color: #10132a; border-color: #fff; }
.has-subnav { --header-h: 117px; }
html:has(.has-subnav) { scroll-padding-top: 180px; }
.doc .subnav { background: rgba(247,247,251,.97); border-top-color: rgba(16,19,42,.08); border-bottom: 1px solid rgba(16,19,42,.08); }
.doc .sub-back { color: #10132a; border-color: rgba(16,19,42,.16); }
.doc .sub-back:hover { background: rgba(16,19,42,.05); }
.doc .sub-label { color: #6b7090; }
.doc .sub-tabs a { color: #4a4f6c; }
.doc .sub-tabs a:hover, .doc .sub-tabs a[aria-current="page"] { color: #10132a; }
.doc .sub-toc a { color: #4a4f6c; border-color: rgba(16,19,42,.12); background: #fff; }
.doc .sub-toc a.on { background: #10132a; color: #fff; border-color: #10132a; }
.site-header .sub-toc { padding-block: 0 10px; }

/* Acento de sector */
[data-sector] .eyebrow, [data-sector] .biglist .k { color: var(--accent-ink); }
[data-sector] .night .eyebrow, [data-sector] .page-hero .eyebrow { color: var(--accent); }
[data-sector] .page-hero::before { background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 38%, transparent), transparent 70%); }
[data-sector] .divider-grad { background: linear-gradient(90deg, var(--accent), transparent); }
body:not([data-sector=""]) .door[data-sector=""] .door-glow, .door .door-glow { background: radial-gradient(80% 90% at 30% 20%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 70%), linear-gradient(135deg, #171c46, #0b0f22); }

/* Registro "ficha técnica" */
.doc .page-hero.night { --ink: var(--doc-ink); --muted: var(--doc-muted); --line: var(--doc-line); --surface: var(--doc-surface); --violet: var(--doc-violet); background: var(--doc-bg); color: var(--doc-ink); color-scheme: normal; border-bottom: 1px solid var(--doc-line); padding-block: clamp(36px, 5vw, 64px); }
.doc .page-hero::before { display: none; }
.doc .page-hero .lead, .doc .page-hero .breadcrumb, .doc .page-hero .breadcrumb a { color: var(--doc-muted); }
.doc .page-hero .breadcrumb a:hover { color: var(--doc-ink); }
.doc .page-hero .eyebrow { color: var(--doc-violet); }
.doc .page-hero .btn-primary { background: var(--doc-violet); color: #fff; }
.doc .page-hero .btn-ghost { color: var(--doc-ink) !important; border-color: var(--doc-line) !important; }
.doc .page-hero .h1 { font-size: clamp(36px, 4.6vw, 60px); max-width: 22ch; }
.doc main .section { padding-block: clamp(56px, 7vw, 96px); }
.doc main .section-head { margin-bottom: clamp(28px, 3.6vw, 44px); }

/* Selector de sector */
.picker-sec { background: var(--night); color: var(--night-ink); border-bottom: 1px solid var(--night-line); }
.picker-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.picker-sec .h3 { color: #fff; }
.picker { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .picker { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pick { position: relative; display: grid; grid-template-rows: 120px auto; border-radius: 16px; overflow: hidden; border: 1px solid var(--night-line); background: var(--night-2); color: #eef0f8; text-decoration: none; transition: transform .2s ease, border-color .2s ease; }
.pick:hover { transform: translateY(-3px); border-color: var(--accent); }
.pick-media { position: relative; overflow: hidden; background: radial-gradient(90% 100% at 30% 10%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 70%), linear-gradient(135deg, #1a1f4a, #0b0f22); }
.pick-media img { width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.pick-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(15,19,40,.9)); }
.pick-txt { display: grid; gap: 2px; padding: 12px 16px 16px; }
.pick-txt b { font-family: var(--f-display); font-size: 19px; font-weight: 600; letter-spacing: -.03em; }
.pick-txt span { font-size: 13.5px; color: var(--night-muted); line-height: 1.4; }
.pick-go { position: absolute; top: 12px; right: 14px; color: #fff; font-size: 18px; z-index: 1; }
.pick::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--accent); z-index: 2; }

/* Puertas a subpáginas */
.doors { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); margin-top: 28px; }
@media (min-width: 760px) { .doors { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.door { position: relative; display: grid; grid-template-columns: 132px minmax(0, 1fr); align-items: stretch; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; text-align: left; font: inherit; cursor: pointer; padding: 0; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.door:hover { transform: translateY(-2px); border-color: var(--accent-ink); box-shadow: 0 18px 40px -26px rgba(18,20,42,.5); }
.night .door:hover { border-color: var(--accent); }
.door-media { position: relative; overflow: hidden; min-height: 112px; }
.door-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.door-glow { position: absolute; inset: 0; }
.door-media img + .door-glow { display: none; }
.door-txt { position: relative; display: grid; gap: 4px; padding: 18px 48px 18px 20px; align-content: center; }
.door-t { font-family: var(--f-display); font-size: 19px; font-weight: 600; letter-spacing: -.03em; line-height: 1.2; }
.door-d { font-size: 14px; color: var(--muted); line-height: 1.45; }
.door-go { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 20px; color: var(--accent-ink); transition: transform .2s ease; }
.night .door-go { color: var(--accent); }
.door:hover .door-go { transform: translate(4px, -50%); }
.door-next, .door-home { grid-template-columns: minmax(0, 1fr); }
.door-home .door-go { right: auto; left: auto; position: static; transform: none; order: -1; font-size: 18px; }
.door-next { background: var(--night); color: var(--night-ink); border-color: var(--night-line); --muted: var(--night-muted); }
.door-next .eyebrow { color: var(--accent); }
.door-next .door-go { color: var(--accent); }
.nextstep { border-top: 1px solid var(--line); }

/* Menú con vista previa */
.nav .menu { min-width: 560px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 10px; }
.nav .menu a { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: center; }
.mthumb { width: 64px; height: 48px; border-radius: 8px; overflow: hidden; background: radial-gradient(90% 100% at 30% 10%, color-mix(in srgb, var(--accent) 60%, transparent), transparent 70%), linear-gradient(135deg, #1a1f4a, #0b0f22); display: block; }
.mthumb img { width: 100%; height: 100%; object-fit: cover; }
.mtxt { display: grid; gap: 1px; }
.mtxt small { font-size: 11.5px; color: var(--accent); font-weight: 600; }

/* Panel lateral de precios */
dialog.drawer { margin: 0 0 0 auto; height: 100%; max-height: 100%; width: min(760px, 100%); max-width: 100%; border: 0; padding: 0; background: var(--bg); color: var(--ink); box-shadow: -30px 0 80px -20px rgba(0,0,0,.5); }
dialog.drawer::backdrop { background: rgba(8,11,23,.6); backdrop-filter: blur(3px); }
dialog.drawer[open] { animation: slidein .35s cubic-bezier(.2,.7,.2,1); }
@keyframes slidein { from { transform: translateX(40px); opacity: .4; } to { transform: none; opacity: 1; } }
.drawer-head { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: start; gap: 16px; padding: 22px clamp(18px, 3vw, 32px); background: var(--bg); border-bottom: 1px solid var(--line); }
.drawer-body { padding: clamp(18px, 3vw, 32px); }
.drawer .calc { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .drawer .calc { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* v6.1 */
.door-fig { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; font-family: var(--f-display); font-weight: 600; font-size: 56px; letter-spacing: -.06em; color: #fff; text-shadow: 0 0 30px color-mix(in srgb, var(--accent) 70%, transparent); }
.door-fig ~ .door-glow { display: block; }
.drawer .calc, .drawer .calc { grid-template-columns: minmax(0, 1fr) !important; }
.drawer .out-big { font-size: clamp(40px, 7vw, 56px); }
.drawer-body .calc-out { overflow-wrap: anywhere; }
.pick-fig { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-display); font-weight: 600; font-size: 44px; letter-spacing: -.05em; color: #fff; text-shadow: 0 0 34px color-mix(in srgb, var(--accent) 80%, transparent); z-index: 1; }
.nextstep-h { margin: 0 0 4px; font-family: var(--f-display); font-weight: 600; font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -.04em; }
.nextstep .doors { margin-top: 18px; }
.door-next .door-txt, .door-home .door-txt { padding-block: 26px; }

/* ---------- v7 · mapa de la dirección física ---------- */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.addr-phys { --cm-bg: #eceef4; --cm-block: #e0e3ec; --cm-lot: #d3d7e3; --cm-lot-t: #c4c9d9; --cm-park: #d4e7d9; --cm-tree: #b3d3bd; --cm-st: #f9fafc; --cm-av: #fff6da; --cm-diag: #fbe6a4; --cm-diag-case: #e6cb82; --cm-label: #7d839e; --cm-halo: #f4f5f9; --cm-ink: #10132a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .addr-phys { --cm-bg: #0f1329; --cm-block: #161b36; --cm-lot: #1e2446; --cm-lot-t: #262d55; --cm-park: #14302b; --cm-tree: #1d4a3d; --cm-st: #0b0e20; --cm-av: #2a2a45; --cm-diag: #3a3350; --cm-diag-case: #4d4262; --cm-label: #7f86a8; --cm-halo: #0f1329; --cm-ink: #eef0f8; } }
:root[data-theme="dark"] .addr-phys { --cm-bg: #0f1329; --cm-block: #161b36; --cm-lot: #1e2446; --cm-lot-t: #262d55; --cm-park: #14302b; --cm-tree: #1d4a3d; --cm-st: #0b0e20; --cm-av: #2a2a45; --cm-diag: #3a3350; --cm-diag-case: #4d4262; --cm-label: #7f86a8; --cm-halo: #0f1329; --cm-ink: #eef0f8; }
.map { height: 400px; background: var(--cm-bg); }
.citymap .cm-bg { fill: var(--cm-bg); }
.citymap .cm-block rect { fill: var(--cm-block); }
.citymap .cm-lot rect { fill: var(--cm-lot); }
.citymap .cm-lot rect.t { fill: var(--cm-lot-t); }
.citymap .cm-park rect { fill: var(--cm-park); }
.citymap .cm-tree circle { fill: var(--cm-tree); }
.citymap .cm-st { stroke: var(--cm-st); stroke-width: 8; fill: none; }
.citymap .cm-av { stroke: var(--cm-av); stroke-width: 15; fill: none; }
.citymap .cm-diag-case { stroke: var(--cm-diag-case); stroke-width: 21; fill: none; stroke-linecap: round; }
.citymap .cm-diag { stroke: var(--cm-diag); stroke-width: 16; fill: none; stroke-linecap: round; }
.citymap .cm-label { font: 700 9px/1 var(--f-body); letter-spacing: .16em; fill: var(--cm-label); paint-order: stroke; stroke: var(--cm-halo); stroke-width: 3px; }
.citymap .cm-label-diag { fill: #8a6a1c; stroke: var(--cm-diag); }
.citymap .cm-site { fill: url(#cm-hatch); stroke: var(--accent-ink); stroke-width: 2; }
.citymap .cm-hatch { stroke: var(--accent); stroke-width: 2.4; opacity: .55; }
.citymap .cm-iso-fill { fill: var(--accent); opacity: .09; }
.citymap .cm-iso-line { fill: none; stroke: var(--accent-ink); stroke-width: 1.6; stroke-dasharray: 5 6; opacity: .8; animation: iso-dash 18s linear infinite; }
@keyframes iso-dash { to { stroke-dashoffset: -220; } }
.citymap .cm-chip rect { fill: var(--cm-ink); }
.citymap .cm-chip text { font: 600 11px/1 var(--f-body); fill: var(--cm-bg); }
.citymap .cm-scale path { stroke: var(--cm-label); stroke-width: 1.5; fill: none; }
.citymap .cm-scale text, .citymap .cm-north text { font: 500 10px/1 var(--f-mono); fill: var(--cm-label); }
.citymap .cm-north circle { fill: var(--cm-halo); stroke: var(--cm-lot-t); }
.citymap .cm-north path { fill: var(--cm-ink); }
.pin { transform: translate(-50%, calc(-100% + 17px)); gap: 10px; z-index: 2; }
.pin-mark { order: 2; position: relative; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--cm-ink); color: var(--cm-bg); box-shadow: 0 6px 18px rgba(16,19,42,.35); }
.pin-mark::before, .pin-mark::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; animation: pin-pulse 2.8s ease-out infinite; }
.pin-mark::after { animation-delay: 1.4s; }
@keyframes pin-pulse { 0% { transform: scale(.7); opacity: .8; } 100% { transform: scale(2.4); opacity: 0; } }
.pin-card { box-shadow: 0 14px 34px -8px rgba(16,19,42,.35); border: 1px solid rgba(16,19,42,.06); }
.map-note { position: absolute; right: 14px; bottom: 12px; font: 500 10.5px/1 var(--f-mono); color: var(--cm-label); letter-spacing: .04em; }
.pin-dot { display: none; }
@media (prefers-reduced-motion: reduce) { .citymap .cm-iso-line, .pin-mark::before, .pin-mark::after { animation: none; } }

/* barra de 24 horas */
.hbar { display: grid; gap: 8px; padding: 16px 22px 14px; border-top: 1px solid var(--line); }
.hb-top { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; font-weight: 600; }
.hb-top .mono { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.hb-track { position: relative; height: 10px; border-radius: 99px; background: color-mix(in srgb, var(--ink) 9%, transparent); }
.hb-on { position: absolute; top: 0; bottom: 0; border-radius: 99px; background: var(--accent-ink); opacity: .85; }
.always .hb-on { background: linear-gradient(90deg, #3cc58f, #5fd8a8); opacity: 1; }
.hb-now { position: absolute; top: -5px; width: 3px; height: 20px; margin-left: -1.5px; border-radius: 3px; background: var(--ink); box-shadow: 0 0 0 3px var(--surface); }
.addr-dig .hb-now { box-shadow: 0 0 0 3px var(--night); }
.hb-ticks { position: relative; height: 12px; font: 500 10.5px/1 var(--f-mono); color: var(--muted); }
.hb-ticks span { position: absolute; transform: translateX(-50%); }
.hb-ticks span:first-child { transform: none; }
.hb-ticks span:last-child { transform: translateX(-100%); }

/* ---------- v7 · selector de sector que adapta la home ---------- */
.picker-sub { margin: 0; flex-basis: 100%; color: var(--night-muted); font-size: 15px; }
.pick { cursor: pointer; }
.pick-btn { position: absolute; inset: 0; z-index: 3; background: none; border: 0; padding: 0; cursor: pointer; border-radius: inherit; }
.pick-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.pick-link { position: relative; z-index: 4; justify-self: start; margin: -6px 16px 14px; font-size: 13px; font-weight: 600; color: var(--accent); text-decoration: none; }
.pick-link:hover { text-decoration: underline; }
.pick-check { position: absolute; top: 12px; right: 12px; z-index: 2; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(8,11,23,.6); border: 1px solid rgba(255,255,255,.3); color: transparent; font-size: 14px; font-weight: 700; transition: background .2s, color .2s; }
.pick.is-on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 20px 50px -24px color-mix(in srgb, var(--accent) 70%, transparent); }
.pick.is-on .pick-check { background: var(--accent); border-color: var(--accent); color: #10132a; }
.picker.has-choice .pick:not(.is-on) { opacity: .62; }
.picker.has-choice .pick:not(.is-on):hover { opacity: 1; }
.pick-go { display: none; }
.sector-pill { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 60; display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; border-radius: 999px; background: rgba(12,15,32,.92); backdrop-filter: blur(12px); color: #eef0f8; border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); box-shadow: 0 16px 40px -12px rgba(0,0,0,.5); font-size: 14px; white-space: nowrap; animation: pill-in .35s cubic-bezier(.2,.7,.2,1); }
.sector-pill b { color: var(--accent); font-weight: 600; }
.sector-pill a { color: #fff; font-weight: 600; text-decoration: none; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.1); }
.sector-pill a:hover { background: rgba(255,255,255,.18); }
.sector-pill button { width: 30px; height: 30px; border-radius: 50%; border: 0; background: transparent; color: #aeb3cf; font-size: 18px; cursor: pointer; }
.sector-pill button:hover { background: rgba(255,255,255,.1); color: #fff; }
.sp-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); }
@keyframes pill-in { from { opacity: 0; transform: translate(-50%, 12px); } }
@media (max-width: 520px) { .sector-pill { font-size: 13px; gap: 8px; left: 12px; right: 12px; transform: none; justify-content: space-between; } @keyframes pill-in { from { opacity: 0; } } }
[data-sv].sv-swap { animation: sv-in .45s ease; }
@keyframes sv-in { from { opacity: 0; transform: translateY(4px); } }
.pick { grid-template-rows: 120px auto auto; }
.addr { display: flex; flex-direction: column; } .addr .map { flex: 1 0 400px; } .addr .phone-stage { flex: 1 0 auto; }

.loop-frame .loopv { height: auto; aspect-ratio: 16 / 9; }
section[id], [id] > h2, h2[id] { scroll-margin-top: 0; }

/* ---------- v8 · infraestructura: dos columnas + presupuesto en una barra ---------- */
.ledger { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) { .ledger { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ledger-col { display: grid; gap: 18px; align-content: start; padding: 26px; border-radius: 18px; border: 1px solid var(--night-line); background: #0d1127; }
.ledger-mkt { opacity: .78; }
.ledger-infra { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 12%, #0f1330), #0d1127 70%); border-color: color-mix(in srgb, var(--accent) 45%, var(--night-line)); }
.ledger-k { font-family: var(--f-display); font-weight: 600; font-size: 21px; letter-spacing: -.03em; color: #fff; }
.ledger-mkt .ledger-k { color: #c9cce0; }
.ledger dl { margin: 0; display: grid; }
.ledger dl div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 14px; padding: 12px 0; border-top: 1px solid var(--night-line); }
.ledger dt { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--night-muted); padding-top: 3px; }
.ledger dd { margin: 0; font-size: 16px; color: #eef0f8; }
.ledger-mkt dd { color: #b9bdd4; }
.ledger-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ledger-chips span { font-size: 13.5px; font-weight: 600; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--night-line); color: #c9cce0; }
.ledger-chips .is-koppi { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 8px 24px -10px rgba(123,70,196,.8); }
@media (max-width: 520px) { .ledger dl div { grid-template-columns: minmax(0, 1fr); gap: 4px; } .ledger-col { padding: 20px; } }

.budget { display: grid; gap: 26px; padding: clamp(22px, 3vw, 36px); border-radius: 20px; border: 1px solid var(--night-line); background: #0b0f24; }
.budget-head { display: grid; gap: 22px; }
@media (min-width: 980px) { .budget-head { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: end; } }
.budget-in { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .budget-in { grid-template-columns: 1fr 1.2fr 1.2fr; } }
.budget-in .field:last-child { grid-column: 1 / -1; }
@media (min-width: 640px) { .budget-in .field:last-child { grid-column: auto; } }
.budget-in input[type=range] { margin-top: 14px; }
.bbar-wrap { display: grid; gap: 10px; }
.bbar-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; color: var(--night-muted); }
.bbar-total b { font-size: clamp(18px, 2.2vw, 24px); color: #fff; font-weight: 500; }
.bbar { display: flex; height: 64px; border-radius: 12px; overflow: hidden; gap: 2px; background: #0b0f24; }
.bbar i { position: relative; flex: var(--w) 0 0; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 8px 10px; overflow: hidden; font-style: normal; }
.bbar i span { font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,.88); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bbar i em { font: 500 12px/1.2 var(--f-mono); font-style: normal; color: rgba(255,255,255,.6); }
.s1 { background: #262c55; } .s2 { background: #30376a; } .s3 { background: #3a4280; } .s4 { background: #454d92; } .s5 { background: #2a6f5d; }
.s6 { background: #e7aa3d; } .s7 { background: linear-gradient(180deg, #d91a9a, #3767e3); }
.bbar .s6, .bbar .s7 { padding: 0; }
.bbar .s7 { flex-basis: 0; min-width: 3px; box-shadow: 0 0 14px 2px rgba(217,26,154,.8); }
@media (max-width: 720px) { .bbar { height: 44px; } .bbar i span { display: none; } .bbar i { padding: 6px; } .bbar .s3 em, .bbar .s4 em { display: none; } }
.bbar-funnel { display: block; width: 100%; height: 34px; margin-top: -6px; }

.zoom { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); margin-top: -10px; }
@media (min-width: 760px) { .zoom { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.zoom-card { display: grid; gap: 4px; align-content: start; padding: 22px; border-radius: 16px; border: 1px solid var(--night-line); background: #0f1330; }
.z-sala { border-color: rgba(231,170,61,.35); }
.z-koppi { border-color: rgba(154,143,255,.5); background: linear-gradient(160deg, rgba(123,70,196,.18), #0f1330 60%); }
.z-k { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: #eef0f8; }
.sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.z-pct { margin: 8px 0 0; font-family: var(--f-display); font-weight: 600; font-size: clamp(38px, 4.6vw, 56px); line-height: 1; letter-spacing: -.045em; color: #fff; font-variant-numeric: tabular-nums; }
.z-amt { margin: 0 0 10px; font-size: 15px; color: var(--night-muted); }
.zoom-card ul { margin: 0; padding: 12px 0 0; list-style: none; display: grid; gap: 6px; border-top: 1px solid var(--night-line); font-size: 14.5px; color: #c9cce0; }
.z-sala ul li::before { content: "·"; margin-right: 8px; color: #e7aa3d; font-weight: 700; }
.z-koppi ul li::before { content: "✓"; margin-right: 8px; color: #3cc58f; font-weight: 700; }
.zoom-take { grid-column: 1 / -1; margin: 6px 0 0; font-family: var(--f-display); font-size: clamp(20px, 2.3vw, 27px); font-weight: 600; letter-spacing: -.035em; line-height: 1.3; color: #fff; max-width: 46ch; }
.zoom-take b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.zoom-take b.mono { font-family: var(--f-mono); font-weight: 500; letter-spacing: 0; }
.budget-note { margin: 0; font-size: 12.5px; line-height: 1.55; color: var(--night-muted); max-width: 90ch; }

/* ---------- v9 · comparación con el velador ---------- */
.guard { display: grid; gap: 22px; padding: clamp(22px, 3vw, 36px); border-radius: 20px; border: 1px solid var(--night-line); background: radial-gradient(120% 90% at 100% 0%, rgba(123,70,196,.16), transparent 60%), #0b0f24; }
.guard-head { display: grid; gap: 8px; }
.guard-head .h2 { max-width: 24ch; }
.guard-head .h2 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.guard-grid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) { .guard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.guard-col { display: grid; gap: 6px; align-content: start; padding: 24px; border-radius: 16px; border: 1px solid var(--night-line); background: #0f1330; }
.g-vel { opacity: .85; }
.g-koppi { border-color: rgba(154,143,255,.5); background: linear-gradient(160deg, rgba(123,70,196,.2), #0f1330 60%); }
.g-k { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--night-muted); }
.g-koppi .g-k { color: #c9c2ff; }
.g-price { margin: 6px 0 0; font-family: var(--f-display); font-weight: 600; font-size: clamp(36px, 4.4vw, 52px); letter-spacing: -.045em; line-height: 1; color: #fff; }
.g-price small { font-family: var(--f-body); font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--night-muted); }
.g-sub { margin: 0 0 12px; font-size: 13.5px; color: var(--night-muted); }
.guard-col ul { margin: 0; padding: 14px 0 0; list-style: none; display: grid; gap: 10px; border-top: 1px solid var(--night-line); font-size: 15px; color: #c9cce0; line-height: 1.45; }
.guard-col li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; }
.guard-col li b { color: #fff; font-weight: 600; }
.g-vel li::before { content: "×"; color: #ff8a66; font-weight: 700; }
.g-koppi li::before { content: "✓"; color: #3cc58f; font-weight: 700; }
.guard-col li { display: block; padding-left: 26px; position: relative; }
.guard-col li::before { position: absolute; left: 0; top: 0; }

/* v10 · revisión */
.doc .page-hero.has-img { --ink: #eef0f8; --muted: var(--night-muted); background: var(--night); color: #eef0f8; color-scheme: dark; border-bottom: 0; padding-block: clamp(80px, 10vw, 140px); }
.doc .page-hero.has-img .h1 { color: #fff; }
.doc .page-hero.has-img .lead, .doc .page-hero.has-img .breadcrumb, .doc .page-hero.has-img .breadcrumb a { color: rgba(238,240,248,.84); }
.doc .page-hero.has-img .eyebrow { color: var(--accent, #9a8fff); }
.doc .page-hero.has-img .btn-ghost { color: #eef0f8 !important; border-color: rgba(255,255,255,.3) !important; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .doc .subnav { background: rgba(16,20,42,.97); border-top-color: rgba(255,255,255,.07); border-bottom-color: rgba(255,255,255,.07); }
  :root:not([data-theme="light"]) .doc .sub-back { color: #eef0f8; border-color: rgba(255,255,255,.16); }
  :root:not([data-theme="light"]) .doc .sub-tabs a { color: #b9bdd4; } :root:not([data-theme="light"]) .doc .sub-tabs a[aria-current="page"], :root:not([data-theme="light"]) .doc .sub-tabs a:hover { color: #fff; }
  :root:not([data-theme="light"]) .doc .sub-toc a { background: #161b36; color: #c9cce0; border-color: #262b48; } :root:not([data-theme="light"]) .doc .sub-toc a.on { background: #eef0f8; color: #10132a; border-color: #eef0f8; } }
:root[data-theme="dark"] .doc .subnav { background: rgba(16,20,42,.97); }
:root[data-theme="dark"] .doc .sub-back, :root[data-theme="dark"] .doc .sub-tabs a[aria-current="page"] { color: #eef0f8; }
:root[data-theme="dark"] .doc .sub-toc a { background: #161b36; color: #c9cce0; border-color: #262b48; }
.sector-pill { transition: opacity .25s ease, transform .25s ease; }
.sector-pill.is-away { opacity: 0; pointer-events: none; transform: translate(-50%, 16px); }
@media (max-width: 520px) { .sector-pill.is-away { transform: translateY(16px); } }
.es-chip { display: inline-block; margin-left: 6px; padding: 1px 5px; border-radius: 4px; border: 1px solid currentColor; font: 600 9.5px/1.4 var(--f-mono); letter-spacing: .06em; opacity: .6; vertical-align: 2px; }

.hero2-copy::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; top: -140px; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(8,11,23,0), rgba(8,11,23,.78) 38%, rgba(8,11,23,.94)); }
@media (min-width: 900px) { .spec { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.spec div { align-content: start; }
@media (max-width: 600px) { table.inv th:nth-child(2), table.inv td:nth-child(2), table.inv th:nth-child(5), table.inv td:nth-child(5) { display: none; } }
.site-header { background: rgba(8,11,23,.96); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --accent-ink: #aba2ff; } :root:not([data-theme="light"]) [data-sector="residencial"] { --accent-ink: #aba2ff; } :root:not([data-theme="light"]) [data-sector="industrial"] { --accent-ink: #f0b44c; } :root:not([data-theme="light"]) [data-sector="hoteles"] { --accent-ink: #3fd4c2; } :root:not([data-theme="light"]) [data-sector="comercial"] { --accent-ink: #ff9f80; } :root:not([data-theme="light"]) .btn-primary { background: #5646e0; } }
.picker-sec .eyebrow { color: var(--accent, #9a8fff) !important; }
.live.open { color: #1f8a5f; }
.addr-dig .live.open, .night .live.open { color: #3cc58f; }
@media (max-width: 760px) { .hero2-copy::before { top: -60px; background: linear-gradient(180deg, rgba(8,11,23,0), rgba(8,11,23,.92) 22%, #080b17 40%); } }

/* ---------- v11 · salas de vendedores (smartlinks) ---------- */
.hub { position: relative; padding: clamp(18px, 3vw, 36px); border-radius: 22px; border: 1px solid var(--night-line); background: radial-gradient(60% 70% at 50% 50%, rgba(86,70,224,.16), transparent 70%), #0a0e22; overflow: hidden; }
.hub-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hub-lines path { fill: none; stroke: rgba(154,143,255,.22); stroke-width: 1.5; stroke-dasharray: 4 6; }
.hub-lines circle { filter: drop-shadow(0 0 6px currentColor); }
.hub-grid { position: relative; display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1000px) { .hub-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.45fr) minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 22px; }
  .hub-grid > .hub-ph:nth-child(2) { transform: translateY(26px); } .hub-grid > .hub-ph:nth-child(5) { transform: translateY(26px); } }
@media (max-width: 999px) { .hub-core { grid-column: 1 / -1; order: -1; } }
.hub-ph { position: relative; display: grid; gap: 7px; padding: 12px; border-radius: 22px; background: #10142e; border: 1px solid color-mix(in srgb, var(--c) 40%, #262c4d); box-shadow: 0 24px 50px -30px rgba(0,0,0,.8); transition: border-color .3s, box-shadow .3s; }
.hub-ph.is-hit { border-color: var(--c); box-shadow: 0 0 0 1px var(--c), 0 24px 60px -24px color-mix(in srgb, var(--c) 70%, transparent); }
.hp-top { display: flex; align-items: center; gap: 8px; }
.hp-av { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--c); color: #0b0f24; font: 700 11.5px/1 var(--f-body); }
.hp-who { display: grid; min-width: 0; line-height: 1.2; }
.hp-who b { font-size: 13px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp-who small { font-size: 11px; color: var(--night-muted); }
.hp-url { font-size: 10px; color: var(--night-muted); padding: 5px 8px; border-radius: 8px; background: #0b0f24; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp-shot { position: relative; height: 62px; border-radius: 10px; background: linear-gradient(160deg, color-mix(in srgb, var(--c) 45%, #1b1f45), #0f1330 70%), repeating-linear-gradient(90deg, rgba(255,255,255,.06) 0 1px, transparent 1px 14px); }
.hp-tag { position: absolute; left: 8px; bottom: 7px; font-size: 10px; font-weight: 600; color: #fff; padding: 2px 7px; border-radius: 99px; background: rgba(8,11,23,.55); }
.hp-unit { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 6px; font-size: 11px; color: #c9cce0; }
.hp-price { justify-self: end; color: #fff; transition: color .3s; }
.hp-price.flash, [data-hc-price].flash { color: #3cc58f; }
.hub .chip { font-size: 9.5px; padding: 2px 7px; }
.hp-wa { justify-self: stretch; text-align: center; font-size: 11.5px; font-weight: 600; padding: 7px; border-radius: 99px; background: #25d366; color: #06301a; }
.hp-toast { position: absolute; left: 10px; right: 10px; top: -12px; font-size: 10.5px; font-weight: 600; text-align: center; padding: 6px 8px; border-radius: 10px; background: #fff; color: #10132a; box-shadow: 0 10px 24px rgba(0,0,0,.35); opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; pointer-events: none; }
.hp-toast.on { opacity: 1; transform: none; }
.hub-core { position: relative; z-index: 1; display: grid; gap: 10px; padding: 18px; border-radius: 18px; background: #0f1330; border: 1px solid rgba(154,143,255,.45); box-shadow: 0 0 0 6px rgba(86,70,224,.08), 0 30px 70px -30px rgba(86,70,224,.6); }
.hc-k { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #c9c2ff; }
.hc-k2 { margin-top: 4px; color: var(--night-muted); }
.hc-src { display: flex; flex-wrap: wrap; gap: 6px; }
.hc-src span { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 6px; background: #161b3b; color: #c9cce0; }
.hc-t { width: 100%; border-collapse: collapse; font-size: 12px; }
.hc-t td { padding: 7px 4px; border-top: 1px solid var(--night-line); color: #eef0f8; transition: background .4s; }
.hc-t td:nth-child(2) { text-align: right; } .hc-t td:last-child { text-align: right; }
.hc-t tr.pulse td { background: rgba(86,70,224,.22); }
.hc-log { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 12px; color: #c9cce0; min-height: 3.2em; }
.hc-log li { padding: 7px 9px; border-radius: 8px; background: #141938; animation: log-in .45s ease; }
.hc-log li i { font-style: normal; color: #3cc58f; font-weight: 600; }
.hc-log li b { color: #fff; }
@keyframes log-in { from { opacity: 0; transform: translateY(-6px); } }
.sl-points { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) { .sl-points { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sl-points li { padding: 18px 20px; border-radius: 14px; border: 1px solid var(--night-line); color: #c9cce0; font-size: 15px; line-height: 1.5; }
.sl-points b { color: #fff; }
/* página de vendedores */
.roles { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) { .roles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.role-col { display: grid; gap: 14px; align-content: start; padding: 26px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); }
.role-you { border-color: var(--accent-ink, #5646e0); box-shadow: 0 0 0 1px var(--accent-ink, #5646e0); }
.role-k { font-family: var(--f-display); font-weight: 600; font-size: 22px; letter-spacing: -.03em; }
.role-you .role-k { color: var(--accent-ink, #5646e0); }
.role-list { margin: 0; padding: 0; list-style: none; display: grid; }
.role-list li { padding: 12px 0 12px 28px; border-top: 1px solid var(--line); position: relative; font-size: 16px; }
.role-list li::before { content: "·"; position: absolute; left: 6px; top: 8px; font-size: 22px; color: var(--muted); }
.role-you .role-list li::before { content: "✓"; font-size: 15px; top: 13px; color: var(--accent-ink, #5646e0); font-weight: 700; }
.v-cards { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .v-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .v-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.v-card { display: grid; gap: 8px; align-content: start; padding: 24px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.v-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--violet-soft, #ecebff); color: var(--accent-ink, #5646e0); font-weight: 700; font-size: 17px; }
.timebar-legend li.tl-key { grid-column: 1 / -1; padding: 14px 16px; border-radius: 12px; background: color-mix(in srgb, var(--accent-ink, #5646e0) 9%, transparent); border: 1px solid color-mix(in srgb, var(--accent-ink, #5646e0) 30%, transparent); }
.timebar-legend li.tl-key strong { color: var(--ink); }

.hub-grid { grid-template-columns: minmax(0, 1fr) !important; gap: 18px; }
.hub-side { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1000px) {
  .hub-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr) !important; gap: 64px; align-items: center; }
  .hub-side { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .hub-grid > .hub-ph:nth-child(2), .hub-grid > .hub-ph:nth-child(5) { transform: none; }
  .hub-side .hub-ph { grid-template-columns: 1fr 1fr; column-gap: 12px; }
  .hub-side .hub-ph .hp-top, .hub-side .hub-ph .hp-url { grid-column: 1 / -1; }
  .hub-side .hub-ph .hp-shot { grid-row: span 3; height: auto; min-height: 84px; }
  .hub-side .hub-ph .hp-wa { grid-column: 1 / -1; }
}
@media (max-width: 999px) { .hub-core { order: -1; } .hub-side .hp-shot { height: 54px; } }
@media (max-width: 520px) { .hub-side { gap: 10px; } .hub-ph { padding: 10px; border-radius: 16px; } .hp-unit { font-size: 10px; grid-template-columns: auto 1fr; } .hp-unit .chip { display: none; } .hp-url { display: none; } }
.timebar .t-sales { background: var(--ink, #10132a) !important; color: #fff !important; font-weight: 700; } @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .timebar .t-sales { background: #eef0f8 !important; color: #10132a !important; } }
.is-embedded [id] { scroll-margin-top: 0 !important; }
small.from, small.g-from { display: block; font-family: var(--f-body); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.g-price small.g-from { display: inline; margin-right: 6px; vertical-align: 8px; color: var(--night-muted); }
.panel-t { margin: 0 0 12px; }
@media (min-width: 760px) { .kpi-row.kpi-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
.ct-pair { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .ct-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.doors > .door:only-child { grid-column: 1 / -1; }
.journey { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); counter-reset: none; }
@media (min-width: 860px) { .journey { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.journey li { display: grid; gap: 6px; align-content: start; padding: 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.journey .jn { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2, #ececf3); font: 600 13px/1 var(--f-mono); color: var(--muted); }
.journey b { font-family: var(--f-display); font-size: 19px; font-weight: 600; letter-spacing: -.03em; line-height: 1.2; }
.journey span:not(.jn) { font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.journey .j-close { background: var(--ink, #10132a); border-color: transparent; color: #fff; }
.journey .j-close b { color: #fff; } .journey .j-close span:not(.jn) { color: rgba(255,255,255,.78); }
.journey .j-close .jn { background: var(--grad); color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .journey .j-close { background: #eef0f8; color: #10132a; } :root:not([data-theme="light"]) .journey .j-close b { color: #10132a; } :root:not([data-theme="light"]) .journey .j-close span:not(.jn) { color: #3b3f58; } }
.hero-sub { display: block; margin-top: .28em; font-size: .38em; line-height: 1.1; letter-spacing: -.035em; color: #fff; font-weight: 600; }
.hero-proof { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13.5px; font-weight: 600; color: #c9cce0; }
.hero-proof li { display: inline-flex; align-items: center; gap: 8px; }
.hero-proof li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #3cc58f; box-shadow: 0 0 0 3px rgba(60,197,143,.18); }
@media (max-width: 760px) { .hero-sub { font-size: .5em; } }

/* v12: calculadora por sector */
.opts-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.calc-send { width: 100%; margin-top: 20px; justify-content: center; }
.fict-note { margin-top: 10px; font-size: 13px; color: var(--muted); }
.night .fict-note { color: var(--night-muted); }
.table-wrap { overflow-x: auto; }
.ptable { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.ptable th, .ptable td { text-align: left; padding: 14px 12px; border-top: 1px solid var(--line); vertical-align: top; }
.ptable thead th { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-top: 0; }
.ptable tbody th a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.calc-how { border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; background: var(--surface); }
.calc-how summary { cursor: pointer; font-weight: 600; }
.calc-how .a p { margin-top: 10px; font-size: 15px; color: var(--muted); }
.qk-wrap { display: grid; gap: 40px; }
.qk-wrap > * { max-width: 880px; }
.qk-canon { display: grid; gap: 14px; padding: 28px; border-radius: 16px; background: var(--violet-soft); }
.qk-toc ol { columns: 2; column-gap: 32px; padding-left: 20px; font-size: 15px; }
.qk-toc li { margin-bottom: 8px; break-inside: avoid; }
.qk { display: grid; gap: 10px; padding-top: 24px; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.qk p { color: var(--muted); }
@media (max-width: 640px) { .qk-toc ol { columns: 1; } }
