@font-face{font-family:"DM Sans";src:url("assets/DMSans.ttf") format("truetype");font-weight:100 1000;font-display:swap}
:root{--yellow:#F5C842;--ink:#0B3D5C;--cream:#FFFAEA;--paper:#fff;--line:#deded4;--muted:#586175;--green:#316653;--shadow:0 12px 40px #1f2d4a08}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:24px}body{margin:0;color:var(--ink);background:var(--cream);font-family:"DM Sans","Segoe UI",system-ui,sans-serif;font-size:16px;line-height:1.55}
button,input,select{font:inherit;color:inherit}button,a,input,select{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:wait}a{color:inherit;text-underline-offset:4px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible,[tabindex]:focus-visible{outline:3px solid #316653;outline-offset:4px}
[hidden]{display:none!important}.location-pill{border:1px solid #d5dacd;border-radius:30px;padding:6px 12px;white-space:nowrap}.location-pill:before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--green);margin-right:7px}
.eyebrow{text-transform:uppercase;letter-spacing:1.8px;font-size:11px;font-weight:900;margin:0 0 15px}
.form-card,.result-card{background:var(--paper);border:1px solid var(--line);border-radius:25px;box-shadow:var(--shadow)}.help{font-size:12px;color:var(--muted);margin:8px 0 14px;line-height:1.55}.tabs{display:flex;border-bottom:1px solid var(--line);gap:21px;margin-bottom:15px}.tab{border:0;border-bottom:3px solid transparent;background:none;padding:7px 0 10px;font-size:14px;font-weight:800}.tab[aria-selected=true]{border-bottom-color:var(--yellow)}
.map-layout{display:grid;grid-template-columns:1.08fr 1fr;gap:13px}.map-box{background:#f7f8f2;border:1px solid #e4e6dc;border-radius:17px;position:relative;overflow:hidden}.map-box svg{display:block;width:100%;height:380px;touch-action:pan-y}.map-path{fill:#e2e7db;stroke:var(--paper);stroke-linejoin:round;transition:fill .15s}.map-code{font-family:"DM Sans",sans-serif;font-size:9px;font-weight:900;text-anchor:middle;dominant-baseline:middle;fill:var(--ink);pointer-events:none;paint-order:stroke;stroke:#ffffffcc;stroke-width:.2em;stroke-linejoin:round}.district-list{height:380px;overflow-y:auto;scrollbar-width:thin;padding:2px 4px 4px 1px}.check-row{display:flex;align-items:center;gap:8px;font-size:12px;line-height:1.3;padding:7px 5px;border-radius:9px;cursor:pointer}.check-row:hover{background:#fff8ec}.check-row:has(input:checked){background:#fff5d5}.check-row input{width:16px;height:16px;flex-shrink:0;accent-color:var(--ink);margin:0}.district-number{font-size:10px;display:inline-grid;place-items:center;border:1px solid #d9dece;border-radius:5px;width:20px;height:20px;flex-shrink:0}.search{width:100%;padding:11px 13px;border:1px solid #cfd3d6;border-radius:12px;background:white;font-size:14px}.neighborhood-list{max-height:330px;overflow-y:auto;scrollbar-width:thin;margin-top:12px}.neighborhood-list .check-row{padding:9px 7px;align-items:start;font-size:14px}.neighborhood-list input{margin-top:4px}.neighborhood-copy{display:grid;gap:1px}.neighborhood-copy small{font-size:11px;color:var(--muted)}.selection{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:14px}.selection:empty{display:none}.selection-title{font-size:13px;font-weight:800;margin-right:4px}.selected-tag{display:inline-flex;align-items:center;gap:9px;border:1px solid #d9d4b8;background:#fff8de;font-size:11px;border-radius:20px;padding:5px 10px;max-width:100%}.selected-tag span{overflow-wrap:anywhere}.selected-tag button{background:none;border:0;padding:0 2px;font-size:15px;line-height:1}
fieldset{margin:0;padding:0;border:0;min-width:0}legend{padding:0;font-size:13px;font-weight:850;margin-bottom:9px}.chips{display:flex;flex-wrap:wrap;gap:8px}.chip{position:relative;cursor:pointer}.chip input{position:absolute;opacity:0;width:1px;height:1px}.chip span{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid #d7dadc;border-radius:30px;padding:9px 14px;font-size:13px;font-weight:750;background:white;line-height:1.2;min-height:39px;transition:background .12s,border-color .12s}.chip input:checked+span{background:var(--yellow);border-color:var(--ink);color:var(--ink);box-shadow:0 2px 0 var(--ink)}.chip input:focus-visible+span{outline:3px solid var(--green);outline-offset:3px}.chip input:disabled+span{opacity:.5}.chip-extra span:before{content:"+";font-size:17px;font-weight:500;line-height:1}.chip-extra input:checked+span:before{content:"✓"}.row-fields{display:grid;grid-template-columns:1fr 1fr;gap:15px}.field{display:grid;gap:7px;font-size:12px;font-weight:800;min-width:0}.field select,.field input{width:100%;height:46px;border:1px solid #ced2d5;border-radius:12px;background:white;padding:9px 12px;font-size:14px;min-width:0}.field input::placeholder{font-size:13px;color:#71798a;font-weight:500}.field select:invalid{color:var(--muted)}.primary{border:1.5px solid var(--ink);border-radius:13px;background:var(--ink);color:var(--yellow);padding:14px 22px;display:flex;align-items:center;justify-content:center;gap:12px;font-weight:850;font-size:16px;width:100%;box-shadow:0 3px 0 #00000012;transition:transform .12s,background .12s}.primary:hover{background:#185371;transform:translateY(-1px)}.error-box{color:#762d24;background:#fff1e8;border:1px solid #c88d77;border-radius:12px;padding:13px 15px;margin-bottom:14px;font-size:14px}
.result-card{padding:28px;border-color:#cdd5c4}.result-range{font-size:18px;font-weight:850;line-height:1.5;overflow-wrap:anywhere}.median-price{font-size:clamp(30px,3vw,43px);line-height:1.2;letter-spacing:-1.3px;font-weight:950;margin:5px 0 7px;overflow-wrap:anywhere}
.skip-link{position:absolute;top:-100px;left:15px;z-index:20;background:white;padding:10px}.skip-link:focus{top:10px}.noscript{padding:20px;text-align:center;background:#fff1e8}.loading-note{font-size:12px;text-align:center;padding:8px;margin:0;background:#fff4d3}
@media(max-width:1000px){.map-layout{grid-template-columns:1fr}.map-box svg{height:340px}.district-list{height:210px;display:grid;grid-template-columns:1fr 1fr;align-content:start}.district-list .list-heading{grid-column:1/-1}}
@media(max-width:760px){.map-box svg{height:300px}.check-row{font-size:12px;padding:7px 3px}.district-number{width:17px;height:17px;font-size:9px}.map-code{font-size:9px}.tab{font-size:13px}.chip span{font-size:12px;padding:9px 12px}.chips{gap:7px}.row-fields{gap:11px}}
@media(max-width:380px){.district-list{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition:none!important;animation:none!important}}

/* Estructura compartida y portada de la v2. */
.site-container {
  max-width: 1220px;
  margin-inline: auto;
  padding-inline: 36px;
}
.site-header {
  position: relative;
  z-index: 30;
  color: var(--yellow);
  background: var(--ink);
}
.site-bar {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
}
.site-logo img:first-child {
  display: block;
  width: 64px;
  height: 64px;
  border-radius: 50%;
}
.site-wordmark {
  display: block;
  width: auto;
  height: 34px;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  font-size: 13px;
  font-weight: 850;
}
.site-nav a,
.site-calculator-toggle {
  text-decoration: none;
}
.site-nav > a,
.site-calculator-toggle {
  padding-block: 14px;
}
.site-nav a:hover,
.site-nav a[aria-current="page"],
.site-calculator-toggle:hover,
.site-calculator-toggle.is-current {
  text-decoration: underline;
  text-underline-offset: 6px;
}
.site-header :focus-visible {
  outline-color: var(--yellow);
}
.site-calculator {
  position: relative;
}
.site-calculator-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
}
.site-chevron {
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}
.site-dropdown {
  position: absolute;
  right: 0;
  top: 100%;
  width: 292px;
  padding: 8px;
  border: 1px solid #275875;
  border-radius: 12px;
  background: var(--ink);
  box-shadow: 0 12px 28px #0b3d5c20;
}
.site-dropdown a {
  display: grid;
  justify-items: start;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 14px;
}
.site-dropdown a:hover {
  background: #184c6b;
}
.site-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--cream);
}
.site-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid #f5c84270;
  border-radius: 8px;
  background: transparent;
}
.site-menu-toggle span {
  display: block;
  height: 2px;
  margin-block: 4px;
  background: var(--yellow);
}
.page-home {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  background: var(--yellow);
}
.landing-hero {
  display: flex;
  flex: 1;
  align-items: center;
}
.landing-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 36px;
  width: 100%;
  min-height: 590px;
  padding-top: 40px;
  padding-bottom: 22px;
}
.landing-content {
  padding-bottom: 32px;
}
.landing-wordmark {
  margin: 0 0 26px;
}
.landing-wordmark img {
  display: block;
  width: min(100%, 440px);
  height: auto;
}
.landing-copy {
  margin: 0 0 28px;
  font-size: clamp(18px, 1.7vw, 24px);
  line-height: 1.45;
}
.landing-copy strong {
  font-weight: 850;
}
.site-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 190px;
  max-width: 100%;
  padding: 12px 24px;
  border: 2px solid var(--ink);
  border-radius: 2px;
  color: var(--yellow);
  background: var(--ink);
  font-size: 14px;
  font-weight: 850;
  text-align: center;
  text-decoration: none;
}
.site-button:hover {
  background: #185371;
}
.landing-key img {
  display: block;
  width: 100%;
  height: clamp(340px, 42vw, 540px);
  object-fit: contain;
}
.site-footer {
  padding-block: 44px 24px;
  color: var(--cream);
  background: var(--ink);
}
.site-footer a:focus-visible {
  outline-color: var(--yellow);
}
.site-footer-columns {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 30px;
}
.site-footer-brand p {
  max-width: 280px;
  margin: 16px 0 0;
  font-size: 14px;
}
.site-footer-column h2 {
  margin: 4px 0 15px;
  color: var(--yellow);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.site-footer-column nav {
  display: grid;
  justify-items: start;
  gap: 12px;
  font-size: 13px;
}
.site-footer-column a {
  text-decoration: none;
}
.site-footer-column a:hover {
  text-decoration: underline;
}
.site-footer-legal {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px 30px;
  padding-top: 18px;
  border-top: 1px solid #fff8ec30;
  font-size: 12px;
}
.site-footer-legal p {
  margin: 0;
}
.site-metadata-error {
  font-weight: 850;
}
.site-page {
  min-height: 440px;
  padding-top: 64px;
  padding-bottom: 72px;
}
.site-page h1 {
  margin: 12px 0 18px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.15;
  letter-spacing: -1px;
}
.site-page > p {
  max-width: 620px;
}
.site-page .site-button {
  margin-top: 20px;
}
.site-page-status {
  display: inline-block;
  margin: 0;
  padding: 5px 12px;
  border-radius: 20px;
  background: var(--yellow);
  font-size: 12px;
  font-weight: 850;
}
.wizard-main {
  padding-top: 26px;
  padding-bottom: 64px;
}
.wizard-step {
  padding: 32px 32px 8px;
}
.wizard-step:not([hidden]) {
  animation: step-in .28s ease both;
}
@keyframes step-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.wizard-step > :last-child {
  margin-bottom: 26px;
}
.step-heading {
  display: flex;
  align-items: center;
  gap: 18px;
}
.step-number {
  position: relative;
  flex-shrink: 0;
  padding-bottom: 9px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .04em;
}
.step-number::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 3px;
  background: var(--yellow);
}
.step-heading h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.012em;
}
.step-heading h2:focus {
  outline: none;
}
.step-heading + .chips,
.step-heading + .row-fields,
.step-heading + fieldset {
  margin-top: 22px;
}
.step-help {
  margin: 12px 0 18px;
  color: var(--muted);
  font-size: 14px;
}
.requirement {
  margin-bottom: 28px;
}
.requirement legend {
  margin-bottom: 12px;
  font-size: 17px;
  font-weight: 850;
}
.requirement .step-help {
  margin-bottom: 0;
}
.secondary-button {
  margin-top: 16px;
  padding: 10px 18px;
  border: 1.5px solid var(--ink);
  border-radius: 30px;
  color: var(--ink);
  background: transparent;
  font-weight: 800;
  font-size: 14px;
}
.secondary-button:hover,
.secondary-button[aria-pressed="true"] {
  background: #fff5d5;
}
.why {
  margin: 20px 0 22px;
  font-size: 13px;
}
.why summary {
  cursor: pointer;
  font-weight: 800;
}
.why p {
  margin: 8px 0 0;
  color: var(--muted);
}
.wizard-bottom {
  padding: 18px 30px 26px;
  border-top: 1px solid var(--line);
  background: #fcfcf8;
  border-radius: 0 0 25px 25px;
}
.wizard-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.step-count {
  margin: 0 auto 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}
.wizard-nav #prev-step:not([hidden]) + .step-count {
  margin-left: 4px;
}
.result-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
}
.result-actions .secondary-button {
  margin-top: 0;
}
/* Pantalla de resultado y alternativas. */
.result-screen .result-card {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  grid-template-areas: "mascot main" "origin extra" "remember remember";
  column-gap: 32px;
  row-gap: 14px;
  padding: 36px;
  border: 0;
  border-radius: 28px;
  box-shadow: 0 18px 50px #0b3d5c14;
}
.result-card:focus {
  outline: none;
}
.result-mascot {
  position: relative;
  grid-area: mascot;
  min-height: 150px;
}
.result-mascot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.result-main { grid-area: main; }
.result-origin { grid-area: origin; align-self: start; }
.result-extra { grid-area: extra; display: grid; gap: 14px; }
.origin-box { grid-column: 1 / -1; }
.remember { grid-area: remember; }
.result-summary {
  margin: 0 0 8px;
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 600;
  line-height: 1.35;
}
.result-screen .median-price {
  display: inline-block;
  margin: 0 0 8px;
  background: linear-gradient(transparent 64%, #f5c84299 64%);
  font-size: clamp(44px, 8vw, 72px);
  font-weight: 850;
  line-height: 1.1;
  letter-spacing: -.03em;
}
.result-screen .result-range {
  margin: 4px 0 14px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
}
.result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}
.result-meta span + span:not(:empty)::before {
  content: "·";
  margin-right: 14px;
  color: var(--muted);
}
.result-note {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff5d5;
  font-size: 14px;
  font-weight: 600;
}
.result-card .why {
  margin: 18px 0 0;
}
.expectation {
  margin-top: 24px;
  padding: 28px 32px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 18px 50px #0b3d5c14;
}
.expectation h2 {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 800;
}
.expect-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.expect-button {
  padding: 12px 18px;
  border: 1.5px solid var(--ink);
  border-radius: 30px;
  background: #fff;
  font-weight: 700;
}
.expect-button[aria-pressed="true"] {
  background: var(--yellow);
  box-shadow: 0 2px 0 var(--ink);
}
.expect-panel {
  margin-top: 20px;
}
.target-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
}
.target-row .field {
  flex: 1;
  min-width: 200px;
  max-width: 340px;
}
.target-row .secondary-button {
  margin-top: 0;
}
.expect-message {
  margin: 18px 0 0;
  font-size: 15px;
}
.suggestions {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.suggestion {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--cream);
}
.suggestion.is-reached {
  border-color: var(--ink);
  background: #fff5d5;
}
.suggestion-text {
  display: grid;
  gap: 2px;
}
.suggestion-price {
  color: var(--muted);
  font-size: 15px;
}
.suggestion-reach {
  font-size: 13px;
  font-weight: 800;
}
.suggestion .secondary-button {
  margin-top: 0;
  white-space: nowrap;
}
/* Mapa de barrios oficiales. */
.barrio-side {
  min-width: 0;
}
.barrio-side .neighborhood-list {
  max-height: 290px;
}
/* Páginas de contenido: Metodología y Sobre nosotras. */
.doc-page {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
  padding-top: 56px;
  padding-bottom: 88px;
}
.doc-single {
  grid-template-columns: minmax(0, 1fr);
}
.doc-index {
  position: sticky;
  top: 24px;
}
.doc-index h2 {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.doc-index ol {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.doc-index a {
  display: block;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}
.doc-index a:hover {
  background: #fff5d5;
}
.doc-body {
  max-width: 720px;
}
.doc-body h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.02em;
}
.doc-lead {
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1.5;
}
.doc-body section {
  margin-top: 44px;
  scroll-margin-top: 24px;
}
.doc-body h2 {
  margin: 0 0 14px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.012em;
}
.doc-body h3 {
  margin: 26px 0 6px;
  font-size: 18px;
  font-weight: 750;
}
.doc-body p,
.doc-body li {
  font-size: 16px;
  line-height: 1.7;
}
.doc-body ul,
.doc-body ol {
  padding-left: 22px;
}
.doc-body li {
  margin-bottom: 8px;
}
.doc-body li::marker {
  color: var(--ink);
  font-weight: 800;
}
.doc-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  margin: 18px 0;
}
.doc-facts div {
  padding: 16px 18px;
  border-radius: 16px;
  background: #fff5d5;
}
.doc-facts dt {
  font-size: 13px;
  font-weight: 700;
}
.doc-facts dd {
  margin: 4px 0 0;
  font-size: 24px;
  font-weight: 800;
}
.doc-body .site-button {
  margin-top: 40px;
}
@media (max-width: 1000px) {
  .doc-page {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 36px;
  }
}
@media (max-width: 760px) {
  .doc-page {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding-top: 36px;
    padding-bottom: 56px;
  }
  .doc-index {
    position: static;
    padding: 16px;
    border-radius: 16px;
    background: #fff;
  }
  .doc-body h2 {
    font-size: 23px;
  }
  .doc-lead {
    font-size: 17px;
  }
}
/* Zonas y municipios de fuera de la capital. Todos los mapas usan el mismo gris. */
.map-path,
.zone-path,
.town-path,
.barrio-path,
.town-path.is-inert,
.barrio-path.is-inert {
  fill: #e4e2d9;
  stroke: #fff;
  stroke-width: 1;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  transition: fill .15s;
}
.zone-path {
  cursor: pointer;
}
.town-path.is-inert,
.barrio-path.is-inert {
  pointer-events: none;
}
/* El color depende solo de si la zona está marcada; el hover solo existe con ratón. */
@media (hover: hover) {
  .map-path:not([aria-pressed="true"]):hover,
  .zone-path:not([aria-pressed="true"]):hover,
  .barrio-path:not([aria-pressed="true"]):hover,
  .town-path:not([aria-pressed="true"]):hover {
    fill: #f8e3a0;
  }
}
.map-path[aria-pressed="true"],
.zone-path[aria-pressed="true"],
.barrio-path[aria-pressed="true"],
.town-path[aria-pressed="true"] {
  fill: var(--yellow);
}
.map-path[aria-pressed="true"],
.barrio-path[aria-pressed="true"] {
  stroke: var(--ink);
}
.map-path:focus,
.zone-path:focus,
.barrio-path:focus,
.town-path:focus {
  outline: none;
}
.map-path:focus-visible,
.zone-path:focus-visible,
.barrio-path:focus-visible,
.town-path:focus-visible {
  stroke: var(--ink);
  stroke-width: 2.5;
}
.map-box svg .map-code {
  visibility: hidden;
}
.map-box svg.show-codes .map-code {
  visibility: visible;
}
@media (max-width: 1000px) {
  .site-container {
    padding-inline: 24px;
  }
  .landing-grid {
    gap: 18px;
    min-height: 450px;
  }
  .site-footer-columns {
    gap: 28px;
  }
  .site-footer-legal {
    flex-wrap: wrap;
  }
}
@media (max-width: 760px) {
  .site-container {
    padding-inline: 22px;
  }
  .site-bar {
    display: grid;
    grid-template-columns: 1fr auto;
    min-height: 76px;
    gap: 0;
    padding-block: 10px;
  }
  .site-logo img:first-child {
    width: 56px;
    height: 56px;
  }
  .site-menu-toggle {
    display: block;
  }
  .site-nav {
    display: none;
    grid-column: 1 / -1;
    align-items: stretch;
    gap: 0;
    padding-block: 12px 4px;
  }
  .site-nav[data-open="true"] {
    display: flex;
    flex-direction: column;
  }
  .site-nav > a,
  .site-calculator-toggle {
    width: 100%;
    min-height: 48px;
    padding: 14px 0;
  }
  .site-calculator-toggle {
    justify-content: space-between;
  }
  .site-dropdown {
    position: static;
    width: 100%;
    margin-bottom: 10px;
    box-shadow: none;
  }
  .landing-grid {
    grid-template-columns: 1fr;
    gap: 0;
    min-height: auto;
    padding-top: 38px;
    padding-bottom: 8px;
    text-align: center;
  }
  .landing-content {
    padding-bottom: 0;
  }
  .landing-wordmark {
    margin-bottom: 20px;
  }
  .landing-wordmark img {
    width: min(100%, 300px);
    margin-inline: auto;
  }
  .landing-copy {
    margin-bottom: 24px;
    font-size: 18px;
  }
  .landing-key img {
    max-width: 340px;
    height: 300px;
    margin: 22px auto 0;
  }
  .site-footer {
    padding-top: 30px;
  }
  .site-footer-columns {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
  }
  .site-footer-brand {
    grid-column: 1 / -1;
  }
  .site-footer-brand p {
    max-width: 300px;
  }
  .site-footer-legal {
    display: grid;
    gap: 12px;
  }
  .site-page {
    min-height: 380px;
    padding-top: 40px;
    padding-bottom: 48px;
  }
  .step-number {
    font-size: 13px;
  }
  .result-screen .result-card {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "mascot" "main" "origin" "extra" "remember";
    row-gap: 14px;
    padding: 26px 22px;
  }
  .result-mascot {
    width: 120px;
    min-height: 120px;
  }
  .expectation {
    padding: 24px 20px;
  }
  .suggestion {
    flex-direction: column;
    align-items: stretch;
  }
  .result-actions .navy-button {
    flex: 1 1 100%;
  }
  .wizard-step {
    padding: 24px 18px 4px;
  }
  .wizard-bottom {
    padding: 16px 18px 20px;
  }
  .wizard-nav {
    flex-wrap: wrap;
  }
  .step-count {
    order: -1;
    width: 100%;
    margin: 0;
  }
  .wizard-nav .navy-button + .navy-button,
  .wizard-nav #next-step,
  .wizard-nav #calculate {
    margin-left: auto;
  }
  .wizard-nav #prev-step:not([hidden]) + .step-count {
    margin-left: 0;
  }
}
/* Calculadora: contenedor común, título y pestañas de fases. */
.cal-wrap {
  max-width: 1000px;
  margin-inline: auto;
  padding-inline: 24px;
}
.cal-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-top: 36px;
}
.cal-title h1 {
  margin: 0;
}
.cal-title-img {
  display: block;
  width: min(100%, 340px);
  height: auto;
}
.cal-subtitle {
  max-width: 640px;
  margin: 14px 0 0;
  font-size: 17px;
  line-height: 1.5;
}
.cal-title .location-pill {
  flex-shrink: 0;
  margin: 6px 0 0;
  border-color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}
.phase-bar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid #d9d3bd;
}
.phase {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 8px 14px 0;
}
.phase::after {
  content: "";
  position: absolute;
  right: 8px;
  bottom: -2px;
  left: 0;
  height: 3px;
}
.phase.is-active::after {
  background: var(--yellow);
}
.phase.is-done::after {
  background: var(--ink);
}
.phase-num {
  color: #8a8f98;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
}
.phase-label {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
}
.phase.is-soon .phase-num,
.phase.is-soon .phase-label,
.phase small {
  color: #a9adb5;
}
.phase small {
  font-size: 11px;
  font-weight: 600;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
  clip-path: inset(50%);
}
/* Pregunta 1: elección inicial y mapas con zoom. */
.choice-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 6px 0 16px;
}
.choice-card {
  position: relative;
  display: block;
  flex: 0 1 auto;
  cursor: pointer;
}
.choice-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.choice-body {
  display: grid;
  gap: 2px;
  height: 100%;
  padding: 12px 18px;
  border: 1.5px solid #d7dadc;
  border-radius: 14px;
  background: #fff;
  transition: border-color .12s, background .12s;
}
.choice-body strong {
  font-size: 16px;
  font-weight: 800;
}
.choice-body small {
  color: var(--muted);
  font-size: 14px;
}
.choice-card input:checked + .choice-body {
  border-color: var(--ink);
  background: var(--yellow);
  box-shadow: 0 3px 0 var(--ink);
}
.choice-card input:checked + .choice-body small {
  color: var(--ink);
}
.choice-card input:focus-visible + .choice-body {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}
.compare-options {
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--cream);
}
.map-box svg {
  cursor: grab;
}
.map-box .map-toolbar {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: flex;
  gap: 4px;
  padding: 0;
}
.map-box .map-toolbar button {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid #cdd2c3;
  border-radius: 8px;
  background: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}
.map-box .map-toolbar .map-reset {
  font-size: 12px;
}
.map-tip {
  position: absolute;
  z-index: 3;
  max-width: 240px;
  padding: 6px 10px;
  border-radius: 8px;
  color: #fff;
  background: var(--ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  pointer-events: none;
}
.list-heading {
  margin: 14px 4px 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.warning-box {
  margin: 18px 0 0;
  padding: 12px 14px;
  border: 1px solid #e0a43a;
  border-radius: 12px;
  color: #6b4300;
  background: #fff3d6;
  font-size: 14px;
  font-weight: 650;
}
/* Botones azules, globos de información y bloques del resultado. */
.navy-button {
  padding: 12px 22px;
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  color: #fff;
  background: var(--ink);
  font-size: 14px;
  font-weight: 800;
}
.navy-button:hover:not(:disabled) {
  background: #185371;
}
.navy-button:disabled {
  opacity: .6;
  cursor: not-allowed;
}
.navy-button small {
  margin-left: 8px;
  font-size: 12px;
  font-weight: 600;
}
.next-phase {
  margin-top: 14px;
}
.link-button {
  padding: 4px 0;
  border: 0;
  background: none;
  font-size: 14px;
  font-weight: 800;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.tip {
  position: relative;
  display: inline-block;
}
.tip-bubble {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 6;
  display: none;
  width: max-content;
  max-width: min(320px, 78vw);
  padding: 10px 12px;
  border-radius: 10px;
  color: #fff;
  background: var(--ink);
  box-shadow: 0 8px 24px #0b3d5c30;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  text-align: left;
}
.tip:hover .tip-bubble,
.tip:has(button:focus-visible) .tip-bubble,
.tip.is-open .tip-bubble {
  display: block;
}
.count-link {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 800;
  text-decoration: underline dotted;
  text-underline-offset: 5px;
}
.info-button {
  width: 18px;
  height: 18px;
  padding: 0;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: none;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  vertical-align: middle;
}
.remember {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid #d4ccb0;
  border-radius: 14px;
  background: #fffdf6;
  font-size: 14px;
  line-height: 1.6;
}
.origin-box {
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--cream);
  font-size: 14px;
}
.origin-box p {
  margin: 0 0 8px;
}
.origin-box p:last-child {
  margin: 0;
}
.variant-bar {
  position: sticky;
  top: 0;
  z-index: 8;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  margin: 0 0 16px;
  padding: 12px 16px;
  border: 1px solid var(--ink);
  border-radius: 12px;
  background: #fff5d5;
  box-shadow: 0 8px 24px #0b3d5c20;
}
.variant-bar p {
  margin: 0;
  font-size: 14px;
}
.variant-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.suggestion-heading {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.combinations h3 {
  margin: 22px 0 10px;
  font-size: 18px;
}
.combinations .suggestions {
  margin-top: 0;
}
#try-others {
  margin-top: 18px;
}
.requirement legend + .step-help {
  margin: 0 0 12px;
}
.expect-panel .expect-message {
  margin: 18px 0 14px;
}
/* Páginas de contenido: índice lateral, títulos manuscritos y tarjetas. */
.doc-index {
  padding: 18px 12px;
  border-radius: 18px;
  background: #f3e9d2;
}
.doc-index h2 {
  padding-left: 12px;
}
.doc-index a {
  border-left: 3px solid transparent;
  border-radius: 0 10px 10px 0;
}
.doc-index a:hover {
  background: #fff5d5;
}
.doc-index a.is-active {
  border-left-color: var(--yellow);
  color: #fff;
  background: var(--ink);
  font-weight: 800;
}
.doc-title {
  margin: 0 0 14px;
}
.doc-title-img {
  display: block;
  width: min(100%, 260px);
  height: auto;
}
.about-page {
  max-width: 940px;
  padding-top: 56px;
  padding-bottom: 88px;
}
.about-page .doc-title {
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
}
.about-page .doc-lead {
  max-width: 720px;
  margin: 0 0 28px;
  font-size: 19px;
  line-height: 1.5;
}
.about-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  margin: 0 0 22px;
  padding: 26px 30px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 50px #0b3d5c0f;
}
.about-card:nth-of-type(even) {
  grid-template-columns: minmax(0, 1fr) 150px;
}
.about-card:nth-of-type(even) .about-key {
  order: 2;
}
.about-key {
  position: relative;
  height: 180px;
}
.about-key img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.about-text h2 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 800;
}
.about-text p {
  margin: 0 0 8px;
  line-height: 1.7;
}
.about-text p:last-child {
  margin-bottom: 0;
}
@media (max-width: 760px) {
  .cal-wrap {
    padding-inline: 16px;
  }
  .cal-title {
    flex-direction: column;
    gap: 14px;
    padding-top: 26px;
  }
  .cal-subtitle {
    font-size: 16px;
  }
  .phase-bar {
    margin-top: 22px;
  }
  .phase {
    padding-right: 4px;
  }
  .phase::after {
    right: 4px;
  }
  .phase-label {
    font-size: 12px;
    overflow-wrap: anywhere;
  }
  .phase small {
    font-size: 10px;
  }
  .choice-cards {
    grid-template-columns: minmax(0, 1fr);
  }
  .variant-actions .navy-button {
    flex: 1 1 100%;
  }
  .result-main {
    position: relative;
  }
  .about-card,
  .about-card:nth-of-type(even) {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 22px 20px;
  }
  .about-card:nth-of-type(even) .about-key {
    order: 0;
  }
  .about-key {
    width: 110px;
    height: 120px;
  }
}
/* Escala tipográfica y formas comunes: mismo tamaño y misma forma para lo que juega el mismo papel. */
:root {
  --r-card: 24px;
  --r-box: 14px;
}
.form-card,
.result-card,
.expectation,
.about-card,
.doc-index {
  border-radius: var(--r-card);
}
.remember,
.result-note,
.warning-box,
.origin-box,
.variant-bar,
.suggestion,
.compare-options,
.choice-body,
.error-box,
.map-box,
.doc-facts div,
.field input,
.field select,
.search {
  border-radius: var(--r-box);
}
.district-number {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  font-size: 11px;
}
/* Cuerpo de texto 16 px; textos de ayuda y de interfaz 15 px; etiquetas y chips 14 px; detalles 13 px. */
.step-help,
.why,
.why summary,
.remember,
.result-note,
.warning-box,
.origin-box,
.variant-bar p,
.expect-message,
.more-ideas,
.error-box,
.cal-subtitle {
  font-size: 15px;
  line-height: 1.55;
}
.cal-subtitle {
  font-size: 16px;
}
.field,
.chip span,
.check-row,
.neighborhood-list .check-row,
.tab,
.selection-title,
.selected-tag,
.result-meta,
.suggestion-price,
.link-button,
.search,
.field input,
.field select,
.secondary-button,
.navy-button,
.expect-button {
  font-size: 14px;
}
.field {
  font-weight: 700;
}
.field input::placeholder {
  font-size: 14px;
}
.neighborhood-copy small,
.suggestion-reach,
.map-tip,
.tip-bubble,
.phase small,
.site-footer-legal {
  font-size: 13px;
}
.requirement legend {
  font-size: 18px;
}
.step-heading h2,
.expectation h2,
.doc-body h2,
.about-text h2 {
  font-size: 26px;
  line-height: 1.2;
}
.combinations h3 {
  font-size: 18px;
}
.suggestion-text strong {
  font-size: 16px;
}
.doc-body p,
.doc-body li,
.about-text p {
  font-size: 16px;
}
@media (max-width: 760px) {
  .step-heading h2,
  .expectation h2,
  .doc-body h2,
  .about-text h2 {
    font-size: 22px;
  }
  .check-row {
    font-size: 14px;
  }
}
/* Separación entre preguntas del paso 2. */
.wizard-step .requirement {
  margin-bottom: 24px;
  padding-bottom: 24px;
  background: linear-gradient(var(--line), var(--line)) bottom / 100% 1px no-repeat;
}
/* Botones de navegación: pequeños, azules y con flecha. */
.navy-button {
  white-space: nowrap;
}
.wizard-nav .navy-button {
  padding: 10px 18px;
}
.more-ideas {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.more-ideas a {
  font-weight: 800;
}
.step-help + .requirement {
  margin-top: 8px;
}
/* Listas de Metodología: sin viñetas, con una raya amarilla (o el número) y una línea debajo de cada punto. */
.doc-body ul,
.doc-body ol {
  margin: 14px 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.doc-body li {
  position: relative;
  margin: 0;
  padding: 12px 0 12px 38px;
  border-bottom: 1px solid var(--line);
}
.doc-body ul > li::before {
  content: "";
  position: absolute;
  top: 1.3em;
  left: 0;
  width: 22px;
  height: 3px;
  background: var(--yellow);
}
.doc-body ol {
  counter-reset: item;
}
.doc-body ol > li {
  counter-increment: item;
}
.doc-body ol > li::before {
  content: counter(item, decimal-leading-zero);
  position: absolute;
  top: 12px;
  left: 0;
  color: #8a8f98;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
}
@media (max-width: 760px) {
  .tip {
    position: static;
  }
  .tip-bubble {
    top: auto;
    right: 0;
    left: 0;
    width: auto;
    max-width: none;
  }
}
/* Fase 3 · Tu hipoteca. */
.mortgage .wizard {
  margin-bottom: 0;
}
.field-wide {
  max-width: 420px;
}
.rates {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.mortgage .choice-cards {
  margin-bottom: 20px;
}
.mortgage .wizard-step .why {
  margin-top: 8px;
}
.mortgage-card {
  display: block;
}
.mortgage .price-picker {
  margin: 0 0 18px;
  padding: 0 0 18px;
  border: 0;
  background: linear-gradient(var(--line), var(--line)) bottom / 100% 1px no-repeat;
}
.mortgage .price-picker legend {
  font-size: 18px;
}
.price-other {
  max-width: 260px;
  margin-top: 12px;
}
.mr-headline {
  margin: 0 0 10px;
  font-size: clamp(20px, 2.6vw, 26px);
  line-height: 1.35;
}
.mr-headline strong {
  background: linear-gradient(transparent 62%, #f5c84299 62%);
  font-weight: 850;
}
.mr-limit {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 15px;
}
.traffic {
  display: grid;
  gap: 2px;
  margin: 0 0 14px;
  padding: 12px 16px;
  border-left: 6px solid var(--line);
  border-radius: var(--r-box);
  background: var(--cream);
  font-size: 15px;
}
.traffic-verde { border-left-color: #2e8b57; }
.traffic-ambar { border-left-color: #e0a43a; }
.traffic-rojo { border-left-color: #c0392b; }
.warning-box span {
  display: block;
}
.warning-box span + span {
  margin-top: 6px;
}
.mr-block {
  margin-top: 24px;
}
.mr-block h2 {
  margin-bottom: 14px;
}
.breakdown {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.breakdown th,
.breakdown td {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.breakdown th {
  padding-right: 16px;
  font-weight: 600;
}
.breakdown td {
  text-align: right;
  white-space: nowrap;
  font-weight: 700;
}
.breakdown .total-row th,
.breakdown .total-row td {
  font-size: 17px;
  font-weight: 850;
}
.compare-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.compare-card {
  padding: 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-box);
  background: #fff;
}
.compare-card.is-selected {
  border-color: var(--ink);
  background: #fff5d5;
}
.compare-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}
.compare-card dl {
  display: grid;
  gap: 2px;
  margin: 0;
  font-size: 15px;
}
.compare-card dt {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}
.compare-card dd {
  margin: 0;
  font-weight: 750;
}
.legal-note {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 13px;
}
@media (max-width: 760px) {
  .rates,
  .compare-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .breakdown td {
    white-space: normal;
  }
}
/* Fase 4 · Tu ahorro y fase 5 · Tu Keyday. */
.field input[type="range"] {
  width: 100%;
  height: auto;
  padding: 0;
  border: 0;
  background: none;
  accent-color: var(--ink);
}
.field output {
  font-weight: 850;
}
.saving-chart {
  display: block;
  width: 100%;
  height: auto;
  max-height: 360px;
}
.saving-split {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 16px;
  margin: 14px 0 0;
  font-size: 15px;
}
.saving-split dt {
  color: var(--muted);
}
.saving-split dd {
  margin: 0;
  font-weight: 800;
  text-align: right;
}
.live-sliders {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.ky-hero {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}
.ky-img {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: contain;
}
.ky-hero h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
}
.ky-hero h2:focus {
  outline: none;
}
.ky-sheet {
  display: grid;
  grid-template-columns: minmax(120px, 200px) minmax(0, 1fr);
  gap: 0;
  margin: 0;
  font-size: 15px;
}
.ky-sheet dt,
.ky-sheet dd {
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.ky-sheet dt {
  color: var(--muted);
}
.ky-sheet dd {
  font-weight: 750;
}
.ky-change {
  display: inline-block;
}
.ky-change summary {
  display: inline-block;
  list-style: none;
  cursor: pointer;
}
.ky-change summary::-webkit-details-marker {
  display: none;
}
.ky-change-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.ky-change-list .secondary-button {
  margin-top: 0;
}
@media (max-width: 760px) {
  .live-sliders {
    grid-template-columns: minmax(0, 1fr);
  }
  .ky-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .ky-img {
    width: 120px;
    height: 130px;
  }
  .ky-sheet {
    grid-template-columns: minmax(0, 1fr);
  }
  .ky-sheet dt {
    padding-bottom: 0;
    border-bottom: 0;
  }
}
/* Descargar resumen: al imprimir solo queda la ficha de Tu Keyday. */
@media print {
  .skip-link,
  .site-header,
  .site-footer,
  .cal-title,
  .phase-bar,
  .result-actions,
  .loading-note,
  .noscript,
  [data-storage-note],
  #app-error {
    display: none !important;
  }
  body {
    background: #fff;
  }
  .cal-wrap {
    max-width: none;
    padding: 0;
  }
  .result-card,
  .expectation {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
  }
}
/* Entrada a la calculadora: dos opciones grandes y la pantalla del precio conocido. */
.start-screen h2,
.known-screen h2 {
  margin: 0 0 8px;
  font-weight: 800;
}
.start-screen h2 {
  font-size: 22px;
  line-height: 1.2;
}
.start-screen h2:focus,
.known-screen h2:focus {
  outline: none;
}
.start-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.start-card {
  display: grid;
  gap: 2px;
  align-content: start;
  padding: 12px 18px;
  border: 1.5px solid #d7dadc;
  border-radius: 14px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  text-align: left;
  transition: border-color .12s, background .12s;
}
.start-card:hover {
  border-color: var(--ink);
  background: #fff5d5;
}
.start-card:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}
.start-card strong {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
}
.start-card small {
  color: var(--muted);
  font-size: 14px;
}
.known-screen {
  padding: 32px;
}
.known-screen .wizard-nav {
  justify-content: flex-start;
  margin-top: 22px;
}
.ccaa-list .chip.is-disabled {
  cursor: not-allowed;
}
.ccaa-list .chip.is-disabled span {
  border-style: dashed;
  color: #8a8f98;
  background: #f1f0ea;
  box-shadow: none;
}
.ccaa-list .chip small {
  margin-left: 6px;
  font-size: 11px;
  font-weight: 700;
}
/* Fase 3 en una sola página: una tarjeta por pregunta. */
.mortgage-form .q-card {
  margin-top: 0;
  margin-bottom: 22px;
  scroll-margin-top: 24px;
}
.q-card .step-heading {
  margin-bottom: 16px;
}
.q-context {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.55;
}
.q-card .q-error {
  margin: 16px 0 0;
}
.q-card.is-invalid {
  outline: 3px solid #c0392b;
  outline-offset: -3px;
}
.q-card .why {
  margin: 18px 0 0;
}
.q-learn {
  margin: 12px 0 0;
  font-size: 13px;
}
.q-card fieldset.requirement:last-of-type {
  margin-bottom: 4px;
}
.net-box {
  margin-top: 14px;
  padding: 14px 18px;
  border-radius: 16px;
  background: #fff5d5;
}
.net-text {
  margin: 0 0 10px;
  font-size: 15px;
}
.net-box .field {
  margin-top: 12px;
}
.rate-explain {
  margin-bottom: 18px;
}
.rate-explain p {
  margin: 0 0 8px;
  line-height: 1.55;
}
.rate-preview {
  margin: 4px 0 0;
}
.rate-preview h3 {
  margin: 0 0 4px;
  font-size: 16px;
}
.rate-preview .learn-table td {
  font-weight: 750;
}
.mortgage-bottom {
  padding: 4px 0 8px;
}
/* Barras de «cuánto presta el banco» y del desglose del ahorro. */
.bar-chart {
  display: grid;
  gap: 12px;
  margin: 0 0 14px;
}
.bar-label {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 650;
}
.bar-svg {
  display: block;
  width: 100%;
  height: 22px;
}
.bar-track {
  fill: #efe9d8;
}
.bar-fill {
  fill: var(--ink);
}
.bar-price {
  fill: #9bb3c4;
}
.bar-income {
  fill: var(--ink);
}
.use-type {
  margin-top: 14px;
}
.use-type:disabled {
  background: var(--ink);
  color: var(--yellow);
  cursor: default;
}
@media (max-width: 760px) {
  .start-cards {
    grid-template-columns: minmax(0, 1fr);
  }
  .start-screen h2 {
    font-size: 22px;
  }
  .known-screen {
    padding: 22px 18px;
  }
  .rates {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/* Aprende: una tarjeta por concepto. */
.learn-page .doc-lead {
  margin-bottom: 14px;
}
.learn-note {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 14px;
}
.doc-body .learn-note {
  font-size: 14px;
}
.learn-card {
  margin: 0 0 22px;
  padding: 28px 32px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 50px #0b3d5c0f;
  scroll-margin-top: 24px;
}
.learn-card h2 {
  margin-bottom: 4px;
}
.learn-card h3 {
  margin: 22px 0 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.learn-card h3[id] {
  margin: 26px 0 6px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  scroll-margin-top: 24px;
}
.doc-body a.term {
  font-weight: 800;
  text-decoration: underline dotted;
  text-underline-offset: 4px;
}
.learn-when {
  margin-top: 8px;
}
.learn-example {
  margin-top: 8px;
  padding: 16px 20px;
  border-radius: 16px;
  background: #fff5d5;
}
.learn-example > :first-child {
  margin-top: 0;
}
.learn-example > :last-child {
  margin-bottom: 0;
}
.learn-example ul {
  border-top-color: #e3d49b;
}
.learn-example li {
  border-bottom-color: #e3d49b;
}
.learn-example .breakdown th,
.learn-example .breakdown td {
  border-bottom-color: #e3d49b;
}
.learn-review {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.doc-body .learn-review {
  font-size: 13px;
}
.learn-table-wrap {
  margin: 14px 0 0;
  overflow-x: auto;
}
.learn-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.learn-table th,
.learn-table td {
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.learn-table thead th {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.learn-table tbody th {
  font-weight: 800;
}
@media (max-width: 760px) {
  .learn-table-tipos,
  .learn-table-tipos tbody,
  .learn-table-tipos tr,
  .learn-table-tipos th,
  .learn-table-tipos td,
  .learn-table-dinero,
  .learn-table-dinero tbody,
  .learn-table-dinero tr,
  .learn-table-dinero th,
  .learn-table-dinero td {
    display: block;
  }
  .learn-table-tipos thead,
  .learn-table-dinero thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .learn-table-tipos tr,
  .learn-table-dinero tr {
    margin: 0 0 12px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
  }
  .learn-table-tipos th,
  .learn-table-tipos td,
  .learn-table-dinero th,
  .learn-table-dinero td {
    padding: 4px 0;
    border-bottom: 0;
  }
  .learn-table-tipos tbody th,
  .learn-table-dinero tbody th {
    font-size: 16px;
  }
  .learn-table-tipos td::before,
  .learn-table-dinero td::before {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
  }
  .learn-table-tipos td:nth-of-type(1)::before { content: "Qué tipo pagas"; }
  .learn-table-tipos td:nth-of-type(2)::before { content: "¿Cambia la cuota?"; }
  .learn-table-tipos td:nth-of-type(3)::before { content: "Revisión"; }
  .learn-table-dinero td:nth-of-type(1)::before { content: "Qué es"; }
  .learn-table-dinero td:nth-of-type(2)::before { content: "Riesgo"; }
  .learn-table-dinero td:nth-of-type(3)::before { content: "Pensado para"; }
}
.learn-terms {
  margin: 14px 0 0;
  border-top: 1px solid var(--line);
}
.learn-terms div {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.learn-terms dt {
  font-weight: 800;
}
.learn-terms dd {
  margin: 0;
  line-height: 1.6;
}
.learn-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.doc-body .learn-two section {
  margin-top: 0;
}
.learn-link {
  font-weight: 800;
}
/* Metodología: lista de parámetros financieros. */
.param-list {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}
.param {
  padding: 16px 20px;
  border-radius: 16px;
  background: #fff5d5;
}
.doc-body .param h3 {
  margin: 0 0 8px;
  font-size: 16px;
}
.param-values {
  display: grid;
  grid-template-columns: minmax(120px, 260px) minmax(0, 1fr);
  gap: 4px 16px;
  margin: 0 0 8px;
  font-size: 15px;
}
.param-values dt {
  color: var(--muted);
}
.param-values dd {
  margin: 0;
  font-weight: 750;
  overflow-wrap: anywhere;
}
.doc-body .param-source {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
@media (max-width: 760px) {
  .param-values {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .param-values dd {
    margin-bottom: 6px;
  }
}
@media (max-width: 760px) {
  .learn-card {
    padding: 22px 18px;
  }
  .learn-terms div {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
  .learn-two {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
}
/* ¿Dónde puedo vivir?: mapa de calor y panel de la zona. */
.donde-title {
  margin: 0;
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
}
.step-subtitle {
  margin: 24px 0 8px;
  font-size: 17px;
  font-weight: 800;
}
.job-question {
  margin: 18px 0 8px;
  font-weight: 700;
}
.donde-result .row-fields {
  margin-bottom: 20px;
}
.heat-legend {
  display: grid;
  gap: 6px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  font-size: 14px;
}
.heat-legend li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.heat-swatch {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border: 1px solid #b9b49c;
  border-radius: 5px;
}
.heat-muy {
  background: #F5C842;
}
.heat-realista {
  background: #FBE7A1;
}
.heat-fuera {
  background: #dedbd0;
}
.heat-pocos {
  background: #f6f5f0;
}
.donde-map .dpath {
  fill: #dedbd0;
  stroke: #fff;
  stroke-width: 1;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  cursor: pointer;
  transition: fill .15s;
}
.donde-map .dpath.heat-muy {
  fill: #F5C842;
}
.donde-map .dpath.heat-realista {
  fill: #FBE7A1;
}
.donde-map .dpath.heat-fuera {
  fill: #dedbd0;
}
.donde-map .dpath.heat-pocos {
  fill: #f6f5f0;
}
.donde-map .dpath.is-inert {
  pointer-events: none;
}
.donde-map .dpath[data-selected],
.donde-map .dpath[data-picked] {
  stroke: var(--ink);
  stroke-width: 2.5;
}
.donde-pick {
  margin: 16px 0 0;
  padding: 14px 16px;
  border-radius: 18px;
  background: #fff;
}
.donde-pick h3 {
  margin: 0 0 6px;
  font-size: 17px;
}
.donde-pick .navy-button {
  margin-top: 10px;
}
.donde-pick .navy-button:disabled {
  opacity: .45;
  cursor: not-allowed;
}
.pick-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0;
  padding: 0;
  list-style: none;
}
.pick-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.pick-chip:hover {
  background: #2d4068;
}
.dk-panel {
  max-width: 760px;
  margin: 22px 0;
}
.dk-panel h3 {
  margin: 0 0 6px;
  font-size: 18px;
}
.donde-map .dpath:focus {
  outline: none;
}
.donde-map .dpath:focus-visible {
  stroke: var(--ink);
  stroke-width: 2.5;
}
.donde-map .map-box svg .map-code {
  visibility: hidden;
}
.donde-map .map-box svg.show-codes .map-code {
  visibility: visible;
}
.donde-side {
  max-height: 380px;
  padding: 2px 4px 4px 1px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.donde-side h3 {
  margin: 0 0 4px;
  font-size: 18px;
}
.donde-subtitle {
  margin: 18px 0 2px;
  font-size: 15px;
  font-weight: 800;
}
.donde-level {
  margin: 10px 0;
  padding: 8px 12px;
  border-left: 6px solid #dedbd0;
  border-radius: 0 10px 10px 0;
  background: #fff;
  font-weight: 700;
}
.donde-level.heat-text-muy {
  border-left-color: #F5C842;
}
.donde-level.heat-text-realista {
  border-left-color: #FBE7A1;
}
.donde-facts {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 4px 16px;
  margin: 10px 0;
}
.donde-facts dt {
  color: var(--muted);
  font-size: 14px;
}
.donde-facts dd {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
}
.donde-keyday {
  margin: 10px 0 14px;
  line-height: 1.5;
}
.donde-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.donde-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid #d7dadc;
  border-radius: 12px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.donde-item:hover {
  border-color: var(--ink);
  background: #fff5d5;
}
.donde-item span {
  font-weight: 800;
}
.donde-item small {
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}
@media (max-width: 760px) {
  .donde-side {
    max-height: none;
  }
}
/* Resultado en tres columnas: filtros a la izquierda, mapa en el centro y detalle de la zona a la derecha. */
.page-donde .cal-wrap {
  max-width: 1240px;
}
.page-donde .wizard-main > form {
  max-width: 1000px;
}
.donde-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr) 300px;
  gap: 22px;
  align-items: start;
  margin-top: 22px;
}
.donde-filters,
.donde-layout .donde-side {
  max-height: none;
  overflow: visible;
}
.donde-center .heat-legend {
  margin: 14px 0 0;
  justify-items: start;
  text-align: left;
}
.donde-filters {
  padding: 18px;
}
.donde-filters h2 {
  margin: 0 0 6px;
  font-size: 20px;
}
.donde-filters .requirement {
  margin: 14px 0 0;
}
.donde-filters .warning-box {
  margin: 0 0 6px;
  font-size: 14px;
}
.wizard-step .chips + .requirement,
.wizard-step .row-fields + .requirement {
  margin-top: 24px;
}
.donde-filters .row-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.donde-center .map-box svg {
  height: 640px;
}
.donde-layout .donde-side {
  padding: 18px;
}
@media (max-width: 1100px) {
  .donde-layout {
    grid-template-columns: 250px minmax(0, 1fr);
  }
  .donde-layout .donde-side {
    position: static;
    grid-column: 1 / -1;
    max-height: none;
  }
  .donde-center .map-box svg {
    height: 540px;
  }
}
@media (max-width: 760px) {
  .donde-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .donde-filters {
    position: static;
    max-height: none;
    order: 2;
  }
  .donde-center {
    order: 1;
  }
  .donde-layout .donde-side {
    order: 3;
  }
  .donde-center .map-box svg {
    height: 400px;
  }
  .why summary {
    padding: 10px 0;
  }
  .doc-page-top .doc-index-wrap a {
    padding: 9px 12px;
  }
}
.phase-bar-7 {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
/* En el móvil caben siete columnas solo con el número: el nombre se ve en el paso actual. */
@media (max-width: 560px) {
  .phase-bar-7 .phase:not(.is-active) .phase-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    white-space: nowrap;
    clip-path: inset(50%);
  }
  .phase-bar-7 .phase.is-active .phase-label {
    white-space: nowrap;
  }
  .phase-bar-7 .phase:nth-last-child(-n+2) .phase-label {
    align-self: flex-end;
  }
}
.phase-bar-6 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.phase-bar-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
/* Aprende (y páginas largas): índice horizontal fijo arriba y gráficos. */
.doc-page-top {
  display: block;
  padding-top: 28px;
}
.doc-page-top .doc-index {
  position: sticky;
  top: 0;
  z-index: 20;
  margin: 0 0 28px;
  padding: 10px 0 8px;
  border-bottom: 1px solid #d9d3bd;
  border-radius: 0;
  background: var(--cream, #FFF8EC);
}
.doc-page-top .doc-index h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
  clip-path: inset(50%);
}
.doc-page-top .doc-index ol {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 6px;
  scrollbar-width: thin;
}
.doc-page-top .doc-index a {
  padding: 8px 14px;
  border: 1px solid #e4dfcc;
  border-left-width: 1px;
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  white-space: nowrap;
}
.doc-page-top .doc-index a.is-active {
  border-color: var(--ink);
  color: #fff;
  background: var(--ink);
}
.doc-page-top .doc-index-wrap ol {
  flex-wrap: wrap;
  overflow-x: visible;
}
.doc-page-top .doc-body {
  max-width: 820px;
}
.doc-page-top .learn-card,
.doc-page-top .learn-card h3[id],
.doc-page-top section[id],
.doc-page-top h3[id] {
  scroll-margin-top: calc(var(--doc-nav-h, 0px) + 24px);
}
.learn-chart {
  margin: 18px 0 4px;
  padding: 16px 18px 14px;
  border-radius: 18px;
  background: #fffaf0;
}
.learn-chart[hidden] {
  display: none;
}
.learn-chart figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.learn-svg {
  display: block;
  width: 100%;
  height: auto;
}
.chart-key {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}
.chart-key li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.doc-body .chart-key {
  margin: 10px 0 0;
  border-top: 0;
}
.doc-body .chart-key li {
  padding: 0;
  border-bottom: 0;
}
.doc-body .chart-key li::before {
  content: none;
}
.bar-gold {
  fill: #F5C842;
}
/* Páginas de texto (Metodología, Aprende, Sobre nosotras): títulos de sección más pequeños y apartados bajo el índice fijo. */
.doc-body h2,
.about-text h2 {
  font-size: 22px;
  line-height: 1.25;
}
.doc-body h3 {
  font-size: 17px;
}
.doc-body h1,
.about-page .doc-title {
  font-size: clamp(28px, 4vw, 40px);
}
.doc-page-top .doc-body section,
.doc-page-top .doc-body h3[id],
.doc-page-top .doc-body .param {
  scroll-margin-top: calc(var(--doc-nav-h, 0px) + 24px);
}
.about-page {
  padding-top: 28px;
}
@media (max-width: 760px) {
  .doc-body h2,
  .about-text h2 {
    font-size: 20px;
  }
}
@media (max-width: 760px) {
  .doc-page-top {
    padding-top: 12px;
  }
  .doc-page-top .doc-index {
    padding: 8px 0 6px;
    background: var(--cream, #FFF8EC);
  }
  .doc-page-top .doc-index-wrap a {
    padding: 6px 11px;
    font-size: 13px;
  }
  .learn-chart {
    padding: 12px;
  }
}
/* Pantallas anchas: el índice es un panel vertical fijo a la derecha, con todas las entradas visibles. */
@media (min-width: 1001px) {
  .doc-page-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 270px;
    column-gap: 56px;
    row-gap: 0;
    align-items: start;
  }
  .doc-page-top > .doc-body {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }
  .doc-page-top > .doc-index {
    grid-column: 2;
    grid-row: 1 / span 99;
  }
  .doc-page-top .doc-index {
    top: 24px;
    z-index: 5;
    max-height: calc(100vh - 48px);
    margin: 0;
    padding: 18px 12px;
    overflow-y: auto;
    border-bottom: 0;
    border-radius: 18px;
    background: #f3e9d2;
  }
  .doc-page-top .doc-index h2 {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    padding-left: 12px;
    clip-path: none;
  }
  .doc-page-top .doc-index ol,
  .doc-page-top .doc-index-wrap ol {
    display: grid;
    gap: 2px;
    padding: 0;
    overflow: visible;
  }
  .doc-page-top .doc-index a {
    padding: 9px 12px;
    border: 0;
    border-left: 3px solid transparent;
    border-radius: 0 10px 10px 0;
    background: transparent;
    white-space: normal;
  }
  .doc-page-top .doc-index a:hover {
    background: #fff5d5;
  }
  .doc-page-top .doc-index a.is-active {
    border-left-color: var(--yellow);
    color: #fff;
    background: var(--ink);
  }
}
