/* Centro de resultados. Todo el formato electoral vive aquí. */
.v3-election{width:min(100%,1320px);margin:0 auto;padding:32px clamp(18px,4vw,54px) 90px;color:#162438;box-sizing:border-box}
.v3-election *,.v3-territorial-results *{box-sizing:border-box}
.election-topline{display:flex;justify-content:space-between;gap:12px;align-items:center;color:#728094;font-size:11px;letter-spacing:.13em;font-weight:800;margin-bottom:18px}
.election-topline i{display:inline-block;width:4px;height:4px;margin:0 7px 3px;background:#9ca9b5;border-radius:50%}
.election-vote-toggle{display:block;margin:0 0 16px auto;padding:8px 13px;border:1px solid #d7dfe7;border-radius:9px;background:#fff;color:#3c5270;font-family:inherit;font-size:12px;font-weight:700;cursor:pointer}
.election-vote-toggle:hover{border-color:#345de1;color:#345de1}
.hide-exact-votes .exact-votes{display:none!important}
.v3-election [hidden]{display:none!important}
.v3-election h1,.v3-election h2,.v3-territorial-results h2{font-family:inherit;letter-spacing:-.035em;color:#162438}
.v3-election h1{margin:12px 0 14px;font-size:clamp(36px,5vw,64px);line-height:1.02}
.v3-election h2,.v3-territorial-results h2{margin:5px 0 0;font-size:clamp(21px,2vw,27px);line-height:1.2}
.v3-kicker{display:block;color:#718199;font-size:10px;font-weight:800;letter-spacing:.15em;text-transform:uppercase}
.v3-section-head{display:flex;justify-content:space-between;align-items:end;gap:15px;margin:24px 0 15px}
.v3-section-head>span{color:#738399;font-size:12px;text-align:right}
.v3-primary{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:48px;padding:12px 18px;border:0;border-radius:10px;background:#345de1;color:#fff;font-family:inherit;font-size:14px;font-weight:700;cursor:pointer}
.v3-primary:hover{background:#2648bc}.v3-primary:focus-visible,.scrutiny-control:focus-visible,.results-tab:focus-visible,.district-scrutiny summary:focus-visible{outline:3px solid #9eb0ff;outline-offset:3px}
.v3-day-intro{display:grid;grid-template-columns:1.3fr .8fr;overflow:hidden;min-height:350px;border-radius:18px;background:#162438;color:#fff}
.v3-day-intro>div:first-child{padding:clamp(26px,4vw,52px)}
.v3-day-intro .v3-kicker{color:#aebbd0}.v3-day-intro h1{color:#fff}.v3-day-intro p{max-width:480px;margin:0 0 25px;color:#c9d3df;line-height:1.6;font-size:15px}
.v3-ballot-art{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:hidden;min-height:240px;background:#dce6ff;color:#526b99}
.v3-ballot-art:before,.v3-ballot-art:after{content:"";position:absolute;border:1px solid #b9cbee;border-radius:50%;width:340px;height:340px}.v3-ballot-art:after{width:450px;height:450px}
.v3-ballot-art>span,.v3-ballot-art>small{position:absolute;z-index:2;left:24px;font-size:9px;letter-spacing:.13em;font-weight:800}.v3-ballot-art>span{top:22px}.v3-ballot-art>small{bottom:21px}
.v3-ballot{position:relative;z-index:1;width:105px;height:134px;padding:28px 18px;background:#fff;box-shadow:0 12px 34px #48649533;transform:rotate(-8deg);border-radius:4px}
.v3-ballot i{display:block;width:45px;height:5px;margin:0 0 11px;border-radius:4px;background:#e0e7f2}.v3-ballot b{position:absolute;right:12px;bottom:13px;color:#ed6a5a;font-size:35px}
.v3-ballot-slot{position:relative;z-index:2;width:180px;height:9px;margin-top:-9px;border-radius:9px;background:#506792}
.v3-alert,.v3-explainer{font-size:13px;color:#63748a;line-height:1.6}.v3-alert{padding:12px 15px;border-left:3px solid #ed6a5a;background:#fff5f3;border-radius:6px}
.v3-election-facts{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.v3-election-facts>div{min-width:0;padding:18px;border:1px solid #e1e7ed;border-radius:12px;background:#fff}.v3-election-facts span,.v3-election-facts strong{display:block}.v3-election-facts span{font-size:12px;color:#77869a}.v3-election-facts strong{margin-top:8px;font-size:24px;letter-spacing:-.03em}
.v3-live-dashboard{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(245px,.7fr);overflow:hidden;border-radius:16px;background:#162438;color:#fff}.v3-live-main{padding:clamp(24px,3vw,38px)}.v3-live-main h1{max-width:700px;color:#fff;font-size:clamp(28px,3.5vw,46px)}.v3-live-main p{color:#c1ccda;line-height:1.6;font-size:14px}
.v3-live-label{display:inline-flex;align-items:center;gap:8px;color:#c1cde0;font-size:10px;font-weight:800;letter-spacing:.14em}.v3-live-label i{width:8px;height:8px;border-radius:50%;background:#ed6a5a;box-shadow:0 0 0 4px #ed6a5a26}
.scrutiny-progress{margin:30px 0 18px}.scrutiny-progress>div{display:flex;justify-content:space-between;align-items:end;margin-bottom:10px}.scrutiny-progress span{font-size:10px;font-weight:800;letter-spacing:.12em;color:#bac8db}.scrutiny-progress strong{font-size:32px;color:#fff}.scrutiny-track{display:block;height:7px;border-radius:10px;background:#ffffff2b;overflow:hidden}.scrutiny-track i{display:block;width:var(--progress);height:100%;background:#8ca5ff;border-radius:10px}
.scrutiny-controls{display:flex;flex-wrap:wrap;gap:9px}.scrutiny-control{min-height:42px;padding:10px 13px;border:1px solid #ffffff4a;border-radius:9px;background:#ffffff12;color:#fff;font-family:inherit;font-size:12px;font-weight:700;cursor:pointer}.scrutiny-control.active,.scrutiny-control:hover{background:#fff;color:#162438}
.v3-live-side{padding:26px;border-left:1px solid #ffffff1c;background:#ffffff09}.v3-live-side .v3-kicker{color:#aebbd0}.scrutiny-leader{display:flex;flex-direction:column;gap:6px;margin:18px 0;padding:16px;border-left:4px solid var(--party);border-radius:4px 10px 10px 4px;background:#ffffff12}.scrutiny-leader span{font-size:10px;color:#b4c2d4;letter-spacing:.08em}.scrutiny-leader b{font-size:15px}.scrutiny-leader strong{font-size:32px}.scrutiny-status{display:grid;gap:12px}.scrutiny-status>span{display:flex;justify-content:space-between;gap:8px;color:#b4c2d4;font-size:12px}.scrutiny-status b{color:#fff;text-align:right}
.v3-results-panel,.v3-territorial-results{margin-top:18px;padding:clamp(16px,2.6vw,26px);border:1px solid #dde5ec;border-radius:16px;background:#fff}.v3-results-panel>.v3-section-head,.v3-territorial-results>.v3-section-head{margin-top:0}
.v3-seat-strip{display:flex;gap:2px;width:100%;height:12px;margin:20px 0;border-radius:8px;overflow:hidden;background:#ecf0f5}.v3-seat-strip i{display:block;min-width:2px}
.v3-table-wrap{width:100%;overflow-x:auto}.v3-results-table{min-width:0;width:100%;border-collapse:collapse;font-size:13px;text-align:left;color:#26394f}.v3-results-table th{padding:11px 9px;color:#8492a3;font-size:10px;font-weight:800;letter-spacing:.07em;text-transform:uppercase;white-space:nowrap}.v3-results-table td{padding:12px 9px;border-top:1px solid #edf0f4;vertical-align:middle}.v3-results-table td:not(:first-child),.v3-results-table th:not(:first-child){text-align:right;white-space:nowrap}.v3-results-table tr.player-result-row{background:#f4f7ff}.poll-party,.territorial-ballot-name{display:flex;align-items:center;gap:10px;min-width:0}.v3-ballot-name{display:flex;flex-direction:column;gap:2px;min-width:0}.v3-ballot-name>b{font-size:13px;color:#162438}.v3-ballot-name>span,.v3-ballot-name>small{color:#7a899b;font-size:11px}.result-vote{display:inline-flex;flex-direction:column;align-items:end;gap:5px;font-weight:700}.result-vote i{display:block;width:clamp(28px,5vw,65px);height:3px;background:linear-gradient(to right,var(--party) var(--vote),#ebeff4 var(--vote));border-radius:3px}.result-delta{color:#78889c;font-size:12px}.v3-table-legend{color:#8090a2;font-size:11px;line-height:1.5}
.v3-district-heading{margin-top:34px}.district-result-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:10px}.district-scrutiny{min-width:0;border:1px solid #dfe6ed;border-radius:12px;background:#fff;overflow:hidden}.district-scrutiny summary{list-style:none;cursor:pointer}.district-scrutiny summary::-webkit-details-marker{display:none}.district-scrutiny-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px}.district-scrutiny-heading>span{display:flex;flex-direction:column;gap:5px;min-width:0}.district-scrutiny-heading small{font-size:10px;color:#8a98aa}.district-scrutiny-heading strong{font-size:15px;overflow-wrap:anywhere}.district-scrutiny-heading>b{color:#526986;font-size:11px;white-space:nowrap}.district-scrutiny .v3-table-wrap{padding:0 10px 10px}.district-scrutiny .v3-results-table{font-size:11px}.district-scrutiny .v3-results-table th{font-size:9px}.district-scrutiny .v3-results-table td{padding:10px 6px}.district-scrutiny .v3-ballot-name>span{display:none}
.v3-final-hero{display:grid;grid-template-columns:1fr minmax(250px,.55fr);gap:24px;align-items:stretch;padding:clamp(24px,4vw,42px);border-radius:16px;background:#162438;color:#fff}.v3-final-hero h1{color:#fff}.v3-final-hero>div:first-child>p{color:#c6d1df;line-height:1.6;font-size:14px}.v3-winner{padding:20px;border:1px solid #ffffff24;border-top:4px solid var(--party);border-radius:11px;background:#ffffff0d}.v3-winner>span{color:#abbacf;font-size:10px;font-weight:800;letter-spacing:.1em}.v3-winner>div{display:flex;align-items:center;gap:10px;margin:18px 0}.v3-winner>div strong{font-size:16px}.v3-winner>b{font-size:38px}.v3-winner>b small{font-size:12px;font-weight:500}.v3-winner p{margin:8px 0 0;color:#bdc9d7;font-size:12px}
.v3-next{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:12px 0 30px;padding:18px 22px;border:1px solid #d5dff3;border-radius:12px;background:#eaf0ff}.v3-next strong{display:block;margin-top:5px;font-size:17px}.v3-next p{margin:5px 0 0;color:#667995;font-size:12px}
.results-tabs{display:flex;gap:6px;border-bottom:1px solid #d4dde6}.results-tab{padding:13px 16px;border:0;border-bottom:3px solid transparent;background:transparent;color:#73849a;font-family:inherit;font-size:13px;font-weight:700;cursor:pointer}.results-tab.active{color:#345de1;border-bottom-color:#345de1}.results-tab span{padding:2px 6px;border-radius:8px;background:#e3e8f0;color:#60718b;font-size:10px}
.v3-parliament{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,.65fr);align-items:center;gap:25px;margin-top:12px;padding:24px;border:1px solid #dfe6ed;border-radius:16px;background:#fff}.v3-parliament h2{font-size:23px}.v3-parliament p{color:#74849a;font-size:13px;line-height:1.6}.v3-parliament .parliament-panel summary{font-weight:800;font-size:13px}.v3-parliament .parliament-panel svg{display:block;width:100%;max-height:220px}.v3-parliament .parliament-panel>small{color:#8190a0;font-size:10px}.v3-parliament .parliament-legend{display:flex;gap:10px;flex-wrap:wrap}.v3-parliament .parliament-legend>span{display:inline-flex;align-items:center;gap:4px;font-size:10px}
.v3-coalitions,.territorial-coalition-distribution{margin-top:12px;padding:14px 16px;border:1px solid #dfe6ed;border-radius:10px;background:#fff;color:#65778e;font-size:12px;line-height:1.6}.v3-coalitions summary,.territorial-coalition-distribution summary{cursor:pointer;font-weight:800;color:#314764}.v3-coalitions summary span{margin-left:6px;color:#345de1}
.territorial-result-highlight{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:16px;border-left:4px solid var(--party);border-radius:8px;background:#f4f7fb}.territorial-result-highlight>div{display:flex;flex-direction:column;gap:6px}.territorial-result-highlight>div:first-child>span{font-size:10px;letter-spacing:.09em;font-weight:800;color:#74849a}.territorial-result-highlight strong{display:flex;align-items:center;gap:8px;font-size:15px}.territorial-result-highlight>div:last-child{text-align:right}.territorial-result-highlight b{font-size:26px}.territorial-result-highlight small{color:#78889b;font-size:11px}.territorial-results-table{table-layout:fixed}.territorial-results-table .territorial-name-column{width:48%}.territorial-ballot-name>span{overflow-wrap:anywhere}.territorial-ballot-name small{display:block;color:#8290a1;font-size:10px}.territorial-results-table .result-comparison{display:block;margin-top:4px;color:#718299;font-size:10px}.territorial-comparison-legend{color:#718299;font-size:11px;line-height:1.6}
@media(max-width:800px){.v3-election{padding:22px 18px 85px}.v3-day-intro{grid-template-columns:1fr}.v3-ballot-art{min-height:210px}.v3-election-facts{grid-template-columns:repeat(2,1fr)}.v3-live-dashboard,.v3-final-hero{grid-template-columns:1fr}.v3-live-side{border-top:1px solid #ffffff1c;border-left:0}.v3-live-side .scrutiny-leader{display:grid;grid-template-columns:1fr auto;align-items:center}.v3-live-side .scrutiny-leader span{grid-column:1/-1}.v3-live-side .scrutiny-leader strong{grid-column:2;grid-row:2}.district-result-grid{grid-template-columns:1fr}.v3-parliament{grid-template-columns:1fr}.v3-next{align-items:stretch;flex-direction:column}.v3-next .v3-primary{width:100%}}
@media(max-width:560px){.v3-election h1{font-size:37px}.v3-election-facts>div{padding:14px}.v3-election-facts strong{font-size:20px}.v3-section-head{align-items:start;flex-direction:column}.v3-section-head>span{text-align:left}.v3-results-panel{padding:16px 12px}.v3-results-table:not(.territorial-results-table){display:block}.v3-results-table:not(.territorial-results-table) thead{display:none}.v3-results-table:not(.territorial-results-table) tbody{display:block}.v3-results-table:not(.territorial-results-table) tr{display:grid;grid-template-columns:minmax(0,1fr) 65px 50px;gap:4px 6px;padding:12px 2px;border-top:1px solid #edf0f4}.v3-results-table:not(.territorial-results-table) td{padding:0;border:0;text-align:right}.v3-results-table:not(.territorial-results-table) td:first-child{grid-column:1;grid-row:1/3;text-align:left;align-self:center}.v3-results-table:not(.territorial-results-table) td[data-label="Voto"]{grid-column:2;grid-row:1}.v3-results-table:not(.territorial-results-table) td[data-label="Escaños"]{grid-column:3;grid-row:1}.v3-results-table:not(.territorial-results-table) td[data-label="Escaños"]:after{content:' esc.';font-size:10px;color:#8290a1}.v3-results-table:not(.territorial-results-table) td[data-label="Δ voto"]{grid-column:2;grid-row:2}.v3-results-table:not(.territorial-results-table) td[data-label="Δ escaños"]{grid-column:3;grid-row:2}.v3-results-table:not(.territorial-results-table) td[data-label="Votos"]{grid-column:1/-1;grid-row:3;color:#7d8ca0;font-size:11px}.v3-results-table:not(.territorial-results-table) td[data-label="Votos"]:before{content:'Votos: '}.v3-ballot-name>span{display:none}.result-vote i{width:45px}.results-tab{flex:1;padding:12px 5px}.territorial-results-table{font-size:12px}.territorial-results-table td,.territorial-results-table th{padding:10px 4px}.territorial-results-table .territorial-name-column{width:48%}.territorial-ballot-name{gap:4px}.territorial-ballot-name .party-logo{width:23px;height:23px}}

/* El nombre completo de la papeleta sigue visible en móviles. */
@media(max-width:600px){.v3-ballot-name>span{display:block;white-space:normal;overflow-wrap:anywhere}}
/* Mantiene las columnas próximas y los emblemas nítidos en el recuento. */
.v3-election .scrutiny-table,.v3-election .final-election-table{table-layout:auto;width:auto;min-width:min(100%,700px)}
.v3-election :is(.scrutiny-table,.final-election-table) :is(th,td){padding-left:7px;padding-right:7px}
.v3-election :is(.scrutiny-table,.final-election-table) th:first-child{min-width:190px}
.v3-election .poll-party .party-logo{width:36px;height:36px}
.v3-election .party-logo img{image-rendering:auto;padding:1px}
@media(max-width:600px){.v3-election :is(.scrutiny-table,.final-election-table){min-width:0;width:100%}.v3-election :is(.scrutiny-table,.final-election-table) th:first-child{min-width:0}.v3-election .poll-party .party-logo{width:30px;height:30px}}
