:root { color-scheme:light; --ink:#292526; --muted:#645653; --line:#ead8c8; --cream:#fbf4ec; --paper:#fffdf9; --accent:#ae4112 }
* { box-sizing:border-box }
body.reports-page,body.login-page { margin:0; color:var(--ink); font:16px/1.48 "Segoe UI",sans-serif; min-height:100vh; background:radial-gradient(ellipse at 96% 12%,#f5d5b9 0,transparent 39%),radial-gradient(ellipse at 0 55%,#fae5cf 0,transparent 38%),var(--cream) }
h1,h2,p { margin:0 }
a { color:inherit }
button,input,select { font:inherit }
:focus-visible { outline:3px solid #ba4c1b; outline-offset:4px }
.site-shell { width:min(1320px,calc(100% - 88px)); margin-inline:auto }
.site-top { background:#fffaf4; border-bottom:1px solid var(--line) }
.site-top-inner,.site-account,.site-links,.site-brand { display:flex; align-items:center }
.site-top-inner { min-height:76px; justify-content:space-between; gap:18px }
.site-brand { text-decoration:none; font-size:21px; font-weight:750; letter-spacing:-.035em; white-space:nowrap; gap:5px }
.site-brand strong { color:var(--accent) }
.brand-mark { color:#fff7eb; background:var(--accent); margin-right:8px; border-radius:10px; display:grid; place-items:center; width:36px; height:36px; font-size:23px }
.site-links { gap:24px; flex-wrap:wrap }
.site-links a { text-decoration:none; font-weight:650; font-size:14px; color:#4c3934 }
.site-links a:hover { text-decoration:underline }
.site-links span { margin-left:2px; color:var(--accent) }
.site-account { gap:14px; text-align:right; font-size:13px; line-height:1.3 }
.site-account p { overflow-wrap:anywhere }
#nombreUsuario { font-weight:700 }
.perfil-identidad { overflow-wrap:anywhere }
.perfil-candidatura:has(#perfilUsuario:not([hidden])) { margin-top:4px }
#perfilUsuario { padding:2px 5px; border-radius:4px; color:#87360d; background:#ffdfc8; font-size:10px; font-weight:750 }
#perfilUsuario[hidden] { display:none }
.quiet-button { padding:8px 15px; background:#fffdf9; border:1px solid var(--line); color:var(--ink); border-radius:8px; cursor:pointer }
.quiet-button:hover { background:#f9e4d1 }
.profile-status:not([hidden]) { padding:12px 0 0; color:var(--accent) }
.report-hero,.login-intro { position:relative; overflow:hidden; isolation:isolate; background:linear-gradient(115deg,#a93605,#bc4408 58%,#c94e0a); color:#fff8eb; border-radius:24px }
.report-hero::before,.login-intro::before { content:""; position:absolute; inset:0; z-index:-1; background:repeating-radial-gradient(ellipse at 98% 114%,transparent 0 24px,#ffe0a633 25px 26px,transparent 27px 41px); mask-image:linear-gradient(90deg,transparent 22%,#000 94%) }
.report-hero { margin-top:26px; padding:40px 48px; display:grid; grid-template-columns:minmax(0,1fr) minmax(260px,340px); gap:32px; align-items:center }
.hero-kicker { font-size:11px; letter-spacing:.17em; font-weight:750; color:#ffd4ae }
.hero-intro h1,.login-intro h1 { font:500 clamp(44px,5vw,78px)/.95 Georgia,serif; letter-spacing:-.055em; margin:14px 0 16px }
.hero-description { color:#ffe0c4; font-size:15px }
.advance-card { border-radius:16px; border:1px solid #ffdeab58; background:#ae3b06ed; padding:21px 24px }
#porcentajeAvance { font-size:48px; line-height:1.1; letter-spacing:-.055em; margin:7px 0 16px; font-weight:740 }
.advance-track { height:7px; background:#ffffff30; border-radius:99px; overflow:hidden }
#barraProgreso { height:100%; background:#ffae70; border-radius:inherit; transition:width .3s }
.advance-caption { color:#ffddbf; font-size:14px; margin-top:13px }
.report-main { padding:20px 0 44px }
.report-grid { display:grid; grid-template-columns:minmax(0,1.55fr) minmax(0,1fr); gap:16px; margin-bottom:20px }
.report-panel { padding:21px; min-width:0 }
.report-panel h2 { font:500 25px/1.15 Georgia,serif; color:var(--ink) }
.chart-panel > div:first-child,.chart-panel > div:first-child > div { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px }
.ampliar-grafica { display:inline-flex; align-items:center; gap:10px; padding:4px 4px 4px 13px; border:1px solid #e9ac80; border-radius:999px; background:#fff3e8; color:#903407; font-size:13px; font-weight:750; cursor:pointer }
.ampliar-icono { display:grid; place-items:center; width:25px; height:25px; border-radius:50%; background:#b84006; color:white; font-size:16px; line-height:1 }
.ampliar-grafica:hover { background:#ffe4ce; border-color:#c7612b }
#chartContainer { position:relative; height:340px; margin-top:15px }
.report-main > .bg-white,.tabla-container > .bg-white,.report-main > .bg-gray-50 { border:1px solid var(--line); background:var(--paper); box-shadow:none; border-radius:16px }
input[name="tipoVista"] { accent-color:var(--accent) }
.tabla-container thead { background:#faecdf }
.login-layout { display:grid; grid-template-columns:minmax(0,1.3fr) minmax(0,1fr); align-items:stretch; gap:20px; padding-block:clamp(28px,8vh,88px) }
.login-intro { min-height:400px; display:flex; justify-content:center; align-items:flex-start; flex-direction:column; padding:clamp(26px,5vw,65px) }
.login-intro .hero-description { max-width:34ch }
.login-container { background:var(--paper); border:1px solid var(--line); border-radius:24px; padding:clamp(24px,4vw,54px); color:var(--ink) }
.login-container h2 { font:500 40px/1.12 Georgia,serif; letter-spacing:-.035em }
.login-container p { color:var(--muted); margin-top:9px; font-size:14px }
#loginForm { display:grid; gap:9px; margin-top:25px }
#loginForm label { font-weight:650; font-size:14px }
#loginForm input { width:100%; border:1px solid #d9ba9f; border-radius:9px; background:#fffaf4; padding:11px 13px; color:var(--ink); margin-bottom:5px }
#loginForm button { cursor:pointer; margin-top:8px; padding:12px; color:white; border:0; border-radius:9px; background:var(--accent); font-weight:700 }
#loginForm button:hover { background:#ac3704 }
#error { color:#923309 }
#error:empty { display:none }
@media(max-width:900px) {
 .site-shell { width:calc(100% - 36px) }
 .site-links { gap:12px }
 .report-hero { padding:27px; grid-template-columns:minmax(0,1fr) minmax(210px,.75fr) }
 .report-grid { grid-template-columns:1fr }
}
@media(max-width:620px) {
 .site-top-inner { flex-wrap:wrap; padding-block:10px; gap:8px 12px }
 .site-links { order:3; width:100%; padding:7px 0; border-top:1px solid var(--line) }
 .site-links a { font-size:13px }
 .site-account { max-width:63%; gap:7px }
 .report-hero,.login-layout { grid-template-columns:1fr; gap:18px }
 .report-hero { margin-top:14px; padding:22px }
 .advance-card { padding:16px }
 #porcentajeAvance { font-size:37px }
 .report-main { padding-top:14px }
 .report-panel { padding:15px }
 #chartContainer { height:265px }
 .login-intro { min-height:250px }
}

/* Tablero de resultados */
.report-title { border-bottom:1px solid var(--line); padding:10px 0 17px; margin-bottom:20px }
.report-title h1 { font-size:clamp(35px,4.4vw,63px); margin:5px 0 8px }
.report-title .hero-kicker { color:var(--accent) }
.report-title .hero-description { color:var(--muted) }
.overview-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(290px,360px); align-items:start; gap:16px; margin-bottom:16px }
.overview-sidebar .advance-card { color:#fff8eb; background:repeating-radial-gradient(ellipse at 96% 115%,transparent 0 23px,#ffe0a625 24px 25px,transparent 26px 35px),linear-gradient(118deg,#ac3905,#c44a06); margin-bottom:12px }
.chart-panel { margin-bottom:16px }
#chartContainer { height:300px }
@media(max-width:750px) { .overview-grid { grid-template-columns:1fr } .overview-sidebar { grid-row:1 } }

.login-page .site-brand { white-space:normal; line-height:1.18 }
.login-page .brand-mark { flex:none }
#loginForm button:disabled { opacity:.7; cursor:wait }

/* El formulario sigue desplazándose en ventanas de poca altura. */
body.login-page {
  min-height:100dvh;
  display:flex;
  flex-direction:column;
  scrollbar-width:none;
}
html:has(body.login-page) { scrollbar-width:none }
html:has(body.login-page)::-webkit-scrollbar { display:none }
.login-page .site-top-inner { min-height:clamp(52px,9dvh,76px) }
.login-layout {
  margin-block:auto;
  padding-block:clamp(12px,4dvh,56px);
  gap:clamp(10px,2vw,20px);
}
.login-intro { min-height:0 }
.login-container { padding:clamp(16px,min(4vw,6dvh),54px) }
@media(max-width:620px) {
  .login-layout { width:min(480px,calc(100% - 28px)) }
  .login-intro { padding:clamp(14px,3dvh,24px) }
  .login-intro h1 { font-size:clamp(30px,8vw,44px); margin:7px 0 }
  .login-intro .hero-description { font-size:13px }
  .login-container h2 { font-size:32px }
  #loginForm { margin-top:14px; gap:6px }
}
@media(max-height:620px) {
  .login-intro .hero-description { display:none }
  .login-layout { padding-block:10px }
}

.reports-page .site-brand { white-space:normal; line-height:1.18 }

.territory { background:#fffdfa; border:1px solid #ebcab3; border-radius:22px; overflow:hidden }
.territory-nav { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px 20px; padding:14px clamp(14px,3vw,32px); background:#fff2e6; border-bottom:1px solid #efd7c3 }
.territory-nav h2 { font:600 14px/1.25 "Segoe UI",sans-serif; color:#7f3616 }
.vote-dialog-heading h2 { font:500 clamp(25px,3vw,36px)/1.05 Georgia,serif }
.territory-options { margin:0; padding:4px; min-width:0; border:1px solid #efd3bf; border-radius:12px; background:#fffaf6; display:flex; gap:4px }
.territory-options label { position:relative; cursor:pointer; flex:1 }
.territory-options input { position:absolute; inset-inline-start:8px; opacity:0 }
.territory-options span { display:block; padding:7px clamp(7px,1.6vw,18px); border-radius:8px; font-size:13px; text-align:center; color:#75402c; font-weight:650 }
.territory-options input:checked + span { background:#b84006; color:#fff; box-shadow:0 2px 4px #9c390c28 }
.territory-options input:focus-visible + span { outline:2px solid #a84419; outline-offset:2px }
.territory-detail { padding:clamp(15px,3vw,30px); min-width:0 }
.territory-detail > label { display:block; color:var(--muted); font-weight:700; font-size:12px }
.territory-detail select {
 appearance:none; margin:5px 0 17px; padding:8px 36px 8px 14px; border:1px solid #e6c2a9; border-radius:9px;
 background:#fff9f3 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23933c14' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 11px center;
 max-width:100%; color:var(--ink); cursor:pointer;
}
@media (forced-colors:active) { .territory-detail select { appearance:auto; background-image:none } }
.territory-cards { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,470px),1fr)); gap:15px }
.territory-card { border:1px solid #efd7c6; border-radius:16px; background:#fff8f1; overflow:hidden }
.territory-card header { padding:12px 17px; background:linear-gradient(105deg,#ffe6d2,#fff2e6 65%); border-bottom:1px solid #f0d7c3; display:flex; justify-content:space-between; align-items:center; gap:8px 16px; flex-wrap:wrap }
.territory-card h3 { margin:0; font:600 clamp(19px,2.4vw,26px)/1.1 Georgia,serif; color:#6d2c12; overflow-wrap:anywhere }
.territory-card header p { padding:4px 10px; border-radius:20px; background:#fffaf4; color:#81340f; font-size:12px }
.territory-card header strong { font-size:15px; font-variant-numeric:tabular-nums }
.territory-card dl { display:flex; flex-wrap:wrap; justify-content:center; padding:clamp(9px,2vw,16px); gap:8px; margin:0 }
.territory-card dl div { flex:0 1 max(92px,calc((100% - 32px) / 5)); min-width:0; background:#fff; padding:8px 9px; border:1px solid #f1dfd2; border-radius:10px }
.territory-card dt { display:flex; align-items:center; gap:5px; font-size:11px; font-weight:650; overflow-wrap:anywhere }
.territory-card dt img,.vote-ranking img { width:20px;height:20px;object-fit:contain;flex:none }
.territory-card dd { margin:3px 0 0; color:#42271c; font:700 clamp(17px,2vw,24px)/1.1 Georgia,serif; font-variant-numeric:tabular-nums }
.territory-card footer { padding:0 12px 12px;display:flex;gap:8px;flex-wrap:wrap }
.territory-card footer a { color:var(--accent); background:#fff0e1; padding:5px 9px; border-radius:6px; font-weight:650 }
@media(max-width:520px) {
 .territory-options { width:100% }
 .territory-card dl div { flex-basis:max(80px,calc((100% - 16px) / 3)) }
}
dialog.vote-dialog:not([open]) { display:none }
.vote-dialog::backdrop { background:#6e280fd4 }
.vote-track { height:9px;border-radius:20px;background:#f7e8da;overflow:hidden }
.vote-track > span { display:block;height:100%;background:var(--party-color);border-radius:inherit }

.casillas-label { flex-basis:100%; font-size:12px; color:var(--muted); font-weight:700 }
.casilla-item { display:inline-flex; align-items:center; gap:6px; flex-wrap:wrap; border:1px solid var(--line); padding:4px 7px; border-radius:8px; font-size:13px; font-weight:650 }
.casilla-item a { font-size:12px }

.corte-panel { background:#fffdf8; border:1px solid #edc6ab; border-radius:16px; overflow:hidden }
.corte-heading { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:12px; align-items:center; padding:14px 16px; background:#ffead9 }
.corte-heading p { font-size:12px; color:#813311; font-weight:700 }
#votosTotales { display:block; margin-top:4px; color:#772d0c; font:700 clamp(20px,2vw,27px)/1.14 Georgia,serif }
.corte-time { display:grid; text-align:right; max-width:112px; padding-inline-start:10px; border-inline-start:1px solid #e6bda1 }
#horaCorte { font-variant-numeric:tabular-nums }
#fechaCorte { font-size:10px; color:var(--muted); line-height:1.25 }
.corte-data { margin:0; padding:0 16px }
.corte-data > div { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; align-items:center; padding:9px 0 }
.corte-data > div + div { border-top:1px solid #f0ddce }
.corte-data dt { font-size:12px; font-weight:650 }
.corte-data dd { margin:0; text-align:right; font-variant-numeric:tabular-nums }
.corte-data small { display:block; color:var(--muted); font-size:11px }
.corte-clock { display:inline-flex; align-items:center; gap:8px; font-size:11px; font-weight:680; color:#7d3717; white-space:nowrap }
.corte-clock-value { display:grid; place-items:center; min-width:42px; padding:5px 7px 7px; border-radius:6px; font-variant-numeric:tabular-nums; background:linear-gradient(#b84006,#b84006) left bottom / var(--restante,0%) 2px no-repeat,#ffead9 }

.partidos-mosaico { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,122px),1fr)); gap:8px; margin-top:14px }
.partido-ficha { display:grid; gap:4px; padding:10px; border:1px solid #eed8c7; border-radius:12px; background:#fff4eb; min-width:0 }
.partido-identidad { display:flex; align-items:center; gap:6px; font-size:11px; font-weight:700; line-height:1.2; overflow-wrap:anywhere }
.partido-identidad img { width:25px; height:25px; padding:2px; flex:none; object-fit:contain; background:#fff; border-radius:6px }
.partido-ficha strong { font:700 clamp(22px,2.5vw,31px)/1.1 Georgia,serif; font-variant-numeric:tabular-nums }
.partido-porcentaje { font-size:11px; color:#69534a }
.partido-destacado { grid-column:span 2; background:linear-gradient(120deg,#b13a06,#c2490a); color:#fffaf2; border-color:#b13a06 }
.partido-destacado .partido-porcentaje { color:#fff0df }
.partidos-resumen { display:flex; flex-wrap:wrap; gap:10px 22px; padding:10px 11px; margin:12px 0 0; border-top:1px solid var(--line) }
.partidos-resumen dt { color:var(--muted); font-size:11px }
.partidos-resumen dd { margin:1px 0 0; font-weight:750 }
.site-account { text-align:left }
.perfil-cuenta { display:flex; align-items:center; gap:8px; padding:5px 10px 5px 5px; border:1px solid #ead2c0; border-radius:10px; background:#fff4e8 }
#inicialesUsuario { display:grid; place-items:center; flex:none; width:32px; height:32px; background:#b84006; color:#fff; border-radius:8px; font-weight:750 }
#nombreUsuario { font-size:14px }
@media(max-width:620px) {
 .site-top-inner .site-account { max-width:100% }
 .partidos-mosaico { grid-template-columns:repeat(2,minmax(0,1fr)) }
}

.partido-cifra { display:flex; align-items:baseline; flex-wrap:wrap; gap:4px }
.partido-cifra span { font-size:11px }
.secciones-paginas { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; margin-bottom:14px; font-size:12px }
.secciones-paginas[hidden] { display:none }
.secciones-paginas button { border:1px solid #e6ba9c; border-radius:8px; padding:6px 10px; color:#8d360b; background:#fff2e7; font:inherit; font-weight:700; cursor:pointer }
.secciones-paginas button:disabled { opacity:.48; cursor:default }

.vote-dialog-heading { color:var(--ink); padding:16px clamp(13px,3vw,23px); display:flex; align-items:center; justify-content:space-between; gap:12px; border-bottom:1px solid var(--line) }
.vote-dialog-heading h2 { overflow-wrap:anywhere }
.vote-dialog-summary { margin:12px clamp(13px,3vw,23px); padding:10px 12px; display:flex; flex-wrap:wrap; gap:8px; justify-content:space-between; align-items:center; background:#ffe5d1; border-radius:10px }
.vote-dialog-total { color:#813514; font-weight:750; font-size:15px }
.vote-ranking { list-style:none; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin:0; padding:0 clamp(13px,3vw,23px) 16px }
.vote-ranking li { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:7px 9px; background:#fff; border:1px solid #eed6c3; border-radius:12px; padding:8px 10px; min-width:0 }
.vote-identidad { display:flex; align-items:center; gap:7px; font-size:13px; font-weight:650; min-width:0; overflow-wrap:anywhere }
.vote-identidad img { width:25px; height:25px }
.vote-cifra { display:grid; text-align:right }
.vote-cifra span { color:#795343; font-size:9px; font-weight:700 }
.vote-cifra strong { font:700 22px/1.1 Georgia,serif; font-variant-numeric:tabular-nums }
.vote-proporcion { grid-column:1/-1; display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:6px; color:#725449; font-size:11px; font-variant-numeric:tabular-nums }
@media(max-width:460px) {
 .vote-ranking { grid-template-columns:1fr }
 .vote-dialog-heading h2 { font-size:22px }
}

html:has(dialog.vote-dialog[open]) { overflow:hidden }
dialog.vote-dialog {
 position:fixed; inset:0; width:100%; height:100dvh; max-width:none; max-height:none;
 margin:0; padding:0; border:0; border-radius:0; background:#fffaf4; color:var(--ink);
 overflow:auto; scrollbar-width:none; overscroll-behavior:contain;
}
dialog.vote-dialog::-webkit-scrollbar { display:none }
dialog.vote-dialog[open] { display:grid; grid-template-rows:auto auto minmax(min-content,1fr) }
.vote-dialog-heading { padding:clamp(9px,2.7dvh,25px) clamp(12px,4vw,48px); background:#fff4e8 }
.vote-dialog-heading h2 { font-size:clamp(20px,4vmin,48px) }
.proyeccion-salir { flex:none; padding:8px 12px; border:1px solid #c75e28; border-radius:8px; background:#b84006; color:white; font:inherit; font-weight:700; font-size:clamp(11px,1.8vmin,16px); cursor:pointer }
.proyeccion-salir:hover { background:#9d3306 }
.vote-dialog-summary { margin:clamp(5px,1.8dvh,16px) clamp(12px,4vw,48px); padding:clamp(5px,1.3dvh,14px) 12px }
.vote-dialog-total { font-size:clamp(13px,2.5vmin,24px) }
.vote-ranking { padding:0 clamp(12px,4vw,48px) clamp(8px,2dvh,20px); gap:clamp(4px,1.25vmin,13px); grid-template-columns:repeat(2,minmax(0,1fr)); grid-auto-rows:1fr }
.vote-ranking li { gap:clamp(2px,1vmin,9px); padding:clamp(4px,1.25vmin,14px); align-content:center }
.vote-identidad { font-size:clamp(11px,2.2vmin,24px) }
.vote-identidad img { width:clamp(17px,4vmin,44px); height:clamp(17px,4vmin,44px) }
.vote-cifra strong { font-size:clamp(17px,3.6vmin,42px) }
.vote-cifra span,.vote-proporcion { font-size:clamp(9px,1.5vmin,17px) }
@media (orientation:landscape) and (max-height:520px) {
 .vote-ranking { grid-template-columns:repeat(5,minmax(0,1fr)) }
}
@media (max-width:460px) {
 .vote-dialog-heading { gap:6px }
 .proyeccion-salir { padding:6px 7px }
 .vote-identidad { gap:3px }
 .vote-track { height:5px }
}

.reports-page .site-top { background:linear-gradient(105deg,#fffaf4,#fff2e7); border-bottom-color:#ecc7aa }
.reports-page .site-top-inner { min-height:52px; padding-block:4px; gap:5px 12px }
.reports-page .site-brand { font-size:clamp(14px,1.6vw,19px); gap:6px }
.reports-page .brand-mark { width:26px; height:26px; margin:0; border-radius:7px; font-size:16px; flex:none }
.reports-page .site-account { gap:6px }
.reports-page .perfil-cuenta { gap:6px; padding:2px 6px 2px 2px; background:#fffaf3 }
.reports-page #inicialesUsuario { width:25px; height:25px; border-radius:6px }
.reports-page #nombreUsuario { font-size:12px }
.reports-page .perfil-candidatura:has(#perfilUsuario:not([hidden])) { margin-top:1px }
.reports-page #perfilUsuario { padding:0 4px }
.reports-page #btnLogout { padding:5px 9px; font-size:12px }

.reports-page .site-top { position:sticky; top:0; z-index:30; box-shadow:0 3px 12px #a8491510 }
.page-intro { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:13px 24px }
.explorar-link { display:inline-flex; align-items:center; gap:10px; padding:6px 6px 6px 13px; white-space:nowrap; text-decoration:none; font-size:14px; font-weight:750; border-radius:10px; color:#81300e; border:1px solid #e9b28b; background:#fff1e2 }
.explorar-link:hover { background:#ffe3cb; border-color:#ba511b }
.explorar-flecha { width:28px; height:28px; border-radius:7px; display:grid; place-items:center; color:white; background:#b84006; font-size:17px }
.explorar-regreso { padding:6px 13px 6px 6px }
html:not([data-vista="explorar"]) .solo-exploracion,
html[data-vista="explorar"] .solo-resumen { display:none }
html[data-vista="explorar"] .territory { box-shadow:0 12px 30px #8d3b1010 }
@media (max-width:620px) {
 .page-intro { gap:12px }
 .explorar-link { font-size:13px }
}

.desglose-votos { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:14px 26px; margin-top:16px; border:1px solid #efd0b8; border-radius:14px; padding:14px clamp(12px,3vw,24px); background:linear-gradient(110deg,#fff0e2,#fffaf4) }
.desglose-intro h3 { margin:0 0 8px; font:600 clamp(17px,2.2vw,24px)/1.1 Georgia,serif }
.desglose-barra { height:7px; overflow:hidden; border-radius:20px; background:#efc9af }
.desglose-barra > span { display:block; height:100%; width:0; background:#b84006 }
.desglose-cifras { display:flex; flex-wrap:wrap; gap:12px 20px; margin:0 }
.desglose-cifras > div { min-width:75px }
.desglose-cifras dt { color:#704630; font-size:11px; font-weight:700 }
.desglose-cifras dt span { display:inline-block; width:7px; height:7px; border-radius:2px; background:#b84006 }
.desglose-cifras > div:last-child dt span { background:#efc9af }
.desglose-cifras dd { display:flex; align-items:baseline; gap:6px; margin:2px 0 0; font-variant-numeric:tabular-nums }
.desglose-cifras dd strong { font-size:19px; line-height:1.1 }
.desglose-cifras dd small { color:#704630; font-size:11px }
@media (max-width:540px) { .desglose-votos { grid-template-columns:1fr } }

html:has(dialog.visor-acta[open]) { overflow:hidden }
dialog.visor-acta {
 width:min(clamp(320px,calc(75dvh - 75px),440px),calc(100% - 24px)); max-height:calc(100dvh - 24px); padding:0; margin:auto;
 border:1px solid #e8bb99; border-radius:18px; background:#fffaf5; color:var(--ink); overflow:auto;
}
dialog.visor-acta::backdrop { background:#351b13c9; backdrop-filter:blur(3px) }
.visor-acta-cabecera { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:12px; background:linear-gradient(110deg,#ffe4d0,#fff3e8); border-bottom:1px solid #efd1ba }
.visor-acta-cabecera p { color:#8d360b; font-weight:700; font-size:12px }
.visor-acta-cabecera h2 { margin:3px 0 0; font:600 clamp(16px,2.4vw,21px)/1.12 Georgia,serif; overflow-wrap:anywhere }
.visor-acta-foto { display:grid; place-items:center; min-height:min(130px,22dvh); padding:8px; background:#f6ece2 }
.visor-acta-foto img { max-width:100%; max-height:max(135px,calc(100dvh - 110px)); width:auto; height:auto; object-fit:contain; background:#fff; border-radius:7px; box-shadow:0 2px 14px #62321a24 }
.visor-acta-foto [hidden] { display:none }
.visor-acta-foto p { padding:10px; text-align:center; color:#6e4430; font-size:14px }

.territory-card dd small { color:var(--muted); font:600 10px/1.2 "Segoe UI",sans-serif }
