/* oGov Planes · portal público. Accesible (WCAG 2.1 AA), ligero, con los colores de la entidad. */
*, *::before, *::after { box-sizing: border-box; }
.pp { margin: 0; font-family: Montserrat, system-ui, sans-serif; color: #1f2937; background: #fff; line-height: 1.5; font-size: 16px; }
.pp a { color: var(--brand-2); }
.pp a:focus-visible, .pp button:focus-visible, .pp input:focus-visible, .pp select:focus-visible, .pp summary:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.pp-wrap { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }
.pp-skip { position: absolute; left: -999px; } .pp-skip:focus { left: 1rem; top: 1rem; background: #fff; padding: .5rem 1rem; z-index: 10; }
.pp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.pp-preview { background: #fef3c7; color: #78350f; text-align: center; font-size: .85rem; font-weight: 600; padding: .5rem; border-bottom: 1px solid #fcd34d; }
.pp-header { background: #fff; border-bottom: 4px solid var(--brand); }
.pp-header__inner { display: flex; justify-content: space-between; align-items: center; min-height: 4.5rem; gap: 1rem; }
.pp-brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--brand-2) !important; font-weight: 700; font-size: 1.05rem; }
.pp-brand small { display: block; font-weight: 500; font-size: .75rem; color: #6b7280; }
.pp-brand__logo { max-height: 3rem; max-width: 10rem; }
.pp-menu a { font-weight: 600; text-decoration: none; margin-left: 1rem; }
.pp-main { padding: 2rem 0 3rem; }
.pp--embed .pp-main { padding: 1rem 0; }
.pp-footer { background: var(--brand-2); color: #fff; padding: 1.5rem 0; font-size: .85rem; }
.pp-footer a { color: #fff !important; }
.pp-footer__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.pp-crumbs { font-size: .85rem; color: #4b5563; margin-bottom: 1rem; }
.pp-title h1 { font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.15; margin: .2rem 0 .6rem; color: var(--brand-2); }
.pp-kicker { text-transform: uppercase; letter-spacing: .06em; font-size: .75rem; font-weight: 700; color: #4b5563; margin: 0; }
.pp-lead { font-size: 1.05rem; color: #374151; max-width: 48rem; }
.pp-muted { color: #4b5563; font-size: .85rem; }
.pp-big { font-size: 2rem; font-weight: 800; line-height: 1; }
.pp-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: .75rem; margin: 1.5rem 0; }
.pp-kpi { background: var(--brand-3); border-radius: .75rem; padding: 1rem; display: grid; gap: .35rem; font-size: .85rem; }
.pp-kpi--main { background: var(--brand); color: var(--brand-ink); }
.pp-c-success { color: #047857; } .pp-c-info { color: #1d4ed8; } .pp-c-warning { color: #b45309; } .pp-c-danger { color: #b91c1c; }
.pp-section { margin: 2rem 0; }
.pp-h2 { font-size: 1.2rem; color: var(--brand-2); margin: 0 0 .75rem; }
.pp-how { background: var(--brand-3); border-radius: .6rem; padding: .75rem 1rem; font-size: .9rem; margin: 1rem 0; }
.pp-how summary { cursor: pointer; font-weight: 700; }
.pp-filters { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 1.5rem 0 1rem; }
.pp-filters input, .pp-filters select { border: 1px solid #9ca3af; border-radius: .45rem; padding: .5rem .7rem; font: inherit; font-size: .9rem; }
.pp-filters input { flex: 1 1 16rem; }
.pp-btn { background: var(--brand); color: var(--brand-ink); border: 0; border-radius: .45rem; padding: .55rem 1rem; font: inherit; font-weight: 700; cursor: pointer; }
.pp-empty { padding: 2rem; text-align: center; color: #4b5563; background: var(--brand-3); border-radius: .75rem; }
.pp-tree { list-style: none; margin: 0; padding: 0 0 0 1.2rem; }
.pp-tree--root { padding: 0; }
.pp-node { border-top: 1px solid #e5e7eb; }
.pp-node--d1 > .pp-row { padding-top: .9rem; } .pp-node--d1 > .pp-row a { font-size: 1.05rem; font-weight: 700; }
.pp-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .55rem 0; flex-wrap: wrap; }
.pp-row__main { flex: 1 1 22rem; display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.pp-row__main a { text-decoration: none; font-weight: 600; } .pp-row__main a:hover { text-decoration: underline; }
.pp-row__meta { display: flex; align-items: center; gap: .6rem; flex: 0 0 auto; }
.pp-level { font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; color: #6b7280; font-weight: 700; }
.pp-code { color: #6b7280; font-weight: 600; }
.pp-pct { font-weight: 700; min-width: 3rem; text-align: right; font-variant-numeric: tabular-nums; }
.pp-bar { position: relative; width: 9rem; height: .55rem; background: #e5e7eb; border-radius: 9px; overflow: visible; }
.pp-card .pp-bar { width: 100%; }
.pp-bar__fill { display: block; height: 100%; border-radius: 9px; }
.pp-bar__expected { position: absolute; top: -.2rem; width: 2px; height: .95rem; background: #111827; }
.pp-c-bg-success { background: #059669; } .pp-c-bg-info { background: #2563eb; } .pp-c-bg-warning { background: #d97706; }
.pp-c-bg-danger { background: #dc2626; } .pp-c-bg-gray { background: #9ca3af; } .pp-c-bg-ahead { background: #047857; } .pp-c-bg-brand { background: var(--brand); }
.pp-pace { font-size: .72rem; font-weight: 700; border-radius: 99px; padding: .15rem .55rem; white-space: nowrap; }
.pp-pace--success { background: #d1fae5; color: #065f46; } .pp-pace--info { background: #dbeafe; color: #1e40af; } .pp-pace--warning { background: #fef3c7; color: #92400e; }
.pp-pace--danger { background: #fee2e2; color: #991b1b; } .pp-pace--gray { background: #f3f4f6; color: #374151; } .pp-pace--ahead { background: #a7f3d0; color: #064e3b; }
.pp-sdg { display: inline-grid; place-items: center; width: 1.35rem; height: 1.35rem; border-radius: .2rem; color: #fff; font-size: .65rem; font-weight: 800; }
.pp-sdgs { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.pp-sdgs li { position: relative; width: 4.5rem; height: 4.5rem; border-radius: .3rem; display: grid; place-items: center; color: #fff; }
.pp-sdgs img { width: 100%; height: 100%; object-fit: contain; }
.pp-sdgs span { position: absolute; right: -.4rem; top: -.4rem; background: #111827; color: #fff; border-radius: 99px; font-size: .7rem; font-weight: 700; padding: 0 .4rem; }
.pp-cards { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); gap: 1rem; }
.pp-card { border: 1px solid #e5e7eb; border-top: 4px solid var(--brand); border-radius: .75rem; padding: 1.1rem; display: grid; gap: .5rem; }
.pp-card h2 { font-size: 1.15rem; margin: 0; } .pp-card h2 a { text-decoration: none; }
.pp-status { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; background: var(--brand-3); border-radius: .75rem; padding: 1.2rem; }
@media (max-width: 720px) { .pp-status { grid-template-columns: 1fr; } .pp-bar { width: 6rem; } }
.pp-status__line { display: flex; align-items: center; gap: .75rem; margin-bottom: .6rem; }
.pp-status .pp-bar { width: 100%; height: .8rem; }
.pp-facts { margin: 0; display: grid; gap: .6rem; } .pp-facts dt { font-size: .75rem; color: #4b5563; font-weight: 700; } .pp-facts dd { margin: 0; }
.pp-chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.pp-chip { display: inline-block; border-left: 6px solid var(--c); background: #f9fafb; border-radius: .3rem; padding: .25rem .6rem; font-size: .85rem; }
.pp-milestones { list-style: none; padding: 0; display: grid; gap: .4rem; }
.pp-ms { display: grid; grid-template-columns: 1.6rem 1fr auto; gap: .5rem; align-items: center; padding: .45rem .6rem; border: 1px solid #e5e7eb; border-radius: .5rem; }
.pp-ms__mark { font-weight: 800; text-align: center; } .pp-ms--done .pp-ms__mark { color: #047857; } .pp-ms--late .pp-ms__mark { color: #b91c1c; }
.pp-ms__date { font-size: .8rem; color: #4b5563; }
.pp-timeline { list-style: none; padding: 0; border-left: 3px solid var(--brand); margin-left: .4rem; }
.pp-timeline li { padding: 0 0 1rem 1rem; } .pp-timeline time { font-weight: 700; font-size: .85rem; } .pp-timeline p { margin: .2rem 0; }
.pp-table { width: 100%; border-collapse: collapse; font-size: .9rem; } .pp-table th, .pp-table td { text-align: left; padding: .5rem; border-bottom: 1px solid #e5e7eb; }
.pp-docs { padding-left: 1.2rem; }
.pp-data { margin-top: 2rem; }
.pp-stack { display: flex; height: .9rem; border-radius: 9px; overflow: hidden; margin: -.5rem 0 1.5rem; }
.pp-blocks { list-style: none; padding: 0; display: grid; gap: .6rem; }
.pp-blocks li { display: grid; grid-template-columns: minmax(0, 1fr) 14rem 4.5rem; gap: 1rem; align-items: center; }
.pp-blocks .pp-bar { width: 100%; height: .7rem; } .pp-blocks b { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 720px) { .pp-blocks li { grid-template-columns: 1fr 4rem; } .pp-blocks .pp-bar { grid-column: 1 / -1; grid-row: 2; } }

/* Navegación por niveles (sustituye al árbol desplegado) */
.pp--bare .pp-main { padding: 1rem 0 1.5rem; }
.pp-credit { margin-top: 2rem; font-size: .75rem; color: #6b7280; }
.pp-crumbs ol { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .25rem .5rem; font-size: .875rem; }
.pp-crumbs li + li::before { content: '/'; color: #9ca3af; margin-right: .5rem; }
.pp-crumbs small { display: inline; font-size: .75rem; color: #6b7280; margin-right: .2rem; }
.pp-doc { display: inline-flex; align-items: center; gap: .5rem; border: 1px solid #d1d5db; border-radius: .5rem; padding: .5rem .75rem; text-decoration: none; font-weight: 600; font-size: .875rem; margin-top: .5rem; }
.pp-doc svg { width: 1.1rem; height: 1.1rem; } .pp-doc small { color: #6b7280; font-weight: 400; }
.pp-doc:hover { border-color: var(--brand); }
.pp-section__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: .75rem; }
.pp-section__head .pp-h2 { margin: 0; }
.pp-search { display: flex; gap: .5rem; }
.pp-search input { border: 1px solid #9ca3af; border-radius: .375rem; padding: .45rem .7rem; font: inherit; font-size: .875rem; min-width: 14rem; }
.pp-h2 small { color: #6b7280; font-weight: 600; font-size: .875rem; }
.pp-list { list-style: none; padding: 0; margin: 0; border: 1px solid #e5e7eb; border-radius: .5rem; overflow: hidden; }
.pp-item + .pp-item { border-top: 1px solid #e5e7eb; }
.pp-item__link { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 1rem; text-decoration: none; color: inherit !important; }
.pp-item__link:hover { background: var(--brand-3); }
.pp-item__main { display: grid; gap: .15rem; min-width: 0; }
.pp-item__level { font-size: .75rem; color: #6b7280; font-weight: 600; }
.pp-item__name { font-weight: 700; color: var(--brand-2); }
.pp-item__sub { font-size: .75rem; color: #6b7280; }
.pp-item__meta { display: flex; align-items: center; gap: .6rem; flex: 0 0 auto; }
.pp-chevron { width: 1rem; height: 1rem; color: #9ca3af; }
.pp-ms__mark { width: .9rem; height: .9rem; border-radius: 9999px; border: 2px solid #9ca3af; }
.pp-ms--done .pp-ms__mark { background: #059669; border-color: #059669; }
.pp-ms--late .pp-ms__mark { border-color: #dc2626; }
@media (max-width: 640px) { .pp-item__link { flex-direction: column; align-items: stretch; } .pp-item__meta .pp-bar { flex: 1; } .pp-search input { min-width: 0; flex: 1; } }
.pp-credit { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; border-top: 1px solid #e5e7eb; padding-top: .75rem; }
.pp-credit abbr { text-decoration: none; }
.pp-credit__brand { display: inline-flex; align-items: center; gap: .4rem; }
.pp-credit__brand img { height: 1.1rem; width: auto; }
.pp-h3 { font-size: 1rem; color: var(--brand-2); margin: 1.25rem 0 .5rem; }
.pp-gallery { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: .5rem; }
.pp-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: .5rem; display: block; }
.pp-news { list-style: none; padding: 0; display: grid; gap: .5rem; }
.pp-news li { display: grid; gap: .1rem; border-left: 3px solid var(--brand); padding-left: .75rem; }
.pp-news a { font-weight: 700; }

/* ───── Plan desplegable (pn-): cada elemento se abre en el sitio, sin cambiar de página ───── */
.pn-tools { display: flex; gap: .5rem; margin-left: auto; }
.pn-tool { font: inherit; font-size: .875rem; font-weight: 600; color: var(--brand-2); background: #fff; border: 1px solid #d1d5db; border-radius: .375rem; padding: .375rem .75rem; cursor: pointer; }
.pn-tool:hover { background: #f9fafb; }
.pn-list { list-style: none; margin: 0; padding: 0; }
.pn-list--root { border: 1px solid #e5e7eb; border-radius: .5rem; overflow: hidden; }
.pn-list--root > .pn + .pn { border-top: 1px solid #e5e7eb; }
.pn__body .pn-list { border-left: 2px solid #e5e7eb; margin-left: .25rem; }
.pn__body .pn-list > .pn + .pn { border-top: 1px solid #f3f4f6; }
.pn__sum { display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem; cursor: pointer; list-style: none; }
.pn__sum::-webkit-details-marker { display: none; }
.pn__sum:hover { background: var(--brand-3); }
.pn__chev { width: 1rem; height: 1rem; flex-shrink: 0; color: #4b5563; transition: transform .15s; }
.pn__box[open] > .pn__sum .pn__chev { transform: rotate(90deg); }
.pn__main { flex: 1; min-width: 0; display: grid; gap: .125rem; }
.pn__level { font-size: .75rem; font-weight: 600; color: #4b5563; }
.pn__name { font-weight: 700; color: var(--brand-2); }
.pn--d1 > .pn__box > .pn__sum .pn__name { font-size: 1.0625rem; }
.pn__path { font-size: .75rem; color: #4b5563; }
.pn__meta { display: flex; align-items: center; gap: .625rem; flex-shrink: 0; }
.pn__box[open] > .pn__sum { background: var(--brand-3); }
.pn__body { padding: .75rem 1rem 1rem 2.75rem; display: grid; gap: 1rem; }
.pn__desc { margin: 0; color: #374151; max-width: 48rem; }
.pn__facts { margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 2rem; }
.pn__facts dt { font-size: .75rem; font-weight: 600; color: #4b5563; }
.pn__facts dd { margin: 0; font-size: .9375rem; }
.pn__block h3 { font-size: .875rem; color: var(--brand-2); margin: 0 0 .375rem; }
.pn__chips { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.pn__chips li { border-left: 4px solid var(--c); background: #f9fafb; border-radius: .25rem; padding: .25rem .625rem; font-size: .875rem; line-height: 1.4; }
.pn__ms { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.pn__m { display: grid; grid-template-columns: 1rem 1fr auto; gap: .625rem; align-items: center; font-size: .9375rem; }
.pn__mark { width: .875rem; height: .875rem; border-radius: 9999px; border: 2px solid #6b7280; }
.pn__m--done .pn__mark { background: #047857; border-color: #047857; }
.pn__m--late .pn__mark { border-color: #b91c1c; }
.pn__mdate { font-size: .8125rem; color: #4b5563; white-space: nowrap; }
.pn__updates { list-style: none; margin: 0; padding: 0 0 0 .75rem; border-left: 3px solid var(--brand); display: grid; gap: .375rem; font-size: .9375rem; }
.pn__updates time { font-weight: 700; font-size: .8125rem; margin-right: .25rem; }
.pn__children { margin: .25rem 0 -.5rem; font-size: .875rem; font-weight: 700; color: var(--brand-2); }
.pn__children span { font-weight: 600; color: #4b5563; }
.pn__share { margin-left: auto; align-self: flex-end; font-size: .8125rem; }
.pn__share a { color: #4b5563; }
@media (max-width: 640px) {
  .pn__sum { flex-wrap: wrap; }
  .pn__meta { width: 100%; padding-left: 1.75rem; }
  .pn__meta .pp-bar { flex: 1; }
  .pn__body { padding-left: 1rem; }
  .pn__m { grid-template-columns: 1rem 1fr; } .pn__mdate { grid-column: 2; }
}
.pn__sub { font-size: .8125rem; font-weight: 600; color: #374151; margin: .5rem 0 .25rem; }
.pp-statement { max-width: 48rem; } .pp-statement ul { padding-left: 1.25rem; } .pp-statement li { margin: .25rem 0; }

/* ───── Explorar el plan (pv-): ver por estructura, nivel, área, ODS o gasto, con filtros ───── */
.pv-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; margin: .5rem 0 1rem; padding: .25rem; background: #f3f4f6; border-radius: .5rem; width: fit-content; max-width: 100%; }
.pv-tabs__label { font-size: .8125rem; font-weight: 600; color: #4b5563; padding: 0 .5rem; }
.pv-tabs a { font-size: .875rem; font-weight: 600; color: #374151; text-decoration: none; padding: .4rem .85rem; border-radius: .375rem; }
.pv-tabs a:hover { background: #e5e7eb; }
.pv-tabs a[aria-current="page"] { background: #fff; color: var(--brand-2); box-shadow: 0 1px 2px rgb(0 0 0 / .08); }
.pv-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .75rem; margin-bottom: .75rem; }
.pv-field { display: flex; flex-direction: column; gap: .25rem; min-width: 10rem; }
.pv-field--grow { flex: 1 1 14rem; }
.pv-field label { font-size: .8125rem; font-weight: 600; color: #374151; }
.pv-field input, .pv-field select { font: inherit; font-size: .875rem; border: 1px solid #9ca3af; border-radius: .375rem; padding: .45rem .6rem; background: #fff; max-width: 18rem; }
.pv-field--grow input { max-width: none; width: 100%; }
.pv-result { font-size: .875rem; color: #374151; margin: 0 0 .75rem; }
.pv-chip { display: inline-block; background: #eef2ff; color: #3730a3; border-radius: 999px; padding: .05rem .55rem; margin-left: .25rem; font-size: .8125rem; }
.pv-swatch { width: .875rem; height: .875rem; border-radius: .2rem; flex: none; }
.pv-dot { display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; margin-right: .2rem; vertical-align: middle; }
.pv-dot--success { background: #059669; } .pv-dot--info { background: #2563eb; } .pv-dot--warning { background: #d97706; }
.pv-dot--danger { background: #dc2626; } .pv-dot--gray { background: #9ca3af; } .pv-dot--ahead { background: #047857; }
.pv-money { margin-bottom: 1.5rem; }
.pv-money caption { text-align: left; font-weight: 700; padding: .25rem 0 .5rem; }
.pv-money td, .pv-money tfoot th { white-space: nowrap; font-variant-numeric: tabular-nums; }
.pv-money tfoot th, .pv-money tfoot td { font-weight: 700; border-top: 2px solid #d1d5db; }
.pv-cell { display: inline-flex; align-items: center; gap: .5rem; }
.pv-cell .pp-bar { width: 6rem; }
.pn-tools { margin-bottom: .5rem; justify-content: flex-end; }
@media (max-width: 640px) { .pv-field { min-width: 0; flex: 1 1 100%; } .pv-field select { max-width: none; } .pv-money { display: block; overflow-x: auto; } }

/* Datos abiertos */
.pp-button { display: inline-block; background: var(--brand); color: var(--brand-ink); font-weight: 700; padding: .6rem 1.1rem; border-radius: .375rem; text-decoration: none; }
.pp-datasets { display: grid; gap: .5rem; padding-left: 1.2rem; list-style: disc; }
.pp-menu { display: flex; gap: 1.25rem; }

/* Imagen y documentos del plan */
.pp-cover { width: 100%; max-height: 18rem; object-fit: cover; border-radius: .5rem; margin-bottom: 1rem; }
.pp-card__img { width: 100%; height: 9rem; object-fit: cover; border-radius: .375rem; margin-bottom: .75rem; }
.pp-docs { list-style: none; padding: 0; margin: .5rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }

/* Página de proyectos */
.pp-projects { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1rem; }
.pp-project { border: 1px solid #e5e7eb; border-radius: .75rem; overflow: hidden; padding: 1rem; display: grid; gap: .5rem; align-content: start; } .pp-project > img { margin: -1rem -1rem 0; width: calc(100% + 2rem); height: 10rem; object-fit: cover; } .pp-project h2 { font-size: 1.05rem; margin: .15rem 0; } .pp-project p { margin: 0; }
.pp-project__bar { display: grid; grid-template-columns: 1fr auto; gap: .75rem; align-items: center; } .pp-project__bar--big b { font-size: 1.75rem; } .pp-project__bar--big .pp-bar { height: 1rem; }
.pp-projects--list { grid-template-columns: 1fr; gap: .5rem; } .pp-projects--list .pp-project { grid-template-columns: 2fr 1fr auto; align-items: center; } @media (max-width: 700px) { .pp-projects--list .pp-project { grid-template-columns: 1fr; } }

/* ───── Estilo de los visores de oGov (contratos, subvenciones): cabecera de módulo, pestañas y panel ───── */
.pp { color: #1f2937; background: #f9f9f9; -webkit-font-smoothing: antialiased; }
.pp a { text-underline-offset: .18em; }
.pp-wrap { max-width: 80rem; padding: 0 2rem; }
@media (max-width: 640px) { .pp-wrap { padding: 0 1rem; } }
.pp-skip:focus { left: 1rem; top: 1rem; }
.pp-main:focus { outline: none; }

/* Cabecera propia (solo portal suelto): banda de color con logo y nombre, como el visor de contratos */
.pp-header { background: var(--brand-2); border: 0; }
.pp-header__inner { min-height: 0; padding: 1.5rem 2rem; }
.pp-brand { color: #fff !important; gap: 1.1rem; font-weight: 500; font-size: 1.125rem; }
.pp-brand__logo { max-height: 4rem; max-width: 12rem; }
.pp-brand__mark { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: .5rem; background: #fff; color: var(--brand-2); font-size: 1.35rem; font-weight: 800; flex: none; }
.pp-brand__text { border-left: 2px solid #fff; padding-left: 1.1rem; line-height: 1.35; }
.pp-brand small { color: #fff; font-size: .85rem; font-weight: 400; margin-top: .15rem; }
.pp-footer { background: var(--brand-2); color: #fff; padding: 1.75rem 0; font-size: .85rem; }
.pp-footer p { margin: 0; }

/* «con la tecnología de oGov»: arriba, también dentro de un iframe */
.pp-top { padding-top: 1rem; }
.pp-powered { display: flex; justify-content: flex-end; margin: 0; font-size: .8rem; }
.pp-powered a { display: inline-flex; align-items: center; gap: .45rem; color: #4b5563 !important; text-decoration: none; padding: .25rem .4rem; border-radius: .375rem; }
.pp-powered a:hover { color: #1f2937 !important; background: #fff; }
.pp-powered img { height: 1.15rem; width: auto; }

/* Cabecera del módulo */
.pp-module { padding: .5rem 0 0; display: grid; gap: .9rem; }
.pp-module__title { margin: 0; font-size: 1.5rem; font-weight: 500; text-transform: uppercase; letter-spacing: .01em; color: var(--brand-2); }
.pp-module__desc { margin: 0; color: #454545; max-width: 60rem; }
.pp-module__date { margin: 0; color: #454545; }
.pp-module__date strong { font-weight: 800; }
.pp-dashed { border: 0; border-top: 1px dashed #c9c9c9; margin: 1.5rem 0 1.75rem; }

/* Pestañas de sección */
.pp-tabs ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; background: #eef0f3; border-radius: .5rem .5rem 0 0; }
.pp-tabs li { display: flex; }
.pp-tabs__end { margin-left: auto; }
.pp-tabs a { display: flex; align-items: center; gap: .65rem; padding: .9rem 1.15rem; border-radius: .5rem .5rem 0 0; color: #4b5563 !important; text-decoration: none; text-transform: uppercase; font-weight: 500; font-size: .95rem; letter-spacing: .02em; }
.pp-tabs a:hover { color: #111827 !important; text-decoration: underline; }
.pp-tabs a[aria-current="page"] { background: #fff; color: #111827 !important; font-weight: 700; }
.pp-tabs svg { width: 1.35rem; height: 1.35rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.pp-tabs__end a { color: var(--brand-2) !important; text-transform: none; font-size: 1rem; }
@media (max-width: 760px) {
  .pp-tabs ul { border-radius: .5rem; padding: .25rem; gap: .25rem; }
  .pp-tabs li, .pp-tabs__end { margin: 0; flex: 1 1 45%; }
  .pp-tabs a { width: 100%; border-radius: .375rem; padding: .7rem .8rem; font-size: .85rem; }
}

/* Panel de contenido */
.pp-main { padding: 0 0 2.5rem; }
.pp-panel { background: #fff; border-radius: 0 0 .5rem .5rem; box-shadow: 0 1px 2px rgb(0 0 0 / .06); padding: 2rem 2rem 2.5rem; }
@media (max-width: 760px) { .pp-panel { border-radius: .5rem; margin-top: .5rem; padding: 1.25rem 1rem 1.75rem; } }
.pp--bare .pp-main { padding: 0 0 1.5rem; }
.pp-credit { display: flex; justify-content: flex-start; margin-top: 1rem; border: 0; padding: 0; font-size: .8rem; color: #4b5563; }
.pp-credit a { color: #374151; }

/* Títulos dentro del panel */
.pp-title { margin-bottom: 1.75rem; }
.pp-title h1 { font-size: 1.6rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; margin: .25rem 0 .6rem; color: #111827; }
.pp-kicker { text-transform: none; letter-spacing: 0; font-size: .85rem; font-weight: 600; color: #4b5563; }
.pp-lead { font-size: 1rem; line-height: 1.65; color: #454545; max-width: 60rem; }
.pp-muted { color: #4b5563; }
.pp-h2 { font-size: 1.2rem; font-weight: 700; color: #111827; margin: 0 0 .9rem; }
.pp-section { margin: 2.5rem 0 0; padding-top: 2rem; border-top: 1px dashed #dddddd; }
.pp-crumbs { font-size: .85rem; }

/* Cifras */
.pp-kpis { display: flex; flex-wrap: wrap; gap: 0; margin: 0 0 1rem; border: 1px solid #e5e7eb; border-radius: .5rem; padding: 1rem .25rem; }
.pp-kpi, .pp-kpi--main { background: none; color: #4b5563; border-radius: 0; padding: .25rem 1.25rem; flex: 1 1 9rem; gap: .35rem; font-size: .85rem; }
.pp-kpi + .pp-kpi { border-left: 1px solid #e5e7eb; }
.pp-kpi .pp-big { font-size: 1.9rem; font-weight: 700; color: #111827; }
.pp-kpi--main .pp-big { color: var(--brand-2); }
.pp-kpi .pp-c-success { color: #047857; } .pp-kpi .pp-c-danger { color: #b91c1c; } .pp-kpi .pp-c-info { color: #1d4ed8; } .pp-kpi .pp-c-warning { color: #b45309; }
@media (max-width: 640px) { .pp-kpi { flex-basis: 45%; padding: .6rem .9rem; } .pp-kpi + .pp-kpi { border-left: 0; } }

/* Fichas */
.pp-cards { grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); gap: 1rem; }
.pp-card { position: relative; border: 1px solid #e5e7eb; border-radius: .5rem; padding: 1.35rem; gap: .65rem; }
.pp-card:hover { border-color: var(--brand-2); }
.pp-card h2 { font-size: 1.15rem; line-height: 1.3; }
.pp-cards--link .pp-card h2 a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.pp-cards--link .pp-card:focus-within { outline: 3px solid var(--brand); outline-offset: 2px; }
.pp-card__progress .pp-big { font-size: 2.1rem; color: var(--brand-2); }
.pp-card__img { height: 9rem; margin: 0; }

/* Proyectos */
.pp-projects { gap: 1rem; }
.pp-project { border-color: #e5e7eb; border-radius: .5rem; padding: 1.2rem; }
.pp-project > img { margin: -1.2rem -1.2rem .25rem; width: calc(100% + 2.4rem); height: 10rem; }
.pp-projects:not(.pp-projects--list) .pp-project { display: flex; flex-direction: column; position: relative; }
.pp-projects:not(.pp-projects--list) .pp-project .pp-project__bar { margin-top: auto; padding-top: .5rem; }
.pp-projects:not(.pp-projects--list) .pp-project h2 a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.pp-projects:not(.pp-projects--list) .pp-project:focus-within { outline: 3px solid var(--brand); outline-offset: 2px; }
.pp-project:hover { border-color: var(--brand-2); }
.pp-project h2 a { text-decoration: none; }
.pp-project > div > p:not(.pp-kicker) { color: #4b5563; font-size: .92rem; margin-top: .35rem; }
.pp-project__bar .pp-bar { width: 100%; }
.pp-project__bar--big { max-width: 40rem; margin: 1.25rem 0 .75rem; }
.pp-milestones { gap: .4rem; max-width: 40rem; }
.pp-ms { grid-template-columns: 1rem 1fr auto; border-color: #e5e7eb; }
.pp-ms__date { font-weight: 600; } .pp-ms--done .pp-ms__date { color: #047857; }

/* Rendición de cuentas */
.pp-scroll { overflow-x: auto; }
.pp-table--report { min-width: 34rem; font-size: .95rem; }
.pp-table--report thead th { font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: #4b5563; font-weight: 600; border-bottom: 2px solid #e5e7eb; }
.pp-table--report tbody th { font-weight: 600; }
.pp-table--report tbody th small { display: block; font-weight: 400; color: #4b5563; font-size: .8rem; }
.pp-table--report td, .pp-table--report th { padding: .75rem .6rem; vertical-align: middle; }
.pp-num { text-align: right !important; font-variant-numeric: tabular-nums; }
.pp-meter { display: flex; align-items: center; gap: .75rem; min-width: 12rem; }
.pp-meter .pp-bar { flex: 1; width: auto; }
.pp-meter b { min-width: 3.25rem; text-align: right; font-variant-numeric: tabular-nums; }
.pp-stack--report { height: 1rem; margin: 0 0 1rem; border-radius: .375rem; }
.pp-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; }
.pp-legend li { display: flex; align-items: center; gap: .45rem; }
.pp-legend__dot { width: .8rem; height: .8rem; border-radius: .2rem; flex: none; }
.pp-note { margin-top: 2rem; font-size: .85rem; }

/* Controles */
.pv-field input, .pv-field select, .pp-filters input, .pp-filters select, .pp-search input { border-color: #9ca3af; }

/* Pestañas: como subvenciones (barra gris clara, mayúsculas, la activa en blanco; datos abiertos a la derecha) */
.pp-tabs ul { background: #f1f3f6; }
.pp-tabs a { color: #475569 !important; font-weight: 500; font-size: 1rem; padding: .8rem 1rem; gap: .75rem; }
.pp-tabs a:hover { text-decoration: none; color: #0f172a !important; font-weight: 700; }
.pp-tabs a[aria-current="page"] { font-weight: 600; color: #334155 !important; }
.pp-tabs svg { width: 1.5rem; height: 1.5rem; }
.pp-tabs__end a { color: var(--brand-2) !important; text-transform: none; font-weight: 500; }
.pp-tabs__end a[aria-current="page"] { font-weight: 700; }
.pp-tabs a:focus-visible { outline: 3px solid var(--brand); outline-offset: -3px; }

/* Proyectos: barra de búsqueda y botones para verlos en tarjetas, cuadros o lista */
.pp-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem 1.5rem; margin: 1.5rem 0 .5rem; }
.pp-toolbar .pp-filters { margin: 0; flex: 1 1 32rem; }
.pp-views { display: inline-flex; border: 1px solid #d1d5db; border-radius: .5rem; overflow: hidden; }
.pp-views a { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .8rem; font-size: .875rem; font-weight: 600; color: #374151 !important; text-decoration: none; background: #fff; }
.pp-views a + a { border-left: 1px solid #d1d5db; }
.pp-views a:hover { background: #f3f4f6; }
.pp-views a[aria-current="true"] { background: var(--brand-2); color: #fff !important; }
.pp-views svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.pp-result { font-size: .875rem; color: #4b5563; margin: .5rem 0 1rem; }
.pp-project > img { aspect-ratio: 16 / 9; height: auto !important; object-fit: cover; }

/* Cuadros: la imagen ocupa el cuadro y el texto va sobre un degradado oscuro (contraste AA) */
.pp-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 1rem; }
.pp-tile { position: relative; aspect-ratio: 1; border-radius: .5rem; overflow: hidden; background: var(--brand-2); color: #fff; display: flex; }
.pp-tile > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pp-tile--img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(0 0 0 / .15) 0%, rgb(0 0 0 / .45) 45%, rgb(0 0 0 / .85) 100%); }
.pp-tile__body { position: relative; z-index: 1; margin-top: auto; padding: 1rem; display: grid; gap: .3rem; width: 100%; }
.pp-tile__pct { font-size: 2rem; font-weight: 700; line-height: 1; }
.pp-tile h2 { font-size: 1rem; line-height: 1.3; margin: 0; }
.pp-tile h2 a { color: #fff !important; text-decoration: none; }
.pp-tile h2 a::after { content: ''; position: absolute; inset: 0; z-index: 2; }
.pp-tile p { margin: 0; font-size: .8rem; opacity: .95; }
.pp-tile:hover h2 a { text-decoration: underline; }
.pp-tile:focus-within { outline: 3px solid var(--brand); outline-offset: 2px; }

/* A qué aporta un proyecto */
.pp-contrib { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.pp-contrib > li { border: 1px solid #e5e7eb; border-radius: .5rem; padding: .85rem 1rem; display: grid; gap: .5rem; }
.pp-contrib > li > a { color: #1f2937 !important; text-decoration: none; }
.pp-contrib > li > a:hover b { text-decoration: underline; }
.pp-contrib .pp-chips { margin: 0; }
.pp-chip abbr { text-decoration: none; }
.pp-top { padding-top: 1.5rem; }
.pp-credit { justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .75rem; }
a.pp-powered { display: inline-flex; align-items: center; gap: .45rem; color: #4b5563 !important; text-decoration: none; font-size: .8rem; padding: .25rem .4rem; border-radius: .375rem; }
a.pp-powered:hover { color: #1f2937 !important; background: #fff; }
a.pp-powered img { height: 1.15rem; width: auto; }

/* Datos abiertos, como las descargas de los visores de oGov */
.pp-dl-all { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin: 0 0 1.5rem; }
.pp-dl__list { list-style: none; padding: 0; margin: 0; border-top: 1px solid #e5e7eb; }
.pp-dl__item { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem 1.5rem; padding: .9rem 0; border-bottom: 1px solid #e5e7eb; }
.pp-dl__item > div { flex: 1 1 22rem; }
.pp-dl__item h3 { margin: 0 0 .2rem; font-size: 1rem; font-weight: 700; color: #002545; }
.pp-dl__item p { margin: 0; font-size: .875rem; }
.pp-dl__formats { display: flex; gap: .5rem; list-style: none; padding: 0; margin: 0; }
.pp-dl__formats a { display: inline-flex; align-items: center; justify-content: center; min-width: 4rem; min-height: 2.75rem; padding: 0 .75rem; border: 2px solid var(--brand-2); border-radius: .375rem; color: var(--brand-2); font-weight: 700; font-size: .8125rem; text-decoration: none; }
.pp-dl__formats a:hover { background: var(--brand-2); color: #fff; }
.pp-dl__formats a:focus-visible { outline: 3px solid #002545; outline-offset: 2px; }

/* Cabecera y pie propios (solo demo, sin iframe): como los portales de oGov (p. ej. Fuenlabrada) */
.pp-header { background: var(--brand-2); border: 0; }
.pp-header__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem 2rem; min-height: 6rem; padding: 1rem 2rem; }
.pp-brand { display: inline-flex; align-items: center; color: #fff !important; font-size: 1.25rem; font-weight: 600; text-decoration: none; }
.pp-brand__logo { max-height: 4.5rem; max-width: 14rem; }
.pp-site a { display: inline-block; color: #fff !important; text-decoration: none; font-size: 1rem; padding: .5rem .75rem; border-radius: 6px; }
.pp-site a[aria-current="page"] { background: #fff; color: var(--brand-2) !important; font-weight: 600; }
.pp-site a:focus-visible, .pp-brand:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.pp-footer { background: #303030; color: #fff; padding: 0; font-size: .875rem; margin-top: 3rem; }
.pp-footer a { color: #fff !important; text-decoration: none; }
.pp-footer a:hover { text-decoration: underline; }
.pp-footer a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.pp-footer__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.75rem 2rem; }
.pp-footer__name { margin: 0; font-weight: 600; font-size: 1rem; }
.pp-footer__name img { max-height: 4.5rem; max-width: 12rem; }
.pp-footer__links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; list-style: none; margin: 0; padding: 0; }
.pp-footer__bottom { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .75rem; border-top: 1px solid #4a4a4a; padding: 1rem 2rem; font-size: .75rem; }
.pp-footer__bottom a { display: inline-flex; align-items: center; gap: .5rem; text-transform: uppercase; letter-spacing: .02em; }
.pp-footer__bottom img { height: 1.1rem; width: auto; }
.pp-footer__bottom > span[aria-hidden] { color: #8a8a8a; }
@media (max-width: 640px) { .pp-header__inner, .pp-footer__top { padding: 1rem; } }
body.pp:not(.pp--bare) { min-height: 100vh; display: flex; flex-direction: column; }
body.pp:not(.pp--bare) > .pp-main { flex: 1 0 auto; }

/* ===== Igual que los visores de oGov (presupuestos de Fuenlabrada): medidas tomadas del visor ===== */
body.pp { background: #F7F8FA; }
.pp-module { gap: 1rem; padding-top: 1rem; }
.pp-module__title { font-size: 1.5rem; line-height: 2rem; font-weight: 500; text-transform: uppercase; color: var(--brand-text); letter-spacing: 0; }
.pp-module__desc, .pp-module__date { font-size: 1rem; line-height: 1.5rem; color: #454545; }
.pp-module__date strong { font-weight: 700; }
.pp-module__date time { font-weight: 500; }
.pp-dashed { border: 0; border-top: 1px dashed #d4d4d4; margin: 1.5rem 0 2rem; }
.pp-tabs ul { background: transparent; border-radius: 0; padding: 0; gap: 0; }
.pp-tabs a { gap: .75rem; padding: .75rem; height: 3rem; font-size: 1rem; font-weight: 500; letter-spacing: 0; color: #485E6C !important; border-radius: .5rem .5rem 0 0; }
.pp-tabs a:hover { font-weight: 700; color: #485E6C !important; text-decoration: none; }
.pp-tabs a[aria-current="page"] { background: #fff; font-weight: 600; color: #485E6C !important; }
.pp-tabs svg { width: 1.5rem; height: 1.5rem; }
.pp-tabs__end a { color: var(--brand-text) !important; text-transform: none; font-weight: 400; }
.pp-tabs__end a:hover { color: var(--brand-text) !important; font-weight: 700; }
.pp-tabs__end a[aria-current="page"] { color: var(--brand-text) !important; font-weight: 600; }
.pp-tabs__ring { display: inline-flex; width: 1.5rem; height: 1.5rem; padding: .2rem; border: 2px solid currentColor; border-radius: 999px; flex: none; }
.pp-tabs__ring svg { width: 100%; height: 100%; stroke-width: 3; }
.pp-panel { border-radius: 0 0 .5rem .5rem; box-shadow: none; padding: 1.25rem 1.25rem 2rem; }
.pp-tabs li:first-child a[aria-current="page"] ~ * { }
@media (max-width: 760px) { .pp-tabs ul { background: transparent; } .pp-tabs a { height: auto; } .pp-panel { border-radius: .5rem; } }

/* Título de cada página: franja gris como «DESCARGAS» en los visores */
.pp-title { margin-bottom: 1.5rem; }
.pp-title h1 { margin: 0 0 .5rem; padding: .5rem .875rem; background: #F9F9F9; border-radius: .25rem; font-size: 1.125rem; line-height: 1.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0; color: #002545; }
.pp-title .pp-lead, .pp-title > p { font-size: .875rem; line-height: 1.5; color: #5c5c5c; margin: 0 0 0 .875rem; max-width: 70rem; }
.pp-crumbs + .pp-title, .pp-crumbs { margin-left: 0; }
/* Apartados: raya del color de la entidad a la izquierda */
.pp-h2 { border-left: 4px solid var(--brand-text); padding-left: .5rem; font-size: 1.25rem; line-height: 1.75rem; font-weight: 700; color: #454545; margin: 0 0 1rem; }

/* Descargas: bloques con botones cuadrados, como en los visores */
.pp-dl__grid { list-style: none; margin: 0 0 .5rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1.75rem 1.5rem; }
.pp-dl__block { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .5rem; }
.pp-dl__block h3 { margin: 0; font-size: 1rem; font-weight: 700; color: #454545; }
.pp-dl__block p { margin: 0; font-size: .8125rem; line-height: 1.45; color: #5c5c5c; flex: 1; }
.pp-dl__rows { display: block; font-weight: 600; color: #454545; margin-top: .2rem; }
.pp-dl__block .pp-dl__formats { display: flex; gap: .5rem; justify-content: center; list-style: none; padding: 0; margin: 0; }
.pp-dl__block .pp-dl__file { display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: .25rem; min-width: 0; min-height: 0; border: 0; background: none; color: #454545 !important; font-weight: 500; font-size: .9375rem; text-decoration: none; }
.pp-dl__block .pp-dl__file:hover { background: none; color: #454545 !important; font-weight: 600; }
.pp-dl__icon { display: flex; align-items: center; justify-content: center; width: 4rem; height: 4rem; border: 1px solid currentColor; border-radius: .375rem; box-shadow: 0 1px 3px rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1); transition: transform .2s, box-shadow .2s; }
.pp-dl__icon svg { width: 80%; height: 80%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.pp-dl__file:hover .pp-dl__icon { transform: translateY(-2px); box-shadow: 0 4px 6px -1px rgb(0 0 0 / .1); }
.pp-dl__file:focus-visible { outline: 3px solid #002545; outline-offset: 2px; border-radius: .375rem; }
.pp-dl__file--csv .pp-dl__icon { color: #047857; background: rgb(5 150 105 / .1); }
.pp-dl__file--xlsx .pp-dl__icon { color: #4d7c0f; background: rgb(101 163 13 / .1); }
.pp-dl__file--json .pp-dl__icon { color: #1d4ed8; background: rgb(29 78 216 / .08); }
.pp-dl .pp-h2 { margin-top: .5rem; }
.pp-dl { border-top: 0; padding-top: 0; }
body.pp > .pp-wrap, body.pp > header, body.pp > footer, body.pp > main { width: 100%; box-sizing: border-box; }
.pp-title .pp-updated { margin: .5rem 0 0 .875rem; font-size: .875rem; color: #454545; }
.pp-title .pp-updated strong { font-weight: 700; }

/* Colores de la entidad (principal, secundario y terciario), siempre con contraste AA:
   --brand: principal (barras, botón); --brand-text: principal oscurecido si hace falta para texto;
   --brand-2: secundario legible (cabecera, títulos); --brand-soft: terciario si es claro (fondos). */
.pp-title h1 { background: var(--brand-soft); color: var(--brand-2); }
.pp-tabs a[aria-current="page"] { box-shadow: none; }
.pp-kpis { background: var(--brand-soft); border-color: transparent; }
.pp-kpi--main .pp-big { color: var(--brand-text); }
.pp-kpi .pp-big { color: var(--brand-2); }
.pp-table thead th { background: var(--brand-soft); color: var(--brand-2); }
.pp-panel a:not(.pp-button):not(.pp-dl__file):not(.pp-tile):not([class*="pp-views"]) { color: var(--brand-2); }
.pp-dl__rows { color: var(--brand-2); }
.pp-credit a { color: var(--brand-2); }

/* Cifras como las tarjetas de los visores de oGov (contratos): número grande centrado, texto y franja al pie */
.pp-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 1rem; background: none; border: 0; padding: 0; margin: 0 0 2rem; }
.pp-kpi, .pp-kpi--main { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0; padding: 0; background: #fff; color: #002545; border: 1px solid #e6e9ef; border-radius: .5rem; overflow: hidden; font-size: 1rem; }
.pp-kpi + .pp-kpi { border-left: 1px solid #e6e9ef; }
.pp-kpi .pp-big, .pp-kpi--main .pp-big { font-size: 2.5rem; line-height: 1.25; font-weight: 700; padding-top: 1rem; color: var(--brand-2); }
.pp-kpi--main .pp-big { color: var(--brand-text); }
.pp-kpi > span:nth-child(2) { padding: 0 .75rem 1.25rem; color: #002545; }
.pp-kpi__foot { margin-top: auto; align-self: stretch; background: #F7F8FA; padding: .5rem 1rem; font-size: .9375rem; color: #002545; }
.pp-kpi__foot b { font-weight: 700; }
@media (max-width: 640px) { .pp-kpis { grid-template-columns: 1fr 1fr; } .pp-kpi .pp-big { font-size: 2rem; } }
