/* Páginas públicas (SEO, legales): documento normal con scroll, sobre
   los tokens y estilos base de style.css. */
body.pg { height: auto; overflow: visible; display: block; min-height: 100vh; }
.pg-wrap { max-width: 920px; margin: 0 auto; padding: 0 16px; }
.pg-top { background: var(--bg-panel); border-bottom: 1px solid var(--border); }
.pg-top .pg-wrap { display: flex; align-items: center; gap: 24px;
    min-height: 60px; flex-wrap: wrap; }
.pg-logo { font-family: var(--font-display); font-weight: 700; font-size: 21px;
    color: var(--text) !important; text-decoration: none; letter-spacing: -.035em; }
.pg-nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14.5px; }
.pg-nav a { color: var(--text-dim) !important; text-decoration: none; font-weight: 500; }
.pg-nav a:hover { color: var(--accent) !important; }
.pg-main { padding-top: 22px; padding-bottom: 48px; }
.pg-main h1 { font-family: var(--font-display); font-size: clamp(28px, 5vw, 40px);
    line-height: 1.12; letter-spacing: -.02em; margin: 6px 0 8px; }
.pg-main h2 { font-family: var(--font-display); font-size: 22px; font-weight: 600;
    letter-spacing: -.01em; margin: 36px 0 12px; }
.pg-main p, .pg-main li { font-size: 16px; line-height: 1.6; }
.pg-main ul { padding-left: 20px; }
.pg-main p { margin: 0 0 12px; }
.pg-sub { color: var(--text-dim); margin-top: -2px !important; }
.pg-lead { font-size: 18px !important; max-width: 70ch; margin-top: 14px !important; }
.pg-migas { font-size: 13px; color: var(--text-dim); margin-bottom: 4px; }
.pg-migas a { color: var(--text-dim) !important; }
.pg-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 10px; margin: 20px 0; }
.pg-stat { background: var(--bg-panel); border: 1px solid var(--border);
    border-radius: var(--r-md); padding: 14px 16px; }
.pg-stat .k { font-size: 13px; color: var(--text-dim); }
.pg-stat .v { font-family: var(--font-display); font-size: 24px; font-weight: 700;
    font-variant-numeric: tabular-nums; margin-top: 2px; }
.pg-stat .s { font-size: 12.5px; color: var(--text-dim); margin-top: 2px; }
.pg-cta { display: flex; gap: 16px; align-items: center; justify-content: space-between;
    flex-wrap: wrap; background: var(--accent-dim); border: 1px solid var(--border);
    border-radius: var(--r-lg); padding: 18px 20px; margin: 22px 0; }
.pg-cta p { margin: 4px 0 0 !important; font-size: 14.5px !important; color: var(--text-dim); }
.pg-cta-b { display: flex; gap: 8px; flex-wrap: wrap; }
.pg-cta .btn.primary { color: var(--on-accent) !important; }
.pg-chart { width: 100%; height: auto; display: block; }
.pg-chart text { font-size: 11px; fill: var(--text-dim); font-family: var(--font-ui); }
.pg-chart .g { stroke: var(--border); stroke-width: 1; }
.pg-chart .l { fill: none; stroke: var(--series-1); stroke-width: 2.5;
    stroke-linejoin: round; stroke-linecap: round; }
.pg-chart .a { fill: var(--accent-dim); }
.pg-chart .p { fill: var(--series-1); stroke: var(--bg); stroke-width: 2; }
.pg-tablewrap { overflow-x: auto; }
.pg-table { border-collapse: collapse; width: 100%; font-size: 14.5px;
    font-variant-numeric: tabular-nums; }
.pg-table th, .pg-table td { padding: 9px 10px; border-bottom: 1px solid var(--border);
    text-align: left; }
.pg-table th { font-size: 12.5px; color: var(--text-dim); font-weight: 600; }
.pg-table .num { text-align: right; white-space: nowrap; }
.pg-det { margin-top: 10px; }
.pg-det summary { cursor: pointer; color: var(--accent); font-size: 14px; }
.pg-det table { max-width: 320px; margin-top: 8px; }
.pg-nota, .pg-fuentes { font-size: 13px !important; color: var(--text-dim); }
.pg-fuentes { margin-top: 36px !important; }
.pg-otros { columns: 3 200px; padding-left: 18px; }
.pg-otros li { font-size: 14.5px !important; break-inside: avoid; }
.pg-ccaas { columns: 2 280px; column-gap: 32px; }
.pg-ccaa { break-inside: avoid; }
.pg-ccaa h2 { font-size: 17px; margin: 20px 0 6px; }
.pg-ccaa ul { margin: 0; }
.pg-foot { border-top: 1px solid var(--border); background: var(--bg-panel);
    padding: 22px 0 30px; }
.pg-foot p { font-size: 13px; color: var(--text-dim); margin: 0 0 8px; max-width: 80ch; }
@media print {
    .pg-top, .pg-cta, .pg-foot .pg-links { display: none; }
}
.pg-faq details { border-bottom: 1px solid var(--border); padding: 12px 0; }
.pg-faq summary { cursor: pointer; font-weight: 600; font-size: 16px; }
.pg-faq details p { margin: 8px 0 0 !important; }
@media (max-width: 560px) {
    .pg-stats { grid-template-columns: 1fr 1fr; gap: 8px; }
    .pg-stat { padding: 12px; }
    .pg-stat .v { font-size: 20px; }
    .pg-top .pg-wrap { gap: 14px; }
    .pg-nav { gap: 14px; font-size: 14px; }
}
/* cabecera como la de la app: logo con su azulejo y sección activa */
.pg-logo { display: inline-flex; align-items: center; gap: 9px; }
.pg-logo::before { content: ""; width: 26px; height: 26px; flex-shrink: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M6 30 L32 8 L58 30 V56 a4 4 0 0 1 -4 4 H10 a4 4 0 0 1 -4 -4 Z' fill='%231F4FD1'/%3E%3Cpath d='M17 47 a15 15 0 0 1 30 0' fill='none' stroke='%23fff' stroke-width='4.5' stroke-linecap='round'/%3E%3Cpath d='M32 47 L41 36' stroke='%23F2B705' stroke-width='5' stroke-linecap='round'/%3E%3Ccircle cx='32' cy='47' r='4' fill='%23F2B705'/%3E%3C/svg%3E") center / contain no-repeat; }
.pg-nav a.on { color: var(--accent) !important; font-weight: 600; }
a.tab-btn { text-decoration: none; }
@media (max-width: 720px) {
    .pg-nav { display: none; }
    body.pg { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
}

/* alquiler por zonas */
.pg-zonas { margin: 8px 0 12px; background: #fff; border: 1px solid #E4E3DC; border-radius: 16px; padding: 8px; }
.pg-zonas svg { display: block; width: 100%; height: auto; max-height: 460px; }
.pg-zonas svg path:hover { stroke: #121826; stroke-width: 2; }
.pg-zn { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; margin-right: 8px;
    border-radius: 6px; background: #EEF2FC; color: #1F4FD1; font-size: 12px; font-weight: 700; }
.pg-zcol { white-space: nowrap; }

/* Guías (/guias) */
.pg-guia { max-width: 74ch; }
.pg-guia h2 { margin-top: 32px !important; }
.pg-fecha, .pg-nota { font-size: 13.5px !important; color: var(--text-dim); }
.pg-guias { list-style: none; padding: 0; }
.pg-guias li { padding: 14px 0; border-bottom: 1px solid var(--border); }
.pg-guias li span { color: var(--text-dim); font-size: 14.5px; }
.pg-fuentes { font-size: 14px; color: var(--text-dim); }
