/* =====================================================================
   Certo · mock-up de rediseño (nov 2026)
   Concepto: "El registro". Cada dato tiene fecha, dueño y evidencia.
   El motivo visual es la línea de auditoría: metadatos en mono con
   fecha · persona · cambio. El naranja solo marca excepciones (lo que
   Certo detiene o lo que falta decidir). El azul es la acción.
   Layout: columnas editoriales asimétricas (7/5), bandas que alternan
   papel y blanco, una sola banda navy por página como momento fuerte.
   ===================================================================== */

:root {
  /* Color (marca Certo, brand book v2.4) */
  --blue: #2E56EA;          /* acción, enlaces, foco */
  --blue-ink: #2447C9;      /* azul para texto pequeño sobre claro */
  --navy: #0B1D4D;          /* bandas fuertes, titulares */
  --navy-2: #12245D;
  --navy-3: #1B2E6B;
  --orange: #F2620F;        /* excepción, alerta, pendiente (relleno) */
  --orange-text: #B84605;   /* único naranja para texto sobre claro */
  --orange-on-dark: #FF9B5F;
  --orange-tint: #FEF0E7;
  --mist: #A6B6F0;
  --support: #C7D2F5;
  --blue-tint: #EEF2FE;

  /* Neutros con sesgo azul */
  --bg: #FFFFFF;
  --paper: #F1F3F9;
  --surface: #FFFFFF;
  --ink: #111827;
  --ink-strong: #060C22;
  --muted: #3F475B;
  --faint: #5A6276;
  --line: #DCE1EC;
  --line-strong: #BFC6D6;
  --ok: #1F7A4D;
  --ok-tint: #E7F5EE;

  /* Bandas navy (iguales en ambos temas) */
  --band-bg: #0B1D4D;
  --band-ink: #F3F5FC;
  --band-muted: #B7C1E3;
  --band-line: rgba(199, 210, 245, 0.18);
  --band-surface: #12245D;

  /* Tipo */
  --font-sans: "Geist", "Geist Fallback", "Geist Fallback DejaVu", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", "Geist Mono Fallback", "Geist Mono Fallback Menlo", "Geist Mono Fallback Consolas", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --fs-display: clamp(2.6rem, 1.6rem + 4.2vw, 5.4rem);
  --fs-h1: clamp(2.3rem, 1.5rem + 3.2vw, 4.4rem);
  --fs-h2: clamp(1.7rem, 1.25rem + 1.6vw, 2.7rem);
  --fs-h3: 1.2rem;
  --fs-lead: clamp(1.08rem, 1rem + 0.35vw, 1.3rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-label: 0.72rem;

  --radius: 14px;
  --radius-sm: 8px;
  /* Fluid width: content grows with the screen; side margins grow too. */
  --shell: 2400px;
  --gutter: clamp(20px, 4vw, 96px);
  --gutter-l: max(var(--gutter), env(safe-area-inset-left, 0px));
  --gutter-r: max(var(--gutter), env(safe-area-inset-right, 0px));
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 1px 0 rgba(11, 29, 77, 0.04), 0 18px 40px -22px rgba(11, 29, 77, 0.35);
}

/* Solo modo claro al lanzar (buenas prácticas): el modo oscuro del sistema no invierte nada. */
:root { color-scheme: light; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--fs-body)/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01" 1, "kern" 1;
  overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--bg);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; color: var(--ink-strong); }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--support); color: var(--navy); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Brand Book v2.5: no italics anywhere, not even browser defaults. */
em, i, cite, var, dfn, address { font-style: normal; }
.skip { position: absolute; left: 12px; top: -48px; background: var(--blue); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }

/* ---------- Layout ---------- */
.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.band { padding-block: clamp(64px, 8vw, 120px); position: relative; }
.band--tight { padding-block: clamp(44px, 5vw, 72px); }
.band--paper { background: var(--paper); }
.band--white { background: var(--bg); }
.band--line { border-top: 1px solid var(--line); }
.band--navy { background: var(--band-bg); color: var(--band-ink); }
.band--navy h1, .band--navy h2, .band--navy h3 { color: #fff; }
.band--navy .muted, .band--navy .lead { color: var(--band-muted); }
.band--navy .eyebrow { color: var(--mist); }
.band--navy .eyebrow::before { background: #8FA8FF; }

.split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.split--rev { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.split--top { align-items: start; }
.split > * { min-width: 0; }
.stack { display: grid; gap: 16px; }
.stack-lg { display: grid; gap: 28px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.section-head { display: grid; gap: 16px; max-width: 760px; margin-bottom: clamp(36px, 4vw, 56px); }
.section-head--wide { max-width: none; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: 24px 64px; }
.section-head--wide > * { min-width: 0; }

/* ---------- Tipografía ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 var(--fs-label)/1.2 var(--font-mono);
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue-ink);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--blue); transform: rotate(45deg); flex: none; }
.eyebrow--plain::before { display: none; }
.display {
  font-size: var(--fs-display); line-height: 0.98; letter-spacing: -0.045em; font-weight: 640;
}
.h1, h1 { font-size: var(--fs-h1); line-height: 1.02; letter-spacing: -0.04em; font-weight: 640; }
.h2, h2 { font-size: var(--fs-h2); line-height: 1.08; letter-spacing: -0.03em; font-weight: 620; }
.h3, h3 { font-size: var(--fs-h3); line-height: 1.3; letter-spacing: -0.01em; font-weight: 600; }
.tagline {
  font-size: clamp(1.35rem, 1.05rem + 1.2vw, 2.05rem); line-height: 1.18; letter-spacing: -0.025em;
  font-weight: 500; color: var(--muted);
}
.tagline .hl { font-style: normal; color: var(--ink-strong); background: linear-gradient(transparent 88%, var(--blue) 88%); }
.band--navy .tagline { color: var(--band-muted); }
.band--navy .tagline .hl { color: #fff; }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--muted); max-width: 62ch; }
/* Respuesta directa (AEO): abre cada sección con 40 a 60 palabras que se entienden solas. */
.answer { max-width: 40rem; margin: 0 0 clamp(28px, 3vw, 44px); font-size: clamp(1rem, 0.96rem + 0.2vw, 1.08rem); line-height: 1.6; color: var(--ink); text-wrap: pretty; }
.section-head:not([style*="margin-bottom"]) + .answer { margin-top: calc(-1 * clamp(16px, 2vw, 28px)); }
.section-head[style*="margin-bottom"] + .answer { margin-top: 16px; }
.section-head .answer { margin: 0; }
.band--navy .answer { color: var(--band-ink); }
.muted { color: var(--muted); }
.small { font-size: var(--fs-small); }
.mono { font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0; }
.label { font: 500 var(--fs-label)/1.3 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.prose { display: grid; gap: 16px; max-width: 68ch; }
.prose h2 { margin-top: 24px; font-size: 1.6rem; }
.prose h3 { margin-top: 12px; }
.prose ul, .prose ol { padding-left: 1.2em; display: grid; gap: 8px; }
.prose a { color: var(--blue-ink); text-decoration: underline; text-underline-offset: 3px; }
/* Brand Book v2.5: tabular figures on every number, table and calculator, site-wide. */
html { font-variant-numeric: tabular-nums; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 560; font-size: 0.97rem; letter-spacing: -0.005em; white-space: nowrap;
  transition: transform .2s var(--ease), background .2s, border-color .2s, color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: #2447C9; }
.btn--ghost { border-color: var(--line-strong); color: var(--ink-strong); background: transparent; }
.btn--ghost:hover { border-color: var(--ink-strong); }
.btn--light { background: #fff; color: var(--navy); }
.btn--outline-light { border-color: rgba(255,255,255,.35); color: #fff; }
.btn--outline-light:hover { border-color: #fff; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 0.9rem; }
.btn svg { width: 16px; height: 16px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 560; color: var(--blue-ink); }
.link-arrow::after { content: "→"; transition: transform .2s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }
.band--navy .link-arrow { color: var(--mist); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 28px; min-height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 680; font-size: 1.22rem; letter-spacing: -0.03em; color: var(--ink-strong); }
.brand-mark { width: 26px; height: 26px; flex: none; }
.nav__links { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 12px; border-radius: 8px; border: 0; background: none;
  font-size: 0.94rem; font-weight: 500; color: var(--ink);
}
.nav__link:hover, .nav__item.is-open > .nav__link { background: var(--paper); }
.nav__link[aria-current="page"] { color: var(--blue-ink); }
.nav__link .chev { flex: none; width: 10px; height: 10px; transition: transform 200ms var(--ease); }
.nav__item.is-open .chev { transform: rotate(180deg); }
.nav__right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.lang { font: 500 0.78rem/1 var(--font-mono); padding: 9px 10px; border-radius: 8px; border: 1px solid var(--line); color: var(--muted); }
.lang:hover { color: var(--ink-strong); border-color: var(--line-strong); }
.signin { font-size: 0.94rem; font-weight: 500; padding: 10px 8px; color: var(--muted); }
.signin:hover { color: var(--ink-strong); }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); align-items: center; justify-content: center; }
.menu-btn span { display: block; width: 18px; height: 2px; background: var(--ink-strong); position: relative; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink-strong); }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }

/* Glifos de producto: un rombo con letra, color por familia */
.glyph {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none;
  font: 600 0.8rem/1 var(--font-mono); color: #fff; background: var(--navy);
}
.glyph--crm { background: #2E56EA; }
.glyph--portico { background: #0F6E8C; }
.glyph--procure { background: #17347F; }
.glyph--people { background: #4B3FBF; }
.glyph--workflow { background: #3A4A6B; }
.glyph--cfo { background: #0B1D4D; }
.glyph--intel { background: linear-gradient(135deg, #2E56EA, #F2620F); }
.glyph--data { background: #5F6670; }
.glyph--lg { width: 48px; height: 48px; border-radius: 12px; font-size: 0.95rem; }

/* ---------- Breadcrumb ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font: 500 0.78rem/1.4 var(--font-mono); color: var(--faint); margin-bottom: 28px; }
.crumbs a:hover { color: var(--blue-ink); }
.crumbs li { list-style: none; display: inline-flex; gap: 8px; }
.crumbs li + li::before { content: "/"; color: var(--line-strong); }
.band--navy .crumbs { color: var(--band-muted); }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(28px, 4.5vw, 64px) clamp(56px, 7vw, 112px); position: relative; overflow: hidden; }
.hero::after { /* rejilla de libro mayor, muy tenue */
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px);
  background-size: 100% 44px; opacity: .3;
  mask-image: linear-gradient(180deg, transparent, #000 20%, #000 60%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 20%, #000 60%, transparent);
}
.hero > .shell { position: relative; z-index: 1; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 6.2fr) minmax(0, 5.8fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__grid > * { min-width: 0; }
.hero__copy { display: grid; gap: 24px; }
.hero__copy h1 { max-width: 12ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero__fine { font-size: var(--fs-small); color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.hero__fine span { display: inline-flex; align-items: center; gap: 8px; }
.hero__fine span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); }
.hero--center .hero__copy { text-align: left; }
.hero--simple .hero__copy h1 { max-width: 16ch; }

/* ---------- Ventana de producto (UI ficticia) ---------- */
.win {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
  overflow: hidden; font-size: 0.88rem; position: relative;
}
.win__bar { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--line); background: var(--paper); }
.win__dots { display: flex; gap: 6px; }
.win__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.win__url { flex: 1; min-width: 0; font: 500 0.74rem/1 var(--font-mono); color: var(--faint); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 6px 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win__body { padding: 18px; display: grid; gap: 14px; }
.win__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.win__title { font-weight: 600; color: var(--ink-strong); font-size: 1rem; letter-spacing: -0.01em; }
.win__sub { font: 500 0.74rem/1.3 var(--font-mono); color: var(--faint); }
.win__foot { font: 500 0.7rem/1.4 var(--font-mono); color: var(--faint); padding: 10px 18px; border-top: 1px dashed var(--line); }

.tbl { width: 100%; border-collapse: collapse; font-size: 0.84rem; }
.tbl th { text-align: left; font: 500 0.68rem/1.2 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--faint); padding: 0 8px 8px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .r { text-align: right; font-variant-numeric: tabular-nums; }
.tbl td:first-child, .tbl th:first-child { padding-left: 0; }
.tbl td:last-child, .tbl th:last-child { padding-right: 0; }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font: 500 0.7rem/1.4 var(--font-mono); white-space: nowrap; border: 1px solid transparent; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill--ok { background: var(--ok-tint); color: var(--ok); }
.pill--info { background: var(--blue-tint); color: var(--blue-ink); }
/* Badge de etapa (scripts/releaseFlags.ts): lo agrega el build mientras la etapa no está activa. */
.soon { display: inline-flex; align-items: center; margin-left: 8px; padding: 2px 8px; border-radius: 999px; font: 500 0.68rem/1.4 var(--font-mono); letter-spacing: .02em; white-space: nowrap; vertical-align: middle; font-variant-numeric: tabular-nums; color: var(--blue-ink); background: var(--blue-tint); border: 1px solid var(--support); }
.band--navy .soon { color: #FFFFFF; background: rgba(199, 210, 245, 0.14); border-color: var(--band-line); }
/* Agentes anunciados (scripts/releaseFlags.ts): una capacidad por fila, con su badge. */
.agents-next { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.agents-next li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 10px; border-top: 1px solid var(--line); color: var(--ink-strong); font-size: 0.95rem; }
.later .agents-next, .agents-next:only-child { margin-top: 0; }
@media (max-width: 640px) { .agents-next { grid-template-columns: minmax(0, 1fr); } }
.pill--hold { background: var(--orange-tint); color: var(--orange-text); }
.pill--neutral { background: var(--paper); color: var(--muted); border-color: var(--line); }

/* Línea de auditoría: el motivo de la marca */
.trail { list-style: none; display: grid; gap: 0; position: relative; }
.trail li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 12px; padding-bottom: 14px; position: relative; }
.trail li::before { content: ""; width: 9px; height: 9px; margin-top: 5px; border-radius: 2px; transform: rotate(45deg); background: var(--blue); }
.trail li::after { content: ""; position: absolute; left: 4px; top: 18px; bottom: 0; width: 1px; background: var(--line-strong); }
.trail li:last-child::after { display: none; }
.trail li:last-child { padding-bottom: 0; }
.trail li.is-hold::before { background: var(--orange); }
.trail li.is-muted::before { background: var(--line-strong); }
.trail .t-meta { font: 500 0.7rem/1.4 var(--font-mono); color: var(--faint); display: block; }
.trail .t-what { color: var(--ink); font-size: 0.88rem; }
.band--navy .trail .t-what { color: var(--band-ink); }
.band--navy .trail li::after { background: var(--band-line); }

.note { font: 500 0.72rem/1.5 var(--font-mono); color: var(--faint); display: flex; gap: 8px; }
.note::before { content: "※"; }

/* Tarjeta de excepción flotante sobre una ventana */
.float-card {
  position: absolute; background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); padding: 12px 14px; display: grid; gap: 4px; font-size: 0.82rem; max-width: 260px;
}
.visual { position: relative; }
.visual .float-card { right: -14px; bottom: -22px; }

/* ---------- Hero vivo de la home ---------- */
.live { display: grid; gap: 12px; }
.live__tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.live__tab {
  border: 1px solid var(--line); background: var(--bg); color: var(--muted); border-radius: 999px;
  padding: 7px 12px; font: 500 0.74rem/1 var(--font-mono); display: inline-flex; gap: 8px; align-items: center; position: relative; overflow: hidden;
}
.live__tab[aria-selected="true"] { color: var(--ink-strong); border-color: var(--ink-strong); }
.live__tab .bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--blue); }
.live__tab[aria-selected="true"] .bar { animation: fill 6s linear forwards; }
.live.is-paused .live__tab .bar { animation-play-state: paused; }
@keyframes fill { to { width: 100%; } }
.live__panel[hidden] { display: none !important; }
.live__panel .trail li { animation: rise .6s var(--ease) both; }
.live__panel .trail li:nth-child(2) { animation-delay: .12s; }
.live__panel .trail li:nth-child(3) { animation-delay: .24s; }
.live__panel .trail li:nth-child(4) { animation-delay: .36s; }
@keyframes rise { from { transform: translateY(6px); opacity: .25; } to { transform: none; opacity: 1; } }

/* ---------- Bloques de contenido ---------- */
.pain-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pain { background: var(--bg); padding: clamp(24px, 3vw, 40px); display: grid; gap: 12px; align-content: start; }
.pain .cost { border-top: 1px dashed var(--line-strong); padding-top: 12px; font-size: var(--fs-small); color: var(--muted); }
.pain .cost b { color: var(--orange-text); font-weight: 600; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: .06em; text-transform: uppercase; display: block; margin-bottom: 4px; }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.5vw, 36px); }
.features--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.features--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.feature { display: grid; gap: 10px; align-content: start; padding-top: 18px; border-top: 1px solid var(--line-strong); }
.feature .label { color: var(--blue-ink); }
.band--navy .feature { border-top-color: var(--band-line); }
.band--navy .feature p { color: var(--band-muted); }

.checklist { list-style: none; display: grid; gap: 12px; }
.checklist li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; }
.checklist li::before { content: ""; width: 16px; height: 16px; margin-top: 4px; border-radius: 4px; background: var(--blue-tint); box-shadow: inset 0 0 0 1.5px var(--blue); }
.checklist li.no::before { background: var(--orange-tint); box-shadow: inset 0 0 0 1.5px var(--orange); }

/* Cadena de proceso: es una secuencia real, por eso numerada */
.flow { display: grid; grid-template-columns: repeat(var(--steps, 6), minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg); }
.flow__step { padding: 20px 18px; border-right: 1px solid var(--line); display: grid; gap: 8px; align-content: start; position: relative; }
.flow__step:last-child { border-right: 0; }
.flow__step .n { display: none; }
.flow__step::before { content: ""; width: 10px; height: 10px; background: var(--blue); transform: rotate(45deg); }
.flow__step.is-hold::before { background: var(--orange); }
.flow__step strong { color: var(--ink-strong); font-weight: 600; }
.flow__step p { font-size: var(--fs-small); color: var(--muted); }
.flow__step.is-hold { background: var(--orange-tint); }
.flow__step.is-hold .n { color: var(--orange-text); }

.steps { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(var(--steps, 4), minmax(0, 1fr)); gap: 24px; }
.steps li { display: grid; gap: 10px; align-content: start; padding-top: 18px; border-top: 2px solid var(--ink-strong); position: relative; }
.steps li::before { content: ""; position: absolute; top: -6px; left: 0; width: 10px; height: 10px; background: var(--blue); transform: rotate(45deg); }

/* Tarjetas de producto */
.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pcard {
  display: grid; grid-template-rows: auto auto 1fr auto; gap: 14px; padding: 26px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, transform .25s var(--ease), box-shadow .25s;
  min-height: 100%;
}
.pcard:hover { border-color: var(--ink-strong); transform: translateY(-2px); box-shadow: var(--shadow); }
.pcard__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pcard h3 { font-size: 1.3rem; letter-spacing: -0.02em; }
.pcard p { color: var(--muted); font-size: 0.95rem; }
.pcard__price { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-top: 1px solid var(--line); padding-top: 14px; font-size: var(--fs-small); }
.pcard__price b { font-family: var(--font-mono); font-weight: 500; color: var(--ink-strong); font-size: 0.86rem; }
.pcard--wide { grid-column: span 3; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto; align-items: center; background: var(--band-bg); color: var(--band-ink); border-color: transparent; }
.pcard--wide h3 { color: #fff; }
.pcard--wide p { color: var(--band-muted); }

/* Números con fuente */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-strong); }
.fact { padding: 22px 20px 0 0; display: grid; gap: 6px; }
.fact b { font-size: clamp(2rem, 1.4rem + 2vw, 3.1rem); letter-spacing: -0.04em; font-weight: 620; color: var(--ink-strong); line-height: 1; font-variant-numeric: tabular-nums; }
.fact span { color: var(--muted); font-size: var(--fs-small); max-width: 26ch; }
.band--navy .facts { border-top-color: var(--band-line); }
.band--navy .fact b { color: #fff; }
.band--navy .fact span { color: var(--band-muted); }

/* ---------- Precios ---------- */
.plans { display: grid; grid-template-columns: repeat(var(--plans, 3), minmax(0, 1fr)); gap: 14px; }
.plan { display: grid; grid-template-rows: auto auto auto 1fr auto; gap: 16px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); position: relative; }
.plan--rec { border: 1.5px solid var(--blue); box-shadow: var(--shadow); }
.plan__badge { position: absolute; top: -11px; left: 22px; background: var(--blue); color: #fff; font: 500 0.68rem/1 var(--font-mono); padding: 6px 9px; border-radius: 999px; letter-spacing: .04em; }
.plan__name { font-weight: 620; font-size: 1.1rem; color: var(--ink-strong); }
.plan__for { color: var(--muted); font-size: var(--fs-small); min-height: 2.6em; }
.price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price b { font-size: 2.4rem; letter-spacing: -0.04em; font-weight: 620; color: var(--ink-strong); font-variant-numeric: tabular-nums; line-height: 1; }
.price small { color: var(--muted); font-size: 0.85rem; }
.price__min { font: 500 0.74rem/1.4 var(--font-mono); color: var(--faint); }
.plan .checklist { font-size: 0.92rem; gap: 10px; }
.plan .btn { width: 100%; }
.toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 4px; background: var(--bg); }
.toggle button { border: 0; background: none; padding: 8px 16px; border-radius: 999px; font-size: 0.88rem; font-weight: 500; color: var(--muted); }
.toggle button[aria-pressed="true"] { background: var(--ink-strong); color: var(--bg); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.compare { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 0.92rem; }
.compare caption { text-align: left; padding: 18px 20px 4px; font-weight: 600; color: var(--ink-strong); }
.compare th, .compare td { padding: 14px 20px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare thead th { font: 500 0.72rem/1.3 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--faint); background: var(--paper); }
.compare tbody th { font-weight: 500; color: var(--ink); }
.compare td.c { text-align: center; }
.compare .yes { color: var(--blue-ink); font-weight: 600; }
.compare .no { color: var(--faint); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare .r { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--font-mono); font-size: 0.86rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding: 22px 0; font-weight: 560; font-size: 1.06rem; color: var(--ink-strong); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.4rem/1 var(--font-mono); color: var(--blue-ink); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 0 22px; color: var(--muted); max-width: 72ch; display: grid; gap: 10px; }

/* ---------- Pendiente (hueco marcado, regla 2 del brief) ---------- */
.tbd {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 6px;
  border: 1px dashed var(--orange); background: var(--orange-tint); color: var(--orange-text);
  font: 500 0.72rem/1.5 var(--font-mono); vertical-align: middle; white-space: normal;
}
.tbd::before { content: "Pendiente"; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: 0.64rem; }
.tbd-block { border: 1.5px dashed var(--orange); background: var(--orange-tint); color: var(--orange-text); border-radius: var(--radius); padding: 18px 20px; display: grid; gap: 6px; font-size: var(--fs-small); }
.tbd-block strong { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: .06em; text-transform: uppercase; }

/* ---------- Socio de implementación (enlace contextual a Boldr AI) ---------- */
.partner {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; align-items: center;
  padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
}
.partner__mark { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; background: var(--paper); border: 1px solid var(--line); font: 600 0.8rem/1 var(--font-mono); color: var(--ink-strong); }
.partner p { color: var(--muted); font-size: 0.95rem; }
.partner .label { margin-bottom: 4px; display: block; }
.partner a.inline { color: var(--blue-ink); text-decoration: underline; text-underline-offset: 3px; }

/* Sello de socio autorizado */
.seal { display: inline-grid; grid-template-columns: auto auto; gap: 2px 10px; align-items: center; padding: 10px 14px 10px 10px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); }
.seal svg { grid-row: span 2; width: 34px; height: 34px; }
.seal b { font-size: 0.92rem; color: var(--ink-strong); letter-spacing: -0.01em; }
.seal small { font: 500 0.66rem/1.2 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }

/* ---------- CTA + formulario ---------- */
.cta-band .split { align-items: start; }
.form { background: var(--band-surface); border: 1px solid var(--band-line); border-radius: 18px; padding: clamp(20px, 3vw, 32px); display: grid; gap: 14px; }
.form .grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.82rem; color: var(--band-muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--band-line);
  background: rgba(255,255,255,0.04); color: #fff;
}
.field select option { color: #0B1D4D; }
.field input::placeholder { color: rgba(183, 193, 227, .6); }
.field input:focus, .field select:focus { outline: 2px solid var(--mist); outline-offset: 1px; }
.form .fine { font-size: 0.78rem; color: var(--band-muted); }
.form-done { display: none; padding: 20px; border-radius: 12px; background: rgba(95, 211, 155, .12); color: #CFF5E2; }
.form.is-done .form-done { display: block; }
.form.is-done .form-fields { display: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--paper); border-top: 1px solid var(--line); padding-block: 64px 40px; font-size: 0.92rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(4, minmax(0, 1fr)); gap: 32px; }
.footer-grid > * { min-width: 0; }
.footer-col { display: grid; gap: 10px; align-content: start; }
.footer-col strong { font: 500 var(--fs-label)/1.2 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: 4px; }
.footer-col a { color: var(--muted); }
.footer-col a:hover { color: var(--ink-strong); }
.footer-entity { color: var(--muted); max-width: 40ch; margin-top: 14px; }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--faint); font-size: 0.82rem; }
.footer-badge { display: inline-flex; align-items: center; }
.footer-badge img { display: block; width: 200px; height: 50px; }

/* ---------- Notas del mock-up (no van al sitio real) ---------- */
.spec-fab {
  position: fixed; z-index: 70; right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  display: inline-flex; gap: 8px; align-items: center; border: 0; border-radius: 999px; padding: 12px 16px;
  background: var(--orange); color: #fff; font: 600 0.8rem/1 var(--font-mono); box-shadow: 0 12px 30px -10px rgba(242, 98, 15, .6);
}
.spec-drawer {
  position: fixed; z-index: 80; top: 0; right: 0; bottom: 0; width: min(440px, 100vw);
  background: var(--surface); border-left: 1px solid var(--line); box-shadow: -20px 0 60px -30px rgba(0,0,0,.45);
  transform: translateX(100%); visibility: hidden; transition: transform .35s var(--ease), visibility 0s .35s; overflow-y: auto;
  padding: calc(20px + env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) 22px;
  display: grid; align-content: start; gap: 18px; font-size: 0.88rem;
}
.spec-drawer.is-open { transform: none; visibility: visible; transition: transform .35s var(--ease); }
.spec-drawer h2 { font-size: 1.1rem; letter-spacing: -0.01em; }
.spec-drawer .close { border: 1px solid var(--line); background: var(--bg); border-radius: 8px; padding: 6px 10px; font-size: 0.8rem; }
.spec-row { display: grid; gap: 4px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.spec-row .v { font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink); word-break: break-word; }
.spec-row .ok { color: var(--ok); } .spec-row .bad { color: var(--orange-text); }
.spec-map { display: grid; gap: 2px; }
.spec-map a { display: flex; justify-content: space-between; gap: 10px; padding: 7px 8px; border-radius: 6px; font-size: 0.84rem; }
.spec-map a:hover { background: var(--paper); }
.spec-map a span { font-family: var(--font-mono); font-size: 0.72rem; color: var(--faint); }
.spec-map a.is-here { background: var(--blue-tint); color: var(--blue-ink); }
.toast { position: fixed; z-index: 90; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); opacity: 0; background: var(--navy); color: #fff; padding: 12px 16px; border-radius: 10px; font-size: 0.86rem; transition: all .3s var(--ease); pointer-events: none; max-width: calc(100vw - 32px); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }


/* =====================================================================
   v2 · contraste e impacto (8 nov). Header y hero en navy profundo con
   luz azul y naranja; titulares blancos y pesados; ventanas de producto
   claras que flotan sobre el fondo oscuro. Las zonas oscuras redefinen
   los tokens, así cada componente se adapta solo.
   ===================================================================== */
.h1, h1 { font-size: clamp(2.7rem, 1.3rem + 4.6vw, 5.8rem); line-height: 0.98; letter-spacing: -0.05em; font-weight: 720; }
.h2, h2 { font-size: clamp(2rem, 1.3rem + 2.1vw, 3.2rem); line-height: 1.04; letter-spacing: -0.04em; font-weight: 690; }
.h3, h3 { font-weight: 640; }
.display { font-weight: 720; letter-spacing: -0.05em; }
.lead { color: var(--muted); }
.eyebrow { font-weight: 600; }

.site-header, .hero, .band--navy {
  --bg: #050B1F; --paper: #0A1330; --surface: #0E1838;
  --ink: #DDE4F6; --ink-strong: #FFFFFF; --muted: #B3BDDA; --faint: #8F9BC0;
  --line: rgba(166, 182, 240, 0.16); --line-strong: rgba(166, 182, 240, 0.32);
  --blue: #4A72FF; --blue-ink: #A3B8FF; --blue-tint: rgba(46, 86, 234, 0.24);
  --orange-text: #FF9B5F; --orange-tint: rgba(242, 98, 15, 0.18);
  --ok: #6BE0A6; --ok-tint: rgba(95, 211, 155, 0.16);
  color: var(--ink);
}
.band--navy { background: #050B1F; }
.site-header { background: #050B1F; border-bottom-color: rgba(166, 182, 240, 0.14); }
body::before { background: #050B1F; }
.site-header .btn--primary { background: #FFFFFF; color: #060C22; }
.site-header .btn--primary:hover { background: #DDE4F6; }
.hero {
  background:
    radial-gradient(900px 520px at 88% -8%, rgba(46, 86, 234, 0.62), transparent 62%),
    radial-gradient(700px 460px at -6% 108%, rgba(76, 61, 220, 0.30), transparent 60%),
    radial-gradient(600px 400px at 50% 120%, rgba(46, 86, 234, 0.22), transparent 70%),
    #050B1F;
  padding-block: clamp(36px, 5vw, 72px) clamp(64px, 8vw, 120px);
}
.hero::after {
  background-image: linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 100% 56px, 56px 100%; opacity: 1;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 70%);
}
.hero h1 { color: #FFFFFF; text-shadow: 0 2px 40px rgba(46, 86, 234, 0.35); }
.hero .tagline { color: var(--muted); }
.hero .tagline .hl { color: #FFFFFF; background: linear-gradient(transparent 88%, #4A72FF 88%); }
.hero .eyebrow::before, .band--navy .eyebrow::before { background: #8FA8FF; }
.hero .btn--primary { background: #FFFFFF; color: #060C22; box-shadow: 0 10px 40px -10px rgba(74, 114, 255, 0.9); }
.hero .btn--primary:hover { background: #DDE4F6; }
.hero .btn--ghost { border-color: rgba(255, 255, 255, 0.35); color: #FFFFFF; }
.hero .btn--ghost:hover { border-color: #FFFFFF; background: rgba(255, 255, 255, 0.06); }
.hero .hero__fine span::before { background: #8FA8FF; }
.hero .note { color: #8F9BC0; }

/* Ventanas de producto: claras sobre el fondo oscuro, con luz */
.hero .win, .hero .float-card, .hero .live__tab {
  --bg: #FFFFFF; --paper: #F3F5FA; --surface: #FFFFFF;
  --ink: #111827; --ink-strong: #060C22; --muted: #3F475B; --faint: #5A6276;
  --line: #E3E6EE; --line-strong: #CDD2DE;
  --blue: #2E56EA; --blue-ink: #2447C9; --blue-tint: #EEF2FE;
  --orange-text: #B84605; --orange-tint: #FEF0E7; --ok: #1F7A4D; --ok-tint: #E7F5EE;
  color: var(--ink);
}
.hero .win { border: 0; box-shadow: 0 50px 100px -30px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.08), 0 0 120px -20px rgba(74, 114, 255, 0.55); }
.hero .float-card { border: 0; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6); }
.hero .live__tab { background: rgba(255, 255, 255, 0.08); color: #C9D2EC; border-color: rgba(255, 255, 255, 0.16); }
.hero .live__tab[aria-selected="true"] { background: #FFFFFF; color: #060C22; border-color: #FFFFFF; }
.hero .live__tab .bar { background: #4A72FF; }

/* Hechos con fuente debajo del hero */
.hero .facts { margin-top: clamp(48px, 6vw, 88px); border-top-color: rgba(166, 182, 240, 0.22); }
.hero .fact b { color: #FFFFFF; font-size: clamp(2.4rem, 1.6rem + 2.6vw, 4rem); }
.hero .fact b .hl { font-style: normal; color: #A3B8FF; }
.hero .fact span { color: var(--muted); }

/* Bandas claras: más peso */
.band--paper { background: var(--paper); }
.section-head .lead { font-size: clamp(1.1rem, 1rem + 0.4vw, 1.35rem); }
.pcard { border-color: var(--line-strong); }
.pcard:hover { background: #060C22; border-color: #060C22; --ink-strong: #fff; --muted: #B3BDDA; --line: rgba(166,182,240,.2); --faint: #8F9BC0; color: #DDE4F6; }
.pcard--wide { background: linear-gradient(120deg, #0B1D4D, #050B1F 60%); }
.pain-grid { background: var(--line-strong); border-color: var(--line-strong); }
.pain h3 { font-size: 1.35rem; }
.band--navy { background:
    radial-gradient(800px 400px at 100% 0%, rgba(46, 86, 234, 0.35), transparent 60%),
    radial-gradient(600px 400px at 0% 100%, rgba(76, 61, 220, 0.22), transparent 60%),
    #050B1F; }
.band--navy .win { background: var(--surface); }
.site-footer { background: #050B1F; color: #B3BDDA; border-top: 0;
  --ink-strong: #fff; --muted: #B3BDDA; --faint: #8F9BC0; --line: rgba(166,182,240,.16); }
.site-footer .footer-col a { color: #B3BDDA; }
.site-footer .footer-col a:hover { color: #fff; }


/* =====================================================================
   v3 · buenas prácticas (9 nov): plantilla de 5 partes con rail,
   colores con significado y mega menú sin JS.
   Naranja = dolor (lo que se rompe hoy). Verde = resultado.
   Azul subrayado = lo único que mirar, uno por grupo. Bandas en navy.
   ===================================================================== */
.pain-num, .dolor { color: var(--orange-text); }
.resultado, .result { color: var(--ok); }
.result-num { color: var(--ok); font-weight: 700; }
.mirar { box-shadow: inset 0 -0.18em 0 var(--blue); }

/* Rail de capítulos: los únicos números 1 a 5 de la página */
.rail { position: fixed; z-index: 40; left: max(14px, env(safe-area-inset-left, 0px)); top: 50%; transform: translateY(-50%); display: none; }
.rail ol { list-style: none; display: grid; gap: 6px; margin: 0; padding: 8px; border-radius: 14px; background: rgba(255, 255, 255, 0.92); border: 1px solid var(--line); box-shadow: var(--shadow); backdrop-filter: blur(10px); }
.rail a { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; color: var(--faint); font-size: 0.8rem; font-weight: 500; white-space: nowrap; }
.rail a span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font: 600 0.74rem/1 var(--font-mono); border: 1.5px solid var(--line-strong); color: var(--muted); flex: none; }
.rail a b { font-weight: 500; max-width: 0; overflow: hidden; transition: max-width .3s var(--ease); }
.rail:hover a b, .rail:focus-within a b { max-width: 160px; }
.rail a:hover { color: var(--ink-strong); }
.rail a.is-on { color: var(--ink-strong); }
.rail a.is-on span { background: var(--ink-strong); border-color: var(--ink-strong); color: #fff; }
.chapter { scroll-margin-top: 90px; }
.chapter-bar { position: sticky; top: calc(70px + env(safe-area-inset-top, 0px)); z-index: 30; background: rgba(255, 255, 255, 0.95); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); }
.chapter-bar ol { list-style: none; display: flex; gap: 6px; overflow-x: auto; margin: 0; padding-block: 10px; scrollbar-width: none; }
.chapter-bar a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; border: 1px solid var(--line); font-size: 0.82rem; color: var(--muted); white-space: nowrap; }
.chapter-bar a span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 600 0.72rem/1 var(--font-mono); background: var(--paper); }
.chapter-bar a.is-on { border-color: var(--ink-strong); color: var(--ink-strong); }
.chapter-bar a.is-on span { background: var(--ink-strong); color: #fff; }
/* AA: 44 px hit area on phones without changing the bar height. */
.chapter-bar a { position: relative; }
.chapter-bar a::after { content: ""; position: absolute; inset: -4px 0; }
@media (min-width: 1420px) { .rail { display: block; } .chapter-bar { display: none; } :root { --gutter: max(108px, 6vw); } }

/* "Por qué Certo para…": checklist de hechos */
.why { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 40px; list-style: none; padding: 0; }
.why li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; padding-block: 14px; border-top: 1px solid var(--line-strong); }
.why li::before { content: ""; width: 14px; height: 14px; margin-top: 5px; background: var(--ok); clip-path: polygon(14% 52%, 0 66%, 38% 100%, 100% 22%, 86% 8%, 38% 72%); }
.why b { color: var(--ink-strong); }

@media (max-width: 640px) { .why { grid-template-columns: minmax(0, 1fr); } }

/* =====================================================================
   v4 · densidad estilo getboldr.ai (~500 palabras por página):
   íconos, diagramas de la casa, proof3, pr3, gets, stats, mega menús.
   ===================================================================== */
.ic { display: inline-block; width: 22px; height: 22px; background: currentColor; flex: none; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.ic--users { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%229%22%20cy%3D%228%22%20r%3D%223.2%22/%3E%3Cpath%20d%3D%22M3.5%2019c.8-3.2%203-5%205.5-5s4.7%201.8%205.5%205%22/%3E%3Ccircle%20cx%3D%2217%22%20cy%3D%229%22%20r%3D%222.4%22/%3E%3Cpath%20d%3D%22M15.5%2014.2c2.3.2%204%201.8%204.7%204.8%22/%3E%3C/svg%3E"); }
.ic--cart { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%204h2l2.2%2010.2a1.5%201.5%200%200%200%201.5%201.2h8.6a1.5%201.5%200%200%200%201.5-1.2L20%208H6.2%22/%3E%3Ccircle%20cx%3D%229.5%22%20cy%3D%2219.5%22%20r%3D%221.3%22/%3E%3Ccircle%20cx%3D%2216.5%22%20cy%3D%2219.5%22%20r%3D%221.3%22/%3E%3C/svg%3E"); }
.ic--doc { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M7%203h7l4%204v14H7z%22/%3E%3Cpath%20d%3D%22M14%203v4h4M9.5%2012h6M9.5%2015.5h6%22/%3E%3C/svg%3E"); }
.ic--check { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%229%22/%3E%3Cpath%20d%3D%22m8%2012.3%202.7%202.7L16%209.6%22/%3E%3C/svg%3E"); }
.ic--shield { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%203%205%206v5.5c0%204.3%203%207.6%207%209.5%204-1.9%207-5.2%207-9.5V6z%22/%3E%3Cpath%20d%3D%22m9%2012%202.2%202.2L15.5%2010%22/%3E%3C/svg%3E"); }
.ic--cloud { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M7%2018h10a4%204%200%200%200%20.6-7.95A6%206%200%200%200%206.1%2011%203.5%203.5%200%200%200%207%2018z%22/%3E%3C/svg%3E"); }
.ic--chart { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%2020V4M4%2020h16%22/%3E%3Cpath%20d%3D%22M8%2016v-4M12%2016V8M16%2016v-6%22/%3E%3C/svg%3E"); }
.ic--clock { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%229%22/%3E%3Cpath%20d%3D%22M12%207v5l3.5%202%22/%3E%3C/svg%3E"); }
.ic--flow { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%224%22%20width%3D%226%22%20height%3D%225%22%20rx%3D%221.2%22/%3E%3Crect%20x%3D%2215%22%20y%3D%224%22%20width%3D%226%22%20height%3D%225%22%20rx%3D%221.2%22/%3E%3Crect%20x%3D%229%22%20y%3D%2215%22%20width%3D%226%22%20height%3D%225%22%20rx%3D%221.2%22/%3E%3Cpath%20d%3D%22M9%206.5h6M6%209v3.5h6V15M18%209v3.5h-6%22/%3E%3C/svg%3E"); }
.ic--building { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%2021V5l8-2v18M12%208l8%202v11M4%2021h16%22/%3E%3Cpath%20d%3D%22M7.5%208h1M7.5%2012h1M7.5%2016h1M15.5%2013h1M15.5%2017h1%22/%3E%3C/svg%3E"); }
.ic--calendar { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223.5%22%20y%3D%225%22%20width%3D%2217%22%20height%3D%2215.5%22%20rx%3D%222%22/%3E%3Cpath%20d%3D%22M3.5%2010h17M8%203v4M16%203v4%22/%3E%3C/svg%3E"); }
.ic--alert { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%204%202.8%2019.5h18.4z%22/%3E%3Cpath%20d%3D%22M12%2010v4.2M12%2017.2v.3%22/%3E%3C/svg%3E"); }
.ic--money { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%226%22%20width%3D%2218%22%20height%3D%2212%22%20rx%3D%222%22/%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%222.6%22/%3E%3Cpath%20d%3D%22M6.5%209.5v.01M17.5%2014.5v.01%22/%3E%3C/svg%3E"); }
.ic--headset { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%2014v-2a8%208%200%200%201%2016%200v2%22/%3E%3Crect%20x%3D%223%22%20y%3D%2213.5%22%20width%3D%224%22%20height%3D%226%22%20rx%3D%221.5%22/%3E%3Crect%20x%3D%2217%22%20y%3D%2213.5%22%20width%3D%224%22%20height%3D%226%22%20rx%3D%221.5%22/%3E%3Cpath%20d%3D%22M19%2019.5c0%201.4-1.6%202-4%202h-2%22/%3E%3C/svg%3E"); }
.ic--data { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cellipse%20cx%3D%2212%22%20cy%3D%226%22%20rx%3D%227%22%20ry%3D%222.8%22/%3E%3Cpath%20d%3D%22M5%206v6c0%201.5%203.1%202.8%207%202.8s7-1.3%207-2.8V6M5%2012v6c0%201.5%203.1%202.8%207%202.8s7-1.3%207-2.8v-6%22/%3E%3C/svg%3E"); }
.ic--spark { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%203.5%2013.8%209l5.7%201.8-5.7%201.8L12%2018.2l-1.8-5.6-5.7-1.8L10.2%209z%22/%3E%3Cpath%20d%3D%22M18.5%203.5v3M17%205h3%22/%3E%3C/svg%3E"); }
.ic--arrow { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M5%2012h14M13%206l6%206-6%206%22/%3E%3C/svg%3E"); }
.ic--handshake { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m3%2011%204-4%204%202%203-2%207%204%22/%3E%3Cpath%20d%3D%22m7%207%200%206%204%204c.8.8%202%20.8%202.8%200l4.2-4.2M11%209l-2.5%202.5a1.4%201.4%200%200%200%202%202L13%2011%22/%3E%3C/svg%3E"); }
.ic--lock { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%225%22%20y%3D%2210.5%22%20width%3D%2214%22%20height%3D%2210%22%20rx%3D%222%22/%3E%3Cpath%20d%3D%22M8%2010.5V8a4%204%200%200%201%208%200v2.5%22/%3E%3C/svg%3E"); }
.ic--map { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M9%204%203.5%206v14L9%2018l6%202%205.5-2V4L15%206z%22/%3E%3Cpath%20d%3D%22M9%204v14M15%206v14%22/%3E%3C/svg%3E"); }
.ic--book { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%205.5A2.5%202.5%200%200%201%206.5%203H20v15H6.5A2.5%202.5%200%200%200%204%2020.5z%22/%3E%3Cpath%20d%3D%22M4%2020.5A2.5%202.5%200%200%200%206.5%2023H20v-5%22/%3E%3C/svg%3E"); }

.ic-tile { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-tint); color: var(--blue-ink); flex: none; }
.ic-tile .ic { width: 24px; height: 24px; }

/* Hero: tres datos con fuente debajo de los botones */
.proof3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 8px 0 0; border-top: 1px solid var(--line-strong); max-width: 560px; }
.proof3 div { padding: 14px 16px 0 0; }
.proof3 dt { font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.4rem); font-weight: 700; letter-spacing: -0.04em; color: var(--ink-strong); line-height: 1; }
.proof3 dd { margin: 6px 0 0; font-size: 0.86rem; color: var(--muted); }

/* Capítulo 1: tres dolores en una línea cada uno */
.pr3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pr3 > div { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.pr3 .ic { color: var(--orange); width: 26px; height: 26px; }
.pr3 p { font-size: 1.12rem; font-weight: 600; color: var(--ink-strong); line-height: 1.35; }
.pr3 small { color: var(--orange-text); font: 500 0.78rem/1.4 var(--font-mono); }

/* Diagrama de la casa: tarjetas blancas, líneas punteadas, nodo clave en navy */
.dg { display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 0; align-items: stretch; position: relative; padding: 8px 0; }
.dg__node { position: relative; margin: 0 14px; padding: 16px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line-strong); display: grid; gap: 6px; align-content: start; box-shadow: 0 1px 0 rgba(11, 29, 77, .04); }
.dg__node:not(:last-child)::after { content: ""; position: absolute; top: 50%; right: -29px; width: 30px; border-top: 2px dashed var(--line-strong); }
.dg__node .ic { color: var(--blue-ink); }
.dg__node b { font-size: 0.98rem; color: var(--ink-strong); font-weight: 650; line-height: 1.25; }
.dg__node small { font-size: 0.82rem; color: var(--muted); line-height: 1.35; }
.dg__node.is-key { background: #0B1D4D; border-color: #0B1D4D; }
.dg__node.is-key b { color: #fff; box-shadow: inset 0 -3px 0 #4A72FF; justify-self: start; }
.dg__node.is-key small { color: #B3BDDA; }
.dg__node.is-key .ic { color: #A3B8FF; }
.dg__node.is-hold { border: 1.5px solid var(--orange); }
.dg__node.is-hold .ic { color: var(--orange); }
.dg__node.is-ok .ic { color: var(--ok); }
.dg-cap { margin-top: 14px; font: 500 0.76rem/1.5 var(--font-mono); color: var(--faint); }
.dg-wrap { padding: 28px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); }
.band--paper .dg-wrap { background: var(--bg); }
.hero .dg-wrap { background: #FFFFFF; border: 0; box-shadow: 0 50px 100px -30px rgba(0,0,0,.75), 0 0 120px -20px rgba(74,114,255,.5); --line-strong: #CDD2DE; --muted: #3F475B; --ink-strong: #060C22; --faint: #5A6276; --blue-ink: #2447C9; --ok: #1F7A4D; }
.hero .dg { --n: 1; gap: 18px; }
.hero .dg__node { margin: 0; }
.hero .dg__node:not(:last-child)::after { top: auto; bottom: -19px; right: auto; left: 28px; width: 0; height: 18px; border-top: 0; border-left: 2px dashed #CDD2DE; }

/* Capítulo 3: qué recibes, ícono + título + una línea */
.gets { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 16px; }
.get { display: grid; gap: 10px; align-content: start; padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.get h3 { font-size: 1.05rem; }
.get p { color: var(--muted); font-size: 0.92rem; }

/* Precio compacto: una línea por plan */
.prices { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.price-card { padding: 18px 20px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: var(--surface); display: grid; gap: 4px; }
.price-card.is-rec { border: 1.5px solid var(--blue); }
.price-card span { font-weight: 600; color: var(--ink-strong); }
.price-card b { font-size: 1.7rem; letter-spacing: -0.03em; color: var(--ink-strong); font-variant-numeric: tabular-nums; }
.price-card small { color: var(--muted); font-size: 0.84rem; }

/* Capítulo 4: resultados como cifras en verde */
.stats { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 16px; }
.stat { padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); display: grid; gap: 6px; align-content: start; }
.stat b { font-size: clamp(2rem, 1.5rem + 1.6vw, 2.8rem); letter-spacing: -0.04em; font-weight: 700; color: var(--ok); line-height: 1; }
.stat span { color: var(--ink); font-weight: 600; }
.stat small { color: var(--muted); font-size: 0.85rem; }

@media (max-width: 920px) {
  .dg { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .dg__node { margin: 0; }
  .dg__node:not(:last-child)::after { top: auto; bottom: -19px; right: auto; left: 28px; width: 0; height: 18px; border-top: 0; border-left: 2px dashed var(--line-strong); }
  .pr3, .gets, .stats, .prices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .pr3, .gets, .stats, .prices, .proof3 { grid-template-columns: minmax(0, 1fr); }
  .proof3 div { padding-right: 0; }
}

/* ---------- Mega menús (modelo de getboldr.ai con la marca Certo) ----------
   Un solo estado visible: .is-open en el .nav__item, que pone el JS de menús
   (hover con gracia, clic, teclado; ver initMegaMenus). El panel siempre está
   en la página y se muestra con opacidad y transform, nunca con display.
   El puente invisible y la flecha pertenecen al panel: solo existen mientras
   ese panel está abierto, así no roban el hover de los otros botones.
   --mu escala medidas de diseño (lienzo de 1600 px) con el ancho de la ventana. */
.nav { position: relative; }
.nav__item.has-mm { position: static; }
.nav__item.signin-menu { position: relative; }
.mm {
  --mu: calc(min(100vw, 1600px) / 1600);
  --mm-gap: 10px;
  --mm-ease: cubic-bezier(0.23, 1, 0.32, 1);
  --ink: #111827; --ink-strong: #060C22; --muted: #3F475B; --faint: #5A6276; --line: #E3E6EE; --paper: #F3F5FA;
  --blue: #2E56EA; --blue-ink: #2447C9; --blue-tint: #EEF2FE;
  position: absolute; z-index: 60; top: calc(100% + var(--mm-gap)); left: 50%;
  width: min(calc(1410 * var(--mu)), calc(100vw - 32px));
  background: #FFFFFF; color: var(--ink); border-radius: 16px;
  box-shadow: 0 2px 6px rgba(5, 11, 31, 0.14), 0 32px 64px -24px rgba(5, 11, 31, 0.6);
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translate(calc(-50% + var(--mm-dx, 0px)), 8px);
  transition: opacity 150ms var(--mm-ease), transform 150ms var(--mm-ease), visibility 0s linear 150ms;
}
.mm--sm { width: min(calc(1000 * var(--mu)), calc(100vw - 32px)); }
.has-mm.is-open > .mm {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translate(calc(-50% + var(--mm-dx, 0px)), 0);
  transition: opacity 220ms var(--mm-ease), transform 220ms var(--mm-ease), visibility 0s;
}
/* Cambio entre menús vecinos o apertura con teclado: sin animación */
.has-mm.is-instant > .mm { transition: none; }
.mm::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: calc(var(--mm-gap) + 12px); }
.mm::after { content: ""; position: absolute; top: -8px; left: var(--cx, 24px); width: 16px; height: 16px; margin-left: -8px; background: #FFFFFF; border-radius: 3px 0 0 0; transform: rotate(45deg); }

.mm__grid { display: grid; grid-template-columns: 300fr 262fr 262fr 262fr 324fr; padding: max(20px, calc(28 * var(--mu))); }
.mm--sm .mm__grid { grid-template-columns: 330fr 330fr 340fr; }
.mm__intro { display: grid; gap: 14px; align-content: start; padding: 6px max(20px, calc(32 * var(--mu))) 6px 4px; }
.mm__eye { display: inline-flex; align-items: center; gap: 10px; margin: 0; font: 500 0.72rem/1.2 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue-ink); }
.mm__eye::before { content: ""; width: 14px; height: 2px; background: var(--orange); flex: none; }
.mm__h { margin: 0; font-size: max(28px, calc(40 * var(--mu))); font-weight: 700; line-height: 1.04; letter-spacing: -0.035em; color: var(--ink-strong); text-wrap: balance; }
.mm__h .hl { font-style: normal; background: linear-gradient(transparent 86%, var(--blue) 86%); }
.mm__p { margin: 0; max-width: 34ch; font-size: max(14px, calc(16 * var(--mu))); line-height: 1.5; color: var(--muted); }
.mm__col { display: grid; gap: max(18px, calc(26 * var(--mu))); align-content: start; padding: 6px max(16px, calc(24 * var(--mu))); border-left: 1px solid var(--line); }
.mm__head { margin: 0 0 calc(-8 * var(--mu)); font-size: 0.82rem; font-weight: 600; line-height: 1.3; color: var(--faint); }
.mm a.mm__item { display: grid; justify-items: start; gap: 6px; color: var(--ink); border-radius: 12px; }
.mm__tile {
  display: grid; place-items: center; margin-bottom: 6px;
  width: max(52px, calc(72 * var(--mu))); height: max(52px, calc(72 * var(--mu)));
  border-radius: max(12px, calc(16 * var(--mu))); background: var(--blue-tint); color: var(--blue);
  transition: transform 250ms var(--mm-ease), background-color 200ms ease, box-shadow 250ms var(--mm-ease);
}
.mm__tile .ic { width: 44%; height: 44%; }
.mm a.mm__item b { font-size: max(17px, calc(24 * var(--mu))); font-weight: 700; line-height: 1.15; letter-spacing: -0.025em; color: var(--ink-strong); transition: color 200ms ease; }
.mm a.mm__item small { max-width: 30ch; font-size: max(13px, calc(15 * var(--mu))); line-height: 1.4; color: var(--muted); }
.mm a.mm__item[aria-current="page"] .mm__tile { background: var(--blue); color: #FFFFFF; }
.mm a.mm__item:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.mm a.mm__item:active .mm__tile { transform: translateY(-1px) scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .mm a.mm__item:hover .mm__tile { transform: translateY(-3px); background: #E1E8FE; box-shadow: 0 12px 22px -14px rgba(46, 86, 234, 0.75); }
  .mm a.mm__item:hover b { color: var(--blue-ink); }
}

/* Tarjeta destacada (oscura) a la derecha */
.mm__feat { display: grid; gap: 12px; align-content: start; margin-left: max(12px, calc(20 * var(--mu))); padding: max(18px, calc(26 * var(--mu))); border-radius: 14px; background: radial-gradient(280px 180px at 100% 0%, rgba(74, 114, 255, 0.5), transparent 70%), #050B1F; color: #DDE4F6; }
.mm__feye { margin: 0; font-size: 0.82rem; font-weight: 600; color: #A3B8FF; }
.mm__ft { margin: 0; font-size: max(20px, calc(28 * var(--mu))); font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; color: #FFFFFF; }
.mm__ft span { background: linear-gradient(transparent 86%, #4A72FF 86%); }
.mm__fp { margin: 0; font-size: max(13px, calc(15 * var(--mu))); line-height: 1.45; color: #B3BDDA; }
.mm__photo { height: max(110px, calc(150 * var(--mu))); border-radius: 10px; background: var(--ph) center / cover no-repeat; }
.mm__viz { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mm__vk { padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.07); }
.mm__vk b { display: block; font-size: max(18px, calc(24 * var(--mu))); line-height: 1.1; color: #FFFFFF; font-variant-numeric: tabular-nums; }
.mm__vk small { display: block; margin-top: 4px; font-size: 0.74rem; line-height: 1.3; color: #B3BDDA; }
.mm__vk.is-hold b { color: var(--orange-on-dark); }
.mm__bars { grid-column: 1 / -1; display: flex; align-items: flex-end; gap: 4px; height: 34px; }
.mm__bars i { flex: 1; height: calc(var(--h) * 1%); border-radius: 3px 3px 0 0; background: rgba(74, 114, 255, 0.75); }
.mm__bars i:last-child { background: #4A72FF; }
.mm a.mm__try { display: inline-flex; align-items: center; gap: 8px; justify-self: start; margin-top: 4px; padding: 10px 16px; border-radius: 999px; background: #FFFFFF; color: #060C22; font-size: 0.88rem; font-weight: 600; transition: transform 160ms var(--mm-ease), background-color 200ms ease; }
.mm a.mm__try .ic { width: 16px; height: 16px; }
.mm a.mm__try:hover { background: #DDE4F6; }
.mm a.mm__try:active { transform: scale(0.97); }
.mm a.mm__try:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 2px; }

.mm__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 16px max(20px, calc(28 * var(--mu))); border-top: 1px solid var(--line); border-radius: 0 0 16px 16px; background: var(--paper); font-size: 0.88rem; color: var(--muted); }
.mm__bar a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--blue-ink); }
.mm__bar a .ic { width: 16px; height: 16px; transition: transform 200ms var(--mm-ease); }
.mm__bar a:hover .ic { transform: translateX(3px); }
.mm__bar b { color: var(--ink-strong); }

/* Acceder: panel pequeño alineado a la derecha de su botón */
.signin-menu .mm { left: auto; right: 0; width: min(340px, calc(100vw - 32px)); transform: translateY(8px); }
.signin-menu.is-open > .mm { transform: none; }
.signin-menu .mm__grid { grid-template-columns: minmax(0, 1fr); padding: 8px; }
.signin-menu .mm__col { gap: 2px; padding: 0; border: 0; }
.signin-menu .mm a.mm__item { grid-template-columns: 40px minmax(0, 1fr); justify-items: stretch; gap: 0 12px; padding: 10px; transition: background-color 150ms ease; }
.signin-menu .mm__tile { grid-row: span 2; width: 40px; height: 40px; margin: 0; border-radius: 10px; }
.signin-menu .mm a.mm__item b { font-size: 0.95rem; font-weight: 600; letter-spacing: -0.01em; }
.signin-menu .mm a.mm__item small { font-size: 0.8rem; }
@media (hover: hover) and (pointer: fine) {
  .signin-menu .mm a.mm__item:hover { background: var(--paper); }
  .signin-menu .mm a.mm__item:hover .mm__tile { transform: none; box-shadow: none; }
}

/* Entrada escalonada. Al abrir desde cerrado con el mouse, las columnas entran una tras otra:
   opacidad y 6 px de subida, 180 ms cada una, 30 ms entre columnas (la última termina a los
   300 ms). Con .is-instant (cambio entre menús vecinos o teclado) aparecen de golpe. Al cerrar
   no hay escalón: siguen visibles y se van con el panel; vuelven a su estado inicial a los
   150 ms, cuando el panel ya es invisible. Solo escritorio con JS: sin JS el menú abre por
   :hover sin .is-open, y en el teléfono es un acordeón. */
.mm__grid > :nth-child(2), .signin-menu .mm__item:nth-child(2) { --i: 1; }
.mm__grid > :nth-child(3), .signin-menu .mm__item:nth-child(3) { --i: 2; }
.mm__grid > :nth-child(4) { --i: 3; }
.mm__grid > :nth-child(5) { --i: 4; }
@media (scripting: enabled) and (min-width: 921px) {
  .has-mm:not(.signin-menu) .mm__grid > *, .signin-menu .mm a.mm__item {
    opacity: 0; transform: translateY(6px);
    transition: opacity 0s linear 150ms, transform 0s linear 150ms, background-color 150ms ease;
  }
  .has-mm.is-open:not(.signin-menu) .mm__grid > *, .signin-menu.is-open .mm a.mm__item {
    opacity: 1; transform: none;
    transition: opacity 180ms var(--mm-ease) calc(var(--i, 0) * 30ms), transform 180ms var(--mm-ease) calc(var(--i, 0) * 30ms), background-color 150ms ease;
  }
  .has-mm.is-instant:not(.signin-menu) .mm__grid > *, .signin-menu.is-instant .mm a.mm__item { transition: background-color 150ms ease; }
}

/* Subrayado de títulos: crece de izquierda a derecha, también en títulos de dos líneas (por eso
   es un fondo y no un ::after). Va al pie de la caja de la letra, justo bajo los descendentes:
   así deja aire con la segunda línea del título. */
.mm__bar .mm__t { padding-bottom: 2px; }
.mm a.mm__item .mm__t, .mm__bar .mm__t {
  background: linear-gradient(var(--blue), var(--blue)) 0 100% / 0 2px no-repeat;
  transition: background-size 150ms var(--mm-ease);
}
@media (hover: hover) and (pointer: fine) {
  .mm a.mm__item:hover .mm__t, .mm__bar a:hover .mm__t { background-size: 100% 2px; transition-duration: 200ms; }
}
.mm a.mm__item:focus-visible .mm__t, .mm__bar a:focus-visible .mm__t { background-size: 100% 2px; transition: none; }

/* Escritorio angosto: sin columna de introducción */
@media (min-width: 921px) and (max-width: 1180px) {
  .mm__intro { display: none; }
  .mm__intro + .mm__col { border-left: 0; }
  .mm__grid { grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.2fr); }
  .mm--sm .mm__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  /* La introducción se oculta: la primera columna visible entra sin espera */
  .mm__grid > :nth-child(2) { --i: 0; } .mm__grid > :nth-child(3) { --i: 1; } .mm__grid > :nth-child(4) { --i: 2; } .mm__grid > :nth-child(5) { --i: 3; }
}
/* Sin JavaScript, el escritorio abre los menús con hover y foco */
@media (scripting: none) and (min-width: 921px) {
  .has-mm:is(:hover, :focus-within) > .mm { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); }
  .signin-menu:is(:hover, :focus-within) > .mm { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .mm, .has-mm.is-open > .mm { transform: translate(calc(-50% + var(--mm-dx, 0px)), 0); }
  .signin-menu .mm, .signin-menu.is-open > .mm { transform: none; }
  .mm a.mm__item:hover .mm__tile, .mm a.mm__item:active .mm__tile { transform: none; }
  .has-mm:not(.signin-menu) .mm__grid > *, .signin-menu .mm a.mm__item { transform: none; transition: none; }
  .mm a.mm__item .mm__t, .mm__bar .mm__t { transition: none; }
}
/* Teléfono y tableta: acordeón dentro del menú hamburguesa, sin hover ni animación */
@media (max-width: 920px) {
  .mm, .mm--sm, .signin-menu .mm { position: static; display: none; width: 100%; margin: 4px 0 10px; opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition: none; box-shadow: none; border-radius: 12px; }
  .has-mm.is-open > .mm, .signin-menu.is-open > .mm { display: block; transform: none; }
  .mm::before, .mm::after { display: none; }
  .mm__grid, .mm--sm .mm__grid { grid-template-columns: minmax(0, 1fr); padding: 6px; }
  .mm__intro, .mm__feat, .mm__bar > span { display: none; }
  .mm__col { gap: 2px; padding: 0; border: 0; }
  .mm__head { margin: 0; padding: 10px 10px 4px; }
  .mm a.mm__item { grid-template-columns: 40px minmax(0, 1fr); justify-items: stretch; gap: 0 12px; padding: 10px; }
  .mm__tile { grid-row: span 2; width: 40px; height: 40px; margin: 0; border-radius: 10px; }
  .mm a.mm__item b { font-size: 1rem; font-weight: 600; }
  .mm a.mm__item small { font-size: 0.82rem; }
  .mm__bar { padding: 12px 16px; border-radius: 0 0 12px 12px; }
  .nav__item.signin-menu { display: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .features--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .flow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .flow__step { border-bottom: 1px solid var(--line); }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 920px) {
  .nav__links, .signin { display: none; }
  .menu-btn { display: inline-flex; }
  .site-header.is-menu .nav__links {
    display: grid; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 12px var(--gutter-r) 20px var(--gutter-l); max-height: calc(100vh - 70px); overflow-y: auto; gap: 2px;
  }
  .hero__grid, .split, .split--rev, .section-head--wide { grid-template-columns: minmax(0, 1fr); }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pcard--wide { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr); }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .visual .float-card { right: 8px; }
  .nav__right .btn { display: none; }
}
@media (max-width: 640px) {
  .pain-grid, .products, .features, .features--2, .features--4, .plans, .steps, .form .grid2 { grid-template-columns: minmax(0, 1fr); }
  .flow { grid-template-columns: minmax(0, 1fr); }
  .flow__step { border-right: 0; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .partner { grid-template-columns: minmax(0, 1fr); }
  .visual .float-card { position: relative; right: auto; bottom: auto; margin: -18px 12px 0 auto; }
  .hero__actions .btn { flex: 1 1 100%; }
  .win .tbl { display: block; overflow-x: auto; font-size: 0.8rem; }
  .win .tbl td, .win .tbl th { white-space: nowrap; }
  .win__body { padding: 14px; }
  /* Product windows drawn as images (role=img) never scroll: they wrap, so no
     content hides in a region the keyboard cannot reach. */
  .win[role="img"] .win__body, .win[role="img"] .tbl { overflow: hidden; }
  .win[role="img"] .tbl { display: table; width: 100%; table-layout: fixed; }
  .win[role="img"] .tbl td, .win[role="img"] .tbl th { white-space: normal; overflow-wrap: anywhere; vertical-align: top; }
  .win[role="img"] .pill { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .live__tab[aria-selected="true"] .bar { width: 100%; }
}


/* Sin tarjetas huérfanas: entre 641 y 920 px las rejillas pasan a 2 columnas; la última impar ocupa la fila completa */
@media (min-width: 641px) and (max-width: 920px) {
  .pr3 > :last-child:nth-child(odd), .gets > :last-child:nth-child(odd), .stats > :last-child:nth-child(odd), .prices > :last-child:nth-child(odd), .products > :last-child:nth-child(odd):not(.pcard--wide) { grid-column: 1 / -1; }
}

/* Hero con foto: la foto sangra a la derecha; el degradado navy es CSS, nunca parte del archivo */
/* La foto se elige por píxeles físicos (ancho de ventana × densidad), no solo por densidad:
   la foto ocupa todo el ancho del hero, así que una pantalla 1x de 1440 o 1920 px también
   necesita la de 2400. --photo-3072 es opcional: la página la declara solo si existe el archivo. */
.hero--photo {
  --hero-photo: var(--photo-1200);
  background:
    linear-gradient(90deg, #050B1F 0%, #050B1F 30%, rgba(5, 11, 31, .86) 46%, rgba(5, 11, 31, .45) 70%, rgba(5, 11, 31, .25) 100%),
    linear-gradient(0deg, #050B1F 0%, rgba(5, 11, 31, 0) 28%),
    var(--hero-photo) right 22% / cover no-repeat,
    #050B1F;
}
@media (min-width: 1281px), (min-width: 861px) and (min-resolution: 1.5dppx), (min-width: 641px) and (min-resolution: 2dppx), (min-width: 431px) and (min-resolution: 3dppx) {
  .hero--photo { --hero-photo: var(--photo-2400); }
}
@media (min-width: 2201px), (min-width: 1601px) and (min-resolution: 1.5dppx) {
  .hero--photo { --hero-photo: var(--photo-3072, var(--photo-2400)); }
}
/* La rejilla del hero se queda en la columna navy del texto; sobre la foto parecía compresión */
.hero--photo::after {
  opacity: .35;
  mask-image: linear-gradient(90deg, #000 0%, #000 22%, transparent 42%);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 22%, transparent 42%);
}
.hero--photo .visual { align-self: end; }
.hero--photo .win, .hero--photo .dg-wrap { max-width: 520px; margin-left: auto; }
@media (max-width: 920px) {
  .hero--photo {
    background:
      linear-gradient(180deg, rgba(5, 11, 31, .55) 0%, #050B1F min(42%, 66.6vw)),
      var(--hero-photo) center top / 100% auto no-repeat,
      #050B1F;
  }
  .hero--photo::after {
    mask-image: linear-gradient(180deg, transparent 0%, transparent 45%, #000 70%);
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, transparent 45%, #000 70%);
  }
}
.hero--photo .live { justify-items: end; }
.hero--photo .live .win { width: 100%; }
.hero--photo .live__tabs { justify-content: flex-end; }
.hero--photo .note { text-align: right; justify-content: flex-end; }
@media (max-width: 920px) { .hero--photo .live { justify-items: stretch; } .hero--photo .live__tabs { justify-content: flex-start; } .hero--photo .win, .hero--photo .dg-wrap { max-width: none; } }

/* ---------- Primera pantalla completa (11 nov) ----------
   En escritorio, el hero ocupa justo el alto de la ventana (menos el header y,
   por debajo de 1420 px, la barra de capítulos), para que la primera vista no
   corte la sección siguiente a la mitad. Teléfonos y ventanas bajas: alto natural. */
@media (min-width: 921px) and (min-height: 600px) {
  .hero:not(.hero--simple) {
    min-height: calc(100svh - var(--header-h, 71px) - var(--chapter-bar-h, 0px));
    display: flex; flex-direction: column; justify-content: center;
    padding-block: clamp(20px, 3.5svh, 72px);
  }
  /* El título se ajusta también al alto de la ventana, no solo al ancho. */
  .hero:not(.hero--simple) h1 { font-size: min(clamp(2.7rem, 1.3rem + 4.6vw, 5.8rem), 8.6svh); }
  .hero:not(.hero--simple) .tagline { margin-top: min(16px, 1.6svh); }
  .hero:not(.hero--simple) > .shell { width: 100%; }
}
@media (min-width: 921px) and (max-width: 1419px) { body:has(.chapter-bar) { --chapter-bar-h: 57px; } }
@media (min-width: 921px) and (min-height: 600px) and (max-height: 860px) {
  .hero:not(.hero--simple) h1 { font-size: min(clamp(2.7rem, 1.3rem + 4.6vw, 5.8rem), 7.6svh); }
  .hero:not(.hero--simple) .hero__copy { gap: 14px; }
  .hero:not(.hero--simple) .crumbs { margin-bottom: 14px; }
}

/* =====================================================================
   Precios interactivos (17 nov). Procure: cambio anual / mensual, riel
   de cobertura por etapa, calculadora con cotización. Portico y Workflow:
   escalera de tramos. Lógica en assets/precios.js; sin JavaScript se ve
   el estado por defecto (Total, 12 usuarios Pro, USD 349) y la tabla.
   Movimiento: solo transform y opacity, 200 ms o menos; los números no
   se animan porque cambian con cada arrastre.
   ===================================================================== */
.pz-head { max-width: none; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 16px 40px; }
.pz-head > .eyebrow, .pz-head > h2 { grid-column: 1; }
.pz-head > h2 { max-width: 22ch; }
.pz-sub { font-size: 1.2rem; letter-spacing: -0.015em; margin-bottom: 14px; }

/* Cambio anual / mensual: el indicador se desliza */
.pz-billing { grid-column: 2; grid-row: 1 / span 2; align-self: end; position: relative; isolation: isolate; display: inline-grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.pz-billing__ind { position: absolute; z-index: -1; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 9px; background: var(--navy); transition: transform .2s var(--ease); }
[data-billing-now="monthly"] .pz-billing__ind { transform: translateX(100%); }
.pz-billing button { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px 8px; min-height: 44px; padding: 6px 18px; border: 0; border-radius: 9px; background: none; font-size: 0.92rem; font-weight: 560; line-height: 1.2; color: var(--muted); }
.pz-billing button:hover { color: var(--ink-strong); }
.pz-billing button[aria-pressed="true"] { color: #fff; }
.pz-billing__save { font: 500 0.68rem/1 var(--font-mono); letter-spacing: 0.02em; padding: 4px 6px; border-radius: 6px; background: var(--ok-tint); color: var(--ok); white-space: nowrap; }
.pz-billing button[aria-pressed="true"] .pz-billing__save { background: rgba(255, 255, 255, 0.16); color: #fff; }

/* Riel de cobertura: cada plan es una fila; la barra cubre las etapas del proceso */
.cov { display: grid; }
.cov__head, .cov__row { display: grid; grid-template-columns: minmax(230px, 1.15fr) minmax(0, 3fr) 200px; gap: 28px; align-items: center; padding-inline: 20px; }
.cov__head { padding-block: 0 10px; }
.cov__cols { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); align-items: end; font-size: 0.8rem; font-weight: 540; line-height: 1.3; color: var(--muted); }
.cov__cols li { padding: 0 8px 2px 10px; border-left: 1px solid var(--line-strong); text-wrap: balance; }
.cov__row { position: relative; padding-block: 22px; border-top: 1px solid var(--line); cursor: pointer; }
.cov__row--key, .cov__row.is-picked { border-radius: var(--radius); }
.cov__row:last-child { border-bottom: 1px solid var(--line); }
@media (hover: hover) and (pointer: fine) { .cov__row:hover { background: rgba(255, 255, 255, 0.55); } }
.cov__row--key { background: var(--surface); border-color: transparent; }
.cov__row--key + .cov__row { border-top-color: transparent; }
.cov__row--key:hover { background: var(--surface); }
.cov__row.is-picked { box-shadow: inset 0 0 0 1.5px var(--blue); }
/* Columna del plan: nombre, precio, un solo aviso de ahorro y la alternativa mensual en gris */
.cov__plan { display: grid; justify-items: start; gap: 8px; min-width: 0; }
.cov__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.cov__price span { flex-basis: 100%; font-weight: 640; color: var(--ink-strong); }
.cov__price b { font-size: 1.9rem; font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; color: var(--ink-strong); font-variant-numeric: tabular-nums; }
.cov__price small { font-size: 0.9rem; color: var(--muted); }
.cov__save { padding: 4px 9px; border-radius: 6px; background: var(--ok-tint); color: var(--ok); font-size: 0.8rem; font-weight: 600; line-height: 1.3; white-space: nowrap; font-variant-numeric: tabular-nums; }
[data-billing-now="monthly"] .cov__save { background: var(--paper); color: var(--muted); font-weight: 560; }
.cov__alt { margin-top: -2px; font-size: 0.82rem; line-height: 1.4; color: var(--faint); }
.cov__plan small[hidden] { display: none; }
/* Botón y usuarios incluidos, alineados a la derecha */
.cov__buy { display: grid; justify-items: end; gap: 8px; }
.cov__seats { font-size: 0.8rem; line-height: 1.3; color: var(--muted); white-space: nowrap; }
.cov__track { position: relative; min-width: 0; }
.cov__track::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 44px; border: 1px dashed var(--line-strong); border-radius: 10px; }
.cov__stages { position: relative; z-index: 1; list-style: none; display: flex; width: calc(var(--to, 6) / 6 * 100%); height: 44px; border-radius: 10px; overflow: hidden; background: var(--support); }
.cov__stages li { position: relative; flex: 1 1 0; min-width: 0; text-indent: 100%; white-space: nowrap; overflow: hidden; color: transparent; }
/* Marca de etapa: una muesca abajo, para que no cruce el texto de la barra */
.cov__stages li:not(:last-child)::after { content: ""; position: absolute; right: 0; bottom: 0; width: 1px; height: 10px; background: rgba(255, 255, 255, 0.8); }
.cov__end { position: absolute; z-index: 2; left: 14px; top: 0; height: 44px; max-width: calc(var(--to, 6) / 6 * 100% - 28px); display: flex; align-items: center; font-size: 0.88rem; font-weight: 580; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.cov__row.is-picked .cov__stages { background: var(--blue); }
.cov__row.is-picked .cov__end { color: #fff; }
.cov__cta { white-space: nowrap; }

/* Quién no paga: aviso visible junto al riel */
.pz-free { display: flex; align-items: flex-start; gap: 14px; max-width: 900px; margin-top: 18px; padding: 16px 20px; border-radius: var(--radius); background: var(--blue-tint); color: var(--ink); font-size: 0.95rem; }
.pz-free .ic { margin-top: 1px; color: var(--blue-ink); }
.pz-free b { color: var(--ink-strong); }

/* Calculadora: controles a la izquierda, cotización fija a la derecha */
.calc { display: grid; grid-template-columns: minmax(0, 7fr) minmax(320px, 5fr); gap: clamp(28px, 4vw, 64px); align-items: start; margin-top: clamp(56px, 7vw, 96px); }
.calc__controls { display: grid; gap: 28px; min-width: 0; }
.calc__title { margin-bottom: -6px; font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.9rem); letter-spacing: -0.03em; }
.calc__field { display: grid; gap: 10px; min-width: 0; margin: 0; padding: 0; border: 0; }
.calc__label { padding: 0; margin-bottom: 10px; font-size: 0.95rem; font-weight: 620; line-height: 1.3; color: var(--ink-strong); }
label.calc__label { margin-bottom: 0; }
.calc__hint { font-size: 0.86rem; color: var(--muted); }
.calc__fine { font-size: 0.86rem; color: var(--muted); }

.pz-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.pz-seg label { position: relative; cursor: pointer; }
.pz-seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pz-seg span { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 8px; border-radius: 9px; font-weight: 560; color: var(--muted); }
.pz-seg label:hover span { color: var(--ink-strong); }
.pz-seg input:checked + span { background: var(--navy); color: #fff; }
.pz-seg input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }

.calc__seats { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: center; }
.pz-stepper { display: inline-grid; grid-template-columns: 44px 68px 44px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); overflow: hidden; }
.pz-stepper button { min-height: 46px; border: 0; background: none; font-size: 1.25rem; line-height: 1; color: var(--ink-strong); }
.pz-stepper button:hover { background: var(--paper); }
.pz-stepper button:active { transform: scale(0.94); transition: transform .1s var(--ease); }
.pz-stepper button:focus-visible, .pz-stepper input:focus-visible { outline-offset: -3px; }
.pz-stepper input { width: 100%; min-width: 0; border: 0; border-inline: 1px solid var(--line); background: none; text-align: center; font-size: 1.05rem; font-weight: 620; font-variant-numeric: tabular-nums; color: var(--ink-strong); -moz-appearance: textfield; appearance: textfield; }
.pz-stepper input::-webkit-inner-spin-button, .pz-stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* Control deslizante: pulgar de 24 px, pista con relleno azul */
.pz-range { --p: 0; width: 100%; height: 44px; margin: 0; background: transparent; cursor: pointer; -webkit-appearance: none; appearance: none; touch-action: pan-y; }
.pz-range::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: linear-gradient(to right, var(--blue) calc(var(--p) * 100%), var(--line-strong) 0); }
.pz-range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border: 2px solid var(--blue); border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(11, 29, 77, 0.28); transition: transform .15s var(--ease); }
.pz-range:active::-webkit-slider-thumb { transform: scale(1.1); }
.pz-range::-moz-range-track { height: 6px; border-radius: 999px; background: var(--line-strong); }
.pz-range::-moz-range-progress { height: 6px; border-radius: 999px; background: var(--blue); }
.pz-range::-moz-range-thumb { width: 20px; height: 20px; border: 2px solid var(--blue); border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(11, 29, 77, 0.28); }
.pz-range:focus-visible { outline: none; }
.pz-range:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--blue); outline-offset: 3px; }
.pz-range:focus-visible::-moz-range-thumb { outline: 2px solid var(--blue); outline-offset: 3px; }

/* Complementos con interruptor */
.calc__addon { display: grid; gap: 16px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.calc__addon-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.pz-switch { position: relative; display: inline-flex; align-items: center; gap: 14px; cursor: pointer; }
.pz-switch input { position: absolute; left: 0; top: 50%; width: 44px; height: 26px; margin: -13px 0 0; opacity: 0; cursor: pointer; }
.pz-switch__ui { position: relative; flex: none; width: 44px; height: 26px; border-radius: 999px; background: var(--faint); }
.pz-switch__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(11, 29, 77, 0.3); transition: transform .2s var(--ease); }
.pz-switch input:checked + .pz-switch__ui { background: var(--blue); }
.pz-switch input:checked + .pz-switch__ui::after { transform: translateX(18px); }
.pz-switch input:focus-visible + .pz-switch__ui { outline: 2px solid var(--blue); outline-offset: 3px; }
.pz-switch input:disabled, .pz-switch input:disabled ~ * { cursor: not-allowed; }
.pz-switch input:disabled ~ * { opacity: 0.5; }
.pz-switch__txt { display: grid; gap: 1px; }
.pz-switch__txt b { color: var(--ink-strong); font-weight: 620; }
.pz-switch__txt small { font-size: 0.84rem; color: var(--muted); }
.calc__lock { display: none; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 0.84rem; color: var(--muted); }
.is-locked .calc__lock { display: inline-flex; }
.calc__lock-btn { min-height: 36px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--bg); font-size: 0.84rem; font-weight: 580; color: var(--blue-ink); }
.calc__lock-btn:hover { border-color: var(--blue); }
.calc__panel { padding-top: 16px; border-top: 1px dashed var(--line); }
.calc__panel[hidden] { display: none; }

/* Escalera de tramos (común) */
.ladder__steps { list-style: none; }
.ladder__step { min-width: 0; }
.ladder__block { display: grid; align-content: end; gap: 2px; min-width: 0; background: var(--paper); color: var(--ink-strong); }
.ladder__tier { font-size: 0.76rem; font-weight: 560; line-height: 1.2; color: var(--muted); }
.ladder__block b { font-weight: 660; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.ladder__step.is-past .ladder__block { background: var(--blue-tint); }
.ladder__step.is-on .ladder__block { background: var(--blue); color: #fff; }
.ladder__step.is-on .ladder__tier, .ladder__step.is-on .ladder__block small { color: #fff; }
.ladder__step:nth-child(1) { --h: 0.5; --i: 0; }
.ladder__step:nth-child(2) { --h: 0.6667; --i: 1; }
.ladder__step:nth-child(3) { --h: 0.8333; --i: 2; }
.ladder__step:nth-child(4) { --h: 1; --i: 3; }

/* Escalera pequeña dentro de la calculadora */
.ladder--mini { display: grid; gap: 10px; }
.ladder--mini .ladder__q { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; font-size: 0.9rem; color: var(--muted); }
.ladder--mini .ladder__vol { font-size: 1.15rem; font-weight: 660; color: var(--ink-strong); font-variant-numeric: tabular-nums; }
.ladder--mini .ladder__steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; align-items: end; }
.ladder--mini .ladder__step { display: grid; gap: 4px; }
.ladder--mini .ladder__block { min-height: calc(48px + var(--i) * 10px); padding: 8px 10px; border-radius: 8px; }
.ladder--mini .ladder__block b { font-size: 0.9rem; }
.ladder--mini .ladder__incl { font-size: 0.74rem; line-height: 1.3; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Escalera completa (Portico y Workflow) */
.ladder--full { display: grid; gap: 16px; margin-top: clamp(28px, 4vw, 48px); padding: clamp(20px, 3vw, 40px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.ladder__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 8px 24px; }
.ladder__ask { max-width: 30ch; text-wrap: balance; font-size: clamp(1.15rem, 1rem + 0.6vw, 1.5rem); font-weight: 640; line-height: 1.25; letter-spacing: -0.02em; color: var(--ink-strong); }
.ladder--full .ladder__vol { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.ladder--full .ladder__vol span { font-size: clamp(2.3rem, 1.6rem + 2.2vw, 3.6rem); font-weight: 720; line-height: 1; letter-spacing: -0.045em; color: var(--ink-strong); font-variant-numeric: tabular-nums; }
.ladder--full .ladder__vol small { font-size: 0.92rem; color: var(--muted); }
.ladder__say { min-height: 1.6em; font-size: 0.96rem; color: var(--ink); }
.ladder__stage { --stair: 184px; --g: 10px; position: relative; margin-top: 18px; }
.ladder--full .ladder__steps { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 var(--g); }
.ladder--full .ladder__step { display: grid; grid-template-rows: var(--stair) auto; gap: 14px; }
.ladder--full .ladder__block { align-self: end; height: calc(var(--stair) * var(--h)); padding: 14px 16px; border: 1px solid var(--line); border-bottom: 0; border-radius: 10px 10px 0 0; }
.ladder--full .ladder__step.is-past .ladder__block { border-color: transparent; }
.ladder--full .ladder__step.is-on .ladder__block { border-color: var(--blue); }
.ladder--full .ladder__block b { font-size: clamp(1.2rem, 1rem + 0.7vw, 1.6rem); letter-spacing: -0.03em; line-height: 1.1; }
.ladder--full .ladder__block small { font-size: 0.8rem; color: var(--muted); }
.ladder__facts { list-style: none; display: grid; gap: 4px; padding-inline: 2px; font-size: 0.84rem; line-height: 1.4; color: var(--muted); }
.ladder__facts li:first-child { font-weight: 600; color: var(--ink-strong); }
.ladder__step.is-on .ladder__facts { color: var(--ink); }
/* Piso, marca del volumen (detrás de los escalones) y excedente (delante) */
.ladder__overlay { --cw: calc((100% - 3 * var(--g)) / 4); position: absolute; left: 0; right: 0; top: 0; height: var(--stair); pointer-events: none; }
.ladder__stage::after { content: ""; position: absolute; z-index: 2; left: 0; right: 0; top: calc(var(--stair) - 1px); height: 2px; background: var(--ink-strong); }
.ladder__mark { position: absolute; z-index: 0; top: -8px; bottom: 0; width: 2px; margin-left: -1px; background: var(--ink-strong); left: calc(var(--mc, 1) * (var(--cw) + var(--g)) + var(--mf, 1) * var(--cw)); }
.ladder__mark::before { content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; background: var(--ink-strong); transform: translateX(-50%) rotate(45deg); }
.ladder__over { display: none; position: absolute; z-index: 2; height: 12px; bottom: calc(var(--oh, 0.5) * 100% - 12px); left: calc(var(--oc, 0) * (var(--cw) + var(--g)) + var(--of, 1) * var(--cw)); width: calc((var(--mc, 0) - var(--oc, 0)) * (var(--cw) + var(--g)) + (var(--mf, 0) - var(--of, 1)) * var(--cw)); border-radius: 0 4px 4px 0; background: repeating-linear-gradient(135deg, var(--blue) 0 4px, var(--support) 4px 8px); }
.ladder.is-over .ladder__over { display: block; }
.ladder__over::after { content: attr(data-label); position: absolute; left: 0; bottom: 100%; margin-bottom: 4px; font-size: 0.76rem; font-weight: 600; line-height: 1; color: var(--blue-ink); white-space: nowrap; }
.ladder__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 6px; padding-top: 18px; border-top: 1px solid var(--line); }
.pz-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--blue-tint); color: var(--blue-ink); font-size: 0.84rem; font-weight: 580; }
.pz-chip::before { content: ""; flex: none; width: 7px; height: 7px; background: var(--blue); transform: rotate(45deg); }
.ladder__fine { font-size: 0.84rem; color: var(--muted); }

/* Cotización: panel navy fijo mientras se mueven los controles */
.quote { position: sticky; top: calc(var(--header-h, 71px) + var(--chapter-bar-h, 0px) + 20px); scroll-margin-top: 24px; outline: none; display: grid; gap: 16px; min-width: 0; padding: clamp(22px, 2.6vw, 32px); border-radius: var(--radius); background: var(--band-bg); color: var(--band-ink); }
.quote__label { font-size: 0.95rem; font-weight: 600; line-height: 1.3; color: var(--mist); }
.quote__lines { list-style: none; display: grid; border-top: 1px solid var(--band-line); }
.q-line { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--band-line); }
.q-line__label { display: grid; gap: 2px; min-width: 0; font-weight: 560; color: var(--band-ink); }
.q-line__label small { font-size: 0.8rem; font-weight: 400; color: var(--band-muted); }
.q-line__amt { white-space: nowrap; font-weight: 620; font-variant-numeric: tabular-nums; color: #fff; }
.q-line--sub { padding-top: 0; }
.q-line--sub .q-line__label { position: relative; padding-left: 16px; font-size: 0.86rem; font-weight: 400; color: var(--band-muted); }
.q-line--sub .q-line__label::before { content: ""; position: absolute; left: 2px; top: 2px; width: 8px; height: 8px; border-left: 1px solid var(--band-muted); border-bottom: 1px solid var(--band-muted); }
.q-line--sub .q-line__amt { font-weight: 500; color: var(--band-ink); }
.quote__total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.quote__total output { font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem); font-weight: 720; line-height: 1; letter-spacing: -0.045em; color: #fff; font-variant-numeric: tabular-nums; }
.quote__total span { color: var(--band-muted); }
.quote__foot { font-size: 0.84rem; color: var(--band-muted); }
.quote__tip { padding: 12px 14px; border-radius: 10px; background: rgba(166, 182, 240, 0.12); font-size: 0.88rem; color: var(--band-ink); }
.quote__tip[hidden] { display: none; }
.quote__tip[role="button"] { cursor: pointer; }
.quote__tip[role="button"]:hover { background: rgba(166, 182, 240, 0.2); }
.quote__tip[role="button"]:active { transform: scale(0.99); transition: transform .1s var(--ease); }
.q-tip__go { font-weight: 640; color: #fff; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.q-tip__go::after { content: " →"; }
.quote__actions { display: grid; gap: 10px; margin-top: 4px; }
.quote__actions .btn { width: 100%; text-align: center; white-space: normal; padding-block: 10px; line-height: 1.25; }
.quote :focus-visible { outline-color: var(--mist); }

/* Todos los tramos, plegados */
.pz-all { margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line); }
.pz-all__sum { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; list-style: none; cursor: pointer; font-weight: 600; font-size: 1.04rem; color: var(--ink-strong); }
.pz-all__sum::-webkit-details-marker { display: none; }
.pz-all__sum::after { content: "+"; font: 400 1.4rem/1 var(--font-mono); color: var(--blue-ink); transition: transform .2s var(--ease); }
.pz-all[open] .pz-all__sum::after { transform: rotate(45deg); }
.pz-all__body { padding-bottom: 24px; }
.pz-rules { max-width: 90ch; margin-top: 16px; }

/* Barra fija de cotización en móvil (la crea precios.js). Entra en 220 ms y sale en 160 ms;
   solo transform y opacity, así que no mueve nada de la página. */
.qbar { display: none; }
@media (max-width: 999px) {
  .qbar {
    position: fixed; z-index: 65; left: 0; right: 0; bottom: 0;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
    background: var(--band-bg); color: var(--band-ink); border-top: 1px solid var(--band-line);
    box-shadow: 0 -14px 28px -20px rgba(11, 29, 77, 0.55);
    transform: translateY(100%); opacity: 0; visibility: hidden;
    transition: transform .16s var(--ease), opacity .16s var(--ease), visibility 0s .16s;
  }
  .qbar.is-shown { transform: none; opacity: 1; visibility: visible; transition: transform .22s var(--ease), opacity .22s var(--ease); }
}
.qbar__sum { display: grid; gap: 1px; min-width: 0; }
.qbar__sum small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.78rem; color: var(--band-muted); }
.qbar__sum b { font-size: 1.3rem; font-weight: 720; letter-spacing: -0.03em; color: #fff; font-variant-numeric: tabular-nums; }
.qbar__sum span span { font-size: 0.86rem; color: var(--band-muted); }
.qbar__go { flex: none; }
.qbar__go:active, .cov__cta:active, .quote__actions .btn:active { transform: scale(0.97); }

@media (max-width: 999px) {
  .cov__head { grid-template-columns: minmax(0, 1fr); }
  .cov__head > span { display: none; }
  .cov__row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "plan cta" "track track"; row-gap: 18px; }
  .cov__plan { grid-area: plan; } .cov__track { grid-area: track; } .cov__buy { grid-area: cta; align-self: start; }
  .calc { grid-template-columns: minmax(0, 1fr); }
  .quote { position: static; }
}
@media (max-width: 759px) {
  .pz-head { grid-template-columns: minmax(0, 1fr); }
  .pz-billing { grid-column: 1; grid-row: auto; justify-self: stretch; }
  .pz-billing button { padding-inline: 10px; }
  .cov__head { display: none; }
  .cov__row { grid-template-columns: minmax(0, 1fr); grid-template-areas: "plan" "track" "cta"; gap: 14px; padding: 20px 16px; }
  .cov__track { display: grid; gap: 10px; }
  .cov__track::before { display: none; }
  .cov__end { position: static; height: auto; max-width: none; white-space: normal; font-weight: 620; color: var(--ink-strong); }
  .cov__row.is-picked .cov__end { color: var(--ink-strong); }
  .cov__stages { width: auto; height: auto; flex-wrap: wrap; gap: 6px; overflow: visible; border-radius: 0; background: none; }
  .cov__row.is-picked .cov__stages { background: none; }
  .cov__stages li { flex: none; padding: 5px 10px; border: 0; border-radius: 999px; background: var(--support); color: var(--navy); font-size: 0.8rem; font-weight: 560; text-indent: 0; white-space: normal; }
  .cov__row.is-picked .cov__stages li { background: var(--blue); color: #fff; }
  .cov__buy { justify-items: stretch; text-align: center; }
  .cov__cta { width: 100%; }
  .pz-free { padding: 14px 16px; }
  .calc__addon { padding: 16px 14px; }
  .ladder--mini .ladder__steps { gap: 4px; }
  .ladder--mini .ladder__block { padding: 7px 6px; }
  .ladder--mini .ladder__block b { font-size: 0.8rem; }
  .ladder--mini .ladder__incl { font-size: 0.68rem; letter-spacing: -0.01em; }
  .ladder--full .ladder__steps { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .ladder--full .ladder__step { grid-template-rows: auto; gap: 8px; }
  .ladder--full .ladder__block { width: calc(max(var(--h), 0.6) * 100%); height: auto; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); border-radius: 10px; }
  .ladder--full .ladder__step.is-on .ladder__block { border-color: var(--blue); }
  .ladder--full .ladder__tier { flex-basis: 100%; }
  .ladder__facts { display: flex; flex-wrap: wrap; gap: 2px 14px; }
  .ladder__overlay, .ladder__stage::after { display: none; }
  .ladder__stage { margin-top: 6px; }
}
@media (max-width: 359px) {
  .ladder--mini .ladder__incl { white-space: normal; }
}

/* ---------- Captura rápida (hero, paso 1 de 2) ---------- */
/* Markup: form.qcap[data-qcap] > .qcap__row > input[type=email] + .btn,
   then p.qcap__error[data-qcap-error] (space reserved, CLS 0) and p.qcap__note[data-qcap-note]. */
.qcap { display: grid; gap: 6px; max-width: 540px; margin-top: 8px; }
.qcap__row { display: flex; flex-wrap: wrap; gap: 8px; }
.qcap input {
  flex: 1 1 240px; min-width: 0; min-height: 48px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink-strong); font: inherit;
}
.qcap input::placeholder { color: var(--faint); }
.qcap input:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.qcap input[aria-invalid="true"] { border-color: var(--orange-text); }
.qcap .btn { flex: 0 0 auto; }
.qcap__error { min-height: 1.4em; margin: 0; font-size: var(--fs-small); color: var(--orange-text); }
.qcap__note { margin: 0; font-size: var(--fs-small); color: var(--muted); }
.qcap__alt { font-size: var(--fs-small); color: var(--blue-ink); text-decoration: underline; text-underline-offset: 3px; display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 520px) { .qcap .btn { flex: 1 1 100%; } }
/* Paso 2: confirmación ejecutiva o agenda inmediata (PUBLIC_BOOKING_URL). */
.booking-note { font-size: var(--fs-small); color: var(--muted); }
.band--navy .booking-note { color: var(--band-muted); }
.booking-note b { color: inherit; font-weight: 600; }

/* Byline of guides and resources: on phones one item per line, so the web
   font swap can never rewrap it (CLS 0 at 375 px). */
@media (max-width: 640px) { main .byline { flex-direction: column; align-items: flex-start; gap: 2px 0; } }

/* AA touch targets: 44 px minimum on phones for small buttons. */
@media (max-width: 640px) { .btn--sm { min-height: 44px; } }

/* AA touch targets on phones (44 px): footer, language switch, logo,
   breadcrumbs and arrow links. Inline links inside paragraphs are exempt. */
@media (max-width: 640px) {
  .footer-col { gap: 0; }
  .footer-col strong { margin-bottom: 6px; }
  .footer-col a, .footer-col button, .footer-base a, .footer-base button { display: inline-flex; align-items: center; min-height: 44px; }
  .lang { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
  .brand { min-height: 44px; }
  .crumbs a { position: relative; }
  .crumbs a::after { content: ""; position: absolute; inset: -14px 0; }
  .link-arrow { position: relative; }
  .link-arrow::before { content: ""; position: absolute; inset: -13px 0; }
}
/* Photo hero: the selector tabs sit on the photo, so they get a solid backdrop (AA). */
.hero--photo .live__tab { background: rgba(5, 11, 31, 0.86); border-color: rgba(255, 255, 255, 0.24); color: #D5DCF2; }
.hero--photo .live__tab[aria-selected="true"] { background: #fff; border-color: #fff; color: var(--navy); }

/* ---------- sections/checkout.css ---------- */
/* ---------- Checkout del sitio (assets/checkout.js) ----------
   Diálogo nativo en la capa superior: abrirlo no mueve la página (CLS 0).
   Resumen a 520 px; con Stripe Embedded Checkout se ensancha a 980 px.
   En teléfonos ocupa la pantalla completa. */
.ck {
  width: min(520px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px);
  padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink);
  box-shadow: 0 24px 64px rgba(6, 12, 34, 0.28); overflow: hidden; font-variant-numeric: tabular-nums;
}
.ck.ck--pay { width: min(980px, calc(100vw - 32px)); }
.ck::backdrop { background: rgba(6, 12, 34, 0.56); }
/* `hidden` always wins inside the dialog (grid and button display rules would override it). */
.ck [hidden] { display: none !important; }
.ck[open] .ck__panel { animation: ck-in .18s var(--ease, ease-out) both; }
@keyframes ck-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.ck__panel { display: grid; grid-template-rows: auto minmax(0, 1fr); max-height: calc(100dvh - 32px); }
.ck__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px 14px 24px; border-bottom: 1px solid var(--line); }
.ck__title { font-size: 1.15rem; line-height: 1.3; letter-spacing: -0.01em; color: var(--ink-strong); margin: 0; }
.ck__close { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; }
.ck__close:hover { background: var(--paper); color: var(--ink-strong); }
.ck__close svg { width: 16px; height: 16px; }
.ck__body { overflow-y: auto; overscroll-behavior: contain; }
.ck__step { display: grid; gap: 14px; padding: 20px 24px 24px; }
.ck__step--pay { padding: 0; }
.ck__embed { min-height: 640px; }
.ck__lines { list-style: none; margin: 0; padding: 0; display: grid; }
.ck__line { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ck__label { display: grid; gap: 2px; min-width: 0; color: var(--ink-strong); font-weight: 560; }
.ck__label small { font-weight: 400; font-size: 0.82rem; color: var(--muted); }
.ck__amt { white-space: nowrap; font-weight: 620; color: var(--ink-strong); font-variant-numeric: tabular-nums; }
.ck__total { display: flex; align-items: baseline; gap: 8px; margin: 2px 0 0; }
.ck__total output { font-size: 1.9rem; font-weight: 700; letter-spacing: -0.03em; color: var(--ink-strong); font-variant-numeric: tabular-nums; }
.ck__total span { color: var(--muted); font-size: 0.95rem; }
.ck__note, .ck__fine, .ck__hint { margin: 0; font-size: var(--fs-small); color: var(--muted); }
.ck__pay { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 4px 0 0; padding: 0; border: 0; }
.ck__pay legend { grid-column: 1 / -1; margin-bottom: 8px; padding: 0; font-weight: 600; color: var(--ink-strong); font-size: 0.95rem; }
.ck__opt { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 10px; cursor: pointer; font-size: 0.92rem; color: var(--ink-strong); }
.ck__opt:has(input:checked) { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); background: var(--blue-tint); }
.ck__opt input { width: 18px; height: 18px; margin: 0; accent-color: var(--blue); }
.ck__inv { display: grid; gap: 12px; }
.ck__field { display: grid; gap: 6px; }
.ck__field label { font-size: 0.84rem; color: var(--muted); }
.ck__field input, .ck__field select { width: 100%; min-height: 46px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--bg); color: var(--ink-strong); font: inherit; }
.ck__field input:focus-visible, .ck__field select:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.ck__field [aria-invalid="true"] { border-color: var(--orange-text); }
.ck__status { min-height: 1.4em; margin: 0; font-size: var(--fs-small); color: var(--orange-text); }
.ck__status:empty { min-height: 0; }
.ck__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.ck__actions .btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.ck__sales { display: inline-flex; align-items: center; min-height: 44px; font-weight: 560; color: var(--blue-ink); text-decoration: underline; text-underline-offset: 3px; }
.ck__done { margin: 0; font-size: 1.1rem; font-weight: 600; color: var(--ink-strong); }
.ck__done:focus { outline: none; }
@media (max-width: 640px) {
  .ck, .ck.ck--pay { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border: 0; border-radius: 0; }
  .ck__panel { max-height: 100dvh; height: 100%; }
  .ck__head { padding: 12px 12px 10px 20px; }
  .ck__step { padding: 16px 20px 24px; }
  .ck__step--pay { padding: 0; }
  .ck__pay { grid-template-columns: minmax(0, 1fr); }
  .ck__actions .btn { flex: 1 1 100%; }
}

/* ---------- Bienvenida posterior al pago (/bienvenida, /en/welcome) ---------- */
.wl { padding-block: clamp(48px, 8vw, 112px); }
.wl__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.wl__copy h1 { max-width: 20ch; font-size: clamp(2rem, 1.5rem + 2vw, 3.25rem); }
.wl__copy h1:focus { outline: none; }
.wl__state { display: grid; gap: 16px; }
.wl__state[hidden] { display: none; }
/* Space for the longest state (measured at 375 and 1440 px, ES and EN), so switching
   states never moves the card or the footer (CLS 0). */
.wl__copy { min-height: 24rem; align-content: start; }
.wl__checking { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-size: var(--fs-small); color: var(--muted); }
.wl__spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-strong); border-top-color: var(--blue); animation: wl-spin .9s linear infinite; }
@keyframes wl-spin { to { transform: rotate(360deg); } }
.wl__fine { margin: 0; font-size: var(--fs-small); color: var(--muted); max-width: 56ch; }
.wl__card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); display: grid; gap: 18px; }
.wl__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.wl__steps li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; align-items: start; }
.wl__steps li > .num { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-tint); color: var(--blue-ink); font: 600 0.85rem/1 var(--font-mono); }
.wl__steps b { display: block; color: var(--ink-strong); font-weight: 600; }
.wl__steps span { color: var(--muted); font-size: var(--fs-small); }
.wl__help { margin: 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: var(--fs-small); color: var(--muted); }
.wl__help a, .wl__state a:not(.btn) { color: var(--blue-ink); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 860px) { .wl__grid { grid-template-columns: minmax(0, 1fr); } .wl__copy { min-height: 23.5rem; } }
.ck__cad { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; border: 0; }
.ck__cad legend { grid-column: 1 / -1; margin-bottom: 8px; padding: 0; font-weight: 600; color: var(--ink-strong); font-size: 0.95rem; }
.ck__line--later .ck__label > span { color: var(--muted); }
.ck__line--later .ck__amt { color: var(--muted); font-weight: 500; }
.ck__status--info { color: var(--muted); }
.wl__how { margin: 0; font: 500 var(--fs-label, 0.75rem)/1.2 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
/* Cloudflare Turnstile: space reserved before the widget loads (no shift). */
.ck__human { min-height: 65px; }

/* Extra Pro users: always rendered (disabled until options confirm a Price), so it never shifts the dialog. */
.ck__seats { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; }
.ck__seats label { font-weight: 600; font-size: 0.95rem; color: var(--ink-strong); }
.ck__stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; }
.ck__stepper input { width: 64px; min-height: 44px; border: 0; border-inline: 1px solid var(--line); background: var(--bg); color: var(--ink-strong); text-align: center; font: inherit; font-weight: 600; font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; }
.ck__stepper input::-webkit-outer-spin-button, .ck__stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ck__stepper input:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.ck__step-btn { display: grid; place-items: center; width: 44px; min-height: 44px; border: 0; background: var(--surface); color: var(--ink-strong); cursor: pointer; }
.ck__step-btn svg { width: 14px; height: 14px; }
.ck__step-btn:disabled, .ck__stepper input:disabled { color: var(--faint); cursor: not-allowed; }
.ck__step-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.ck__seats-hint { grid-column: 1 / -1; min-height: 1.35em; font-size: 0.82rem; color: var(--muted); }

/* ---------- sections/front1.css ---------- */
/* Front 1: home (/ and /en), Sobre Certo (/nosotros, /en/about) and the
   resources hub (/recursos, /en/resources). Shipped inside site.css by the build. */

/* Window dots drawn with spans, no italic elements (Brand Book v2.5). */
.win__dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }

/* Every figure lines up (tabular-nums). */
.proof3 dt, .stat b, .pcard__price b, .get small, .tbl td, .ledger td, .res__meta, .hubf__count { font-variant-numeric: tabular-nums; }

/* ---------- Home: product selector ----------
   The panels share one grid cell, so the box always has the height of the tallest
   panel and the 6-second rotation never moves the page (CLS 0). Hidden panels stay
   out of the accessibility tree through visibility:hidden. */
.live--stack { grid-template-columns: minmax(0, 1fr); }
.live--stack > .live__tabs { grid-row: 1; grid-column: 1; }
.live--stack > .live__panel { grid-row: 2; grid-column: 1; opacity: 1; visibility: visible; transition: opacity 180ms var(--ease), visibility 0s linear 0s; }
.live--stack > .live__panel[hidden] { display: block !important; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 180ms var(--ease), visibility 0s linear 180ms; }
@media (max-width: 860px) { .live__tab { min-height: 44px; padding-inline: 14px; } }
@media (prefers-reduced-motion: reduce) {
  .live--stack > .live__panel, .live--stack > .live__panel[hidden] { transition: none; }
}

/* ---------- Sobre Certo ---------- */
.ledger td:first-child { color: var(--faint); font: 500 0.7rem/1.4 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; width: 38%; }
.win .tbl.ledger td { white-space: normal; overflow-wrap: anywhere; }
.owner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.owner > * { min-width: 0; }
.owner__card { padding: clamp(20px, 2.4vw, 28px); border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); display: grid; gap: 12px; }
.owner__card p { color: var(--muted); font-size: 0.95rem; }
.owner__card a { color: var(--blue-ink); text-decoration: underline; text-underline-offset: 3px; }
.one-line { font: 500 0.84rem/1.6 var(--font-mono); color: var(--band-muted); }
.one-line a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,.35); text-underline-offset: 3px; }
.one-line a:hover { text-decoration-color: #fff; }
@media (max-width: 860px) { .owner { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Resources hub ---------- */
.hubf { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 20px; }
.hubf__btn {
  min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink-strong); font: 500 0.9rem/1 var(--font-sans); cursor: pointer;
  transition: background-color 150ms var(--ease), color 150ms var(--ease), border-color 150ms var(--ease);
}
.hubf__btn:hover { border-color: var(--ink-strong); }
.hubf__btn[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.hubf__btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.hubf__count { margin-left: auto; font: 500 0.78rem/1.4 var(--font-mono); color: var(--faint); min-width: 14ch; text-align: right; }
.res-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.res { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto 1fr auto; gap: 6px 16px; align-content: start; padding: clamp(20px, 2.4vw, 28px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color 150ms var(--ease); }
.res[hidden] { display: none; }
.res:hover { border-color: var(--ink-strong); }
.res .ic-tile { grid-row: span 3; }
.res--feat { background: var(--blue-tint); border-color: var(--support); }
.res__kind { font: 500 var(--fs-label)/1.2 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--blue-ink); }
.res h3 { font-size: 1.22rem; letter-spacing: -0.02em; line-height: 1.2; }
.res p { color: var(--muted); font-size: 0.95rem; }
.res p a { color: var(--blue-ink); text-decoration: underline; text-underline-offset: 3px; }
.res__foot { grid-column: 2; display: flex; justify-content: space-between; align-items: center; gap: 10px 16px; flex-wrap: wrap; padding-top: 12px; margin-top: 8px; border-top: 1px solid var(--line); }
.res__foot .link-arrow { min-height: 44px; }
.res__langs { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.res__meta { font: 500 0.74rem/1.3 var(--font-mono); color: var(--faint); }
.calc-prev .q { display: grid; gap: 0; list-style: none; margin: 0; padding: 0; }
.calc-prev .q li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 0.86rem; }
.calc-prev .q li:last-child { border-bottom: 0; }
.calc-prev .q b { font-family: var(--font-mono); font-weight: 500; color: var(--ink-strong); font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc-prev .q .is-key b { color: var(--blue-ink); font-size: 1.05rem; }
@media (max-width: 860px) {
  .res-grid { grid-template-columns: minmax(0, 1fr); }
  .hubf__count { margin-left: 0; text-align: left; flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .hubf__btn, .res { transition: none; }
}
.owner a.inline, .chapter .muted a.inline { color: var(--blue-ink); text-decoration: underline; text-underline-offset: 3px; }
.hub-ind { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; margin-top: 16px; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.hub-ind h3 { font-size: 1.15rem; }
@media (max-width: 640px) {
  .hub-ind { grid-template-columns: minmax(0, 1fr); }
  .res { grid-template-columns: minmax(0, 1fr); }
  .res .ic-tile { grid-row: auto; }
  .res__foot { grid-column: 1; }
}
.res--feat .ic-tile { background: var(--surface); }
/* Touch targets of at least 44 px on phones. */
@media (max-width: 860px) {
  .pcard--wide .btn, .partner .btn, .hub-ind .btn, .owner__card .link-arrow, .calc-prev .link-arrow { min-height: 44px; }
}

/* ---------- sections/governance.css ---------- */
/* ---------- Autonomía gobernada (bento de Certo Intelligence) ---------- */
/* Used on /seguridad, /en/security and, through mockup/partials/gov-bento.*.html, on /procure.
   Native HTML and CSS only. Motion: transform and opacity, 120 to 220 ms, off with reduced motion.
   Every box has its final size in the server HTML, so nothing shifts after load (CLS 0). */
.gov { font-variant-numeric: tabular-nums; }
.gov-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.gov-grid > * { min-width: 0; }
@media (min-width: 1000px) {
  .gov-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .gov-tile--outcome { grid-column: 1 / span 5; }
  .gov-tile--agents { grid-column: 6 / span 7; }
  .gov-tile--barrier { grid-column: 1 / span 7; }
  .gov-tile--next { grid-column: 8 / span 5; }
}

.gov-tile {
  display: grid; gap: 16px; align-content: start; padding: clamp(20px, 2.2vw, 28px);
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
}
.band--white .gov-tile { background: var(--paper); }
.gov-tile h3 { font-size: clamp(1.08rem, 1rem + 0.3vw, 1.25rem); line-height: 1.3; color: var(--ink-strong); text-wrap: balance; }
.gov-tile__head { display: grid; gap: 8px; }

/* 1. Outcome for Finance: the one dark tile. */
.band .gov-tile--outcome { background: var(--navy); border-color: var(--navy); color: var(--band-ink); }
.gov-tile--outcome .label { color: var(--mist); }
.gov-tile--outcome h3 { color: #fff; font-size: clamp(1.3rem, 1.1rem + 0.7vw, 1.65rem); letter-spacing: -0.02em; }
.gov-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.gov-checks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 4px 12px; padding: 14px 0; border-top: 1px solid var(--band-line); }
.gov-checks li::before { content: ""; grid-row: span 2; width: 22px; height: 22px; border-radius: 50%; background: rgba(95, 211, 155, .16); box-shadow: inset 0 0 0 1.5px #5FD39B; margin-top: 1px; }
.gov-checks b { color: #fff; font-weight: 600; }
.gov-checks span { color: var(--band-muted); font-size: 0.92rem; line-height: 1.5; }
.gov-tile--outcome { grid-template-rows: auto auto auto 1fr; }
.gov-zero { align-self: end; display: flex; align-items: baseline; gap: 14px; margin: 8px 0 0; padding-top: 18px; border-top: 1px solid var(--band-line); }
.gov-zero b { font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem); line-height: 1; font-weight: 680; letter-spacing: -0.04em; color: #fff; font-variant-numeric: tabular-nums; }
.gov-zero span { color: var(--band-muted); font-size: 0.95rem; line-height: 1.4; max-width: 24ch; }

/* 2. What each agent executes, by event: a matrix on wide tiles, chips on narrow ones. */
.gov-tile--agents { container: gov-agents / inline-size; }
.gov-matrix { width: 100%; border-collapse: collapse; }
.gov-matrix caption { text-align: left; }
.gov-matrix thead th {
  font: 500 0.68rem/1.3 var(--font-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--faint);
  text-align: center; vertical-align: bottom; padding: 0 4px 10px; width: 14%;
}
.gov-matrix thead th:first-child { text-align: left; width: auto; padding-left: 0; }
.gov-matrix tbody th { text-align: left; font-weight: 400; padding: 14px 12px 14px 0; border-top: 1px solid var(--line); vertical-align: top; }
.gov-matrix td { text-align: center; vertical-align: middle; border-top: 1px solid var(--line); padding: 14px 4px; }
.gov-agent { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; align-items: baseline; }
.gov-n { grid-row: span 2; font: 600 0.74rem/1 var(--font-mono); color: var(--blue-ink); background: var(--blue-tint); border-radius: 6px; padding: 5px 6px; }
.gov-agent b { color: var(--ink-strong); font-weight: 620; font-size: 0.98rem; }
.gov-agent span:last-child { color: var(--muted); font-size: 0.88rem; line-height: 1.45; }
.gov-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px var(--blue-tint); transition: transform .16s var(--ease); }
.gov-matrix tbody tr:hover .gov-dot { transform: scale(1.2); }
.gov-ev { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gov-foot { font-size: var(--fs-small); color: var(--muted); }
@container gov-agents (max-width: 619px) {
  .gov-matrix thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .gov-matrix, .gov-matrix tbody { display: block; }
  .gov-matrix tr { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 0; border-top: 1px solid var(--line); }
  .gov-matrix tbody th, .gov-matrix td { border-top: 0; padding: 0; }
  .gov-matrix tbody th { flex: 1 1 100%; padding-bottom: 4px; }
  .gov-matrix td:empty { display: none; }
  .gov-matrix td { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
  .gov-dot { width: 8px; height: 8px; box-shadow: none; }
  .gov-ev { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; font: 500 0.74rem/1.3 var(--font-mono); color: var(--ink); }
}

/* 3. The database barrier. */
.gov-wall { display: grid; grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1fr); align-items: stretch; }
.gov-wall__col { display: grid; gap: 10px; align-content: start; padding: 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.gov-wall__col--shut { border: 1.5px solid var(--navy); }
.gov-wall__k { font: 500 0.68rem/1.3 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.gov-wall__col--shut .gov-wall__k { color: var(--navy); }
.gov-wall ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.gov-wall li { font-size: 0.92rem; color: var(--ink-strong); padding-left: 16px; position: relative; }
.gov-wall li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 2px; background: var(--blue); }
.gov-wall__col--shut li::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--navy); }
.gov-wall__bar { position: relative; display: grid; place-items: center; }
.gov-wall__bar::before { content: ""; position: absolute; inset: 6px auto 6px 50%; width: 3px; transform: translateX(-50%); border-radius: 3px; background: repeating-linear-gradient(180deg, var(--navy) 0 8px, transparent 8px 13px); }
.gov-wall__bar .ic { position: relative; width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: var(--navy); color: #fff; -webkit-mask: none; mask: none; }
.gov-wall__bar .ic::after { content: ""; position: absolute; inset: 8px; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.gov-tech { display: grid; gap: 0; margin: 0; }
.gov-tech > div { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 4px 16px; padding: 10px 0; border-top: 1px dashed var(--line-strong); }
.gov-tech dt { font: 500 0.76rem/1.45 var(--font-mono); color: var(--ink-strong); overflow-wrap: anywhere; }
.gov-tech dd { margin: 0; font-size: 0.86rem; color: var(--muted); line-height: 1.45; }
@media (max-width: 560px) {
  .gov-wall { grid-template-columns: minmax(0, 1fr); }
  .gov-wall__bar { height: 52px; }
  .gov-wall__bar::before { inset: 50% 6px auto 6px; width: auto; height: 3px; transform: translateY(-50%); background: repeating-linear-gradient(90deg, var(--navy) 0 8px, transparent 8px 13px); }
  .gov-tech > div { grid-template-columns: minmax(0, 1fr); }
}

/* 4. The next 6 agents (stage 3 and 4, badge from scripts/releaseFlags.ts). */
.gov-next { list-style: none; margin: 0; padding: 0; display: grid; }
.gov-next li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); color: var(--ink-strong); font-size: 0.93rem; line-height: 1.4; }

/* Representative operating scenarios. */
.gov-scen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.gov-scen > * { min-width: 0; }
.gov-scen__card { display: grid; gap: 12px; align-content: start; padding: clamp(20px, 2.2vw, 26px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.gov-scen__card h3 { font-size: 1.1rem; line-height: 1.3; }
.gov-scen__card p { color: var(--muted); font-size: 0.93rem; }
.gov-scen__list { list-style: none; margin: 0; padding: 12px 0 0; display: grid; gap: 8px; border-top: 1px solid var(--line); }
.gov-scen__list li { font-size: 0.9rem; color: var(--ink); padding-left: 18px; position: relative; line-height: 1.45; }
.gov-scen__list li::before { content: ""; position: absolute; left: 0; top: .45em; width: 9px; height: 5px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.gov-method { margin-top: 20px; }
@media (max-width: 900px) { .gov-scen { grid-template-columns: minmax(0, 1fr); } }

@media (prefers-reduced-motion: reduce) {
  .gov-dot { transition: none; }
  .gov-matrix tbody tr:hover .gov-dot { transform: none; }
}

/* ---------- sections/pricing.css ---------- */
/* ---------- Hub de precios (/precios, /en/pricing) ---------- */
.ph-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.ph-card { display: grid; grid-template-rows: auto auto 1fr auto; gap: 12px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); min-width: 0; }
.ph-card__head { display: flex; align-items: center; gap: 12px; }
.ph-card__head h3 { margin: 0; font-size: 1.15rem; color: var(--ink-strong); }
.ph-card__price { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.ph-card__price b { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.03em; color: var(--ink-strong); font-variant-numeric: tabular-nums; }
.ph-card__price small { color: var(--muted); font-size: 0.88rem; }
.ph-card__say { margin: 0; color: var(--muted); font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.ph-card .link-arrow { align-self: end; min-height: 44px; }
.ph-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; max-width: 980px; }
.ph-list li { padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--muted); font-size: 0.95rem; }
.ph-list b { color: var(--ink-strong); font-weight: 600; }
@media (max-width: 960px) { .ph-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ph-grid, .ph-list { grid-template-columns: minmax(0, 1fr); } }
/* Links inside hero leads read as links (AA: not by color alone). */
.hero__copy .lead a { color: var(--blue-ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- sections/procure.css ---------- */
/* =====================================================================
   Procure (/procure y /en/procure): vitrina de producto en el hero,
   escenarios de operación, controles financieros e impacto estimado.
   Se publica dentro de site.css, así que cada clase lleva prefijo propio
   (pshow, pbud, pdesk, pdoc, ppay, pba, pscn, pctl, roi) y no toca otras
   páginas. Movimiento: solo transform y opacity, 200 ms; sin movimiento
   con prefers-reduced-motion. Toda cifra con tabular-nums.
   ===================================================================== */

/* ---------- Vitrina: 5 pestañas, un solo marco ---------- */
.pshow { display: grid; gap: 12px; width: 100%; max-width: 540px; margin-left: auto; font-variant-numeric: tabular-nums; }
.pshow__tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.pshow__tab {
  display: grid; align-content: center; gap: 3px; min-width: 0; min-height: 56px; padding: 8px 10px;
  border-radius: 12px; border: 1px solid rgba(166, 182, 240, 0.28); background: rgba(5, 11, 31, 0.86);
  color: #DDE4F6; font: 560 0.82rem/1.2 var(--font-sans); text-align: left; cursor: pointer;
}
.pshow__n { font: 500 0.68rem/1 var(--font-mono); letter-spacing: 0.04em; color: #8FA8FF; }
.pshow__tab:hover { color: #FFFFFF; border-color: rgba(255, 255, 255, 0.6); }
.pshow__tab[aria-selected="true"] { background: #FFFFFF; color: #060C22; border-color: #FFFFFF; }
.pshow__tab[aria-selected="true"] .pshow__n { color: #2447C9; }
.pshow__tab:focus-visible { outline: 2px solid #A3B8FF; outline-offset: 2px; }

/* Todas las vistas ocupan la misma celda: el marco mide lo que la más alta,
   así cambiar de pestaña nunca mueve el resto de la página (CLS 0). */
.pshow__frame { display: grid; }
.pshow__panel {
  grid-area: 1 / 1; min-width: 0; visibility: hidden; opacity: 0; transform: translateY(6px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0s linear 0.2s;
}
.pshow__panel.is-on { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.pshow__panel:focus-visible { outline: 2px solid #A3B8FF; outline-offset: 3px; border-radius: 16px; }
@media (prefers-reduced-motion: reduce) { .pshow__panel { transition: none; transform: none; } }
.pshow__note { margin: 0; font: 500 0.72rem/1.5 var(--font-mono); color: var(--muted); text-align: right; }

/* La ventana llena el marco; el pie queda abajo en todas las vistas. */
.pshow .win, .hero--photo .pshow .win { display: flex; flex-direction: column; height: 100%; max-width: none; margin: 0; }
.pshow .win__body { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 16px; }
/* Shorter tabs keep their status or action row at the bottom of the shared frame. */
.pshow .win__body > :last-child { margin-top: auto; }
.pshow .win__title { font-size: 0.95rem; }
.pshow .win__foot { padding: 10px 16px; }
.pshow .tbl { font-size: 0.8rem; }
.pshow .tbl td { padding: 7px 6px; }
.pshow .tbl th { padding: 0 6px 6px; }
.pshow .tbl td:first-child, .pshow .tbl th:first-child { padding-left: 0; }
.pshow .tbl td:last-child, .pshow .tbl th:last-child { padding-right: 0; }
.pshow .tbl tfoot th, .pshow .tbl tfoot td { padding-top: 9px; border-top: 1px solid var(--line-strong); font: 620 0.82rem/1.2 var(--font-sans); letter-spacing: 0; text-transform: none; color: var(--ink-strong); }
.pshow .tbl tr.is-hold td { color: var(--orange-text); font-weight: 600; }
.pchips { display: flex; flex-wrap: wrap; gap: 6px; }
.pnext { margin: 0; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 0.8rem; line-height: 1.45; color: var(--muted); }
.ptech { display: block; margin: 0; font: 500 0.7rem/1.45 var(--font-mono); color: var(--faint); }

/* Botones de la ventana: ilustración, no controles reales. */
.pacts { display: flex; flex-wrap: wrap; gap: 8px; }
.pbtn { display: inline-flex; align-items: center; min-height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 0.8rem; font-weight: 580; color: var(--ink-strong); }
.pbtn--pri { background: var(--blue); border-color: var(--blue); color: #FFFFFF; }

/* 2. Presupuesto en 4 cubetas */
.pbud { display: grid; gap: 8px; }
.pbud__cap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin: 0; font-size: 0.8rem; color: var(--muted); }
.pbud__cap b { color: var(--ink-strong); font-weight: 620; }
.pbud__bar { display: grid; grid-template-columns: 52.5fr 20.5fr 17fr 10fr; gap: 2px; height: 10px; border-radius: 999px; overflow: hidden; }
.pbud__bar span:nth-child(1), .pbud__list div:nth-child(1) dt::before { background: var(--navy); }
.pbud__bar span:nth-child(2), .pbud__list div:nth-child(2) dt::before { background: var(--blue); }
.pbud__bar span:nth-child(3), .pbud__list div:nth-child(3) dt::before { background: var(--mist); }
.pbud__bar span:nth-child(4), .pbud__list div:nth-child(4) dt::before { background: var(--ok); }
.pbud__list { display: grid; margin: 0; }
.pbud__list div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 0.8rem; }
.pbud__list dt { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--ink); }
.pbud__list dt::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 2px; }
.pbud__list dd { margin: 0; white-space: nowrap; font-weight: 600; color: var(--ink-strong); }
.plast { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; margin: 0; padding: 9px 12px; border-radius: 10px; background: var(--blue-tint); font-size: 0.8rem; color: var(--ink); }
.plast b { font-weight: 600; color: var(--blue-ink); }

/* 3. Mesa AP: PDF marcado y cruce de 3 vías */
.pdesk { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 14px; align-items: start; }
.pdoc { display: grid; gap: 7px; padding: 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--paper); font: 500 0.7rem/1.3 var(--font-mono); color: var(--muted); }
.pdoc__h { font-weight: 600; letter-spacing: 0.04em; color: var(--ink-strong); }
.pdoc__l { display: flex; justify-content: space-between; gap: 8px; }
.pdoc__t { padding-top: 7px; border-top: 1px dashed var(--line-strong); color: var(--ink-strong); }
.mk { padding: 0 3px; border-radius: 3px; outline: 1.5px solid var(--blue); outline-offset: 1px; background: var(--blue-tint); color: var(--ink-strong); }
.mk--hold { outline-color: var(--orange); background: var(--orange-tint); color: var(--orange-text); }
.pnpo { margin: 0; padding: 8px 10px; border: 1px dashed var(--line-strong); border-radius: 8px; font-size: 0.78rem; line-height: 1.45; color: var(--muted); }
.pnpo b { color: var(--ink-strong); font-weight: 600; }

/* 4. Pago dividido e impuestos */
.ppay { display: grid; gap: 6px; }
.ppay__h { margin: 4px 0 0; font-size: 0.8rem; font-weight: 620; color: var(--ink-strong); }
.pshow .tbl--kv td { padding: 5px 0; color: var(--muted); }
.pshow .tbl--kv td.r { padding-left: 10px; white-space: nowrap; font-weight: 600; color: var(--ink-strong); }
.pmfa { display: flex; align-items: center; gap: 10px; margin: 0; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); font-size: 0.8rem; line-height: 1.4; color: var(--ink); }
.pmfa .ic { width: 18px; height: 18px; color: var(--orange-text); }

/* 5. Certo Intelligence, antes y después */
.pba { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pba__col { display: grid; gap: 6px; align-content: start; padding: 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); }
.pba__col p { margin: 0; font-size: 0.84rem; line-height: 1.45; color: var(--ink); }
.pba__col--after { border-color: var(--blue); background: var(--blue-tint); }
.psrc { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0; font: 500 0.72rem/1.45 var(--font-mono); color: var(--faint); }

@media (max-width: 920px) { .pshow { max-width: none; margin-left: 0; } }
/* La regla móvil de .win .tbl (scroll horizontal, sin saltos de línea) no aplica a la vitrina. */
@media (max-width: 640px) {
  .pshow .tbl { display: table; overflow: visible; }
  .pshow .tbl td, .pshow .tbl th { white-space: normal; }
  .pshow .tbl .r { white-space: nowrap; }
}
@media (max-width: 560px) {
  .pshow__tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pdesk, .pba { grid-template-columns: minmax(0, 1fr); }
  .pshow .win__body { padding: 14px; }
}

/* Paso 1 de 2 en el hero: nota y enlace a precios en una sola fila. */
.pqmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 0 18px; }
.pqmeta .qcap__alt { min-height: 44px; }

/* ---------- Escenarios de operación (capítulo Problema) ---------- */
.pscn { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pscn__c { display: grid; gap: 10px; align-content: start; padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.pscn__c .label { color: var(--blue-ink); }
.pscn__c h3 { font-size: 1.1rem; line-height: 1.3; }
.pscn__c p { margin: 0; font-size: 0.92rem; color: var(--muted); }
.pscn + .note { margin-top: 16px; }
@media (max-width: 920px) { .pscn { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Resultados para finanzas: bóveda y facturas sin orden ---------- */
.get .ptech { margin-top: -2px; }
.get .plinks { display: flex; flex-wrap: wrap; gap: 0 20px; margin-top: auto; }
.get .plinks a { min-height: 44px; }
.pctl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.pctl__block { display: grid; gap: 12px; align-content: start; padding: clamp(22px, 2.6vw, 32px); border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.pctl__block.band--navy { border-color: transparent; }
.pctl__block h3 { font-size: clamp(1.2rem, 1.1rem + 0.4vw, 1.45rem); letter-spacing: -0.02em; }
.pctl__block p { margin: 0; color: var(--muted); }
.pchecks { list-style: none; display: grid; gap: 10px; margin: 0; padding: 0; }
.pchecks li { position: relative; padding-left: 22px; color: var(--ink); line-height: 1.5; }
.pchecks li::before { content: ""; position: absolute; left: 2px; top: 0.55em; width: 8px; height: 8px; border-radius: 2px; transform: rotate(45deg); background: var(--blue); }
.band--navy .pchecks li::before { background: #8FA8FF; }
@media (max-width: 920px) { .pctl { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Impacto y retorno estimado (junto a la calculadora) ---------- */
.roi { display: grid; grid-template-columns: minmax(0, 7fr) minmax(320px, 5fr); gap: clamp(28px, 4vw, 64px); align-items: start; margin-top: clamp(48px, 6vw, 80px); padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line-strong); font-variant-numeric: tabular-nums; }
.roi__in { display: grid; gap: 16px; min-width: 0; }
.roi__in .pz-sub { margin-bottom: 0; font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.9rem); letter-spacing: -0.03em; }
.roi__lead { margin: 0; max-width: 60ch; font-size: 0.95rem; color: var(--muted); }
.roi__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; margin-top: 8px; }
.roi__f { display: grid; grid-template-rows: 1fr auto; gap: 8px; min-width: 0; }
.roi__f label { align-self: end; font-size: 0.9rem; font-weight: 580; line-height: 1.3; color: var(--ink-strong); }
.roi__f input { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); color: var(--ink-strong); font: 560 1rem/1 var(--font-sans); font-variant-numeric: tabular-nums; }
.roi__f input:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.roi__out { display: grid; gap: 14px; min-width: 0; padding: clamp(22px, 2.6vw, 32px); border-radius: var(--radius); background: var(--band-bg); color: var(--band-ink); }
.roi__out .quote__label { margin: 0; }
.roi__lines { display: grid; margin: 0; border-top: 1px solid var(--band-line); }
.roi__lines > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--band-line); }
.roi__lines dt { display: grid; gap: 3px; min-width: 0; font-weight: 560; color: var(--band-ink); }
.roi__lines dt small { font: 500 0.74rem/1.4 var(--font-mono); color: var(--band-muted); }
.roi__lines dd { margin: 0; white-space: nowrap; font-weight: 640; color: #FFFFFF; }
.roi__total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0; }
.roi__total output { font-size: clamp(2.2rem, 1.8rem + 1.6vw, 3.2rem); font-weight: 720; line-height: 1; letter-spacing: -0.045em; color: #FFFFFF; white-space: nowrap; }
.roi__total span { color: var(--band-muted); }
.roi__x { margin: 0; font-size: 0.95rem; color: var(--band-ink); }
.roi__x b { color: #FFFFFF; font-weight: 660; }
.roi__cash { margin: 0; padding: 12px 14px; border-radius: 10px; background: rgba(166, 182, 240, 0.12); font-size: 0.86rem; line-height: 1.45; color: var(--band-ink); }
.roi__cash b { color: #FFFFFF; font-weight: 640; }
.roi__fine { margin: 0; font-size: 0.8rem; line-height: 1.45; color: var(--band-muted); }
.roi__fine a { color: var(--mist); text-decoration: underline; text-underline-offset: 3px; }
.roi :focus-visible { outline-offset: 2px; }
@media (max-width: 920px) { .roi { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .roi__fields { grid-template-columns: minmax(0, 1fr); } .roi__f { grid-template-rows: auto auto; } }

/* ---------- sections/suite.css ---------- */
/* Suite pages (Portico, Workflow, legal). Shipped inside site.css by the build. */

/* Figures and tables read as columns (Brand Book v2.5: tabular-nums on every figure). */
.proof3 dt, .proof3 dd, .stat b, .tbl, .win__sub, .ladder__facts, .ladder__say, .facts-dl, .compare { font-variant-numeric: tabular-nums; }

/* Representative operating scenarios, with one methodology note. */
.suite-scen { margin-top: clamp(28px, 3.5vw, 44px); display: grid; gap: 12px; }
.suite-scen__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.suite-scen__list li { display: grid; gap: 6px; align-content: start; padding: 18px 20px; background: var(--surface); }
.suite-scen__list b { color: var(--ink-strong); font-size: 0.98rem; font-weight: 620; }
.suite-scen__list span { color: var(--muted); font-size: var(--fs-small); line-height: 1.5; }
.suite-scen .note { margin: 0; }
@media (max-width: 760px) { .suite-scen__list { grid-template-columns: minmax(0, 1fr); } }

/* Touch targets of at least 44 px on phones. */
@media (max-width: 920px) { .legal .toc a { display: flex; align-items: center; min-height: 44px; } }

/* ---------- Production additions (appended by scripts/build-site.mjs) ---------- */

/* Cookie banner: same layout as getboldr.ai */
.cc{position:fixed;z-index:85;left:calc(16px + env(safe-area-inset-left,0px));bottom:calc(16px + env(safe-area-inset-bottom,0px));width:min(380px,calc(100vw - 32px));background:#0B1D4D;color:#F3F5FC;border:1px solid rgba(199,210,245,.18);border-radius:14px;box-shadow:0 24px 50px -20px rgba(0,0,0,.6);padding:16px;font-size:12.5px;line-height:1.5}
.cc[hidden]{display:none}
.cc.is-wide{width:min(460px,calc(100vw - 32px))}
.cc p{color:#C7D2F5;margin:0 0 12px}
.cc p a{color:#fff;text-decoration:underline}
.cc .cc-cats{display:grid;gap:10px;border-top:1px solid rgba(199,210,245,.18);padding-top:12px;margin-bottom:12px}
.cc .cc-cats label{display:grid;grid-template-columns:18px 1fr;gap:10px;cursor:pointer}
.cc .cc-cats input{margin-top:2px;accent-color:#2E56EA;min-width:18px;min-height:18px}
.cc .cc-cats b{display:block;color:#fff;font-size:13px}
.cc .cc-cats span{color:#B7C1E3;font-size:12px}
.cc .cc-btns{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.cc button{border:0;border-radius:999px;min-height:40px;padding:8px 12px;font:600 12px/1.2 var(--font-sans);background:#fff;color:#0B1D4D;cursor:pointer}
.cc button.cc-ghost{grid-column:1/-1;background:transparent;color:#fff;border:1px solid rgba(255,255,255,.3)}
.cc button:hover{filter:brightness(.94)}
.cc button:focus-visible{outline:2px solid #fff;outline-offset:2px}
@media (min-width:520px){.cc .cc-btns{grid-template-columns:1fr 1fr 1fr}.cc button.cc-ghost{grid-column:auto}}

/* Footer "cookie settings" is a button styled as a link */
.footer-col button[data-cookie-open]{all:unset;cursor:pointer;color:inherit;font:inherit}
.footer-col button[data-cookie-open]:hover{color:var(--ink-strong);text-decoration:underline}
.footer-col button[data-cookie-open]:focus-visible{outline:2px solid var(--blue);outline-offset:2px}

/* Lead forms */
.form .check{display:grid;grid-template-columns:20px 1fr;gap:10px;align-items:start;font-size:.82rem;color:var(--band-muted)}
.form .check input{width:20px;height:20px;margin:2px 0 0;accent-color:#2E56EA}
.form .check a{color:#fff;text-decoration:underline}
.form-error{display:block;font-size:.78rem;color:#FFB59A;margin-top:2px}
.form-status{min-height:1.2em;font-size:.82rem;color:var(--band-muted)}
.form-status a{color:#fff;text-decoration:underline}
.form-honeypot{position:absolute!important;left:-10000px;width:1px;height:1px;overflow:hidden}
.form button[type="submit"]:disabled{opacity:.6;cursor:not-allowed}
.form-done a{color:#fff;text-decoration:underline}
.band--white .form-done, .band--paper .form-done{color:var(--ink-strong)}

/* Plan actions inside price cards */
.price-card__cta{display:inline-flex;align-items:center;justify-content:center;margin-top:14px;min-height:40px;padding:8px 14px;border-radius:999px;border:1px solid var(--line-strong);font-weight:600;font-size:.86rem;color:var(--ink-strong);background:var(--surface)}
.price-card__cta:hover{border-color:var(--ink-strong)}
.price-card__cta.is-primary{background:var(--blue);border-color:var(--blue);color:#fff}

/* Without JavaScript the chapter rail is still a list of links */
.rail a,.chapter-bar a{text-decoration:none}

/* Phone menu: sign-in links and demo button */
.nav__mobile{display:none}
@media (max-width:920px){
  .nav__mobile{display:grid;gap:6px;padding:14px 12px 4px;border-top:1px solid var(--line);margin-top:8px}
  .nav__mobile .label{margin-bottom:2px}
  .nav__mobile a:not(.btn){padding:8px 0;font-weight:500}
  .nav__mobile .btn{justify-self:start;margin-top:8px}
}
@media (max-width:640px){.footer-col button[data-cookie-open]{display:inline-flex;align-items:center;min-height:44px}}
