/* ═══════════════════════════════════════════════════════════════════════════
   NeoWeb v3 — sistema de temas
   Un solo HTML, tres caras. Los componentes solo usan tokens (variables); cada
   tema define sus tokens y, al final del archivo, su «firma» (lo que no se
   puede expresar con un color: filetes, tramas, sombras de tinta, cabeceras).
     · editorial — estudio de diseño: marfil, tinta, granate, filetes finos.
     · periodico — portada de diario con viñetas: papel prensa, tinta, rojo de
                   imprenta, tramas de puntos y sombras duras.
     · neon      — la identidad de siempre, más sobria.
   Contraste: scripts/v3-contraste.mjs comprueba los pares de texto (AA).
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── 1. Tokens ─────────────────────────────────────────────────────────── */
:root,
:root[data-theme="editorial"] {
  color-scheme: light;
  --bg: #F4EFE6;
  --bg-alt: #ECE5D7;
  --surface: #FBF8F1;
  --surface-2: #F1EADD;
  --ink: #1D1B17;
  --ink-2: #3B362E;
  --muted: #625A4E;
  --line: #D6CBB7;
  --line-strong: #1D1B17;
  --accent: #7B2D26;
  --on-accent: #FBF8F1;
  --accent-text: #7B2D26;
  --accent-soft: rgba(123, 45, 38, .07);
  --accent-2: #8C6B2F;
  --ok: #2F5D3A;
  --highlight: rgba(140, 107, 47, .18);
  --focus: #7B2D26;
  --radius: 3px;
  --radius-lg: 4px;
  --btn-radius: 0;
  --shadow: none;
  --shadow-lift: 0 18px 40px -28px rgba(29, 27, 23, .45);
  --f-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-kicker: "Inter", system-ui, sans-serif;
  --f-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --display-w: 420;
  --display-ls: -0.022em;
  --display-lh: 1.04;
  --kicker-ls: .18em;
  --border-w: 1px;
}

:root[data-theme="periodico"] {
  color-scheme: light;
  --bg: #EFE7D6;
  --bg-alt: #E5DAC3;
  --surface: #F8F2E4;
  --surface-2: #EBE1CC;
  --ink: #15130F;
  --ink-2: #2B2720;
  --muted: #4A443A;
  --line: #15130F;
  --line-strong: #15130F;
  --accent: #B1241C;
  --on-accent: #FFF8EC;
  --accent-text: #9E1F18;
  --accent-soft: rgba(177, 36, 28, .08);
  --accent-2: #F2C230;
  --ok: #1F5A2E;
  --highlight: #F4C842;
  --focus: #B1241C;
  --radius: 2px;
  --radius-lg: 3px;
  --btn-radius: 2px;
  --shadow: 5px 5px 0 var(--ink);
  --shadow-lift: 8px 8px 0 var(--ink);
  --f-display: "Playfair Display", "Bodoni 72", Didot, Georgia, serif;
  --f-body: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --f-kicker: "Oswald", "Arial Narrow", "Helvetica Neue", sans-serif;
  --f-mono: "Courier New", Courier, monospace;
  --f-masthead: "UnifrakturMaguntia", "Old English Text MT", serif;
  --display-w: 900;
  --display-ls: -0.012em;
  --display-lh: 1.0;
  --kicker-ls: .12em;
  --border-w: 2.5px;
}

:root[data-theme="neon"] {
  color-scheme: dark;
  --bg: #0A0A0F;
  --bg-alt: #0E0E15;
  --surface: #13131B;
  --surface-2: #1A1A25;
  --ink: #F2F3F5;
  --ink-2: #C8CAD2;
  --muted: #9C9FAA;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .24);
  --accent: #00E87B;
  --on-accent: #03140B;
  --accent-text: #2EF294;
  --accent-soft: rgba(0, 232, 123, .08);
  --accent-2: #A78BFA;
  --ok: #2EF294;
  --highlight: rgba(0, 232, 123, .16);
  --focus: #00E87B;
  --radius: 14px;
  --radius-lg: 20px;
  --btn-radius: 999px;
  --shadow: none;
  --shadow-lift: 0 0 0 1px rgba(0, 232, 123, .35), 0 24px 60px -30px rgba(0, 232, 123, .45);
  --f-display: "Inter", system-ui, -apple-system, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, sans-serif;
  --f-kicker: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --display-w: 750;
  --display-ls: -0.035em;
  --display-lh: 1.03;
  --kicker-ls: .06em;
  --border-w: 1px;
}

:root {
  --fs-h1: clamp(2.35rem, 1.3rem + 4.6vw, 5.1rem);
  --fs-h2: clamp(1.8rem, 1.2rem + 2.5vw, 3.15rem);
  --fs-h3: clamp(1.12rem, 1rem + .45vw, 1.38rem);
  --fs-lead: clamp(1.05rem, .98rem + .35vw, 1.28rem);
  --gutter: clamp(16px, 4vw, 32px);
  --maxw: 1180px;
  --section-y: clamp(64px, 9vw, 120px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ── 2. Base ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
/* El menú móvil fuera de pantalla no debe ensanchar el documento. */
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color .35s var(--ease), color .35s var(--ease), opacity .25s var(--ease);
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .18em; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--on-accent); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}
[hidden] { display: none !important; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--bg); padding: 12px 18px; font-weight: 700;
  border-radius: var(--radius); text-decoration: none; transition: top .2s;
}
.skip:focus { top: 12px; }

/* ── 3. Layout ─────────────────────────────────────────────────────────── */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 820px; }
.section { padding-block: var(--section-y); position: relative; }
.section--alt { background: var(--bg-alt); }
.section--tight { padding-block: calc(var(--section-y) * .6); }
.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.stack > * + * { margin-top: 1rem; }
.center { text-align: center; }

.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-inline: auto; }
.section-head .lead { margin-top: 1rem; }

/* ── 4. Tipografía ─────────────────────────────────────────────────────── */
.display, h1.display, h2.display {
  font-family: var(--f-display);
  font-weight: var(--display-w);
  letter-spacing: var(--display-ls);
  line-height: var(--display-lh);
  text-wrap: balance;
}
h1.display { font-size: var(--fs-h1); }
h2.display { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.25; font-weight: 650; letter-spacing: -.01em; }
.display em, .em { font-style: italic; color: var(--accent-text); }
.lead { font-size: var(--fs-lead); color: var(--ink-2); line-height: 1.55; max-width: 64ch; text-wrap: pretty; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.tiny { font-size: .8rem; }

.kicker {
  font-family: var(--f-kicker);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: var(--kicker-ls);
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.1rem;
  display: flex; align-items: baseline; gap: .7em; flex-wrap: wrap;
}
.kicker-num { color: var(--accent-text); }
.center .kicker, .kicker.center { justify-content: center; }

/* ── 5. Botones ────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .8em 1.5em;
  font-family: var(--f-body); font-weight: 650; font-size: 1rem; line-height: 1.1;
  text-decoration: none; cursor: pointer;
  border: var(--border-w) solid var(--ink); border-radius: var(--btn-radius);
  background: transparent; color: var(--ink);
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
}
.btn svg { width: 1.1em; height: 1.1em; flex-shrink: 0; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--ink); color: var(--bg); }
.btn--primary:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }
.btn--small { min-height: 40px; padding: .55em 1.05em; font-size: .92rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.link-arrow { font-weight: 650; color: var(--accent-text); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.link-arrow:hover { border-bottom-width: 2px; }

/* ── 6. Barra de vista previa y cabecera ───────────────────────────────── */
.preview-bar {
  background: var(--ink); color: var(--bg);
  font-family: var(--f-kicker); font-size: .78rem; letter-spacing: .04em;
  text-align: center; padding: 7px var(--gutter);
}
.preview-bar a { color: inherit; font-weight: 700; }

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.masthead-line { display: none; }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.logo {
  font-family: var(--f-display); font-weight: 700; font-size: 1.45rem; letter-spacing: -.03em;
  text-decoration: none; color: var(--ink); white-space: nowrap; line-height: 1;
}
.logo .logo-w { color: var(--accent-2); }
.logo .logo-ia { color: var(--accent-text); }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; display: flex; gap: clamp(12px, 2vw, 28px); align-items: center; }
.site-nav a {
  text-decoration: none; font-weight: 550; font-size: .97rem; color: var(--ink-2);
  padding: 8px 2px; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s;
}
.site-nav a:hover { color: var(--ink); border-bottom-color: var(--line-strong); }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-btn {
  display: none; width: 46px; height: 46px; align-items: center; justify-content: center;
  border: var(--border-w) solid var(--line-strong); background: var(--surface); border-radius: var(--radius); cursor: pointer;
}
.menu-btn svg { width: 22px; height: 22px; }

@media (max-width: 960px) {
  .menu-btn { display: inline-flex; }
  .header-cta { display: none; }
  .site-nav {
    position: fixed; inset: 0 0 0 auto; width: min(360px, 88vw); z-index: 90;
    background: var(--surface); border-left: var(--border-w) solid var(--line-strong);
    padding: 88px 24px 32px; transform: translateX(105%); visibility: hidden;
    transition: transform .3s var(--ease), visibility .3s;
    overflow-y: auto;
  }
  /* Al abrir, la visibilidad cambia al instante (si no, el foco no puede entrar en el menú hasta que acaba la animación). */
  .site-nav.is-open { transform: none; visibility: visible; transition: transform .3s var(--ease), visibility 0s; box-shadow: -30px 0 60px -30px rgba(0,0,0,.45); }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a { display: block; padding: 16px 4px; font-size: 1.2rem; border-bottom: 1px solid var(--line); }
  .site-nav .nav-cta { margin-top: 20px; }
  .site-nav .nav-cta a { border: 0; }
  .nav-close { position: absolute; top: 18px; right: 18px; }
  .nav-scrim { position: fixed; inset: 0; z-index: 85; background: rgba(0,0,0,.35); }
  .nav-scrim[hidden] { display: none; }
}
@media (min-width: 961px) {
  .nav-close, .nav-scrim, .site-nav .nav-cta { display: none !important; }
}

/* ── 7. Hero ───────────────────────────────────────────────────────────── */
.hero { padding-block: clamp(48px, 8vw, 104px) clamp(56px, 8vw, 96px); position: relative; overflow: hidden; }
.hero-grid { display: grid; gap: clamp(36px, 5vw, 64px); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: 1.08fr .92fr; } }
.hero h1 { margin-bottom: 1.4rem; }
.hero .lead { margin-bottom: 2rem; }
.hero-note { margin-top: 1.1rem; font-size: .92rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .4em 1.2em; }
.hero-note span::before { content: "✓"; margin-right: .4em; color: var(--ok); font-weight: 700; }
.hero-figure { margin: 0; position: relative; }
.hero-stamp { position: absolute; z-index: 3; right: -14px; top: -34px; background: var(--surface); }
.figcap { margin-top: 12px; font-size: .84rem; color: var(--muted); }
.figcap b { font-weight: 650; color: var(--ink-2); }
.page-hero { padding-block: clamp(48px, 7vw, 96px) clamp(32px, 4vw, 56px); }
.page-hero .lead { margin-top: 1.2rem; }

/* Sello «30 días gratis» */
.stamp {
  display: inline-grid; place-items: center; text-align: center;
  font-family: var(--f-kicker); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; line-height: 1.05;
  font-size: .78rem; color: var(--accent-text);
  border: 2px solid currentColor; border-radius: 999px; padding: .5em 1em;
}
.stamp b { font-size: 1.6em; display: block; letter-spacing: 0; }

/* Maqueta del panel (ilustrativa) */
.mock {
  background: var(--surface); border: var(--border-w) solid var(--line-strong); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift); overflow: hidden; font-family: var(--f-body); color: var(--ink);
}
.mock-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.mock-top b { font-size: .95rem; }
.mock-top span { font-size: .78rem; color: var(--muted); }
.mock-body { padding: 16px 18px 18px; display: grid; gap: 10px; }
.mock-row { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.mock-row time { font-family: var(--f-mono); font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.mock-row strong { font-size: .92rem; display: block; line-height: 1.2; }
.mock-row small { font-size: .76rem; color: var(--muted); }
.chip { font-size: .72rem; font-weight: 700; padding: 4px 9px; border-radius: 999px; white-space: nowrap; border: 1px solid currentColor; }
.chip--ok { color: var(--ok); }
.chip--ia { color: var(--accent-text); }
.chip--wait { color: var(--muted); }
.mock-toast { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: var(--radius); background: var(--accent-soft); border: 1px dashed var(--accent-text); font-size: .84rem; line-height: 1.4; }
.mock-toast svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--accent-text); margin-top: 1px; }
.mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mock-stat { padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); text-align: center; }
.mock-stat b { display: block; font-family: var(--f-display); font-size: 1.35rem; line-height: 1.1; }
.mock-stat span { font-size: .7rem; color: var(--muted); line-height: 1.2; display: block; }

/* ── 8. Tarjetas y piezas comunes ──────────────────────────────────────── */
.card {
  background: var(--surface); border: var(--border-w) solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(20px, 2.4vw, 28px); box-shadow: var(--shadow);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.card h3 { margin-bottom: .5rem; }
.card p:last-child { margin-bottom: 0; }
a.card { text-decoration: none; display: block; color: inherit; }
a.card:hover, .card--hover:hover { border-color: var(--line-strong); box-shadow: var(--shadow-lift); transform: translateY(-3px); }
.icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--radius); background: var(--accent-soft); color: var(--accent-text); margin-bottom: 18px; }
.icon svg { width: 24px; height: 24px; }
.tag { display: inline-block; font-family: var(--f-kicker); font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; border: 1px solid var(--line-strong); border-radius: var(--btn-radius); color: var(--ink-2); }
.tag--accent { color: var(--accent-text); border-color: currentColor; }
.checks { list-style: none; display: grid; gap: .55rem; }
.checks li { position: relative; padding-left: 28px; line-height: 1.45; }
.checks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 16px; height: 16px; border-radius: 50%; background: var(--ok); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6L20.1 8.4 18.7 7z'/%3E%3C/svg%3E") center/16px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6L20.1 8.4 18.7 7z'/%3E%3C/svg%3E") center/16px no-repeat; }
.note { font-size: .88rem; color: var(--muted); }
.note--box { padding: 14px 16px; border: 1px dashed var(--line-strong); border-radius: var(--radius); background: var(--surface); }

/* Selector de negocio */
.tiles { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.tile { display: grid; grid-template-columns: 48px 1fr; gap: 4px 16px; align-items: start; padding: 20px; text-decoration: none; color: inherit; position: relative; }
.tile .icon { margin: 0; grid-row: span 2; }
.tile h3 { font-size: 1.05rem; margin: 0; }
.tile p { font-size: .9rem; color: var(--muted); margin: 0; line-height: 1.45; }
.tile--otro { background: transparent; border-style: dashed; }
.tile-go { position: absolute; right: 18px; top: 18px; width: 18px; height: 18px; color: var(--muted); transition: transform .2s, color .2s; }
.tile:hover .tile-go { transform: translateX(3px); color: var(--accent-text); }

/* Tres puertas */
.doors { display: grid; gap: clamp(16px, 2vw, 24px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.door { display: flex; flex-direction: column; gap: 10px; }
.door .door-price { font-family: var(--f-display); font-size: 1.9rem; line-height: 1; margin: 6px 0 2px; }
.door .door-price small { font-family: var(--f-body); font-size: .9rem; color: var(--muted); font-weight: 500; }
.door .checks { margin: 8px 0 16px; font-size: .95rem; }
.door .btn { margin-top: auto; }
.door--featured { border-color: var(--line-strong); }
.badge { position: absolute; top: -13px; left: 22px; font-family: var(--f-kicker); font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: var(--accent); color: var(--on-accent); padding: 5px 11px; border-radius: var(--btn-radius); }
.card { position: relative; }

/* Bloques del sistema */
.blocks { display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); border-top: var(--border-w) solid var(--line-strong); border-left: var(--border-w) solid var(--line-strong); }
.block { padding: clamp(22px, 2.6vw, 32px); border-right: var(--border-w) solid var(--line-strong); border-bottom: var(--border-w) solid var(--line-strong); background: var(--surface); }
.block h3 { margin-bottom: .45rem; }
.block p { color: var(--ink-2); font-size: .97rem; margin-bottom: .8rem; }
.block ul { list-style: none; display: grid; gap: .3rem; font-size: .9rem; color: var(--muted); }
.block li::before { content: "— "; color: var(--accent-text); }

/* Pasos */
.steps { list-style: none; display: grid; gap: clamp(14px, 2vw, 22px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); counter-reset: paso; }
.step { counter-increment: paso; padding: 24px; border: var(--border-w) solid var(--line); border-radius: var(--radius-lg); background: var(--surface); position: relative; box-shadow: var(--shadow); }
.step::before { content: counter(paso, decimal-leading-zero); display: block; font-family: var(--f-display); font-size: 2.6rem; line-height: 1; color: var(--accent-text); margin-bottom: 14px; font-weight: var(--display-w); }
.step h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.step p { font-size: .95rem; color: var(--ink-2); margin: 0; }
.step .tiny { display: block; margin-top: 10px; color: var(--muted); }

/* Fundador */
.founder { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 820px) { .founder { grid-template-columns: 300px 1fr; } }
.founder-photo { margin: 0; }
.founder-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border-radius: var(--radius-lg); border: var(--border-w) solid var(--line-strong); box-shadow: var(--shadow); filter: saturate(.92); }
.founder blockquote { margin: 0 0 1.2rem; font-family: var(--f-display); font-size: clamp(1.35rem, 1.05rem + 1.2vw, 2.05rem); line-height: 1.25; letter-spacing: -.01em; font-weight: calc(var(--display-w) - 0); text-wrap: balance; }

/* FAQ */
.faq { display: grid; gap: 0; border-top: var(--border-w) solid var(--line-strong); }
.faq-item { border-bottom: var(--border-w) solid var(--line-strong); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 18px; align-items: center;
  padding: 20px 2px; font-weight: 650; font-size: 1.06rem; min-height: 48px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--f-display); font-size: 1.6rem; line-height: 1; color: var(--accent-text); transition: transform .25s var(--ease); flex-shrink: 0; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-body { padding: 0 2px 22px; color: var(--ink-2); max-width: 70ch; }
.faq-body p:last-child { margin: 0; }

/* Banda final */
.cta-band { border: var(--border-w) solid var(--line-strong); border-radius: var(--radius-lg); background: var(--surface); padding: clamp(28px, 5vw, 64px); display: grid; gap: 28px; align-items: center; box-shadow: var(--shadow); }
@media (min-width: 860px) { .cta-band { grid-template-columns: 1fr auto; } }
.cta-band h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.7rem); }
.cta-band p { margin: .8rem 0 0; color: var(--ink-2); }

/* Pie */
.site-footer { border-top: var(--border-w) solid var(--line-strong); padding: 56px 0 32px; background: var(--bg); font-size: .94rem; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); margin-bottom: 40px; }
.footer-grid h2 { font-family: var(--f-kicker); font-size: .74rem; letter-spacing: var(--kicker-ls); text-transform: uppercase; color: var(--muted); margin-bottom: 12px; font-weight: 600; }
.footer-grid ul { list-style: none; display: grid; gap: 8px; }
.footer-grid a { text-decoration: none; color: var(--ink-2); }
.footer-grid a:hover { color: var(--ink); text-decoration: underline; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .84rem; }
.footer-legal a { color: inherit; }

/* ── 9. Páginas interiores ─────────────────────────────────────────────── */
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; list-style: none; }
.toc a { display: inline-flex; min-height: 40px; align-items: center; padding: 6px 14px; border: 1px solid var(--line-strong); border-radius: var(--btn-radius); text-decoration: none; font-size: .9rem; font-weight: 600; color: var(--ink-2); background: var(--surface); }
.toc a:hover { background: var(--ink); color: var(--bg); }

.feature { display: grid; gap: clamp(24px, 4vw, 64px); grid-template-columns: 1fr; padding-block: clamp(40px, 6vw, 72px); border-top: var(--border-w) solid var(--line-strong); }
.feature:first-of-type { border-top: 0; padding-top: 0; }
@media (min-width: 900px) { .feature { grid-template-columns: 360px 1fr; } }
.feature-head .kicker { margin-bottom: .7rem; }
.feature-head h2 { font-family: var(--f-display); font-weight: var(--display-w); letter-spacing: var(--display-ls); font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); line-height: 1.08; }
.feature-head p { margin-top: .9rem; color: var(--ink-2); }
.feature-list { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); list-style: none; }
.feature-list li { padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.feature-list strong { display: block; margin-bottom: 4px; font-size: 1rem; }
.feature-list span { font-size: .92rem; color: var(--muted); line-height: 1.5; display: block; }
.feature-list li > .tag { display: inline-block; margin-top: 10px; font-size: .66rem; }

.solution { display: grid; gap: clamp(24px, 4vw, 56px); grid-template-columns: 1fr; padding-block: clamp(40px, 6vw, 72px); border-top: var(--border-w) solid var(--line-strong); }
@media (min-width: 900px) { .solution { grid-template-columns: 1fr 1fr; } }
.solution h2 { font-family: var(--f-display); font-weight: var(--display-w); letter-spacing: var(--display-ls); font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.5rem); line-height: 1.06; margin-bottom: .8rem; }
.solution .checks { margin: 1rem 0 1.5rem; }
.solution-side { display: grid; gap: 14px; align-content: start; }

/* Planes */
.plans { display: grid; gap: clamp(16px, 2vw, 24px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); align-items: stretch; }
.plan { display: flex; flex-direction: column; gap: 6px; }
.plan h3 { font-family: var(--f-display); font-weight: var(--display-w); font-size: 1.7rem; letter-spacing: var(--display-ls); }
.plan .plan-lema { color: var(--muted); margin: 0 0 10px; }
.plan-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; font-family: var(--f-display); }
.plan-price b { font-size: 2.6rem; line-height: 1; font-weight: var(--display-w); }
.plan-price span { font-family: var(--f-body); color: var(--muted); font-size: .95rem; }
.plan-sub { font-size: .9rem; color: var(--ink-2); margin: 2px 0 0; }
.plan-sub s { color: var(--muted); }
.plan .checks { margin: 18px 0 22px; font-size: .95rem; }
.plan .btn { margin-top: auto; }
.plan--featured { border-color: var(--line-strong); box-shadow: var(--shadow-lift); }

/* ── 10. Configurador ──────────────────────────────────────────────────── */
.config { display: grid; gap: clamp(24px, 3vw, 40px); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1020px) { .config { grid-template-columns: 1fr 380px; } }
.config-steps { display: grid; gap: clamp(20px, 2.6vw, 32px); min-width: 0; }
.config-step { border: var(--border-w) solid var(--line); border-radius: var(--radius-lg); background: var(--surface); padding: clamp(18px, 2.4vw, 28px); margin: 0; min-width: 0; }
.config-step[hidden] { display: none; }
.config-step legend { float: left; width: 100%; padding: 0; margin-bottom: 16px; }
.config-step legend + * { clear: both; }
.step-title { display: flex; gap: 12px; align-items: baseline; font-family: var(--f-display); font-weight: var(--display-w); font-size: 1.35rem; letter-spacing: var(--display-ls); line-height: 1.15; }
.step-title .n { font-family: var(--f-kicker); font-size: .8rem; color: var(--accent-text); letter-spacing: .08em; font-weight: 700; }
.step-help { display: block; font-family: var(--f-body); font-size: .9rem; color: var(--muted); font-weight: 400; margin-top: 6px; letter-spacing: 0; }
.opts { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.opts--wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.opt { position: relative; display: grid; grid-template-columns: 22px 1fr; gap: 4px 12px; padding: 14px 14px 14px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); cursor: pointer; transition: border-color .2s, background .2s; min-height: 48px; }
.opt:hover { border-color: var(--line-strong); }
.opt input { margin: 3px 0 0; width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; }
.opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.opt:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.opt-name { font-weight: 650; font-size: .96rem; line-height: 1.3; }
.opt-desc { grid-column: 2; font-size: .84rem; color: var(--muted); line-height: 1.4; }
.opt-price { grid-column: 2; font-weight: 700; font-size: .9rem; color: var(--ink); margin-top: 4px; }
.opt-price small { font-weight: 500; color: var(--muted); }
.opt-reco { position: absolute; top: -9px; right: 10px; font-family: var(--f-kicker); font-size: .64rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--accent); color: var(--on-accent); padding: 2px 7px; border-radius: var(--btn-radius); }
.mod-group + .mod-group { margin-top: 20px; }
.mod-group h3 { font-family: var(--f-kicker); font-size: .76rem; letter-spacing: var(--kicker-ls); text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 10px; }
.base-box { padding: 16px 18px; border: 1px dashed var(--line-strong); border-radius: var(--radius); margin-bottom: 20px; }
.base-box .checks { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); font-size: .9rem; margin-top: 10px; }
.base-box-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; }
.base-box-head strong { font-size: 1.02rem; }

.summary { position: sticky; top: 96px; border: var(--border-w) solid var(--line-strong); border-radius: var(--radius-lg); background: var(--surface); padding: 22px; box-shadow: var(--shadow-lift); }
.summary h2 { font-family: var(--f-display); font-weight: var(--display-w); font-size: 1.45rem; letter-spacing: var(--display-ls); margin-bottom: 14px; }
.sum-block + .sum-block { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.sum-label { font-family: var(--f-kicker); font-size: .7rem; letter-spacing: var(--kicker-ls); text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.sum-lines { list-style: none; display: grid; gap: 6px; font-size: .9rem; }
.sum-lines li { display: flex; justify-content: space-between; gap: 12px; }
.sum-lines li span:last-child { white-space: nowrap; font-weight: 600; }
.sum-lines .sum-saving { color: var(--ok); }
.sum-empty { font-size: .9rem; color: var(--muted); }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 8px; }
.sum-total b { font-family: var(--f-display); font-size: 1.9rem; line-height: 1; font-weight: var(--display-w); }
.sum-trial { margin: 16px 0; padding: 12px 14px; border-radius: var(--radius); background: var(--accent-soft); font-size: .88rem; line-height: 1.45; }
.sum-trial strong { color: var(--accent-text); }
.summary .btn + .btn { margin-top: 10px; }
.draft-flag { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px dashed var(--accent-text); border-radius: var(--radius); font-size: .86rem; color: var(--ink-2); background: var(--surface); margin-bottom: 24px; }
.draft-flag b { color: var(--accent-text); }
.draft-flag svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--accent-text); margin-top: 1px; }
@media (max-width: 1019px) {
  .summary { position: static; }
  .mobile-total { position: sticky; bottom: 0; z-index: 40; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px var(--gutter); background: var(--surface); border-top: var(--border-w) solid var(--line-strong); box-shadow: 0 -12px 30px -20px rgba(0,0,0,.35); margin-inline: calc(var(--gutter) * -1); }
  .mobile-total b { font-family: var(--f-display); font-size: 1.25rem; }
  .mobile-total span { font-size: .8rem; color: var(--muted); display: block; }
}
@media (min-width: 1020px) { .mobile-total { display: none; } }

/* ── 11. Formularios ───────────────────────────────────────────────────── */
.form { display: grid; gap: 16px; }
.form-row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.field label { display: block; font-weight: 650; font-size: .92rem; margin-bottom: 6px; }
.field .opt-l { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; background: var(--bg); color: var(--ink);
  border: var(--border-w) solid var(--line-strong); border-radius: var(--radius); font-size: 1rem;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.check-line { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: .9rem; color: var(--ink-2); align-items: start; }
.check-line input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--accent); }
.form-status { padding: 14px 16px; border-radius: var(--radius); border: var(--border-w) solid var(--line-strong); background: var(--surface); }
.form-status[hidden] { display: none; }
.config-chosen { list-style: none; display: grid; gap: 4px; font-size: .92rem; padding: 14px 16px; border: 1px dashed var(--line-strong); border-radius: var(--radius); background: var(--surface); }
.config-chosen li { display: flex; justify-content: space-between; gap: 10px; }

.contact-ways { display: grid; gap: 12px; }
.way, a.card.way { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; padding: 16px; text-decoration: none; color: inherit; }
.way .icon { margin: 0; }
.way strong { display: block; }
.way span { font-size: .88rem; color: var(--muted); }

/* ── 12. Demo animada (El sistema) ─────────────────────────────────────── */
.demo { border: var(--border-w) solid var(--line-strong); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; box-shadow: var(--shadow); }
.demo-tabs { display: flex; flex-wrap: wrap; gap: 0; border-bottom: var(--border-w) solid var(--line-strong); background: var(--surface-2); }
.demo-tab { flex: 1 1 180px; min-height: 52px; padding: 12px 16px; background: transparent; border: 0; border-right: 1px solid var(--line); font-weight: 650; cursor: pointer; color: var(--ink-2); text-align: left; }
.demo-tab[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: inset 0 -3px 0 var(--accent); }
.demo-stage { display: grid; gap: 0; grid-template-columns: 1fr; min-height: 380px; }
@media (min-width: 900px) { .demo-stage { grid-template-columns: repeat(3, 1fr); } }
.lane { padding: 20px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 900px) { .lane { border-bottom: 0; border-right: 1px solid var(--line); } .lane:last-child { border-right: 0; } }
.lane h3 { font-family: var(--f-kicker); font-size: .74rem; letter-spacing: var(--kicker-ls); text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 4px; display: flex; gap: 8px; align-items: center; }
.lane h3 svg { width: 16px; height: 16px; }
.ev { padding: 10px 14px; border-radius: 14px; font-size: .9rem; line-height: 1.4; max-width: 95%; border: 1px solid var(--line); background: var(--bg); }
.ev--cliente { align-self: flex-start; border-bottom-left-radius: 4px; }
.ev--sistema { align-self: stretch; border-radius: var(--radius); border-style: dashed; border-color: var(--accent-text); background: var(--accent-soft); font-family: var(--f-mono); font-size: .8rem; }
.ev--tu { align-self: flex-end; border-bottom-right-radius: 4px; background: var(--surface-2); }
.ev small { display: block; color: var(--muted); font-size: .72rem; margin-top: 3px; font-family: var(--f-body); }
.js .demo[data-anim] .ev { opacity: 0; transform: translateY(8px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.js .demo[data-anim] .ev.is-on { opacity: 1; transform: none; }
.demo-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 20px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }

/* ── 13. Proyectos (ventanas en vivo) ──────────────────────────────────── */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter { min-height: 44px; padding: 8px 16px; border: 1px solid var(--line-strong); border-radius: var(--btn-radius); background: var(--surface); cursor: pointer; font-weight: 600; font-size: .92rem; color: var(--ink-2); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.live-grid { display: grid; gap: clamp(18px, 2.4vw, 30px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); }
.live { display: flex; flex-direction: column; border: var(--border-w) solid var(--line-strong); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; box-shadow: var(--shadow); transition: box-shadow .25s, transform .25s; }
.live:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.live[hidden] { display: none; }
.live-bar { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--line); background: var(--surface-2); font-size: .8rem; }
.live-dots { display: inline-flex; gap: 5px; }
.live-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); opacity: .5; }
.live-url { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-family: var(--f-mono); font-size: .76rem; }
.live-view { position: relative; aspect-ratio: 1366 / 860; overflow: hidden; background: var(--bg-alt); }
.live-open { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; border: 0; padding: 0; background: transparent; cursor: zoom-in; }
.live-open:focus-visible { outline-offset: -4px; }
.live-view iframe { position: absolute; top: 0; left: 0; width: 1366px; max-width: none; height: 860px; border: 0; transform-origin: 0 0; pointer-events: none; opacity: 0; transition: opacity .5s; }
.live.is-ready .live-view iframe { opacity: 1; }
.live-ph { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; color: var(--muted); font-size: .9rem; background: repeating-linear-gradient(135deg, transparent 0 10px, var(--line) 10px 11px); }
.live.is-ready .live-ph { display: none; }
.live.is-noembed .live-ph::after { content: " · no se deja ver aquí: ábrela en otra pestaña"; }
.live-hint { position: absolute; right: 12px; bottom: 12px; padding: 7px 12px; border-radius: var(--btn-radius); background: var(--ink); color: var(--bg); font-size: .8rem; font-weight: 650; opacity: 0; transform: translateY(6px); transition: .25s; }
.live-open:hover .live-hint, .live-open:focus-visible .live-hint { opacity: 1; transform: none; }
.live-info { padding: 18px 20px 20px; display: grid; gap: 8px; }
.live-info h3 { font-size: 1.15rem; }
.live-info p { font-size: .92rem; color: var(--ink-2); margin: 0; }
.live-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.live-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }

.modal { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 16px; background: rgba(10, 9, 8, .62); }
.modal[hidden] { display: none; }
.modal-win { width: min(1280px, 100%); height: min(88vh, 900px); display: flex; flex-direction: column; background: var(--surface); border: var(--border-w) solid var(--line-strong); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 30px 80px -20px rgba(0,0,0,.6); }
.modal-bar { display: flex; align-items: center; gap: 12px; padding: 8px 10px 8px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.modal-bar h2 { font-size: .98rem; font-family: var(--f-body); font-weight: 650; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.modal-body { position: relative; flex: 1; background: #fff; }
.modal-body iframe { width: 100%; height: 100%; border: 0; }
.modal-load { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; background: var(--surface); color: var(--muted); }

/* ── 14. Sobre mí ──────────────────────────────────────────────────────── */
.about-intro { display: grid; gap: clamp(28px, 4vw, 64px); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .about-intro { grid-template-columns: 1fr 360px; } }
.facts { list-style: none; display: grid; gap: 0; border-top: var(--border-w) solid var(--line-strong); }
.facts li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.facts li span:first-child { color: var(--muted); }
.facts li span:last-child { font-weight: 650; text-align: right; }
.timeline { list-style: none; display: grid; gap: 0; border-left: var(--border-w) solid var(--line-strong); margin-left: 6px; }
.timeline li { position: relative; padding: 0 0 28px 28px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: .45em; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.timeline .when { font-family: var(--f-kicker); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); font-weight: 600; }
.timeline h3 { font-size: 1.08rem; margin: 4px 0 6px; }
.timeline p { color: var(--ink-2); font-size: .96rem; margin: 0; }
.prose { max-width: 68ch; }
.prose p { color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.chips li { padding: 6px 12px; border: 1px solid var(--line); border-radius: var(--btn-radius); font-size: .88rem; background: var(--surface); }

/* ── 15. Revelado al hacer scroll ──────────────────────────────────────── */
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .demo[data-anim] .ev { opacity: 1; transform: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   FIRMA · EDITORIAL
   Estudio de diseño: numeración «№», filetes finos, capitular, láminas con pie,
   cursivas en granate. Nada brilla; la jerarquía la hacen el tamaño y el aire.
   ═══════════════════════════════════════════════════════════════════════════ */
[data-theme="editorial"] body { background-image: linear-gradient(rgba(255,255,255,.18), rgba(255,255,255,0) 340px); }
[data-theme="editorial"] .logo { font-weight: 500; font-variation-settings: "opsz" 72; }
[data-theme="editorial"] .logo .logo-w, [data-theme="editorial"] .logo .logo-ia { font-style: italic; }
[data-theme="editorial"] .logo .logo-w { color: inherit; }
[data-theme="editorial"] .display { font-variation-settings: "opsz" 144, "SOFT" 30; }
[data-theme="editorial"] .display em { font-weight: 360; }
[data-theme="editorial"] .kicker-num { font-family: var(--f-display); font-style: italic; font-size: 1.05rem; letter-spacing: 0; text-transform: none; font-weight: 500; }
[data-theme="editorial"] .kicker-num::before { content: "№ "; font-style: normal; font-size: .85em; }
[data-theme="editorial"] .kicker-txt { padding-left: .7em; border-left: 1px solid var(--line); }
[data-theme="editorial"] .section + .section::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: min(var(--maxw), calc(100% - 2 * var(--gutter))); height: 1px; background: var(--line-strong); opacity: .9;
}
[data-theme="editorial"] .section--alt + .section::before, [data-theme="editorial"] .section + .section--alt::before { opacity: 0; }
[data-theme="editorial"] .hero .lead::first-letter {
  float: left; font-family: var(--f-display); font-size: 3.6em; line-height: .82; padding: .06em .1em 0 0; color: var(--accent);
  font-variation-settings: "opsz" 144; font-weight: 400;
}
[data-theme="editorial"] .btn { letter-spacing: .01em; }
[data-theme="editorial"] .btn--primary:hover { background: var(--accent); }
[data-theme="editorial"] .card, [data-theme="editorial"] .step, [data-theme="editorial"] .feature-list li { border-radius: var(--radius); }
[data-theme="editorial"] .step::before { font-style: italic; font-weight: 300; font-size: 3.2rem; font-variation-settings: "opsz" 144; }
[data-theme="editorial"] .icon { background: transparent; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--ink); }
[data-theme="editorial"] .mock { border-radius: 2px; box-shadow: 0 1px 0 var(--line), 0 30px 60px -40px rgba(29,27,23,.55); }
[data-theme="editorial"] .hero-figure { padding: 14px; border: 1px solid var(--line-strong); background: var(--surface); }
[data-theme="editorial"] .figcap { font-family: var(--f-display); font-style: italic; font-size: .92rem; border-top: 1px solid var(--line); padding-top: 10px; }
[data-theme="editorial"] .figcap b { font-style: normal; font-family: var(--f-kicker); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; margin-right: .5em; }
[data-theme="editorial"] .stamp { border-width: 1px; font-family: var(--f-display); font-style: italic; text-transform: none; letter-spacing: 0; font-weight: 500; font-size: .9rem; }
[data-theme="editorial"] .stamp b { font-style: normal; font-weight: 400; }
[data-theme="editorial"] .badge { font-family: var(--f-display); font-style: italic; text-transform: none; letter-spacing: 0; font-size: .85rem; font-weight: 500; top: -14px; }
[data-theme="editorial"] .founder blockquote { font-style: italic; font-weight: 360; font-variation-settings: "opsz" 144; }
[data-theme="editorial"] .founder blockquote::before { content: "“"; display: block; font-size: 3.4em; line-height: .6; color: var(--accent); margin-bottom: .1em; }
[data-theme="editorial"] .plan-price b, [data-theme="editorial"] .door-price, [data-theme="editorial"] .sum-total b { font-variation-settings: "opsz" 144; font-weight: 400; }
[data-theme="editorial"] .faq-item summary { font-family: var(--f-display); font-weight: 450; font-size: 1.22rem; font-variation-settings: "opsz" 48; }
[data-theme="editorial"] .tile { border-radius: 0; }
[data-theme="editorial"] .tiles { gap: 0; border-top: 1px solid var(--line-strong); border-left: 1px solid var(--line-strong); }
[data-theme="editorial"] .tiles .tile { border: 0; border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); box-shadow: none; transform: none; }
[data-theme="editorial"] .tiles .tile:hover { background: var(--surface-2); }
[data-theme="editorial"] .live { border-radius: 2px; }
[data-theme="editorial"] .site-header { border-bottom-color: var(--line-strong); }

/* ═══════════════════════════════════════════════════════════════════════════
   FIRMA · PERIÓDICO
   Portada de diario con viñetas: cabecera gótica centrada con fecha, filetes
   dobles, tramas de puntos, sombras de tinta, sellos torcidos, rotulador
   amarillo y bocadillos de cómic. Todo lo «pintado» es CSS: sin imágenes.
   ═══════════════════════════════════════════════════════════════════════════ */
[data-theme="periodico"] body {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .08 0 0 0 0 .07 0 0 0 0 .05 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
[data-theme="periodico"] .site-header { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 0; position: relative; }
[data-theme="periodico"] .masthead-line {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-family: var(--f-kicker); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500;
  padding: 10px 0 8px; border-bottom: 1px solid var(--ink);
}
[data-theme="periodico"] .header-inner { flex-wrap: wrap; justify-content: center; gap: 6px 20px; padding: 10px 0 0; min-height: 0; }
[data-theme="periodico"] .logo {
  font-family: var(--f-masthead); font-weight: 400; font-size: clamp(2.3rem, 1.2rem + 4.6vw, 4.6rem); letter-spacing: 0;
  flex: 1 0 100%; text-align: center; padding: 4px 0 10px; line-height: 1.05;
}
[data-theme="periodico"] .logo .logo-w, [data-theme="periodico"] .logo .logo-ia { color: var(--accent); }
[data-theme="periodico"] .site-nav { margin: 0; flex: 1 0 100%; border-top: 3px double var(--ink); border-bottom: 3px double var(--ink); }
[data-theme="periodico"] .site-nav ul { justify-content: center; gap: 0; }
[data-theme="periodico"] .site-nav li + li a { border-left: 1px solid var(--ink); }
[data-theme="periodico"] .site-nav a { font-family: var(--f-kicker); text-transform: uppercase; letter-spacing: .1em; font-size: .86rem; font-weight: 600; padding: 11px 18px; border-bottom: 0; color: var(--ink); }
[data-theme="periodico"] .site-nav a:hover { background: var(--ink); color: var(--bg); }
[data-theme="periodico"] .site-nav a[aria-current="page"] { background: var(--accent); color: var(--on-accent); }
[data-theme="periodico"] .header-actions { position: absolute; right: var(--gutter); top: 44px; }
[data-theme="periodico"] .header-cta { display: none; }
@media (max-width: 960px) {
  [data-theme="periodico"] .header-inner { justify-content: space-between; }
  [data-theme="periodico"] .logo { flex: 0 1 auto; text-align: left; font-size: clamp(1.9rem, 1.2rem + 3vw, 2.6rem); }
  [data-theme="periodico"] .header-actions { position: static; }
  [data-theme="periodico"] .site-nav { border: 0; border-left: var(--border-w) solid var(--ink); }
  [data-theme="periodico"] .site-nav li + li a { border-left: 0; }
  [data-theme="periodico"] .site-nav a { border-bottom: 1px solid var(--ink); padding: 16px 6px; font-size: 1.05rem; }
  [data-theme="periodico"] .header-inner::after { content: ""; flex: 1 0 100%; border-top: 3px double var(--ink); margin-top: 8px; }
}
@media (max-width: 600px) {
  [data-theme="periodico"] .masthead-line > span:last-child { display: none; }
  [data-theme="periodico"] .logo { font-size: 1.65rem; }
  [data-theme="periodico"] .header-inner { flex-wrap: nowrap; }
  [data-theme="periodico"] .header-inner::after { display: none; }
  [data-theme="periodico"] .site-header { border-bottom: 3px double var(--ink); }
}
[data-theme="periodico"] .display { font-weight: 900; }
[data-theme="periodico"] .display em { color: var(--ink); font-style: italic; background: linear-gradient(transparent 58%, var(--highlight) 58%, var(--highlight) 92%, transparent 92%); padding: 0 .08em; }
[data-theme="periodico"] .kicker { color: var(--ink); font-weight: 600; font-size: .82rem; }
[data-theme="periodico"] .kicker-num { background: var(--accent); color: var(--on-accent); padding: 3px 8px 2px; letter-spacing: .08em; }
[data-theme="periodico"] .kicker-num::before { content: var(--nw-pagina, "Pág. "); }
[data-theme="periodico"] .section-head.center .kicker::before, [data-theme="periodico"] .section-head.center .kicker::after { content: ""; flex: 1; border-top: 1px solid var(--ink); align-self: center; max-width: 120px; }
[data-theme="periodico"] .section + .section { border-top: 3px double var(--ink); }
[data-theme="periodico"] .section--alt {
  background-color: var(--bg-alt);
  background-image: radial-gradient(rgba(21,19,15,.13) 1px, transparent 1.3px);
  background-size: 7px 7px;
}
[data-theme="periodico"] .lead { font-size: calc(var(--fs-lead) * 1.04); }
[data-theme="periodico"] .hero .lead::first-letter {
  float: left; font-family: var(--f-display); font-weight: 900; font-size: 3.8em; line-height: .78; padding: .05em .08em 0 0; color: var(--accent);
}
[data-theme="periodico"] .hero h1 { font-size: clamp(2.5rem, 1.2rem + 5.2vw, 5.6rem); }
[data-theme="periodico"] .btn { font-family: var(--f-kicker); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; border-width: 2.5px; box-shadow: 4px 4px 0 var(--ink); background: var(--surface); }
[data-theme="periodico"] .btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); background: var(--highlight); color: var(--ink); border-color: var(--ink); }
[data-theme="periodico"] .btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }
[data-theme="periodico"] .btn--primary { background: var(--accent); color: var(--on-accent); border-color: var(--ink); }
[data-theme="periodico"] .btn--primary:hover { background: var(--accent); color: var(--on-accent); }
[data-theme="periodico"] .card, [data-theme="periodico"] .step, [data-theme="periodico"] .cta-band, [data-theme="periodico"] .summary, [data-theme="periodico"] .config-step, [data-theme="periodico"] .live, [data-theme="periodico"] .demo { border-color: var(--ink); }
[data-theme="periodico"] .card:hover, [data-theme="periodico"] a.card:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow-lift); }
[data-theme="periodico"] .icon { background: var(--highlight); color: var(--ink); border: 2px solid var(--ink); border-radius: 50%; box-shadow: 2px 2px 0 var(--ink); }
[data-theme="periodico"] .tile::after {
  content: ""; position: absolute; right: 0; bottom: 0; width: 70px; height: 70px; pointer-events: none;
  background: radial-gradient(var(--ink) 1.1px, transparent 1.5px) 0 0 / 6px 6px;
  -webkit-mask: linear-gradient(135deg, transparent 50%, #000 100%); mask: linear-gradient(135deg, transparent 50%, #000 100%); opacity: .55;
}
[data-theme="periodico"] .step { padding-top: 54px; }
[data-theme="periodico"] .step::before {
  position: absolute; top: -2px; left: -2px; font-family: var(--f-kicker); font-size: 1rem; font-weight: 700; letter-spacing: .06em;
  background: var(--highlight); color: var(--ink); border: 2.5px solid var(--ink); padding: 6px 12px 5px; margin: 0;
  content: var(--nw-vineta, "Viñeta ") counter(paso);
}
[data-theme="periodico"] .stamp {
  color: var(--accent); border: 3px double var(--accent); border-radius: 50%; width: 132px; height: 132px; padding: 0;
  transform: rotate(-11deg); font-size: .78rem; background: color-mix(in srgb, var(--surface) 70%, transparent);
  box-shadow: inset 0 0 0 4px color-mix(in srgb, var(--surface) 70%, transparent), inset 0 0 0 5px var(--accent);
}
[data-theme="periodico"] .stamp b { font-family: var(--f-display); font-weight: 900; font-size: 2.6em; line-height: .9; }
[data-theme="periodico"] .hero-stamp { right: -30px; top: -62px; }
[data-theme="periodico"] .mock { border-width: 2.5px; border-color: var(--ink); box-shadow: 10px 10px 0 var(--ink); }
[data-theme="periodico"] .mock-top { background: var(--ink); color: var(--bg); border-color: var(--ink); }
[data-theme="periodico"] .mock-top span { color: var(--bg); opacity: .8; }
[data-theme="periodico"] .mock-row { border-color: var(--ink); }
[data-theme="periodico"] .mock-toast { background: var(--highlight); border: 2px solid var(--ink); position: relative; border-radius: 16px; }
[data-theme="periodico"] .mock-toast::after { content: ""; position: absolute; left: 26px; bottom: -11px; width: 18px; height: 18px; background: var(--highlight); border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: skewX(30deg) rotate(45deg); }
[data-theme="periodico"] .mock-toast svg { color: var(--ink); }
[data-theme="periodico"] .figcap { font-style: italic; text-align: center; }
[data-theme="periodico"] .figcap b { font-style: normal; font-family: var(--f-kicker); text-transform: uppercase; letter-spacing: .08em; }
[data-theme="periodico"] .badge { transform: rotate(-3deg); border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); }
[data-theme="periodico"] .blocks, [data-theme="periodico"] .block { border-color: var(--ink); }
[data-theme="periodico"] .block h3, [data-theme="periodico"] .live-info h3, [data-theme="periodico"] .tile h3, [data-theme="periodico"] .door h3, [data-theme="periodico"] .card h3, [data-theme="periodico"] .step h3 { font-family: var(--f-display); font-weight: 900; font-size: 1.32rem; letter-spacing: -.005em; }
[data-theme="periodico"] .block:nth-child(odd) { background: var(--surface); }
[data-theme="periodico"] .block:nth-child(even) { background: var(--surface-2); }
[data-theme="periodico"] .faq-item summary { font-family: var(--f-display); font-weight: 900; font-size: 1.2rem; }
[data-theme="periodico"] .faq-item summary::before { content: "P."; font-family: var(--f-kicker); color: var(--accent); margin-right: .4em; font-weight: 700; }
[data-theme="periodico"] .faq-item summary { justify-content: flex-start; }
[data-theme="periodico"] .faq-item summary::after { margin-left: auto; color: var(--ink); }
[data-theme="periodico"] .faq-body::before { content: "R. "; font-family: var(--f-kicker); color: var(--accent); font-weight: 700; }
[data-theme="periodico"] .faq-body p:first-child { display: inline; }
[data-theme="periodico"] .founder-photo img { filter: grayscale(1) contrast(1.15); border-width: 2.5px; box-shadow: 8px 8px 0 var(--ink); }
[data-theme="periodico"] .founder-photo { position: relative; }
[data-theme="periodico"] .founder-photo::after { content: ""; position: absolute; inset: 0 0 auto; aspect-ratio: 4/5; border-radius: var(--radius-lg); background: radial-gradient(rgba(21,19,15,.32) 1px, transparent 1.4px) 0 0 / 4px 4px; mix-blend-mode: multiply; pointer-events: none; }
[data-theme="periodico"] .founder blockquote { font-weight: 900; font-style: italic; }
[data-theme="periodico"] .founder blockquote::before { content: "«"; color: var(--accent); }
[data-theme="periodico"] .founder blockquote::after { content: "»"; color: var(--accent); }
[data-theme="periodico"] .ev { border: 2px solid var(--ink); position: relative; }
[data-theme="periodico"] .ev--cliente::after, [data-theme="periodico"] .ev--tu::after { content: ""; position: absolute; bottom: -9px; width: 14px; height: 14px; background: inherit; border-bottom: 2px solid var(--ink); }
[data-theme="periodico"] .ev--cliente::after { left: 14px; border-left: 2px solid var(--ink); transform: skewY(-35deg); }
[data-theme="periodico"] .ev--tu::after { right: 14px; border-right: 2px solid var(--ink); transform: skewY(35deg); }
[data-theme="periodico"] .ev--sistema { border-style: solid; background: var(--highlight); }
[data-theme="periodico"] .ev { margin-bottom: 6px; }
[data-theme="periodico"] .demo-tab { font-family: var(--f-kicker); text-transform: uppercase; letter-spacing: .06em; border-right: 2px solid var(--ink); }
[data-theme="periodico"] .demo-tab[aria-selected="true"] { background: var(--ink); color: var(--bg); box-shadow: none; }
[data-theme="periodico"] .demo-tabs { border-bottom-color: var(--ink); }
[data-theme="periodico"] .filter[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--ink); }
[data-theme="periodico"] .opt { border-color: var(--ink); }
[data-theme="periodico"] .opt:has(input:checked) { background: var(--highlight); border-color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
[data-theme="periodico"] .prose--cols { columns: 2 300px; column-gap: 40px; column-rule: 1px solid var(--ink); }
[data-theme="periodico"] .timeline li::before { background: var(--accent); border-color: var(--ink); border-radius: 0; transform: rotate(45deg); }
[data-theme="periodico"] .preview-bar { background: var(--accent); color: var(--on-accent); }
[data-theme="periodico"] .site-footer { border-top: 3px double var(--ink); }
[data-theme="periodico"] .footer-brand { container-type: inline-size; }
[data-theme="periodico"] .footer-brand .logo { font-size: clamp(1.5rem, 12cqi, 2.4rem); text-align: left; padding: 0; flex: none; }
[data-theme="periodico"] .menu-btn { border-color: var(--ink); box-shadow: 2px 2px 0 var(--ink); }
[data-theme="periodico"] .live-dots i { background: var(--ink); opacity: 1; border-radius: 0; }
[data-theme="periodico"] .live-view { filter: none; }

/* ═══════════════════════════════════════════════════════════════════════════
   FIRMA · NEÓN
   La identidad de siempre, con más orden: un solo brillo en el hero, cristal
   en las tarjetas y el verde reservado a la acción.
   ═══════════════════════════════════════════════════════════════════════════ */
[data-theme="neon"] body {
  background-image:
    radial-gradient(900px 520px at 85% -120px, rgba(139, 92, 246, .16), transparent 60%),
    radial-gradient(800px 520px at 5% -80px, rgba(0, 232, 123, .12), transparent 60%);
  background-repeat: no-repeat;
}
[data-theme="neon"] .site-header { background: rgba(10, 10, 15, .78); }
[data-theme="neon"] .logo { font-weight: 800; }
[data-theme="neon"] .logo .logo-w { color: #8B5CF6; }
[data-theme="neon"] .logo .logo-ia { color: var(--accent); }
[data-theme="neon"] .display em { font-style: normal; background: linear-gradient(92deg, #00E87B, #7CF5C0 45%, #A78BFA); -webkit-background-clip: text; background-clip: text; color: transparent; }
[data-theme="neon"] .kicker { color: var(--accent-text); text-transform: none; font-size: .8rem; font-weight: 500; }
[data-theme="neon"] .kicker-num::before { content: "// "; opacity: .6; }
[data-theme="neon"] .kicker-num { color: var(--muted); }
[data-theme="neon"] .btn { border-color: var(--line-strong); color: var(--ink); }
[data-theme="neon"] .btn--primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); box-shadow: 0 0 0 0 rgba(0,232,123,.0); }
[data-theme="neon"] .btn--primary:hover { background: #3BF59C; border-color: #3BF59C; color: var(--on-accent); box-shadow: 0 0 28px rgba(0, 232, 123, .35); }
[data-theme="neon"] .btn--ghost:hover { background: rgba(255,255,255,.06); color: var(--ink); border-color: var(--accent); }
[data-theme="neon"] .card, [data-theme="neon"] .step, [data-theme="neon"] .summary, [data-theme="neon"] .config-step, [data-theme="neon"] .cta-band, [data-theme="neon"] .live, [data-theme="neon"] .demo, [data-theme="neon"] .mock {
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012)); backdrop-filter: blur(6px);
}
[data-theme="neon"] .blocks { border-color: var(--line); border-radius: var(--radius-lg); overflow: hidden; }
[data-theme="neon"] .block { border-color: var(--line); background: rgba(255,255,255,.02); }
[data-theme="neon"] .block:hover { background: rgba(0, 232, 123, .04); }
[data-theme="neon"] .faq, [data-theme="neon"] .faq-item, [data-theme="neon"] .feature, [data-theme="neon"] .solution, [data-theme="neon"] .facts, [data-theme="neon"] .site-footer { border-color: var(--line); }
[data-theme="neon"] .icon { border: 1px solid rgba(0, 232, 123, .28); }
[data-theme="neon"] .stamp { border: 1px solid rgba(0,232,123,.45); background: #0D1A13; font-family: var(--f-kicker); text-transform: none; letter-spacing: 0; }
[data-theme="neon"] .hero-figure::before { content: ""; position: absolute; inset: 8% 6%; background: radial-gradient(closest-side, rgba(0,232,123,.28), transparent); filter: blur(40px); z-index: -1; }
[data-theme="neon"] .mock-row { background: rgba(255,255,255,.02); }
[data-theme="neon"] .founder-photo img { border-color: rgba(0,232,123,.35); }
[data-theme="neon"] .preview-bar { background: #00E87B; color: #03140B; }
[data-theme="neon"] .modal-body { background: #0A0A0F; }


/* ═══════════════════════════════════════════════════════════════════════════
   17. PIEZAS CONECTADAS AL PANEL Y EFECTOS (comunes; cada tema retoca abajo)
   ═══════════════════════════════════════════════════════════════════════════ */
/* Primera visita: espera (máx. 900 ms) al tema publicado en el panel para no cambiar de cara delante. */
.tema-pendiente body { opacity: 0; }

.preview-tema { background: var(--accent); color: var(--on-accent); text-align: center; padding: 9px var(--gutter); font-size: .88rem; }
.preview-tema a { color: inherit; font-weight: 700; text-decoration: underline; margin-left: .4em; }

/* Barra de progreso de lectura */
.scroll-progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 200; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; }

/* Resaltado que se desliza en el menú */
.nav-glide { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--accent); opacity: 0; pointer-events: none; transition: transform .32s var(--ease), width .32s var(--ease), opacity .2s; }
.nav-glide.is-on { opacity: 1; }
@media (max-width: 960px) { .nav-glide { display: none; } }

/* Titulares que se descubren */
.rv { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.rv > span { display: block; transform: translateY(104%); transition: transform 1.05s cubic-bezier(.16, 1, .3, 1); }
.rv-in .rv > span { transform: none; }

/* Luz del hero y de las tarjetas (la mueve efectos.mjs) */
.hero > .container { position: relative; z-index: 1; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity .5s; background: radial-gradient(560px circle at var(--hx, 50%) var(--hy, 30%), var(--luz, transparent), transparent 65%); }
.hero.hero-luz::after { opacity: 1; }
.hero-particulas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
:root:not([data-theme="neon"]) .hero-particulas { display: none; }

/* Cursor propio (solo neón) */
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 300; display: none; border-radius: 50%; }
.cursor-propio[data-theme="neon"] .cursor-dot, .cursor-propio[data-theme="neon"] .cursor-ring { display: block; }
.cursor-dot { width: 8px; height: 8px; margin: -4px 0 0 -4px; background: #00E87B; box-shadow: 0 0 10px rgba(0,232,123,.8); }
.cursor-ring { width: 36px; height: 36px; margin: -18px 0 0 -18px; border: 1px solid rgba(0,232,123,.45); transition: width .2s, height .2s, margin .2s, background-color .2s; }
.cursor-ring.is-hover { width: 56px; height: 56px; margin: -28px 0 0 -28px; background: rgba(0,232,123,.08); border-color: rgba(0,232,123,.8); }

/* Demo: «escribiendo…» antes de cada mensaje */
.js .demo[data-anim] .ev.is-escribiendo { opacity: 1; transform: none; color: transparent; max-width: 66px; max-height: 38px; overflow: hidden; position: relative; }
.ev.is-escribiendo small { display: none; }
.ev.is-escribiendo::before { content: "• • •"; position: absolute; left: 14px; top: 7px; color: var(--muted); letter-spacing: 1px; animation: latido 1s ease-in-out infinite; }
@keyframes latido { 50% { opacity: .35; } }

/* Ventanas: captura del panel mientras carga la web (o tarjeta «acceso privado») */
.live-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: opacity .4s; }
.live.is-ready .live-poster { opacity: 0; }
.live--privado .live-poster { opacity: 1 !important; }
.live-url svg { width: 13px; height: 13px; display: inline-block; vertical-align: -2px; }

/* Contenido con IA (colección `showcase`) */
.sc-grid { display: grid; gap: clamp(18px, 2.4vw, 30px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.sc-item { margin: 0; }
.sc-slider { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border: var(--border-w) solid var(--line-strong); border-radius: var(--radius-lg); background: var(--bg-alt); cursor: ew-resize; touch-action: pan-y; user-select: none; box-shadow: var(--shadow); }
.sc-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.sc-after { position: absolute; inset: 0; clip-path: inset(0 0 0 50%); }
.sc-handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; transform: translateX(-50%); background: var(--surface); z-index: 3; box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
.sc-handle:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.sc-knob { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 42px; height: 42px; border-radius: 50%; background: var(--surface); color: var(--ink); border: var(--border-w) solid var(--line-strong); display: grid; place-items: center; font-size: 1rem; box-shadow: 0 6px 18px rgba(0,0,0,.25); transition: transform .2s; }
.sc-slider.is-activo .sc-knob { transform: translate(-50%, -50%) scale(1.1); }
.sc-tag { position: absolute; bottom: 10px; z-index: 2; font-family: var(--f-kicker); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: var(--btn-radius); background: var(--ink); color: var(--bg); }
.sc-tag--antes { left: 10px; }
.sc-tag--despues { right: 10px; background: var(--accent); color: var(--on-accent); }
.sc-audio-cover { position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center; background: var(--bg-alt) center / cover; border: var(--border-w) solid var(--line-strong); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.sc-audio-cover .sc-tag { top: 10px; bottom: auto; left: 10px; }
.sc-audio-play { width: 62px; height: 62px; border-radius: 50%; border: 0; background: var(--accent); color: var(--on-accent); font-size: 1.2rem; cursor: pointer; box-shadow: 0 10px 30px -10px rgba(0,0,0,.5); }
.sc-audio-bar { height: 5px; background: var(--line); border-radius: 0 0 var(--radius) var(--radius); overflow: hidden; }
.sc-audio-bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .15s linear; }
.sc-item .figcap { margin-top: 12px; }

/* Testimonios reales */
.testimonio { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.testimonio blockquote { margin: 0; font-family: var(--f-display); font-size: 1.15rem; line-height: 1.45; }
.testimonio-metricas { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.testimonio-metricas li { font-size: .84rem; padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--btn-radius); }
.testimonio-metricas b { color: var(--accent-text); }

/* ═══════════════════════════════════════════════════════════════════════════
   18. CHAT DE NEO — mismo motor que la v2 (public/js/app/chatbot.js), cara de cada tema
   ═══════════════════════════════════════════════════════════════════════════ */
.chat-launcher { position: fixed; right: 20px; bottom: 20px; z-index: 120; display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 20px 0 16px; border-radius: 999px; border: var(--border-w) solid var(--ink); background: var(--ink); color: var(--bg); font-weight: 650; font-size: .95rem; cursor: pointer; box-shadow: var(--shadow-lift); transition: transform .25s var(--ease), box-shadow .25s, opacity .2s; }
.chat-launcher:hover { transform: translateY(-2px); }
.chat-launcher-ic { width: 22px; height: 22px; flex-shrink: 0; }
.chat-launcher.is-cargando .chat-launcher-ic { animation: latido .8s ease-in-out infinite; }
.chat-badge { position: absolute; top: -6px; right: -4px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: .72rem; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--bg); animation: bote 2.4s ease-in-out infinite; }
@keyframes bote { 0%, 70%, 100% { transform: translateY(0); } 80% { transform: translateY(-5px); } 90% { transform: translateY(0); } }
@media (max-width: 560px) { .chat-launcher { width: 58px; padding: 0; justify-content: center; } .chat-launcher-txt { display: none; } }

.chat-nudge { position: fixed; right: 20px; bottom: 90px; z-index: 119; max-width: 270px; display: flex; gap: 4px; align-items: flex-start; background: var(--surface); color: var(--ink-2); border: var(--border-w) solid var(--line-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow-lift); padding: 12px 6px 12px 14px; animation: entra .35s var(--ease) both; }
.chat-nudge > button:first-child { flex: 1; text-align: left; background: none; border: 0; padding: 0; color: inherit; font: inherit; font-size: .9rem; line-height: 1.4; cursor: pointer; }
.chat-nudge b { display: block; margin-top: 4px; color: var(--accent-text); }
.chat-nudge-x { width: 30px; height: 30px; display: grid; place-items: center; background: none; border: 0; color: var(--muted); cursor: pointer; flex-shrink: 0; }
.chat-nudge-x svg { width: 15px; height: 15px; }
@keyframes entra { from { opacity: 0; transform: translateY(10px); } }

.chat-box { position: fixed; right: 20px; bottom: 90px; z-index: 121; width: min(390px, calc(100vw - 32px)); height: min(580px, calc(100vh - 120px)); display: flex; flex-direction: column; background: var(--surface); color: var(--ink); border: var(--border-w) solid var(--line-strong); border-radius: var(--radius-lg); box-shadow: 0 30px 70px -20px rgba(0,0,0,.45); overflow: hidden; opacity: 0; visibility: hidden; transform: translateY(14px) scale(.97); transform-origin: bottom right; transition: opacity .28s var(--ease), transform .28s var(--ease), visibility 0s .28s; }
.chat-box.open { opacity: 1; visibility: visible; transform: none; transition: opacity .28s var(--ease), transform .28s var(--ease), visibility 0s; }
@media (max-width: 560px) {
  .chat-box { inset: auto 0 0 0; width: 100%; height: min(90vh, 100dvh); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .chat-abierto .chat-launcher { opacity: 0; pointer-events: none; }
}
.chat-head { display: flex; align-items: center; gap: 6px; padding: 10px 8px 10px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.chat-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 22%, transparent); flex-shrink: 0; }
.chat-title { color: inherit; flex: 1; min-width: 0; font-size: .95rem; font-weight: 700; font-family: var(--f-body); }
.chat-voice-status { font-size: .72rem; color: var(--muted); font-family: var(--f-mono); }
.chat-icon-btn { width: 38px; height: 38px; display: grid; place-items: center; background: none; border: 0; border-radius: var(--radius); color: var(--ink-2); cursor: pointer; }
.chat-icon-btn:hover { background: var(--accent-soft); color: var(--ink); }
.chat-icon-btn svg { width: 18px; height: 18px; }
.chat-icon-btn.text-neon { color: var(--accent-text); background: var(--accent-soft); }
.chat-icon-btn.animate-pulse { animation: latido 1.1s ease-in-out infinite; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; font-size: .93rem; background: var(--bg); overscroll-behavior: contain; }
.chat-bubble { max-width: 86%; padding: 10px 13px; border-radius: 16px; line-height: 1.45; overflow-wrap: anywhere; animation: burbuja .28s var(--ease) both; }
@keyframes burbuja { from { opacity: 0; transform: translateY(6px) scale(.97); } }
.chat-bubble.agent { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.chat-bubble.client { align-self: flex-end; background: var(--ink); color: var(--bg); border-bottom-right-radius: 4px; }
.chat-bubble.admin { align-self: flex-start; background: var(--accent-soft); border: 1px solid var(--accent-text); }
.chat-bubble strong, .chat-bubble .text-white { color: inherit; font-weight: 700; }
.chat-bubble .text-neon { color: var(--accent-text); }
.chat-bubble a { color: var(--accent-text); text-decoration: underline; }
.chat-bubble.client a { color: inherit; }
.chat-bubble a.inline-block { display: block; text-align: center; margin-top: 8px; padding: 9px 12px; border-radius: var(--btn-radius); background: var(--accent); color: var(--on-accent); text-decoration: none; font-weight: 700; }
.chat-msgs > .self-center { align-self: center; text-align: center; font-size: .76rem; font-style: italic; color: var(--muted); padding: 2px 8px; }
.typing-indicator { align-self: flex-start; display: inline-flex; gap: 4px; padding: 11px 13px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.typing-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: puntito 1.3s infinite ease-in-out; }
.typing-dot:nth-child(2) { animation-delay: .15s; } .typing-dot:nth-child(3) { animation-delay: .3s; }
@keyframes puntito { 0%, 80%, 100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-4px); opacity: 1; } }
#neo-chatbot-options { display: flex; flex-direction: column; gap: 6px; margin-top: 2px; }
.chat-option-btn { text-align: left; min-height: 40px; padding: 8px 12px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-2); font-size: .86rem; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.chat-option-btn:hover { background: var(--ink); color: var(--bg); }
.chat-input { padding: 10px 12px 12px; border-top: 1px solid var(--line); background: var(--surface); }
.chat-input-row { display: flex; gap: 8px; }
#chatbot-text-input { flex: 1; min-width: 0; min-height: 44px; padding: 10px 12px; border: var(--border-w) solid var(--line-strong); border-radius: var(--radius); background: var(--bg); color: var(--ink); font-size: 16px; }
.chat-send { min-height: 44px; padding: 0 16px; border: var(--border-w) solid var(--accent); border-radius: var(--btn-radius); background: var(--accent); color: var(--on-accent); font-weight: 700; cursor: pointer; }
.chat-send:disabled, #chatbot-text-input:disabled { opacity: .6; cursor: progress; }
.chat-legal { margin: 8px 0 0; font-size: .72rem; line-height: 1.4; color: var(--muted); }
.chat-legal a, .chat-legal button { color: inherit; text-decoration: underline; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }

/* ── Editorial: lámpara cálida, chat como carta ── */
[data-theme="editorial"] { --luz: rgba(140, 107, 47, .10); }
[data-theme="editorial"] .scroll-progress { height: 2px; }
[data-theme="editorial"] .scroll-progress span { background: var(--ink); }
[data-theme="editorial"] .nav-glide { height: 1px; background: var(--ink); }
[data-theme="editorial"] :is(.card, .block, .step, .plan, .live):hover { background-image: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(140, 107, 47, .08), transparent 70%); }
[data-theme="editorial"] .link-arrow { border-bottom-color: var(--line); background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .35s var(--ease); }
[data-theme="editorial"] .link-arrow:hover { background-size: 100% 1px; border-bottom-width: 1px; }
[data-theme="editorial"] .chat-launcher { font-family: var(--f-display); font-style: italic; font-weight: 500; font-size: 1.02rem; border-radius: 0; }
[data-theme="editorial"] .chat-box { border-radius: 2px; }
[data-theme="editorial"] .chat-title { font-family: var(--f-display); font-weight: 500; font-size: 1.08rem; }
[data-theme="editorial"] .chat-bubble { border-radius: 2px; }
[data-theme="editorial"] .chat-bubble.agent { border-left: 2px solid var(--accent); }
[data-theme="editorial"] .chat-option-btn { border-radius: 0; font-family: var(--f-display); font-size: .95rem; }
[data-theme="editorial"] .sc-tag { font-family: var(--f-display); font-style: italic; text-transform: none; letter-spacing: 0; font-weight: 500; font-size: .8rem; }

/* ── Periódico: tinta, sellos y bocadillos ── */
[data-theme="periodico"] .scroll-progress { height: 5px; }
[data-theme="periodico"] .scroll-progress span { border-bottom: 1px solid var(--ink); }
[data-theme="periodico"] .nav-glide { height: 4px; background: var(--highlight); }
[data-theme="periodico"] .hero-stamp.is-estampado { animation: estampar .6s cubic-bezier(.2, 1.5, .4, 1) both; }
@keyframes estampar { 0% { opacity: 0; transform: rotate(-11deg) scale(2); } 55% { opacity: 1; transform: rotate(-11deg) scale(.9); } 100% { transform: rotate(-11deg) scale(1); } }
[data-theme="periodico"] .tile::after { transition: background-position .4s var(--ease), opacity .3s; }
[data-theme="periodico"] .tile:hover::after { background-position: 3px 3px; opacity: .85; }
[data-theme="periodico"] .chat-launcher { background: var(--accent); color: var(--on-accent); border: 2.5px solid var(--ink); border-radius: 2px; box-shadow: 4px 4px 0 var(--ink); font-family: var(--f-kicker); text-transform: uppercase; letter-spacing: .08em; }
[data-theme="periodico"] .chat-launcher:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
[data-theme="periodico"] .chat-badge { background: var(--highlight); color: var(--ink); border: 2px solid var(--ink); }
[data-theme="periodico"] .chat-box, [data-theme="periodico"] .chat-nudge { border: 2.5px solid var(--ink); border-radius: 2px; box-shadow: 8px 8px 0 var(--ink); }
[data-theme="periodico"] .chat-head { background: var(--ink); color: var(--bg); border-bottom: 0; }
[data-theme="periodico"] .chat-head .chat-icon-btn { color: var(--bg); }
[data-theme="periodico"] .chat-head .chat-icon-btn:hover { background: var(--accent); }
[data-theme="periodico"] .chat-head .chat-voice-status { color: var(--bg); }
[data-theme="periodico"] .chat-title { font-family: var(--f-kicker); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
[data-theme="periodico"] .chat-msgs { background-color: var(--bg); background-image: radial-gradient(rgba(21,19,15,.08) 1px, transparent 1.3px); background-size: 7px 7px; }
[data-theme="periodico"] .chat-bubble { border: 2px solid var(--ink); border-radius: 16px; position: relative; margin-bottom: 6px; }
[data-theme="periodico"] .chat-bubble.agent { background: var(--surface); }
[data-theme="periodico"] .chat-bubble.client { background: var(--highlight); color: var(--ink); }
[data-theme="periodico"] .chat-option-btn { border: 2px solid var(--ink); border-radius: 2px; font-family: var(--f-kicker); text-transform: uppercase; letter-spacing: .05em; font-size: .78rem; background: var(--surface); color: var(--ink); }
[data-theme="periodico"] .chat-option-btn:hover { background: var(--highlight); color: var(--ink); }
[data-theme="periodico"] .chat-send { border: 2.5px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); font-family: var(--f-kicker); text-transform: uppercase; letter-spacing: .06em; }
[data-theme="periodico"] .sc-slider, [data-theme="periodico"] .sc-audio-cover { border-color: var(--ink); }
[data-theme="periodico"] .sc-tag--despues { background: var(--highlight); color: var(--ink); border: 1.5px solid var(--ink); }
[data-theme="periodico"] .testimonio blockquote::before { content: "«"; color: var(--accent); }
[data-theme="periodico"] .testimonio blockquote::after { content: "»"; color: var(--accent); }

/* ── Neón: el chat de siempre de NeoWeb ── */
[data-theme="neon"] { --luz: rgba(0, 232, 123, .11); }
[data-theme="neon"] .scroll-progress span { background: linear-gradient(90deg, #00E87B, #8B5CF6); box-shadow: 0 0 8px rgba(0,232,123,.6); }
[data-theme="neon"] .nav-glide { height: 2px; background: #00E87B; box-shadow: 0 0 10px rgba(0,232,123,.7); }
[data-theme="neon"] :is(.card, .block, .step, .plan, .live):hover { background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(0, 232, 123, .09), transparent 75%), linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012)); }
[data-theme="neon"] .chat-launcher { background: #00E87B; color: #03140B; border-color: rgba(255,255,255,.12); box-shadow: 0 8px 32px rgba(0,232,123,.35); }
[data-theme="neon"] .chat-launcher:hover { box-shadow: 0 12px 40px rgba(0,232,123,.55); transform: scale(1.04); }
[data-theme="neon"] .chat-badge { background: #EF4444; color: #fff; border-color: #0A0A0F; }
[data-theme="neon"] .chat-box { background: rgba(18, 18, 26, .95); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border: 1px solid rgba(0, 232, 123, .25); border-radius: 20px; box-shadow: 0 16px 48px rgba(0,0,0,.65); }
[data-theme="neon"] .chat-head { background: #0E0E15; border-bottom-color: rgba(255,255,255,.08); }
[data-theme="neon"] .chat-title { font-family: var(--f-mono); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; }
[data-theme="neon"] .chat-dot { background: #00E87B; animation: latido 1.6s ease-in-out infinite; }
[data-theme="neon"] .chat-msgs { background: transparent; }
[data-theme="neon"] .chat-bubble.agent { background: #202C33; color: #E9EDEF; border-color: rgba(255,255,255,.05); }
[data-theme="neon"] .chat-bubble.client { background: #005C4B; color: #E9EDEF; }
[data-theme="neon"] .chat-bubble.admin { background: rgba(37, 99, 235, .2); color: #EFF6FF; border-color: rgba(96, 165, 250, .35); }
[data-theme="neon"] .chat-option-btn { background: rgba(0, 232, 123, .06); border-color: rgba(0, 232, 123, .18); color: #2EF294; }
[data-theme="neon"] .chat-option-btn:hover { background: rgba(0, 232, 123, .15); border-color: #00E87B; color: #fff; }
[data-theme="neon"] .chat-input { background: #0E0E15; border-top-color: rgba(255,255,255,.06); }
[data-theme="neon"] #chatbot-text-input { background: #13131A; border-color: rgba(255,255,255,.12); }
[data-theme="neon"] .chat-send { border-radius: 12px; }
[data-theme="neon"] .sc-tag--despues { box-shadow: 0 0 14px rgba(0,232,123,.45); }

@media (prefers-reduced-motion: reduce) {
  .rv > span { transform: none !important; }
  .chat-badge, .chat-dot { animation: none !important; }
}

/* Captación: campos de trampa fuera de la navegación y estados legibles en los tres temas. */
.form-trap { position:absolute; left:-10000px; width:1px; height:1px; overflow:hidden; }
.form-status.is-error { border-color:var(--accent); color:var(--accent-text); }
.form-status:focus { outline:2px solid var(--focus); outline-offset:5px; }
.checklist-block { max-width:780px; margin-inline:auto; }
.checklist-block p { margin-top:12px; }
.form input,.form textarea,.form select { min-width:0; max-width:100%; }

/* CP7: idiomas por enlaces reales y selector nativo accesible. */
.lang-select{max-width:4.6rem;padding:.45rem .3rem;border:1px solid var(--line);border-radius:0;background:var(--surface);color:var(--ink);font:inherit;font-size:.8rem;cursor:pointer}
.lang-select:focus-visible,.lang-links a:focus-visible{outline:2px solid var(--focus);outline-offset:3px}
.lang-links{display:flex;flex-wrap:wrap;justify-content:center;gap:.75rem 1.5rem;padding:1rem;border-top:1px solid var(--line);font-size:.85rem;background:var(--bg);color:var(--ink)}
.lang-links a[aria-current=page]{font-weight:700;text-decoration:underline;text-underline-offset:.25em}

/* Rótulos generados del periódico; heredan el idioma de la página. */
html:lang(en) { --nw-pagina: "Pg. "; --nw-vineta: "Panel "; }
html:lang(fr) { --nw-pagina: "P. "; --nw-vineta: "Case "; }
html:lang(pt) { --nw-pagina: "Pág. "; --nw-vineta: "Vinheta "; }
