/* Kumplir — sistema visual "expediente".
   Ideas que lo guian: el papel del expediente (fondos papel, filetes, pautas), los estados de
   cumplimiento como codigo de color (obligatorio / pendiente / al dia), citas legales reales como
   elemento grafico y sellos. Marino y verde salen del logo. Mobile-first, grid de 8px. */

@font-face { font-family: "Bricolage Grotesque"; src: url("/assets/fonts/bricolage-latin-wght.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("/assets/fonts/publicsans-latin-wght.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --navy: #0e2a52;
  --navy-deep: #081a36;
  --navy-2: #163c70;
  --navy-3: #2a5694;
  --ink: #0e1e36;
  --text: #2a3950;
  --muted: #54647a;
  --paper: #f5f7fa;
  --paper-2: #eaeff5;
  --line: #d6dee9;
  --white: #fff;
  --green: #12723f;
  --green-dark: #0c5a31;
  --green-bright: #23a866;
  --mint: #e2f4e9;
  --mint-ink: #6fe0a6;
  --amber: #a85a0b;
  --amber-bg: #fcefd9;
  --red: #b42318;
  --red-bg: #fce8e6;
  --display: "Bricolage Grotesque", "Public Sans", system-ui, sans-serif;
  --body: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r-panel: 18px;
  --r-card: 12px;
  --r-ctl: 10px;
  --shadow-panel: 0 30px 60px -20px rgba(8,26,54,.35), 0 12px 24px -12px rgba(8,26,54,.25);
  --shadow-soft: 0 1px 0 rgba(14,42,82,.04), 0 8px 24px -12px rgba(14,42,82,.18);
  --container: 1200px;
  --gutter: 16px;
  --header-h: 64px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; font-family: var(--body); font-size: 1.0625rem; line-height: 1.65; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-2); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--green); }
:focus-visible { outline: 3px solid var(--green-bright); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); line-height: 1.08; letter-spacing: -.025em; margin: 0 0 16px; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5.6vw, 4.1rem); font-weight: 750; letter-spacing: -.035em; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.2rem; line-height: 1.25; letter-spacing: -.012em; font-weight: 650; }
h4 { font-size: 1.05rem; }
h1 em, h2 em { font-style: normal; color: inherit; }
p { margin: 0 0 16px; text-wrap: pretty; }
ul, ol { margin: 0 0 16px; padding-left: 1.25em; }
li { margin-bottom: 6px; }
strong { color: var(--ink); font-weight: 650; }
table { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: .95rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--paper); color: var(--ink); font-weight: 650; }
.table-wrap { overflow-x: auto; margin: 0 0 24px; border: 1px solid var(--line); border-radius: var(--r-card); background: #fff; }
.table-wrap table { margin: 0; }
.icon { width: 20px; height: 20px; flex: none; }
.icon--lg { width: 28px; height: 28px; }
.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; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 1000; background: var(--navy); color: #fff; padding: 12px 16px; border-radius: var(--r-ctl); }
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 820px; }
.section { padding: 64px 0; }
.section--tight { padding: 32px 0; }
.section--alt, .section--paper { background: var(--paper); }
.section--dark { background: var(--navy); color: #c7d4e8; }
.section--dark h2, .section--dark h3, .section--dark strong { color: #fff; }
.section--dark .lead { color: #b5c5dd; }
.section__head { max-width: 720px; margin-bottom: 40px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.lead { font-size: 1.15rem; line-height: 1.6; color: var(--muted); }
.eyebrow, .kicker { display: inline-flex; align-items: center; gap: 10px; font-size: .95rem; font-weight: 600; color: var(--green); margin-bottom: 14px; letter-spacing: 0; text-transform: none; }
.eyebrow::before, .kicker::before { content: ""; width: 24px; height: 2px; background: currentColor; border-radius: 2px; }
.section--dark .eyebrow { color: var(--mint-ink); }
@media (min-width: 768px) { :root { --gutter: 28px; } .section { padding: 104px 0; } .section--tight { padding: 48px 0; } }
@media (min-width: 1024px) { :root { --gutter: 32px; --header-h: 76px; } }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: var(--r-ctl); border: 1.5px solid transparent; font: inherit; font-weight: 650; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; text-align: center; }
.btn .icon { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px); }
.btn--accent { background: var(--green); color: #fff; box-shadow: inset 0 -2px 0 rgba(0,0,0,.18); }
.btn--accent:hover { background: var(--green-dark); color: #fff; }
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-deep); color: #fff; }
.btn--ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--navy-2); color: var(--navy); }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn--ghost-light:hover { background: rgba(255,255,255,.08); color: #fff; border-color: #fff; }
.btn--text { background: none; color: var(--muted); padding-left: 4px; padding-right: 4px; border: 0; }
.btn--sm { min-height: 44px; padding: 10px 16px; font-size: .95rem; }
.btn--lg { min-height: 56px; padding: 16px 26px; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn--grow { flex: 1; }
.btn[disabled], .btn.is-loading { opacity: .7; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn-row--form { margin-top: 8px; align-items: center; flex-wrap: nowrap; }

/* ---------- Cabecera y megamenu ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 20px -14px rgba(14,42,82,.35); }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 32px; height: 36px; }
.brand__name { font-family: var(--display); font-size: 1.55rem; font-weight: 750; letter-spacing: -.04em; color: var(--navy); }
.brand--footer .brand__name { color: #fff; }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1px solid var(--line); background: #fff; border-radius: var(--r-ctl); color: var(--navy); cursor: pointer; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }
.nav { position: fixed; inset: var(--header-h) 0 0 0; background: #fff; overflow-y: auto; padding: 8px var(--gutter) 120px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s; }
.nav.is-open { opacity: 1; transform: none; visibility: visible; }
.nav__list { list-style: none; margin: 0; padding: 0; }
.nav__item { margin: 0; border-bottom: 1px solid var(--line); }
.nav__item--cta { border: 0; padding-top: 16px; }
.nav__item--cta .btn { width: 100%; }
.nav__link { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 54px; padding: 12px 4px; background: none; border: 0; font: inherit; font-weight: 600; font-size: 1.05rem; color: var(--ink); text-decoration: none; cursor: pointer; }
.nav__link > .icon { margin-left: auto; width: 18px; height: 18px; transition: transform .2s; color: var(--muted); }
.nav__link[aria-expanded="true"] > .icon { transform: rotate(180deg); }
.nav__link[aria-current] { color: var(--green); }
.nav__pill { font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--mint); color: var(--green-dark); }
.mega, .dropdown { display: none; padding: 0 0 16px; }
.mega.is-open, .dropdown.is-open { display: block; }
.mega__list { list-style: none; margin: 0; padding: 0; }
.mega__list li { margin: 0; }
.mega-link { display: flex; align-items: flex-start; gap: 12px; padding: 10px 8px; border-radius: var(--r-ctl); text-decoration: none; color: var(--text); transition: background-color .15s; }
.mega-link:hover, .mega-link[aria-current] { background: var(--paper); color: var(--ink); }
.mega-link__icon { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 9px; background: var(--paper-2); color: var(--navy-2); transition: background-color .15s, color .15s; }
.mega-link__icon .icon { width: 18px; height: 18px; }
.mega-link:hover .mega-link__icon { background: var(--navy); color: #fff; }
.mega-link__text { display: grid; gap: 1px; line-height: 1.3; }
.mega-link__text strong { font-size: .95rem; font-weight: 650; color: var(--ink); }
.mega-link__text small { font-size: .83rem; color: var(--muted); }
.mega__title { display: flex; align-items: center; gap: 10px; margin: 16px 0 6px 8px; font-size: .92rem; font-weight: 700; color: var(--ink); font-family: var(--display); letter-spacing: -.01em; }
.mega__title span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: var(--mint); color: var(--green); }
.mega__title .icon { width: 14px; height: 14px; }
.mega__promo { position: relative; overflow: hidden; margin-top: 12px; padding: 22px; background: var(--navy); color: #c7d4e8; border-radius: var(--r-card); }
.mega__promo::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 140px; height: 140px; border-radius: 50%; border: 2px dashed rgba(111,224,166,.35); }
.mega__promo-badge { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600; color: var(--mint-ink); margin-bottom: 8px; }
.mega__promo-badge .icon { width: 14px; height: 14px; }
.mega__promo-title { font-family: var(--display); color: #fff; font-weight: 700; font-size: 1.25rem; line-height: 1.15; margin-bottom: 8px; letter-spacing: -.02em; }
.mega__promo p { font-size: .9rem; }
.mega__promo .btn { color: #fff; position: relative; z-index: 1; }
.mega__foot { display: none; }
.dropdown__all { display: inline-flex; align-items: center; gap: 6px; margin: 10px 8px 0; font-weight: 600; font-size: .92rem; }
.dropdown__all .icon { width: 16px; height: 16px; }
.nav-backdrop { display: none; }
body.nav-open { overflow: hidden; }

@media (min-width: 1100px) {
  .site-header { background: rgba(255,255,255,.94); backdrop-filter: saturate(1.5) blur(12px); }
  .nav-toggle { display: none; }
  .nav { position: static; transform: none; visibility: visible; opacity: 1; padding: 0; overflow: visible; background: none; }
  .nav__list { display: flex; align-items: center; gap: 2px; }
  .nav__item { border: 0; position: relative; }
  .nav__item--mega { position: static; }
  .nav__item--cta { padding: 0 0 0 12px; }
  .nav__item--cta .btn { width: auto; }
  .nav__link { min-height: 44px; padding: 8px 12px; font-size: .97rem; font-weight: 550; border-radius: var(--r-ctl); color: var(--text); }
  .nav__link > .icon { margin-left: 0; width: 15px; height: 15px; }
  .nav__link:hover, .nav__link[aria-expanded="true"] { background: var(--paper); color: var(--ink); }
  .dropdown, .mega { display: block; position: absolute; top: calc(100% + 10px); background: #fff; border: 1px solid var(--line); border-radius: var(--r-panel); box-shadow: var(--shadow-panel); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s; }
  .dropdown.is-open, .mega.is-open { opacity: 1; visibility: visible; transform: none; }
  .dropdown::before, .mega::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
  .dropdown { left: -8px; width: 340px; padding: 10px; }
  .dropdown--wide { width: 380px; }
  .mega { left: 50%; width: min(1180px, calc(100vw - 40px)); margin-left: calc(min(1180px, calc(100vw - 40px)) / -2); padding: 0; overflow: hidden; top: calc(var(--header-h) - 6px); }
  .mega::before { top: -20px; height: 20px; }
  .mega__grid { display: grid; grid-template-columns: repeat(3, 1fr) 270px; gap: 8px; padding: 18px 18px 10px; }
  .mega .mega-link { padding: 8px; }
  .mega .mega-link__text { min-width: 0; }
  .mega__col { padding: 0 4px; }
  .mega__col + .mega__col { border-left: 1px solid var(--paper-2); padding-left: 12px; }
  .mega__title { margin-top: 4px; }
  .mega__aside { padding-left: 8px; }
  .mega__promo { margin-top: 0; }
  .mega__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 28px; background: var(--paper); border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted); }
  .mega__foot span { display: inline-flex; align-items: center; gap: 8px; }
  .mega__foot .icon { width: 16px; height: 16px; color: var(--green); }
  .mega__foot a { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; text-decoration: none; }
  .mega__foot a .icon { color: currentColor; }
  .nav-backdrop { display: block; position: fixed; inset: var(--header-h) 0 0 0; background: rgba(8,26,54,.22); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: -1; }
  .nav-backdrop.is-on { opacity: 1; }
  .nav-backdrop[hidden] { display: block; }
}

/* ---------- Hero: marino con pauta de papel y sello de agua ---------- */
.hero { position: relative; overflow: hidden; color: #c7d4e8; padding: 28px 0 56px; background: var(--navy); isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  repeating-linear-gradient(180deg, transparent 0 31px, rgba(255,255,255,.045) 31px 32px),
  radial-gradient(1200px 600px at 100% 0%, rgba(42,86,148,.6), transparent 60%),
  linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%); }
.hero::after { content: ""; position: absolute; z-index: -1; right: -120px; top: 40%; width: 520px; height: 520px; border-radius: 50%; border: 2px solid rgba(111,224,166,.10); box-shadow: inset 0 0 0 40px rgba(111,224,166,.03), inset 0 0 0 42px rgba(111,224,166,.08); }
.hero__grid { position: relative; display: grid; gap: 36px; align-items: center; }
.hero h1 { color: #fff; margin-bottom: 20px; max-width: 16ch; }
.hero__lead { font-size: 1.15rem; color: #d2ddee; max-width: 600px; line-height: 1.6; }
.hero .kicker, .hero .eyebrow { color: var(--mint-ink); }
.hero .breadcrumbs a, .hero .breadcrumbs li { color: #a9bbd6; }
.hero .breadcrumbs li[aria-current] { color: #e4ebf6; }
.hero__media img { border-radius: var(--r-panel); box-shadow: var(--shadow-panel); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.ticks, .checklist { list-style: none; padding: 0; margin: 0 0 16px; }
.ticks li, .checklist li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 10px; }
.ticks .icon, .checklist .icon { width: 18px; height: 18px; margin-top: 4px; color: var(--green); }
.ticks--light li, .checklist--light li { color: #e4ebf6; }
.ticks--light .icon, .checklist--light .icon { color: var(--mint-ink); }
.trust-inline { list-style: none; padding: 20px 0 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .9rem; color: #b5c5dd; border-top: 1px solid rgba(255,255,255,.12); max-width: 620px; }
.trust-inline li { display: flex; align-items: center; gap: 8px; margin: 0; }
.trust-inline .icon { width: 17px; height: 17px; color: var(--mint-ink); }
@media (min-width: 960px) {
  .hero { padding: 40px 0 104px; }
  .hero--form .hero__grid, .hero--side .hero__grid { grid-template-columns: 1.08fr .92fr; gap: 64px; }
  .hero--form .hero__grid { align-items: start; }
  .hero--form .hero__copy { padding-top: 28px; }
}
@media (max-width: 959px) {
  .hero--form .trust-inline { display: none; }
  .hero--form .hero__copy .ticks li:nth-child(n+3), .hero--form .hero__copy .checklist li:nth-child(n+3) { display: none; }
}

/* ---------- Migas ---------- */
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 0; margin: 0 0 24px; font-size: .86rem; }
.breadcrumbs li { margin: 0; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 4px; opacity: .5; }
.breadcrumbs a { color: var(--muted); }

/* ---------- Solicitud (formulario de lead) ---------- */
.lead-form { position: relative; background: #fff; color: var(--text); border-radius: var(--r-panel); padding: 24px 20px; box-shadow: var(--shadow-panel); border: 1px solid var(--line); }
.lead-form::before { content: ""; position: absolute; left: 20px; right: 20px; top: 0; height: 4px; border-radius: 0 0 4px 4px; background: linear-gradient(90deg, var(--green-bright), var(--navy-3)); }
.lead-form__head { margin-bottom: 18px; }
.lead-form__ref { display: flex; align-items: center; gap: 8px; margin: 4px 0 10px; font-size: .84rem; font-weight: 600; color: var(--muted); }
.lead-form__ref .icon { width: 16px; height: 16px; color: var(--green); }
.lead-form__ref span { margin-left: auto; padding: 2px 10px; border-radius: 999px; background: var(--mint); color: var(--green-dark); font-size: .76rem; }
.lead-form__title { font-family: var(--display); font-size: 1.5rem; font-weight: 700; color: var(--ink); margin: 0 0 4px; letter-spacing: -.02em; line-height: 1.15; }
.lead-form__sub { font-size: .93rem; color: var(--muted); margin: 0 0 14px; }
.lead-form__progress { position: relative; display: flex; align-items: center; gap: 12px; }
.lead-form__progress::before { content: ""; flex: 1; height: 4px; border-radius: 4px; background: var(--paper-2); }
.lead-form__bar { position: absolute; left: 0; top: 50%; margin-top: -2px; height: 4px; border-radius: 4px; width: calc((100% - 92px) * var(--p, .5)); background: var(--green-bright); transition: width .3s var(--ease); }
.lead-form__count { font-size: .8rem; color: var(--muted); white-space: nowrap; }
.lead-form__step { border: 0; padding: 0; margin: 0; min-width: 0; display: none; }
.lead-form__step.is-active { display: block; }
.field { display: block; margin-bottom: 14px; }
.field__label { display: block; font-weight: 600; font-size: .9rem; color: var(--ink); margin-bottom: 6px; }
.field__label small { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid #c3cfdf; border-radius: var(--r-ctl); font: inherit; font-size: 16px; color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2354647a' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.field textarea { min-height: 88px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy-2); box-shadow: 0 0 0 4px rgba(22,60,112,.14); }
.field.has-error input, .field.has-error select { border-color: var(--red); }
.field__error { display: block; color: var(--red); font-size: .85rem; margin-top: 4px; }
.field-row { display: grid; gap: 0 12px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; border-radius: var(--r-ctl); }
.chips.has-error .chip span { border-color: var(--red); }
.chip { position: relative; margin: 0; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 8px; border: 1.5px solid #c3cfdf; border-radius: var(--r-ctl); font-weight: 600; font-size: .93rem; color: var(--ink); transition: all .15s; text-align: center; }
.chip input:checked + span { border-color: var(--green); background: var(--mint); color: var(--green-dark); box-shadow: inset 0 0 0 1px var(--green); }
.chip input:focus-visible + span { outline: 3px solid var(--green-bright); outline-offset: 2px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .82rem; line-height: 1.5; color: var(--muted); margin: 4px 0 16px; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin-top: 1px; flex: none; accent-color: var(--green); }
.consent.has-error span { color: var(--red); }
.lead-form__micro { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: .82rem; color: var(--muted); margin: 12px 0 0; }
.lead-form__micro .icon { width: 14px; height: 14px; }
.lead-form__status:empty { display: none; }
.lead-form__status { margin-top: 12px; padding: 12px 14px; border-radius: var(--r-ctl); font-size: .92rem; background: var(--red-bg); color: var(--red); }
.lead-form__done { text-align: center; padding: 16px 0; }
.lead-form__done .icon { width: 56px; height: 56px; color: var(--green); margin: 0 auto 12px; }
.lead-form__done p:first-of-type { font-family: var(--display); font-size: 1.5rem; font-weight: 700; color: var(--ink); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (min-width: 768px) { .lead-form { padding: 30px 30px 28px; } .lead-form::before { left: 30px; right: 30px; } }

/* ---------- Ledger: puntos con filete (en vez de rejilla de tarjetas) ---------- */
.ledger { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
.ledger__item { display: flex; gap: 16px; padding: 22px 0; margin: 0; border-bottom: 1px solid var(--line); }
.ledger__icon { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 11px; background: var(--paper-2); color: var(--navy-2); }
.ledger__item h3 { font-size: 1.1rem; margin-bottom: 6px; }
.ledger__item p { margin: 0; color: var(--muted); font-size: 1rem; }
@media (min-width: 720px) { .ledger--2, .ledger--3, .ledger--4 { grid-template-columns: repeat(2, 1fr); column-gap: 48px; } }
@media (min-width: 1040px) { .ledger--3 { grid-template-columns: repeat(3, 1fr); } .ledger { column-gap: 56px; } }
.section--alt .ledger__icon, .section--paper .ledger__icon { background: #fff; border: 1px solid var(--line); }
.section--dark .ledger, .section--dark .ledger__item { border-color: rgba(255,255,255,.14); }
.section--dark .ledger__icon { background: rgba(255,255,255,.08); color: var(--mint-ink); }
.section--dark .ledger__item p { color: #b5c5dd; }

/* ---------- Tarjetas (las que escriben las paginas) ---------- */
.cards { display: grid; gap: 16px; }
@media (min-width: 640px) { .cards--2, .cards--3, .cards--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } .cards--4 { grid-template-columns: repeat(4, 1fr); } .cards { gap: 20px; } }
.card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); padding: 26px; display: flex; flex-direction: column; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin-bottom: 0; }
.card ul { margin-top: 12px; }
.card__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 11px; background: var(--paper-2); color: var(--navy-2); margin-bottom: 18px; }
.card__icon .icon { width: 22px; height: 22px; }
.card--link { text-decoration: none; transition: border-color .2s, background-color .2s; }
.card--link:hover { border-color: var(--navy-3); background: #fbfcfe; }
.card--link:hover h3 { color: var(--navy-2); }
.card__more { margin-top: auto; padding-top: 18px; display: inline-flex; align-items: center; gap: 6px; font-weight: 650; color: var(--green); font-size: .95rem; }
.card__more .icon { width: 16px; height: 16px; transition: transform .2s; }
.card--link:hover .card__more .icon { transform: translateX(3px); }
.card--dark { background: var(--navy); border-color: var(--navy); color: #c7d4e8; }
.card--dark h3, .card--dark strong { color: #fff; }
.card--dark p { color: #c7d4e8; }
.card--dark .card__icon { background: rgba(255,255,255,.08); color: var(--mint-ink); }
.card--feature { border-color: var(--green-bright); box-shadow: inset 0 3px 0 var(--green-bright); }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 650; padding: 4px 12px; border-radius: 999px; background: var(--mint); color: var(--green-dark); margin-bottom: 14px; align-self: flex-start; }
.tag--warn { background: var(--amber-bg); color: var(--amber); }

/* ---------- Bloques de contenido ---------- */
.split { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 72px; } .split--reverse > :first-child { order: 2; } }
.split__media { position: relative; z-index: 0; }
.split__media img { border-radius: var(--r-panel); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.split__media::after { content: ""; position: absolute; z-index: -1; inset: 24px -16px -16px 24px; border-radius: var(--r-panel); background: repeating-linear-gradient(135deg, var(--paper-2) 0 2px, transparent 2px 10px); }
.prose { max-width: 740px; }
.prose h2 { margin-top: 56px; font-size: clamp(1.6rem, 3vw, 2.15rem); }
.prose h3 { margin-top: 32px; }
.prose > :first-child { margin-top: 0; }
.prose ul li::marker { color: var(--green); }
.prose p, .prose li { font-size: 1.07rem; }
.callout { display: flex; gap: 16px; padding: 22px 22px 22px 18px; border-radius: 0 var(--r-card) var(--r-card) 0; background: var(--paper); border-left: 3px solid var(--navy-2); margin: 28px 0; }
.callout__icon { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; background: #fff; color: var(--navy-2); }
.callout__icon .icon { width: 18px; height: 18px; }
.callout > div > :last-child { margin-bottom: 0; }
.callout__title { font-family: var(--display); font-weight: 700; font-size: 1.08rem; color: var(--ink); margin-bottom: 6px; }
.callout--warn { background: var(--amber-bg); border-color: var(--amber); }
.callout--warn .callout__icon { color: var(--amber); }
.callout--tip { background: var(--mint); border-color: var(--green); }
.callout--tip .callout__icon { color: var(--green); }
.pain-list { display: grid; gap: 0; list-style: none; padding: 0; border-top: 1px solid var(--line); }
@media (min-width: 768px) { .pain-list { grid-template-columns: 1fr 1fr; column-gap: 40px; } }
.pain-list li { display: flex; gap: 12px; align-items: flex-start; padding: 16px 0; margin: 0; border-bottom: 1px solid var(--line); }
.pain-list .icon { color: var(--amber); margin-top: 3px; }
.stat-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 900px) { .stat-row { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 20px 0; border-top: 2px solid rgba(255,255,255,.2); }
.stat strong { display: block; font-family: var(--display); font-size: 2.2rem; color: #fff; letter-spacing: -.03em; line-height: 1.1; }
.stat span { font-size: .92rem; color: #b5c5dd; }

/* ---------- Linea de tiempo del proceso ---------- */
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; position: relative; }
.timeline__item { position: relative; margin: 0; padding: 0 0 28px 56px; }
.timeline__item::before { content: ""; position: absolute; left: 19px; top: 40px; bottom: 0; width: 2px; background: var(--line); }
.timeline__item:last-child::before { display: none; }
.timeline__n { position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 2px solid var(--navy); color: var(--navy); font-family: var(--display); font-weight: 700; }
.timeline__item:first-child .timeline__n { background: var(--navy); color: #fff; }
.timeline__item h3 { font-size: 1.12rem; margin: 7px 0 6px; }
.timeline__item p { color: var(--muted); margin: 0; }
@media (min-width: 900px) {
  .timeline { grid-template-columns: repeat(var(--n, 4), 1fr); gap: 28px; }
  .timeline__item { padding: 60px 0 0; }
  .timeline__item::before { left: 48px; right: -28px; top: 19px; bottom: auto; width: auto; height: 2px; }
}

/* ---------- Banda de sellos ---------- */
.seals { padding: 48px 0; background: var(--paper); border-block: 1px solid var(--line); }
.seals__inner { display: grid; gap: 24px; align-items: center; }
.seals__intro { margin: 0; font-family: var(--display); font-size: 1.25rem; font-weight: 600; color: var(--ink); line-height: 1.3; max-width: 30ch; letter-spacing: -.015em; }
.seals__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 18px 28px; }
.seal { display: flex; align-items: center; gap: 12px; margin: 0; }
.seal__ring { display: grid; place-items: center; width: 50px; height: 50px; flex: none; border-radius: 50%; border: 2px solid var(--navy); box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 5px rgba(14,42,82,.35); color: var(--navy); background: #fff; }
.seal__ring .icon { width: 20px; height: 20px; }
.seal span:last-child { display: grid; font-size: .82rem; color: var(--muted); line-height: 1.3; }
.seal strong { font-size: .98rem; color: var(--ink); }
@media (min-width: 1040px) { .seals__inner { grid-template-columns: 300px 1fr; gap: 48px; } .seals__list { justify-content: space-between; } }

/* ---------- FAQ en dos columnas ---------- */
.faq__grid { display: grid; gap: 28px; }
@media (min-width: 960px) { .faq__grid { grid-template-columns: 360px 1fr; gap: 72px; align-items: start; } .faq__aside { position: sticky; top: calc(var(--header-h) + 32px); } }
.faq__more { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); }
.faq__more .icon { color: var(--green); }
.faq__list { border-top: 2px solid var(--ink); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; cursor: pointer; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary h3 { margin: 0; font-size: 1.12rem; }
.faq__item summary:hover h3 { color: var(--navy-2); }
.faq__toggle { position: relative; width: 28px; height: 28px; flex: none; border-radius: 50%; border: 1.5px solid var(--line); transition: background-color .2s, border-color .2s; }
.faq__toggle::before, .faq__toggle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: var(--navy); border-radius: 2px; transition: transform .2s; }
.faq__toggle::after { transform: rotate(90deg); }
.faq__item[open] .faq__toggle { background: var(--navy); border-color: var(--navy); }
.faq__item[open] .faq__toggle::before, .faq__item[open] .faq__toggle::after { background: #fff; }
.faq__item[open] .faq__toggle::after { transform: rotate(0); }
.faq__answer { padding: 0 48px 24px 0; color: var(--text); }
.faq__answer > :last-child { margin-bottom: 0; }

/* ---------- Siguiente paso (indice de enlaces) ---------- */
.nextlinks { display: grid; gap: 24px; }
@media (min-width: 960px) { .nextlinks { grid-template-columns: 300px 1fr; gap: 64px; align-items: start; } }
.nextlinks__title { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.nextlinks__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.nextlinks__list li { margin: 0; border-bottom: 1px solid var(--line); }
.nextlinks__list a { display: flex; align-items: center; gap: 16px; padding: 18px 4px; text-decoration: none; color: var(--text); }
.nextlinks__icon { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 10px; background: #fff; border: 1px solid var(--line); color: var(--navy-2); transition: all .2s; }
.nextlinks__text { display: grid; gap: 2px; flex: 1; }
.nextlinks__text strong { font-family: var(--display); font-size: 1.12rem; font-weight: 650; letter-spacing: -.01em; }
.nextlinks__text small { color: var(--muted); font-size: .93rem; }
.nextlinks__arrow { color: var(--muted); transition: transform .2s, color .2s; }
.nextlinks__list a:hover .nextlinks__icon { background: var(--navy); border-color: var(--navy); color: #fff; }
.nextlinks__list a:hover .nextlinks__arrow { transform: translateX(4px); color: var(--green); }
.nextlinks__list a:hover strong { color: var(--navy-2); }

/* ---------- CTA intermedia con sello ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--navy-deep); color: #c7d4e8; padding: 56px 0; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(180deg, transparent 0 31px, rgba(255,255,255,.04) 31px 32px); }
.cta-band__inner { position: relative; display: grid; gap: 20px; align-items: center; }
.cta-band__stamp { color: var(--mint-ink); width: 96px; transform: rotate(-12deg); opacity: .9; }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { margin: 0; max-width: 56ch; }
.cta-band .btn-row { margin-top: 4px; }
@media (min-width: 900px) { .cta-band { padding: 72px 0; } .cta-band__inner { grid-template-columns: 120px 1fr auto; gap: 40px; } .cta-band__stamp { width: 120px; } .cta-band .btn-row { margin: 0; } }

/* ---------- Bloque final de contacto ---------- */
.contact-block { position: relative; padding: 72px 0; background: linear-gradient(180deg, var(--paper) 0%, #fff 100%); border-top: 1px solid var(--line); }
.contact-block__grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .contact-block { padding: 112px 0; } .contact-block__grid { grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; } }
.route { list-style: none; padding: 0; margin: 28px 0; position: relative; }
.route::before { content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 2px; background: repeating-linear-gradient(180deg, var(--green-bright) 0 6px, transparent 6px 12px); }
.route li { position: relative; display: flex; gap: 18px; margin-bottom: 18px; }
.route__dot { position: relative; z-index: 1; width: 16px; height: 16px; margin-top: 4px; flex: none; border-radius: 50%; background: #fff; border: 3px solid var(--green-bright); }
.route strong, .route span { display: block; }
.route span { color: var(--muted); font-size: .97rem; }
.contact-block__alt { display: flex; align-items: center; gap: 8px; color: var(--muted); }

/* ---------- Invitacion a test ---------- */
.tool-promo { display: grid; gap: 18px; align-items: center; padding: 22px; margin: 32px 0; border-radius: var(--r-card); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.tool-promo__sheet { width: 56px; height: 68px; border-radius: 6px; border: 1.5px solid var(--line); background: var(--paper); display: grid; align-content: center; gap: 8px; padding: 10px; }
.tool-promo__line { height: 5px; border-radius: 3px; background: var(--line); }
.tool-promo__line.is-ok { background: var(--green-bright); width: 80%; }
.tool-promo__line.is-warn { background: #e8a33d; width: 60%; }
.tool-promo__title { font-family: var(--display); font-weight: 700; font-size: 1.2rem; color: var(--ink); margin-bottom: 4px; letter-spacing: -.015em; }
.tool-promo p:last-child { margin: 0; color: var(--muted); }
@media (min-width: 768px) { .tool-promo { grid-template-columns: auto 1fr auto; padding: 22px 26px; } }

/* ---------- Guias ---------- */
.guide-layout { display: grid; gap: 32px; }
@media (min-width: 1100px) { .guide-layout { grid-template-columns: 270px 1fr; gap: 72px; } .guide-layout__aside { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; } }
.toc { border-left: 2px solid var(--line); padding: 4px 0 4px 18px; font-size: .93rem; }
.toc__title { font-family: var(--display); font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.toc ol { margin: 0; padding: 0; list-style: none; }
.toc li { margin-bottom: 8px; }
.toc a { color: var(--muted); text-decoration: none; display: block; line-height: 1.35; }
.toc a:hover { color: var(--navy-2); }
.toc a.is-active { color: var(--green); font-weight: 650; }
.aside-cta { margin-top: 20px; padding: 20px; border-radius: var(--r-card); background: var(--navy); color: #c7d4e8; font-size: .93rem; }
.aside-cta strong { color: #fff; display: block; font-family: var(--display); font-size: 1.1rem; margin-bottom: 6px; }
.aside-cta .btn { margin-top: 12px; width: 100%; color: #fff; }
.meta-line { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .9rem; color: #b5c5dd; margin-top: 16px; }
.meta-line span { display: inline-flex; align-items: center; gap: 6px; }
.meta-line .icon { width: 16px; height: 16px; }
.guide-layout > *, .split > *, .hero__grid > *, .contact-block__grid > *, .faq__grid > *, .nextlinks > *, .situations > * { min-width: 0; }
.prose pre, .prose code { white-space: pre-wrap; word-break: break-word; }
.prose a { overflow-wrap: anywhere; }

/* ---------- Tests ---------- */
.quiz { position: relative; background: #fff; border-radius: var(--r-panel); box-shadow: var(--shadow-panel); border: 1px solid var(--line); padding: 26px 20px; color: var(--text); }
.quiz::before { content: ""; position: absolute; left: 24px; right: 24px; top: 0; height: 4px; border-radius: 0 0 4px 4px; background: linear-gradient(90deg, var(--green-bright), var(--navy-3)); }
@media (min-width: 768px) { .quiz { padding: 44px; } }
.quiz__progress { height: 6px; border-radius: 999px; background: var(--paper-2); overflow: hidden; margin-bottom: 10px; }
.quiz__bar { height: 100%; width: 0; background: var(--green-bright); transition: width .3s var(--ease); }
.quiz__count { font-size: .88rem; color: var(--muted); margin-bottom: 20px; }
.quiz__q { font-family: var(--display); font-size: clamp(1.4rem, 2.8vw, 1.85rem); font-weight: 700; color: var(--ink); letter-spacing: -.025em; line-height: 1.2; margin-bottom: 8px; }
.quiz__help { color: var(--muted); font-size: .97rem; }
.quiz__opts { display: grid; gap: 10px; margin: 22px 0; }
.quiz__opt { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 58px; padding: 14px 18px; border: 1.5px solid #c3cfdf; border-radius: var(--r-ctl); background: #fff; font: inherit; font-weight: 600; color: var(--ink); text-align: left; cursor: pointer; transition: border-color .15s, background-color .15s; }
.quiz__opt:hover { border-color: var(--navy-2); background: var(--paper); }
.quiz__opt.is-selected { border-color: var(--green); background: var(--mint); box-shadow: inset 0 0 0 1px var(--green); }
.quiz__opt .icon { width: 22px; height: 22px; padding: 3px; border-radius: 6px; border: 1.5px solid #c3cfdf; color: transparent; }
.quiz__opt.is-selected .icon { background: var(--green); border-color: var(--green); color: #fff; }
.quiz__nav { display: flex; justify-content: space-between; gap: 12px; }
.quiz__result-level { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: .9rem; margin-bottom: 12px; }
.level--alto { background: var(--red-bg); color: var(--red); }
.level--medio { background: var(--amber-bg); color: var(--amber); }
.level--bajo { background: var(--mint); color: var(--green-dark); }
.result-list { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.result-list li { display: flex; gap: 14px; padding: 16px 4px; border-bottom: 1px solid var(--line); margin: 0; }
.result-list li .icon { margin-top: 3px; }
.result-list .is-required .icon { color: var(--red); }
.result-list .is-recommended .icon { color: var(--amber); }
.result-list .is-ok .icon { color: var(--green); }
.result-list a { font-weight: 650; }
.quiz-gate { margin-top: 24px; padding: 24px; border-radius: var(--r-card); background: var(--paper); }
.quiz-gate .lead-form { box-shadow: none; border: 0; padding: 0; background: transparent; }
.quiz-gate .lead-form::before { display: none; }

/* ---------- Pie ---------- */
.site-footer { background: var(--navy-deep); color: #a7b8d1; padding: 64px 0 104px; font-size: .94rem; }
.site-footer a { color: #d3deee; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__top { display: grid; gap: 36px; }
@media (min-width: 640px) { .site-footer__top { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .site-footer__top { grid-template-columns: 1.6fr repeat(5, 1fr); gap: 32px; } .site-footer { padding-bottom: 36px; } }
.site-footer__brand p { margin: 16px 0; }
.site-footer__brand .btn { color: #fff; }
.site-footer__contact { display: flex; align-items: center; gap: 8px; }
.site-footer__title { font-family: var(--display); color: #fff; font-weight: 700; margin-bottom: 14px; font-size: 1rem; letter-spacing: -.01em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer__subtitle { color: #fff; font-weight: 700; margin-top: 22px; font-family: var(--display); }
.site-footer__bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .86rem; }
.site-footer__bottom p { margin: 0; }
.site-footer__bottom ul { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer__bottom li { margin: 0; }

/* ---------- CTA fija movil, volver arriba, aviso de salida ---------- */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: grid; grid-template-columns: 1.3fr 1fr; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(8,26,54,.08); transform: translateY(110%); transition: transform .3s var(--ease); }
.sticky-cta.is-visible { transform: none; }
.sticky-cta .btn { min-height: 48px; padding: 10px 12px; font-size: .93rem; }
.sticky-cta .btn .icon { width: 18px; height: 18px; }
@media (min-width: 1100px) { .sticky-cta { display: none; } }
.to-top { position: fixed; right: 16px; bottom: 88px; z-index: 80; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .2s; }
.to-top .icon { transform: rotate(180deg); }
.to-top.is-visible { opacity: 1; pointer-events: auto; }
@media (min-width: 1100px) { .to-top { bottom: 24px; } }
.exit-modal { width: min(480px, calc(100vw - 32px)); border: 0; border-radius: var(--r-panel); padding: 34px; box-shadow: var(--shadow-panel); color: var(--text); }
.exit-modal::backdrop { background: rgba(8,26,54,.6); backdrop-filter: blur(2px); }
.exit-modal__title { font-family: var(--display); font-size: 1.6rem; font-weight: 700; color: var(--ink); letter-spacing: -.025em; line-height: 1.2; }
.exit-modal__close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; background: var(--paper); border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--ink); }

/* ================= HOME ================= */
/* Expediente del hero: la pieza memorable y la unica animacion de entrada de la web. */
.hero__aside { position: relative; isolation: isolate; }
.dossier { position: relative; background: #fbfcfe; color: var(--text); border-radius: var(--r-panel); box-shadow: var(--shadow-panel); padding: 22px 22px 18px; border: 1px solid #e3e9f2; }
.dossier::before { content: ""; position: absolute; inset: 14px -12px -14px 12px; z-index: -1; border-radius: var(--r-panel); background: #2a4f86; transform: rotate(2.5deg); }
.dossier__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 14px; border-bottom: 1px dashed var(--line); margin-bottom: 4px; }
.dossier__label { font-size: .82rem; color: var(--muted); margin: 0; }
.dossier__title { font-family: var(--display); font-size: 1.3rem; font-weight: 700; color: var(--ink); margin: 2px 0 0; letter-spacing: -.02em; }
.dossier__score { text-align: right; flex: none; }
.dossier__score strong { display: block; font-family: var(--display); font-size: 1.9rem; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.dossier__score span { font-size: .76rem; color: var(--muted); }
.dossier__rows { list-style: none; margin: 0; padding: 0; }
.dossier__row { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid #edf1f6; margin: 0; }
.dossier__row b { font-weight: 650; color: var(--ink); font-size: .97rem; }
.dossier__row small { grid-column: 1; color: var(--muted); font-size: .8rem; }
.status { grid-row: 1 / span 2; grid-column: 2; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status--ok { background: var(--mint); color: var(--green-dark); }
.status--warn { background: var(--amber-bg); color: var(--amber); }
.status--req { background: var(--red-bg); color: var(--red); }
.status--pend { background: var(--paper-2); color: var(--muted); }
.dossier__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; }
.dossier__foot .btn { flex: 1; }
.dossier__stamp { position: absolute; right: -30px; bottom: -36px; z-index: 2; background: #fff; border-radius: 50%; box-shadow: 0 10px 24px -8px rgba(8,26,54,.5); width: 104px; color: var(--green-bright); transform: rotate(-14deg); opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .dossier__row { opacity: 0; transform: translateY(6px); animation: rowIn .45s var(--ease) forwards; }
  .dossier__row:nth-child(1) { animation-delay: .2s; } .dossier__row:nth-child(2) { animation-delay: .38s; } .dossier__row:nth-child(3) { animation-delay: .56s; } .dossier__row:nth-child(4) { animation-delay: .74s; } .dossier__row:nth-child(5) { animation-delay: .92s; }
  .dossier__stamp { animation: stampIn .5s cubic-bezier(.3,1.6,.5,1) 1.3s forwards; }
}
@keyframes rowIn { to { opacity: 1; transform: none; } }
@keyframes stampIn { from { opacity: 0; transform: rotate(-14deg) scale(1.6); } to { opacity: .95; transform: rotate(-14deg) scale(1); } }
@media (prefers-reduced-motion: reduce) { .dossier__stamp { opacity: .95; } }
.hero--home h1 { max-width: 12ch; font-size: clamp(2.6rem, 6.6vw, 4.8rem); }
.hero--home .hero__grid { gap: 56px; }
@media (min-width: 960px) { .hero--home .hero__grid { grid-template-columns: 1.1fr .9fr; } .hero--home { padding: 56px 0 128px; } }
.hero__citations { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }
.hero__citations li { margin: 0; padding: 6px 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,.18); font-size: .84rem; color: #c7d4e8; font-variant-numeric: tabular-nums; }

/* Selector de situaciones (pestañas) */
.situations { display: grid; gap: 24px; }
.situations__tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.situations__tab { flex: none; display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 16px; border-radius: var(--r-ctl); border: 1.5px solid var(--line); background: #fff; font: inherit; font-weight: 600; font-size: .95rem; color: var(--text); cursor: pointer; text-align: left; transition: background-color .15s, border-color .15s, color .15s; }
.situations__tab .icon { width: 18px; height: 18px; color: var(--navy-2); }
.situations__tab:hover { border-color: var(--navy-3); }
.situations__tab[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.situations__tab[aria-selected="true"] .icon { color: var(--mint-ink); }
.situations__panel { display: grid; gap: 28px; padding: 28px 24px; border-radius: var(--r-panel); background: #fff; border: 1px solid var(--line); }
.situations__panel[hidden] { display: none; }
.situations__panel h3 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); line-height: 1.15; }
.situations__laws { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.situations__laws li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); margin: 0; }
.situations__laws a { font-weight: 650; color: var(--ink); text-decoration: none; }
.situations__laws a:hover { color: var(--navy-2); text-decoration: underline; }
.situations__laws small { color: var(--muted); grid-column: 1; font-size: .86rem; }
@media (min-width: 960px) { .situations { grid-template-columns: 300px 1fr; align-items: start; } .situations__tabs { flex-direction: column; overflow: visible; } .situations__tab { width: 100%; } .situations__panel { grid-template-columns: 1fr 1.1fr; padding: 40px; gap: 48px; } }

/* Linea normativa */
.lawline { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.lawline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: rgba(255,255,255,.18); }
.lawline__item { position: relative; padding: 0 0 30px 40px; margin: 0; }
.lawline__item::before { content: ""; position: absolute; left: 2px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--navy); border: 3px solid var(--mint-ink); }
.lawline__item.is-next::before { border-color: #e8a33d; border-style: dashed; }
.lawline__date { font-family: var(--display); font-size: 1.35rem; font-weight: 700; color: #fff; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.lawline__item h3 { color: var(--mint-ink); font-size: 1.02rem; margin: 4px 0 6px; font-family: var(--body); font-weight: 650; letter-spacing: 0; }
.lawline__item.is-next h3 { color: #f3c37c; }
.lawline__item p { color: #b5c5dd; margin: 0; font-size: .95rem; }
.lawline__item a { color: #fff; }
@media (min-width: 1000px) {
  .lawline { grid-template-columns: repeat(6, 1fr); gap: 20px; }
  .lawline::before { left: 0; right: 0; top: 9px; bottom: auto; width: auto; height: 2px; }
  .lawline__item { padding: 44px 0 0; }
  .lawline__item::before { top: 2px; left: 0; }
}

/* Indice de servicios */
.svc-index { display: grid; gap: 40px; }
@media (min-width: 900px) { .svc-index { grid-template-columns: repeat(3, 1fr); gap: 48px; } }
.svc-index__group h3 { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 2px solid var(--ink); margin-bottom: 0; }
.svc-index__group h3 span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--mint); color: var(--green); }
.svc-index__group h3 .icon { width: 18px; height: 18px; }
.svc-index__group ul { list-style: none; margin: 0; padding: 0; }
.svc-index__group li { margin: 0; border-bottom: 1px solid var(--line); }
.svc-index__group a { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; padding: 14px 2px; text-decoration: none; color: var(--ink); }
.svc-index__group a strong { font-weight: 650; }
.svc-index__group a small { grid-column: 1; color: var(--muted); font-size: .88rem; }
.svc-index__group a .icon { grid-row: 1 / span 2; grid-column: 2; width: 18px; height: 18px; color: var(--muted); transition: transform .2s, color .2s; }
.svc-index__group a:hover strong { color: var(--navy-2); }
.svc-index__group a:hover .icon { transform: translateX(4px); color: var(--green); }

/* Legal + tecnico */
.duo { display: grid; gap: 0; border-radius: var(--r-panel); overflow: hidden; border: 1px solid var(--line); }
.duo__col { padding: 32px 28px; background: #fff; }
.duo__col + .duo__col { border-top: 1px solid var(--line); background: var(--paper); }
.duo__col h3 { display: flex; align-items: center; gap: 10px; font-size: 1.35rem; }
.duo__col h3 .icon { color: var(--green); }
.duo__join { padding: 22px 28px; background: var(--navy); color: #c7d4e8; display: flex; gap: 14px; align-items: center; grid-column: 1 / -1; }
.duo__join p { margin: 0; }
.duo__join strong { color: #fff; }
.duo__join .icon { color: var(--mint-ink); width: 28px; height: 28px; }
@media (min-width: 900px) { .duo { grid-template-columns: 1fr 1fr; } .duo__col + .duo__col { border-top: 0; border-left: 1px solid var(--line); } .duo__col { padding: 44px; } .duo__join { padding: 24px 44px; } }

/* Franja de enlaces (sectores) */
.strip { display: grid; gap: 0; border-top: 1px solid var(--line); }
.strip a { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 20px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.strip a > .icon:first-child { width: 26px; height: 26px; color: var(--navy-2); }
.strip strong { font-family: var(--display); font-size: 1.25rem; font-weight: 650; letter-spacing: -.015em; display: block; }
.strip small { color: var(--muted); font-size: .93rem; }
.strip a > .icon:last-child { color: var(--muted); transition: transform .2s; }
.strip a:hover strong { color: var(--navy-2); }
.strip a:hover > .icon:last-child { transform: translateX(4px); color: var(--green); }
@media (min-width: 900px) { .strip--2 { grid-template-columns: 1fr 1fr; column-gap: 48px; } }

.resources { display: grid; gap: 32px; }
@media (min-width: 960px) { .resources { grid-template-columns: 1fr 1.1fr; gap: 64px; } }
.resources__tests { display: grid; gap: 12px; }
.test-tile { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; padding: 18px 20px; border-radius: var(--r-card); background: var(--navy); color: #c7d4e8; text-decoration: none; transition: background-color .2s; }
.test-tile:hover { background: var(--navy-2); color: #fff; }
.test-tile .icon { grid-row: 1 / span 2; width: 26px; height: 26px; color: var(--mint-ink); margin-top: 2px; }
.test-tile strong { color: #fff; font-family: var(--display); font-size: 1.12rem; font-weight: 650; }
.test-tile small { font-size: .9rem; }

/* ---------- Utilidades ---------- */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.text-center { text-align: center; }

/* H1 de servicio mas largos (incluyen la busqueda real): menos cuerpo y mas ancho */
.hero--form h1 { font-size: clamp(2rem, 4.1vw, 3.15rem); max-width: 22ch; letter-spacing: -.03em; }

/* ================= Inmersion: fotos integradas en duotono de marca ================= */
.hero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.hero__bg img { position: absolute; right: 0; top: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.15) brightness(.9); mix-blend-mode: luminosity; opacity: .22;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.9), rgba(0,0,0,.25) 85%); mask-image: linear-gradient(180deg, rgba(0,0,0,.9), rgba(0,0,0,.25) 85%); }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--navy) 0%, rgba(14,42,82,.86) 38%, rgba(14,42,82,.35) 100%); }
@media (min-width: 960px) {
  .hero__bg img { width: 62%; opacity: .5; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%); mask-image: linear-gradient(90deg, transparent 0%, #000 45%); }
  .hero__bg::after { background: linear-gradient(90deg, var(--navy) 0%, rgba(14,42,82,.92) 40%, rgba(14,42,82,.55) 70%, rgba(8,26,54,.7) 100%), linear-gradient(180deg, transparent 60%, var(--navy-deep) 100%); }
}
.hero--photo::after { display: none; }

/* Fotos de contenido: mismo tratamiento de color para que el banco de imagenes parezca una sola serie */
.split__media img { filter: saturate(.75) contrast(1.05); }
.split__media::before { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--r-panel); background: linear-gradient(200deg, rgba(14,42,82,0) 40%, rgba(14,42,82,.45) 100%); mix-blend-mode: multiply; pointer-events: none; }
.split__media { border-radius: var(--r-panel); }

/* ================= Como funciona (modelo real) ================= */
.how__flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; position: relative; }
.how__node { position: relative; margin: 0; padding: 26px 24px; border-radius: var(--r-panel); background: #fff; border: 1px solid var(--line); }
.how__node h3 { margin: 14px 0 8px; font-size: 1.2rem; }
.how__node p { margin: 0; color: var(--muted); }
.how__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--paper-2); color: var(--navy-2); }
.how__icon .icon { width: 24px; height: 24px; }
.how__node--main { background: var(--navy); border-color: var(--navy); color: #c7d4e8; box-shadow: var(--shadow-panel); }
.how__node--main h3 { color: #fff; }
.how__node--main p { color: #c7d4e8; }
.how__node--main .how__icon { background: rgba(111,224,166,.14); color: var(--mint-ink); }
.how__node + .how__node::before { content: ""; position: absolute; left: 50%; top: -16px; width: 2px; height: 16px; background: repeating-linear-gradient(180deg, var(--green-bright) 0 4px, transparent 4px 8px); }
.how__note { display: flex; align-items: center; gap: 10px; margin: 24px 0 0; color: var(--muted); font-size: .95rem; }
.how__note .icon { color: var(--green); }
@media (min-width: 900px) {
  .how__flow { grid-template-columns: 1fr 1.15fr 1fr; gap: 40px; align-items: center; }
  .how__node--main { padding: 36px 32px; }
  .how__node + .how__node::before { left: -40px; top: 50%; width: 40px; height: 2px; background: repeating-linear-gradient(90deg, var(--green-bright) 0 6px, transparent 6px 12px); }
  .how__node + .how__node::after { content: ""; position: absolute; left: -10px; top: calc(50% - 5px); border: 5px solid transparent; border-left-color: var(--green-bright); }
}

/* ================= Sin letra pequena ================= */
.promise { display: grid; gap: 16px; }
@media (min-width: 900px) { .promise { grid-template-columns: 1fr 1fr; gap: 24px; } }
.promise__col { padding: 30px; border-radius: var(--r-panel); background: #fff; border: 1px solid var(--line); }
.promise__col h3 { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; margin-bottom: 18px; }
.promise__col h3 .icon { width: 26px; height: 26px; color: var(--green); }
.promise__col--no h3 .icon { color: var(--red); }
.promise__col ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.promise__col li { padding: 14px 0 14px 26px; margin: 0; border-bottom: 1px solid var(--line); position: relative; }
.promise__col li::before { content: ""; position: absolute; left: 4px; top: 22px; width: 10px; height: 10px; border-radius: 50%; background: var(--green-bright); }
.promise__col--no li::before { background: transparent; border: 2px solid #c3cfdf; }

/* ================= Banda inmersiva con foto (home) ================= */
.immersive { position: relative; overflow: hidden; isolation: isolate; color: #d2ddee; padding: 96px 0; background: var(--navy-deep); }
.immersive__bg { position: absolute; inset: 0; z-index: -2; }
.immersive__bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1); opacity: .35; mix-blend-mode: luminosity; }
.immersive::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8,26,54,.96) 0%, rgba(8,26,54,.8) 45%, rgba(8,26,54,.35) 100%); }
.immersive__inner { display: grid; gap: 32px; align-items: center; }
.immersive h2 { color: #fff; max-width: 18ch; }
.immersive p { max-width: 52ch; font-size: 1.12rem; }
.immersive__card { justify-self: start; padding: 22px 24px; border-radius: var(--r-panel); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(10px); max-width: 360px; }
.immersive__card p { margin: 0 0 6px; font-size: .95rem; }
.immersive__card strong { color: #fff; font-family: var(--display); font-size: 1.15rem; }
.immersive__card .status { display: inline-flex; margin-top: 10px; }
@media (min-width: 960px) { .immersive { padding: 140px 0; } .immersive__inner { grid-template-columns: 1.2fr .8fr; } .immersive__card { justify-self: end; } }
.how { background: var(--paper); }
