:root {
  --bg-app: #f8f9fa;
  --bg-surface: #ffffff;
  --border-color: #e5e7eb;
  --text-main: #111827;
  --text-muted: #6b7280;
  --accent-red: #ef4444;
  --accent-red-bg: #fef2f2;
  --accent-green: #10b981;
  --accent-blue: #1d4ed8;
  --accent-blue-bg: #eff6ff;
  --radius: 8px;
  --font-sans: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  
  /* PALETA PREDICCIÓN Y PRECISIÓN */
  --c-nulo: #64748b;
  --c-mariana: #f59e0b;
  --c-leyda: #f97316;
  --c-fricson: #3b82f6;
  --c-madeline: #a855f7;
  --c-miguel: #ef4444;
  --c-oswaldo: #06b6d4;
  --c-xiomara: #ec4899;
  --c-nelson: #14b8a6;
  --c-tema-default: #1e293b;
  --c-tema-otros: #94a3b8;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-app);
  color: var(--text-main);
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.leaflet-control-attribution { 
  display: none !important; 
}

/* OVERLAY DE CARGA Y PANTALLA DE BIENVENIDA */
.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(248, 249, 250, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), visibility 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.loader-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  position: absolute;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.8s ease, transform 0.8s ease, visibility 0.8s ease;
  text-align: center;
}

.loader-step.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.spinner {
  width: 38px;
  height: 38px;
  border: 3px solid rgba(17, 24, 39, 0.1);
  border-top-color: var(--text-main);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loader-text {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--text-main);
  text-transform: uppercase;
}

.welcome-title { 
  font-size: 34px; 
  font-weight: 800; 
  letter-spacing: -0.8px; 
  color: var(--text-main); 
  margin-bottom: 2px;
}

.welcome-subtitle { 
  font-size: 14px; 
  font-weight: 500; 
  letter-spacing: 0.8px;
  color: var(--text-muted); 
}

.welcome-version { 
  font-size: 11px; 
  font-weight: 600; 
  letter-spacing: 1.5px; 
  color: rgba(107, 114, 128, 0.6); 
  text-transform: uppercase; 
  margin-top: 8px; 
}

@keyframes spin { 
  to { transform: rotate(360deg); } 
}

/* BARRA SUPERIOR */
.top-bar {
  height: 50px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  display: grid;
  grid-template-columns: 180px 1fr 180px;
  align-items: center;
  padding: 0 24px;
  z-index: 1000;
}

.brand { 
  display: flex; 
  align-items: center; 
}

.logo { 
  font-weight: 800; 
  letter-spacing: 1.5px; 
  color: var(--text-main); 
  font-size: 15px; 
}

.top-nav-centered {
  position: relative;
  justify-self: center;
  display: flex;
  align-items: center;
  background: #f3f4f6;
  padding: 4px;
  border-radius: 8px;
  gap: 4px;
}

.nav-indicator {
  position: absolute;
  top: 4px;
  left: 4px;
  height: calc(100% - 8px);
  background: var(--bg-surface);
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.nav-btn {
  position: relative;
  z-index: 2;
  background: transparent;
  border: none;
  padding: 6px 16px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s ease;
}

.nav-btn:hover { color: var(--text-main); }
.nav-btn.active { color: var(--text-main); font-weight: 700; }
.top-bar-right { display: flex; justify-content: flex-end; }

/* AISLAMIENTO DE VISTAS */
.view-panel {
  display: none !important;
  flex: 1;
  height: calc(100vh - 50px);
  position: relative;
  overflow: hidden;
}

.view-panel.active {
  display: flex !important;
  flex-direction: column;
}

.top-section-expanded {
  display: flex;
  height: 62%;
  border-bottom: 1px solid var(--border-color);
}

.map-container { flex: 1; position: relative; background: #e5e7eb; }
#map { width: 100%; height: 100%; }

.sidebar-inline {
  width: 320px;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-color);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}

.bottom-dashboard-full {
  height: 38%;
  background: var(--bg-app);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 12px 16px;
  overflow-y: auto;
}

.dash-card {
  background: var(--bg-surface);
  border: 1px solid #d1d5db;
  border-radius: var(--radius);
  padding: 12px 14px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  position: relative;
}

.card-title {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
}

/* HEADER TARJETA CON DESPLEGABLES */
.card-header-with-select {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  gap: 6px;
}

.header-controls-group {
  display: flex;
  align-items: center;
  gap: 4px;
}

.inline-title-header {
  margin-bottom: 0 !important;
}

.dash-mini-dropdown {
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  background: #f9fafb;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  outline: none;
}

.dash-mini-dropdown:hover {
  border-color: #9ca3af;
}

.hidden-control {
  display: none !important;
}

/* ESTILOS DE PUNTO DE COLOR PARA CONCEJALES */
.label-with-dot {
  display: flex;
  align-items: center;
  gap: 6px;
}

.color-dot-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

/* ESTADO SIN REGISTROS */
.no-records-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 120px;
  gap: 8px;
  color: var(--text-muted);
}

.no-records-spinner {
  width: 22px;
  height: 22px;
  border: 2px solid rgba(107, 114, 128, 0.2);
  border-top-color: var(--text-muted);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.no-records-text {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* ESTILOS TASA DE PRECISIÓN */
.precision-bar-container {
  display: flex;
  width: 100%;
  height: 30px;
  background: #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.precision-segment {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10.5px;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 6px;
  transition: width 1s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
}

.precision-segment:hover { opacity: 0.9; }

.seg-agis { background: #111827; }
.seg-comunicaliza { background: #2563eb; }
.seg-ipsos { background: #0284c7; }
.seg-maluk { background: #0d9488; }
.seg-tendeco { background: #d97706; }
.seg-politada { background: #dc2626; }
.seg-cne { background: #475569; }

/* BARRAS Y LISTAS */
.bars-list { display: flex; flex-direction: column; gap: 5px; }

.bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  line-height: 1.2;
}

.bar-row.top-leader .bar-label { font-weight: 800; color: var(--accent-green); }

.bar-label {
  width: 120px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bar-track {
  flex: 1;
  height: 6px;
  background: #f3f4f6;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.bar-fill {
  height: 100%;
  background: var(--text-main);
  width: 0%;
  transition: width 0.6s ease-out;
}

.glow-fast-green {
  background: var(--accent-green);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.8);
}

.glow-slow-green {
  background: var(--accent-green);
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.4);
}

.glow-fast-red {
  background: var(--accent-red);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.8);
}

.glow-slow-red {
  background: var(--accent-red);
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.4);
}

.bar-fill-infinite {
  height: 100%;
  background: #111827;
}

.bar-value-container {
  width: 105px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  font-weight: 700;
  font-size: 11px;
}

.arrow-up { color: var(--accent-green); }
.arrow-down { color: var(--accent-red); }

.vertical-list { display: flex; flex-direction: column; gap: 5px; }

.list-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-main);
  padding: 5px 8px;
  background: #f9fafb;
  border-radius: 4px;
  border-left: 3px solid var(--text-main);
  transition: all 0.3s ease;
}

.list-item.push-highlight {
  background: #ffffff;
  border-left-color: var(--accent-red);
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.12);
}

.panel-title { font-size: 11px; font-weight: 700; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 4px; }
.activity-subtitle { font-size: 10px; color: var(--text-muted); line-height: 1.3; margin-bottom: 6px; }
.live-clock { font-size: 15px; font-weight: 800; letter-spacing: 1px; color: var(--text-main); font-family: monospace; }

.status-indicator { margin: 8px 0; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 4px; font-size: 10px; font-weight: 800; letter-spacing: 0.4px; }
.badge.en-vivo { background: var(--accent-red-bg); color: var(--accent-red); }
.badge.terminado { background: var(--accent-blue-bg); color: var(--accent-blue); border: 1px solid #bfdbfe; }
.badge.cerrado { background: #f3f4f6; color: var(--text-muted); }

.counter-display { margin-top: 8px; }
.counter-number { display: block; font-size: 32px; font-weight: 800; letter-spacing: -1px; line-height: 1; }
.counter-label { font-size: 10px; font-weight: 700; color: var(--text-muted); letter-spacing: 0.8px; margin-top: 4px; display: block; }

.separator { border: 0; border-top: 1px solid var(--border-color); }

.periods-list { display: flex; flex-direction: column; gap: 6px; }

.period-item {
  padding: 6px 8px;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.period-item:hover { border-color: #9ca3af; }
.period-item.active { border-color: var(--text-main); background: #fafafa; }
.period-name { font-size: 11px; font-weight: 700; }
.period-status { font-size: 9.5px; font-weight: 700; color: var(--text-muted); }
.period-status.status-done { color: var(--accent-blue); }

/* ===================================================
   VISTA 2: CONSULTA ESTILO BÚSQUEDA DE GOOGLE + ANIMACIÓN
=================================================== */
.view-consulta-container {
  position: relative;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  overflow-y: auto;
}

.map-consulta-bg-layer {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  filter: grayscale(100%) contrast(85%);
  z-index: 1;
  pointer-events: none;
}

.map-radial-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.80) 0%, rgba(243, 244, 246, 0.96) 85%);
  z-index: 2;
  pointer-events: none;
}

.consulta-content-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 860px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: auto;
}

.consulta-action-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  transition: all 0.4s ease;
}

.consulta-brand-title {
  font-size: 46px;
  font-weight: 800;
  letter-spacing: 3px;
  color: #111827;
  line-height: 1;
}

.consulta-subtitle {
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
  margin-bottom: 4px;
}

.btn-generar-consulta {
  background: #111827;
  color: #ffffff;
  border: none;
  padding: 12px 28px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(17, 24, 39, 0.2);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-generar-consulta:hover {
  background: #1f2937;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(17, 24, 39, 0.25);
}

.btn-generar-consulta:active {
  transform: translateY(0);
}

/* VENTANA DE RESULTADO TIPO GOOGLE */
.google-search-window {
  width: 100%;
  background: #ffffff;
  border: 1px solid #dadce0;
  border-radius: 16px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  max-height: calc(100vh - 185px);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(24px) scale(0.96);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.google-search-window.window-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.google-search-window.hidden-window {
  display: none !important;
}

/* ANIMACIÓN PROGRESIVA DE BLOQUES DE TEXTO */
.anim-block {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.anim-block.block-revealed {
  opacity: 1;
  transform: translateY(0);
}

.search-window-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: #f8f9fa;
  border-bottom: 1px solid #e5e7eb;
  gap: 12px;
}

.search-bar-mock {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid #dfe1e5;
  border-radius: 24px;
  padding: 7px 16px;
  box-shadow: 0 1px 4px rgba(32, 33, 36, 0.08);
}

.search-icon {
  font-size: 13px;
}

.search-query-text {
  font-size: 13px;
  font-weight: 500;
  color: #202124;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-close-window {
  background: transparent;
  border: none;
  font-size: 16px;
  color: #5f6368;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.btn-close-window:hover {
  background: #e5e7eb;
  color: #111827;
}

.search-window-meta {
  padding: 9px 24px;
  font-size: 11px;
  color: #70757a;
  border-bottom: 1px solid #f1f3f4;
  background: #ffffff;
}

.search-result-body {
  padding: 20px 26px 28px 26px;
  overflow-y: auto;
  text-align: left;
  color: #202124;
  scroll-behavior: smooth;
}

.search-result-header {
  margin-bottom: 14px;
}

.result-source-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: #1a73e8;
  background: #e8f0fe;
  padding: 2px 10px;
  border-radius: 12px;
  margin-bottom: 6px;
}

.result-main-heading {
  font-size: 19px;
  font-weight: 700;
  color: #1a0dab;
  line-height: 1.3;
}

.result-text-content {
  font-size: 13.5px;
  line-height: 1.65;
  color: #3c4043;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.result-text-content h3 {
  font-size: 15px;
  font-weight: 700;
  color: #202124;
  margin-top: 6px;
}

.result-text-content ul {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.result-text-content li {
  color: #3c4043;
}

.scenario-item {
  background: #f8f9fa;
  border-left: 3px solid #1a73e8;
  padding: 10px 14px;
  border-radius: 0 8px 8px 0;
}

.scenario-item h4 {
  font-size: 13.5px;
  font-weight: 700;
  color: #202124;
  margin-bottom: 4px;
}

.result-synthesis {
  background: #f1f3f4;
  padding: 12px 16px;
  border-radius: 8px;
  margin-top: 4px;
  color: #202124;
}

/* SECCIÓN DE PRECISIÓN DENTRO DE CONSULTA */
.precision-consulta-section {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px dashed #d1d5db;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.precision-note {
  font-size: 13px;
  color: #374151;
  line-height: 1.6;
}

.precision-embedded-card {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 14px 16px;
}

.precision-embedded-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #4b5563;
  text-align: center;
  margin-bottom: 10px;
}

/* VISTA DE PREDICCIÓN */
.view-prediccion-content { background: var(--bg-app); padding: 30px 40px; overflow-y: auto; }

.prediction-grid-layout {
  display: flex;
  flex-direction: column;
  gap: 26px;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.prediction-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 28px 36px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.prediction-main-title { text-align: center; font-size: 22px; font-weight: 800; letter-spacing: -0.5px; color: var(--text-main); margin-bottom: 28px; }
.prediction-main-title.inline-title { margin-bottom: 0; text-align: left; }

.council-selector-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; gap: 16px; flex-wrap: wrap; }

.council-dropdown {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: #f9fafb;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s ease;
}

.council-dropdown:hover { border-color: #9ca3af; }

.vertical-chart-container {
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  height: 220px;
  padding-bottom: 30px;
  border-bottom: 1px solid #f3f4f6;
}

.v-col-item { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; flex: 1; }
.v-pct-label { font-size: 15px; font-weight: 800; margin-bottom: 8px; color: var(--text-main); }
.v-bar-track { width: 55px; height: 160px; background: #f3f4f6; border-radius: 8px 8px 0 0; display: flex; align-items: flex-end; overflow: hidden; }
.v-bar-fill { width: 100%; border-radius: 8px 8px 0 0; transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.v-name-label { margin-top: 12px; font-size: 12px; font-weight: 700; color: var(--text-main); text-align: center; line-height: 1.25; height: 2.5em; display: flex; align-items: center; justify-content: center; }

/* ORGANIGRAMA MESA DE CONCEJO */
.vertical-council-layout {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.council-top-header { display: flex; justify-content: center; width: 100%; }

.council-vertical-core, .aurora-core-grid, .rurales-core-grid {
  display: grid;
  grid-template-columns: 200px 160px 200px;
  align-items: center;
  gap: 20px;
}

.council-side-column { display: flex; flex-direction: column; gap: 16px; }

.vertical-main-table {
  width: 100%;
  height: 230px;
  background: #e2e8f0;
  border: 2px dashed #94a3b8;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.05);
}

.aurora-table-height, .rurales-table-height { height: 140px; }

.table-vertical-title {
  writing-mode: vertical-lr;
  transform: rotate(180deg);
  font-size: 11px;
  font-weight: 800;
  color: #475569;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-align: center;
}

.seat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  color: #ffffff;
}

.seat-card .seat-role { font-size: 9px; font-weight: 700; letter-spacing: 0.5px; opacity: 0.9; margin-bottom: 2px; text-transform: uppercase; }
.seat-card .seat-party { font-size: 10px; font-weight: 700; opacity: 0.95; margin-bottom: 2px; text-transform: uppercase; }
.seat-card .seat-name { font-size: 12px; font-weight: 800; white-space: nowrap; }

.seat-alcalde { min-width: 240px; }
.seat-urbano { min-width: 180px; }
.seat-rural { min-width: 190px; }

/* LISTA PARROQUIAS */
.parroquias-container { width: 100%; display: flex; flex-direction: column; gap: 12px; }

.parroquia-row-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.parroquia-info { display: flex; flex-direction: column; }
.parroquia-nombre { font-size: 14px; font-weight: 800; color: var(--text-main); }
.parroquia-subtext { font-size: 11px; color: var(--text-muted); }
.parroquia-badge-lista { padding: 6px 14px; border-radius: 6px; font-size: 11px; font-weight: 800; color: #ffffff; box-shadow: 0 2px 4px rgba(0,0,0,0.08); }

/* DESIGN RESPONSIVO */
@media (max-width: 1024px) {
  body { height: auto; overflow-y: auto; }
  .top-bar { grid-template-columns: 1fr; height: auto; padding: 12px 16px; gap: 12px; }
  .brand, .top-bar-right { justify-content: center; }
  .view-panel { height: auto; min-height: calc(100vh - 80px); }
  .top-section-expanded { flex-direction: column; height: auto; }
  .map-container { height: 380px; width: 100%; }
  .sidebar-inline { width: 100%; border-left: none; border-top: 1px solid var(--border-color); }
  .bottom-dashboard-full { grid-template-columns: repeat(2, 1fr); height: auto; gap: 16px; padding: 16px; }
  .council-vertical-core, .aurora-core-grid, .rurales-core-grid { grid-template-columns: 1fr; gap: 16px; }
  .vertical-main-table { height: 50px; }
  .table-vertical-title { writing-mode: horizontal-tb; transform: none; }
}

@media (max-width: 640px) {
  .top-nav-centered { width: 100%; justify-content: space-between; }
  .nav-btn { padding: 6px 10px; font-size: 11px; flex: 1; }
  .bottom-dashboard-full { grid-template-columns: 1fr; }
  .precision-bar-container { flex-direction: column; height: auto; }
  .precision-segment { height: 26px; width: 100% !important; }
  .v-bar-track { width: 32px; }
  .v-pct-label { font-size: 12px; }
  .v-name-label { font-size: 10px; }
  .view-prediccion-content { padding: 16px 12px; }
  .prediction-card { padding: 18px 14px; }
  .consulta-brand-title { font-size: 36px; }
  .google-search-window { max-height: none; }
  .seat-alcalde, .seat-urbano, .seat-rural { min-width: 100%; }
}