/* Verius · tokens y componentes del sistema de diseño + extensión de la página pública */
@font-face{font-family:'IBM Plex Sans';src:url(/fonts/ibm-plex-sans-latin-400-normal.woff2) format('woff2');font-weight:400;font-style:normal;font-display:swap;}
@font-face{font-family:'IBM Plex Sans';src:url(/fonts/ibm-plex-sans-latin-500-normal.woff2) format('woff2');font-weight:500;font-style:normal;font-display:swap;}
@font-face{font-family:'IBM Plex Sans';src:url(/fonts/ibm-plex-sans-latin-600-normal.woff2) format('woff2');font-weight:600;font-style:normal;font-display:swap;}
@font-face{font-family:'IBM Plex Sans';src:url(/fonts/ibm-plex-sans-latin-400-italic.woff2) format('woff2');font-weight:400;font-style:italic;font-display:swap;}
@font-face{font-family:'IBM Plex Mono';src:url(/fonts/ibm-plex-mono-latin-400-normal.woff2) format('woff2');font-weight:400;font-style:normal;font-display:swap;}
@font-face{font-family:'IBM Plex Mono';src:url(/fonts/ibm-plex-mono-latin-500-normal.woff2) format('woff2');font-weight:500;font-style:normal;font-display:swap;}
@font-face{font-family:'Source Serif 4';src:url(/fonts/source-serif-4-latin-400-normal.woff2) format('woff2');font-weight:400;font-style:normal;font-display:swap;}
@font-face{font-family:'Source Serif 4';src:url(/fonts/source-serif-4-latin-600-normal.woff2) format('woff2');font-weight:600;font-style:normal;font-display:swap;}

:root,[data-theme="light"]{--bg:#f5f7f2;--surface:#ffffff;--surface-sunken:#e9ede4;--surface-hover:#eff2eb;--surface-selected:#dfece2;--line:#dbe0d5;--line-strong:#798275;--ink:#0f1f1b;--ink-muted:#4a5953;--brand:#0e3b34;--brand-hover:#0a2b26;--brand-soft:#e6ece8;--on-brand:#ffffff;--focus:#0f7a68;--manila:#e4e9cf;--manila-ink:#3f481a;--ok:#1b6b3a;--ok-soft:#e3f1e7;--risk:#8a4a00;--risk-soft:#fbeedb;--expired:#a3221b;--expired-soft:#fbe6e4;--expired-solid:#b3261e;--on-expired:#ffffff;--pending:#6a3d9e;--pending-soft:#efe7f8;--unknown:#565a5f;--unknown-soft:#edecea;--accent:#c6f24e;--accent-hover:#b3e238;--on-accent:#0f1f1b;--accent-ink:#6b9a0c;--hero-bg:#0b2722;--hero-ink:#f2f6ef;--hero-muted:#b5c4ba;--hero-line:#6d877c;--banda:#d8e6dc;--on-banda:#0f1f1b;--link:var(--brand);--shadow-1:0 1px 2px rgba(20,24,28,0.06);--shadow-2:0 6px 16px rgba(20,24,28,0.10), 0 1px 3px rgba(20,24,28,0.08);--shadow-3:0 20px 48px rgba(20,24,28,0.18);}
[data-theme="dark"]{--bg:#0a1513;--surface:#101e1b;--surface-sunken:#060e0c;--surface-hover:#192a26;--surface-selected:#1f3418;--line:#24342f;--line-strong:#6f8279;--ink:#ecf1ec;--ink-muted:#a3b3aa;--brand:#c6f24e;--brand-hover:#d9fa80;--brand-soft:#1a2925;--on-brand:#0f1f1b;--focus:#d9fa80;--manila:#2a321e;--manila-ink:#e0e9b5;--ok:#7fd39b;--ok-soft:#13291b;--risk:#f2b866;--risk-soft:#33240e;--expired:#ff9b91;--expired-soft:#3a1513;--expired-solid:#f28b82;--on-expired:#2a0b08;--pending:#c9a8f2;--pending-soft:#2a1c3d;--unknown:#a7adb3;--unknown-soft:#24272a;--accent:#c6f24e;--accent-hover:#d9fa80;--on-accent:#0f1f1b;--accent-ink:initial;--hero-bg:#10231f;--hero-ink:#ecf1ec;--hero-muted:#a3b3aa;--hero-line:#6f8279;--banda:#173a30;--on-banda:#ecf1ec;--link:var(--brand);--shadow-1:0 1px 2px rgba(0,0,0,0.5);--shadow-2:0 8px 24px rgba(0,0,0,0.55), 0 1px 3px rgba(0,0,0,0.5);--shadow-3:0 24px 56px rgba(0,0,0,0.65);}
:root{--space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-5:20px;--space-6:24px;--space-8:32px;--space-12:48px;--space-16:64px;--radius-xs:2px;--radius-sm:4px;--radius-md:6px;--radius-lg:10px;--radius-pill:999px;--control-sm:28px;--control-md:36px;--control-lg:44px;--row-compact:36px;--row-default:44px;--content-max:1280px;--form-max:680px;--font-sans:"IBM Plex Sans", "Segoe UI", system-ui, sans-serif;--font-serif:"IBM Plex Sans", "Segoe UI", system-ui, sans-serif;--font-brand:"Source Serif 4", Georgia, "Times New Roman", serif;--font-mono:"IBM Plex Mono", ui-monospace, Menlo, monospace;}


body { margin: 0; font-family: var(--font-sans); font-size: 14px; line-height: 20px; background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
.ct-num { font-variant-numeric: tabular-nums; }
.ct-mono { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0; }
.ct-overline { margin: 0; font-size: 11px; line-height: 16px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.ct-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ct-icon { flex: none; display: inline-block; vertical-align: middle; }
a, .ct-link { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
:where(button, input, select, a, [tabindex]):focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.ct-c-ok { color: var(--ok); } .ct-c-risk { color: var(--risk); } .ct-c-expired { color: var(--expired); } .ct-c-pending { color: var(--pending); } .ct-c-unknown { color: var(--unknown); }


.ct-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: var(--control-md); padding: 0 var(--space-4); border-radius: var(--radius-md); border: 1px solid transparent; font: inherit; font-size: 13px; line-height: 18px; font-weight: 500; cursor: pointer; text-align: center; white-space: normal; text-decoration: none; }
.ct-btn-sm { min-height: var(--control-sm); padding: 0 var(--space-3); }
.ct-btn-lg { min-height: var(--control-lg); padding: 0 var(--space-6); font-size: 14px; }
.ct-btn-icononly { padding: 0; width: var(--control-md); }
.ct-btn-sm.ct-btn-icononly { width: var(--control-sm); }
.ct-btn-primary { background: var(--brand); color: var(--on-brand); }
.ct-btn-primary:hover { background: var(--brand-hover); }
.ct-btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.ct-btn-secondary:hover { background: var(--surface-hover); }
.ct-btn-ghost { background: transparent; color: var(--ink); }
.ct-btn-ghost:hover { background: var(--surface-hover); }
.ct-btn-danger { background: var(--expired-solid); color: var(--on-expired); }
.ct-btn:disabled { opacity: .45; cursor: not-allowed; }


.ct-field { display: grid; gap: 6px; min-width: 0; }
.ct-label { font-size: 13px; line-height: 18px; font-weight: 500; color: var(--ink); }
.ct-req { color: var(--expired); } .ct-opt { color: var(--ink-muted); font-weight: 400; }
.ct-input { box-sizing: border-box; width: 100%; min-height: var(--control-md); padding: 7px var(--space-3); border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; line-height: 20px; }
.ct-input::placeholder { color: var(--ink-muted); }
.ct-input.ct-mono { font-family: var(--font-mono); font-size: 13px; }
.ct-field.is-error .ct-input { border-color: var(--expired); box-shadow: inset 0 0 0 1px var(--expired); }
.ct-select-wrap { position: relative; }
.ct-select { appearance: none; padding-right: 36px; }
.ct-select-chev { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: var(--ink-muted); pointer-events: none; }
.ct-hint { margin: 0; font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.ct-error { margin: 0; display: flex; gap: 6px; align-items: flex-start; font-size: 12px; line-height: 16px; color: var(--expired); font-weight: 500; }
.ct-error .ct-icon { margin-top: 1px; }
.ct-check { width: 16px; height: 16px; accent-color: var(--brand); margin: 0; }


.ct-radios { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: var(--space-2); }
.ct-question { padding: 0; font-size: 16px; line-height: 24px; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.ct-radio-list { display: grid; gap: var(--space-2); margin-top: var(--space-2); }
.ct-radio { position: relative; display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-3) var(--space-4); border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--surface); cursor: pointer; }
.ct-radio:hover { background: var(--surface-hover); }
.ct-radio input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ct-radio-dot { flex: none; width: 16px; height: 16px; margin-top: 2px; border-radius: var(--radius-pill); border: 1.5px solid var(--line-strong); box-sizing: border-box; background: var(--surface); }
.ct-radio.is-checked { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); background: var(--surface-selected); }
.ct-radio.is-checked .ct-radio-dot { border: 5px solid var(--brand); }
.ct-radio:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.ct-radio-text { display: grid; gap: 2px; }
.ct-radio-label { font-size: 14px; line-height: 20px; font-weight: 500; }
.ct-radio-hint { font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.ct-radios.is-error .ct-radio { border-color: var(--expired); }


.ct-badge { display: inline-flex; align-items: center; gap: var(--space-1); padding: 2px var(--space-2); border-radius: var(--radius-sm); font-size: 12px; line-height: 16px; font-weight: 600; border: 1px solid transparent; white-space: nowrap; }
.ct-badge-lg { padding: var(--space-1) 10px; font-size: 13px; line-height: 18px; }
.ct-badge-ok { background: var(--ok-soft); color: var(--ok); }
.ct-badge-risk { background: var(--risk-soft); color: var(--risk); }
.ct-badge-expired { background: var(--expired-solid); color: var(--on-expired); }
.ct-badge-pending { background: var(--pending-soft); color: var(--pending); }
.ct-badge-unknown { background: var(--unknown-soft); color: var(--unknown); border: 1px dashed var(--line-strong); }
.ct-tag { display: inline-flex; align-items: center; gap: var(--space-1); padding: 1px 6px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); font-size: 12px; line-height: 16px; font-weight: 500; color: var(--ink); background: var(--surface); white-space: nowrap; }
.ct-tag-brand { border-color: var(--line); color: var(--ink-muted); background: var(--surface-sunken); } 
.ct-tag-must { border-color: var(--ink); color: var(--ink); font-weight: 600; }
.ct-tag-should { border-style: dashed; color: var(--ink-muted); }
.ct-tag-link { font-size: 11px; line-height: 14px; padding: 0 5px; color: var(--ink-muted); }
.ct-tag-manila { border-color: transparent; background: var(--manila); color: var(--manila-ink); }
.ct-chip { display: inline-flex; align-items: center; gap: 6px; min-height: var(--control-sm); padding: 0 10px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.ct-chip:hover { background: var(--surface-hover); }
.ct-chip.is-selected { border-color: var(--brand); background: var(--surface-selected); box-shadow: inset 0 0 0 1px var(--brand); }
.ct-chip-count { color: var(--ink-muted); font-weight: 500; }


.ct-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.ct-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 20px; }
.ct-table th { position: sticky; top: 0; z-index: 1; background: var(--surface-sunken); text-align: left; font-size: 11px; line-height: 16px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); padding: 10px var(--space-3); border-bottom: 1px solid var(--line); white-space: nowrap; }
.ct-table td { padding: 0 var(--space-3); height: var(--row-default); border-bottom: 1px solid var(--line); vertical-align: middle; }
.ct-table tbody tr:last-child td { border-bottom: 0; }
.ct-table-wrap.is-compact td { height: var(--row-compact); }
.ct-table .is-right { text-align: right; }
.ct-table .is-nowrap { white-space: nowrap; }
.ct-table tbody tr:hover td { background: var(--surface-hover); }
.ct-table tbody tr.is-selected td { background: var(--surface-selected); }
.ct-table tr.is-clickable { cursor: pointer; }
.ct-th-check, .ct-td-check { width: 40px; padding-right: 0 !important; }
.ct-th-sort { all: unset; display: inline-flex; gap: var(--space-1); align-items: center; cursor: pointer; border-radius: var(--radius-xs); }
.ct-th-sort .ct-icon { opacity: .55; }
.ct-th-sort.is-sorted { color: var(--ink); } .ct-th-sort.is-sorted .ct-icon { opacity: 1; }
.ct-th-sort:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.ct-table-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; padding: var(--space-2) var(--space-3); border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-muted); }
.ct-cell-main { font-weight: 500; color: var(--ink); }
.ct-cell-sub { display: block; font-size: 12px; line-height: 16px; color: var(--ink-muted); }


.ct-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-1); min-width: 0; }
.ct-card-head { display: flex; gap: var(--space-4); align-items: flex-start; justify-content: space-between; flex-wrap: wrap; padding: var(--space-5) var(--space-6) 0; }
.ct-card-titles { display: grid; gap: 2px; min-width: 0; }
.ct-card-title { margin: 0; font-size: 18px; line-height: 26px; font-weight: 600; }
.ct-card-meta { margin: 0; font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.ct-card-actions { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.ct-card-body { padding: var(--space-4) var(--space-6) var(--space-6); }
.ct-card.is-flush .ct-card-body { padding: var(--space-4) 0 0; }
.ct-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--space-3); }
.ct-summary-item { all: unset; box-sizing: border-box; display: grid; gap: var(--space-1); padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); cursor: pointer; position: relative; }
.ct-summary-item:hover { background: var(--surface-hover); }
.ct-summary-item:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.ct-summary-item.is-active { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.ct-summary-top { display: flex; gap: 6px; align-items: center; font-size: 13px; line-height: 18px; font-weight: 600; }
.ct-sum-ok .ct-summary-top { color: var(--ok); } .ct-sum-risk .ct-summary-top { color: var(--risk); } .ct-sum-expired .ct-summary-top { color: var(--expired); } .ct-sum-pending .ct-summary-top { color: var(--pending); } .ct-sum-unknown .ct-summary-top { color: var(--unknown); }
.ct-summary-count { font-size: 28px; line-height: 34px; font-weight: 600; color: var(--ink); }
.ct-summary-note { font-size: 12px; line-height: 16px; color: var(--ink-muted); }


.ct-notice { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); border: 1px solid transparent; color: var(--ink); }
.ct-notice-ic { margin-top: 1px; }
.ct-notice-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.ct-notice-title { margin: 0; font-weight: 600; }
.ct-notice-body { font-size: 14px; line-height: 20px; }
.ct-notice-body p { margin: 0; }
.ct-notice-action { flex: none; align-self: center; }
.ct-notice-x { all: unset; cursor: pointer; color: var(--ink-muted); padding: 2px; border-radius: var(--radius-xs); }
.ct-notice-info { background: var(--brand-soft); } .ct-notice-info .ct-notice-ic { color: var(--brand); }
.ct-notice-success { background: var(--ok-soft); } .ct-notice-success .ct-notice-ic { color: var(--ok); }
.ct-notice-warning { background: var(--risk-soft); } .ct-notice-warning .ct-notice-ic { color: var(--risk); }
.ct-notice-danger { background: var(--expired-soft); border-color: var(--expired); } .ct-notice-danger .ct-notice-ic { color: var(--expired); }
.ct-notice-legal { background: var(--surface-sunken); border-color: var(--line); color: var(--ink-muted); padding: var(--space-2) var(--space-3); }
.ct-notice-legal .ct-notice-body { font-size: 12px; line-height: 16px; }
.ct-notice-legal .ct-notice-title { font-size: 12px; line-height: 16px; color: var(--ink); }
.ct-notice-legal .ct-notice-ic { width: 16px; height: 16px; }
.ct-notice.is-compact { padding: var(--space-2) var(--space-3); }


.ct-steps ol { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--space-2); }
.ct-step { flex: 1 1 0; min-width: 0; display: flex; gap: var(--space-2); align-items: flex-start; padding-top: var(--space-3); border-top: 3px solid var(--line); }
.ct-step.is-done { border-top-color: var(--brand); }
.ct-step.is-current { border-top-color: var(--brand); }
.ct-step.is-error { border-top-color: var(--expired); }
.ct-step-mark { flex: none; width: 24px; height: 24px; border-radius: var(--radius-pill); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; border: 1.5px solid var(--line-strong); color: var(--ink-muted); background: var(--surface); box-sizing: border-box; }
.ct-step.is-done .ct-step-mark { background: var(--hero-bg); border-color: var(--hero-bg); color: var(--accent); border-radius: var(--radius-sm); }
.ct-step.is-current .ct-step-mark { border: 2px solid var(--hero-bg); color: var(--accent); background: var(--hero-bg); border-radius: var(--radius-sm); }
.ct-step.is-error .ct-step-mark { background: var(--expired-solid); border-color: var(--expired-solid); color: var(--on-expired); }
.ct-step-text { display: grid; gap: 0; min-width: 0; }
.ct-step-label { font-size: 13px; line-height: 18px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.ct-step.is-upcoming .ct-step-label { color: var(--ink-muted); font-weight: 500; }
.ct-step-state { font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.ct-steps.is-vertical ol { flex-direction: column; gap: 0; }
.ct-steps.is-vertical .ct-step { border-top: 0; border-left: 3px solid var(--line); padding: var(--space-2) 0 var(--space-3) var(--space-3); }
.ct-steps.is-vertical .ct-step.is-done, .ct-steps.is-vertical .ct-step.is-current { border-left-color: var(--brand); }


.ct-drop { display: grid; justify-items: center; gap: var(--space-1); padding: var(--space-8) var(--space-6); border: 1.5px dashed var(--line-strong); border-radius: var(--radius-lg); background: var(--surface); text-align: center; }
.ct-drop.is-dragging { border-style: solid; border-color: var(--brand); background: var(--brand-soft); }
.ct-drop.is-error { border-color: var(--expired); }
.ct-drop-ic { width: 44px; height: 44px; border-radius: var(--radius-lg); display: grid; place-items: center; background: var(--manila); color: var(--manila-ink); margin-bottom: var(--space-2); }
.ct-drop-title { margin: 0; font-weight: 600; font-size: 14px; }
.ct-drop-hint { margin: 0 0 var(--space-3); font-size: 12px; color: var(--ink-muted); }
.ct-drop label.ct-btn { position: relative; }
.ct-doc { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: var(--space-3); align-items: center; padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--line); background: var(--surface); }
.ct-doc:last-child { border-bottom: 0; }
.ct-doc-ic { position: relative; width: 36px; height: 40px; border-radius: var(--radius-sm); background: var(--manila); color: var(--manila-ink); display: grid; place-items: center; }
.ct-doc-ic .ct-icon { margin-top: -6px; }
.ct-doc-ext { position: absolute; bottom: 3px; font-size: 9px; line-height: 10px; font-weight: 600; letter-spacing: .04em; }
.ct-doc-main { min-width: 0; }
.ct-doc-name { margin: 0; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-doc-meta { margin: 0; display: flex; gap: var(--space-2); flex-wrap: wrap; font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.ct-doc-meta .ct-mono { font-size: 12px; }
.ct-doc-links { margin: 4px 0 0; display: flex; gap: 4px; flex-wrap: wrap; align-items: center; color: var(--ink-muted); }
.ct-doc-exp { display: grid; justify-items: end; gap: 2px; }
.ct-doc-date { font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.ct-doc-actions { display: flex; gap: 2px; }
.ct-progress { margin-top: 6px; height: 4px; border-radius: var(--radius-pill); background: var(--line); overflow: hidden; }
.ct-progress span { display: block; height: 100%; background: var(--brand); }


.ct-criteria { display: grid; gap: var(--space-4); }
.ct-crit-group { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.ct-crit-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-3); padding: var(--space-3) var(--space-4); background: var(--surface-sunken); border-bottom: 1px solid var(--line); }
.ct-crit-title { margin: 0; font-size: 15px; line-height: 22px; font-weight: 600; }
.ct-crit-count { font-size: 13px; font-weight: 600; color: var(--ink-muted); }
.ct-crit-list { list-style: none; margin: 0; padding: 0; }
.ct-crit { display: grid; grid-template-columns: 44px minmax(0, 1fr) 96px 112px 136px; justify-items: start; gap: var(--space-3); align-items: center; padding: 10px var(--space-4); border-bottom: 1px solid var(--line); }
.ct-crit:last-child { border-bottom: 0; }
.ct-crit-id { font-size: 12px; color: var(--ink-muted); }
.ct-crit-ev { display: inline-flex; gap: 4px; align-items: center; font-size: 12px; color: var(--ink-muted); white-space: nowrap; }
@media (max-width: 720px) { .ct-crit { grid-template-columns: 44px minmax(0, 1fr); } .ct-crit > :nth-child(n+3) { grid-column: 2; justify-self: start; } }


.ct-empty { display: grid; justify-items: center; text-align: center; gap: var(--space-2); padding: var(--space-12) var(--space-6); max-width: 440px; margin: 0 auto; }
.ct-empty.is-compact { padding: var(--space-8) var(--space-4); }
.ct-empty-ic { width: 48px; height: 48px; border-radius: var(--radius-lg); display: grid; place-items: center; background: var(--surface-sunken); color: var(--ink-muted); border: 1px solid var(--line); margin-bottom: var(--space-2); }
.ct-empty-title { margin: 0; font-size: 16px; line-height: 24px; font-weight: 600; }
.ct-empty-body { margin: 0; color: var(--ink-muted); font-size: 14px; line-height: 20px; }
.ct-empty-actions { display: flex; gap: var(--space-2); flex-wrap: wrap; justify-content: center; margin-top: var(--space-3); }

.ct-theme { display: inline-flex; gap: 2px; padding: 2px; border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--surface-sunken); }
.ct-theme-opt { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 10px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 500; color: var(--ink-muted); cursor: pointer; white-space: nowrap; }
.ct-theme-opt:hover { color: var(--ink); }
.ct-theme-opt.is-on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line-strong); }
.ct-theme-opt:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.ct-theme.is-compact .ct-theme-opt { padding: 0 7px; }
.ct-theme.is-compact { align-self: flex-start; justify-self: start; }


.ct-legal { display: grid; gap: 2px; padding: var(--space-4) 0; border-top: 1px solid var(--line); font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.ct-legal p { margin: 0; }
.ct-legal-aff { color: var(--ink); font-weight: 500; }
.ct-legal-tr { font-weight: 400; color: var(--ink-muted); }


::selection { background: var(--accent); color: var(--on-accent); }


.ct-hero { background: var(--hero-bg); color: var(--hero-ink); }
.ct-hero h1, .ct-hero .ct-hero-title { margin: 0; font-family: var(--font-sans); font-size: 56px; line-height: 58px; font-weight: 600; letter-spacing: -.035em; color: var(--hero-ink); }
.ct-hero p, .ct-hero .ct-hero-sub { color: var(--hero-muted); }
.ct-hero .ct-btn-primary { background: var(--accent); color: var(--on-accent); }
.ct-hero .ct-btn-primary:hover { background: var(--accent-hover); }
.ct-hero .ct-btn-secondary { background: transparent; color: var(--hero-ink); border-color: var(--hero-line); }
.ct-hero .ct-btn-secondary:hover { background: transparent; border-color: var(--hero-ink); }
.ct-hero .ct-btn-ghost { color: var(--hero-ink); }
.ct-hero :where(button, input, select, a, [tabindex]):focus-visible { outline-color: var(--accent); }
.ct-hero a:not(.ct-btn) { color: var(--hero-ink); }
.ct-hero-num { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 6px; border-radius: var(--radius-sm); background: var(--hero-bg); color: var(--accent); font-family: var(--font-mono); font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; }

.ct-band { background: var(--banda); color: var(--on-banda); }
.ct-band .ct-hint, .ct-band .ct-cell-sub { color: var(--ink-muted); }

.ct-section-title { margin: 0; font-family: var(--font-serif); font-size: 40px; line-height: 44px; font-weight: 600; letter-spacing: -.025em; }
.ct-report-title { margin: 0; font-family: var(--font-brand); font-size: 28px; line-height: 34px; font-weight: 600; }


.ct-app { min-height: 100vh; display: grid; grid-template-columns: 224px minmax(0, 1fr); background: var(--bg); }
.ct-nav { border-right: 1px solid var(--line); background: var(--surface); padding: var(--space-4) var(--space-3); display: flex; flex-direction: column; gap: var(--space-1); }
.ct-wordmark { display: flex; align-items: baseline; gap: 6px; padding: var(--space-1) var(--space-2) var(--space-5); }
.ct-wordmark b { font-family: var(--font-brand); font-size: 20px; line-height: 24px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.ct-wordmark b i { font-style: normal; color: var(--brand); }
.ct-wordmark span { font-size: 11px; color: var(--ink-muted); }
.ct-nav a { display: flex; align-items: center; gap: var(--space-2); padding: 7px var(--space-2); border-radius: var(--radius-md); color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 500; }
.ct-nav a:hover { background: var(--surface-hover); }
.ct-nav a[aria-current="page"] { background: var(--surface-selected); color: var(--brand); }
.ct-nav .ct-nav-foot { display: grid; gap: var(--space-3); margin-top: auto; padding: var(--space-3) var(--space-2) 0; font-size: 11px; line-height: 16px; color: var(--ink-muted); }
.ct-main { padding: var(--space-6) var(--space-8) 0; min-width: 0; display: flex; flex-direction: column; gap: var(--space-5); max-width: var(--content-max); }
.ct-pagehead { display: flex; gap: var(--space-4); align-items: flex-end; justify-content: space-between; flex-wrap: wrap; }
.ct-pagehead h1 { margin: 0; font-size: 24px; line-height: 32px; font-weight: 600; letter-spacing: -.01em; }
.ct-pagehead p { margin: 2px 0 0; color: var(--ink-muted); }
.ct-toolbar { display: flex; gap: var(--space-2); align-items: center; flex-wrap: wrap; }
.ct-search { position: relative; flex: 1 1 240px; max-width: 340px; }
.ct-search .ct-icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--ink-muted); }
.ct-search .ct-input { padding-left: 32px; }
.ct-row { display: flex; gap: var(--space-2); align-items: center; flex-wrap: wrap; }
.ct-kv { display: grid; grid-template-columns: minmax(140px, max-content) 1fr; gap: var(--space-2) var(--space-6); margin: 0; }
.ct-kv dt { font-size: 11px; line-height: 20px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.ct-kv dd { margin: 0; }


@media print {
  @page { margin: 16mm 14mm; }
  :root, [data-theme] { --bg: #ffffff; --surface: #ffffff; --surface-sunken: #ffffff; --surface-hover: #ffffff; --surface-selected: #ffffff; --line: #9a9a9a; --line-strong: #000000; --ink: #000000; --ink-muted: #333333; --brand: #000000; --brand-soft: #ffffff; --on-brand: #ffffff; --link: #000000; --ok: #000000; --risk: #000000; --expired: #000000; --pending: #000000; --unknown: #000000; --ok-soft: #ffffff; --risk-soft: #ffffff; --expired-soft: #ffffff; --pending-soft: #ffffff; --unknown-soft: #ffffff; --expired-solid: #000000; --on-expired: #ffffff; --manila: #ffffff; --manila-ink: #000000; --shadow-1: none; }
  body { font-size: 10.5pt; line-height: 1.45; }
  .ct-app { display: block; }
  .ct-nav, .ct-noprint, .ct-theme, .ct-btn, .ct-doc-actions, .ct-notice-x { display: none !important; }
  .ct-main { padding: 0; max-width: none; }
  .ct-card, .ct-table-wrap, .ct-notice, .ct-summary-item { box-shadow: none; border: 1px solid #000; break-inside: avoid; }
  .ct-badge { border: 1px solid #000 !important; background: #fff !important; color: #000 !important; }
  .ct-badge-expired { background: #000 !important; color: #fff !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .ct-badge-unknown { border-style: dashed !important; }
  .ct-table th { position: static; border-bottom: 1.5px solid #000; }
  .ct-table thead { display: table-header-group; }
  .ct-table tr { break-inside: avoid; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
  .ct-legal { border-top: 1px solid #000; }
  .ct-printonly { display: block !important; }
}
.ct-printonly { display: none; }

/* Verius — página pública.
   Extiende el sistema de diseño (tokens.css + bundle.css, sin tocarlos) para una página que se lee:
   más escala, más aire y ritmo de fondos. Ningún color fuera de los tokens. */

/* ---------- base de la página ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
[id] { scroll-margin-top: 84px; }
body { font-size: 17px; line-height: 1.6; background: var(--bg); color: var(--ink); text-rendering: optimizeLegibility; }
@media (min-width: 1024px) { body { font-size: 18px; } }
img, svg { max-width: 100%; }
p, figure { margin: 0; }
h1, h2, h3 { margin: 0; color: inherit; }
a { color: var(--link); }
::selection { background: var(--brand-soft); color: var(--ink); }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 32px; } }

.skip { position: absolute; left: 16px; top: -100px; z-index: 100; padding: 10px 16px; border-radius: var(--radius-md); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-2); }
.skip:focus { top: 12px; }

/* ---------- ritmo de secciones ---------- */
.sec { padding: 72px 0; }
@media (min-width: 900px) { .sec { padding: 112px 0; } }
.sec-bg { background: var(--bg); }
.sec-surface { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-manila { background: var(--manila); }
.sec-band { --band-bg: var(--brand); --band-ink: var(--on-brand); background: var(--band-bg); color: var(--band-ink); }
/* En oscuro, «brand» es un petróleo claro: la banda usa el petróleo profundo del mismo tema para no deslumbrar. */
[data-theme="dark"] .sec-band { --band-bg: var(--brand-soft); --band-ink: var(--ink); }
.sec-band a { color: inherit; }
.sec-band :where(a, button, input, [tabindex]):focus-visible { outline-color: var(--band-ink); }
.sec-band .panel, .sec-band .ct-card { color: var(--ink); }
.sec-band .panel a, .sec-band .ct-card a { color: var(--link); }
.sec-band .panel :where(a, button, input):focus-visible, .sec-band .ct-card :where(a, button, input):focus-visible { outline-color: var(--focus); }

.sec-head { display: grid; gap: 16px; max-width: 760px; margin-bottom: 48px; }
.sec-head.is-center { margin-left: auto; margin-right: auto; text-align: center; justify-items: center; }
.sec-title { font-family: var(--font-serif); font-weight: 600; font-size: clamp(30px, 2.4vw + 18px, 40px); line-height: 1.15; letter-spacing: -0.01em; text-wrap: balance; }
.sec-sub { font-size: 1.1em; line-height: 1.55; color: var(--ink-muted); max-width: 62ch; text-wrap: pretty; }
.sec-band .sec-sub { color: inherit; }
.sub-title { font-family: var(--font-serif); font-weight: 600; font-size: clamp(22px, 1vw + 16px, 26px); line-height: 1.25; margin: 56px 0 20px; }
.small { font-size: 14px; line-height: 1.5; color: var(--ink-muted); }
.sec-band .small { color: inherit; }

/* cita a la regla: letra pequeña, enlazada a la fuente */
.cite { font-size: 13px; line-height: 1.4; color: var(--ink-muted); white-space: normal; }
.cite a { color: inherit; text-decoration-color: var(--line-strong); white-space: nowrap; }
.cite a:hover { color: var(--link); }
.sec-band .cite { color: inherit; }
.sec-band .cite a { text-decoration-color: currentColor; }
.sec-band .panel .cite { color: var(--ink-muted); }

/* enlace a una fuente externa */
.src-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; text-underline-offset: 3px; }
.src-link .ct-icon { flex: none; }
.links-row { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 32px; }

/* ---------- botones de la página ---------- */
.btn-xl { min-height: 52px; padding: 0 28px; font-size: 16px; line-height: 20px; font-weight: 600; border-radius: var(--radius-md); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- barra superior ---------- */
.top { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.is-scrolled { border-bottom-color: var(--line); }
.top-in { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; flex: none; text-decoration: none; }
/* Logo de Verius (src/static/brand/): el nombre ya viene trazado, no lleva fuente. Claro sobre fondo claro,
   oscuro sobre fondo oscuro; cambia con [data-theme]. */
.logo { display: block; width: auto; height: 30px; }
.logo-oscuro { display: none; }
[data-theme="dark"] .logo-claro { display: none; }
[data-theme="dark"] .logo-oscuro { display: block; }
.nav { display: none; gap: 4px; margin-left: 8px; }
.nav a { padding: 8px 12px; border-radius: var(--radius-md); color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { background: var(--surface-hover); }
.top-r { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.lang { display: none; align-items: center; gap: 2px; font-size: 14px; }
.lang a { padding: 6px 8px; border-radius: var(--radius-sm); color: var(--ink-muted); text-decoration: none; font-weight: 500; }
.lang a:hover { color: var(--ink); }
.lang a[aria-current="true"] { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.lang .sep { color: var(--line-strong); }
.theme-btn { all: unset; box-sizing: border-box; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-md); color: var(--ink-muted); cursor: pointer; }
.theme-btn:hover { background: var(--surface-hover); color: var(--ink); }
.theme-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.theme-btn .i-sun { display: none; }
[data-theme="dark"] .theme-btn .i-sun { display: block; }
[data-theme="dark"] .theme-btn .i-moon { display: none; }
.top-cta { display: none; }
.menu-btn { all: unset; box-sizing: border-box; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-md); color: var(--ink); cursor: pointer; }
.menu-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.menu-btn .i-x { display: none; }
.menu-btn[aria-expanded="true"] .i-x { display: block; }
.menu-btn[aria-expanded="true"] .i-menu { display: none; }
.mobile-menu { border-top: 1px solid var(--line); background: var(--bg); padding: 12px 16px 24px; display: grid; gap: 4px; }
.mobile-menu[hidden] { display: none; }
.mobile-menu a.m-link { padding: 12px 8px; color: var(--ink); text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--line); }
.mobile-menu .m-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.mobile-menu .lang { display: inline-flex; }
.mobile-menu .ct-btn { width: 100%; margin-top: 12px; }
@media (min-width: 720px) { .top-cta { display: inline-flex; } }
@media (min-width: 1080px) {
  .nav, .lang { display: inline-flex; }
  .menu-btn, .mobile-menu { display: none !important; }
}

/* ---------- encabezado ---------- */
.hero { padding: 48px 0 80px; }
@media (min-width: 900px) { .hero { padding: 72px 0 112px; } }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1080px) { .hero-grid { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 48px; } }
.hero-txt { display: grid; gap: 24px; max-width: 640px; }
.hero h1 { font-family: var(--font-serif); font-weight: 600; font-size: clamp(40px, 4.2vw + 18px, 68px); line-height: 1.04; letter-spacing: -0.02em; text-wrap: balance; }
.hero-sub { font-size: clamp(18px, .4vw + 16px, 21px); line-height: 1.55; color: var(--ink-muted); text-wrap: pretty; }
.hero .btn-row { margin-top: 8px; }
.hero-note { font-size: 14px; line-height: 1.5; color: var(--ink-muted); max-width: 52ch; }

/* ---------- ventana de maqueta (producto con datos de ejemplo) ---------- */
.mock { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-2); overflow: hidden; font-size: 14px; line-height: 20px; color: var(--ink); min-width: 0; }
.mock-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-sunken); }
.mock-bar .brand-sm { display: inline-flex; flex: none; }
.mock-bar .logo { height: 18px; }
.mock-bar .mock-path { font-size: 12px; color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.mock-bar .ct-tag { margin-left: auto; flex: none; }
.mock-body { padding: 18px; }
.mock-cap { font-size: 13px; line-height: 18px; color: var(--ink-muted); margin-top: 12px; }

/* encabezado: cuestionario que se contesta solo */
.hm { font-size: 15px; line-height: 22px; }
.hm-body { display: grid; gap: 20px; padding: 24px; }
@media (min-width: 620px) { .hm-body { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }
.hm-q { display: grid; gap: 12px; align-content: start; min-height: 252px; }
.hm-progress { font-size: 12px; color: var(--ink-muted); font-weight: 500; }
.hm-bar { height: 4px; border-radius: var(--radius-pill); background: var(--line); overflow: hidden; }
.hm-bar span { display: block; height: 100%; width: 100%; background: var(--brand); transform-origin: left; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.hm-qblock { display: grid; gap: 4px; }
.hm-qblock[hidden] { display: none; }
.hm .ct-radio { cursor: default; }
.hm .ct-radio:hover { background: var(--surface); }
.hm .ct-radio.is-checked:hover { background: var(--surface-selected); }
.hm-res { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg); padding: 16px; display: grid; gap: 12px; align-content: start; }
.hm-res-final { display: grid; gap: 8px; }
.hm-res-final[hidden], .hm-res-pending[hidden] { display: none; }
.hm-det { display: flex; gap: 12px; align-items: center; }
.hm-det-mark { width: 44px; height: 44px; flex: none; border-radius: var(--radius-lg); display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.hm-det-type { font-family: var(--font-serif); font-size: 22px; line-height: 28px; font-weight: 600; }
.hm-res-pending { display: grid; gap: 8px; justify-items: start; color: var(--ink-muted); font-size: 13px; }
.hm-ans { list-style: none; margin: 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.hm-ans li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; font-size: 13px; line-height: 18px; }
.hm-ans li[hidden] { display: none; }
.hm-ans .k { color: var(--ink-muted); }
.hm-ans .v { font-weight: 500; }
.is-pop { animation: pop .45s cubic-bezier(.2,.8,.2,1) both; }
@keyframes pop { from { opacity: .2; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- la regla y su fecha (banda) ---------- */
.rule-grid { display: grid; gap: 48px; }
@media (min-width: 1000px) { .rule-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 64px; align-items: start; } .rule-intro { position: sticky; top: 108px; } }
.rule-intro { display: grid; gap: 20px; }
.rule-intro .sec-title { font-size: clamp(32px, 2.6vw + 18px, 44px); }
.timeline { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; right: 0; top: 7px; height: 2px; background: currentColor; opacity: .5; }
.timeline li { position: relative; padding-top: 28px; padding-right: 12px; display: grid; gap: 2px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 0; width: 16px; height: 16px; border-radius: var(--radius-pill); background: var(--band-bg); border: 2px solid currentColor; box-sizing: border-box; }
.timeline li:last-child::before { background: currentColor; }
.timeline .d { font-family: var(--font-serif); font-size: 24px; line-height: 1.2; font-weight: 600; }
.timeline .l { font-size: 15px; }
.panel { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-2); padding: 28px; }
@media (min-width: 640px) { .panel { padding: 40px; } }
.panel h3 { font-family: var(--font-serif); font-size: 24px; line-height: 1.25; font-weight: 600; margin-bottom: 20px; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.check-list li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 8px; padding: 16px 0; border-top: 1px solid var(--line); }
.check-list li:first-child { border-top: 0; padding-top: 0; }
.check-list .n { font-family: var(--font-mono); font-size: 13px; line-height: 1.9; color: var(--ink-muted); }
.blocks { display: grid; gap: 16px; margin-top: 28px; }
@media (min-width: 720px) { .blocks { grid-template-columns: 1fr 1fr; } }
.block { border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-sunken); padding: 20px; display: grid; gap: 8px; align-content: start; }
.block h4 { margin: 0; font-size: 16px; line-height: 1.4; font-weight: 600; }
.block p { font-size: 15px; line-height: 1.55; }

/* ---------- tarjetas de texto ---------- */
.cards { display: grid; gap: 16px; }
@media (min-width: 760px) { .cards.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cards.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .cards.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; display: grid; gap: 12px; align-content: start; }
.sec-surface .tcard { background: var(--bg); }
.tcard h3 { font-size: 19px; line-height: 1.3; font-weight: 600; }
.tcard p { font-size: 16px; line-height: 1.55; }
.tcard.is-unknown { border: 1px dashed var(--line-strong); }
.tcard-ic { width: 40px; height: 40px; border-radius: var(--radius-md); display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.tcard.is-unknown .tcard-ic { background: var(--unknown-soft); color: var(--unknown); }
.notes { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 14px; max-width: 900px; }
.notes li { position: relative; padding-left: 20px; font-size: 16px; line-height: 1.6; }
.notes li::before { content: ""; position: absolute; left: 0; top: .7em; width: 6px; height: 6px; border-radius: var(--radius-pill); background: var(--line-strong); }

/* ---------- cómo funciona ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; }
.step { display: grid; gap: 28px; padding: 32px 0; border-top: 1px solid var(--line); }
@media (min-width: 960px) { .step { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; padding: 48px 0; } }
.step-txt { display: grid; gap: 16px; align-content: start; }
.step-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px 16px; }
.step-n { font-family: var(--font-serif); font-size: 44px; line-height: 1; font-weight: 600; color: var(--brand); font-variant-numeric: tabular-nums; }
.step h3 { font-family: var(--font-serif); font-size: clamp(24px, 1vw + 18px, 30px); line-height: 1.2; font-weight: 600; }
.step ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.step li { position: relative; padding-left: 20px; }
.step li::before { content: ""; position: absolute; left: 0; top: .72em; width: 6px; height: 6px; border-radius: var(--radius-pill); background: var(--line-strong); }
.tag-live { font-size: 13px; line-height: 18px; padding: 2px 8px; }
.tag-next { font-size: 13px; line-height: 18px; padding: 2px 8px; border-style: dashed; color: var(--ink-muted); background: transparent; }
.lbl { font-weight: 600; }

/* filas de maqueta */
.mrow { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.mrow:first-child { border-top: 0; }
.mrow .qn { font-family: var(--font-mono); font-size: 12px; color: var(--ink-muted); }
.mrow .t { min-width: 0; }
.mrow .t b { font-weight: 500; display: block; }
.mrow .t small { display: block; font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.mock-split { display: grid; gap: 14px; }
.mini-res { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--bg); }
.mock .ct-doc { padding: 12px 0; background: transparent; }
.mock .ct-doc:last-child { border-bottom: 0; }
.mock .ct-doc { grid-template-columns: auto minmax(0, 1fr) auto; }
.mock .ct-kv { grid-template-columns: minmax(120px, max-content) minmax(0, 1fr); }
.mock .ct-kv dd { min-width: 0; }
.declare-client { margin: 12px 0 16px; }
.duo-kv { margin-top: 12px; }
.mock-alert { margin-top: 14px; }
.declare-route { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.declare-v { font-family: var(--font-mono); font-weight: 500; font-size: 15px; }
.declare-n { display: block; font-size: 12px; line-height: 16px; color: var(--ink-muted); margin-top: 2px; }
.mock .ct-table td { height: auto; padding-top: 10px; padding-bottom: 10px; }
.mock .ct-table-wrap { border-radius: var(--radius-md); }
.col-next { color: var(--ink-muted); }
.col-next .ct-tag { font-size: 11px; }
@media (max-width: 560px) { .mock .ct-kv { grid-template-columns: 1fr; gap: 2px 0; } .mock .ct-kv dd { margin-bottom: 8px; } .hide-sm { display: none; } }

/* ---------- próximamente ---------- */
.soon-grid { display: grid; gap: 48px; }
@media (min-width: 1000px) { .soon-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; } }
.state-list { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 12px; }
.state-list li { display: grid; grid-template-columns: 172px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.state-list .ct-badge { justify-self: start; }
@media (max-width: 480px) { .state-list li { grid-template-columns: 1fr; gap: 4px; } }
.badge-neutral { background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); }
.dots { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.dots li { position: relative; padding-left: 20px; }
.dots li::before { content: ""; position: absolute; left: 0; top: .72em; width: 6px; height: 6px; border-radius: var(--radius-pill); background: var(--line-strong); }
.legal-line { margin-top: 28px; padding: 12px 16px; border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--surface-sunken); font-size: 14px; line-height: 1.5; color: var(--ink-muted); }

/* ---------- qué hay hoy ---------- */
.cols3 { display: grid; gap: 16px; }
@media (min-width: 900px) { .cols3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.col-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; display: grid; gap: 16px; align-content: start; }
.col-card h3 { font-family: var(--font-serif); font-size: 24px; line-height: 1.25; font-weight: 600; }
.col-card .dots { font-size: 16px; line-height: 1.5; }

/* ---------- frontera ---------- */
.border-grid { display: grid; gap: 48px; }
@media (min-width: 1000px) { .border-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; } }
.border-txt { display: grid; gap: 20px; }
.duo { display: grid; gap: 28px; }
@media (min-width: 620px) { .duo > div:first-child { margin-right: 56px; } .duo > div:last-child { margin-left: 56px; } }
.duo-lbl { font-size: 13px; font-weight: 600; color: var(--ink-muted); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }

/* ---------- confianza (manila: la carpeta del expediente) ---------- */
.trust-grid { display: grid; gap: 48px; }
@media (min-width: 1000px) { .trust-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 64px; align-items: start; } }
.trust-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.trust-list li { padding: 14px 0; border-top: 1px solid var(--line-strong); }
.trust-list li:first-child { border-top: 0; padding-top: 0; }
.sec-manila .sub-title { margin-top: 48px; }
.sources { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
/* El expediente impreso: el papel siempre sale en claro (se fija el tema claro en el elemento). */
.paper { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-3); padding: 32px; font-size: 14px; line-height: 20px; transform: rotate(-0.6deg); }
@media (prefers-reduced-motion: reduce) { .paper { transform: none; } }
.paper-title { font-family: var(--font-brand); font-size: 26px; line-height: 32px; font-weight: 600; margin: 4px 0 16px; }
.paper .ct-kv { gap: 8px 20px; }
.paper .ct-kv dd { min-width: 0; overflow-wrap: anywhere; }
.paper-sign { margin-top: 28px; padding-top: 6px; border-top: 1px solid var(--ink); font-size: 12px; color: var(--ink-muted); }
.paper-foot { margin-top: 24px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; line-height: 16px; color: var(--ink); font-weight: 500; }
@media (max-width: 560px) { .paper { padding: 22px; } .paper .ct-kv { grid-template-columns: 1fr; gap: 0; } .paper .ct-kv dd { margin-bottom: 10px; } }

/* ---------- precio ---------- */
.price { display: grid; gap: 20px; justify-items: center; text-align: center; max-width: 720px; margin: 0 auto; }

/* ---------- formulario (banda) ---------- */
.form-grid { display: grid; gap: 40px; }
@media (min-width: 1000px) { .form-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; } }
.form-intro { display: grid; gap: 20px; }
.form-intro .sec-title { font-size: clamp(32px, 2.6vw + 18px, 44px); }
.form-card { background: var(--surface); color: var(--ink); border-radius: var(--radius-lg); box-shadow: var(--shadow-3); padding: 24px; }
@media (min-width: 640px) { .form-card { padding: 40px; } }
.form-card form { display: grid; gap: 20px; }
.form-2 { display: grid; gap: 20px; }
@media (min-width: 640px) { .form-2 { grid-template-columns: 1fr 1fr; } }
.form-card .ct-label { font-size: 15px; line-height: 20px; }
.form-card .ct-input { min-height: var(--control-lg); font-size: 16px; }
.form-card .ct-radios legend { font-size: 15px; line-height: 20px; font-weight: 500; padding: 0; margin-bottom: 8px; }
.form-card .ct-radio-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 0; }
.form-card .ct-radio { padding: 10px 14px; }
.ct-radio:has(input:checked) { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); background: var(--surface-selected); }
.ct-radio:has(input:checked) .ct-radio-dot { border: 5px solid var(--brand); }
.form-note { font-size: 14px; line-height: 1.5; color: var(--ink); font-weight: 500; }
.form-priv { font-size: 13px; line-height: 1.5; color: var(--ink-muted); }
.form-card .btn-xl { width: 100%; }
@media (min-width: 640px) { .form-card .btn-xl { width: auto; } }
.form-msg[hidden] { display: none; }

/* ---------- preguntas (acordeón) ---------- */
.faq-grid { display: grid; gap: 40px; }
@media (min-width: 1000px) { .faq-grid { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 64px; align-items: start; } .faq-grid .sec-head { position: sticky; top: 108px; } }
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq h3 { font-size: inherit; }
.faq-q { all: unset; box-sizing: border-box; width: 100%; display: grid; grid-template-columns: 36px minmax(0, 1fr) 24px; gap: 12px; align-items: start; padding: 20px 0; cursor: pointer; font-weight: 600; font-size: 18px; line-height: 1.4; color: var(--ink); }
.faq-q:hover .faq-t { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-strong); }
.faq-q:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--radius-sm); }
.faq-n { font-family: var(--font-mono); font-size: 13px; line-height: 25px; color: var(--ink-muted); font-weight: 400; }
.faq-ic { color: var(--ink-muted); margin-top: 3px; transition: transform .2s; }
.faq-q[aria-expanded="true"] .faq-ic { transform: rotate(180deg); }
.faq-a { padding: 0 36px 24px 48px; color: var(--ink); font-size: 17px; line-height: 1.6; max-width: 70ch; }
.faq-a[hidden] { display: none; }

/* ---------- pie ---------- */
.foot { background: var(--bg); border-top: 1px solid var(--line); padding: 48px 0 40px; }
.foot-in { display: grid; gap: 24px; }
.foot .brand .logo { height: 28px; }
.foot-lines { display: grid; gap: 6px; font-size: 14px; line-height: 1.5; }
.foot-aff { font-weight: 500; color: var(--ink); }
.foot-lines p:not(.foot-aff) { color: var(--ink-muted); }
.foot-row { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; font-size: 14px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot-links a { color: var(--ink-muted); }
.foot .lang { display: inline-flex; }

/* ---------- entradas suaves al bajar ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- formulario en panel lateral (función de tema --f-cajon; inerte si el tema no la prende) ---------- */
.drawer { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(580px, 100vw); height: 100dvh; max-width: none; max-height: none; padding: 0; border: 0; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-3); overflow-y: auto; overscroll-behavior: contain; }
.drawer::backdrop { background: color-mix(in srgb, var(--ink) 55%, transparent); }
[data-theme="dark"] .drawer::backdrop { background: color-mix(in srgb, var(--surface-sunken) 75%, transparent); }
.drawer[open] { animation: drawer-in .35s cubic-bezier(.2,.8,.2,1); }
@keyframes drawer-in { from { transform: translateX(48px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 24px 28px; background: var(--surface-sunken); border-bottom: 1px solid var(--line); }
.drawer-titles { display: grid; gap: 6px; }
.drawer-title { font-family: var(--font-serif); font-size: 26px; line-height: 1.15; font-weight: 600; letter-spacing: -0.01em; }
.drawer-sub { font-size: 15px; line-height: 1.5; color: var(--ink-muted); }
.drawer-x { all: unset; box-sizing: border-box; flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-md); cursor: pointer; color: inherit; }
.drawer-x:hover { background: var(--surface-hover); }
.drawer-x:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
/* Dentro del panel el formulario se ve de inmediato: no espera la entrada suave de cuando se baja hasta él */
.drawer .form-card, .js .drawer .form-card.reveal { box-shadow: none; border-radius: 0; padding: 28px; opacity: 1; transform: none; transition: none; }
.drawer .form-2 { grid-template-columns: 1fr; }
@media (min-width: 520px) { .drawer .form-2 { grid-template-columns: 1fr 1fr; } }
.drawer .form-card .btn-xl { width: 100%; }
html.drawer-open { overflow: hidden; }

/* ---------- barra de acción en teléfono (función de tema --f-barra; inerte si el tema no la prende) ---------- */
.action-bar { display: none; }
@media (max-width: 719px) {
  html.f-barra .action-bar { display: block; position: fixed; z-index: 80; left: 0; right: 0; bottom: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: var(--shadow-3); transform: translateY(110%); visibility: hidden; transition: transform .3s cubic-bezier(.2,.8,.2,1), visibility 0s .3s; }
  html.f-barra .action-bar.is-on { transform: none; visibility: visible; transition: transform .3s cubic-bezier(.2,.8,.2,1), visibility 0s; }
  html.f-barra .action-bar .ct-btn { width: 100%; }
  html.f-barra body { padding-bottom: 88px; }
}

/* ---------- «Cómo funciona» con el producto fijo (función de tema --f-pasos; solo escritorio) ----------
   site.js pone data-fijo en .steps y data-activo="1..4" según el paso que está a media pantalla.
   Las cuatro ventanas comparten la columna derecha y se quedan fijas; solo se ve la del paso activo.
   El texto no se atenúa (se conserva el contraste): el paso activo se marca con una regla a la izquierda. */
@media (min-width: 960px) {
  .steps[data-fijo] { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 0 56px; }
  .steps[data-fijo] > .step { display: contents; }
  .steps[data-fijo] .step-txt { grid-column: 1; min-height: 62vh; align-content: center; padding: 40px 0 40px 28px; border-left: 3px solid var(--line); transition: border-color .3s; }
  .steps[data-fijo] .step:nth-child(1) .step-txt { grid-row: 1; }
  .steps[data-fijo] .step:nth-child(2) .step-txt { grid-row: 2; }
  .steps[data-fijo] .step:nth-child(3) .step-txt { grid-row: 3; }
  .steps[data-fijo] .step:nth-child(4) .step-txt { grid-row: 4; }
  .steps[data-fijo] .step > .mock { grid-column: 2; grid-row: 1 / span 4; align-self: start; position: sticky; top: calc(50vh - 170px); opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .35s, transform .35s, visibility 0s .35s; }
  .steps[data-fijo][data-activo="1"] .step:nth-child(1) > .mock,
  .steps[data-fijo][data-activo="2"] .step:nth-child(2) > .mock,
  .steps[data-fijo][data-activo="3"] .step:nth-child(3) > .mock,
  .steps[data-fijo][data-activo="4"] .step:nth-child(4) > .mock { opacity: 1; visibility: visible; transform: none; transition: opacity .35s, transform .35s, visibility 0s; }
  .steps[data-fijo][data-activo="1"] .step:nth-child(1) .step-txt,
  .steps[data-fijo][data-activo="2"] .step:nth-child(2) .step-txt,
  .steps[data-fijo][data-activo="3"] .step:nth-child(3) .step-txt,
  .steps[data-fijo][data-activo="4"] .step:nth-child(4) .step-txt { border-left-color: var(--ink); }
}

/* ---------- solo para revisión (?revision) ---------- */
.ph { display: inline-block; margin: 0 4px; padding: 0 6px; border: 1px dashed var(--risk); border-radius: var(--radius-sm); background: var(--risk-soft); color: var(--risk); font-family: var(--font-mono); font-size: 12px; line-height: 18px; vertical-align: middle; }
.ph[hidden] { display: none; }
.rev-bar { position: fixed; z-index: 90; left: 50%; bottom: 16px; transform: translateX(-50%); width: min(720px, calc(100% - 24px)); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 14px; border-radius: var(--radius-lg); background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); box-shadow: var(--shadow-3); font-size: 13px; line-height: 18px; }
.rev-bar[hidden] { display: none; }
.rev-bar b { font-weight: 600; }
.rev-bar .rev-group { display: inline-flex; align-items: center; gap: 8px; }
.rev-bar .rev-group[hidden] { display: none; }
.rev-bar .rev-opts { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.rev-bar button { all: unset; box-sizing: border-box; min-width: 32px; height: 30px; padding: 0 10px; text-align: center; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); cursor: pointer; font-weight: 600; }
.rev-bar button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.rev-bar button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.rev-bar .rev-note { color: var(--ink-muted); }

/* ---------- páginas simples (legal, 404) ---------- */
.simple { min-height: 60vh; padding: 72px 0 96px; }
.simple .sec-head { margin-bottom: 32px; }
.simple-box { max-width: 760px; display: grid; gap: 24px; }
.simple-sec { border-top: 1px solid var(--line); padding-top: 24px; display: grid; gap: 12px; }
.simple-sec h2 { font-family: var(--font-serif); font-size: 26px; line-height: 1.25; font-weight: 600; }

@media print {
  .top, .rev-bar, .mobile-menu, .skip, .hm, .form-card { display: none !important; }
  .sec-band { background: #fff; color: #000; }
}

/* ====================================================================================================
   Diseño oficial de la página: B6 · Tinta y verde claro (elegido por Benjamín el 2026-11-14).
   Nació como tema de prueba (B2 → B3 → B4 → B6) y aquí queda para los dos idiomas. Solo pantalla: en papel
   manda la hoja de impresión de arriba. Cada selector lleva :root delante para pesar lo mismo que pesaba
   como tema ([data-tema] …) y ganarle a las reglas base. Va en CSS plano (sin anidar) para que lo lean
   también navegadores anteriores a 2024. Colores: solo variables; los tokens nuevos están en tokens.css.
   La lima (--accent) va solo sobre fondo oscuro: nunca texto sobre claro ni etiqueta de estado.
   ==================================================================================================== */
@media screen {
:root .hero h1 { letter-spacing: -0.035em; line-height: 1.02; }
:root .sec-title { letter-spacing: -0.025em; }

/* Encabezado oscuro: el producto, en claro, resalta encima */
:root .hero { background: var(--hero-bg); color: var(--hero-ink); }
:root .hero-sub, :root .hero-note { color: var(--hero-muted); }
:root .hero .btn-row .ct-btn-primary { background: var(--accent); color: var(--on-accent); }
:root .hero .btn-row .ct-btn-primary:hover { background: var(--accent-hover); }
:root .hero .btn-row .ct-btn-secondary { background: transparent; color: var(--hero-ink); border-color: var(--hero-line); }
:root .hero .btn-row .ct-btn-secondary:hover { border-color: var(--hero-ink); }
:root .hero .btn-row .ct-btn:focus-visible { outline-color: var(--accent); }
:root .hero .hm { border-color: var(--hero-line); }

/* Bandas (la regla y el formulario) en verde claro; en oscuro, musgo profundo */
:root .sec-band { --band-bg: var(--banda); --band-ink: var(--on-banda); }

/* Números de los cuatro pasos */
:root .step-n { background: var(--hero-bg); color: var(--accent); font-size: 28px; line-height: 1; padding: 7px 12px; border-radius: var(--radius-md); letter-spacing: -0.02em; }

:root ::selection { background: var(--accent); color: var(--on-accent); }

/* Las etiquetas de marca («Live today», «U.S. IOR», «Foreign IOR») van neutras: en esta familia el verde
   es de la marca, así que una etiqueta verdosa se confundiría con el estado «Vigente». El verde pálido
   queda solo para los estados. */
:root .ct-tag-brand { color: var(--ink); border-color: var(--line-strong); }

/* Confianza: el expediente en papel sobre tinta oscura, en lugar del fondo salvia */
:root .sec-manila { background: var(--hero-bg); color: var(--hero-ink); }
:root .sec-manila .sec-sub, :root .sec-manila .cite { color: var(--hero-muted); }
:root .sec-manila .trust-list li { border-top-color: var(--hero-line); }
:root .sec-manila .dots li::before { background: var(--hero-line); }
:root .sec-manila .src-link { color: var(--accent); }
:root .sec-manila a:focus-visible { outline-color: var(--accent); }

/* ================= Pasada 1 · El producto como escenario =================
   El cuestionario que se contesta solo es lo más convincente de la página y estaba en una ventanita.
   Ahora el texto va arriba a todo lo ancho y el producto, en tamaño real, debajo, montado sobre la
   banda de la regla: se lee, se ve el resultado y da profundidad. */
:root[lang] .hero { padding: 64px 0 0; }
:root[lang] .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 56px; }
:root[lang] .hero-txt { max-width: 900px; gap: 28px; }
:root[lang] .hero h1 { font-size: clamp(44px, 4.6vw + 14px, 84px); }
:root[lang] .hero-sub { max-width: 60ch; }
:root[lang] .hero .hm { position: relative; z-index: 2; width: 100%; margin: 0 0 -140px; font-size: 16px; line-height: 24px; box-shadow: var(--shadow-3); }
:root[lang] .hero .mock-bar { padding: 14px 20px; }
:root[lang] .hero .mock-bar .logo { height: 22px; }
:root[lang] .hero .mock-bar .mock-path { font-size: 14px; }
:root[lang] .hero .hm-body { padding: 36px; gap: 36px; }
:root[lang] .hero .hm-q { min-height: 300px; gap: 16px; }
:root[lang] .hero .hm-progress { font-size: 14px; }
:root[lang] .hero .ct-question { font-size: 22px; line-height: 30px; }
:root[lang] .hero .ct-radio { padding: 14px 18px; }
:root[lang] .hero .ct-radio-label { font-size: 17px; line-height: 24px; }
:root[lang] .hero .hm-res { padding: 24px; gap: 16px; }
:root[lang] .hero .hm-det-mark { width: 56px; height: 56px; }
:root[lang] .hero .hm-det-type { font-size: 30px; line-height: 36px; }
:root[lang] .hero .hm-res p, :root[lang] .hero .hm-ans li { font-size: 15px; line-height: 22px; }
:root[lang] .hero .hm-res .cite { font-size: 14px; }
/* La banda de la regla deja lugar al producto que se monta encima. En la vista previa puede haber entre los
   dos la banda de datos de los temas arena (oculta salvo en esos temas): por eso el :is(). */
:root[lang] :is(.hero, .hero + .banda-datos) + .sec-band { padding-top: calc(140px + 96px); }
@media (max-width: 760px) {
  :root[lang] .hero .hm { margin-bottom: -72px; }
  :root[lang] .hero .hm-body { padding: 20px; gap: 20px; }
  :root[lang] .hero .hm-q { min-height: 260px; }
  :root[lang] .hero .ct-question { font-size: 19px; line-height: 26px; }
  :root[lang] :is(.hero, .hero + .banda-datos) + .sec-band { padding-top: calc(72px + 64px); }
}

/* ================= Pasada 2 · Pedir la demostración sin perder el lugar =================
   El formulario está a 12 pantallas del encabezado: cada «Request a walkthrough» arrastraba al broker
   ~10,400 px hacia abajo. Ahora abre el mismo formulario en un panel lateral y, al cerrarlo, el broker
   sigue donde iba. La función vive en site.js; aquí se prende. */
:root[lang] { --f-cajon: 1; }
:root[lang] .drawer-head { background: var(--hero-bg); color: var(--hero-ink); border-bottom-color: var(--hero-line); }
:root[lang] .drawer-sub { color: var(--hero-muted); }
:root[lang] .drawer-x:hover { background: color-mix(in srgb, var(--hero-ink) 12%, transparent); }
:root[lang] .drawer-x:focus-visible { outline-color: var(--accent); }

/* ================= Pasada 3 · Cuatro pasos, un solo registro (escritorio) =================
   La sección repetía cuatro veces el mismo renglón con cuatro ventanas sueltas. Ahora una sola ventana
   del producto se queda fija y cambia al paso que el broker está leyendo; los números 01-04 marcan el
   avance (activo en tinta con número en lima, los demás en contorno). La función vive en site.js. */
:root[lang] { --f-pasos: 1; }
@media (min-width: 960px) {
  :root[lang] .steps[data-fijo] .step-n { background: transparent; color: var(--ink-muted); box-shadow: inset 0 0 0 1.5px var(--line-strong); transition: background-color .3s, color .3s; }
  :root[lang] .steps[data-fijo][data-activo="1"] .step:nth-child(1) .step-n,
:root[lang] .steps[data-fijo][data-activo="2"] .step:nth-child(2) .step-n,
:root[lang] .steps[data-fijo][data-activo="3"] .step:nth-child(3) .step-n,
:root[lang] .steps[data-fijo][data-activo="4"] .step:nth-child(4) .step-n { background: var(--hero-bg); color: var(--accent); box-shadow: none; }
  :root[lang] .steps[data-fijo] .step > .mock { box-shadow: var(--shadow-3); }
}

/* ================= B3 · Pasada 1 · La regla como cartel =================
   La fecha es el dato que más pesa en la página y era una línea de tiempo chiquita junto a media columna
   vacía; las seis obligaciones eran una lista larga en un panel. Ahora la fecha va monumental al final de
   una línea de tiempo a todo lo ancho, las obligaciones en una cuadrícula de tarjetas numeradas y
   «What to do now», que es la acción, en tinta oscura. Sin rojo y sin cuenta regresiva. */
:root[lang] .rule-grid { grid-template-columns: minmax(0, 1fr); gap: 64px; }
:root[lang] .rule-intro { position: static; gap: 24px; }
:root[lang] .rule-intro .sec-title { max-width: 20ch; font-size: clamp(36px, 2.4vw + 20px, 56px); }
:root[lang] .rule-intro .sec-sub { max-width: 64ch; }
:root[lang] .timeline { grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); margin-top: 32px; }
:root[lang] .timeline::before { height: 3px; opacity: 1; }
:root[lang] .timeline li { padding-top: 32px; align-content: start; }
:root[lang] .timeline li::before { width: 18px; height: 18px; top: -1px; }
:root[lang] .timeline li:last-child { padding-right: 0; }
:root[lang] .timeline li:last-child .d { font-size: clamp(44px, 7.4vw, 124px); line-height: .9; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
:root[lang] .timeline li:last-child .l { font-size: 20px; font-weight: 600; margin-top: 12px; }

/* Las seis obligaciones: tarjetas numeradas sobre la banda (el panel blanco desaparece) */
:root[lang] #the-rule .panel { background: transparent; box-shadow: none; padding: 0; border-radius: 0; color: var(--band-ink); }
:root[lang] #the-rule .panel h3 { font-size: clamp(26px, 1.2vw + 18px, 34px); letter-spacing: -0.02em; margin-bottom: 24px; }
:root[lang] #the-rule .check-list { gap: 16px; }
:root[lang] #the-rule .check-list li, :root[lang] #the-rule .check-list li:first-child { grid-template-columns: minmax(0, 1fr); align-content: start; gap: 16px; padding: 24px; border: 0; border-radius: var(--radius-lg); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
:root[lang] #the-rule .check-list .n { display: inline-grid; place-items: center; justify-self: start; width: 44px; height: 44px; border-radius: var(--radius-md); background: var(--hero-bg); color: var(--accent); font-size: 16px; line-height: 1; font-weight: 500; }
:root[lang] #the-rule .check-list li > span:last-child { font-size: 17px; line-height: 1.55; }
@media (min-width: 640px) {
  :root[lang] #the-rule .check-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  :root[lang] #the-rule .check-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
:root[lang] #the-rule .blocks { margin-top: 16px; gap: 16px; }
:root[lang] #the-rule .block { background: var(--surface); border: 0; border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-1); }
:root[lang] #the-rule .block h4 { font-size: 20px; }
:root[lang] #the-rule .block p { font-size: 17px; }
:root[lang] #the-rule .block:last-child { background: var(--hero-bg); color: var(--hero-ink); }
:root[lang] #the-rule .block:last-child .cite { color: var(--hero-muted); }
:root[lang] #the-rule .block:last-child a { color: inherit; }
:root[lang] #the-rule .block:last-child a:focus-visible { outline-color: var(--accent); }
:root[lang] #the-rule .links-row { margin-top: 28px; }
:root[lang] #the-rule .panel .src-link { color: var(--band-ink); }

/* En teléfono la línea de tiempo se vuelve vertical para que la fecha grande no se aplaste */
@media (max-width: 639px) {
  :root[lang] .timeline { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
  :root[lang] .timeline::before { left: 7px; right: auto; top: 9px; bottom: 9px; width: 3px; height: auto; }
  :root[lang] .timeline li { padding: 0 0 0 36px; }
  :root[lang] .timeline li::before { top: 2px; }
  :root[lang] .timeline li:last-child .d { font-size: clamp(44px, 15vw, 72px); }
}

/* ================= B3 · Pasada 2 · La acción siempre a la mano en teléfono =================
   En teléfono la página mide ~24 pantallas y la barra superior esconde su botón tras el menú: después
   del encabezado pasaban 20 pantallas sin ningún botón visible. Ahora una barra fija abajo lleva
   «Request a walkthrough» (abre el panel lateral) y se esconde sola en el precio y el formulario.
   La función vive en site.js; aquí se prende y toma el color del encabezado. */
:root[lang] { --f-barra: 1; }
:root[lang] .action-bar { background: var(--hero-bg); border-top-color: var(--hero-line); }
:root[lang] .action-bar .ct-btn-primary { background: var(--accent); color: var(--on-accent); }
:root[lang] .action-bar .ct-btn-primary:hover { background: var(--accent-hover); }
:root[lang] .action-bar .ct-btn:focus-visible { outline-color: var(--accent); }

/* ================= B3 · Pasada 3 · Lo que funciona hoy, al frente =================
   «What's live» eran tres columnas idénticas: lo que ya funciona pesaba lo mismo que lo que no existe.
   Ahora «Live today» es un panel grande en tinta con sus funciones a dos columnas; «Coming next» va en
   contorno punteado (en este sistema, punteado = todavía no) y «Not part of Verius today», discreto.
   El estado se lee por forma y peso, no por color: sin palomitas verdes ni cruces rojas. */
@media (min-width: 900px) {
  :root[lang] #whats-live .cols3 { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: stretch; }
  :root[lang] #whats-live .col-card:first-child { grid-row: 1 / span 2; }
}
:root[lang] #whats-live .col-card:first-child { background: var(--hero-bg); color: var(--hero-ink); border-color: transparent; padding: 40px; gap: 28px; box-shadow: var(--shadow-3); }
:root[lang] #whats-live .col-card:first-child h3 { font-size: clamp(30px, 1.6vw + 18px, 42px); line-height: 1.1; letter-spacing: -0.025em; }
:root[lang] #whats-live .col-card:first-child .dots { gap: 18px 32px; font-size: 17px; line-height: 1.5; }
@media (min-width: 640px) {
  :root[lang] #whats-live .col-card:first-child .dots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
:root[lang] #whats-live .col-card:first-child .dots li { padding-left: 24px; }
:root[lang] #whats-live .col-card:first-child .dots li::before { width: 10px; height: 10px; border-radius: 2px; top: .55em; background: var(--accent); }
:root[lang] #whats-live .col-card:nth-child(2) { background: transparent; border: 1.5px dashed var(--line-strong); }
:root[lang] #whats-live .col-card:nth-child(2) .dots li::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-strong); width: 9px; height: 9px; top: .6em; }
:root[lang] #whats-live .col-card:nth-child(3) { background: var(--surface-sunken); border-color: transparent; }
:root[lang] #whats-live .col-card:nth-child(3) .dots { color: var(--ink-muted); }
:root[lang] #whats-live .col-card:nth-child(3) .dots li::before { width: 10px; height: 2px; border-radius: 0; top: .78em; }
:root[lang] #whats-live .small { margin-top: 16px; }
@media (max-width: 639px) {
  :root[lang] #whats-live .col-card:first-child { padding: 28px; gap: 20px; }
}
}
