/* Sísifo · hoja de estilos única (sin frameworks). Marca L2 «Roca en la cima»: terracota #C24A2A + tinta marrón #2B201B + crema. */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/fraunces-latin-700.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --bg: #f7efe6; --surface: #fffdf9; --surface-2: #f1e7db; --line: #e6d9c9; --line-2: #d4c2ad;
  --text: #2b201b; --muted: #6a5a50; --accent: #b4432a; --accent-2: #933520; --accent-soft: #f8e2d8; --on-accent: #fff;
  --ok: #2c7339; --ok-soft: #e1f0df; --mid: #875300; --mid-soft: #fcedcf; --warn: #a3123a; --warn-soft: #fde4ec;
  --old: #6a5a50; --old-soft: #efe6dc; --gold: #6b4500; --gold-soft: #fbe9c9; --sun: #c24a2a;
  --hero-1: #fbede1; --hero-2: #fbede1; --hill-1: #f4dccb; --hill-2: #ebbea2; --hill-3: #2b201b;
  --logo-hill: #2b201b; --logo-rock: #c24a2a; --logo-word: #2b201b;
  --radius: 16px; --radius-s: 11px;
  --shadow: 0 1px 2px rgb(16 24 22 / .05), 0 4px 16px rgb(16 24 22 / .05);
  --shadow-l: 0 2px 6px rgb(16 24 22 / .08), 0 18px 40px rgb(16 24 22 / .14);
  --top: 60px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
  --bg: #1a1411; --surface: #231b17; --surface-2: #2e2420; --line: #3a2e28; --line-2: #4e3f36;
  --text: #f2e8df; --muted: #bdab9e; --accent: #f08a64; --accent-2: #f6a585; --accent-soft: #3e2318; --on-accent: #2a0f05;
  --ok: #7fd69a; --ok-soft: #16301e; --mid: #f1c065; --mid-soft: #3a2c0e; --warn: #ff8fb3; --warn-soft: #4a1226;
  --old: #bdab9e; --old-soft: #2c231f; --gold: #f5c46b; --gold-soft: #3a2c0e; --sun: #f08a64;
  --hero-1: #261c17; --hero-2: #261c17; --hill-1: #33261f; --hill-2: #4a352a; --hill-3: #120d0b;
  --logo-hill: #f2e8df; --logo-rock: #f08a64; --logo-word: #f2e8df;
    --shadow: 0 1px 2px rgb(0 0 0 / .45); --shadow-l: 0 18px 40px rgb(0 0 0 / .55);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1a1411; --surface: #231b17; --surface-2: #2e2420; --line: #3a2e28; --line-2: #4e3f36;
  --text: #f2e8df; --muted: #bdab9e; --accent: #f08a64; --accent-2: #f6a585; --accent-soft: #3e2318; --on-accent: #2a0f05;
  --ok: #7fd69a; --ok-soft: #16301e; --mid: #f1c065; --mid-soft: #3a2c0e; --warn: #ff8fb3; --warn-soft: #4a1226;
  --old: #bdab9e; --old-soft: #2c231f; --gold: #f5c46b; --gold-soft: #3a2c0e; --sun: #f08a64;
  --hero-1: #261c17; --hero-2: #261c17; --hill-1: #33261f; --hill-2: #4a352a; --hill-3: #120d0b;
  --logo-hill: #f2e8df; --logo-rock: #f08a64; --logo-word: #f2e8df;
  --shadow: 0 1px 2px rgb(0 0 0 / .45); --shadow-l: 0 18px 40px rgb(0 0 0 / .55);
  color-scheme: dark;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top) + 12px); }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif; overflow-x: hidden; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
h1 { font-size: 28px; line-height: 1.18; letter-spacing: -.022em; margin: 0 0 6px; }
h2 { font-size: 20px; line-height: 1.25; letter-spacing: -.015em; margin: 36px 0 14px; }
h3 { font-size: 16px; margin: 0; }
p { margin: 0 0 10px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.wrap.wide { max-width: 1400px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; vertical-align: -4px; }
main { padding: 26px 0 64px; min-height: 60vh; }

/* ---------- controles ---------- */
input[type=search], input[type=text], select { font: inherit; font-size: 16px; color: var(--text); background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-s); padding: 10px 12px; min-height: 46px; min-width: 0; width: 100%; }
select { padding-right: 30px; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23888'%3E%3Cpath d='M5.5 7.5 10 12l4.5-4.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 8px center; background-size: 18px; text-overflow: ellipsis; }
input::placeholder { color: color-mix(in srgb, var(--muted) 80%, transparent); }
input:focus, select:focus { border-color: var(--accent); outline: 0; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.btn, button { font: inherit; font-weight: 650; cursor: pointer; border: 1px solid transparent; border-radius: var(--radius-s); padding: 10px 18px; min-height: 46px; background: var(--accent); color: var(--on-accent); display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-align: center; line-height: 1.2; }
.btn:hover, button:hover { text-decoration: none; background: var(--accent-2); }
.btn.ghost, button.ghost { background: var(--surface); color: var(--text); border-color: var(--line-2); }
.btn.ghost:hover, button.ghost:hover { background: var(--surface-2); }
.btn.alerta, button.alerta { background: var(--gold-soft); color: var(--gold); border-color: color-mix(in srgb, var(--gold) 35%, transparent); }
.btn.alerta:hover, button.alerta:hover { background: color-mix(in srgb, var(--gold-soft) 70%, var(--gold) 12%); }
.btn.big { font-size: 17px; padding: 14px 22px; min-height: 54px; }
.btn.block { width: 100%; }
.btn.link, button.link { background: none; color: var(--accent); padding: 6px 4px; min-height: 0; border: 0; font-weight: 600; }

/* ---------- cabecera ---------- */
header.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; gap: 22px; height: var(--top); }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 19px; color: var(--text); letter-spacing: -.03em; }
.brand:hover { text-decoration: none; }
.brand b { color: var(--accent); font-weight: 800; }
.brand .logo { width: 30px; height: 30px; }
header.top nav { display: flex; gap: 2px; }
header.top nav a { color: var(--muted); font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 10px; }
header.top nav a:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
header.top nav a.on { color: var(--text); background: var(--surface-2); }
header.top .right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.theme { background: none; border: 1px solid var(--line-2); color: var(--muted); width: 42px; height: 42px; min-height: 0; padding: 0; border-radius: 12px; }
.theme:hover { background: var(--surface-2); color: var(--text); }
.theme .moon { display: none; }
:root[data-theme="dark"] .theme .sun { display: none; }
:root[data-theme="dark"] .theme .moon { display: inline; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme .sun { display: none; } :root:not([data-theme="light"]) .theme .moon { display: inline; } }
.top .btn.acct { min-height: 42px; padding: 8px 14px; }
nav.bottom { display: none; }

/* ---------- etiquetas ---------- */
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.chip.accent { background: var(--accent-soft); color: var(--accent); }
.chip.fresh { background: var(--ok-soft); color: var(--ok); }
.chip.old { background: var(--old-soft); color: var(--old); }
.chip.gold { background: var(--gold-soft); color: var(--gold); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
a.chip.removable { background: var(--accent-soft); color: var(--accent); padding: 6px 8px 6px 12px; font-size: 14px; min-height: 36px; }
a.chip.removable:hover { text-decoration: none; filter: brightness(.96); }
a.chip.removable .x { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 18%, transparent); font-size: 14px; line-height: 1; }
.note { background: var(--accent-soft); color: var(--text); border-radius: 12px; padding: 12px 14px; margin: 14px 0; font-size: 14.5px; display: flex; gap: 10px; align-items: flex-start; }
.note .ico { color: var(--accent); margin-top: 2px; }
.note.warn { background: var(--mid-soft); }
.note.warn .ico { color: var(--mid); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.panel.pad { padding: 18px 20px; }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--radius); }

/* ---------- pestañas ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 0 0 16px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a, .tabs button { flex: none; background: none; border: 0; border-bottom: 3px solid transparent; border-radius: 0; color: var(--muted); font-weight: 650; font-size: 15px; padding: 10px 14px; min-height: 46px; display: inline-flex; gap: 6px; align-items: center; }
.tabs a:hover, .tabs button:hover { color: var(--text); background: none; text-decoration: none; }
.tabs .on, .tabs [aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }
.tabs .count { font-size: 12.5px; font-weight: 700; background: var(--surface-2); color: var(--muted); padding: 1px 8px; border-radius: 999px; }
.tabs .on .count, .tabs [aria-selected="true"] .count { background: var(--accent-soft); color: var(--accent); }
[role=tabpanel][hidden] { display: none; }

/* ---------- portada ---------- */
.hero h1 { font-size: clamp(28px, 4.2vw, 44px); letter-spacing: -.03em; max-width: 16em; margin-bottom: 10px; }
.hero p.lead { font-size: 18px; opacity: .92; max-width: 36em; margin-bottom: 26px; }
.search-big { position: relative; z-index: 1; display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 8px; background: var(--surface); padding: 8px; border-radius: 18px; box-shadow: 0 10px 30px rgb(0 0 0 / .2); max-width: 900px; }
.search-big label { display: flex; align-items: center; gap: 10px; padding: 4px 12px; border-radius: 12px; color: var(--muted); min-width: 0; }
.search-big label + label { border-left: 1px solid var(--line); }
.search-big label span { display: block; font-size: 12.5px; font-weight: 700; color: var(--text); letter-spacing: .01em; }
.search-big input { border: 0; padding: 2px 0; min-height: 30px; font-size: 17px; background: none; box-shadow: none; }
.search-big input:focus { box-shadow: none; }
.search-big label:focus-within { background: var(--surface-2); }
.search-big .field { flex: 1; min-width: 0; }
.search-big button { min-height: 58px; font-size: 17px; padding: 0 26px; border-radius: 13px; }
.hero .popular { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; align-items: center; font-size: 14px; }
.hero .popular a { color: #fff; background: rgb(255 255 255 / .13); border: 1px solid rgb(255 255 255 / .22); padding: 6px 13px; border-radius: 999px; font-weight: 600; }
.hero .popular a:hover { background: rgb(255 255 255 / .22); text-decoration: none; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 22px 0 0; }
.stat { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; color: inherit; box-shadow: var(--shadow); transition: border-color .12s, transform .12s; }
a.stat:hover { text-decoration: none; border-color: var(--accent); transform: translateY(-1px); }
.stat b { display: block; font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 14.5px; font-weight: 500; }
.stat.hot b { color: var(--warn); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 40px 0 14px; }
.section-head h2 { margin: 0; }
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.cat { display: flex; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; color: var(--text); box-shadow: var(--shadow); min-height: 76px; transition: border-color .12s, transform .12s; }
.cat:hover { text-decoration: none; border-color: var(--accent); transform: translateY(-1px); }
.cat .bubble { flex: none; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.cat .bubble .ico { width: 24px; height: 24px; }
.cat b { display: block; font-size: 15.5px; line-height: 1.25; }
.cat small { display: block; color: var(--muted); font-size: 13px; line-height: 1.3; margin-top: 2px; }
.cat .n { margin-left: auto; font-weight: 800; font-size: 18px; color: var(--accent); font-variant-numeric: tabular-nums; }
.home-cols { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.regions { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 14px; padding: 8px 10px; }
.regions a { display: flex; justify-content: space-between; gap: 8px; padding: 9px 8px; border-radius: 9px; color: var(--text); font-size: 14.5px; min-height: 40px; align-items: center; }
.regions a:hover { background: var(--surface-2); text-decoration: none; }
.regions a span { color: var(--muted); font-variant-numeric: tabular-nums; font-weight: 600; font-size: 13.5px; }
.join-banner { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; margin-top: 40px; padding: 26px 28px; border-radius: 20px; background: linear-gradient(135deg, var(--gold-soft), color-mix(in srgb, var(--gold-soft) 60%, var(--surface))); border: 1px solid color-mix(in srgb, var(--gold) 25%, transparent); }
.join-banner h2 { margin: 0 0 6px; }
.join-banner ul { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--text); font-size: 15px; }
.join-banner li::before { content: "✓ "; color: var(--gold); font-weight: 800; }
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; }
.trust div { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--muted); }
.trust b { display: block; color: var(--text); font-size: 15px; }
.trust .ico { color: var(--accent); width: 24px; height: 24px; margin-top: 2px; }

/* ---------- listado ---------- */
.layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 28px; align-items: start; }
.side { position: sticky; top: calc(var(--top) + 16px); }
.filters { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.filters .sheet-head, .filters .sheet-foot, .sheet-backdrop { display: none; }
.filters .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 8px; }
.filters label { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.filters label > span { font-size: 12.5px; font-weight: 700; color: var(--muted); letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.filters .full { grid-column: 1 / -1; }
.filters select, .filters input { min-height: 42px; padding-top: 8px; padding-bottom: 8px; font-size: 15px; }
.filters .radius { display: grid; grid-template-columns: minmax(0, 1fr) 92px; gap: 6px; }
.filters .q { position: relative; }
.filters .q .ico { position: absolute; left: 12px; top: 12px; color: var(--muted); }
.filters .q input { padding-left: 40px; min-height: 46px; font-size: 16px; }
.filters .apply-noscript { display: none; }
.no-js .filters .apply-noscript { display: inline-flex; }
.filters .clear { text-align: center; font-size: 14px; font-weight: 600; padding: 4px; }
.results-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 16px; flex-wrap: wrap; }
.results-head h1 { font-size: 26px; margin: 0; }
.results-head .count { color: var(--muted); margin: 2px 0 0; font-size: 15px; }
.results-head .count b { color: var(--text); }
.results-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.results-tools select { width: auto; min-height: 42px; font-size: 15px; }
.results-tools .btn { min-height: 42px; padding: 8px 14px; font-size: 15px; }
.open-filters { display: none; }
.active-filters { margin: 14px 0 0; }
.list { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.quick { display: flex; gap: 8px; margin-top: 14px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.quick::-webkit-scrollbar { display: none; }
.quick a { flex: none; padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); color: var(--text); font-size: 14px; font-weight: 600; min-height: 38px; display: inline-flex; align-items: center; }
.quick a:hover { border-color: var(--accent); text-decoration: none; }
.quick a.on { background: var(--text); color: var(--bg); border-color: var(--text); }

/* tarjeta de resultado */
.item { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px 16px 20px; color: inherit; box-shadow: var(--shadow); transition: border-color .12s, transform .12s, box-shadow .12s; overflow: hidden; }
.item::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--old-soft); }
.item.d-urgent::before { background: var(--warn); }
.item.d-soon::before { background: var(--mid); }
.item.d-open::before { background: var(--ok); }
.item:hover { text-decoration: none; border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); box-shadow: var(--shadow-l); transform: translateY(-1px); }
.item .top-line { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.item .top-line .chip { font-size: 12px; padding: 2px 9px; }
.item h3 { font-size: 17.5px; line-height: 1.3; letter-spacing: -.012em; color: var(--text); overflow-wrap: anywhere; }
.item .org { display: flex; gap: 6px; align-items: flex-start; color: var(--muted); font-size: 14.5px; margin-top: 4px; }
.item .org .ico { width: 17px; height: 17px; margin-top: 2px; }
.item .meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 10px; font-size: 14px; color: var(--muted); }
.item .meta b { color: var(--text); font-weight: 650; }
.item .aside { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 8px; min-width: 112px; }
.count-box { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 96px; padding: 8px 10px; border-radius: 13px; background: var(--old-soft); color: var(--old); line-height: 1.1; text-align: center; }
.count-box b { font-size: 26px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.count-box span { font-size: 12.5px; font-weight: 700; }
.count-box.urgent { background: var(--warn-soft); color: var(--warn); }
.count-box.soon { background: var(--mid-soft); color: var(--mid); }
.count-box.open { background: var(--ok-soft); color: var(--ok); }
.count-box.txt b { font-size: 16px; letter-spacing: 0; }
.item .plazas-n { font-size: 14px; color: var(--muted); white-space: nowrap; }
.item .plazas-n b { color: var(--text); font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.item .when { font-size: 13px; color: var(--muted); white-space: nowrap; }
.save-search { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 18px 0 0; padding: 14px 16px; border-radius: var(--radius); border: 1px dashed color-mix(in srgb, var(--gold) 45%, transparent); background: var(--gold-soft); }
.save-search p { margin: 0; font-size: 15px; }
.save-search .ico { color: var(--gold); }

.pager { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
.pager .nums { display: inline-flex; gap: 4px; align-items: center; }
.pager .nums a { min-width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 11px; color: var(--text); font-weight: 650; font-variant-numeric: tabular-nums; }
.pager .nums a:hover { background: var(--surface-2); text-decoration: none; }
.pager .nums a.on { background: var(--text); color: var(--bg); }
.pager .of { display: none; }

/* ---------- ficha ---------- */
.back { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; min-height: 44px; }
.ficha { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.ficha h1 { font-size: clamp(24px, 3vw, 32px); overflow-wrap: anywhere; }
.ficha .org { color: var(--muted); font-size: 16px; display: flex; gap: 8px; align-items: flex-start; }
.ficha .org .ico { margin-top: 3px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0 0; }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 13px 15px; }
.fact .k { font-size: 13px; font-weight: 700; color: var(--muted); }
.fact .v { font-size: 21px; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; overflow-wrap: anywhere; }
.fact .v.t { font-size: 16.5px; font-weight: 700; letter-spacing: 0; }
.fact .s { font-size: 13px; color: var(--muted); line-height: 1.35; margin-top: 2px; }
.check { list-style: none; padding: 0; margin: 0; }
.check li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.check li:first-child { border-top: 0; padding-top: 2px; }
.check .dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.check .dot .ico { width: 17px; height: 17px; }
.check b { display: block; font-size: 15.5px; }
.check span { color: var(--muted); font-size: 15px; overflow-wrap: anywhere; }
.check .hint { font-size: 13px; }
.action-card { position: sticky; top: calc(var(--top) + 16px); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-l); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.action-card .big-count { border-radius: 16px; padding: 16px; text-align: center; background: var(--old-soft); color: var(--old); }
.action-card .big-count b { display: block; font-size: 44px; font-weight: 850; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.action-card .big-count span { font-weight: 700; font-size: 15px; }
.action-card .big-count small { display: block; margin-top: 6px; font-size: 14px; font-weight: 600; opacity: .9; }
.action-card .big-count.urgent { background: var(--warn-soft); color: var(--warn); }
.action-card .big-count.soon { background: var(--mid-soft); color: var(--mid); }
.action-card .big-count.open { background: var(--ok-soft); color: var(--ok); }
.action-card .fine { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.45; }
.kv { display: grid; grid-template-columns: minmax(120px, 200px) 1fr; gap: 10px 18px; margin: 0; font-size: 15.5px; }
.kv dt { color: var(--muted); font-weight: 600; }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.timeline { list-style: none; margin: 0; padding: 4px 0 0 4px; }
.timeline li { position: relative; padding: 0 0 20px 30px; }
.timeline li::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: -8px; width: 2px; background: var(--line-2); }
.timeline li:last-child::before { display: none; }
.timeline li::after { content: ""; position: absolute; left: 0; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 3px solid var(--line-2); }
.timeline li.here::after { border-color: var(--accent); background: var(--accent); }
.timeline time { display: block; font-size: 13.5px; color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.timeline .what { font-size: 15px; }
.legal { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.65; max-height: 60vh; overflow: auto; padding: 18px 20px; }
.related { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.related a { display: flex; justify-content: space-between; gap: 10px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; color: var(--text); font-weight: 600; font-size: 15px; }
.related a:hover { border-color: var(--accent); text-decoration: none; }
.related .chip { flex: none; }

/* ---------- qué cubrimos ---------- */
.rows .row { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); }
.rows .row:first-child { border-top: 0; }
.rows .row .t { font-weight: 600; overflow-wrap: anywhere; }
details.fold { margin-top: 18px; }
details.fold > summary { list-style: none; cursor: pointer; font-weight: 650; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: flex; gap: 10px; align-items: center; min-height: 48px; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::before { content: "▸"; color: var(--muted); }
details.fold[open] > summary::before { content: "▾"; }
details.fold[open] > summary { border-radius: var(--radius) var(--radius) 0 0; border-bottom: 0; }
details.fold[open] > .panel { border-radius: 0 0 var(--radius) var(--radius); }

footer.site { border-top: 1px solid var(--line); margin-top: 48px; padding: 22px 0 8px; color: var(--muted); font-size: 14px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: flex-end; }
footer.site nav a { color: var(--muted); font-weight: 600; }

/* ---------- tableta ---------- */
@media (max-width: 1080px) {
  .layout { grid-template-columns: 260px minmax(0, 1fr); gap: 20px; }
  .ficha { grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; }
  .home-cols { grid-template-columns: 1fr; }
}

/* ---------- móvil y tableta estrecha: filtros en hoja inferior ---------- */
@media (max-width: 860px) {
  :root { --top: 54px; }
  .wrap { padding: 0 16px; }
  main { padding: 16px 0 calc(92px + env(safe-area-inset-bottom)); }
  h1 { font-size: 23px; }
  h2 { font-size: 18px; margin: 28px 0 12px; }
  header.top nav, header.top .btn.acct .lbl { display: none; }
  .top .btn.acct { width: 42px; padding: 0; }
  .top .btn.acct { width: 42px; padding: 0; }
  .brand { font-size: 18px; }

  nav.bottom { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  nav.bottom a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 60px; color: var(--muted); font-size: 11.5px; font-weight: 700; }
  nav.bottom a .ico { width: 24px; height: 24px; }
  nav.bottom a.on { color: var(--accent); }
  nav.bottom a.gold { color: var(--gold); }
  nav.bottom a:hover { text-decoration: none; }


  .ficha { display: flex; flex-direction: column; gap: 0; }
  .ficha .action-card { position: static; order: -1; margin: 16px 0 4px; box-shadow: var(--shadow); padding: 14px; }
  .action-card .big-count { display: grid; grid-template-columns: auto 1fr; text-align: left; gap: 2px 14px; align-items: center; padding: 12px 16px; }
  .action-card .big-count b { grid-row: span 2; font-size: 40px; }
  .action-card .big-count small { margin: 0; }
  .ficha-main { order: -2; }
  .ficha-rest { order: 0; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .trust { grid-template-columns: 1fr; }
  .join-banner { grid-template-columns: 1fr; padding: 22px 20px; }
  footer.site { grid-template-columns: 1fr; }
  footer.site nav { justify-content: flex-start; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 14px; }
  .hero { border-radius: 20px; padding: 26px 18px 20px; margin: 0 -2px; }
  .hero p.lead { font-size: 16px; margin-bottom: 18px; }
  .search-big { grid-template-columns: 1fr; padding: 6px; gap: 4px; }
  .search-big label + label { border-left: 0; border-top: 1px solid var(--line); }
  .search-big label { padding: 8px 10px; }
  .search-big button { width: 100%; min-height: 54px; }
  .hero .popular { flex-wrap: nowrap; overflow-x: auto; margin: 14px -18px 0; padding: 0 18px 2px; scrollbar-width: none; }
  .hero .popular::-webkit-scrollbar { display: none; }
  .hero .popular a, .hero .popular span { flex: none; }
  .stat { padding: 12px 14px; }
  .stat b { font-size: 24px; }
  .stat span { font-size: 13.5px; }
  .cats { grid-template-columns: 1fr 1fr; gap: 8px; }
  .cat { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; min-height: 0; position: relative; }
  .cat .bubble { width: 40px; height: 40px; }
  .cat .n { position: absolute; top: 12px; right: 12px; font-size: 16px; }
  .cat small { display: none; }
  .cat b { font-size: 14.5px; }
  .regions { grid-template-columns: 1fr; }
  .section-head { margin-top: 30px; }

  .results-head h1 { font-size: 22px; }
  .results-tools { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .results-tools select { width: 100%; }
  .results-tools .alert-btn { grid-column: 1 / -1; }
  .item { grid-template-columns: minmax(0, 1fr) auto; padding: 14px 14px 14px 17px; gap: 6px 12px; }
  .item h3 { font-size: 16.5px; }
  .item .aside { min-width: 0; }
  .count-box { min-width: 70px; padding: 7px 6px; border-radius: 12px; }
  .count-box b { font-size: 22px; }
  .count-box span { font-size: 11.5px; }
  .count-box.txt b { font-size: 14px; }
  .item .when { display: none; }
  .item .meta { gap: 2px 12px; font-size: 13.5px; }
  .pager .nums { display: none; }
  .pager .of { display: inline; }

  .facts { grid-template-columns: 1fr 1fr; gap: 8px; }
  .fact { padding: 11px 12px; }
  .fact .v { font-size: 19px; }
  .kv { grid-template-columns: 1fr; gap: 0; }
  .kv dt { margin-top: 10px; font-size: 13.5px; }
  .rows .row { grid-template-columns: 1fr auto; padding: 12px 14px; gap: 4px 10px; }
  .rows .row .t { grid-column: 1 / -1; grid-row: 2; }
  .rows .row .info { grid-column: 1 / -1; }
  .join-banner .btn { width: 100%; }
  .top .btn.acct { padding: 8px 12px; }
}
@media (max-width: 380px) {
  .count-box { min-width: 62px; }
  .item h3 { font-size: 16px; }
  nav.bottom a { font-size: 10.5px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media (min-width: 861px) {
  .ficha .action-card { grid-column: 2; grid-row: 1 / span 2; }
  .ficha-main, .ficha-rest { grid-column: 1; min-width: 0; }
}

/* ---------- formularios (también para las páginas de cuenta) ---------- */
.form { display: flex; flex-direction: column; gap: 14px; max-width: 520px; }
.form label, .field-block { display: flex; flex-direction: column; gap: 6px; font-weight: 650; font-size: 15px; }
.form label[hidden] { display: none; }   /* p. ej. la provincia de la alerta en comunidades uniprovinciales */
.form .hint, .form small { font-weight: 400; color: var(--muted); font-size: 14px; }
input[type=email], input[type=password], input[type=number], input[type=tel], input[type=url], textarea { font: inherit; font-size: 16px; color: var(--text); background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-s); padding: 10px 12px; min-height: 46px; width: 100%; min-width: 0; }
textarea { min-height: 110px; resize: vertical; }
input[type=email]:focus, input[type=password]:focus, input[type=number]:focus, input[type=tel]:focus, textarea:focus { border-color: var(--accent); outline: 0; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
input[type=checkbox], input[type=radio] { width: 20px; height: 20px; accent-color: var(--accent); margin: 0; flex: none; }
label.check-line { flex-direction: row; align-items: center; gap: 10px; font-weight: 500; min-height: 44px; cursor: pointer; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin: 0; min-width: 0; }
legend { font-weight: 700; padding: 0 6px; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 24px; max-width: 520px; }
.form-card.center { margin: 16px auto 0; }
.btn.danger, button.danger { background: var(--warn-soft); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 35%, transparent); }
.btn.danger:hover, button.danger:hover { background: color-mix(in srgb, var(--warn-soft) 70%, var(--warn) 12%); }
button:disabled, .btn[aria-disabled=true] { opacity: .55; cursor: not-allowed; }
form.inline { display: inline; margin: 0; }
.flashes { display: flex; flex-direction: column; gap: 8px; margin: 0 0 16px; }
.flash { margin: 0; padding: 12px 16px; border-radius: 12px; font-size: 15px; font-weight: 550; background: var(--accent-soft); color: var(--text); border-left: 4px solid var(--accent); }
.flash.success, .flash.ok { background: var(--ok-soft); border-left-color: var(--ok); }
.flash.error, .flash.danger { background: var(--warn-soft); border-left-color: var(--warn); }
.flash.warning, .flash.warn { background: var(--mid-soft); border-left-color: var(--mid); }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { text-align: left; padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--muted); font-size: 13px; font-weight: 700; border-top: 0; }

/* ---------- repaso móvil ---------- */
.only-m, .sticky-cta { display: none; }
a.theme { display: none; place-items: center; }
.fact .v, .count-box span, time, .when, .plazas-n { white-space: nowrap; }
@media (max-width: 860px) {
  a.theme.only-m { display: inline-grid; }
  .sticky-cta { display: block; position: fixed; left: 0; right: 0; bottom: calc(60px + env(safe-area-inset-bottom)); z-index: 35; padding: 10px 14px; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
  .sticky-cta .btn { min-height: 50px; font-size: 16.5px; }
  body:has(.sticky-cta) main { padding-bottom: calc(160px + env(safe-area-inset-bottom)); }
  .ficha .action-card > .btn.big { display: none; }
  .filters { height: 94dvh; max-height: 94dvh; }
}
@media (max-width: 640px) {
  /* datos de la ficha: lista compacta, una fila por dato, nada se parte */
  .facts { grid-template-columns: 1fr; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
  .fact { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 11px 14px; }
  .fact:first-child { border-top: 0; }
  .fact .k { font-size: 14.5px; font-weight: 600; }
  .fact .v, .fact .v.t { font-size: 16px; font-weight: 750; text-align: right; }
  .fact .s { display: none; }
  /* tarjetas: solo los datos clave */
  .item .meta .opt { display: none; }
  /* pestañas de «Qué cubrimos» en rejilla, todas a la vista */
  .tabs.tabs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; border: 0; overflow: visible; }
  .tabs.tabs-grid a { border: 1px solid var(--line-2); border-radius: 12px; justify-content: space-between; padding: 8px 12px; background: var(--surface); font-size: 14.5px; white-space: normal; line-height: 1.25; }
  .tabs.tabs-grid a.on { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
  .tabs.tabs-grid a:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* ---------- mapa ---------- */
.map-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.map-bar h1 { margin: 0 8px 0 0; font-size: 24px; }
.map-bar select { width: auto; min-height: 42px; font-size: 15px; max-width: 220px; }
.map-bar .btn { min-height: 42px; margin-left: auto; padding: 8px 14px; }
.map-wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 360px; height: calc(100dvh - var(--top) - 120px); min-height: 440px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--surface); }
.map-wrap.fs { position: fixed; inset: 0; z-index: 80; height: 100dvh; border-radius: 0; border: 0; }
#map { height: 100%; z-index: 0; background: var(--surface-2); }
.map-panel { border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; background: var(--surface); }
.map-panel-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; padding: 14px 16px 10px; border-bottom: 1px solid var(--line); }
.map-panel-head h2 { margin: 0; font-size: 18px; }
.map-panel-head p { margin: 2px 0 0; }
.mp-close { width: 44px; height: 44px; padding: 0; min-height: 0; font-size: 22px; flex: none; display: none; }
.map-list { overflow-y: auto; padding: 0 16px; flex: 1; overscroll-behavior: contain; }
.legend { padding: 14px 0; font-size: 14.5px; }
.legend p { display: flex; gap: 10px; align-items: center; }
.mp-item { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); color: var(--text); min-height: 56px; }
.mp-item:first-child { border-top: 0; }
.mp-item:hover { text-decoration: none; }
.mp-item:hover b { color: var(--accent); }
.mp-item b { display: block; font-size: 15px; line-height: 1.3; }
.mp-item small { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.35; margin-top: 2px; }
.mp-item small strong { color: var(--text); }
.deadline { flex: none; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; background: var(--old-soft); color: var(--old); }
.deadline.urgent { background: var(--warn-soft); color: var(--warn); }
.deadline.soon { background: var(--mid-soft); color: var(--mid); }
.deadline.open { background: var(--ok-soft); color: var(--ok); }
.mk { display: grid; place-items: center; border-radius: 50%; font-weight: 800; color: #fff; background: color-mix(in srgb, #2b201b 90%, transparent); border: 2.5px solid #fff; box-shadow: 0 2px 8px rgb(0 0 0 / .3); font-variant-numeric: tabular-nums; cursor: pointer; transition: transform .12s; }
.mk:hover { transform: scale(1.08); }
.mk.hot { background: color-mix(in srgb, #a3123a 92%, transparent); }
.mk-demo { flex: none; width: 22px; height: 22px; border-radius: 50%; background: #2b201b; border: 2px solid #fff; box-shadow: 0 1px 4px rgb(0 0 0 / .3); }
.mk-demo.hot { background: #a3123a; }
.map-btn { width: 36px; height: 36px; min-height: 0; padding: 0; background: #fff; color: #222; border: 2px solid rgb(0 0 0 / .2); border-radius: 6px; display: grid; place-items: center; margin-top: 2px; }
.map-btn:hover { background: #f4f4f4; }
.leaflet-popup-content { font: 14px/1.5 system-ui, sans-serif; }
.leaflet-container { font: 13px/1.4 system-ui, sans-serif; }
@media (max-width: 860px) {
  .map-bar { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 10px; padding: 0 16px 2px; scrollbar-width: none; }
  .map-bar::-webkit-scrollbar { display: none; }
  .map-bar > * { flex: none; }
  .map-bar h1 { font-size: 20px; }
  .map-bar .btn span { display: none; }
  .map-wrap { display: block; height: calc(100dvh - var(--top) - 60px - 90px - env(safe-area-inset-bottom)); min-height: 380px; margin: 0 -16px; border-radius: 0; border-left: 0; border-right: 0; }
  .map-wrap.fs { margin: 0; }
  .map-panel { position: absolute; left: 0; right: 0; bottom: 0; z-index: 500; max-height: 72%; border: 0; border-radius: 20px 20px 0 0; box-shadow: 0 -10px 30px rgb(0 0 0 / .25); transform: translateY(105%); transition: transform .22s ease; }
  .map-panel.open { transform: none; }
  .mp-close { display: inline-grid; place-items: center; }
  .map-btn { width: 44px; height: 44px; }
  main:has(.map-wrap) { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  main:has(.map-wrap) footer.site { display: none; }
}
@media (max-width: 640px) { .tabs.even > * { flex: 1 1 0; justify-content: center; padding: 10px 6px; } }
.filters select { padding-left: 10px; padding-right: 24px; background-position: right 4px center; font-size: 14.5px; }
.filters .radius select { padding-right: 22px; }
.quick, .tabs:not(.tabs-grid):not(.even) { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); padding-right: 30px; }

@media (max-width: 1100px) { .filters select { font-size: 16px; } }
.segment { display: inline-flex; gap: 2px; margin-top: 14px; padding: 4px; background: var(--surface-2); border-radius: 13px; max-width: 100%; }
.segment a { padding: 8px 14px; border-radius: 10px; color: var(--muted); font-weight: 650; font-size: 14.5px; min-height: 40px; display: inline-flex; align-items: center; white-space: nowrap; }
.segment a:hover { color: var(--text); text-decoration: none; }
.segment a.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgb(0 0 0 / .12); }
@media (max-width: 640px) { .segment { display: flex; } .segment a { flex: 1 1 auto; justify-content: center; padding: 8px 6px; font-size: 14px; min-height: 44px; } }
@media (max-width: 380px) { .segment a { font-size: 13px; padding: 8px 4px; } }
button.block { width: 100%; }
form.seguir { margin: 0; }
@media (max-width: 640px) { .quick { display: none; } }
.fact .v .na { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.kv dt:first-child { margin-top: 0; }
@media (min-width: 861px) { .ficha { grid-template-rows: auto 1fr; } }
.action-card .btn.big { font-size: 16.5px; padding: 12px 14px; }
:root[data-theme="dark"] #map .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.85) contrast(.9) saturate(.6); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) #map .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.85) contrast(.9) saturate(.6); } }
#map .leaflet-tile-pane { filter: saturate(.55) brightness(1.03); }
@media (max-width: 640px) {
  .tabs.tabs-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .tabs.tabs-grid a { min-width: 0; }
  .rows .row > :first-child { grid-column: 2; grid-row: 1; }
  .rows .row .t { grid-column: 1; grid-row: 1; }
  .rows .row .info { grid-column: 1 / -1; grid-row: 2; }
}
label:has(> .sr) { position: relative; }
@media (max-width: 640px) { .map-bar { margin: 0 -14px 10px; padding: 0 14px 2px; } .map-wrap { margin: 0 -14px; } }
/* ---------- segunda pasada: marca, ámbitos, fases ---------- */
.chip.fase { background: var(--mid-soft); color: var(--mid); }
.item .meta .req { display: inline-flex; gap: 4px; align-items: center; color: var(--text); }
.item .meta .req .ico { width: 16px; height: 16px; color: var(--muted); }
.brand span { font-weight: 800; letter-spacing: -.035em; }
.foot-brand { font-size: 15px; color: var(--text); }
.scope-intro { margin: 6px 0 0; max-width: 60em; }
.scope { margin-top: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.scope-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.scope-stats > * { padding: 12px 16px; border-left: 1px solid var(--line); color: var(--text); }
.scope-stats > :first-child { border-left: 0; }
.scope-stats a:hover { background: var(--surface-2); text-decoration: none; }
.scope-stats b { display: block; font-size: 24px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.scope-stats span { color: var(--muted); font-size: 14px; }
.scope-stats .hot b { color: var(--warn); }
.scope-more { border-top: 1px solid var(--line); }
.scope-more > summary { cursor: pointer; padding: 10px 16px; font-weight: 650; color: var(--accent); list-style: none; min-height: 44px; display: flex; align-items: center; }
.scope-more > summary::-webkit-details-marker { display: none; }
.scope-more > summary::after { content: "▾"; margin-left: 6px; }
.scope-more[open] > summary::after { content: "▴"; }
.scope-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; padding: 4px 16px 16px; }
.scope-grid h3 { margin: 0 0 8px; font-size: 14px; color: var(--muted); }
.scope-grid a.chip { color: var(--text); padding: 6px 10px; }
.scope-grid a.chip:hover { background: var(--accent-soft); text-decoration: none; }
ul.bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
ul.bars a { display: grid; grid-template-columns: 34px 1fr 40px; gap: 8px; align-items: center; color: var(--text); font-size: 14px; min-height: 30px; }
ul.bars a:hover { text-decoration: none; }
ul.bars a:hover span:first-child { color: var(--accent); }
ul.bars .bar { height: 10px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
ul.bars .bar i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
ul.bars b { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .scope-stats { grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); }
  .scope-stats > * { padding: 10px 12px; }
  .scope-stats b { font-size: 21px; }
  .scope-stats span { font-size: 13px; }
  .scope-grid { grid-template-columns: 1fr; }
}
.map-attr { margin: 10px 0 0; }
@media (max-width: 860px) { main:has(.map-wrap) .map-attr { margin: 8px 0 0; font-size: 12px; } }
.regions-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin-top: 18px; }
.region { display: flex; flex-direction: column; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; color: var(--text); box-shadow: var(--shadow); min-height: 88px; transition: border-color .12s, transform .12s; }
.region:hover { text-decoration: none; border-color: var(--accent); transform: translateY(-1px); }
.region .r-name { font-weight: 750; font-size: 16.5px; display: flex; gap: 8px; align-items: center; }
.region .r-sub { color: var(--muted); font-size: 13.5px; }
.region .r-nums { color: var(--muted); font-size: 14.5px; }
.region .r-nums b { color: var(--text); }
.region.nac { grid-column: 1 / -1; background: linear-gradient(135deg, var(--accent-soft), var(--surface)); border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); }
.region.nac .ico { color: var(--accent); }
.chip.warn-chip { background: var(--warn-soft); color: var(--warn); align-self: flex-start; margin-top: 2px; }
.about { max-width: 720px; }
.about-logo { width: 64px; height: 64px; margin-bottom: 10px; }
.about .lead { font-size: 19px; line-height: 1.5; }
.about blockquote { margin: 22px 0; padding: 14px 20px; border-left: 4px solid var(--accent); background: var(--surface); border-radius: 0 var(--radius-s) var(--radius-s) 0; font-size: 18px; }
.about .check-list { padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.about .check-list li { position: relative; padding-left: 24px; }   /* bloque: el texto con <b> o enlaces fluye seguido */
.about .check-list li::before { content: "✓"; color: var(--accent); font-weight: 800; position: absolute; left: 0; }
.about-cta { margin-top: 26px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.proc { margin-top: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.proc-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.proc-head h2 { margin: 0; font-size: 18px; }
ol.phases { list-style: none; margin: 16px 0 6px; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); counter-reset: f; }
ol.phases li { position: relative; text-align: center; font-size: 12.5px; color: var(--muted); padding-top: 22px; font-weight: 600; line-height: 1.2; }
ol.phases li::before { content: ""; position: absolute; top: 7px; left: 0; right: 0; height: 4px; background: var(--line); }
ol.phases li:first-child::before { left: 50%; }
ol.phases li:last-child::before { right: 50%; }
ol.phases li::after { content: ""; position: absolute; top: 2px; left: 50%; margin-left: -7px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 3px solid var(--line-2); }
ol.phases li.done { color: var(--text); }
ol.phases li.done::before, ol.phases li.now::before { background: var(--accent); }
ol.phases li.now:not(:last-child)::before { right: 50%; }
ol.phases li.now::after { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
ol.phases li.done::after { background: var(--accent); border-color: var(--accent); }
ol.phases li.now { color: var(--accent); font-weight: 800; }
.proc-next p { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 0; font-size: 15px; }
.proc-next .ico { color: var(--accent); margin-top: 2px; }
.next-deadline { background: var(--mid-soft); padding: 10px 12px; border-radius: 12px; }
.prev-row { border-top: 1px solid var(--line); padding: 12px 0 2px; }
.prev-row:first-child { border-top: 0; padding-top: 0; }
.prev-row p { margin: 0 0 4px; }
details.temario > summary { cursor: pointer; font-weight: 650; color: var(--accent); padding: 8px 0; min-height: 44px; display: flex; align-items: center; }
details.temario .legal { border: 1px solid var(--line); border-radius: 12px; margin-top: 6px; }
@media (max-width: 640px) { ol.phases li { font-size: 10.5px; } .proc { padding: 14px; } }
.hero .kicker { position: relative; z-index: 1; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; font-weight: 700; opacity: .85; margin-bottom: 10px; }
.hero h1, .hero .lead { position: relative; z-index: 1; }
.regions a.nac-link { grid-column: 1 / -1; background: var(--accent-soft); }
.next-banner { display: flex; gap: 14px; align-items: center; margin-top: 18px; padding: 16px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--text); box-shadow: var(--shadow); }
.next-banner:hover { text-decoration: none; border-color: var(--accent); }
.next-banner .ico { width: 28px; height: 28px; color: var(--accent); flex: none; }
.next-banner b { display: block; font-size: 16px; }
.next-banner span { color: var(--muted); font-size: 14.5px; }
.next-banner .go { margin-left: auto; color: var(--accent); font-weight: 700; flex: none; }
a.theme.admin-link { display: inline-grid; }
.item .meta:not(:has(*)) { display: none; }
@media (max-width: 640px) { .item .meta:not(:has(> :not(.opt))) { display: none; } }
ol.phases { grid-template-columns: repeat(6, minmax(0, 1fr)); }
ol.phases .s { display: none; }
.ficha > * { min-width: 0; }
@media (max-width: 640px) { ol.phases .l { display: none; } ol.phases .s { display: inline; } ol.phases li { font-size: 11.5px; } }
.check li { grid-template-columns: 30px minmax(0, 1fr); }
/* ---------- filtros por bloques (rediseño) ---------- */
.filters { padding: 0; gap: 0; }
.filters .fbody { padding: 14px 16px 6px; display: flex; flex-direction: column; }
.filters .q { margin-bottom: 8px; }
.fgroup { border-top: 1px solid var(--line); }
.fgroup > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; min-height: 48px; font-weight: 750; font-size: 15.5px; color: var(--text); }
.fgroup > summary::-webkit-details-marker { display: none; }
.fgroup > summary::after { content: ""; margin-left: auto; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-3px); transition: transform .15s; }
.fgroup[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
.fgroup > summary:hover { color: var(--accent); }
.dotn { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; }
.fgroup .fields { display: flex; flex-direction: column; gap: 14px; padding: 2px 0 18px; }
.filters label > span, .opts legend { font-size: 13px; font-weight: 650; color: var(--muted); letter-spacing: 0; text-transform: none; }
.fhint { margin: -8px 0 0; font-size: 13px; color: var(--muted); }
.opts { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.opts legend { padding: 0; margin-bottom: 6px; float: left; width: 100%; }
label.opt { position: relative; display: inline-flex; flex-direction: row; }
label.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
label.opt span { display: inline-flex; align-items: center; min-height: 38px; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text) !important; font-size: 14.5px !important; font-weight: 600 !important; cursor: pointer; white-space: nowrap; }
label.opt span:hover { border-color: var(--accent); }
label.opt input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--on-accent) !important; }
label.opt input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.filters .sheet-foot { display: grid; grid-template-columns: auto 1fr; gap: 8px; position: sticky; bottom: 0; background: var(--surface); padding: 12px 16px; border-top: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); z-index: 2; }
.filters .sheet-foot .btn, .filters .sheet-foot button { min-height: 46px; }
.filters.dirty .ver-n { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
.ver-n.loading { opacity: .75; }
@media (min-width: 1101px) {
  .side { max-height: calc(100dvh - var(--top) - 32px); overflow-y: auto; overflow-x: hidden; border-radius: var(--radius);
    scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
  .side::-webkit-scrollbar { width: 8px; } .side::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 8px; }
  .layout { grid-template-columns: 320px minmax(0, 1fr); }
}
@media (max-width: 1100px) {
  .filters { padding: 0; }
  .filters .sheet-head { padding: 14px 16px 10px; gap: 10px; }
  .filters .sheet-head h2 { margin: 6px 0 0; flex: 1; }
  .quitar-todo { font-weight: 650; font-size: 15px; padding: 10px 6px; margin-top: 6px; }
  .filters .fbody { padding: 12px 16px 8px; }
  .filters .sheet-foot { border-radius: 0; padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); }
  label.opt span { min-height: 44px; padding: 8px 15px; }
  .fgroup > summary { min-height: 52px; font-size: 16.5px; }
}
.about-logo .logo { width: auto; height: 56px; }
@media (max-width: 640px) {
  .hero .popular { flex-wrap: wrap; overflow: visible; margin: 14px 0 0; padding: 0; gap: 6px; }
  .hero .popular > span { flex-basis: 100%; }
  .hero .popular a { padding: 6px 11px; font-size: 13.5px; }
  .hero .popular a:nth-of-type(n+5) { display: none; }
}
.about-logo { display: block; }
.ver-n { white-space: nowrap; padding-left: 12px; padding-right: 12px; } @media (min-width: 861px) { .ver-n { font-size: 15px; } }
@media (max-width: 860px) { .ficha { align-items: stretch; } }
.prev-sel { display: none; margin: 14px 0 8px; }
@media (max-width: 860px) { .prev-sel { display: block; } .prev-tabs { display: none; } }
.scope-stats > * { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 640px) { .scope-stats { grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); } .scope-stats > * { border-top: 1px solid var(--line); margin-top: -1px; } }
.foot-links { display: flex; flex-direction: column; gap: 10px; }
.foot-links nav { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: flex-end; }
.foot-links nav a { color: var(--muted); font-weight: 600; min-height: 32px; display: inline-flex; align-items: center; }
.credito { font-size: 13.5px; color: var(--muted); }
@media (max-width: 860px) { .foot-links nav { justify-content: flex-start; } .foot-links nav a { min-height: 40px; } }
.count-box abbr { text-decoration: none; cursor: help; }
.warn-fine { background: var(--mid-soft); color: var(--text) !important; padding: 8px 10px; border-radius: 10px; }
.kindtabs { display: flex; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
.kindtabs a { padding: 7px 14px; border-radius: 999px; font-weight: 650; font-size: 14.5px; color: var(--muted); border: 1px solid var(--line-2); min-height: 40px; display: inline-flex; align-items: center; background: var(--surface); }
.kindtabs a.on { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
.kindtabs a:hover { text-decoration: none; border-color: var(--accent); }
@media (max-width: 640px) { .kindtabs a { min-height: 44px; flex: 1 1 auto; justify-content: center; font-size: 14px; } }
@media (max-width: 640px) { .segment { overflow-x: auto; scrollbar-width: none; } .segment::-webkit-scrollbar { display: none; } .segment a { flex: 0 0 auto; padding: 8px 10px; } }

/* ---------- cabecera de portada C2 ---------- */
.hero { position: relative; overflow: hidden; border-radius: 24px; background: var(--hero-1); color: var(--text); padding: 44px 44px 56px; border: 1px solid color-mix(in srgb, var(--accent) 10%, transparent); }
.hero .copy { position: relative; z-index: 1; max-width: 600px; }
.hero .kicker { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); opacity: .8; margin: 0; }
.hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(32px, 4.6vw, 54px); line-height: 1.03; letter-spacing: -.025em; margin: 12px 0 0; color: var(--accent); max-width: none; }
.hero p.lead { color: var(--muted); font-size: 18px; margin: 16px 0 0; max-width: 34em; opacity: 1; }
.hero .search-big { margin-top: 26px; box-shadow: 0 0 0 1px var(--line), 0 20px 40px -20px rgb(43 32 27 / .35); }
.hero .search-big label span { color: var(--accent); }
.hero .search-big .ico { color: var(--accent); }
.hero-stats { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 16px; font-size: 15px; }
.hero-stats a { color: var(--muted); }
.hero-stats a:hover { color: var(--accent); text-decoration: none; }
.hero-stats b { font-family: var(--display); font-weight: 800; font-size: 20px; color: var(--accent); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.hero-stats .hot b { color: var(--warn); }
.hero .popular { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; align-items: center; font-size: 14px; color: var(--muted); }
.hero .popular a { color: var(--text); background: color-mix(in srgb, var(--surface) 75%, transparent); border: 1px solid var(--line); padding: 6px 13px; border-radius: 999px; font-weight: 600; white-space: nowrap; }
.hero .popular a:hover { border-color: var(--accent); text-decoration: none; }
.hero .art { position: absolute; right: 0; bottom: 0; width: min(46%, 640px); height: 100%; pointer-events: none; }
.hero .art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero .art-m { display: none; }
.hero .note { position: absolute; z-index: 2; display: flex; gap: 10px; align-items: center; background: var(--surface); border-radius: 14px; padding: 10px 14px 10px 10px; box-shadow: 0 0 0 1px var(--line), 0 14px 30px -14px rgb(43 32 27 / .4); font-size: 13px; line-height: 1.3; color: var(--text); max-width: 300px; }
.hero .note:hover { text-decoration: none; transform: translateY(-1px); }
.hero .note b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero .note small { color: var(--muted); white-space: nowrap; }
.hero .note > span { min-width: 0; }
.hero .note i { flex: none; min-width: 36px; height: 36px; padding: 0 4px; border-radius: 10px; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 12px; color: var(--accent); background: var(--accent-soft); }
.hero .note.hot i { background: var(--gold-soft); color: var(--gold); }
.hero .n1 { top: 14%; right: 6%; }
.hero .n2 { top: 52%; right: 22%; }
.hero::after { display: none; }
:root { --display: "Fraunces", Georgia, "Times New Roman", serif; }
.brand .logo { width: auto; height: 32px; } .brand span { display: none; }
h1 { font-family: var(--display); font-weight: 800; letter-spacing: -.02em; }

@media (max-width: 1100px) { .hero .note { display: none; } .hero .art { width: 40%; } .hero .copy { max-width: 60%; } }
@media (max-width: 760px) {
  .hero { padding: 22px 16px 104px; border-radius: 20px; margin: 0; }
  .hero .copy { max-width: none; }
  .hero p.lead { font-size: 16px; }
  .hero .art { display: none; }
  .hero .art-m { display: block; position: absolute; left: 0; right: 0; bottom: 0; height: 96px; }
  .hero .art-m svg { width: 100%; height: 100%; display: block; }
  .hero-stats { gap: 4px 14px; font-size: 14px; }
  .hero-stats b { font-size: 18px; }
  .hero .popular { flex-wrap: wrap; margin: 14px 0 0; padding: 0; }
  .hero .popular > span { flex-basis: 100%; }
  .hero .popular a:nth-of-type(n+5) { display: none; }
}
.prov-hint { margin: 4px 0 0 !important; } label.prov[hidden] { display: none; } .filters select:disabled { opacity: .6; cursor: not-allowed; }
/* ---------- sin barras de desplazamiento horizontal en filtros, chips y segmentos ---------- */
.quick { overflow: visible; flex-wrap: wrap; -webkit-mask-image: none; mask-image: none; padding-right: 0; }
.quick .quick-more { display: contents; }
.quick .quick-more > summary { list-style: none; cursor: pointer; flex: none; padding: 7px 14px; border-radius: 999px; border: 1px dashed var(--line-2); color: var(--accent); font-size: 14px; font-weight: 650; min-height: 38px; display: inline-flex; align-items: center; }
.quick .quick-more > summary::-webkit-details-marker { display: none; }
.quick .quick-more[open] > summary { display: none; }
.active-filters { align-items: center; }
.active-filters .mas-chips { display: contents; }
.active-filters .mas-chips > summary { list-style: none; cursor: pointer; font-size: 14px; font-weight: 650; color: var(--accent); padding: 6px 10px; min-height: 36px; display: inline-flex; align-items: center; }
.active-filters .mas-chips > summary::-webkit-details-marker { display: none; }
.active-filters .mas-chips[open] > summary { display: none; }
.active-filters .mas-chips > .chips { display: contents; }
.active-filters a.chip.limpiar { background: none; color: var(--muted); text-decoration: underline; min-height: 36px; padding: 6px 8px; }
.segment { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; overflow: visible; }
.segment a { justify-content: center; text-align: center; }
.segment .s { display: none; }
.kindtabs { flex-wrap: wrap; }
.tabs { scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
@media (max-width: 640px) {
  .segment { grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; width: 100%; }
  .segment a { padding: 8px 4px; min-width: 0; white-space: nowrap; }
  .segment .l { display: none; }
  .segment .s { display: inline; }
}
/* combobox */
.combo { position: relative; }
.combo-input { font: inherit; font-size: 16px; color: var(--text); background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-s); padding: 8px 30px 8px 10px; min-height: 42px; width: 100%; min-width: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23888'%3E%3Cpath d='M5.5 7.5 10 12l4.5-4.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 6px center; background-size: 18px; text-overflow: ellipsis; }
.combo-input:focus { border-color: var(--accent); outline: 0; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.combo-input:disabled { opacity: .6; cursor: not-allowed; }
.combo-input::placeholder { color: var(--text); opacity: .85; }
.combo-list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px; list-style: none; max-height: 260px; overflow-y: auto; background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow-l); }
.combo-list li { padding: 9px 10px; border-radius: 8px; cursor: pointer; font-size: 15px; color: var(--text); min-height: 40px; display: flex; align-items: center; }
.combo-list li[aria-selected="true"], .combo-list li:hover { background: var(--accent-soft); }
.combo-list li.vacia { color: var(--muted); }
.combo-list li.nada { color: var(--muted); cursor: default; }
.search-big .combo { flex: 1; min-width: 0; }
.search-big .combo-list { top: calc(100% + 12px); left: -36px; right: -12px; }
@media (max-width: 860px) { .combo-input { min-height: 46px; } .combo-list li { min-height: 44px; } }
.hero .copy { max-width: 660px; } @media (max-width: 1100px) { .hero .copy { max-width: 64%; } } @media (max-width: 760px) { .hero .copy { max-width: none; } }
.combo input.combo-input { background-color: var(--surface); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23888'%3E%3Cpath d='M5.5 7.5 10 12l4.5-4.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 6px center; background-size: 18px; padding-right: 30px; }
/* marca L2: titulares en Fraunces 700 (única variante alojada) */
h1, .hero h1 { font-family: var(--display); font-weight: 700; letter-spacing: -.015em; }
.hero h1 { color: var(--text); }
.hero .kicker { color: var(--accent); }
.hero-stats b { font-family: inherit; font-weight: 800; color: var(--text); }
.hero-stats .hot b { color: var(--warn); }
.hero .note i { background: var(--accent-soft); color: var(--accent-2); }
:root[data-theme="dark"] .hero .note i { color: var(--accent); }
.count-box.urgent b::before { content: ""; }
.hero .copy { max-width: 600px; }
.hero .search-big { max-width: 100%; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; }
.hero .n1 { top: 12%; right: 5%; }
.hero .n2 { top: auto; bottom: 26%; right: 6%; }
@media (max-width: 1100px) { .hero .copy { max-width: 62%; } }
@media (max-width: 760px) { .hero .copy { max-width: none; } .hero .search-big { grid-template-columns: 1fr; } }
/* ---------- estado del proceso: stepper (escritorio) y lista compacta (móvil) ---------- */
ol.phases { display: none; }
.proc { padding: 16px 18px 14px; }
.proc-head { min-height: 28px; }
.stepper { position: relative; margin: 16px 0 4px; --n: 6; }
.stepper .track { position: absolute; top: 10px; left: calc(100% / var(--n) / 2); right: calc(100% / var(--n) / 2); height: 4px; margin-top: -2px; background: var(--line); border-radius: 4px; }
.stepper .fill { position: absolute; left: 0; top: 0; bottom: 0; width: var(--pct); background: var(--accent); border-radius: 4px; }
.stepper ol { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
.stepper li { display: flex; flex-direction: column; align-items: center; gap: 7px; min-width: 0; }
.stepper .dot { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--line-2); box-sizing: border-box; }
.stepper .dot svg { width: 12px; height: 12px; fill: none; stroke: var(--on-accent); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.stepper li.done .dot { background: var(--accent); border-color: var(--accent); }
.stepper li.now .dot { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px var(--surface), 0 0 0 6px var(--accent); }
.stepper .lbl { font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; text-align: center; }
.stepper li.done .lbl { color: var(--text); }
.stepper li.now .lbl { color: var(--accent); font-weight: 800; }
.steps-m { display: none; }
.proc-next p { margin-top: 8px; }
.next-deadline { padding: 8px 12px; }
@media (max-width: 1100px) and (min-width: 861px) { .stepper .lbl { font-size: 11.5px; } }
@media (max-width: 600px) {
  .stepper { display: none; }
  .steps-m { display: block; margin: 10px 0 4px; }
  .sm-head { margin: 0 0 6px; font-size: 15px; }
  .sm-head b { color: var(--accent); }
  .sm-bar { display: block; height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; margin-bottom: 10px; }
  .sm-bar i { display: block; height: 100%; background: var(--accent); border-radius: 6px; }
  .steps-m ul { list-style: none; margin: 0; padding: 0 0 0 2px; }
  .steps-m li { position: relative; display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 14.5px; color: var(--muted); }
  .steps-m li:not(:last-child)::after { content: ""; position: absolute; left: 7px; top: 22px; bottom: -6px; width: 2px; background: var(--line); }
  .steps-m .dot { position: relative; z-index: 1; flex: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--surface); display: grid; place-items: center; box-sizing: border-box; }
  .steps-m .dot svg { width: 10px; height: 10px; fill: none; stroke: var(--on-accent); stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
  .steps-m li.done .dot, .steps-m li.now .dot { background: var(--accent); border-color: var(--accent); }
  .steps-m li.now { color: var(--text); }
  .steps-m li.now .dot { box-shadow: 0 0 0 3px var(--accent-soft); }
}

/* páginas de error (404, 500): la roca que rodó cuesta abajo */
.error-page { max-width: 620px; margin: 24px auto 40px; text-align: center; }
.error-ilus { width: min(320px, 100%); height: auto; display: block; margin: 0 auto 8px; }
.error-codigo { margin: 0; font-weight: 800; letter-spacing: .12em; color: var(--accent); font-size: 14px; }
.error-page h1 { margin: 4px 0 10px; }
.error-page .lead { color: var(--muted); font-size: 18px; line-height: 1.5; margin: 0 auto 22px; }
.error-buscar { display: flex; gap: 8px; max-width: 520px; margin: 0 auto 18px; }
.error-buscar input { flex: 1; min-width: 0; font-size: 16px; }
.error-acciones { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------- listado: barra lateral solo en escritorio ancho; por debajo, filtros en hoja ---------- */
@media (max-width: 1100px) {
  .layout { display: block; }
  .side { position: static; }
  .open-filters { display: inline-flex; }
  .open-filters .n { background: var(--accent); color: var(--on-accent); border-radius: 999px; font-size: 12px; padding: 0 7px; min-width: 20px; }
  .filters { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; max-height: 88dvh; overflow-y: auto; overscroll-behavior: contain;
    border-radius: 22px 22px 0 0; padding: 0 16px; gap: 14px; transform: translateY(105%); transition: transform .22s ease; box-shadow: 0 -12px 40px rgb(0 0 0 / .25); visibility: hidden; }
  .filters.open { transform: none; visibility: visible; }
  .filters .sheet-head { display: flex; position: sticky; top: 0; z-index: 2; background: var(--surface); align-items: center; justify-content: space-between; padding: 12px 0 8px; margin: 0; border-bottom: 1px solid var(--line); }
  .filters .sheet-head::before { content: ""; position: absolute; top: 6px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: var(--line-2); }
  .filters .sheet-head h2 { margin: 6px 0 0; font-size: 19px; }
  .filters .sheet-head button { width: 44px; height: 44px; padding: 0; min-height: 0; background: var(--surface-2); color: var(--text); border-radius: 12px; font-size: 22px; }
  .filters .sheet-foot { display: grid; grid-template-columns: auto 1fr; gap: 8px; position: sticky; bottom: 0; background: var(--surface); padding: 10px 0 calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); margin-top: 4px; }
  .filters .clear-desk { display: none; }
  .filters select, .filters input { min-height: 46px; font-size: 16px; }
  .sheet-backdrop { position: fixed; inset: 0; z-index: 55; background: rgb(10 16 15 / .5); }
  .sheet-backdrop.open { display: block; }
  body.locked { overflow: hidden; }
}
@media (max-width: 1100px) and (min-width: 641px) {
  .filters { left: 50%; right: auto; width: min(640px, 100%); transform: translate(-50%, 105%); border-radius: 22px 22px 0 0; }
  .filters.open { transform: translate(-50%, 0); }
}
.side { z-index: 1; min-width: 0; }
.side .filters, .filters .fbody, .filters .fields, .filters label, .filters .combo, .fgroup { min-width: 0; max-width: 100%; }
.filters select, .filters input, .filters .combo-input { width: 100%; max-width: 100%; }
.filters { overflow-x: hidden; }
.results { min-width: 0; }
.results-head > div { min-width: 0; }
.results-head h1 { overflow-wrap: anywhere; }
/* ---------- barrido de anchos: nada se sale ---------- */
.fgroup > summary { padding-right: 6px; }
.filters .sheet-foot { grid-template-columns: auto minmax(0, 1fr); }
.ver-n { white-space: normal; line-height: 1.15; min-width: 0; }
@media (max-width: 380px) { .filters .sheet-foot .btn.ghost { padding-left: 12px; padding-right: 12px; } .ver-n { font-size: 15px; } }
header.top .wrap { min-width: 0; }
header.top .right { min-width: 0; gap: 6px; }
@media (max-width: 400px) {
  header.top .wrap { gap: 10px; }
  a.theme.only-m { display: none; }                 /* «Buscar» ya está en la barra inferior */
  .theme, .top .btn.acct { width: 40px; height: 40px; }
  .brand .logo { height: 28px; }
}
@media (max-width: 860px) {
  .map-bar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); overflow: visible; margin: 0 0 10px; padding: 0; gap: 8px; }
  .map-bar h1 { grid-column: 1; align-self: center; }
  .map-bar .btn { grid-column: 2; grid-row: 1; justify-self: end; margin: 0; }
  .map-bar label, .map-bar select { min-width: 0; width: 100%; max-width: none; }
}

/* ---------- páginas de aterrizaje y migas de pan (opos/seo.py) ---------- */
.migas ol { display: flex; flex-wrap: wrap; gap: 2px 0; list-style: none; margin: 4px 0 10px; padding: 0; font-size: 13.5px; color: var(--muted); min-width: 0; }
.migas li { min-width: 0; overflow-wrap: anywhere; }
.migas li + li::before { content: "›"; margin: 0 7px; color: var(--muted); }
.migas a { color: var(--muted); }
.migas [aria-current] { color: var(--text); }
.land-intro { max-width: 62em; margin-top: 10px; }
.land-intro p { margin: 0 0 8px; }
.land-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 8px 32px; margin-top: 26px; }
.land-cols > section { min-width: 0; }
.land-cols h2 { font-size: 20px; margin: 18px 0 8px; }
.land-faq h3 { font-size: 16px; margin: 14px 0 4px; }
.land-faq p { margin: 0; color: var(--muted); }
.enl { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.enl li { min-width: 0; overflow-wrap: anywhere; }
.enl a { font-weight: 600; display: inline-block; padding: 4px 0; }
.enl .muted { font-size: 13px; font-variant-numeric: tabular-nums; }
.enl.cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 2px 18px; }
.hub-zonas { flex-direction: column; gap: 6px; }
.enl.sub { margin: 2px 0 6px 14px; gap: 2px 14px; }
.enl.sub a { font-weight: 500; }
.mas-hub { margin-top: 8px; }
.mas-hub > summary { cursor: pointer; color: var(--accent); font-weight: 650; min-height: 40px; display: flex; align-items: center; }
.prev-lista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.prev-lista li { overflow-wrap: anywhere; }
.ficha-mas { margin-top: 26px; }
.ficha-mas h2 { font-size: 18px; margin: 0 0 8px; }
.home-seo { margin-top: 10px; }
.home-seo .section-head { margin-top: 26px; }
.foot-links nav.foot-seo a { font-weight: 500; font-size: 14px; }
