/* Dirección B "Cercana y visual": franja azul marino arriba, tarjetas blancas redondeadas,
   celeste como acento y amarillo cálido para los costos. */
:root {
  --navy: #0B2E42;
  --celeste: #A9E2F5;
  --bg: #EDF6FA;
  --surface: #FFFFFF;
  --surface-2: #F4F9FC;
  --ink: #0B2E42;
  --ink-soft: #4F6B7E;
  --rule: rgba(11, 46, 66, 0.10);
  --rule-strong: rgba(11, 46, 66, 0.22);
  --accent: #A9E2F5;
  --accent-ink: #0B2E42;
  --hl: #E1F3FA;
  --hl-ink: #0B2E42;
  --word-2: #A9E2F5;
  --shadow: 0 1px 2px rgba(11, 46, 66, 0.06), 0 10px 28px rgba(11, 46, 66, 0.07);
  --shadow-up: 0 1px 2px rgba(11, 46, 66, 0.06), 0 14px 34px rgba(11, 46, 66, 0.12);
  --hero: #0B2E42;
  --hero-ink: #FFFFFF;
  --hero-soft: #B9D4E3;
  --band-bg: #0B2E42;
  --band-ink: #FFFFFF;
  --band-soft: #B9D4E3;
  --logo-ring: #FFFFFF;
  --logo-fill: #A9E2F5;
  --logo-ink: #0B2E42;
  --sun: #F6C85F;
  --sun-soft: #FFF4D6;
  --sun-ink: #6B4E0E;
  --coral: #F28B6B;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-lg: 22px;
  --r-md: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #082331; --surface: #103850; --surface-2: #0D3247;
    --ink: #FFFFFF; --ink-soft: #9CBBD0;
    --rule: rgba(169, 226, 245, 0.14); --rule-strong: rgba(169, 226, 245, 0.28);
    --hl: rgba(169, 226, 245, 0.14); --hl-ink: #FFFFFF;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.25); --shadow-up: 0 1px 2px rgba(0, 0, 0, 0.3), 0 14px 34px rgba(0, 0, 0, 0.25);
    --hero: #051A26; --hero-soft: #9CBBD0;
    --band-bg: #051A26; --band-soft: #9CBBD0;
    --sun-soft: rgba(246, 200, 95, 0.16); --sun-ink: #F6C85F;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #082331; --surface: #103850; --surface-2: #0D3247;
  --ink: #FFFFFF; --ink-soft: #9CBBD0;
  --rule: rgba(169, 226, 245, 0.14); --rule-strong: rgba(169, 226, 245, 0.28);
  --hl: rgba(169, 226, 245, 0.14); --hl-ink: #FFFFFF;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.25); --shadow-up: 0 1px 2px rgba(0, 0, 0, 0.3), 0 14px 34px rgba(0, 0, 0, 0.25);
  --hero: #051A26; --hero-soft: #9CBBD0;
  --band-bg: #051A26; --band-soft: #9CBBD0;
  --sun-soft: rgba(246, 200, 95, 0.16); --sun-ink: #F6C85F;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums;
}
.wrap { max-width: 1080px; margin: 0 auto; padding-inline: 24px; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
h1, h2, h3 { text-wrap: balance; line-height: 1.2; }
p, li { text-wrap: pretty; }

/* ---------- Franja azul marino con el menú ---------- */
.topbar { background: var(--hero); color: var(--hero-ink); }
.topbar.solapa { padding-bottom: 76px; }
header.top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 18px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--hero-ink); }
.brand svg { width: 38px; height: 38px; flex: none; }
.brand-name { font-weight: 800; font-size: 1.4rem; letter-spacing: -0.035em; line-height: 1; }
.brand-name span { color: var(--word-2); }
nav.links { display: flex; align-items: center; gap: 22px; }
nav.links a { font-size: 0.93rem; font-weight: 600; text-decoration: none; color: var(--hero-soft); white-space: nowrap; }
nav.links a:hover, nav.links a[aria-current="page"] { color: var(--hero-ink); }
nav.links a.pill { background: var(--celeste); color: var(--navy); padding: 9px 16px; border-radius: 999px; font-weight: 700; }
nav.links a.pill:hover { background: #FFFFFF; color: var(--navy); }
.topbar .crumbs { color: var(--hero-soft); padding-top: 4px; }
.topbar .eyebrow { color: var(--celeste); }
.topbar h1 { color: var(--hero-ink); }
.topbar .lede, .topbar .meta { color: var(--hero-soft); }
.topbar :focus-visible { outline-color: var(--celeste); }
.guia-head { max-width: 780px; display: flex; flex-direction: column; gap: 10px; padding-block: 4px 8px; }
.guia-head h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; letter-spacing: -0.035em; margin: 0; }
.guia-head .meta { margin: 0; font-size: 0.92rem; }
.guia-head .eyebrow { margin-top: 10px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: 999px; border: 0;
  font: 700 0.95rem/1 var(--font); text-decoration: none; cursor: pointer;
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--ink-soft); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: #8ED6EE; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--rule-strong); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Piezas comunes ---------- */
.crumbs { font-size: 0.85rem; color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: 6px; padding-top: 8px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.eyebrow { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); margin: 0; }
.topbar .eyebrow { display: inline-block; align-self: flex-start; text-transform: none; letter-spacing: 0; font-size: 0.82rem; background: rgba(169, 226, 245, 0.16); padding: 6px 12px; border-radius: 999px; }
.bar { width: 64px; height: 6px; background: var(--accent); border-radius: 3px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 0.8rem; font-weight: 700; padding: 4px 11px; border-radius: 999px; background: var(--hl); color: var(--hl-ink); }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pills span { background: var(--hl); color: var(--hl-ink); padding: 4px 11px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; }
.badge { width: 46px; height: 46px; border-radius: 14px; background: var(--navy); color: var(--celeste); display: grid; place-items: center; font-weight: 800; font-size: 0.95rem; flex: none; letter-spacing: 0.02em; overflow: hidden; }
.badge.con-logo { background: #FFFFFF; box-shadow: inset 0 0 0 1px var(--rule); }
.badge.con-logo img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.badge-xl { width: 92px; height: 92px; border-radius: 26px; font-size: 1.7rem; }
.badge-xl.con-logo img { padding: 10px; }
.ring { --p: 87%; width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: conic-gradient(var(--celeste) 0 var(--p), rgba(169, 226, 245, 0.18) var(--p) 100%); }
.ring b { width: 72px; height: 72px; border-radius: 50%; background: var(--band-bg); color: var(--band-ink); display: grid; place-items: center; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; }
.muted { color: var(--ink-soft); }
.small { font-size: 0.88rem; }
.none { color: var(--ink-soft); font-weight: 500; }

/* ---------- Ficha de colegio ---------- */
.ficha { display: flex; flex-direction: column; }
.f-card { position: relative; z-index: 1; margin-top: -60px; background: var(--surface); border-radius: 26px; padding: 26px; box-shadow: var(--shadow-up);
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 22px; align-items: center; }
.f-card h1 { margin: 0; font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.08; }
.f-card .sub { margin: 6px 0 0; color: var(--ink-soft); }
.f-card .pills { margin-top: 12px; }
.f-card .acts { display: flex; flex-direction: column; gap: 8px; }
.tabs { position: sticky; top: 0; z-index: 5; display: flex; gap: 4px; margin: 18px 0 0; padding: 5px; overflow-x: auto; scrollbar-width: none;
  background: var(--surface); border-radius: 999px; box-shadow: var(--shadow); width: fit-content; max-width: 100%; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: 0.9rem; white-space: nowrap; color: var(--ink-soft); text-decoration: none; }
.tabs a:hover { color: var(--ink); background: var(--hl); }
.tabs a[aria-current="true"] { background: var(--navy); color: #FFFFFF; }
.f-sec { padding-top: 40px; scroll-margin-top: 64px; display: flex; flex-direction: column; gap: 16px; }
#resumen { padding-top: 22px; }
h2.sec { margin: 0; font-size: 1.6rem; font-weight: 800; letter-spacing: -0.03em; }
.blk { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.note { margin: 0; font-size: 0.85rem; color: var(--ink-soft); }
.panel { background: var(--surface); border-radius: 20px; padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.h-panel { margin: 0; font-size: 1.15rem; font-weight: 800; letter-spacing: -0.01em; }
.panel .sub { margin: -6px 0 0; color: var(--ink-soft); font-size: 0.9rem; }
.h-mini { margin: 6px 0 0; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.listas { gap: 16px; }
.listas .h-mini { margin: 0 0 6px; }
.kgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kt { background: var(--surface); border-radius: 20px; padding: 20px; box-shadow: var(--shadow); min-width: 0; }
.kt small { display: block; color: var(--ink-soft); font-weight: 600; font-size: 0.85rem; }
.kt b { display: block; font-size: 2rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; margin-top: 6px; }
.kt .kt-none { font-size: 1.25rem; letter-spacing: -0.01em; color: var(--ink-soft); }
.kt p { margin: 6px 0 0; font-size: 0.85rem; color: var(--ink-soft); line-height: 1.4; }
.kt .up { display: inline-block; margin-top: 10px; background: var(--hl); color: var(--hl-ink); padding: 3px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; line-height: 1.4; }
.sobre { margin-top: 16px; }
.sobre.con-foto { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; align-items: center; }
.sobre-txt { display: flex; flex-direction: column; gap: 12px; }
.f-foto { margin: 0; }
.f-foto img { display: block; width: 100%; height: auto; max-height: 260px; object-fit: cover; border-radius: 16px; background: #FFFFFF; }
.f-foto figcaption { font-size: 0.76rem; color: var(--ink-soft); margin-top: 6px; text-align: right; }
.hl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hc { background: var(--surface); border-radius: 20px; padding: 20px; border-top: 6px solid var(--accent); box-shadow: var(--shadow); }
.hc.no { border-top-color: var(--rule-strong); }
.hc small { font-weight: 700; color: var(--ink-soft); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.08em; }
.hc h3 { margin: 6px 0 4px; font-size: 1.2rem; font-weight: 800; letter-spacing: -0.01em; }
.hc p { margin: 0; color: var(--ink-soft); font-size: 0.93rem; line-height: 1.5; }
.pair2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.stack { display: flex; height: 16px; border-radius: 8px; overflow: hidden; margin-top: 6px; gap: 2px; }
.stack i { display: block; min-width: 4px; }
.stack .l1, .bars .lec { background: var(--navy); }
.stack .l2 { background: var(--sun); }
.stack .l3, .bars .mat { background: var(--accent); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.85rem; color: var(--ink-soft); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend span::before { content: ""; width: 10px; height: 10px; border-radius: 3px; flex: none; }
.legend .l1::before { background: var(--navy); box-shadow: 0 0 0 1px var(--rule-strong); }
.legend .l2::before { background: var(--sun); }
.legend .l3::before { background: var(--accent); }
.legend b { color: var(--ink); }
.bars { display: grid; gap: 14px; }
.bars .g { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; align-items: center; font-size: 0.85rem; }
.bars .g > span { color: var(--ink-soft); font-weight: 600; line-height: 1.25; }
.bars .g small { display: block; font-weight: 500; font-size: 0.75rem; }
.bars .bb { display: grid; gap: 5px; padding-right: 40px; }
.bars .bb div { height: 12px; border-radius: 6px; position: relative; }
.bars .bb div.vacia { background: none; }
.bars .bb em { position: absolute; left: calc(100% + 6px); top: -4px; font-style: normal; font-size: 0.78rem; font-weight: 700; color: var(--ink); }
.pbars { display: grid; gap: 12px; }
.pb { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr) 40px; gap: 10px; align-items: center; font-size: 0.86rem; }
.pb span { color: var(--ink-soft); font-weight: 600; line-height: 1.25; }
.pb div { height: 12px; border-radius: 6px; background: var(--hl); overflow: hidden; }
.pb i { display: block; height: 100%; border-radius: 6px; background: var(--rule-strong); }
.pb.yo span { color: var(--ink); font-weight: 800; }
.pb.yo i { background: var(--navy); }
.pb b { text-align: right; font-size: 0.95rem; }
.vida { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.sc { background: var(--surface); border-radius: 20px; padding: 18px 20px; box-shadow: var(--shadow); text-decoration: none; display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease; }
.sc:hover { transform: translateY(-2px); box-shadow: var(--shadow-up); }
.sc .top { display: flex; gap: 12px; align-items: center; }
.sc .top > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.sc .top b { font-size: 1rem; line-height: 1.25; }
.sc .top small { font-size: 0.84rem; color: var(--ink-soft); }
.sc .nums { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--rule); }
.sc .nums span { display: flex; flex-direction: column; }
.sc .nums small { font-size: 0.74rem; color: var(--ink-soft); font-weight: 600; }
.sc .nums b { font-size: 1.05rem; }
.pie-ficha { margin-top: 28px; }
.kv { margin: 0; display: flex; flex-direction: column; }
.kv > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--rule); }
.kv > div:first-child { border-top: 0; padding-top: 0; }
.kv dt { color: var(--ink-soft); }
.kv dd { margin: 0; font-weight: 700; text-align: right; }
.kv dd small { display: block; font-weight: 500; color: var(--ink-soft); font-size: 0.8rem; }
.kv2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); column-gap: 32px; }
.kv2 > div, .kv2 > div:first-child { border-top: 0; border-bottom: 1px solid var(--rule); padding: 10px 0; }
.meter { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 9px 0; border-top: 1px solid var(--rule); }
.meter:first-of-type { border-top: 0; }
.meter b { font-weight: 600; }
.meter em { font-style: normal; font-size: 0.85rem; color: var(--ink-soft); }
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 22px; height: 7px; border-radius: 4px; background: var(--rule-strong); }
.dots i.on { background: var(--navy); }
:root[data-theme="dark"] .dots i.on { background: var(--celeste); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .dots i.on, :root:not([data-theme="light"]) .pb.yo i { background: var(--celeste); } }
:root[data-theme="dark"] .pb.yo i { background: var(--celeste); }
.links-out { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.links-out a { font-weight: 600; }
.tbl { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-size: 0.78rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-soft); font-weight: 700; }
td.n, th.n { text-align: right; padding-right: 0; padding-left: 12px; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
@media (max-width: 860px) {
  .f-card { grid-template-columns: auto minmax(0, 1fr); }
  .f-card .acts { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  .kgrid { grid-template-columns: 1fr 1fr; }
  .hl, .pair2, .sobre.con-foto { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .f-card { padding: 18px; gap: 14px; margin-top: -64px; }
  .f-card .acts .btn { flex: 1 1 100%; }
  .badge-xl { width: 64px; height: 64px; border-radius: 18px; font-size: 1.25rem; }
  .kgrid { gap: 10px; }
  .kt { padding: 16px; }
  .kt b { font-size: 1.5rem; }
  .pb { grid-template-columns: minmax(0, 1fr) 40px; }
  .pb div { grid-column: 1 / -1; grid-row: 2; }
  .panel { padding: 18px; }
  h2.sec { font-size: 1.35rem; }
}

/* ---------- Banda de llamado ---------- */
.band { background: var(--band-bg); color: var(--band-ink); border-radius: 24px; padding: 28px 30px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; margin-block: 44px 8px; }
.band-txt { flex: 1 1 320px; }
.band h2 { margin: 0; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.band p { margin: 6px 0 0; color: var(--band-soft); max-width: 48ch; }
.band .btn { background: var(--celeste); color: var(--navy); }
.band .btn:hover { background: #FFFFFF; }

/* ---------- Listados ---------- */
.page-head { padding-block: 12px 8px; display: flex; flex-direction: column; gap: 12px; }
.page-head h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; letter-spacing: -0.03em; margin: 0; }
.page-head .lede { font-size: 1.12rem; color: var(--ink-soft); margin: 0; max-width: 40em; }
.region { display: flex; flex-direction: column; gap: 14px; padding-block: 18px; border-top: 1px solid var(--rule); }
.region h2 { margin: 0; font-size: 1.3rem; font-weight: 800; }
.comuna h3 { margin: 0 0 6px; font-size: 1rem; }
.comuna ul { list-style: none; margin: 0; padding: 0; columns: 2 260px; column-gap: 24px; }
.comuna li { padding: 3px 0; break-inside: avoid; font-size: 0.95rem; }
.comuna li a { text-decoration: none; }
.comuna li a:hover { text-decoration: underline; }
.comunas { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 22px; }
.guias-cards { position: relative; z-index: 1; margin-top: -48px; }
.card { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 24px; text-decoration: none; display: flex; flex-direction: column; gap: 10px; }
.card { border-radius: 24px; transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-up); }
.card h2 { margin: 0; font-size: 1.25rem; font-weight: 800; }
.card p { margin: 0; color: var(--ink-soft); }

/* ---------- Guías y textos ---------- */
.prose { max-width: 70ch; margin: 0 auto; padding-block: 8px 24px; }
.prose-card { position: relative; z-index: 1; max-width: 820px; margin-top: -48px; background: var(--surface); border-radius: 26px; box-shadow: var(--shadow-up); padding: 36px clamp(20px, 5vw, 56px) 40px; }
.prose-card .tldr, .prose-card figure { background: var(--surface-2); box-shadow: none; }
.prose h1 { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 800; letter-spacing: -0.03em; margin: 8px 0 14px; }
.prose h2 { font-size: 1.45rem; font-weight: 800; letter-spacing: -0.01em; margin: 2.2em 0 0.5em; }
.prose h3 { font-size: 1.1rem; font-weight: 700; margin: 1.6em 0 0.4em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1em; }
.prose li { margin-bottom: 0.35em; }
.prose .meta { font-size: 0.9rem; color: var(--ink-soft); margin: 0 0 18px; }
.prose .tldr { background: var(--surface); border-radius: var(--r-md); padding: 18px 22px; box-shadow: var(--shadow); margin: 0 0 1.6em; }
.prose .tldr b:first-child { display: block; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 4px; }
.prose .tldr ul { margin: 0; padding-left: 1.1em; }
.prose .dato { border-left: 5px solid var(--sun); padding: 4px 0 4px 18px; margin: 1.6em 0; }
.prose .dato strong { display: block; font-size: 1.9rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.prose .dato span { color: var(--ink-soft); }
.prose figure { margin: 1.4em 0; background: var(--surface); border-radius: var(--r-md); padding: 16px 18px; box-shadow: var(--shadow); }
.prose figcaption { font-size: 0.85rem; color: var(--ink-soft); margin-top: 10px; }
.prose .check { list-style: none; padding: 0; }
.prose .check li { padding-left: 30px; position: relative; }
.prose .check li::before { content: ""; position: absolute; left: 0; top: 0.3em; width: 18px; height: 18px; border-radius: 5px; box-shadow: inset 0 0 0 2px var(--ink); }
.prose .fuentes { font-size: 0.88rem; color: var(--ink-soft); border-top: 1px solid var(--rule); padding-top: 16px; margin-top: 2.4em; }

/* ---------- Ilustraciones ---------- */
.arte { margin: 0; }
.arte img { display: block; width: 100%; height: auto; border-radius: 24px; }
.prose > .arte { margin: 0 0 1.6em; }
.con-arte { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.con-arte .head-text { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.page-head.con-arte .head-text { gap: 12px; }
.arte-sm { justify-self: end; width: 100%; max-width: 300px; }
.card-art { margin: -24px -24px 6px; }
.card-art img { display: block; width: 100%; height: auto; border-radius: var(--r-lg) var(--r-lg) 0 0; }
@media (max-width: 760px) {
  .con-arte { grid-template-columns: 1fr; gap: 20px; }
  .arte-sm { display: none; }
  .page-head .arte { max-width: 460px; }
}

/* ---------- Utilidades ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.link { background: none; border: 0; padding: 0; font: 600 0.92rem var(--font); color: var(--ink); text-decoration: underline; cursor: pointer; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 0.9rem; }
.pin { width: 1em; height: 1em; flex: none; vertical-align: -0.12em; margin-right: 6px; color: var(--coral); }

/* ---------- Ficha: foto, precio, sobre, ubicación ---------- */
.lead-txt { margin: 0; font-size: 1.08rem; }
.cita { margin: 0; padding: 14px 18px; border-radius: var(--r-md); background: var(--surface-2); border-left: 5px solid var(--accent); }
.cita p { margin: 0 0 4px; font-style: italic; }
.cita cite { font-style: normal; font-size: 0.82rem; color: var(--ink-soft); }
.ubic { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 20px; align-items: start; }
.ubic-txt { display: flex; flex-direction: column; gap: 10px; }
.dir-big { margin: 0; display: flex; font-size: 1.1rem; font-weight: 700; line-height: 1.4; }
.dir-big .pin { margin-top: 3px; }
.dir-big .muted { font-weight: 500; font-size: 0.95rem; }
.mapa { width: 100%; height: 300px; border: 0; border-radius: var(--r-md); background: var(--surface-2); }
@media (max-width: 760px) { .ubic { grid-template-columns: 1fr; } }
.lede-prose { font-size: 1.2rem; }

/* ---------- Distancia desde la casa ---------- */
.casa-form { display: flex; flex-direction: column; gap: 8px; }
.casa-form label { font-weight: 700; font-size: 0.95rem; }
.casa-fila { display: flex; gap: 8px; }
.casa-fila input { flex: 1; min-width: 0; min-height: 46px; padding: 0 16px; border-radius: 12px; border: 0; background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--rule-strong); font: 500 1rem var(--font); }
.casa-fila input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--ink); }
.casa-form .link { align-self: flex-start; font-size: 0.88rem; }
.casa-msg { margin: 0; font-size: 0.88rem; color: var(--ink-soft); min-height: 1.2em; }
.casa-confirma { display: flex; flex-direction: column; gap: 10px; }
.casa-confirma p { margin: 0; font-size: 0.95rem; }
.casa-mapa { height: 260px; border-radius: 12px; z-index: 0; }
.casa-confirma .casa-fila { align-items: center; }
.casa-ok { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--r-md); background: var(--sun-soft); }
.casa-ok span { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.casa-ok small { font-size: 0.78rem; color: var(--ink-soft); }
.casa-ok b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.casa-ico { width: 26px; height: 26px; flex: none; color: var(--coral); }
.tray-cifras { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 12px; }
.tray-cifras div { background: var(--surface-2); border-radius: var(--r-md); padding: 14px 16px; display: flex; flex-direction: column; }
.tray-cifras b { font-size: 1.6rem; font-weight: 800; line-height: 1.15; }
.tray-cifras span { font-size: 0.85rem; color: var(--ink-soft); }
.tray-dia { margin-top: 12px; padding: 14px 18px; border-radius: var(--r-md); box-shadow: inset 0 0 0 1.5px var(--accent); }
.tray-dia p { margin: 0 0 4px; }
.tray-dia p:last-child { margin: 0; }
.dtray { margin: 0; font-size: 0.88rem; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.dtray svg { width: 18px; height: 18px; color: var(--coral); flex: none; }
.dir-casa { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 16px 18px; }

/* ---------- Directorio ---------- */
.dir-head { display: grid; grid-template-columns: minmax(0, 1.5fr) auto; gap: 28px; align-items: end; padding-block: 12px 22px; }
.dir-head .head-text { display: flex; flex-direction: column; gap: 12px; }
.dir-head h1 { font-size: clamp(2.1rem, 5vw, 3.1rem); font-weight: 800; letter-spacing: -0.03em; margin: 0; }
.dir-head .lede { font-size: 1.12rem; margin: 0; max-width: 38em; }
.dir-stats { display: flex; gap: 12px; }
.dir-stats div { background: rgba(169, 226, 245, 0.12); border-radius: var(--r-md); padding: 14px 18px; display: flex; flex-direction: column; min-width: 110px; }
.dir-stats b { font-size: 1.7rem; font-weight: 800; line-height: 1.1; color: var(--hero-ink); }
.dir-stats span { font-size: 0.85rem; color: var(--hero-soft); }
.dir-panel { position: relative; z-index: 1; margin-top: -48px; background: var(--surface); border-radius: 24px; box-shadow: var(--shadow-up); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.dir-panel .dir-casa { box-shadow: none; background: var(--surface-2); }
.dir-app { display: flex; flex-direction: column; gap: 16px; }
.dir-search { position: relative; }
.dir-search { max-width: 640px; }
.dir-search .lupa { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; color: #4F6B7E; margin: 0; }
.dir-search input { width: 100%; min-height: 62px; padding: 0 20px 0 54px; border-radius: 18px; border: 0; background: #FFFFFF; color: #0B2E42; font: 500 1.08rem var(--font); }
.dir-search input::placeholder { color: #4F6B7E; }
.dir-search input:focus { outline: none; box-shadow: 0 0 0 4px rgba(169, 226, 245, 0.55); }
.dir-filtros { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 10px; }
.dir-filtros .f { display: flex; flex-direction: column; gap: 4px; }
.dir-filtros label { font-size: 0.8rem; font-weight: 700; color: var(--ink-soft); }
.dir-filtros select { min-height: 44px; padding: 0 12px; border-radius: 12px; border: 0; background: var(--surface-2); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--rule); font: 600 0.95rem var(--font); }
.dir-bar { margin-top: 6px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.dir-count { margin: 0; color: var(--ink-soft); }
.dir-count b { color: var(--ink); }
.dir-tools { display: flex; gap: 16px; align-items: center; }
.vista { display: inline-flex; background: var(--surface); border-radius: 999px; padding: 4px; box-shadow: inset 0 0 0 1.5px var(--rule); }
.vista button { border: 0; background: none; color: var(--ink-soft); font: 700 0.9rem var(--font); padding: 8px 16px; border-radius: 999px; cursor: pointer; }
.vista button[aria-pressed="true"] { background: var(--navy); color: #FFFFFF; }
.dir-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.dcard { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease; }
.dcard:hover { transform: translateY(-2px); box-shadow: var(--shadow), 0 16px 34px rgba(11, 46, 66, 0.10); }
.dimg { position: relative; display: block; aspect-ratio: 16 / 9; background: #FFFFFF; overflow: hidden; }
.dimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dimg.logo img { object-fit: contain; padding: 18px 28px; }
.dimg .dini { display: none; }
.dimg.sin { background: #0B2E42; }
.dimg.sin .dini { display: grid; place-items: center; position: absolute; inset: 0; font-size: 2.6rem; font-weight: 800; color: #A9E2F5; letter-spacing: 0.04em; }
.dprecio { position: absolute; left: 12px; bottom: 12px; background: #F6C85F; color: #0B2E42; font-size: 0.85rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; }
.dbody { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.dbody h3 { margin: 0; font-size: 1.12rem; font-weight: 800; line-height: 1.3; }
.dbody h3 a { text-decoration: none; }
.dbody h3 a:hover { text-decoration: underline; }
.dloc { margin: 0; font-size: 0.9rem; color: var(--ink-soft); }
.ddesc { margin: 0; font-size: 0.93rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.dcost { margin: 4px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; border-top: 1px solid var(--rule); padding-top: 12px; }
.dcost div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dcost dt { font-size: 0.72rem; color: var(--ink-soft); font-weight: 600; line-height: 1.25; }
.dcost dd { margin: 0; font-weight: 800; font-size: 0.95rem; }
.dcost-none { margin: 4px 0 0; border-top: 1px solid var(--rule); padding-top: 12px; font-size: 0.88rem; color: var(--ink-soft); }
.dact { display: flex; gap: 8px; margin-top: auto; padding-top: 6px; }
.dact .btn { flex: 1; }
.dir-mapa { height: min(70vh, 620px); border-radius: var(--r-lg); box-shadow: var(--shadow); z-index: 0; }
.dir-mas { display: flex; justify-content: center; }
.dir-vacio { grid-column: 1 / -1; background: var(--surface); border-radius: var(--r-lg); padding: 28px; margin: 0; }
.todos { margin-top: 40px; border-top: 1px solid var(--rule); padding-top: 16px; }
.todos summary { cursor: pointer; font-weight: 700; padding: 8px 0; }
@media (max-width: 760px) {
  .dir-head { grid-template-columns: 1fr; }
  .dir-stats div { min-width: 0; flex: 1; padding: 12px; }
  .dir-filtros { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Pie ---------- */
footer.bottom { border-top: 1px solid var(--rule); margin-top: 56px; padding-block: 28px 40px; display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: flex-start; font-size: 0.9rem; color: var(--ink-soft); }
.foot-brand { display: flex; flex-direction: column; gap: 2px; }
.foot-brand b { color: var(--ink); font-size: 1.05rem; letter-spacing: -0.02em; }
footer.bottom nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer.bottom a { text-decoration: none; }
footer.bottom a:hover { text-decoration: underline; }

@media (max-width: 760px) { nav.links a.hide-md { display: none; } }
@media (max-width: 640px) {
  .wrap { padding-inline: 16px; }
  header.top { flex-wrap: nowrap; gap: 10px; }
  .brand { gap: 8px; }
  .brand svg { width: 32px; height: 32px; }
  .brand-name { font-size: 1.2rem; }
  nav.links { gap: 14px; flex-wrap: nowrap; }
  nav.links a.pill { padding: 8px 14px; }
  nav.links a.hide-sm { display: none; }
  .topbar.solapa { padding-bottom: 72px; }
  .dir-stats { gap: 8px; }
  .band { padding: 22px; }
}
.prose figure.arte { background: none; box-shadow: none; padding: 0; margin: 0 0 1.6em; }
.topbar .page-head .lede, .topbar .dir-head .lede { color: var(--hero-soft); }
.guia-head { margin-inline: auto; max-width: 820px; }
.solapa .guia-head { padding-inline: 4px; }
