/* ═══ Portada Fresco ═══ */
/* base compartida con el resto de páginas (estaba en el CSS de cada una) */
*, *::before, *::after { box-sizing: border-box; } html, body { margin: 0; padding: 0; }
body { font-family: var(--sans); background: var(--bg); color: var(--text); line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--primary); } .skip-link { position: absolute; left: -9999px; top: 0; background: var(--primary); color: #fff; padding: 10px 16px; z-index: 200; border-radius: 0 0 8px 0; } .skip-link:focus { left: 0; }
.topbar { position: sticky; top: 0; z-index: 60; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 12px 24px; gap: 8px 12px; }
.brand { display: flex; align-items: baseline; gap: 10px; } .brand-mark { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 1.02rem; } .brand-mark .ico { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; } .brand-sub { font-size: 0.76rem; }
.nav-tools { display: flex; align-items: center; gap: 6px; } .nav-link { font-family: var(--sans); font-weight: 600; text-decoration: none; border: 1px solid transparent; }
@media (min-width: 1101px) { .nav-link { font-size: 0.85rem; padding: 8px 13px; } }
.topbar-actions { display: flex; align-items: center; gap: 8px; margin-left: 6px; } .icon-btn { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; } .icon-btn .ico { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 1.8; }
footer { margin-top: 2.5rem; padding: 1.6rem 1.5rem; } .footer-inner { max-width: 80rem; margin: 0 auto; display: flex; flex-direction: column; gap: 0.6rem; font-size: 0.88rem; } .footer-inner .links { display: flex; gap: 1.1rem; flex-wrap: wrap; } .footer-inner p { margin: 0; }
.nav-toggle { display: none; } @media (max-width: 760px) { .nav-toggle { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0 0.9rem; min-height: 2.5rem; font-family: var(--sans); font-weight: 600; cursor: pointer; } .nav-toggle-icon, .nav-toggle-icon::before, .nav-toggle-icon::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; } .nav-toggle-icon::before, .nav-toggle-icon::after { content: ""; position: absolute; left: 0; } .nav-toggle-icon::before { top: -6px; } .nav-toggle-icon::after { top: 6px; } .brand-sub { display: none; } .topbar { padding: 10px 14px; } }
:root { --mapa-a: 227 244 241; --mapa-b: 42 163 157; --tinta-rgb: 14 42 44; --sup-rgb: 255 255 255; --mapa-trazo: #0B5A5C; --mapa-sel: #FF6F59; --on-sel: #0E2A2C; --mapa-grosor: 1.4px; }
html[data-theme="dark"] { --mapa-a: 20 62 65; --mapa-b: 70 184 176; --tinta-rgb: 228 243 241; --sup-rgb: 17 41 43; --mapa-trazo: #7FD6CE; --mapa-sel: #FF8E7A; --on-sel: #072A2C; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ih-hero { background: var(--cab-bg); color: var(--cab-fg); position: relative; overflow: hidden; contain: paint; }
.ih-hero::before { content: ""; position: absolute; right: -12%; top: -30%; width: 62%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 160, 142, 0.22), transparent); pointer-events: none; }
.ih-in { position: relative; max-width: 80rem; margin: 0 auto; padding: 3rem 1.5rem 3.5rem; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
.ih-kicker { margin: 0 0 0.9rem; font-size: 0.78rem; letter-spacing: 0.09em; text-transform: uppercase; font-weight: 700; color: rgba(240, 250, 249, 0.8); }
.ih-hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); line-height: 1; letter-spacing: -0.038em; margin: 0 0 1.1rem; text-wrap: balance; color: var(--cab-fg); }
.ih-hero h1 em { font-style: normal; color: var(--cab-acc); }
.ih-sub { font-size: 1.15rem; line-height: 1.5; color: rgba(240, 250, 249, 0.84); max-width: 44ch; margin: 0 0 1.4rem; }
.ih-seg { display: inline-flex; border: 1px solid rgba(240, 250, 249, 0.6); border-radius: 999px; padding: 3px; margin: 0 0 1rem; }
.ih-seg button { border: 0; background: transparent; color: var(--cab-fg); border-radius: 999px; min-height: 2.75rem; padding: 0 1.3rem; font-family: var(--serif); font-weight: 600; font-size: 1.02rem; cursor: pointer; transition: background-color 160ms ease, color 160ms ease, transform 120ms ease-out; }
.ih-seg button:active { transform: scale(0.97); }
.ih-seg button[aria-pressed="true"] { background: var(--cab-acc); color: #0E2A2C; }
.ih-rap { display: flex; max-width: 32.5rem; }
.ih-rap input { flex: 1; min-width: 0; min-height: 3.4rem; border: 0; border-radius: 999px 0 0 999px; padding: 0 1.3rem; background: #fff; color: #0E2A2C; font-size: 1.05rem; }
.ih-rap input::placeholder { color: #44686A; opacity: 1; }
.ih-rap button { min-height: 3.4rem; padding: 0 1.6rem; border: 0; border-radius: 0 999px 999px 0; background: var(--accent); color: #0E2A2C; font-weight: 700; font-size: 1rem; cursor: pointer; transition: transform 120ms ease-out; }
.ih-rap button:active { transform: scale(0.97); }
.ih-hero :focus-visible { outline-color: #fff; }
.ih-cifras { display: flex; gap: 2rem; flex-wrap: wrap; padding-top: 1.5rem; }
.ih-cifras b { display: block; font-family: var(--serif); font-weight: 700; font-size: 2.1rem; line-height: 1; letter-spacing: -0.03em; color: var(--cab-acc); font-variant-numeric: lining-nums tabular-nums; }
.ih-cifras span { font-size: 0.88rem; color: rgba(240, 250, 249, 0.82); }
.ih-hoja { background: var(--surface); color: var(--text); border-radius: 1.25rem; padding: 1.1rem 1.1rem 1rem; box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
.ih-hoja h2 { font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.09em; text-transform: uppercase; font-weight: 700; margin: 0 0 0.6rem; color: var(--text-muted); }
.ih-map { position: relative; }
.ih-map svg { display: block; width: 100%; height: auto; overflow: visible; }
.ih-map .pv { fill: rgb(var(--c, 227 244 241)); stroke: var(--mapa-trazo); stroke-width: var(--mapa-grosor); stroke-linejoin: round; vector-effect: non-scaling-stroke; cursor: pointer; outline: none; transition: fill 140ms ease; }
.ih-map .hl { fill: var(--mapa-sel); stroke: var(--mapa-trazo); stroke-width: calc(var(--mapa-grosor) + 1.6px); stroke-linejoin: round; vector-effect: non-scaling-stroke; pointer-events: none; opacity: 0; transition: opacity 120ms ease-out; }
.ih-map .hl.on { opacity: 1; }
.ih-map .pv:focus-visible { stroke: var(--foco); stroke-width: 4px; }
.ih-map .et { position: absolute; transform: translate(-50%, -50%); text-align: center; line-height: 1.12; pointer-events: none; font-size: clamp(0.75rem, 1.55vw, 0.92rem); max-width: 6.5em; }
.ih-map .et b { display: block; font-weight: 700; } .ih-map .et span { display: block; font-variant-numeric: lining-nums tabular-nums; font-size: max(0.75rem, 0.92em); font-weight: 500; }
@media (hover: hover) and (pointer: fine) { .ih-seg button[aria-pressed="false"]:hover { background: rgba(255, 255, 255, 0.14); } }
.ih-herr, .ih-notas { max-width: 80rem; margin: 0 auto; padding: 2.2rem 1.5rem 0; }
.ih-herr h2 { font-size: 1.65rem; letter-spacing: -0.03em; margin: 0 0 1rem; }
.ih-tools { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(16.5rem, 1fr)); gap: 0.9rem; }
.ih-tool { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "i t" "g g"; gap: 0.35rem 0.9rem; align-items: start; height: 100%; padding: 1.1rem; background: var(--surface); border: 1px solid var(--border-f); border-radius: var(--radius); color: var(--text); text-decoration: none; transition: border-color 140ms ease, transform 120ms ease-out; }
.ih-tool:active { transform: scale(0.99); }
@media (hover: hover) and (pointer: fine) { .ih-tool:hover { border-color: var(--primary); } }
.ih-ico { grid-area: i; width: 2.6rem; height: 2.6rem; border-radius: 0.8rem; background: var(--primary-tint); color: var(--primary); display: grid; place-items: center; } .ih-ico svg { width: 1.4rem; height: 1.4rem; }
html[data-theme="dark"] .ih-ico { color: var(--primary); }
.ih-tt { grid-area: t; } .ih-tt b { display: block; font-family: var(--serif); font-size: 1.15rem; letter-spacing: -0.02em; margin-bottom: 0.2rem; } .ih-tt small { display: block; font-size: 0.9rem; line-height: 1.4; color: var(--text-muted); }
.ih-go { grid-area: g; font-weight: 700; color: var(--primary-dark); font-size: 0.92rem; margin-top: 0.3rem; }
.ih-notas { padding-bottom: 2.5rem; } .ih-notas p { margin: 0 0 0.8rem; max-width: 80ch; color: var(--text-muted); font-size: 0.93rem; line-height: 1.55; } .ih-aviso { background: var(--primary-tint); border: 1px solid var(--border); border-radius: 14px; padding: 0.8rem 1rem; color: var(--text) !important; }
@media (max-width: 1000px) { .ih-in { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; } .ih-mapa { max-width: 34rem; } }
@media (max-width: 560px) { .ih-in { padding: 1.75rem 1rem 2.25rem; } .ih-herr, .ih-notas { padding-left: 1rem; padding-right: 1rem; } .ih-cifras { gap: 1.25rem; } .ih-hoja { padding: 0.8rem 0.7rem 0.7rem; } .ih-map .et { font-size: 0.7rem; } .ih-seg button { padding: 0 1rem; } }
@media (max-width: 380px) { .ih-map .et { font-size: 0.62rem; max-width: 5.6em; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* fecha de la RPT: píldora centrada dentro de la banda verde */
.ih-hero .data-banner.ih-fecha { position: relative; display: flex !important; justify-content: center; background: transparent !important; border: 0 !important; border-radius: 0 !important; margin: 0 auto !important; padding: 0 1.5rem 2rem !important; max-width: 80rem; color: rgba(240, 250, 249, 0.9) !important; }
.ih-hero .ih-fecha .data-banner-inner { display: inline-block; text-align: center; padding: 0.55rem 1.1rem; border-radius: 999px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(240, 250, 249, 0.22); font-size: 0.88rem; line-height: 1.45; max-width: 100%; }
.ih-hero .data-banner.rpt-line.ih-fecha .data-banner-inner, .ih-hero .data-banner.rpt-line.ih-fecha .data-banner-inner span { color: rgba(240, 250, 249, 0.9); }
.ih-hero .data-banner.rpt-line.ih-fecha .data-banner-inner strong { color: var(--cab-acc); font-weight: 700; }
.ih-hero .ih-fecha svg, .ih-hero .ih-fecha .ico { display: none; }
@media (max-width: 560px) { .ih-hero .data-banner.ih-fecha { padding: 0 1rem 1.6rem !important; } .ih-hero .ih-fecha .data-banner-inner { border-radius: 16px; padding: 0.6rem 0.9rem; } }
@media (max-width: 760px) { .topbar { flex-wrap: nowrap; } .topbar .brand { min-width: 0; flex: 1 1 auto; } .topbar .brand-mark { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .topbar > div:last-child { flex: 0 0 auto; } }   /* portada en móvil: cabecera en una sola fila, como el resto de páginas; si se partía en dos, los botones Menú, ? y luna quedaban encima del cajón abierto */
/* P4 · Mapa de la portada con letra mínima de 12 px; en 360 px o menos solo el nombre de la provincia (la cifra se ve al tocarla, en el buscador) (14 nov 2026) */
@media (max-width: 560px) { .ih-map .et { font-size: 0.75rem; } .ih-map .et span { font-size: 1em; } }
@media (max-width: 380px) { .ih-map .et { font-size: 0.75rem; max-width: 6.5em; } }
@media (max-width: 360px) { .ih-map .et span { display: none; } }
/* P5 · Portada en móviles estrechos: el texto de ejemplo del buscador cabe entero */
@media (max-width: 360px) { .ih-rap input { padding: 0 0.85rem; } .ih-rap button { padding: 0 1.05rem; } }
/* Portada en móvil estrecho: las tres cifras en una fila (antes «10 consejerías» caía sola a otra línea) */
@media (max-width: 400px) {
  .ih-cifras { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px !important; }
  .ih-cifras b { font-size: 1.6rem !important; }
}
