/* Portada: reparto oficial del presupuesto, aislado de las gráficas de series. */
.budget-section{scroll-margin-top:100px}
.budget-section .section-heading{align-items:center;gap:20px;flex-wrap:wrap}
.budget-badge{font-size:11px;letter-spacing:1.1px;font-weight:700;color:var(--teal);border:1px solid #b9d3cb;background:#edf4ef;border-radius:4px;padding:10px 13px;white-space:nowrap}
.budget-intro{max-width:900px;font-size:17px;line-height:1.65}
.budget-context{font-size:14px;line-height:1.65;color:var(--muted);border-left:3px solid var(--gold);padding:8px 16px;margin:20px 0 28px;max-width:990px}
.budget-context strong{color:var(--ink)}
.budget-board{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);background:#fff;border:1px solid var(--line);border-radius:10px;overflow:hidden}
.budget-visual{padding:25px 35px 30px;display:flex;align-items:center;flex-direction:column;min-width:0}
.budget-wheel{width:100%;max-width:440px;scroll-margin-top:110px}
.budget-wheel svg{display:block;width:100%;height:auto;overflow:visible}
.budget-wheel path{stroke:#fff;stroke-width:.9;cursor:pointer;transition:filter .15s,stroke-width .15s}
.budget-wheel path:hover,.budget-wheel path:focus-visible{filter:brightness(1.12);stroke:var(--ink);stroke-width:2;outline:none}
.budget-wheel path.is-selected{stroke:var(--ink);stroke-width:3;filter:brightness(1.08)}
.budget-wheel text{fill:var(--ink);pointer-events:none;font-family:Segoe UI,Arial,sans-serif}
.budget-wheel .wheel-overline{font-size:10px;letter-spacing:1.4px;fill:var(--muted);font-weight:700}
.budget-wheel .wheel-total{font-family:Georgia,serif;font-size:43px}
.budget-wheel .wheel-unit{font-size:14px;fill:var(--muted)}
.budget-wheel .wheel-caption{font-size:11px;fill:var(--muted)}
.budget-reset{background:transparent;color:var(--teal);border:1px solid var(--line);border-radius:5px;padding:8px 16px;cursor:pointer;font:inherit;font-size:13px;margin:8px 0 22px}
.budget-reset:hover{background:#edf4ef}
.budget-detail{background:#f1f5f2;border-radius:6px;padding:24px;width:100%;min-height:225px;scroll-margin-top:110px}
.budget-detail .eyebrow{font-size:10px;line-height:1.6;letter-spacing:1px;margin:0 0 8px}
.budget-detail h3{font:25px/1.2 Georgia,serif;margin:0 0 14px}
.budget-detail p{font-size:14px;line-height:1.7;margin:10px 0 0}
.budget-detail .budget-detail-value{font-size:31px;font-weight:600;line-height:1.2}
.budget-detail-value span{font-size:16px;font-weight:400}
.budget-detail-value small{font-size:13px;display:block;color:var(--teal);margin:8px 0 12px}
.budget-detail .budget-euro{font-size:12px;color:var(--muted);border-top:1px solid #d5e0d8;padding-top:12px;margin-top:15px}
.budget-breakdown{border-left:1px solid var(--line);padding:26px 25px 18px;min-width:0}
.budget-list-heading{display:flex;gap:12px;justify-content:space-between;align-items:baseline;flex-wrap:wrap}
.budget-list-heading h3{font:25px Georgia,serif;margin:0}
.budget-list-heading span,.budget-list-help{font-size:12px;color:var(--muted)}
.budget-list-help{line-height:1.6;margin:10px 0 17px}
.budget-list{max-height:660px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#a8beb5 #f1f5f2;padding-right:9px}
.budget-group h4{font-size:10px;letter-spacing:1px;text-transform:uppercase;line-height:1.6;display:flex;align-items:flex-start;gap:8px;margin:18px 0 7px;color:var(--muted)}
.budget-group:first-child h4{margin-top:0}
.budget-group h4>span{width:7px;height:7px;flex:0 0 7px;border-radius:50%;margin-top:5px}
.budget-row{width:100%;display:grid;grid-template-columns:8px 1fr auto;gap:10px;text-align:left;align-items:center;background:transparent;border:0;border-bottom:1px solid #edf0ec;padding:11px 7px;color:var(--ink);cursor:pointer;font-family:inherit;border-radius:4px}
.budget-row:hover,.budget-row.is-selected{background:#eef4f0}
.budget-row.is-selected{box-shadow:inset 3px 0 var(--teal)}
.budget-dot{width:8px;height:8px;border-radius:2px}
.budget-name{font-size:13px;line-height:1.4}
.budget-amount{font-size:15px;font-weight:600;font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap}
.budget-amount small{display:block;font-size:11px;font-weight:400;color:var(--muted);margin-top:3px}
.budget-reading{display:grid;grid-template-columns:1fr 1fr;gap:35px;padding:28px 0 20px}
.budget-reading h3{font-size:16px;margin:0 0 9px}
.budget-reading p{font-size:14px;color:var(--muted);line-height:1.7;margin:0}
.budget-method{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:18px 0;font-size:13px;line-height:1.7;color:var(--muted)}
.budget-method summary{cursor:pointer;font-size:14px;color:var(--ink);font-weight:600}
.budget-method p{max-width:1000px}
.budget-method a,.budget-downloads a{color:var(--teal)}
.budget-downloads{display:flex;flex-wrap:wrap;gap:12px 22px;align-items:center;padding-top:17px;font-size:12px;color:var(--muted)}
.budget-downloads span{margin-right:auto}
@media(max-width:900px){.budget-visual{padding:20px}.budget-breakdown{padding:22px 16px}.budget-name{font-size:12px}.budget-list-heading span{font-size:11px}}
@media(max-width:680px){.budget-board{grid-template-columns:1fr}.budget-breakdown{border-left:0;border-top:1px solid var(--line);padding:24px 18px}.budget-wheel{max-width:360px}.budget-visual{padding:18px}.budget-detail{padding:20px;min-height:0}.budget-reading{grid-template-columns:1fr;gap:24px}.budget-list{max-height:470px}.budget-row{padding:12px 8px}.budget-name{font-size:13px}.budget-intro{font-size:15px}.budget-context{font-size:13px}.budget-section .section-heading{gap:10px}.budget-downloads span{width:100%}.budget-section h2{font-size:32px}}
@media(prefers-reduced-motion:reduce){.budget-wheel path{transition:none}}
.budget-year-control{display:grid;gap:8px;font-size:13px;color:var(--muted);min-width:210px}
.budget-year-control select{font:inherit;padding:12px;border:1px solid var(--line);border-radius:5px;background:#fff;color:var(--ink)}
.budget-year-status{display:flex;align-items:center;gap:20px;flex-wrap:wrap;margin:0 0 18px;font-size:12px;color:var(--muted)}
.budget-actual-overlay{fill:#dc2626;fill-opacity:.10;stroke:#c81923;stroke-width:3;stroke-dasharray:8 5;pointer-events:none}
.budget-overlay-legend{width:100%;font-size:13px;line-height:1.65;margin:15px 0 8px;color:var(--ink)}
.budget-overlay-legend p{margin:5px 0}.budget-overlay-legend small{display:block;color:var(--muted);font-size:12px}
.overlay-key{display:inline-block;width:27px;border-top:3px dashed #c81923;margin-right:8px;vertical-align:middle}
.policy-amounts{font-size:13px}.policy-amounts>div{display:flex;justify-content:space-between;gap:15px;padding:9px 0;border-bottom:1px solid #d5e0d8}.policy-amounts dd{font-weight:600;margin:0;white-space:nowrap}
.budget-year-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:25px}
.budget-year-summary>div{border:1px solid var(--line);background:#fff;padding:20px;border-radius:6px}
.budget-year-summary span{display:block;font-size:13px;color:var(--muted)}
.budget-year-summary strong{font-weight:600}.budget-year-summary>div>strong{display:block;font-size:25px;margin-top:12px}
.budget-year-summary small{display:block;color:var(--muted);margin-top:9px}
.budget-year-summary>p{grid-column:1/-1;font-size:14px;line-height:1.7;margin:0}
.budget-year-source{font-size:13px;line-height:1.7;color:var(--muted)}
.budget-year-source a,.budget-pending a{color:var(--teal)}
.budget-unavailable{padding:35px 18px;text-align:center;border:1px solid var(--line);background:#f5f6f3;border-radius:8px;min-height:250px;display:flex;flex-direction:column;justify-content:center}
.budget-unavailable h3{font:28px Georgia,serif;margin:0 0 12px}.budget-unavailable p,.budget-pending p{font-size:14px;line-height:1.7}
.budget-detail[hidden],.budget-reset[hidden]{display:none}
@media(max-width:900px){.budget-year-summary{grid-template-columns:1fr}.budget-year-summary>div>strong{font-size:27px}}
@media(max-width:680px){.budget-year-control{width:100%}.policy-amounts>div{flex-wrap:wrap;gap:6px}.budget-wheel .wheel-caption{font-size:9px}}
.budget-board[hidden],.budget-components[hidden],.budget-year-summary[hidden],.budget-year-source[hidden]{display:none}
.parts-heading{max-width:850px;margin:1.5rem 0}.parts-heading h3{font-size:1.8rem;margin:.4rem 0}.parts-grid{display:grid;grid-template-columns:1fr 1fr;gap:1.2rem}.part-card{padding:1.6rem;background:white;border:1px solid #dbe2de;border-radius:10px}.part-card h3{font-size:1.6rem;margin:.8rem 0}.part-card p{line-height:1.65}.part-status{font-size:.72rem;font-weight:700;letter-spacing:.08em;color:#14796f}.part-status.provisional{color:#925910}.part-card .policy-amounts{display:block}.part-card .policy-amounts div{padding:.6rem 0}.part-card .policy-amounts dd{font-size:1.4rem;margin:0}.part-source{font-size:.85rem;line-height:1.7}.parts-warning{margin:1.4rem 0;padding:1.2rem 1.6rem;background:#f6f0e3;border-left:4px solid #b69445}.parts-warning h3{margin:0 0 .7rem}.parts-warning li{margin:.6rem 0;line-height:1.65}.parts-table{padding:1.2rem;background:white;border:1px solid #dbe2de;border-radius:8px}.parts-table summary{cursor:pointer;font-weight:700}.parts-table-scroll{overflow:auto}.parts-table table{width:100%;border-collapse:collapse;font-size:.85rem}.parts-table caption{text-align:left;padding:1rem 0}.parts-table th,.parts-table td{padding:.65rem;border-bottom:1px solid #e0e6e2;text-align:left}.parts-table td{white-space:nowrap;text-align:right;font-variant-numeric:tabular-nums}.parts-table tbody th{font-weight:400}.parts-table tfoot{font-weight:700;background:#edf3ef}@media(max-width:800px){.parts-grid{grid-template-columns:1fr}.part-card{padding:1.1rem}.parts-heading h3{font-size:1.5rem}}
.part-card{min-width:0;overflow-wrap:anywhere}.parts-grid{grid-template-columns:repeat(2,minmax(0,1fr))}@media(max-width:800px){.parts-grid{grid-template-columns:minmax(0,1fr)}}
.budget-scope-note{margin:0 0 1.4rem;padding:1.1rem 1.4rem;border:1px solid #dfaaaa;border-left:5px solid #bc3232;border-radius:8px;background:#fff0f0;color:#842525}.budget-scope-note>strong{font-size:.85rem;letter-spacing:.06em}.budget-scope-note p{margin:.6rem 0 0;line-height:1.65}.budget-scope-note[hidden]{display:none}
.budget-tooltip{position:fixed;z-index:1000;pointer-events:none;width:300px;max-width:calc(100vw - 20px);box-sizing:border-box;padding:15px 17px;background:#fff;border:1px solid #dce5e0;border-top:4px solid var(--slice-color,#14786e);border-radius:10px;box-shadow:0 10px 35px #18323c26;color:var(--ink);font:13px/1.5 Segoe UI,Arial,sans-serif}.budget-tooltip[hidden]{display:none}.budget-tooltip-context{display:block;color:var(--muted);font-size:10px;letter-spacing:.08em;text-transform:uppercase}.budget-tooltip>strong{display:block;font-size:16px;line-height:1.35;margin:6px 0 12px;overflow-wrap:anywhere}.budget-tooltip>div{display:flex;justify-content:space-between;gap:12px;margin:5px 0}.budget-tooltip b{font-variant-numeric:tabular-nums;white-space:nowrap}.budget-tooltip>small{display:block;border-top:1px solid #edf0ec;padding-top:8px;margin-top:9px;color:var(--muted)}
