/* Emittro — motor de proyecto. Identidad v1 aprobada (DESIGN.md). Overpass 5.3.0 + Public Sans, OFL, autoalojadas. */
@font-face { font-family: "Overpass"; src: url("fonts/overpass-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Overpass"; src: url("fonts/overpass-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("fonts/public-sans-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  --bg: #F6F4EF; --surface: #FFFFFF; --ink: #0B2236; --ink-2: #4A5D70; --brand: #053556; --action: #FF9B10;
  --link: #0E5A8A; --ok: #1F7A4D; --warn-ink: #8A5A00; --warn-bg: #FFF4E0; --err: #B3261E; --rule: #E3E0D8;
  --heading: "Overpass", "Public Sans", system-ui, sans-serif; --body: "Public Sans", system-ui, sans-serif;
  --radius: 12px; --radius-ctl: 10px; --shadow: 0 6px 20px rgb(5 53 86 / .10);
  --measure: 68ch; --wrap: min(1180px, 100% - 32px);
}
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.6 var(--body); font-variant-numeric: tabular-nums; }
::selection { background: var(--action); color: var(--brand); }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.on-dark :focus-visible, .on-dark:focus-visible { outline-color: var(--action); }
h1, h2, h3 { font-family: var(--heading); color: var(--ink); line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); font-weight: 800; margin-block: 2.2rem .7rem; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { max-width: var(--measure); text-wrap: pretty; }
.wrap { width: var(--wrap); margin-inline: auto; }
.icon { width: 1.15em; height: 1.15em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.2em; }

/* Cabecera */
.top { background: var(--surface); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 10; }
.top-inner { display: flex; align-items: center; gap: 1.25rem; min-height: 64px; }
.brand img { display: block; height: 36px; width: auto; }
.nav { display: flex; gap: .25rem; margin-left: auto; }
.nav a { display: inline-flex; align-items: center; gap: .4rem; padding: .55rem .75rem; border-radius: var(--radius-ctl); color: var(--ink); font-weight: 600; text-decoration: none; }
.nav a:hover { background: var(--bg); }
.nav a[aria-current="page"] { color: var(--brand); box-shadow: inset 0 -3px 0 var(--action); border-radius: 0; }
.menu-toggle { display: none; margin-left: auto; font: 600 1rem var(--body); padding: .55rem .9rem; border: 1px solid var(--rule); border-radius: var(--radius-ctl); background: var(--surface); color: var(--ink); min-height: 44px; }

/* Héroe */
.hero { position: relative; color: #fff; background: var(--brand); isolation: isolate; padding-block: 1.75rem 4.75rem; overflow: hidden; }
.hero-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(5 53 86 / .94) 0%, rgb(5 53 86 / .82) 48%, rgb(5 53 86 / .25) 100%); }
.hero::after { /* Borde del héroe: línea de carril discontinua */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  background: repeating-linear-gradient(90deg, var(--action) 0 28px, transparent 28px 46px); }
.crumbs { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0 0 1rem; padding: 0; list-style: none; font-size: .9rem; }
.crumbs li + li::before { content: "›"; margin-right: .35rem; color: rgb(255 255 255 / .7); }
.crumbs a { color: #fff; }
.pill { display: inline-flex; align-items: center; gap: .4rem; margin: 0 0 .9rem; padding: .3rem .75rem; border-radius: 999px; background: rgb(255 255 255 / .14); font-size: .85rem; font-weight: 600; }
.hero h1 { color: #fff; font-size: clamp(2rem, 5.2vw, 3.4rem); font-weight: 800; max-width: 18ch; }
.tail { margin: .6rem 0 1.4rem; font: 700 clamp(1.05rem, 2.4vw, 1.3rem)/1.35 var(--heading); color: var(--action); }
.finder { display: flex; flex-wrap: wrap; gap: .6rem; max-width: 640px; }
.finder label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.finder input::placeholder { color: var(--ink-2); opacity: 1; }
.finder input { flex: 1 1 260px; min-height: 52px; padding: 0 1rem; border: 0; border-radius: var(--radius-ctl); font: 500 1rem var(--body); color: var(--ink); background: #fff; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 52px; padding: 0 1.2rem; border: 0; border-radius: var(--radius-ctl); font: 750 1rem var(--body); cursor: pointer; text-decoration: none; }
.btn-action { background: var(--action); color: var(--brand); }
.btn-action:hover { background: #ffab3a; }
.btn-ghost { background: rgb(255 255 255 / .12); color: #fff; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .7); }
.photo-note { position: absolute; right: 12px; top: 6px; line-height: 1; margin: 0; font-size: .75rem; color: rgb(255 255 255 / .85); }

/* Franja de cifras sobre la línea de carril */
.stats { position: relative; margin-top: -2.6rem; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.stat { padding: 1rem 1.2rem; display: grid; gap: .15rem; }
.stat + .stat { border-left: 1px solid var(--rule); }
.stat b { font: 800 1.6rem/1.1 var(--heading); color: var(--brand); }
.stat span { font-size: .88rem; color: var(--ink-2); }

/* Respuesta corta (R1/R2) */
.answer { margin-top: 1.6rem; font-size: 1.1rem; }
.answer strong { color: var(--brand); }

/* Lista + mapa */
.list-map { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 1.25rem; align-items: start; }
.centers { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.center { display: grid; grid-template-columns: 64px 1fr; gap: 1rem; padding: 1rem; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.center h3 a { color: var(--ink); text-decoration: none; }
.center h3 a:hover { text-decoration: underline; }
.meta { display: flex; flex-wrap: wrap; gap: .4rem; margin: .45rem 0; }
.tag { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .55rem; border-radius: 999px; font-size: .8rem; font-weight: 700; }
.tag-type { background: #E8EEF4; color: var(--brand); }
.tag-warn { background: var(--warn-bg); color: var(--warn-ink); }
.stamp { display: inline-flex; align-items: center; gap: .35rem; padding: .1rem .55rem .1rem .3rem; border: 1.5px solid var(--ok); outline: 1.5px solid var(--ok); outline-offset: 2px; border-radius: 999px; color: var(--ok); font-size: .78rem; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; margin-left: 3px; }
.addr, .phone { margin: .2rem 0; color: var(--ink-2); font-size: .95rem; display: flex; gap: .45rem; }
.actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .7rem; }
.btn-sm { min-height: 44px; padding: 0 .95rem; font-size: .92rem; }
.btn-line { background: var(--surface); color: var(--brand); box-shadow: inset 0 0 0 1.5px var(--brand); }
/* Motivo de firma: poste KM con dato real */
.km { align-self: start; display: grid; justify-items: center; padding: .55rem .3rem .45rem; background: #fff; color: var(--ink); border: 2px solid var(--ink); border-radius: 22px 22px 6px 6px; font-family: var(--heading); line-height: 1; }
.km b { font-size: 1.35rem; font-weight: 800; }
.km small { font-size: .72rem; font-weight: 700; letter-spacing: .08em; }
.km-none { border-style: dashed; color: var(--ink-2); }
/* Mapa tipo Yelp, visible sin clic (decisión del propietario, DESIGN.md §4): altura reservada = CLS 0 */
.map-col { position: sticky; top: 76px; }
.map { height: calc(100vh - 100px); min-height: 420px; max-height: 760px; border-radius: var(--radius); background: #E8EEF4; z-index: 0; }
.map-detail { height: 360px; min-height: 0; }
.demo-note { font-size: .85rem; color: var(--ink-2); }

/* Cruce de verticales y guías */
.cross { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; margin-top: 1rem; }
.cross section { padding: 1.1rem 1.2rem; background: var(--surface); border-radius: var(--radius); }
.cross h3 { margin-bottom: .4rem; }
.cross ul { margin: 0; padding-left: 1.1rem; }
.notice { margin-top: 2rem; padding: .9rem 1.1rem; border-radius: var(--radius); background: var(--warn-bg); color: var(--warn-ink); font-size: .92rem; }

/* Pie */
.foot { margin-top: 3rem; background: var(--brand); color: #DDE6EE; padding-block: 2.2rem; font-size: .92rem; }
.foot a { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 1.5rem; }
.foot h2 { color: #fff; font-size: 1rem; margin: 0 0 .5rem; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }

@media (max-width: 1100px) { .nav { display: none; } .menu-toggle { display: inline-flex; } }
@media (max-width: 820px) {
  .list-map { grid-template-columns: 1fr; }
  .map-col { position: static; order: -1; }
  .map { height: 260px; min-height: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .stats { margin-top: -2.2rem; }
  .stat { padding: .6rem .8rem; }
  .stat b { font-size: 1.25rem; }
  .stat span { font-size: .8rem; line-height: 1.3; }
  .hero { padding-bottom: 3.6rem; }
  .answer { margin-top: 1rem; font-size: 1.02rem; }
  .finder .btn { flex: 1 1 100%; }
  .center { grid-template-columns: 54px 1fr; gap: .75rem; padding: .85rem; }
}
@media (prefers-reduced-motion: no-preference) { .btn { transition: background-color .15s ease-out; } }

/* ---- Componentes del motor ---- */
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; padding: .6rem 1rem; background: var(--action); color: var(--brand); font-weight: 700; border-radius: var(--radius-ctl); }
.skip:focus { left: 8px; }
.hero-sm { padding-bottom: 3rem; }
.hero-xs { padding-block: 1.25rem 2rem; }
.hero-center { padding-bottom: 2.4rem; }
.hero .actions { margin-top: 1rem; }
.meta-hero .tag-type { background: rgb(255 255 255 / .16); color: #fff; }
.meta-hero .stamp { background: #fff; }
.meta-hero .tag-warn, .meta-hero .tag-muted { background: #fff; }
.tag-muted { background: #EEF1F4; color: var(--ink-2); }
.km-wait { display: none; }
.center:has(> .km-wait) { grid-template-columns: 1fr; }
.list-hint { margin: 0 0 .75rem; color: var(--ink-2); }
.js-only { display: none; }
.js .js-only { display: block; }
.geo-status { margin: .5rem 0 0; min-height: 1.4em; color: #fff; font-weight: 600; }
.btn-ghost { min-width: 120px; }
.center.is-active { box-shadow: 0 0 0 3px var(--action), var(--shadow); }
.centers-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.index-list { columns: 3 220px; padding-left: 1.1rem; margin-top: 1rem; }
.index-list li { break-inside: avoid; margin-bottom: .35rem; }
.index-list span, .prov-grid span { color: var(--ink-2); font-size: .85rem; }
.prov-grid { margin-top: 1rem; padding: 1.1rem 1.2rem; background: var(--surface); border-radius: var(--radius); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: .6rem 0 .8rem; }
.chips a { display: inline-flex; align-items: center; gap: .4rem; min-height: 40px; padding: .35rem .8rem; border-radius: 999px; background: var(--bg); color: var(--ink); font-weight: 600; text-decoration: none; box-shadow: inset 0 0 0 1px var(--rule); }
.chips a:hover { box-shadow: inset 0 0 0 2px var(--brand); }
.chips span { font: 700 .8rem var(--heading); color: var(--brand); background: #E8EEF4; border-radius: 999px; padding: .1rem .45rem; }
.text-link { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; }
.detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.25rem; margin-top: 1rem; align-items: start; }
.detail .map-col { position: static; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1rem; margin: 0; padding: 1.1rem 1.2rem; background: var(--surface); border-radius: var(--radius); }
.facts dt { font-weight: 700; color: var(--ink-2); }
.facts dd { margin: 0; }
.known { margin-top: 1rem; padding: 1rem 1.2rem; background: #EEF3F7; border-radius: var(--radius); font-size: .93rem; }
.known h3 { margin-bottom: .4rem; }
.known ul { margin: 0; padding-left: 1.1rem; }
.pm-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.pm-group { padding: 1rem 1.2rem; background: var(--surface); border-radius: var(--radius); }
.pm-group ul { padding-left: 1.1rem; margin: .4rem 0; }
.prose { padding-block: 1rem 2rem; }
.prose h2 { margin-top: 1.8rem; }
.foot-logo { background: #fff; border-radius: 8px; padding: 4px 8px; }
.foot-legal { margin-top: 1.5rem; font-size: .82rem; color: #B9C8D6; }
.to-top { position: fixed; right: 16px; bottom: 16px; z-index: 20; width: 46px; height: 46px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--action); color: var(--brand); box-shadow: var(--shadow); cursor: pointer; }
.to-top .icon { width: 22px; height: 22px; }
.nav.is-open { display: flex; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; padding: .5rem 16px 1rem; background: var(--surface); border-bottom: 1px solid var(--rule); box-shadow: var(--shadow); }
.leaflet-container { font: inherit; }
.leaflet-popup-content { margin: .7rem .9rem; font-size: .92rem; }
.leaflet-popup-content a { font-weight: 700; }
@media (max-width: 820px) { .detail { grid-template-columns: 1fr; } .detail .map-col { order: -1; } .map-detail { height: 240px; } }
@media print { .to-top, .map-col, .finder, .top { display: none !important; } }
@media (prefers-reduced-motion: no-preference) { .to-top { transition: opacity .2s ease-out; } }

/* ---- Anuncios (AdSense) y consentimiento: mismo patrón que el resto de webs ---- */
.ad { margin: 0; min-height: 0; text-align: center; }
.ad span { display: none; }
.ad.ad-on { margin: 1.75rem 0; padding: .5rem 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.ad.ad-on span { display: block; font-size: .72rem; color: var(--ink-2); letter-spacing: .04em; margin-bottom: .25rem; }
.ad ins.adsbygoogle { display: none; }
.ad.ad-req ins.adsbygoogle { display: block; }
.ad-lateral.ad-req ins.adsbygoogle { display: inline-block; width: 336px; height: 280px; }
.ad ins.adsbygoogle[data-ad-status="unfilled"] { display: none !important; }
.ad-lateral.ad-on { position: sticky; top: 90px; margin: 1rem 0 0; padding: .5rem 0; border: 0; }
@media (max-width: 980px) { .ad-lateral { display: none; } }
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 40; max-width: 760px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; padding: 1rem 1.1rem; background: var(--surface); border-radius: var(--radius); box-shadow: 0 10px 32px rgb(5 53 86 / .22); }
.consent[hidden] { display: none; }
.consent p { margin: 0; flex: 1 1 320px; font-size: .93rem; }
.consent-btns { display: flex; gap: .5rem; }
.linkbtn { padding: 0; border: 0; background: none; color: #fff; font: inherit; text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }

/* ---- Guías ---- */
.guide-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 2rem; align-items: start; }
.guide .prose { padding-top: 0; }
.guide .prose h2 { margin-top: 2rem; }
.guide-side { position: sticky; top: 84px; display: grid; gap: 1rem; }
.guide-side section, .sources { padding: 1rem 1.1rem; background: var(--surface); border-radius: var(--radius); font-size: .92rem; }
.sources h2 { font-size: 1rem; margin: 0 0 .4rem; }
.sources ul { padding-left: 1.1rem; margin: 0 0 .5rem; }
.sources p, .src { color: var(--ink-2); font-size: .85rem; }
.facts-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; font-size: .95rem; }
.facts-table th, .facts-table td { padding: .6rem .8rem; text-align: left; border-bottom: 1px solid var(--rule); vertical-align: top; }
.facts-table th { background: #E8EEF4; color: var(--brand); font-family: var(--heading); }
details { margin: .5rem 0; padding: .7rem 1rem; background: var(--surface); border-radius: var(--radius); }
summary { cursor: pointer; font-weight: 700; }
.cta { margin-top: 2rem; }
.tool { margin: 1rem 0 2rem; padding: 1.1rem 1.2rem; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.tool h2 { margin-top: 0 !important; }
.route { border: 0; padding: 0; margin: 0 0 .8rem; display: grid; gap: .35rem; }
.route legend { font-weight: 700; margin-bottom: .3rem; }
.checks { list-style: none; padding: 0; display: grid; gap: .45rem; }
.checks label, .route label { display: flex; gap: .55rem; align-items: flex-start; min-height: 32px; }
.checks input, .route input { width: 20px; height: 20px; margin-top: .15rem; accent-color: var(--brand); flex: none; }
.checks li[hidden] { display: none; }
.tool-status { font-weight: 700; color: var(--brand); }
@media (max-width: 900px) { .guide-grid { grid-template-columns: 1fr; } .guide-side { position: static; } }

.h1-zone { display: block; font-size: .5em; font-weight: 700; color: rgb(255 255 255 / .85); letter-spacing: 0; margin-top: .3rem; }

.map-missing { display: grid; gap: .6rem; justify-items: start; padding: 1.2rem; background: #E8EEF4; border-radius: var(--radius); color: var(--ink-2); }
.map-missing .icon { width: 28px; height: 28px; color: var(--brand); }
.map-missing p { margin: 0; }

/* ---- Portada: respuestas rápidas y FAQ (datos de GSC/Bing) ---- */
.quick { margin-top: 2.5rem; }
.quick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.25rem 2rem; }
.quick-grid section { padding-top: .9rem; border-top: 3px solid var(--action); }
.quick-grid h3 { margin-bottom: .35rem; }
.quick-grid p { margin: 0; color: var(--ink); }
.stamp-inline { padding: 0 .4rem; border: 1.5px solid var(--ok); border-radius: 999px; color: var(--ok); font-size: .8rem; font-weight: 800; text-transform: uppercase; white-space: nowrap; }
.faq { margin-top: 2.5rem; max-width: 820px; }

/* ---- Guías ampliadas y hub ---- */
.keyfacts { margin: 1rem 0 1.5rem; padding: 1rem 1.2rem; background: #FFF4E0; border-radius: var(--radius); }
.keyfacts h2 { margin: 0 0 .4rem; font-size: 1rem; }
.keyfacts ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .25rem; }
.dirblock { margin-top: 2rem; padding: 1.1rem 1.2rem; background: var(--surface); border-radius: var(--radius); }
.dirblock h2 { margin-top: 0 !important; }
.chips span { font: 700 .8rem var(--heading); color: var(--brand); background: #E8EEF4; border-radius: 999px; padding: .1rem .45rem; }
.vt-label { display: block; font-weight: 700; margin: .3rem 0; }
.vt-input { min-height: 48px; padding: 0 .8rem; border: 1px solid var(--rule); border-radius: var(--radius-ctl); font: 500 1rem var(--body); }
.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.feat { display: grid; gap: .4rem; padding: 1.2rem; background: var(--brand); color: #fff; border-radius: var(--radius); text-decoration: none; }
.feat:hover { background: #0a4672; }
.feat strong { font: 800 1.2rem/1.2 var(--heading); }
.feat span { color: #DDE6EE; }
.feat .feat-k { color: var(--action); font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.feat .feat-go { color: #fff; font-weight: 700; margin-top: .3rem; display: inline-flex; align-items: center; gap: .3rem; }
.feat:focus-visible { outline-color: var(--action); }
.hub-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.25rem 2rem; margin-top: 2rem; }
.hub-group h2 { font-size: 1.15rem; padding-top: .8rem; border-top: 3px solid var(--action); margin: 0 0 .5rem; }
.hub-group ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.hub-group li { display: grid; gap: .1rem; }
.hub-group li a { font-weight: 700; }
.hub-group li span { color: var(--ink-2); font-size: .92rem; }

/* ---- Ficha: patrón de la casa (héroe con tarjeta en dos columnas) ---- */
.hero-ficha { padding-bottom: 2.5rem; }
.fcard { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); margin-top: .9rem; background: var(--surface); color: var(--ink); border-radius: calc(var(--radius) + 4px); box-shadow: 0 18px 50px rgb(5 53 86 / .28); overflow: hidden; }
.fcard-photo { position: relative; margin: 0; min-height: 100%; }
.fcard-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fcard-photo figcaption { position: absolute; left: 12px; bottom: 12px; padding: .2rem .55rem; border-radius: 6px; background: rgb(11 34 54 / .78); color: #fff; font-size: .78rem; }
.fcard-body { padding: 1.3rem 1.4rem 1.2rem; display: grid; gap: .8rem; align-content: start; }
.fcard-body :focus-visible { outline-color: var(--brand); }
.fcard-top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.tag-lg { font-size: .85rem; padding: .3rem .7rem; }
.share { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--rule); border-radius: var(--radius-ctl); background: var(--surface); color: var(--brand); cursor: pointer; }
.fcard-title { display: flex; gap: .9rem; align-items: center; }
.fcard-title h1 { color: var(--ink); font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; }
.fcard-title .h1-zone { color: var(--ink-2); }
.fcard-sub { margin: .25rem 0 0; color: var(--ink-2); }
.kmpost { flex: none; display: grid; justify-items: center; min-width: 72px; margin: 0; padding: .45rem .5rem .5rem; border: 2.5px solid var(--ok); border-radius: 26px 26px 8px 8px; color: var(--ok); font-family: var(--heading); line-height: 1; background: #fff; }
.kmpost b { font-size: 1.55rem; font-weight: 800; color: var(--ink); }
.kmpost small { font-size: .66rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.kmpost-off { border-color: var(--rule); color: var(--ink-2); }
.kmpost-off b { color: var(--ink-2); }
.evgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .45rem; }
.ev { display: grid; justify-items: center; gap: .15rem; padding: .55rem .3rem; border-radius: var(--radius-ctl); background: #F1F3F5; color: #6B7A88; text-align: center; font-size: .78rem; line-height: 1.25; }
.ev strong { font-size: .8rem; color: inherit; }
.ev .icon { width: 1.3em; height: 1.3em; }
.ev-on { background: #E7F3EC; color: var(--ok); }
.ev-on strong { color: var(--ink); }
.fcard-addr { margin: 0; color: var(--ink); }
.fcard .actions { margin: 0; }
.fcard-note { margin: 0; font-size: .82rem; color: var(--ink-2); display: flex; gap: .35rem; align-items: center; }
.short { margin-top: 1.5rem; padding: 1.1rem 1.3rem; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.short h2 { margin: 0 0 .4rem; font-size: 1.05rem; color: var(--ok); }
.short p { margin: 0; font-size: 1.05rem; max-width: none; }
.detail { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); margin-top: 1.5rem; }
.dtable { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.dtable th, .dtable td { padding: .75rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
.dtable th { width: 34%; color: var(--ink-2); font-weight: 700; }
.dtable small { display: block; margin-top: .15rem; color: var(--ink-2); font-size: .8rem; }
.side { position: sticky; top: 84px; display: grid; gap: 1rem; }
.known h2 { display: flex; gap: .4rem; align-items: center; font-size: 1rem; margin: 0 0 .4rem; }
.unofficial { padding: 1rem 1.2rem; background: var(--brand); color: #DDE6EE; border-radius: var(--radius); font-size: .92rem; }
.unofficial h2 { color: #fff; font-size: 1rem; margin: 0 0 .4rem; }
.unofficial a { color: #fff; }
.before { margin-top: 1.5rem; padding: 1rem 1.2rem; background: #FFF4E0; border-radius: var(--radius); }
.before h2 { margin: 0 0 .4rem; font-size: 1.05rem; color: var(--warn-ink); }
.before ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .35rem; }
@media (max-width: 980px) { .fcard { grid-template-columns: 1fr; } .fcard-photo { max-height: 220px; } .evgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .detail { grid-template-columns: 1fr; } .side { position: static; } }
@media (max-width: 420px) { .evgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fcard-body { padding: 1rem; } }

.short + .stats { margin-top: 1rem; }

/* ---- Menú: calculadora destacada y CTA «Plan your test» ---- */
.nav .nav-calc { background: #FFF4E0; color: var(--warn-ink); border-radius: 999px; }
.nav .nav-calc:hover { background: #FFE7BF; }
.nav .nav-cta { min-height: 44px; padding: 0 1rem; margin-left: .35rem; color: var(--brand); }
.nav .nav-cta:hover { background: #ffab3a; }
.nav.is-open .nav-cta { margin: .4rem 0 0; justify-content: flex-start; }
@media (max-width: 1240px) and (min-width: 1101px) { .nav a { padding: .5rem .55rem; } }

/* Ficha móvil: acciones arriba (R1) */
@media (max-width: 980px) {
  .fcard-photo { order: 2; max-height: 150px; }
  .fcard-body { order: 1; }
  .fcard-top { order: 1; } .fcard-title { order: 2; } .fcard-addr { order: 3; } .fcard .actions { order: 4; } .evgrid { order: 5; } .fcard-note { order: 6; }
  .kmpost { min-width: 60px; } .kmpost b { font-size: 1.25rem; }
}
