/* Web pública de OwnLicense. Copia de los mockups «SaaS · …» de docs/design/licencias.pen: variables
   `saas-*` y del tema claro, Inter y JetBrains Mono, escala de tamaños, radios y sombras del mockup.
   Solo tema claro (como el mockup). Móvil primero. Sin recursos de terceros: las fuentes van en
   /assets/fonts/ (licencia SIL OFL 1.1 junto a cada una). */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/jetbrains-mono-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Variables del mockup (modo claro). */
  --bg: #f5f6f8;
  --surface: #ffffff;
  --sunken: #eef0f3;
  --line: #e3e6ea;
  --text: #16181d;
  --text-2: #5b626d;
  /* text-muted del mockup es #8a919b (3,2:1 sobre blanco): no llega a AA en texto. Se oscurece lo justo
     para 4,5:1 sobre todos los fondos (blanco, #f5f6f8, #eef0f3 y el verde suave). */
  --muted: #666d77;
  /* Borde de los campos de formulario: 3:1 (WCAG 1.4.11). Es el text-muted original del mockup. */
  --line-strong: #8a919b;
  --brand: #0f766e;
  --brand-strong: #0b5852;
  --brand-soft: #e3f3f1;
  --on-brand: #ffffff;
  --ink: #10201f;
  --ok-bg: #e4f4e8;
  --ok: #1b6b34;
  --warn-bg: #fff1dc;
  --warn-fg: #8a4b00;
  --danger: #c62f2f;
  --danger-bg: #fce6e6;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius: 12px;
  --shadow-card: 0 4px 16px rgb(0 0 0 / 0.06);
  --shadow-featured: 0 8px 24px rgb(15 118 110 / 0.13);
  --gutter: 16px;
  --content: 1200px;
  --content-wide: 1312px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 40px; } }

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.55 var(--font);
  font-feature-settings: "cv11", "ss03";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-underline-offset: 0.18em; }
a:hover { color: var(--brand-strong); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
main:focus { outline: none; }
code { font-family: var(--mono); font-size: 0.92em; }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(2.125rem, 4vw + 1rem, 3.375rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.625rem, 1.6vw + 1.1rem, 2.25rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.022em; }
h3, .h3 { font-size: 1.125rem; font-weight: 700; letter-spacing: -0.01em; }
h4 { font-size: 0.9375rem; font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* Ancho del contenido del mockup: 1200 px (márgenes de 120 a 1440) y 1312 en la comparativa (64). Más
   ancho que 1440, centrado y sin estirarse. */
.wrap { width: 100%; max-width: calc(var(--content) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-wide { max-width: calc(var(--content-wide) + 2 * var(--gutter)); }
.narrow { max-width: calc(820px + 2 * var(--gutter)); }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.note { color: var(--muted); font-size: 0.8125rem; }
.center { text-align: center; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--surface); color: var(--text); padding: 10px 14px; border-radius: 8px; box-shadow: var(--shadow-card); }
.skip:focus { top: 12px; }

.ic { width: 20px; height: 20px; flex: none; }
.ic-sm { width: 16px; height: 16px; }

/* ---------------------------------------------------------------- cabecera */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 32px; min-height: 54px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 0.9375rem; min-width: 0; }
.brand:hover { color: var(--text); }
.brand-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-mark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--brand); color: var(--on-brand); flex: none; }
.brand-mark .ic { width: 16px; height: 16px; }
.prov { font-size: 0.625rem; font-weight: 700; letter-spacing: 0.03em; color: var(--warn-fg); background: var(--warn-bg); padding: 3px 10px; border-radius: 99px; white-space: nowrap; }
.main-nav { display: none; }
.main-nav ul { display: flex; gap: 4px; list-style: none; }
.main-nav a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--text-2); text-decoration: none; font-size: 0.875rem; font-weight: 500; }
.main-nav a:hover { color: var(--text); background: var(--sunken); }
.main-nav a[aria-current] { color: var(--brand); font-weight: 600; }
.header-actions { display: none; align-items: center; gap: 12px; margin-left: auto; }
@media (min-width: 1024px) {
  .header-inner { min-height: 66px; }
  .brand { font-size: 1rem; }
  .main-nav { display: block; }
  .header-actions { display: flex; }
  .nav-menu { display: none; }
}

/* Menú móvil: <details> sin JavaScript. */
.nav-menu { margin-left: auto; }
.nav-menu-btn { display: grid; place-items: center; width: 44px; height: 44px; margin-right: -10px; border-radius: 8px; color: var(--text); cursor: pointer; list-style: none; }
.nav-menu-btn::-webkit-details-marker { display: none; }
.nav-menu-btn::marker { content: ""; }
.nav-menu[open] .nav-menu-btn { background: var(--sunken); }
.nav-menu-panel { position: absolute; left: 0; right: 0; top: 100%; padding: 8px var(--gutter) 20px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px -12px rgb(16 24 40 / 0.18); display: grid; gap: 14px; }
.nav-menu-panel ul { list-style: none; }
.menu-links a { display: flex; align-items: center; min-height: 44px; padding: 0 4px; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 500; }
.menu-links a[aria-current] { color: var(--brand); font-weight: 600; }

/* Selector de idioma de la cabecera: <details> compacto («EN»). */
.lang-switch { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 10px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); color: var(--text-2); font-weight: 600; font-size: 0.8125rem; cursor: pointer; list-style: none; user-select: none; }
.lang-btn::-webkit-details-marker { display: none; }
.lang-btn::marker { content: ""; }
.lang-btn:hover, .lang-switch[open] > .lang-btn { color: var(--text); background: var(--sunken); }
.lang-chev { transition: transform 0.15s; }
.lang-switch[open] .lang-chev { transform: rotate(180deg); }
.lang-menu { position: absolute; z-index: 30; top: calc(100% + 6px); right: 0; min-width: 180px; margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-card); }
.lang-menu a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 8px; color: var(--text); text-decoration: none; font-weight: 500; font-size: 0.9375rem; }
.lang-menu a:hover { background: var(--sunken); }
.lang-menu a[aria-current] { color: var(--brand-strong); background: var(--brand-soft); font-weight: 600; }

/* Selector de idioma en botones (pie y menú móvil). */
.lang-links { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.lang-links ul { display: flex; gap: 8px; list-style: none; }
.lang-links a { display: grid; place-items: center; min-width: 44px; min-height: 32px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--text-2); text-decoration: none; font-size: 0.8125rem; font-weight: 500; }
.lang-links a:hover { border-color: var(--line-strong); color: var(--text); }
.lang-links a[aria-current] { background: var(--brand-soft); border-color: transparent; color: var(--brand-strong); font-weight: 600; }

/* ---------------------------------------------------------------- botones y etiquetas */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: var(--radius-sm); border: 1px solid transparent; font: inherit; font-size: 0.875rem; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background 0.15s, border-color 0.15s, color 0.15s; }
.btn .ic { width: 16px; height: 16px; }
.btn-lg { padding: 12px 22px; font-size: 0.9375rem; }
.btn-sm { min-height: 36px; padding: 8px 16px; }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-strong); color: var(--on-brand); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--line-strong); color: var(--text); }
.btn-white { background: #ffffff; color: var(--brand-strong); }
.btn-white:hover { background: var(--brand-soft); color: var(--brand-strong); }
.btn-outline-white { background: transparent; color: #ffffff; border-color: rgb(255 255 255 / 0.6); }
.btn-outline-white:hover { background: rgb(255 255 255 / 0.1); color: #ffffff; border-color: #ffffff; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.65; cursor: progress; }
.btn-white:focus-visible, .btn-outline-white:focus-visible { outline-color: #ffffff; }

.tag { display: inline-block; vertical-align: middle; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.01em; padding: 2px 8px; border-radius: 99px; background: var(--sunken); color: var(--text-2); border: 1px solid var(--line); line-height: 1.3; }
.badge-warn { display: inline-block; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; padding: 3px 10px; border-radius: 99px; background: var(--warn-bg); color: var(--warn-fg); }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 0.75rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: var(--brand-soft); color: var(--brand-strong); margin: 0 0 4px; }
.eyebrow { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand); margin: 0 0 10px; }

/* ---------------------------------------------------------------- secciones */
.section { padding: 36px 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
@media (min-width: 900px) { .section { padding: 96px 0; } }
.section-head { max-width: 760px; margin-bottom: 14px; }
.section-head h2 { margin-bottom: 10px; }
.lead { font-size: 1.0625rem; line-height: 1.5; color: var(--text-2); margin: 0; }
@media (min-width: 900px) { .section-head { margin-bottom: 40px; } }
.section-note { margin: 20px 0 0; color: var(--muted); font-size: 0.875rem; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
@media (min-width: 640px) { .card { padding: 28px; } }
.card h2.h3, .card h3 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.icon-tile { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; flex: none; background: var(--surface); border: 1px solid var(--line); color: var(--text); }
.icon-tile .ic { width: 20px; height: 20px; }
.icon-tile-soft { width: 36px; height: 36px; border-radius: 8px; border: 0; background: var(--brand-soft); color: var(--brand); }
.icon-tile-soft .ic { width: 18px; height: 18px; }

/* ---------------------------------------------------------------- hero */
.hero { background: var(--surface); border-bottom: 1px solid var(--line); padding: 36px 0; }
.hero-grid { display: grid; gap: 28px; align-items: center; }
.hero-copy { display: grid; gap: 18px; justify-items: start; }
.hero h1 { margin: 0; text-wrap: wrap; }
.hero-title2 { display: block; margin-top: 0.45em; color: var(--brand); font-size: 0.76em; line-height: 1.08; letter-spacing: -0.023em; }
@media (min-width: 1024px) { .hero-title2 { font-size: 0.815em; } }
.hero-lead { font-size: 1rem; line-height: 1.5; color: var(--text-2); max-width: 62ch; margin: 0; }
.hero-lead strong { color: var(--text); font-weight: 600; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.hero .cta-row { width: 100%; }
.hero .cta-row .btn { flex: 1 1 100%; }
.hero-notes { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--text-2); font-size: 0.8125rem; }
.hero-notes li { display: inline-flex; align-items: center; gap: 6px; }
.hero-notes .ic { width: 14px; height: 14px; color: var(--brand); }
@media (min-width: 640px) { .hero .cta-row .btn { flex: 0 0 auto; } }
@media (min-width: 1024px) {
  .hero { padding: 88px 0 96px; }
  .hero-grid { grid-template-columns: minmax(0, 616fr) minmax(0, 520fr); gap: 64px; }
  .hero-copy { gap: 24px; }
  .hero-lead { font-size: 1.125rem; line-height: 1.55; }
}

.hero-visual { margin: 0; display: grid; gap: 14px; }
.term { background: var(--ink); border-radius: var(--radius); padding: 16px 20px 20px; color: #e6f4f2; font-family: var(--mono); font-size: 0.8125rem; line-height: 1.3; display: grid; gap: 10px; }
.term p, .term ul { margin: 0; }
.term-dots { display: flex; gap: 6px; }
.term-dots span { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.term-dots span:nth-child(2) { background: #febc2e; }
.term-dots span:nth-child(3) { background: #28c840; }
.term-cap { color: #9fb8b4; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.75rem; }
.term-white { color: #ffffff; }
.term-warn { color: #febc2e; }
.term-list { list-style: none; display: grid; gap: 10px; color: #8ee6da; }
.term-line, .term-list li { overflow-wrap: anywhere; }
.pulse-card { display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-card); }
.pulse-card p { margin: 0; display: grid; gap: 2px; min-width: 0; }
.pulse-card strong { font-size: 0.875rem; font-weight: 600; }
.pulse-card span { font-size: 0.75rem; color: var(--muted); }
.pulse-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; background: var(--ok-bg); color: var(--ok); flex: none; }
.pulse-ic .ic { width: 18px; height: 18px; }
.hero-never { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-size: 0.8125rem; color: var(--text-2); }
.hero-never .ic { width: 16px; height: 16px; margin-top: 2px; color: var(--brand); }

.status-note { display: flex; gap: 10px; align-items: flex-start; margin: 28px 0 0; padding: 14px 20px; border-radius: var(--radius-md); background: var(--warn-bg); color: var(--warn-fg); font-size: 0.875rem; line-height: 1.5; }
.status-note .ic { width: 18px; height: 18px; margin-top: 1px; }
@media (min-width: 1024px) { .status-note { margin-top: 56px; } }

/* ---------------------------------------------------------------- franja «para qué productos» */
.strip { background: var(--bg); border-bottom: 1px solid var(--line); padding: 24px 0; }
.strip-grid { display: grid; gap: 14px; align-items: center; }
.strip-head h2 { font-size: 0.9375rem; font-weight: 700; line-height: 1.3; letter-spacing: 0; margin: 0 0 4px; }
.strip-head p { font-size: 0.8125rem; color: var(--muted); margin: 0; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: flex; gap: 7px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 7px 14px; font-size: 0.8125rem; }
.chip .ic { width: 15px; height: 15px; margin-top: 1px; color: var(--brand); }
.chip span { display: grid; }
.chip strong { font-weight: 500; }
.chip small { color: var(--muted); font-size: 0.75rem; }
.caution { display: grid; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 0.8125rem; color: var(--text-2); }
.caution h3 { display: flex; gap: 8px; align-items: center; font-size: 0.8125rem; margin: 0; }
.caution h3 .ic { width: 16px; height: 16px; color: var(--warn-fg); }
.caution ul { display: grid; gap: 6px; list-style: none; }
.caution strong { color: var(--text); }
@media (min-width: 1024px) {
  .strip { padding: 28px 0; }
  .strip-grid { grid-template-columns: 300px minmax(0, 1fr); gap: 28px; }
  .chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .caution ul { grid-template-columns: 1fr 1fr; gap: 24px; }
}

/* ---------------------------------------------------------------- pasos */
.steps { list-style: none; display: grid; gap: 14px; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.step { display: flex; flex-direction: column; gap: 16px; }
.step-top { display: flex; align-items: center; justify-content: space-between; color: var(--brand); }
.step-top .ic { width: 22px; height: 22px; }
.step-n { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: var(--on-brand); font-weight: 700; font-size: 0.875rem; flex: none; }
.step h3 { font-size: 1rem; letter-spacing: -0.01em; margin: 0; }
.step p { color: var(--text-2); font-size: 0.875rem; line-height: 1.5; margin: 0; }
@media (min-width: 860px) { .step h3 { font-size: 1.25rem; letter-spacing: -0.015em; } .step p { font-size: 0.9375rem; line-height: 1.55; } }
.step-foot { margin-top: auto !important; }
.step-foot code, .mcp-data code { display: inline-block; padding: 6px 10px; border-radius: var(--radius-sm); background: var(--sunken); color: var(--text-2); font-size: 0.75rem; line-height: 1.35; }

/* ---------------------------------------------------------------- qué vive dónde y funciones */
.split { display: grid; gap: 14px; align-items: start; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; gap: 24px; } }
.split-col { display: grid; gap: 18px; padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg); }
@media (min-width: 640px) { .split-col { padding: 32px; } }
.split-ours { background: var(--brand-soft); border-color: var(--brand); }
.section:not(.section-alt) .split-mine { background: var(--surface); }
.split-head { display: flex; gap: 12px; align-items: center; }
.split-head h3 { font-size: 1.25rem; margin: 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.split-head p { margin: 2px 0 0; font-size: 0.8125rem; color: var(--muted); }
.split-ours .icon-tile { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.ticks { list-style: none; display: grid; gap: 18px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks .ic { width: 18px; height: 18px; color: var(--ok); margin-top: 1px; }
.split-ours .ticks .ic { color: var(--brand); }
.ticks li > span { display: grid; gap: 2px; font-size: 0.875rem; line-height: 1.45; color: var(--text-2); }
.ticks strong { font-size: 0.9375rem; font-weight: 600; color: var(--text); line-height: 1.25; }
.never { display: flex; gap: 12px; align-items: flex-start; margin: 24px 0 0; padding: 14px 20px; border-radius: var(--radius-md); background: var(--sunken); color: var(--text-2); font-size: 0.875rem; line-height: 1.5; }
.never .ic { width: 18px; height: 18px; color: var(--brand); flex: none; }
.never strong { color: var(--text); font-weight: 600; }
@media (min-width: 900px) { .never { margin-top: 40px; } }

.feature-list { list-style: none; display: grid; gap: 14px; }
.feature-list li { padding-top: 14px; border-top: 1px solid var(--line); }
.split-ours .feature-list li { border-top-color: color-mix(in srgb, var(--brand) 25%, transparent); }
.feature-list h4 { margin: 0 0 2px; }
.feature-list p { margin: 0; color: var(--text-2); font-size: 0.875rem; line-height: 1.45; }
.mcp { margin-top: 40px; }
.mcp > h3 { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 1.25rem; }
.mcp > p { color: var(--text-2); max-width: 70ch; }
.mcp-levels { list-style: none; display: grid; gap: 14px; }
@media (min-width: 860px) { .mcp-levels { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.mcp-levels .card { display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.mcp-levels h3, .mcp-levels h4 { font-size: 1.125rem; font-weight: 700; margin: 6px 0 0; }
.mcp-levels p { font-size: 0.875rem; color: var(--text-2); margin: 0; line-height: 1.5; }
.mcp-levels .mcp-where { color: var(--muted); font-size: 0.8125rem; }
.mcp-data { margin-top: auto !important; padding-top: 6px; }

/* ---------------------------------------------------------------- nuestro modelo */
.head-row { display: grid; gap: 4px; margin-bottom: 14px; }
.head-row .section-head { margin: 0; max-width: none; }
.head-row .lead { max-width: 760px; }
.head-badge { margin: 0; }
@media (min-width: 900px) {
  .head-row { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px; margin-bottom: 40px; }
}
.plans { display: grid; gap: 12px; }
@media (min-width: 700px) { .plans { grid-template-columns: 1fr 1fr; gap: 20px; } }
@media (min-width: 1100px) { .plans { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.plan { display: flex; flex-direction: column; gap: 16px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
@media (min-width: 640px) { .plan { padding: 26px; } }
.plan h2, .plan h3 { margin: 0; font-size: 1.125rem; letter-spacing: -0.01em; line-height: 1.2; }
.plan-featured { border-color: var(--brand); box-shadow: var(--shadow-featured); }
.price { margin: 0; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price-n { font-size: 2.5rem; font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; }
.price-per { color: var(--muted); font-size: 0.8125rem; }
.plan-body { margin: 0; font-size: 0.875rem; line-height: 1.45; color: var(--text-2); padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.plan-body strong { color: var(--text); }
.plan .ticks { gap: 10px; }
.plan .ticks li { gap: 10px; }
.plan .ticks .ic { width: 15px; height: 15px; color: var(--brand); margin-top: 2px; }
.plan .ticks li > span { font-size: 0.875rem; color: var(--text); }
.plan-fee { background: var(--brand-soft); border-color: var(--brand); gap: 14px; }
.plan-fee .price-n { color: var(--brand-strong); }
.plan-fee .plan-body { color: var(--text); border: 0; padding: 0; }
.fee-box { background: var(--surface); border-radius: 8px; padding: 10px 12px; }
.fee-box h3, .fee-box h4 { margin: 0 0 3px; font-size: 0.8125rem; font-weight: 700; }
.fee-box p { margin: 0; font-size: 0.8125rem; line-height: 1.4; color: var(--text-2); }
.fee-date { margin: auto 0 0; font-size: 0.75rem; color: var(--muted); }
.need { margin-top: 32px; }
.need h3 { font-size: 0.9375rem; margin-bottom: 10px; }
.need ul { list-style: none; display: grid; gap: 8px; color: var(--muted); font-size: 0.8125rem; }
.need li { display: flex; gap: 8px; align-items: flex-start; }
.need .ic { width: 15px; height: 15px; color: var(--brand); margin-top: 2px; }
@media (min-width: 900px) { .need ul { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }

/* ---------------------------------------------------------------- comparativa */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); -webkit-overflow-scrolling: touch; }
.table-wrap:focus-visible { outline-offset: 3px; }
.cmp { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 760px; font-size: 0.75rem; line-height: 1.35; }
.cmp-full { min-width: 1180px; table-layout: fixed; }
.cmp-full col:first-child, .cmp-full th:first-child { width: 176px; }
.cmp caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cmp th, .cmp td { padding: 14px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.cmp tbody tr:last-child > * { border-bottom: 0; }
.cmp thead th { font-size: 0.8125rem; font-weight: 700; line-height: 1.25; background: var(--sunken); vertical-align: top; }
.cmp thead th small { display: block; margin-top: 3px; font-weight: 400; color: var(--muted); font-size: 0.6875rem; }
.cmp thead th:first-child { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); padding-left: 14px; }
.cmp th[scope="row"] { position: sticky; left: 0; z-index: 1; background: var(--surface); font-size: 0.8125rem; font-weight: 600; padding: 14px; min-width: 150px; }
.cmp thead th:first-child { position: sticky; left: 0; z-index: 2; }
.cmp td { color: var(--text-2); min-width: 110px; }
.cmp:not(.cmp-full) .ours { width: 200px; }
.cmp thead th.ours { background: var(--brand); color: #ffffff; }
.cmp thead th.ours small { color: #d5efec; }
.cmp td[data-ours] { background: var(--brand-soft); color: var(--brand-strong); font-weight: 600; box-shadow: inset 1px 0 0 var(--brand), inset -1px 0 0 var(--brand); }
.cmp td .ic-cell { display: block; width: 17px; height: 17px; margin-bottom: 4px; }
.c-y .ic-cell { color: var(--ok); }
.c-n .ic-cell { color: var(--muted); }
.cmp td[data-ours] .ic-cell { color: var(--brand); }
.c-u { color: var(--muted) !important; }
.cmp td[data-ours].c-u { color: var(--brand-strong) !important; }
.scroll-hint { margin: 8px 0 0; }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 12px 0 6px; color: var(--text-2); font-size: 0.75rem; }
.legend li { display: flex; gap: 6px; align-items: center; }
.legend .ic { width: 14px; height: 14px; }
.legend .ic-y { color: var(--ok); }
.legend .ic-n { color: var(--muted); }
.legend-u { color: var(--muted); }
#compare .note, .cmp-section .note { font-size: 0.75rem; }
.more-row { margin: 20px 0 0; }
.fee-note { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 0; padding: 12px 16px; background: var(--brand-soft); border: 1px solid var(--brand); border-radius: var(--radius-md); color: var(--text); font-size: 0.8125rem; line-height: 1.45; }
.fee-note .ic { width: 18px; height: 18px; color: var(--brand); }
.page-head { padding: 36px 0 24px; }
.page-head h1 { font-size: clamp(2rem, 2vw + 1.3rem, 2.375rem); letter-spacing: -0.022em; margin: 0 0 12px; }
.page-head .eyebrow { margin-bottom: 12px; }
.page-head .lead { max-width: 860px; }
.meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 12px 0 0; }
@media (min-width: 900px) { .page-head { padding: 56px 0 32px; } }
.cmp-section { padding-bottom: 16px; }
.cmp-more { padding: 24px 0 56px; }
@media (min-width: 900px) { .cmp-more { padding: 40px 0 80px; } }
.cmp-notes { display: grid; gap: 16px; margin-bottom: 24px; align-items: start; }
@media (min-width: 860px) { .cmp-notes { grid-template-columns: 1fr 1fr; gap: 20px; } }
.cmp-notes .card { display: grid; gap: 14px; }
.cmp-notes .h3 { margin: 0; }
.cmp-notes .h3 .ic { color: var(--text); }
.card-accent { background: var(--brand-soft); border-color: var(--brand); }
.card-accent .h3 .ic { color: var(--brand); }
.card-accent .ticks { gap: 14px; }
.card-accent .ticks .ic { width: 15px; height: 15px; color: var(--brand); margin-top: 3px; }
.card-accent .ticks li > span { font-size: 0.875rem; color: var(--text); }
.arrows { list-style: none; display: grid; gap: 14px; }
.arrows li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.875rem; line-height: 1.45; color: var(--text-2); }
.arrows .ic { width: 15px; height: 15px; color: var(--muted); margin-top: 2px; }
.weak { margin-bottom: 28px; }
.weak .h3 .ic { color: var(--warn-fg); }
.bullets { padding-left: 1.2em; display: grid; gap: 8px; color: var(--text-2); margin-bottom: 1.2em; font-size: 0.9375rem; }
.bullets li::marker { color: var(--brand); }
.cmp-prose { max-width: 860px; }
.cmp-prose .h3 { margin-top: 1.6em; }
.sources { overflow-wrap: anywhere; }

/* ---------------------------------------------------------------- trío */
.trio { display: grid; gap: 14px; }
@media (min-width: 980px) { .trio { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.trio .card { font-size: 0.9375rem; }
.trio .card .h3 { font-size: 1.125rem; }
.trio .card .h3 { flex-wrap: nowrap; align-items: flex-start; }
.trio .card .h3 .ic { color: var(--brand); margin-top: 2px; }
.trio p { color: var(--text-2); line-height: 1.55; }
.trio p:last-child { margin-bottom: 0; }
.trio .ticks { gap: 10px; }
.trio .ticks li > span { font-size: 0.875rem; }

/* ---------------------------------------------------------------- preguntas */
.faq-grid { display: grid; gap: 4px; }
.faq-head { margin: 0; }
.faq-head .lead { font-size: 0.9375rem; margin-top: 10px; }
@media (min-width: 900px) { .faq-grid { grid-template-columns: 360fr 776fr; gap: 64px; align-items: start; } .faq-head { position: sticky; top: 100px; } }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; gap: 12px; align-items: center; justify-content: space-between; min-height: 44px; padding: 14px 0; cursor: pointer; list-style: none; font-size: 0.9375rem; font-weight: 600; line-height: 1.25; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::marker { content: ""; }
.faq summary .ic { width: 18px; height: 18px; color: var(--muted); }
.faq-minus, .faq details[open] .faq-plus { display: none; }
.faq details[open] .faq-minus { display: block; }
.faq summary:focus-visible { border-radius: 4px; }
.faq details > div { padding: 0 0 18px; color: var(--text-2); font-size: 0.875rem; line-height: 1.5; }
.faq details > div p { margin: 0; }
@media (min-width: 900px) {
  .faq summary { padding: 20px 0; font-size: 1.0625rem; }
  .faq details[open] summary { padding-bottom: 8px; }
  .faq details > div { padding-bottom: 20px; font-size: 0.9375rem; line-height: 1.55; }
}

/* ---------------------------------------------------------------- llamada final */
.cta-section { padding: 24px 0 40px; }
@media (min-width: 900px) { .cta-section { padding: 72px 0; } }
.cta-band { display: grid; gap: 16px; padding: 24px 22px; border-radius: 16px; background: var(--brand); color: #ffffff; }
.cta-text h2 { color: #ffffff; font-size: 1.375rem; line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 8px; }
.cta-text p { color: #d5efec; margin: 0; font-size: 0.9375rem; line-height: 1.5; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-actions .btn { flex: 1 1 100%; }
@media (min-width: 640px) { .cta-actions .btn { flex: 0 0 auto; } }
@media (min-width: 1024px) {
  .cta-band { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 32px; padding: 48px 56px; }
  .cta-text h2 { font-size: 1.875rem; letter-spacing: -0.02em; }
  .cta-text p { font-size: 1rem; }
}

/* ---------------------------------------------------------------- formularios */
.form-page { padding: 36px 0 56px; }
@media (min-width: 1024px) { .form-page { padding: 72px 0 96px; } }
.form-grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 1024px) {
  .form-grid { grid-template-columns: minmax(0, 420fr) minmax(0, 708fr); gap: 72px; }
  .form-grid-contact { grid-template-columns: minmax(0, 400fr) minmax(0, 728fr); }
  .form-aside { position: sticky; top: 100px; }
}
.form-aside { display: grid; gap: 20px; justify-items: start; }
.form-aside h1 { font-size: clamp(2.125rem, 2vw + 1.4rem, 2.75rem); line-height: 1.08; letter-spacing: -0.027em; margin: 0; }
.form-aside .lead { font-size: 1.0625rem; line-height: 1.55; }
.next-title { font-size: 0.9375rem; font-weight: 700; margin: 8px 0 0; }
.next-steps { list-style: none; display: grid; gap: 14px; margin: -6px 0 0; }
.next-steps li { display: flex; gap: 12px; align-items: flex-start; }
.next-steps .num { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-strong); font-weight: 700; font-size: 0.75rem; flex: none; }
.next-steps p { margin: 0; color: var(--text-2); font-size: 0.875rem; line-height: 1.5; }
.data-note { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 14px; border-radius: 8px; background: var(--sunken); color: var(--text-2); font-size: 0.8125rem; line-height: 1.5; }
.data-note .ic { width: 16px; height: 16px; color: var(--brand); margin-top: 2px; }

.waitlist { display: grid; gap: 22px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); }
@media (min-width: 640px) { .waitlist { padding: 32px; } }
.field { display: grid; gap: 6px; margin: 0; min-width: 0; align-content: start; }
fieldset.field { border: 0; padding: 0; gap: 8px; }
.field-row { display: grid; gap: 22px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; gap: 16px; } }
label, legend { font-weight: 600; font-size: 0.8125rem; }
legend { padding: 0; margin-bottom: 8px; }
.req { color: var(--danger); margin-left: 2px; }
.hint { margin: 0; font-size: 0.75rem; line-height: 1.5; color: var(--text-2); }
.field label .muted, .field label .small { font-weight: 400; font-size: 0.75rem; color: var(--text-2); }
input[type="email"], input[type="text"], select, textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--text); font: inherit; font-size: 0.875rem;
}
textarea { resize: vertical; min-height: 96px; line-height: 1.5; padding: 12px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft), 0 0 0 4px var(--brand); }
.input-wrap, .select-wrap { position: relative; }
.input-wrap input { padding-left: 36px; }
.input-ic { position: absolute; left: 12px; top: 14px; width: 16px; height: 16px; color: var(--text-2); pointer-events: none; }
.select-wrap select { appearance: none; -webkit-appearance: none; padding-right: 36px; }
.select-ic { position: absolute; right: 12px; top: 14px; width: 16px; height: 16px; color: var(--text-2); pointer-events: none; }
[aria-invalid="true"], .field:has([aria-invalid="true"]) input { border-color: var(--danger) !important; }
fieldset[aria-invalid="true"] .checks, fieldset[aria-invalid="true"] .radios { outline: 2px solid var(--danger); outline-offset: 4px; border-radius: 8px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.check { display: inline-flex; align-items: flex-start; gap: 10px; font-weight: 400; font-size: 0.875rem; cursor: pointer; }
/* Opciones en píldora: la casilla nativa queda oculta a la vista (sigue siendo la que se pulsa y enfoca)
   y el ✓ aparece al marcarla, como en el mockup. */
.checks .check { position: relative; min-height: 36px; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--line-strong); border-radius: 99px; background: var(--surface); font-size: 0.8125rem; font-weight: 500; }
.checks .check input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.checks .check:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-strong); font-weight: 600; }
.checks .check:has(input:focus-visible) { outline: 3px solid var(--brand); outline-offset: 2px; }
.check-ic { display: none; width: 14px; height: 14px; }
.checks .check:has(input:checked) .check-ic { display: block; }
/* Motivo del contacto: radio visible dentro de la píldora (mockup «Contacto»). */
.checks-radio .check { border-radius: var(--radius-sm); padding: 8px 14px; }
.checks-radio .check input { position: static; width: 18px; height: 18px; opacity: 1; accent-color: var(--brand); flex: none; }
.radios { display: grid; gap: 8px; }
.radios .check { align-items: center; min-height: 28px; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--brand); flex: none; }
.radios .check input { width: 18px; height: 18px; }
.consent .check { font-size: 0.8125rem; line-height: 1.5; color: var(--text); }
.consent .check a { font-weight: 600; }
/* Errores: icono «!» dibujado con CSS (el texto lo pone site.js con textContent). */
.field-error { display: flex; gap: 6px; align-items: flex-start; margin: 0; color: var(--danger); font-size: 0.8125rem; font-weight: 500; line-height: 1.4; }
.field-error[hidden] { display: none; }
.field-error::before, .err-summary::before { content: "!"; display: inline-grid; place-items: center; flex: none; width: 14px; height: 14px; margin-top: 2px; border: 1.5px solid currentColor; border-radius: 50%; font-size: 9px; font-weight: 800; line-height: 1; }
.err-summary { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 8px; background: var(--danger-bg); color: var(--danger); font-size: 0.8125rem; font-weight: 600; line-height: 1.5; }
.err-summary::before { width: 16px; height: 16px; margin-top: 1px; font-size: 10px; }
.err-summary[hidden] { display: none; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.form-actions .btn { flex: 1 1 100%; }
@media (min-width: 640px) { .form-actions .btn { flex: 0 0 auto; } .form-actions .hint { flex: 1 1 200px; } }
.form-status { margin: -12px 0 0; font-weight: 600; font-size: 0.875rem; }
.form-status:empty { margin: -22px 0 0; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.turnstile { min-height: 65px; }

/* Contacto: canales y tiempos de respuesta. */
.channels { list-style: none; display: grid; gap: 14px; }
.channels li { display: flex; gap: 12px; align-items: flex-start; }
.channels span:not(.icon-tile) { display: grid; gap: 2px; }
.channels strong { font-size: 0.9375rem; font-weight: 600; overflow-wrap: anywhere; }
.channels strong a { text-decoration: none; }
.channels strong a:hover { text-decoration: underline; }
.channels small { color: var(--text-2); font-size: 0.8125rem; }
.times { width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.times-title { display: flex; align-items: center; gap: 8px; margin: 0; padding: 14px 16px; font-size: 0.875rem; font-weight: 700; border-bottom: 1px solid var(--line); }
.times-title .ic { width: 16px; height: 16px; }
.times dl { margin: 0; display: grid; }
.times dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 16px; font-size: 0.8125rem; }
.times dl > div + div { border-top: 1px solid var(--line); }
.times dt { color: var(--text-2); }
.times dd { margin: 0; font-weight: 600; text-align: right; }

/* ---------------------------------------------------------------- páginas de un mensaje y 404 */
.msg-page { padding: 32px 0 56px; }
@media (min-width: 900px) { .msg-page { padding: 96px 0 120px; } }
.msg-card { max-width: 560px; margin: 0 auto; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
@media (min-width: 640px) { .msg-card { padding: 40px; } }
.msg-card h1 { font-size: clamp(1.75rem, 2vw + 1.2rem, 2.25rem); letter-spacing: -0.022em; margin: 24px 0 20px; }
.msg-card > p:not(.msg-ic):not(.cta-row) { color: var(--text-2); font-size: 1rem; line-height: 1.55; }
.msg-ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); margin: 0; }
.msg-ic .ic { width: 24px; height: 24px; }
.msg-card .cta-row { margin-top: 24px; }

.nf-page { padding: 40px 0 56px; }
@media (min-width: 900px) { .nf-page { padding: 104px 0 120px; } }
.nf-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 1024px) { .nf-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 64px; padding-inline: calc(var(--gutter) + 40px); } }
.nf-copy { display: grid; gap: 16px; justify-items: start; }
.nf-copy h1 { font-size: clamp(2rem, 2vw + 1.3rem, 2.5rem); letter-spacing: -0.025em; margin: 0; }
.nf-copy .lead { max-width: 60ch; }
.nf-copy p { margin: 0; }
.big-code { font-size: clamp(5rem, 8vw + 2rem, 8.5rem); font-weight: 800; line-height: 1; letter-spacing: -0.04em; color: var(--brand); }
.nf-side { display: grid; gap: 12px; }
.term-sm { padding: 16px 18px; gap: 8px; }
.link-list { list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.link-list li + li { border-top: 1px solid var(--line); }
.link-list a { display: flex; align-items: center; gap: 14px; padding: 16px; color: var(--text); text-decoration: none; }
.link-list a:hover { background: var(--bg); }
.link-list a > span:not(.icon-tile) { display: grid; gap: 2px; flex: 1; }
.link-list strong { font-size: 0.9375rem; font-weight: 600; }
.link-list small { color: var(--text-2); font-size: 0.8125rem; }
.link-list .chev { width: 16px; height: 16px; color: var(--muted); }

/* ---------------------------------------------------------------- páginas legales */
.legal-head { background: var(--surface); border-bottom: 1px solid var(--line); padding: 28px 0 24px; }
@media (min-width: 900px) { .legal-head { padding: 56px 0 40px; } }
.legal-head-in { max-width: 1120px; margin: 0 auto; }
.crumb { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 0.8125rem; color: var(--text-2); }
.crumb a { font-weight: 600; text-decoration: none; }
.crumb .ic { width: 14px; height: 14px; color: var(--muted); }
.legal-head h1 { font-size: clamp(2rem, 2vw + 1.4rem, 2.75rem); letter-spacing: -0.027em; margin: 0 0 12px; }
.legal-meta { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--text-2); font-size: 0.8125rem; }
.legal-meta .ic { width: 14px; height: 14px; }
.legal-grid { display: grid; gap: 28px; padding-top: 28px; padding-bottom: 56px; max-width: calc(1120px + 2 * var(--gutter)); }
@media (min-width: 1024px) {
  .legal-grid { grid-template-columns: 260px minmax(0, 720px); gap: 72px; padding-top: 48px; padding-bottom: 96px; }
  .legal-side { position: sticky; top: 100px; align-self: start; }
}
.legal-side { display: grid; gap: 24px; }
.side-title { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); margin: 0 0 8px; }
.doc-list { list-style: none; display: grid; gap: 2px; }
.doc-list a { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 6px 10px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: 0.875rem; font-weight: 500; }
.doc-list a:hover { background: var(--sunken); }
.doc-list a[aria-current] { background: var(--brand-soft); color: var(--brand-strong); font-weight: 600; }
.doc-list .ic { width: 15px; height: 15px; color: var(--text-2); }
.doc-list a[aria-current] .ic { color: var(--brand); }
.toc ol { list-style: none; display: grid; border-left: 2px solid var(--line); counter-reset: toc; }
.toc a { display: block; padding: 6px 12px; color: var(--text-2); text-decoration: none; font-size: 0.8125rem; line-height: 1.4; }
.toc a:hover { color: var(--brand); }
.summary-box { display: flex; gap: 10px; align-items: flex-start; padding: 20px; margin-bottom: 32px; border-radius: var(--radius); background: var(--brand-soft); color: var(--text); }
.summary-box .ic { width: 16px; height: 16px; color: var(--brand); margin-top: 3px; }
.summary-box p { margin: 0; font-size: 0.9375rem; color: var(--text) !important; }
.legal-body.prose p, .legal-body.prose li { color: var(--text); }
.legal-foot { display: flex; justify-content: flex-end; margin: 40px 0 0; padding-top: 24px; border-top: 1px solid var(--line); }
.legal-foot a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 0.875rem; text-decoration: none; }
.legal-foot .ic { width: 16px; height: 16px; }

/* ---------------------------------------------------------------- texto largo (legales, blog, docs) */
.prose { font-size: 1rem; line-height: 1.65; }
.prose h1 { font-size: clamp(1.9rem, 3vw + 1rem, 2.6rem); }
.prose h2 { font-size: 1.5rem; letter-spacing: -0.015em; margin: 1.6em 0 0.6em; }
.prose section:first-of-type h2 { margin-top: 0; }
.prose ul { padding-left: 1.2em; margin-bottom: 1em; display: grid; gap: 6px; }
.prose li::marker { color: var(--brand); }
.prose p, .prose li { color: var(--text-2); }
.prose strong { color: var(--text); }
.prose section { scroll-margin-top: 84px; }
.prose table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); font-size: 0.875rem; margin-bottom: 1em; }
.prose th, .prose td { padding: 10px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose tr:last-child > * { border-bottom: 0; }
.prose thead th { background: var(--sunken); }
.prose .entry-list { list-style: none; display: grid; gap: 14px; padding: 0; }
.entry-list p { margin: 0; }
.simple-box { max-width: 560px; margin: 0 auto; }
.center-block { text-align: center; }
.center-block .cta-row { justify-content: center; }

/* ---------------------------------------------------------------- páginas informativas (acerca de, modelo, MCP, SDKs) */
.page-band { background: var(--surface); border-bottom: 1px solid var(--line); padding: 28px 0; }
@media (min-width: 900px) { .page-band { padding: 56px 0 44px; } }
.page-band h1 { font-size: clamp(2rem, 2.4vw + 1.2rem, 2.75rem); letter-spacing: -0.027em; margin: 0 0 14px; max-width: 900px; }
.page-band .lead { max-width: 780px; font-size: 1.0625rem; }
@media (min-width: 900px) { .page-band .lead { font-size: 1.125rem; } }
.page-band-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 12px; }
.page-band-row:empty { display: none; }
.page-band-row .eyebrow { margin: 0; }
.crumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; list-style: none; }
.crumb li { display: inline-flex; align-items: center; gap: 8px; }
.crumb span[aria-current] { color: var(--text-2); }
nav.crumb { margin: 0 0 16px; }
.status-inline { display: flex; gap: 8px; align-items: flex-start; margin: 18px 0 0; padding: 10px 14px; max-width: 780px; border-radius: var(--radius-md); background: var(--warn-bg); color: var(--warn-fg); font-size: 0.875rem; line-height: 1.45; }
.status-inline .ic { width: 16px; height: 16px; margin-top: 2px; }
.section-tight { padding-top: 28px; }
@media (min-width: 900px) { .section-tight { padding: 56px 0 80px; } }
.space-top { margin-top: 48px; }
.lead-narrow { max-width: 760px; margin-bottom: 20px; font-size: 1rem; }
.h2-sm { font-size: 1.375rem; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 0; }
.muted-lead { margin: 0; color: var(--text-2); font-size: 0.9375rem; line-height: 1.55; }
.ticks-compact { gap: 10px; }
.ticks-compact li > span { font-size: 0.9375rem; color: var(--text); }
.ic-inline { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; }
.info-grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 1024px) { .info-grid { grid-template-columns: minmax(0, 760px) minmax(0, 360px); gap: 80px; } .info-side { position: sticky; top: 100px; } }
.info-main h2 { font-size: 1.5rem; margin: 1.6em 0 0.5em; }
.info-main h2:first-child { margin-top: 0; }
.info-side { display: grid; gap: 16px; }
.info-side .card p { color: var(--text-2); font-size: 0.9375rem; }
.info-side .card p:last-child { margin-bottom: 0; }
.status-card { border-color: var(--warn-fg); background: var(--warn-bg); }
.status-card .h3 .ic { color: var(--warn-fg); }
.info-side .status-card p { color: var(--text); }
.inline-links { list-style: none; display: flex !important; flex-wrap: wrap; gap: 8px 20px !important; padding: 0 !important; }
.inline-links a { font-weight: 600; }
.principles { list-style: none; display: grid; gap: 14px; margin-top: 20px; }
@media (min-width: 700px) { .principles { grid-template-columns: 1fr 1fr; gap: 20px; } }
@media (min-width: 1100px) { .principles { grid-template-columns: repeat(4, minmax(0, 1fr)); } .principles-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.principles .card { display: grid; gap: 12px; align-content: start; }
.principles h3 { margin: 4px 0 0; }
.principles p { margin: 0; color: var(--text-2); font-size: 0.9375rem; line-height: 1.55; }
.data-table { width: 100%; min-width: 560px; border-collapse: separate; border-spacing: 0; font-size: 0.875rem; line-height: 1.45; }
.data-table th, .data-table td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.data-table tbody tr:last-child > * { border-bottom: 0; }
.data-table thead th { background: var(--sunken); font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-2); }
.data-table th[scope="row"] { font-weight: 600; }
.data-table td { color: var(--text-2); }
.data-table th code { white-space: nowrap; }
.table-simple + .note { margin-top: 10px; }
.cell-warn { color: var(--warn-fg) !important; font-weight: 600; }
.examples { list-style: none; display: grid; gap: 6px; }
.examples li { padding: 8px 12px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); font-size: 0.8125rem; color: var(--text-2); font-style: italic; }
.status-list { list-style: none; display: grid; gap: 14px; margin-top: 20px; }
@media (min-width: 700px) { .status-list { grid-template-columns: 1fr 1fr; gap: 20px; } }
@media (min-width: 1100px) { .status-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.status-list .card { display: grid; gap: 10px; align-content: start; }
.status-list h3 { margin: 0; font-size: 1rem; }
.status-list p { margin: 0; }
.state { display: inline-block; padding: 4px 10px; border-radius: 8px; font-size: 0.8125rem; font-weight: 600; line-height: 1.4; background: var(--sunken); color: var(--text-2); }
.state-ok { background: var(--ok-bg); color: var(--ok); }
.state-warn { background: var(--warn-bg); color: var(--warn-fg); }
.two-col { display: grid; gap: 32px; align-items: start; }
.two-col > * { min-width: 0; }
@media (min-width: 1100px) { .two-col { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; } }
.field-list { margin: 0 0 20px; display: grid; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.field-list > div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 10px 14px; font-size: 0.875rem; }
.field-list > div + div { border-top: 1px solid var(--line); }
.field-list dd { margin: 0; color: var(--text-2); }

/* Bloques de código (mockup: fondo #10201F, JetBrains Mono, «Copiar»). */
.code { margin: 0; background: var(--ink); border-radius: var(--radius-md); overflow: hidden; min-width: 0; }
.code-head { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 4px 8px 4px 16px; border-bottom: 1px solid rgb(255 255 255 / 0.08); color: #c9d6d4; font-size: 0.75rem; font-weight: 600; }
.code-note { padding: 2px 8px; border-radius: 99px; background: rgb(255 241 220 / 0.14); color: #ffd99a; font-size: 0.6875rem; }
.code pre, .doc-body pre, .post-body pre { margin: 0; padding: 16px 20px; overflow-x: auto; color: #d7e3e1; font: 400 0.8125rem/1.6 var(--mono); tab-size: 2; }
.code pre:focus-visible, .doc-body pre:focus-visible, .post-body pre:focus-visible { outline-offset: -3px; }
.code code, .doc-body pre code, .post-body pre code { font-size: inherit; background: none; padding: 0; color: inherit; }
.code-stack { display: grid; gap: 12px; }
.copy-btn { margin-left: auto; min-height: 32px; padding: 4px 10px; border: 0; border-radius: var(--radius-sm); background: #1c2e2d; color: #c9d6d4; font: 600 0.75rem var(--font); cursor: pointer; }
.copy-btn:hover { background: #24403e; color: #ffffff; }
.copy-btn:focus-visible { outline-color: #7fd4c8; }
.code-tabs { display: grid; gap: 12px; }
.code-tabs.is-tabs { gap: 0; background: var(--ink); border-radius: var(--radius-md); overflow: hidden; }
.code-tabs.is-tabs .code { border-radius: 0; }
.code-tabs.is-tabs .code-head > span:first-child { display: none; }
.tab-list { display: flex; flex-wrap: wrap; gap: 2px; padding: 4px 8px 0; border-bottom: 1px solid rgb(255 255 255 / 0.08); }
.tab-list button { min-height: 40px; padding: 8px 14px; border: 0; border-bottom: 2px solid transparent; background: none; color: #a9bcb9; font: 600 0.8125rem var(--font); cursor: pointer; }
.tab-list button[aria-selected="true"] { color: #ffffff; border-bottom-color: #7fd4c8; }
.tab-list button:focus-visible { outline-color: #7fd4c8; outline-offset: -3px; }
/* Prism (clases, sin estilos en línea). Contraste AA sobre #10201F. */
.token.comment, .token.prolog { color: #9fb4b1; font-style: italic; }
.token.keyword, .token.boolean, .token.important { color: #7fd4c8; }
.token.string, .token.attr-value, .token.char { color: #f2c894; }
.token.number, .token.constant { color: #f5a97f; }
.token.function, .token.class-name { color: #a8c7fa; }
.token.property, .token.attr-name, .token.tag { color: #9ad9a8; }
.token.punctuation, .token.operator { color: #c9d6d4; }

/* ---------------------------------------------------------------- documentación */
.chip-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 20px; font-size: 0.8125rem; color: var(--text-2); }
.chip-row ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.soft-chip { display: inline-flex; align-items: center; min-height: 32px; padding: 4px 12px; border-radius: 99px; background: var(--brand-soft); color: var(--brand-strong); font-weight: 600; font-size: 0.8125rem; text-decoration: none; }
.soft-chip:hover { background: #cfeae6; color: var(--brand-strong); }
.doc-cards { display: grid; gap: 16px; }
@media (min-width: 760px) { .doc-cards { grid-template-columns: 1fr 1fr; gap: 20px; } }
@media (min-width: 1100px) { .doc-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.doc-card { display: flex; flex-direction: column; gap: 12px; }
.doc-card .h3 { margin: 0; }
.doc-card > p { margin: 0; color: var(--text-2); font-size: 0.875rem; }
.doc-links { list-style: none; display: grid; margin-top: 4px; }
.doc-links li + li { border-top: 1px solid var(--line); }
.doc-links a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 8px 0; color: var(--text); text-decoration: none; font-size: 0.875rem; font-weight: 500; }
.doc-links a:hover { color: var(--brand); }
.doc-links .ic { width: 16px; height: 16px; color: var(--muted); }
.doc-links-2 span { display: grid; gap: 2px; }
.doc-links-2 small { color: var(--text-2); font-weight: 400; font-size: 0.8125rem; }
.doc-help { display: grid; gap: 10px; align-content: start; padding: 24px; border-radius: var(--radius); background: var(--ink); color: #c9d6d4; }
.doc-help .h3 { color: #ffffff; margin: 0; }
.doc-help p { margin: 0; font-size: 0.875rem; }
.doc-help a { color: #7fd4c8; font-weight: 600; }
.doc-help a:hover { color: #ffffff; }
.doc-help :focus-visible { outline-color: #7fd4c8; }

.docs-grid { display: grid; gap: 20px; padding-top: 20px; padding-bottom: 56px; }
@media (min-width: 1024px) { .docs-grid { grid-template-columns: 240px minmax(0, 1fr); gap: 48px; padding-top: 40px; padding-bottom: 80px; } }
@media (min-width: 1280px) { .docs-grid { grid-template-columns: 240px minmax(0, 736px) 200px; gap: 48px; justify-content: space-between; } }
.docs-side { min-width: 0; }
.docs-side-fixed { display: none; }
.docs-menu { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); }
.docs-menu summary { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; font-weight: 600; font-size: 0.875rem; cursor: pointer; list-style: none; }
.docs-menu summary::-webkit-details-marker { display: none; }
.docs-menu summary::marker { content: ""; }
.docs-menu nav { padding: 4px 10px 14px; }
@media (min-width: 1024px) {
  .docs-menu { display: none; }
  .docs-side-fixed { display: block; position: sticky; top: 90px; }
}
.docs-group + .docs-group { margin-top: 18px; }
.docs-group .side-title { margin-left: 10px; }
.docs-article { min-width: 0; }
.docs-article h1 { font-size: clamp(1.875rem, 1.6vw + 1.3rem, 2.5rem); letter-spacing: -0.025em; margin: 0 0 12px; overflow-wrap: anywhere; }
.doc-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0 0 20px; color: var(--text-2); font-size: 0.8125rem; }
.doc-meta span { display: inline-flex; align-items: center; gap: 6px; }
.callout { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 24px; padding: 12px 16px; border-radius: var(--radius-sm); font-size: 0.875rem; line-height: 1.5; }
.callout .ic { width: 18px; height: 18px; margin-top: 1px; }
.callout-warn { background: var(--warn-bg); color: var(--warn-fg); }
.doc-body h2, .post-body h2 { font-size: 1.5rem; margin: 1.8em 0 0.6em; scroll-margin-top: 90px; }
.doc-body h3, .post-body h3 { font-size: 1.125rem; margin: 1.5em 0 0.5em; scroll-margin-top: 90px; }
.doc-body > :first-child { margin-top: 0; }
.doc-body ol, .post-body ol { padding-left: 1.4em; margin-bottom: 1em; display: grid; gap: 6px; }
.doc-body li::marker, .post-body li::marker { color: var(--brand); }
.doc-body :not(pre) > code, .post-body :not(pre) > code, .info-main code, .lead code, .data-table code, .field-list code { padding: 1px 6px; border-radius: 5px; background: var(--sunken); color: var(--text); font-size: 0.86em; overflow-wrap: anywhere; }
.doc-body pre, .post-body pre { margin: 0 0 1.4em; border-radius: var(--radius-md); background: var(--ink); }
.code-wrap { margin: 0 0 1.4em; background: var(--ink); border-radius: var(--radius-md); overflow: hidden; }
.code-wrap .code-head { min-height: 36px; }
.code-wrap pre { margin: 0 !important; border-radius: 0 !important; }
.doc-body table, .post-body table { display: block; overflow-x: auto; }
@media (min-width: 760px) { .doc-body table, .post-body table { display: table; } }
.doc-body blockquote, .post-body blockquote { margin: 0 0 1.4em; padding: 12px 16px; border-radius: var(--radius-sm); background: #e8eefc; }
.doc-body blockquote p, .post-body blockquote p { margin: 0; color: var(--text); font-size: 0.9375rem; }
.doc-body blockquote strong { color: #183c9e; }
.prev-next { display: grid; gap: 12px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
@media (min-width: 640px) { .prev-next { grid-template-columns: 1fr 1fr; gap: 16px; } .pn-next { grid-column: 2; } }
.prev-next a { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); text-decoration: none; }
.prev-next a:hover { border-color: var(--brand); }
.prev-next small { color: var(--text-2); font-size: 0.75rem; }
.prev-next a span { color: var(--brand-strong); font-weight: 700; font-size: 0.9375rem; }
.pn-next { text-align: right; }
.docs-toc { display: none; }
@media (min-width: 1280px) { .docs-toc { display: block; position: sticky; top: 90px; align-self: start; } }

/* ---------------------------------------------------------------- blog */
.rss-link { margin: 16px 0 0; font-size: 0.875rem; }
.rss-link a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.post-featured { display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .post-featured { grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: 40px; padding: 24px; } }
.post-art { display: grid; place-items: center; min-height: 160px; border-radius: var(--radius-md); background: linear-gradient(135deg, #e3f3f1, #f1ecfb); color: var(--brand); }
.post-art .ic { width: 56px; height: 56px; stroke-width: 1.5; }
@media (min-width: 900px) { .post-art { min-height: 300px; } }
.post-featured-text { display: grid; gap: 14px; }
.post-featured-text .lead { font-size: 1rem; }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; }
.post-tags .pill { margin: 0; }
.post-title-lg { font-size: clamp(1.5rem, 1.2vw + 1.1rem, 1.875rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; margin: 0; }
.post-title-lg a, .post-card h3 a { color: var(--text); text-decoration: none; }
.post-title-lg a:hover, .post-card h3 a:hover { color: var(--brand); text-decoration: underline; }
.byline { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 0.875rem; color: var(--text-2); }
.byline strong, .byline strong a { color: var(--text); }
.avatar { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #ffffff; font-size: 0.6875rem; font-weight: 700; flex: none; }
.avatar-lg { width: 40px; height: 40px; font-size: 0.8125rem; }
.post-grid { list-style: none; display: grid; gap: 16px; margin-top: 24px; }
@media (min-width: 760px) { .post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.post-card h3 { font-size: 1.125rem; }
.post-card p { color: var(--text-2); font-size: 0.875rem; }
.post-head h1 { font-size: clamp(2rem, 2.6vw + 1.2rem, 2.75rem); }
.post-head .post-tags { margin-bottom: 14px; }
.post-head .lead { margin-bottom: 20px; }
.post-grid-body { display: grid; gap: 28px; padding-top: 32px; padding-bottom: 24px; }
@media (min-width: 1100px) { .post-grid-body { grid-template-columns: minmax(0, 720px) 240px; justify-content: center; gap: 80px; padding-top: 48px; } .post-toc { position: sticky; top: 90px; align-self: start; } }
@media (max-width: 1099px) { .post-toc { display: none; } }
.post-body { font-size: 1.0625rem; line-height: 1.7; min-width: 0; }
.post-body > p:first-child { font-size: 1.125rem; color: var(--text); }
.post-body blockquote { background: none; border-left: 4px solid var(--brand); border-radius: 0; padding: 4px 0 4px 20px; }
.post-body blockquote p { font-size: 1.25rem; font-weight: 600; color: var(--brand-strong); line-height: 1.45; }
.tag-list { list-style: none; display: flex !important; flex-wrap: wrap; gap: 8px !important; padding: 0 !important; margin-top: 28px !important; }
.post-foot { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.9375rem; }

/* ---------------------------------------------------------------- pie */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 36px 0 28px; font-size: 0.875rem; color: var(--text-2); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer p { margin: 0; }
.site-footer a { color: var(--text-2); text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.footer-grid { display: grid; gap: 28px 24px; grid-template-columns: 1fr 1fr; }
.footer-brand { grid-column: 1 / -1; display: grid; gap: 16px; justify-items: start; }
.footer-brand .brand { color: var(--text); font-size: 1rem; text-decoration: none; }
.footer-tagline { color: var(--text-2); }
.footer-title { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text); margin: 0 0 12px; }
.footer-col ul { display: grid; gap: 4px; }
.footer-col li a { display: inline-flex; align-items: center; gap: 8px; min-height: 25px; padding: 2px 0; }
.footer-bottom { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 12px; font-size: 0.8125rem; }
.footer-privacy { display: flex; gap: 8px; align-items: flex-start; color: var(--text); font-weight: 600; }
.footer-privacy .ic { width: 16px; height: 16px; flex: none; margin-top: 1px; color: var(--brand); }
.footer-short { display: flex; flex-wrap: wrap; gap: 0 4px; }
.footer-short li + li::before { content: "·"; margin: 0 6px 0 2px; color: var(--muted); }
.footer-short a { display: inline-block; padding: 4px 0; }
.footer-credits a { color: var(--text) !important; }
.footer-made { color: var(--muted); }
.heart { color: #e11d48; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) {
  .site-footer { padding: 56px 0 32px; }
  .footer-grid { grid-template-columns: 380fr 225fr 225fr 225fr; gap: 48px; }
  .footer-brand { grid-column: auto; align-content: start; }
  .footer-bottom { margin-top: 36px; grid-template-columns: 1fr auto; align-items: center; gap: 12px 24px; }
  .footer-bottom > :nth-child(odd) { grid-column: 1; }
  .footer-bottom > :nth-child(even) { grid-column: 2; justify-self: end; text-align: right; }
}
