/* ════════════════════════════════════════════════════════════
   ES SOLE — override de identidad (DEMO)
   Se carga DESPUÉS del <style> propio de cada página, así las
   variables de acá pisan a las originales en todos los templates.
   ════════════════════════════════════════════════════════════ */
/* Deja crecer el header en vez de recortar contenido si la fuente serif
   (Instrument Serif, web font) tarda en cargar y el fallback (Georgia)
   necesita más alto que los 64px fijos que definía cada página */
.nav-container { height: auto !important; min-height: 64px; }

:root {
  /* estructura oscura */
  --navy: #171c2b;
  --primary: #171c2b;
  --primary-dark: #10131e;
  /* amarillo ES HORA */
  --gold: #FFD23F;
  --gold-2: #E2B112;
  --accent: #FFD23F;
  /* fondos claros neutros */
  --paper: #f7f8fc;
  --paper-2: #e9ebf4;
  --navy-soft: #e9f1fe;
  /* template donde-votar mapea --red a navy */
  --red: #171c2b;
  --red-2: #2F7DE1;
  --red-light: #e9f1fe;
  /* verde datos-reales */
  --green: #1f9e4b;
  /* paleta de bloques ES SOLE */
  --essole-rojo: #ED4C3C;
  --essole-azul: #2F7DE1;
  --essole-verde: #3DBE5B;
  --essole-viol: #8B5CF6;
}

/* Pared ES SOLE — marca de agua fija en todas las páginas */
body::before {
  content: '';
  position: fixed;
  inset: -45%;
  z-index: 0;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='96'%3E%3Cg font-family='Arial Black,Arial' font-weight='900' font-size='28'%3E%3Crect x='8' y='26' width='62' height='44' rx='9' fill='%23ED4C3C'/%3E%3Ctext x='39' y='57' text-anchor='middle' fill='white'%3EES%3C/text%3E%3Crect x='78' y='26' width='44' height='44' rx='9' fill='%232F7DE1'/%3E%3Ctext x='100' y='57' text-anchor='middle' fill='white'%3ES%3C/text%3E%3Crect x='130' y='26' width='44' height='44' rx='9' fill='%23FFD23F'/%3E%3Ctext x='152' y='57' text-anchor='middle' fill='%231d1503'%3EO%3C/text%3E%3Crect x='182' y='26' width='44' height='44' rx='9' fill='%233DBE5B'/%3E%3Ctext x='204' y='57' text-anchor='middle' fill='white'%3EL%3C/text%3E%3Crect x='234' y='26' width='44' height='44' rx='9' fill='%238B5CF6'/%3E%3Ctext x='256' y='57' text-anchor='middle' fill='white'%3EE%3C/text%3E%3C/g%3E%3C/svg%3E") repeat;
  background-size: 320px 96px;
  opacity: .06;
  transform: rotate(-7deg);
  animation: essoleWall 60s linear infinite alternate;
}
@keyframes essoleWall {
  from { background-position: 0 0; }
  to   { background-position: 640px 192px; }
}
@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
}

/* Pared ES SOLE DENTRO de los heros oscuros de cada template
   (.page-hero = propuestas/20-medidas/fotos/FAQ · .page-header = elecciones/respaldos
    .dr-hero = datos-reales · .hero + .cta-banner = donde-votar y home) */
.page-hero, .page-header, .dr-hero, .hero, .cta-banner {
  position: relative;
  overflow: hidden;
}
.page-hero::after, .page-header::after, .dr-hero::after, .hero::after, .cta-banner::after {
  content: '';
  position: absolute;
  inset: -45%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='96'%3E%3Cg font-family='Arial Black,Arial' font-weight='900' font-size='28'%3E%3Crect x='8' y='26' width='62' height='44' rx='9' fill='%23ED4C3C'/%3E%3Ctext x='39' y='57' text-anchor='middle' fill='white'%3EES%3C/text%3E%3Crect x='78' y='26' width='44' height='44' rx='9' fill='%232F7DE1'/%3E%3Ctext x='100' y='57' text-anchor='middle' fill='white'%3ES%3C/text%3E%3Crect x='130' y='26' width='44' height='44' rx='9' fill='%23FFD23F'/%3E%3Ctext x='152' y='57' text-anchor='middle' fill='%231d1503'%3EO%3C/text%3E%3Crect x='182' y='26' width='44' height='44' rx='9' fill='%233DBE5B'/%3E%3Ctext x='204' y='57' text-anchor='middle' fill='white'%3EL%3C/text%3E%3Crect x='234' y='26' width='44' height='44' rx='9' fill='%238B5CF6'/%3E%3Ctext x='256' y='57' text-anchor='middle' fill='white'%3EE%3C/text%3E%3C/g%3E%3C/svg%3E") repeat;
  background-size: 320px 96px;
  opacity: .085;
  transform: rotate(-7deg);
  pointer-events: none;
  z-index: 0;
  animation: essoleWall 60s linear infinite alternate;
}
/* el contenido del hero queda por encima de la pared */
.page-hero > *, .page-header > *, .dr-hero > *, .hero > *, .cta-banner > * {
  position: relative;
  z-index: 1;
}

/* Logo de bloques ES SOLE en headers de subpáginas */
.essole-logo { display: inline-flex; gap: 4px; align-items: center; }
.essole-logo .et {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: Inter, system-ui, sans-serif; font-weight: 900; font-size: .72rem;
  line-height: 1; color: #fff; border-radius: 5px; padding: 5px 6px;
  animation: etIn .5s cubic-bezier(.34,1.56,.64,1) both;
}
.essole-logo .et:nth-child(2) { animation-delay: .07s; }
.essole-logo .et:nth-child(3) { animation-delay: .14s; }
.essole-logo .et:nth-child(4) { animation-delay: .21s; }
.essole-logo .et:nth-child(5) { animation-delay: .28s; }
@keyframes etIn { from { opacity: 0; transform: translateY(-10px) scale(.6); } to { opacity: 1; transform: none; } }
.et-r { background: #ED4C3C; } .et-b { background: #2F7DE1; }
.et-y { background: #FFD23F; color: #1d1503; }
.et-g { background: #3DBE5B; } .et-v { background: #8B5CF6; }
.brand > .essole-logo { margin-right: 10px; }
@media (prefers-reduced-motion: reduce) { .essole-logo .et { animation: none; } }

/* Barra de progreso de scroll — los 5 bloques se revelan al bajar */
#essoleProgress {
  position: fixed;
  top: 0; left: 0;
  height: 4px;
  width: 0;
  z-index: 99999;
  background: linear-gradient(90deg, #ED4C3C 0 20%, #2F7DE1 0 40%, #FFD23F 0 60%, #3DBE5B 0 80%, #8B5CF6 0 100%);
  background-size: 100vw 100%;
  background-attachment: fixed;
  pointer-events: none;
}

/* Contador de elecciones centrado en el navbar */
#essoleCount {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  font-family: 'JetBrains Mono', 'IBM Plex Mono', monospace;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .08em;
  color: rgba(255,255,255,.85);
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.16);
  padding: 6px 13px;
  border-radius: 999px;
  white-space: nowrap;
  pointer-events: none;
}
#essoleCount b { color: #FFD23F; font-weight: 700; }
@media (max-width: 980px) { #essoleCount { display: none !important; } }

/* Dial de propuestas — rueda de bloques ES SOLE */
.dial-stage { position: relative; }
.dial-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}
.dial-pivot {
  position: absolute;
  left: 50%;
  top: calc(34vh + 1500px);
  width: 0;
  height: 0;
  --rot: 0deg;
}
.dial-card {
  position: absolute;
  left: 0; top: 0;
  transform-origin: 0 0;
  width: min(86vw, 380px);
  opacity: .38;
  filter: saturate(.6);
  transition: opacity .35s, filter .35s;
  will-change: transform;
}
.dial-card.on { opacity: 1; filter: none; }
.dial-card .proposal-card {
  background: #fff;
  box-shadow: 0 18px 48px rgba(16, 19, 30, .12);
}
.dial-tile {
  position: absolute;
  left: 0; top: 0;
  transform-origin: 0 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: Inter, system-ui, sans-serif;
  font-weight: 900;
  font-size: 1.05rem;
  line-height: 1;
  color: #fff;
  border-radius: 9px;
  padding: 11px 13px;
  opacity: .85;
  will-change: transform;
}
.dial-head {
  position: absolute;
  top: 42px;
  left: 50%;
  transform: translateX(-50%);
  width: min(92vw, 820px);
  text-align: center;
  z-index: 5;
}
.dial-count {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'JetBrains Mono', 'IBM Plex Mono', monospace;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  color: #5a6478;
  background: rgba(16,19,30,.05);
  border: 1px solid rgba(16,19,30,.1);
  padding: 7px 14px;
  border-radius: 999px;
}

/* Muro de Bloques — aportes desde Gs. 5.000 */
.muro-section { background: #10131e; }
.muro-stats { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin: 26px 0 30px; }
.muro-stats > div {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  padding: 14px 24px;
  text-align: center;
  min-width: 150px;
}
.muro-stats b { display: block; font-size: 1.5rem; font-weight: 800; color: #FFD23F; }
.muro-stats span { font-size: .72rem; color: rgba(255,255,255,.65); }
.muro-wall { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 900px; margin: 0 auto; }
.muro-block {
  width: 98px;
  border-radius: 10px;
  padding: 10px 8px 9px;
  color: #fff;
  text-align: center;
  position: relative;
  animation: blockIn .4s both;
}
.muro-block b { display: block; font-size: .78rem; font-weight: 800; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.muro-block span { display: block; font-size: .6rem; opacity: .85; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.muro-block.mine { outline: 3px solid #fff; box-shadow: 0 0 26px rgba(255,210,63,.85); }
.muro-block .vos { position: absolute; top: -9px; right: -7px; background: #fff; color: #10131e; font-style: normal; font-weight: 800; font-size: .55rem; padding: 2px 7px; border-radius: 999px; }
@keyframes blockIn { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
.muro-legal { font-size: .7rem; color: rgba(255,255,255,.45); margin-top: 12px; line-height: 1.6; }
.muro-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: none; align-items: center; justify-content: center;
  background: rgba(10,12,20,.72); padding: 18px;
}
.muro-modal.on { display: flex; }
.muro-box {
  background: #fff; color: #111827;
  border-radius: 18px; max-width: 430px; width: 100%;
  padding: 28px 24px; position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.muro-box h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 6px; }
.muro-box > p { font-size: .85rem; color: #555; margin-bottom: 14px; line-height: 1.5; }
.muro-close { position: absolute; top: 12px; right: 14px; background: none; border: none; font-size: 1rem; cursor: pointer; color: #999; }
.muro-montos { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.muro-monto {
  flex: 1; min-width: 86px;
  border: 2px solid #e2e4ee; border-radius: 10px;
  padding: 11px 6px; font-weight: 800; font-size: .85rem;
  cursor: pointer; background: #fff; font-family: inherit;
}
.muro-monto.sel { border-color: #E2B112; background: #FFF6D9; }
.muro-box input {
  width: 100%; border: 1.5px solid #D1D5DB; border-radius: 8px;
  padding: 11px 12px; font-size: .95rem; margin-bottom: 10px; font-family: inherit;
}
.muro-box input:focus { outline: none; border-color: #2F7DE1; }

/* ════════ FAB WhatsApp (inyectado en todas las páginas) ════════ */
/* bottom:24/right:24 ya están ocupados por .foto-fab (pill preexistente en
   6 de 10 páginas, ~50px alto) — WA y "Te pasamos a buscar" se apilan arriba,
   con o sin foto-fab presente en la página */
.essole-wa {
  position: fixed; right: 24px; bottom: 90px; z-index: 9991;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 22px rgba(37,211,102,.5); transition: transform .2s;
}
.essole-wa:hover { transform: scale(1.08); }
.essole-wa svg { width: 32px; height: 32px; fill: #fff; }
.essole-wa::before { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid rgba(37,211,102,.55); animation: waRing 2.4s ease-out infinite; }
@keyframes waRing { 0%{transform:scale(.85);opacity:1} 100%{transform:scale(1.5);opacity:0} }
@media (max-width: 560px) { .essole-wa { width: 50px; height: 50px; right: 14px; bottom: 96px; } .essole-wa svg { width: 28px; height: 28px; } }
@media (prefers-reduced-motion: reduce) { .essole-wa::before { animation: none; } }

/* ════════ FAB "Te pasamos a buscar" (inyectado en todas las páginas) ════════ */
.essole-fab {
  position: fixed; bottom: 158px; right: 22px; z-index: 9990;
  display: flex; align-items: center; gap: 9px;
  background: #10131e; color: #fff;
  padding: 13px 20px; border-radius: 999px;
  font-family: Inter, system-ui, sans-serif; font-weight: 800; font-size: .9rem;
  text-decoration: none; box-shadow: 0 6px 22px rgba(0,0,0,.4);
  border: 1.5px solid #FFD23F;
  transition: transform .2s, box-shadow .2s;
}
.essole-fab:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 10px 30px rgba(255,210,63,.4); }
.essole-fab .fab-ico { font-size: 1.25rem; animation: fabCar 3s ease-in-out infinite; }
@keyframes fabCar { 0%,82%,100%{transform:translateX(0)} 86%{transform:translateX(4px)} 91%{transform:translateX(-3px)} 96%{transform:translateX(2px)} }
@media (max-width: 560px) { .essole-fab { padding: 11px 15px; font-size: .8rem; bottom: 160px; right: 14px; } .essole-fab .fab-ico { font-size: 1.05rem; } }
@media (prefers-reduced-motion: reduce) { .essole-fab .fab-ico { animation: none; } }

/* ════════ MAPA CIUDADANO ════════ */
.mapa-section { background: #10131e; position: relative; overflow: hidden; }
.mapa-section .container { position: relative; z-index: 1; }
.mapa-head { text-align: center; max-width: 720px; margin: 0 auto 18px; }
.mapa-head .eyebrow { color: #FFD23F; font-family: 'JetBrains Mono', monospace; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
.mapa-head h2 { color: #fff; font-size: clamp(1.6rem, 4.5vw, 2.4rem); font-weight: 800; margin: 10px 0; }
.mapa-head h2 em { font-style: normal; color: #FFD23F; }
.mapa-head p { color: rgba(255,255,255,.7); font-size: .98rem; line-height: 1.65; }
.mapa-live { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 22px 0 30px; }
.mapa-live > div { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: 12px 20px; text-align: center; min-width: 130px; }
.mapa-live b { display: block; font-size: 1.5rem; font-weight: 800; }
.mapa-live small { font-size: .68rem; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .05em; }
.mapa-live .lv-rec b { color: #4D9FFF; } .mapa-live .lv-seg b { color: #FFD23F; } .mapa-live .lv-res b { color: #3DBE5B; }
.mapa-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 22px; align-items: stretch; }
.mapa-map-wrap { height: 480px; border-radius: 16px; overflow: hidden; border: 1px solid rgba(255,255,255,.15); box-shadow: 0 10px 40px rgba(0,0,0,.4); }
#mapaSole { width: 100%; height: 100%; background: #0a121a; }
.mapa-form-box { background: #fff; color: #111827; border-radius: 18px; padding: 26px; box-shadow: 0 10px 40px rgba(0,0,0,.3); }
.mapa-form-box h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 4px; }
.mapa-form-box .sub { font-size: .82rem; color: #555; margin-bottom: 16px; }
.mapa-form-box label { display: block; font-size: .72rem; font-weight: 700; color: #444; text-transform: uppercase; letter-spacing: .04em; margin: 12px 0 5px; }
.mapa-form-box select, .mapa-form-box input, .mapa-form-box textarea {
  width: 100%; border: 1.5px solid #d8dce8; border-radius: 10px; padding: 11px 13px; font-size: .95rem; font-family: inherit; color: #111; outline: none; box-sizing: border-box;
}
.mapa-form-box select:focus, .mapa-form-box input:focus, .mapa-form-box textarea:focus { border-color: #2F7DE1; }
.mapa-form-box textarea { resize: vertical; min-height: 70px; }
.mapa-form-box .mp-readonly { background: #f1f3f8; color: #667; cursor: default; }
.mapa-submit { width: 100%; margin-top: 18px; background: #FFD23F; color: #1a1503; border: none; border-radius: 10px; padding: 13px; font-weight: 800; font-size: .98rem; cursor: pointer; transition: transform .15s; }
.mapa-submit:active { transform: scale(.98); }
.mapa-submit:disabled { opacity: .6; cursor: default; }
.mapa-ok { display: none; margin-top: 12px; padding: 11px 14px; background: #e9f9ee; border: 1px solid #b6e6c4; border-radius: 10px; color: #1f7a3c; font-size: .85rem; }
.mapa-ok.on { display: block; }
.mapa-legal { font-size: .68rem; color: #999; margin-top: 12px; line-height: 1.6; }
/* popups Leaflet con estilo */
.leaflet-popup-content { font-family: Inter, system-ui, sans-serif; font-size: .8rem; }
.rep-pill { display: inline-block; font-weight: 800; font-size: .62rem; padding: 2px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; }
.rep-rec { background: #e3eefe; color: #1b56b0; } .rep-seg { background: #fff3cf; color: #8a6d12; } .rep-res { background: #e3f7e9; color: #1f7a3c; }
@media (max-width: 820px) { .mapa-grid { grid-template-columns: 1fr; } .mapa-map-wrap { height: 340px; } }

/* Cinta DEMO (para subpáginas que no la traen en su HTML) */
.demo-ribbon {
  position: fixed;
  bottom: 14px;
  left: 14px;
  z-index: 9999;
  background: #10131e;
  color: #fff;
  font-family: Inter, system-ui, sans-serif;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .05em;
  padding: 9px 13px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 6px 20px rgba(0,0,0,.35);
  opacity: .93;
}
.demo-ribbon b { color: #FFD23F; }

/* Footer "Páginas principales" — en mobile las 3 columnas colapsan a 1
   (grid auto-fit no tiene espacio) y el scroll se vuelve larguísimo.
   Se achica tipografía/espaciado en vez de armar columnas lado a lado
   (a pedido de Fede: mantener todo apilado, una sola columna). */
@media (max-width: 640px) {
  .site-footer-links { padding: 32px 20px !important; }
  .site-footer-links h3 { font-size: 18px !important; margin-bottom: 16px !important; }
  .site-footer-links > div > div[style*="grid"] { gap: 14px !important; margin-bottom: 18px !important; }
  .site-footer-links h4 { font-size: 11px !important; margin-bottom: 6px !important; }
  .site-footer-links ul { display: flex !important; flex-direction: column !important; gap: 2px !important; }
  .site-footer-links li { margin-top: 0 !important; }
  .site-footer-links li a { font-size: 12.5px !important; line-height: 1.5 !important; }
}
