/* Destino Vivo, "Señalética" (nov 2026).
   La portada es un poste de sendero con tres placas (dos públicos y la conversación);
   una ruta con paradas, tomada de la órbita del logo, ordena el resto. Un solo look, claro.
   Reglas: sin franjas de color (border-left o border-top de color), sin kickers, sin degradados en texto. */
:root {
  --bg: #FFFFFF;
  --ink: #0A2D3D;        /* azul noche de la marca */
  --ink2: #3F5B68;
  --line: #D3DDE1;
  --green: #7AC943;      /* municipios y destinos */
  --teal: #2AB79D;       /* la ruta */
  --cyan: #1EA7C9;       /* emprendedores y empresas */
  --teal-ink: #0B6657;
  --tint-c: #E4F4F9;
  --tint-g: #EDF7E2;
  --paper: #F3F8F8;
  --err: #A32A1B;
  --font: 'Poppins', 'Segoe UI', system-ui, sans-serif;
  --g: clamp(18px, 4vw, 56px);
  --wrap: 1160px;
  --r: 4px;
  --tip: 30px;           /* punta de las placas */
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; scrollbar-color: var(--teal) var(--paper); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.65 var(--font); -webkit-font-smoothing: antialiased; accent-color: var(--teal); caret-color: var(--teal-ink); overflow-wrap: break-word; }
::selection { background: var(--cyan); color: var(--ink); }
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--teal-ink); text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 4.9vw, 4.3rem); font-weight: 700; line-height: 1.04; letter-spacing: -.035em; }
h2 { font-size: clamp(1.85rem, 3.1vw, 2.7rem); font-weight: 700; line-height: 1.1; letter-spacing: -.028em; }
h3 { font-size: 1.2rem; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-left: max(var(--g), env(safe-area-inset-left, 0px)); padding-right: max(var(--g), env(safe-area-inset-right, 0px)); }
.measure { max-width: 60ch; }
.lede-gap { margin-top: 1.3rem; }
.note { font-size: .86rem; line-height: 1.5; color: var(--ink2); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 60; }
.skip:focus { left: 8px; }
.skip:hover, .skip:focus { color: #fff; }
figure { margin: 0; }
figcaption { font-size: .86rem; color: var(--ink2); margin-top: .6rem; }

/* Placas: rectángulo con punta a la derecha */
.plate { display: flex; flex-direction: column; justify-content: center; gap: .15rem; min-height: 76px; padding: .9rem calc(var(--tip) + 1.4rem) .9rem 1.5rem; color: var(--ink); text-decoration: none; clip-path: polygon(0 0, calc(100% - var(--tip)) 0, 100% 50%, calc(100% - var(--tip)) 100%, 0 100%); transition: transform .3s var(--ease), background-color .2s; }
.plate small { font-size: .9rem; font-weight: 500; line-height: 1.35; }
.plate strong { font-size: clamp(1.1rem, 1.75vw, 1.5rem); font-weight: 700; line-height: 1.15; text-transform: uppercase; letter-spacing: .02em; }
.plate-c { background: var(--cyan); }
.plate-g { background: var(--green); }
.plate-n, .plate-n:hover { background: var(--ink); color: #fff; }
.plate:hover { transform: translateX(10px); }
.plate-c:hover, .plate-g:hover { color: var(--ink); }
.plate-n:hover { background: var(--teal-ink); }
/* la punta recorta el contorno de foco: se marca con subrayado grueso y desplazamiento */
.plate:focus-visible { outline: 0; transform: translateX(10px); text-decoration: underline; text-decoration-thickness: 3px; }
.plate-sm, .btn, .article-cta a { display: inline-flex; flex-direction: row; align-items: center; min-height: 46px; --tip: 18px; padding: .4rem calc(var(--tip) * .6 + 1.1rem) .4rem 1.1rem; font-weight: 600; font-size: .93rem; line-height: 1.25; }
.plate-sm:hover, .btn:hover, .article-cta a:hover { transform: translateX(5px); }
.textlink { font-weight: 600; }

/* Encabezado */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 50; background: var(--bg); }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: var(--bg); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 72px; max-width: 1320px; }
.brand { display: block; flex: none; }
.brand img { width: 132px; height: auto; }
.nav { display: flex; gap: 1.6rem; list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; padding: .4rem 0; }
.nav a:hover, .nav a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--teal); }
.lang { display: flex; align-items: center; gap: .1rem; font-size: .9rem; color: var(--ink2); white-space: nowrap; }
.lang a { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; min-height: 44px; color: var(--ink2); text-decoration: none; font-weight: 500; }
.lang a:hover { color: var(--ink); text-decoration: underline; }
.lang a[aria-current] { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--teal); }
.menu-btn { display: none; min-height: 44px; padding: 0 1rem; background: none; border: 1px solid var(--ink); border-radius: var(--r); font: 600 .95rem var(--font); color: var(--ink); cursor: pointer; }
.menu-btn:hover { background: var(--paper); }

/* Ruta lateral con paradas (escritorio ancho) */
.trail { display: none; }
@media (min-width: 1320px) {
  .trail { display: block; position: fixed; left: 26px; top: 50%; transform: translateY(-50%); z-index: 30; }
  .trail ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; position: relative; }
  .trail ol::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--teal); }
  .trail a { position: relative; display: flex; align-items: center; gap: .7rem; height: 16px; text-decoration: none; color: var(--ink); font-size: .82rem; font-weight: 500; }
  .trail a::before { content: ""; flex: none; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 3px solid var(--teal); transition: background-color .2s, transform .3s var(--ease); }
  .trail a span { background: var(--bg); padding: .1rem .5rem; border: 1px solid var(--line); border-radius: var(--r); opacity: 0; transition: opacity .2s; white-space: nowrap; }
  .trail a:hover span, .trail a:focus-visible span { opacity: 1; }
  .trail a[aria-current="true"]::before { background: var(--ink); border-color: var(--ink); transform: scale(1.25); }
}

/* Portada: poste con placas + foto del sendero */
.hero { padding-block: clamp(2rem, 4.5vw, 3.6rem) clamp(3rem, 6vw, 5rem); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); grid-template-rows: auto 1fr; gap: clamp(1.4rem, 2.6vw, 2.2rem) clamp(1.5rem, 4vw, 3.5rem); }
.hero-lede { font-size: 1.1rem; max-width: 54ch; margin: 1.2rem 0 0; }
.signpost { position: relative; display: grid; gap: 12px; align-content: start; padding-left: 0; margin-right: calc(-1 * clamp(1.5rem, 4vw, 3.5rem) - 46px); z-index: 2; }
.signpost::before { content: ""; position: absolute; left: 26px; top: -14px; bottom: -70px; width: 10px; background: var(--ink); border-radius: 5px 5px 0 0; }
.signpost .plate { position: relative; }
.signpost .plate:nth-child(2) { margin-right: 54px; }
.signpost .plate:nth-child(3) { margin-right: 108px; }
.hero-after { margin: 1.4rem 0 0 0; padding-left: 58px; }
.hero-photo { grid-column: 2; grid-row: 1 / 3; align-self: stretch; display: flex; flex-direction: column; }
.hero-photo img { width: 100%; flex: 1; min-height: 0; max-height: 640px; object-fit: cover; object-position: center 70%; border-radius: var(--r); background: var(--tint-g); }
/* Poste sin foto (404) */
.hero.lost .wrap { display: block; max-width: 760px; }
.hero.lost .signpost { margin: 2.4rem 0 70px; }

/* Secciones */
.block { padding-block: clamp(4rem, 8vw, 6.5rem); }
.block.flush { padding-top: 0; }
.block-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.block-head p { margin: .9rem 0 0; color: var(--ink2); }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }

/* Contacto */
.contact { background: var(--tint-c); }
.contact-list { list-style: none; margin: 1.6rem 0 0; padding: 0; }
.contact-list li { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 1rem; align-items: center; min-height: 52px; padding: .6rem 0; border-top: 1px solid #A9CBD6; }
.contact-list li:last-child { border-bottom: 1px solid #A9CBD6; }
.contact-list span { color: #2C4C5A; font-size: .93rem; }
.contact-list a { display: inline-block; font-weight: 500; overflow-wrap: anywhere; padding: .6rem 0; }
.person .measure > a { display: inline-block; padding: .6rem 0; font-weight: 500; }
.form { display: grid; gap: 1.1rem; background: var(--bg); padding: clamp(1.4rem, 3vw, 2.2rem); border-radius: var(--r); }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 500; font-size: .95rem; }
.field .opt { color: var(--ink2); font-weight: 400; }
.field input, .field textarea { width: 100%; min-height: 48px; padding: .75rem .9rem; border: 1px solid #7C939E; border-radius: var(--r); background: #fff; color: var(--ink); font: 400 1rem/1.4 var(--font); }
.field textarea { min-height: 7.5rem; resize: vertical; }
.field ::placeholder { color: #5A7380; opacity: 1; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--cyan); outline-offset: 1px; border-color: var(--ink); }
.hp { position: absolute; left: -9999px; }
.send { border: 0; cursor: pointer; font-family: var(--font); }
.send:disabled { opacity: .7; cursor: progress; transform: none; }
.form-status { margin: 0; font-weight: 500; min-height: 1.5em; }
.form-status.ok { color: var(--teal-ink); }
.form-status.err { color: var(--err); }
.form .note { margin: 0; }

/* Nosotros */
.years-list { list-style: none; margin: 2rem 0 0; padding: 0; }
.years-list li { display: grid; grid-template-columns: 5.2rem minmax(0, 1fr); gap: 1.2rem; align-items: center; padding: 1rem 0; border-top: 1px solid var(--line); }
.years-list li:last-child { border-bottom: 1px solid var(--line); }
.years-list b { font-size: 3rem; font-weight: 700; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.quote { margin: 1.8rem 0 0; padding: 0; border: 0; }
.quote p { font-size: 1.3rem; line-height: 1.4; font-weight: 500; letter-spacing: -.01em; margin-bottom: .6rem; }
.quote footer { font-size: .9rem; color: var(--ink2); }
.media img { width: 100%; border-radius: var(--r); }

/* Servicios: tablero de direcciones */
.board { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r); }
.board li + li { border-top: 1px solid var(--line); }
.board a { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 1.2rem; align-items: center; padding: 1.5rem clamp(1rem, 2.5vw, 1.8rem); color: var(--ink); text-decoration: none; transition: background-color .2s; }
.board a:hover { background: var(--paper); }
.stop { width: 22px; height: 22px; border-radius: 50%; border: 5px solid var(--teal); background: var(--bg); }
.stop.c { border-color: var(--cyan); } .stop.g { border-color: var(--green); } .stop.n { border-color: var(--ink); }
.board h3 { font-size: 1.3rem; margin-bottom: .25rem; }
.board p { margin: 0; color: var(--ink2); max-width: 62ch; }
.board .go { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; white-space: nowrap; }
.board .go svg { transition: transform .3s var(--ease); }
.board a:hover .go svg { transform: translateX(6px); }
.legend { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; margin: 1.2rem 0 0; padding: 0; list-style: none; font-size: .88rem; color: var(--ink2); }
.legend li { display: flex; align-items: center; gap: .5rem; }
.legend .stop { width: 14px; height: 14px; border-width: 3px; }

/* Método DEES: una ruta con cuatro paradas, sobre verde azulado */
.method { background: var(--teal); }
.method .block-head p { color: var(--ink); }
.route { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; position: relative; }
.route::before { content: ""; position: absolute; left: 0; right: 14px; top: 31px; height: 3px; background: var(--ink); }
.route::after { content: ""; position: absolute; right: 0; top: 20px; border-left: 20px solid var(--ink); border-top: 12.5px solid transparent; border-bottom: 12.5px solid transparent; }
.route li { position: relative; }
.route .letter { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #fff; border: 5px solid var(--ink); font-size: 1.6rem; font-weight: 700; line-height: 1; }
.route h3 { margin: 1.1rem 0 .4rem; }
.route p { margin: 0; font-size: .98rem; max-width: 30ch; }

/* Foto de terreno */
.field-photo img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; object-position: center 62%; border-radius: var(--r); }
.statement { font-size: clamp(1.7rem, 3.4vw, 2.8rem); font-weight: 700; line-height: 1.1; letter-spacing: -.03em; margin: clamp(1.4rem, 3vw, 2.2rem) 0 0; max-width: 20ch; }

/* Por qué */
.reasons { list-style: none; margin: 0; padding: 0; }
.reasons li { padding: 1.15rem 0; border-top: 1px solid var(--line); }
.reasons li:last-child { border-bottom: 1px solid var(--line); }
.reasons strong { display: block; font-weight: 600; font-size: 1.1rem; }
.reasons span { color: var(--ink2); }
.beliefs h3 { margin: 1.8rem 0 .7rem; }

/* Datos */
.data { background: var(--paper); }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th, .tbl td { text-align: left; vertical-align: top; padding: 1.05rem 1.5rem 1.05rem 0; border-top: 1px solid var(--line); }
.tbl thead th { font-size: .86rem; font-weight: 500; color: var(--ink2); padding-block: .7rem; border-top: 0; }
.tbl tbody th { font-weight: 600; width: 34%; }
.tbl .num { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 1.3rem; white-space: nowrap; }
.tbl tbody tr:last-child > * { border-bottom: 1px solid var(--line); }
.charts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); margin-top: clamp(2.5rem, 5vw, 4rem); }
.charts h3 { margin-bottom: .2rem; }
.mini { position: relative; margin-top: 3.2rem; height: 200px; border-bottom: 1px solid var(--ink); }
.mini svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pin { position: absolute; width: 0; height: 0; }
.pin::before { content: ""; position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--ink); }
.pin span { position: absolute; bottom: 12px; left: 0; transform: translateX(-50%); white-space: nowrap; font-size: .8rem; line-height: 1.2; text-align: center; }
.pin b { display: block; font-size: 1.05rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.pin.end span { transform: none; left: auto; right: 8px; text-align: right; }
.mini-years { display: flex; justify-content: space-between; font-size: .8rem; color: var(--ink2); margin-top: .4rem; font-variant-numeric: tabular-nums; }
.regions { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: .55rem; }
.regions li { display: grid; grid-template-columns: 7.4rem minmax(0, 1fr) 4.6rem; gap: .8rem; align-items: center; font-size: .92rem; }
.regions .fill { display: block; height: 16px; background: var(--cyan); border-radius: 2px; min-width: 2px; }
.regions li:first-child .fill { background: var(--ink); }
.regions .v { text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; }
.shares { list-style: none; margin: clamp(2.5rem, 5vw, 4rem) 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); }
.shares b { font-size: 2.6rem; font-weight: 700; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.meter { display: block; height: 16px; margin: .7rem 0 .9rem; background: #C7D5DB; border-radius: 2px; }
.meter span { display: block; height: 100%; background: var(--green); border-radius: 2px; }
.shares p { margin: 0 0 .4rem; }
.sources { margin-top: 2rem; }

/* Galería escalonada */
.gallery { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; padding-bottom: 28px; }
.gallery figure:nth-child(even) { transform: translateY(28px); }
.gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r); background: var(--paper); }
.gallery figcaption { font-weight: 500; color: var(--ink); }

/* FAQ */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 1.5rem; padding: 1.2rem 0; cursor: pointer; font-weight: 600; font-size: 1.1rem; line-height: 1.4; list-style: none; }
.faq summary:hover { color: var(--teal-ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; margin-top: .35rem; margin-right: 4px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(225deg) translate(-4px, -4px); }
.faq details p { max-width: 68ch; color: var(--ink2); padding-bottom: .6rem; }

/* Consultor */
.person { background: var(--tint-g); }
.person .wrap { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.person img { width: 220px; border-radius: 50%; background: #fff; }
.role { font-weight: 500; margin: .4rem 0 1.2rem; }
.facts { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: .6rem 1rem; margin: 1.4rem 0; }
.facts dt { color: #35532A; font-size: .93rem; }
.facts dd { margin: 0; }

/* Noticias en la portada (las tarjetas las genera herramientas/actualizar_noticias.py) */
.news { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: clamp(1.2rem, 2.5vw, 2rem); }
.news a { display: block; color: var(--ink); text-decoration: none; }
.news .media { margin-bottom: 1rem; }
.news .media img { aspect-ratio: 3 / 2; object-fit: cover; background: var(--paper); }
.news a:first-of-type .media img { aspect-ratio: 16 / 10; }
.news .meta { font-size: .88rem; color: var(--ink2); margin-bottom: .3rem; }
.news h3 { margin-bottom: .5rem; }
.news a:first-of-type h3 { font-size: 1.5rem; letter-spacing: -.02em; line-height: 1.2; }
.news a:hover h3, .news-card:hover .news-card-title { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--teal); text-underline-offset: .2em; }
.news p { margin: 0; color: var(--ink2); font-size: .96rem; }
.more { display: inline-block; margin-top: 1.8rem; padding: .5rem 0; font-weight: 600; }

/* Cierre: una placa grande */
.closing { padding-block: 0 clamp(4rem, 8vw, 6rem); }
.big-plate, .article-cta { --big-tip: clamp(2.5rem, 8vw, 7rem); background: var(--green); padding: clamp(2.2rem, 5vw, 4rem) calc(var(--big-tip) + clamp(1.2rem, 4vw, 4rem)) clamp(2.2rem, 5vw, 4rem) clamp(1.4rem, 4vw, 3.5rem); clip-path: polygon(0 0, calc(100% - var(--big-tip)) 0, 100% 50%, calc(100% - var(--big-tip)) 100%, 0 100%); }
.big-plate h2 { max-width: 20ch; margin-bottom: 1.6rem; }
.big-plate .actions { display: flex; flex-wrap: wrap; gap: 1rem 1.6rem; align-items: center; }
.big-plate .textlink { color: var(--ink); padding: .6rem 0; }

/* Pie */
.site-footer { border-top: 1px solid var(--line); padding-block: 2.5rem 3rem; font-size: .93rem; }
.site-footer .wrap { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr); gap: 2rem clamp(1.5rem, 5vw, 5rem); align-items: start; }
.site-footer img { width: 120px; }
.site-footer ul { list-style: none; margin: .5rem 0 0; padding: 0; }
.site-footer a { display: inline-block; padding: .3rem 0; }
.mobile-bar { display: none; }

/* ── Páginas interiores: servicios, notas, listado de noticias, privacidad ── */
.article-wrap { max-width: calc(760px + 2 * var(--g)); margin-inline: auto; padding: clamp(2rem, 5vw, 3.6rem) max(var(--g), env(safe-area-inset-right, 0px)) clamp(4rem, 8vw, 6rem) max(var(--g), env(safe-area-inset-left, 0px)); }
.article-back, .news-card-link { display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; font-weight: 600; text-decoration: none; }
.article-back { margin-bottom: 1.2rem; }
.article-back:hover { text-decoration: underline; }
/* flechas dibujadas, no caracteres */
.article-back::before, .news-card-link::after, .btn::after { content: ""; flex: none; width: .5em; height: .5em; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); }
.article-back::before { transform: rotate(-135deg); }
.article-title { font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.08; letter-spacing: -.03em; }
.h1-sub { display: block; margin-top: .9rem; font-size: clamp(1.05rem, 1.5vw, 1.2rem); font-weight: 500; line-height: 1.4; letter-spacing: 0; color: var(--ink2); text-wrap: pretty; }
.article-meta { display: flex; flex-wrap: wrap; gap: .5rem; color: var(--ink2); font-size: .93rem; margin: 1.2rem 0 2rem; }
.article-meta .author, .cat { font-weight: 600; color: var(--ink); }
.article-hero { margin: 2rem 0 .6rem; }
.article-hero img { width: 100%; height: auto; border-radius: var(--r); background: var(--paper); }
.article-hero-credit, .hero-credit { font-size: .86rem; line-height: 1.5; color: var(--ink2); margin: 0 0 2.2rem; }
.hero-overlay { padding: .9rem 0 0; }
.hero-overlay .eyebrow { display: block; font-size: .88rem; color: var(--ink2); }
.hero-overlay { display: flex; flex-direction: column; }
.hero-overlay .headline { font-size: clamp(1.25rem, 3vw, 1.6rem); font-weight: 700; line-height: 1.2; letter-spacing: -.02em; }
.article-body { font-size: 1.08rem; line-height: 1.75; }
.article-body p { margin: 0 0 1.3em; }
.article-lead { font-size: 1.22rem; line-height: 1.6; font-weight: 500; }
.article-body h2 { font-size: clamp(1.45rem, 2.6vw, 1.85rem); line-height: 1.18; letter-spacing: -.02em; margin: 2.6rem 0 1rem; }
.article-body h3 { font-size: 1.18rem; margin: 1.9rem 0 .7rem; }
.article-body ul, .article-body ol { padding-left: 1.3rem; margin: 0 0 1.3em; }
.article-body li { margin-bottom: .45em; }
.article-body li::marker { color: var(--teal-ink); font-weight: 600; }
.article-body a { font-weight: 500; }
.article-body blockquote { margin: 2.2rem 0; padding: 1.3rem 0; border-block: 1px solid var(--line); font-size: 1.3rem; line-height: 1.4; font-weight: 500; letter-spacing: -.01em; }
.article-body blockquote p:last-child { margin-bottom: 0; }
.article-body figure, .article-figure { margin: 2rem 0; }
.article-body figure img, .article-figure img { width: 100%; height: auto; border-radius: var(--r); }
.figure-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.2rem; margin: 2rem 0; }
.figure-row .article-figure { margin: 0; }
.stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 1.2rem; margin: 1.8rem 0 2.2rem; border-top: 1px solid var(--line); }
.stat-box { padding: 1.1rem 0 0; }
.stat-box .n { font-size: clamp(1.8rem, 3.4vw, 2.4rem); font-weight: 700; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat-box .l { font-size: .92rem; color: var(--ink2); margin-top: .45rem; line-height: 1.45; }
.law-box, .article-highlight { background: var(--tint-c); border-radius: var(--r); padding: 1.4rem 1.6rem; margin: 2rem 0; }
.law-box-label { font-weight: 600; font-size: .95rem; margin-bottom: .5rem; }
.law-box p, .article-highlight p { margin: 0 0 .9em; font-size: 1rem; }
.law-box p:last-child { margin-bottom: 0; }
.btn { gap: .6rem; background: var(--ink); color: #fff; text-decoration: none; clip-path: polygon(0 0, calc(100% - var(--tip)) 0, 100% 50%, calc(100% - var(--tip)) 100%, 0 100%); transition: transform .3s var(--ease), background-color .2s; }
.article-body .btn { font-weight: 600; margin-top: .2rem; padding-right: calc(var(--tip) + 1rem); }
.btn:hover { background: var(--teal-ink); color: #fff; }
.prop-card { border-top: 1px solid var(--line); padding: 1.3rem 0 .4rem; margin: 1.8rem 0; }
.prop-card h3 { margin: 0 0 .8rem; }
.prop-card dl { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: .4rem 1rem; margin: 0; font-size: 1rem; }
.prop-card dt { font-weight: 600; }
.prop-card dd { margin: 0; color: var(--ink2); }
.article-source, .article-sources { margin-top: 2.6rem; padding-top: 1.4rem; border-top: 1px solid var(--line); font-size: .92rem; color: var(--ink2); line-height: 1.65; overflow-wrap: anywhere; }
.article-sources h2 { font-size: 1.1rem; letter-spacing: 0; margin: 0 0 .8rem; color: var(--ink); }
.article-sources ol { padding-left: 1.2rem; }
.article-sources li { margin-bottom: .4rem; }
.article-sources .credits { margin-top: 1.2rem; font-size: .86rem; }
.caveat { margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed var(--line); }

/* Lista de servicios: tablero con paradas (verde municipios, cian emprendimientos) */
.service-list { list-style: none; margin: 1.4rem 0 2.2rem; padding: 0; border: 1px solid var(--line); border-radius: var(--r); }
.article-body .service-list { padding-left: 0; }
.service-list li { position: relative; margin: 0; padding: 1.25rem 1.4rem 1.25rem 3.6rem; font-size: 1.02rem; line-height: 1.65; color: var(--ink2); }
.service-list li + li { border-top: 1px solid var(--line); }
.service-list li::before { content: ""; position: absolute; left: 1.3rem; top: 1.5rem; width: 20px; height: 20px; border-radius: 50%; border: 5px solid var(--teal); background: var(--bg); }
.service-list.g li::before { border-color: var(--green); }
.service-list.c li::before { border-color: var(--cyan); }
.service-list strong { display: block; font-weight: 600; font-size: 1.15rem; line-height: 1.3; color: var(--ink); margin-bottom: .3rem; }

/* Ruta vertical con paradas (método DEES en las páginas de servicio) */
.article-body .stops { list-style: none; position: relative; margin: 1.4rem 0 2rem; padding: 0; }
.stops::before { content: ""; position: absolute; left: 9px; top: 12px; bottom: 12px; width: 2px; background: var(--ink); }
.stops li { position: relative; padding-left: 2.6rem; margin-bottom: 1.1rem; }
.stops li::before { content: ""; position: absolute; left: 0; top: .32em; width: 20px; height: 20px; border-radius: 50%; background: var(--bg); border: 4px solid var(--ink); }

.article-body .faq { margin: 1rem 0 2rem; }
.article-body .faq details p { font-size: 1rem; }

/* Para seguir leyendo */
.related { margin-top: 3rem; }
.related h2 { font-size: 1.2rem; letter-spacing: -.01em; margin: 0 0 .9rem; }
.related ul { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r); }
.related li + li { border-top: 1px solid var(--line); }
.related li { position: relative; padding: .95rem 1.2rem; transition: background-color .2s; }
.related li:hover { background: var(--paper); }
.related a { color: var(--ink); font-weight: 600; text-decoration: none; }
.related a::after { content: ""; position: absolute; inset: 0; }
.related a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--teal); }
.related small { display: block; color: var(--ink2); font-size: .88rem; margin-top: .15rem; }

/* Cierre de nota: placa verde */
.article-cta { margin-top: 3rem; --big-tip: clamp(2rem, 7vw, 4.5rem); padding-block: clamp(1.6rem, 3.4vw, 2.4rem); }
.article-cta p { font-size: clamp(1.2rem, 2.4vw, 1.5rem); font-weight: 700; line-height: 1.22; letter-spacing: -.02em; margin: 0 0 1.2rem; max-width: 24ch; }
.article-cta a { background: var(--ink); color: #fff; text-decoration: none; clip-path: polygon(0 0, calc(100% - var(--tip)) 0, 100% 50%, calc(100% - var(--tip)) 100%, 0 100%); transition: transform .3s var(--ease), background-color .2s; padding-right: calc(var(--tip) + 1rem); }
.article-cta a:hover { background: var(--teal-ink); color: #fff; }
.article-cta a:focus-visible, .btn:focus-visible { outline: 0; text-decoration: underline; text-decoration-thickness: 3px; }

/* Listado de noticias */
.page-head { padding-block: clamp(2.4rem, 5vw, 4rem) clamp(1.6rem, 3vw, 2.4rem); }
.page-head h1 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); max-width: 18ch; }
.page-head p { font-size: 1.1rem; color: var(--ink2); max-width: 56ch; margin: 1.2rem 0 0; }
.listing { padding-bottom: clamp(4rem, 8vw, 6.5rem); }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 3rem) clamp(1.2rem, 2.5vw, 2rem); }
.news-card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.news-card:hover { color: var(--ink); }
.news-card-media { border-radius: var(--r); overflow: hidden; aspect-ratio: 3 / 2; background: var(--paper); margin-bottom: 1rem; }
.news-card-media img { width: 100%; height: 100%; object-fit: cover; }
.news-card-body { display: flex; flex-direction: column; flex: 1; }
.news-card-meta { color: var(--ink2); font-size: .88rem; margin-bottom: .35rem; }
.news-card-title { font-size: 1.2rem; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; margin-bottom: .5rem; }
.news-card-excerpt { color: var(--ink2); font-size: .96rem; margin: 0 0 .4rem; }
.news-card-link { margin-top: auto; color: var(--teal-ink); }
.news-card:first-child { grid-column: span 2; }
.news-card:first-child .news-card-media { aspect-ratio: 16 / 9; }
.news-card:first-child .news-card-title { font-size: clamp(1.4rem, 2.4vw, 1.8rem); line-height: 1.2; letter-spacing: -.02em; }

@media (max-width: 1120px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: .5rem var(--g) 1rem; margin: 0; }
  .nav.open { display: flex; }
  .nav a { display: block; padding: .8rem 0; font-size: 1.05rem; }
  .lang { margin-left: auto; }
  .menu-btn { display: inline-flex; align-items: center; }
}
@media (max-width: 960px) {
  .site-header .wrap { gap: .8rem; }
  .header-cta { display: none; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; }
  .signpost { margin-right: 0; }
  .signpost .plate:nth-child(2) { margin-right: 22px; }
  .signpost .plate:nth-child(3) { margin-right: 44px; }
  .signpost::before { bottom: -22px; left: 18px; width: 8px; }
  .hero-after { padding-left: 0; margin-top: 2.2rem; }
  .hero-photo { grid-column: auto; grid-row: auto; }
  .hero-photo img { aspect-ratio: 4 / 3; flex: none; }
  .hero.lost .signpost { margin-bottom: 22px; }
  .two, .charts, .shares { grid-template-columns: minmax(0, 1fr); }
  .route { grid-template-columns: minmax(0, 1fr); gap: 1.8rem; padding-bottom: 12px; }
  .route::before { left: 30px; right: auto; top: 0; bottom: 14px; width: 3px; height: auto; }
  .route::after { right: auto; left: 19px; top: auto; bottom: 0; border-top: 20px solid var(--ink); border-left: 12.5px solid transparent; border-right: 12.5px solid transparent; border-bottom: 0; }
  .route li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 0 1.1rem; }
  .route .letter { grid-row: 1 / 3; }
  .route h3 { margin: .2rem 0 .3rem; }
  .route p { max-width: none; }
  .tbl thead { display: none; }
  .tbl tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .2rem 1rem; padding: 1rem 0; border-top: 1px solid var(--line); }
  .tbl th, .tbl td, .tbl tbody th { display: block; width: auto; padding: 0; border: 0; }
  .tbl td:last-child { grid-column: 1 / -1; font-size: .86rem; color: var(--ink2); }
  .tbl tbody tr:last-child { border-bottom: 1px solid var(--line); }
  .tbl tbody tr:last-child > * { border-bottom: 0; }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery figure:nth-child(n+4) { display: none; }
  .news { grid-template-columns: minmax(0, 1fr); gap: 2.2rem; }
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer { padding-bottom: 6.5rem; }
  .site-footer .wrap { grid-template-columns: minmax(0, 1fr); }
  .site-footer a { padding: .6rem 0; }
  .mobile-bar { display: grid; grid-template-columns: 1.6fr 1fr; gap: .6rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: var(--bg); border-top: 1px solid var(--line); padding: .6rem max(16px, env(safe-area-inset-right, 0px)) calc(.6rem + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; min-height: 46px; padding: .5rem .6rem; border-radius: var(--r); border: 1px solid var(--ink); font-weight: 600; font-size: .93rem; line-height: 1.2; text-align: center; text-decoration: none; color: var(--ink); background: var(--bg); }
  .mobile-bar a:first-child, .mobile-bar a:first-child:hover { background: var(--ink); color: #fff; }
}
@media (max-width: 640px) {
  :root { --tip: 22px; }
  .plate { padding-left: 1.1rem; }
  .signpost .plate { margin-left: 0; }
  .board a { grid-template-columns: 22px minmax(0, 1fr); }
  .board .go { grid-column: 2; }
  .person .wrap { grid-template-columns: minmax(0, 1fr); }
  .person img { width: 140px; }
  .regions li { grid-template-columns: 6.4rem minmax(0, 1fr) 4.2rem; gap: .6rem; font-size: .88rem; }
  .contact-list li { grid-template-columns: 5.5rem minmax(0, 1fr); }
  .pin .long { display: none; }
  .years-list b { font-size: 2.4rem; }
  .news-grid, .figure-row, .stat-grid { grid-template-columns: minmax(0, 1fr); }
  .news-card:first-child { grid-column: auto; }
  .stat-box { padding-bottom: .9rem; border-bottom: 1px solid var(--line); }
  .prop-card dl { grid-template-columns: minmax(0, 1fr); gap: .1rem; }
  .prop-card dt { margin-top: .6rem; }
  .article-body { font-size: 1.03rem; }
  .service-list li { padding: 1.1rem 1rem 1.1rem 3rem; }
  .service-list li::before { left: .9rem; }
  .law-box, .article-highlight { padding: 1.2rem 1.1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media (prefers-reduced-motion: no-preference) {
  .signpost .plate { animation: swing .9s var(--ease) backwards; }
  .signpost .plate:nth-child(2) { animation-delay: .09s; }
  .signpost .plate:nth-child(3) { animation-delay: .18s; }
  @keyframes swing { from { transform: translateX(-28px); clip-path: polygon(0 0, 30% 0, 30% 50%, 30% 100%, 0 100%); } to { transform: none; clip-path: polygon(0 0, calc(100% - var(--tip)) 0, 100% 50%, calc(100% - var(--tip)) 100%, 0 100%); } }
}
@media print {
  .site-header, .trail, .mobile-bar, .skip { display: none; }
}

/* Fecha y categoría debajo del título, nunca encima (el HTML generado las trae antes) */
.news a { display: flex; flex-direction: column; }
.news .media { order: 0; } .news h3 { order: 1; } .news .meta { order: 2; } .news a > p:last-child { order: 3; }
.news-card-title { order: 1; } .news-card-meta { order: 2; } .news-card-excerpt { order: 3; } .news-card-link { order: 4; }
