/* ═══════════════════════════════════════════════════════════
   OBS CFDI Intelligence: páginas de producto
   Mismo lenguaje que obsidian-sec.com: lienzo gris claro, tarjetas
   blancas planas, bandas oscuras con campo de píxeles, botones split,
   paleta de temporada. Todo se lee sin JavaScript; bc.js solo añade
   animación (píxeles, intro, aparición al hacer scroll, contadores).
   ═══════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #f2f3f2;
  --white:       #ffffff;
  --ink:         #0a0d0b;
  --muted:       #5c6660;
  --body:        #3b443f;
  --line:        #e2e5e3;
  --dark:        #030604;
  --dark-card:   #0a0f0c;
  --dark-line:   rgba(255,255,255,.09);
  --accent:      #16a34a;
  --accent-hi:   #22c55e;
  --accent-deep: #0b5d29;
  --accent-soft: #4ade80;
  --pale:        #d3f9de;

  /* Color del hero según temporada (igual que la home) */
  --season:      22,163,74;
  --season-hi:   #4ade80;

  --font: "Geist", "Helvetica Neue", Arial, sans-serif;
  --mono: "Space Mono", "Courier New", monospace;
  --radius: 12px;
  --gutter: 42px;
  --ease: cubic-bezier(.2,.8,.2,1);

  --arrow-w: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 6l12 12M18 8v10H8'/%3E%3C/svg%3E");
  --arrow-k: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a0d0b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 6l12 12M18 8v10H8'/%3E%3C/svg%3E");
  /* Campo de píxeles estático: respaldo cuando no hay JavaScript */
  --pixels: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' fill='%2316a34a'%3E%3Crect x='0' y='0' width='4' height='4' opacity='.55'/%3E%3Crect x='10' y='20' width='4' height='4' opacity='.25'/%3E%3Crect x='30' y='10' width='4' height='4' opacity='.8'/%3E%3Crect x='50' y='30' width='4' height='4' opacity='.35'/%3E%3Crect x='20' y='40' width='4' height='4' opacity='.6'/%3E%3Crect x='40' y='50' width='4' height='4' opacity='.2'/%3E%3Crect x='0' y='30' width='4' height='4' opacity='.15'/%3E%3Crect x='50' y='0' width='4' height='4' opacity='.3'/%3E%3Crect x='40' y='20' width='4' height='4' opacity='.12'/%3E%3Crect x='10' y='50' width='4' height='4' opacity='.4'/%3E%3C/svg%3E");
}
html[data-season="snow"]    { --season: 14,165,233;  --season-hi: #7dd3fc; }
html[data-season="pumpkin"] { --season: 234,88,12;   --season-hi: #fb923c; }
html[data-season="newyear"] { --season: 234,179,8;   --season-hi: #fde047; }
html[data-season="lunar"]   { --season: 220,38,38;   --season-hi: #fbbf24; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 110px; overflow-x: clip; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.4; letter-spacing: -.02em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); position: relative; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 300; background: #fff; color: var(--ink); padding: 8px 12px; border-radius: 4px; }
.skip:focus { left: 16px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pixel-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* Barra de progreso de lectura (como la home) */
#progress-bar { position: fixed; top: 0; left: 0; height: 2px; width: 0; background: var(--accent); z-index: 200; pointer-events: none; }

/* ── Split button: bloque de texto + bloque de flecha ── */
.split-btn {
  display: inline-flex; align-items: stretch; gap: 2px; height: 56px;
  font-size: 16px; font-weight: 400; letter-spacing: -.01em; text-decoration: none; flex-shrink: 0;
}
.split-label {
  display: flex; align-items: center; padding: 0 28px; border-radius: 4px;
  background: #000; color: #fff; white-space: nowrap; transition: background .25s;
}
.split-arrow {
  width: 56px; flex-shrink: 0; border-radius: 4px;
  background: var(--accent) var(--arrow-w) center / 20px no-repeat;
  transition: background-position .3s var(--ease), background-color .25s;
}
.split-btn:hover .split-arrow { background-position: 60% 60%; }
.split-btn:hover .split-label { background: #1c2420; }
.split-btn--accent .split-label { background: var(--accent); }
.split-btn--accent .split-arrow { background-color: #fff; background-image: var(--arrow-k); }
.split-btn--accent:hover .split-label { background: #12893e; }
.split-btn--light .split-label { background: #fff; color: var(--ink); }
.split-btn--light .split-arrow { background-color: #fff; background-image: var(--arrow-k); }
.split-btn--light:hover .split-label { background: #eef1ef; }
.split-btn--sm { height: 48px; font-size: 15px; }
.split-btn--sm .split-label { padding: 0 20px; }
.split-btn--sm .split-arrow { width: 48px; background-size: 18px; }

/* ═══ NAV: barra de vidrio fija, cambia de tono según el fondo ═══ */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  padding: 28px var(--gutter) 0; pointer-events: none;
  transition: padding .35s var(--ease);
}
.site-nav > * { pointer-events: auto; }
.site-nav.scrolled { padding-top: 14px; }
.nav-bar {
  position: relative; height: 64px; display: flex; align-items: center; gap: 20px;
  padding: 0 10px 0 16px; border-radius: 14px; color: #f2f3f2;
  background: rgba(16,22,18,.42); border: 1px solid rgba(255,255,255,.14);
  -webkit-backdrop-filter: blur(10px) saturate(1.7) brightness(.8); backdrop-filter: blur(10px) saturate(1.7) brightness(.8);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.24), inset 0 0 18px rgba(255,255,255,.04), 0 10px 30px rgba(0,0,0,.3);
  transition: background .35s, color .35s, border-color .35s, box-shadow .35s;
}
.site-nav[data-tone="light"] .nav-bar {
  color: var(--ink); background: rgba(255,255,255,.62); border-color: rgba(10,13,11,.08);
  -webkit-backdrop-filter: blur(10px) saturate(1.9) brightness(1.08); backdrop-filter: blur(10px) saturate(1.9) brightness(1.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 8px 24px rgba(0,0,0,.08);
}
html[data-lite] .nav-bar { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(12,18,14,.92); }
html[data-lite] .site-nav[data-tone="light"] .nav-bar { background: rgba(255,255,255,.95); }
.nav-logo { position: relative; display: block; flex-shrink: 0; }
.nav-logo img { height: 44px; width: auto; transition: opacity .35s; }
.nav-logo .logo-ink { position: absolute; inset: 0; opacity: 0; }
.site-nav[data-tone="light"] .logo-ink { opacity: 1; }
.site-nav[data-tone="light"] .logo-light { opacity: 0; }
.nav-product {
  font-size: 15px; font-weight: 500; letter-spacing: -.03em; color: inherit; text-decoration: none;
  padding-left: 20px; border-left: 1px solid rgba(127,127,127,.35); white-space: nowrap;
}
.nav-links { display: flex; gap: 2px; list-style: none; }
.nav-links a {
  display: block; padding: 8px 12px; border-radius: 4px; font-size: 15px; text-decoration: none;
  color: inherit; opacity: .72; transition: background .2s, opacity .2s, color .2s;
}
.nav-links a:hover { opacity: 1; background: rgba(127,127,127,.14); }
.nav-links a[aria-current="page"] { opacity: 1; color: var(--ink); background: #fff; }
.site-nav[data-tone="light"] .nav-links a[aria-current="page"] { color: #fff; background: #000; }
.nav-cta { height: 64px; }
.nav-cta .split-label { padding: 0 26px; }
.nav-cta .split-arrow { width: 64px; }
.site-nav.scrolled .nav-cta { box-shadow: 0 10px 30px rgba(0,0,0,.1); }

/* ═══ HERO oscuro con campo de píxeles ═══ */
.hero {
  position: relative; overflow: hidden; color: #fff; min-height: 640px;
  background:
    radial-gradient(60% 70% at 78% 40%, rgba(var(--season),.17), transparent 70%),
    radial-gradient(40% 50% at 0% 0%, rgba(var(--season),.10), transparent 70%),
    var(--dark);
}
.hero-visual {
  position: absolute; top: 0; right: 0; bottom: 0; width: 58%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 32%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 32%);
}
/* Sin JavaScript: patrón de píxeles estático en lugar del canvas */
html:not(.js) .hero-visual { background: var(--pixels) 0 0 / 60px 60px; opacity: .6; }
.hero-inner { position: relative; z-index: 2; padding-top: 168px; padding-bottom: 64px; }
.hero-eyebrow { color: var(--season-hi); font-size: 16px; font-weight: 500; letter-spacing: -.03em; margin-bottom: 18px; }
.hero h1 {
  max-width: 760px; font-size: clamp(2.6rem, 4.9vw, 4.4rem); font-weight: 500;
  letter-spacing: -.045em; line-height: 1.08; color: #eef1ee;
}
.hero h1 .accent { color: var(--season-hi); }
.hero-sub { margin-top: 24px; max-width: 600px; font-size: 19px; line-height: 1.32; color: rgba(255,255,255,.68); }
.hero-chips { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; list-style: none; max-width: 700px; }
.hero-chips li {
  padding: 6px 12px; border-radius: 3px; font-size: 14px; font-weight: 500;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.82);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.hero-chips li:first-child { background: var(--accent); border-color: var(--accent); color: #fff; }
.hero-meta { margin-top: 16px; font-size: 14px; color: rgba(255,255,255,.5); }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }

/* Cifras clave (como el bloque de estadísticas de la home) */
.hero-stats { margin-top: 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 760px; list-style: none; }
.hero-stats li {
  padding: 18px 20px 16px; border-radius: 8px; background: rgba(10,15,12,.72); border: 1px solid var(--dark-line);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.hero-stats b { display: block; font-size: clamp(1.9rem, 2.6vw, 2.4rem); font-weight: 500; letter-spacing: -.05em; line-height: 1; color: var(--season-hi); font-variant-numeric: tabular-nums; }
.hero-stats span { display: block; margin-top: 8px; font-size: 14px; line-height: 1.3; color: rgba(255,255,255,.62); }

/* ═══ DOCUMENTO: índice lateral + tarjetas ═══ */
.doc { padding: 48px 0 88px; }
.doc-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; align-items: start; }
.doc-toc { position: sticky; top: 110px; }
.doc-toc p { font-size: 14px; font-weight: 500; color: var(--accent); margin-bottom: 14px; }
.doc-toc ol { list-style: none; counter-reset: toc; display: grid; gap: 2px; border-left: 1px solid var(--line); }
.doc-toc li { counter-increment: toc; }
.doc-toc a {
  display: flex; gap: 12px; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 2px solid transparent;
  font-size: 14.5px; line-height: 1.3; text-decoration: none; color: var(--muted); transition: color .2s, border-color .2s;
}
.doc-toc a::before { content: counter(toc, decimal-leading-zero); font-size: 12px; color: var(--accent); padding-top: 2px; font-variant-numeric: tabular-nums; }
.doc-toc a:hover { color: var(--ink); }
.doc-toc a[aria-current="true"] { color: var(--ink); font-weight: 500; border-left-color: var(--accent); }

.doc-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; min-width: 0; }
.doc-body > section {
  position: relative; overflow: hidden; grid-column: 1 / -1;
  background: var(--white); border-radius: var(--radius); padding: 34px 36px;
  transition: box-shadow .35s var(--ease);
}
.doc-body > section:hover { box-shadow: 0 18px 44px rgba(10,13,11,.06); }
.doc-body > section.half { grid-column: auto; }
.doc-body > section > *:not(.pixel-canvas) { position: relative; z-index: 1; }
.doc-body h2 { font-size: clamp(1.45rem, 2vw, 1.9rem); font-weight: 500; letter-spacing: -.045em; line-height: 1.12; margin-bottom: 14px; }
.doc-body h2 .num { display: block; margin-bottom: 12px; font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--accent); font-variant-numeric: tabular-nums; }
.doc-body h3 { font-size: 17.5px; font-weight: 500; letter-spacing: -.03em; margin: 22px 0 6px; }
.doc-body h2 + h3 { margin-top: 4px; }
.doc-body p, .doc-body li { font-size: 15.5px; line-height: 1.52; color: var(--body); letter-spacing: -.01em; }
.doc-body p + p { margin-top: 8px; }
.doc-body ul, .doc-body ol { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 5px; }
.doc-body ul ul { margin-top: 4px; }
.doc-body li::marker { color: var(--accent); font-weight: 500; }
.doc-body ul + p, .doc-body ol + p, .doc-body .note + p, .doc-body .table-wrap + p { margin-top: 10px; }
.doc-body ul.cols { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
.doc-body strong { font-weight: 600; color: var(--ink); }
.doc-body a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color .2s; }
.doc-body a:hover { color: var(--accent); }
.doc-body em { font-style: normal; font-weight: 500; color: var(--ink); }
code {
  font-family: var(--mono); font-size: .82em; letter-spacing: 0;
  background: var(--bg); border-radius: 3px; padding: 2px 6px; color: var(--ink);
}

/* Pasos numerados (como .modal-step de la home) */
.doc-body ol.steps { list-style: none; padding: 0; counter-reset: step; gap: 8px; margin-top: 12px; }
.doc-body ol.steps--row { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.doc-body ol.steps > li {
  counter-increment: step; position: relative; padding: 14px 16px 14px 56px;
  background: var(--bg); border-radius: 8px; transition: background .25s, transform .3s var(--ease);
}
.doc-body ol.steps > li:hover { background: #eaecea; }
.doc-body ol.steps > li::before {
  content: counter(step, decimal-leading-zero); position: absolute; left: 14px; top: 13px;
  width: 28px; height: 28px; border-radius: 4px; display: grid; place-items: center;
  background: var(--accent); color: #fff; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.doc-body ol.steps ul { margin-top: 4px; }

/* Avisos */
.note { margin-top: 14px; padding: 12px 16px; border-radius: 8px; background: var(--pale); border-left: 3px solid var(--accent); }
.note p { color: var(--ink) !important; }
.note--warn { background: #fdf3e2; border-left-color: #c2410c; }

/* Tarjetas internas */
.card-grid { margin-top: 14px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.card { position: relative; overflow: hidden; background: var(--bg); border-radius: 8px; padding: 22px; display: flex; flex-direction: column; }
.card > *:not(.pixel-canvas) { position: relative; z-index: 1; }
.card h3 { margin: 0 0 6px; font-size: 19px; }
.card p { font-size: 15px !important; color: var(--muted) !important; }
.card--dark { background: var(--dark); color: #fff; }
.card--dark h3 { color: #fff; }
.card--dark p { color: rgba(255,255,255,.65) !important; }
.card--dark .split-btn { margin-top: 18px; align-self: flex-start; }
.big-contact { font-size: 22px !important; font-weight: 500; letter-spacing: -.04em; color: var(--ink) !important; margin-top: 6px; }
.card--dark .big-contact { color: #fff !important; }
.card .pixel-canvas, .doc-body > section > .pixel-canvas {
  -webkit-mask-image: radial-gradient(120% 80% at 100% 100%, #000 0%, rgba(0,0,0,.5) 40%, transparent 72%);
          mask-image: radial-gradient(120% 80% at 100% 100%, #000 0%, rgba(0,0,0,.5) 40%, transparent 72%);
  opacity: .85;
}

/* Dos flujos lado a lado (privacidad) */
.flow-grid { margin-top: 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.flow { position: relative; overflow: hidden; border-radius: 8px; padding: 20px 22px; background: var(--bg); }
.flow > *:not(.pixel-canvas) { position: relative; z-index: 1; }
.doc-body .flow h3 { margin-top: 12px; }
.flow-tag { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--ink); font-size: 13px; }
.flow--dark { background: var(--dark); }
.flow--dark .flow-tag { border-color: var(--accent); background: var(--accent); color: #fff; }

/* Tablas */
.table-wrap { margin-top: 14px; overflow-x: auto; border-radius: 8px; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; vertical-align: top; padding: 9px 14px; border-bottom: 1px solid var(--line); line-height: 1.4; }
th { font-size: 12.5px; font-weight: 500; color: var(--muted); background: var(--bg); white-space: nowrap; }
td:first-child { font-weight: 500; color: var(--ink); min-width: 150px; }
td { color: var(--body); }
td:last-child { white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .2s; }
tbody tr:hover { background: rgba(127,127,127,.06); }

/* Severidades */
.sev-row { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.sev { display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.sev::before { content: ""; width: 7px; height: 7px; border-radius: 1px; background: currentColor; }
.sev-note { font-size: 13px; color: var(--muted); margin: 0 2px 0 6px; white-space: nowrap; }
td .sev { margin: 1px 0; }
.sev-info { background: #e8eef9; color: #1e3a8a; }
.sev-bajo { background: var(--pale); color: var(--accent-deep); }
.sev-medio { background: #fef3c7; color: #854d0e; }
.sev-alto { background: #ffedd5; color: #9a3412; }
.sev-critico { background: #fee2e2; color: #991b1b; }

/* ═══ Sección oscura (como las tarjetas .tier--dark de la home) ═══ */
.doc-body > section.dark { background: var(--dark); color: #fff; }
.doc-body > section.dark:hover { box-shadow: 0 18px 44px rgba(0,0,0,.25); }
.dark h2, .dark h3, .flow--dark h3 { color: #f2f3f2; }
.dark h2 .num { color: var(--accent-soft); }
.doc-body .dark p, .doc-body .dark li, .doc-body .flow--dark p, .doc-body .flow--dark li { color: rgba(255,255,255,.72); }
.doc-body .dark strong, .doc-body .flow--dark strong { color: #fff; }
.doc-body .dark a, .doc-body .flow--dark a { color: var(--accent-soft); }
.doc-body .dark a:hover { color: #fff; }
.dark li::marker, .flow--dark li::marker { color: var(--accent-soft); }
.dark code { background: rgba(255,255,255,.08); color: #fff; }
.dark .note { background: rgba(74,222,128,.08); border-left-color: var(--accent-soft); }
.dark .note p { color: #fff !important; }
.dark .note--warn { background: rgba(251,146,60,.1); border-left-color: #fb923c; }
.dark .table-wrap { border-color: var(--dark-line); background: rgba(10,15,12,.6); }
.dark th { background: rgba(255,255,255,.04); color: rgba(255,255,255,.5); }
.dark th, .dark td { border-bottom-color: var(--dark-line); }
.dark td { color: rgba(255,255,255,.66); }
.dark td:first-child { color: #fff; }
.dark tbody tr:hover { background: rgba(255,255,255,.03); }
.dark .sev-note { color: rgba(255,255,255,.5); }
.dark .sev-info { background: rgba(96,165,250,.15); color: #93c5fd; }
.dark .sev-bajo { background: rgba(74,222,128,.14); color: #86efac; }
.dark .sev-medio { background: rgba(250,204,21,.14); color: #fde047; }
.dark .sev-alto { background: rgba(251,146,60,.16); color: #fdba74; }
.dark .sev-critico { background: rgba(248,113,113,.16); color: #fca5a5; }

/* ═══ FAQ (como la sección de preguntas de la home) ═══ */
.faq-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.6fr); gap: 40px; align-items: start; }
.faq-layout .lead { margin-top: 4px; color: var(--muted); }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 16px 0; font-size: 17px; font-weight: 500; letter-spacing: -.03em; transition: color .2s;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--accent); }
.faq-list summary::after {
  content: ""; width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; border: 1px solid currentColor;
  background:
    linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 12px no-repeat;
  transition: transform .35s var(--ease);
}
.faq-list details[open] summary::after { transform: rotate(180deg); background: linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat; }
.doc-body .faq-list details p { padding: 0 52px 18px 0; color: var(--muted); }
/* Apertura animada donde el navegador lo permite */
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .faq-list details::details-content { block-size: 0; overflow: hidden; transition: block-size .45s var(--ease), content-visibility .45s allow-discrete; }
  .faq-list details[open]::details-content { block-size: auto; }
}

/* ═══ CIERRE oscuro con campo de píxeles ═══ */
.closer { position: relative; overflow: hidden; background: var(--dark); color: #fff; }
.closer > .pixel-canvas {
  opacity: .55;
  -webkit-mask-image: radial-gradient(80% 90% at 50% 40%, #000, rgba(0,0,0,.35) 70%, transparent);
          mask-image: radial-gradient(80% 90% at 50% 40%, #000, rgba(0,0,0,.35) 70%, transparent);
}
html:not(.js) .closer { background: var(--pixels) 0 0 / 60px 60px, var(--dark); }
.closer-inner { position: relative; z-index: 2; text-align: center; padding: 80px var(--gutter) 76px; display: flex; flex-direction: column; align-items: center; }
.closer h2 { font-size: clamp(2rem, 3.4vw, 3.1rem); font-weight: 500; letter-spacing: -.045em; line-height: 1.12; max-width: 820px; }
.closer p { margin-top: 18px; max-width: 580px; font-size: 18px; line-height: 1.38; color: rgba(255,255,255,.7); }
.closer .split-btn { margin-top: 28px; }
.closer .closer-links { margin-top: 18px; font-size: 15px; color: rgba(255,255,255,.5); }
.closer-links a { color: #fff; margin: 0 6px; }

/* ═══ FOOTER oscuro (como el de la home) ═══ */
.site-footer { background: var(--dark); color: #fff; border-top: 1px solid rgba(255,255,255,.1); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 36px; padding-top: 56px; padding-bottom: 56px; }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; }
.footer-logo { width: 220px; height: auto; }
.badge-chip { margin-top: 26px; padding: 6px 12px; border-radius: 3px; background: var(--accent); color: #fff; font-size: 15px; font-weight: 600; }
.footer-note { margin-top: 16px; max-width: 320px; font-size: 14.5px; line-height: 1.5; color: rgba(255,255,255,.6); }
.footer-note a { color: #fff; }
.footer-col h2 { font-size: 22px; font-weight: 500; letter-spacing: -.05em; color: var(--accent-soft); margin-bottom: 18px; }
.footer-col ul { list-style: none; display: grid; gap: 11px; }
.footer-col a { font-size: 17px; color: rgba(255,255,255,.78); text-decoration: none; letter-spacing: -.03em; }
.footer-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-place { margin-top: 24px; font-size: 24px; font-weight: 500; letter-spacing: -.05em; line-height: 1.05; color: var(--accent-soft); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding-top: 22px; padding-bottom: 22px; font-size: 15px; color: rgba(255,255,255,.55); }
.footer-bottom-inner a { color: rgba(255,255,255,.8); }

/* ═══ Animación ═══ */
/* Intro: la navegación y el hero entran escalonados al cargar (como la home) */
@keyframes bc-rise { from { opacity: 0; transform: translateY(var(--rise, 28px)); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .site-nav > * { animation: bc-rise .7s var(--ease) both; --rise: -24px; }
  .site-nav > *:nth-child(2) { animation-delay: .08s; }
  .hero-eyebrow { animation: bc-rise .8s var(--ease) .15s both; }
  .hero h1 { animation: bc-rise 1s var(--ease) .22s both; --rise: 40px; }
  .hero-sub { animation: bc-rise .8s var(--ease) .4s both; }
  .hero-chips li { animation: bc-rise .6s var(--ease) both; --rise: 12px; }
  .hero-chips li:nth-child(1) { animation-delay: .52s; }
  .hero-chips li:nth-child(2) { animation-delay: .58s; }
  .hero-chips li:nth-child(3) { animation-delay: .64s; }
  .hero-chips li:nth-child(4) { animation-delay: .70s; }
  .hero-chips li:nth-child(5) { animation-delay: .76s; }
  .hero-meta { animation: bc-rise .6s var(--ease) .7s both; --rise: 12px; }
  .hero-actions { animation: bc-rise .7s var(--ease) .75s both; --rise: 16px; }
  .hero-stats li { animation: bc-rise .7s var(--ease) both; --rise: 20px; }
  .hero-stats li:nth-child(1) { animation-delay: .85s; }
  .hero-stats li:nth-child(2) { animation-delay: .95s; }
  .hero-stats li:nth-child(3) { animation-delay: 1.05s; }
  .doc-toc > * { animation: bc-rise .8s var(--ease) .5s both; --rise: 16px; }

  /* Aparición al hacer scroll: solo si bc.js está activo (si no, todo se ve) */
  html.js:not(.reveal-off) [data-reveal] {
    opacity: 0; transform: translateY(28px);
    transition: opacity .9s var(--ease), transform .9s var(--ease), box-shadow .35s var(--ease);
    transition-delay: var(--d, 0s);
  }
  html.js:not(.reveal-off) [data-reveal].in { opacity: 1; transform: none; }
  html.js:not(.reveal-off) [data-reveal].in:hover { transition-delay: 0s; }
  .doc-body ol.steps > li:hover { transform: translateX(3px); }
}

/* ═══ Responsive ═══ */
@media (max-width: 1180px) {
  .nav-product { display: none; }
}
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .faq-layout { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 960px) {
  .nav-cta { display: none; }
  .doc-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .doc-toc {
    position: sticky; top: 0; z-index: 50; margin: 0 calc(-1 * var(--gutter)); padding: 10px var(--gutter);
    background: rgba(242,243,242,.9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); min-width: 0;
  }
  .doc-toc p { display: none; }
  .doc-toc ol { display: flex; gap: 6px; border-left: 0; overflow-x: auto; scrollbar-width: none; }
  .doc-toc ol::-webkit-scrollbar { display: none; }
  .doc-toc a { white-space: nowrap; padding: 7px 12px; margin: 0; border: 0; border-radius: 999px; background: var(--white); font-size: 14px; }
  .doc-toc a[aria-current="true"] { background: var(--ink); color: #fff; font-weight: 400; }
  .doc-toc a[aria-current="true"]::before { color: var(--accent-soft); }
  .doc-body > section.half { grid-column: 1 / -1; }
  .hero-visual { width: 70%; opacity: .7; }
}
@media (max-width: 768px) {
  :root { --gutter: 16px; }
  html { scroll-padding-top: 70px; }
  .site-nav { position: absolute; padding-top: 14px; }
  .nav-bar { width: 100%; height: auto; flex-wrap: wrap; gap: 6px 10px; padding: 10px 10px 8px 14px; }
  .nav-logo img { height: 36px; }
  .nav-product { display: block; margin-left: auto; padding-left: 12px; font-size: 14px; }
  .nav-links { width: 100%; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.1); padding-top: 6px; }
  .nav-links a { padding: 7px 8px; font-size: 14px; }
  .hero { min-height: 0; }
  /* El área de píxeles queda entre la nav (siempre visible aquí) y el título */
  .hero-visual { position: relative; width: 100%; height: 250px; margin-top: 108px; opacity: 1; -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 72%, transparent); mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 72%, transparent); }
  .hero-inner { padding-top: 0; margin-top: -28px; padding-bottom: 40px; }
  .hero h1 { font-size: clamp(2.2rem, 10vw, 2.8rem); }
  .hero-sub { font-size: 16.5px; margin-top: 16px; }
  .hero-chips { margin-top: 20px; }
  .hero-chips li { font-size: 13px; padding: 4px 10px; }
  .hero-actions { margin-top: 24px; }
  .hero-stats { margin-top: 28px; gap: 8px; }
  .hero-stats li { padding: 14px 12px 12px; }
  .hero-stats b { font-size: 1.6rem; }
  .hero-stats span { font-size: 12.5px; }
  .doc { padding: 0 0 48px; }
  .doc-body { gap: 10px; }
  .doc-body > section { padding: 24px 18px; }
  .doc-body ul.cols, .flow-grid { grid-template-columns: 1fr; }
  .doc-body ol.steps > li { padding: 12px 14px 12px 52px; }
  .faq-list summary { font-size: 16px; padding: 13px 0; }
  .doc-body .faq-list details p { padding-right: 0; }
  .closer-inner { padding-top: 60px; padding-bottom: 60px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-top: 44px; padding-bottom: 44px; }
  .split-btn { height: 52px; }
  .split-label { padding: 0 20px; }
  .split-arrow { width: 52px; }
}
@media (max-width: 420px) {
  .nav-product { display: none; }
}

@media print {
  .site-nav, .skip, .closer, .doc-toc, .hero-visual, #progress-bar { display: none; }
  .hero { background: #fff; color: var(--ink); min-height: 0; }
  .hero h1, .hero-sub, .hero-meta { color: var(--ink); }
  .hero-inner { padding-top: 24px; }
  .doc-grid, .doc-body { grid-template-columns: 1fr; }
  .dark { background: #fff !important; }
}
