/* ==========================================================================
   SISTEMA DE ESCRUTINIO ELECTORAL - SISTEMA DE DISEÑO ONPE PERÚ MODERNO
   Identidad Oficial: Minimalista, Institucional, Intuitivo y Elegante
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;700&display=swap');

:root {
    --font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-secondary: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Identidad Cromática Institucional ONPE Perú */
    --onpe-navy-dark: #071527;
    --onpe-navy: #0c2340;
    --onpe-navy-light: #16365f;
    --onpe-blue: #0066cc;
    --onpe-blue-hover: #0052a3;
    --onpe-blue-subtle: #edf5fd;
    --onpe-blue-border: #bfdbfe;
    
    /* Rojo Patrio / Acento Electoral Peruano */
    --onpe-red: #c8102e;
    --onpe-red-hover: #a50d25;
    --onpe-red-subtle: #fdf2f4;
    --onpe-red-border: #fecdd3;

    /* Acentos de Estado y Partidos */
    --accent-emerald: #059669;
    --accent-emerald-subtle: #ecfdf5;
    --accent-amber: #d97706;
    --accent-amber-subtle: #fffbeb;
    --accent-purple: #7c3aed;
    --accent-purple-subtle: #f5f3ff;
    --accent-cyan: #0284c7;
    
    /* Superficies y Neutros Minimalistas */
    --body-bg: #f4f6fa;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --border-dark: #cbd5e1;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-subtle: #94a3b8;
    
    /* Sombras Prolijas y Refinadas */
    --shadow-xs: 0 1px 2px 0 rgba(12, 35, 64, 0.04);
    --shadow-sm: 0 2px 6px -1px rgba(12, 35, 64, 0.06), 0 1px 3px -1px rgba(12, 35, 64, 0.04);
    --shadow-md: 0 6px 16px -2px rgba(12, 35, 64, 0.08), 0 2px 6px -1px rgba(12, 35, 64, 0.03);
    --shadow-lg: 0 14px 28px -4px rgba(12, 35, 64, 0.1), 0 4px 12px -2px rgba(12, 35, 64, 0.04);
    --shadow-xl: 0 22px 38px -6px rgba(12, 35, 64, 0.12);

    /* Radios Geométricos Consistentes */
    --radius-xs: 6px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-pill: 9999px;
}

/* ==========================================================================
   RESET & TIPOGRAFÍA BASE
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    background-color: #f1f5f9;
    background-image: 
        radial-gradient(at 0% 0%, rgba(37, 99, 235, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(124, 58, 237, 0.07) 0px, transparent 50%),
        radial-gradient(at 50% 100%, rgba(6, 182, 212, 0.06) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 15px;
    line-height: 1.55;
    letter-spacing: -0.012em;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Números tabulares alineados como en los sistemas oficiales de la ONPE */
.tabular-nums, .kpi-value, .voto-cantidad, .porcentaje-num {
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

/* ==========================================================================
   BARRA SUPERIOR OFICIAL - ESTADO PERUANO (Azul Marino Profundo)
   ========================================================================== */
.onpe-top-bar {
    background: #061833 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.38rem 0;
    font-size: 0.74rem;
    color: #94a3b8;
    position: relative;
    z-index: 1031;
}

.onpe-top-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #c8102e 0%, #c8102e 33%, #ffffff 33%, #ffffff 66%, #c8102e 66%, #c8102e 100%);
    opacity: 0.9;
}

.onpe-flag-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 700;
    color: #f8fafc;
    letter-spacing: 0.04em;
    font-size: 0.74rem;
}

.top-bar-subtext {
    color: #93c5fd;
    font-size: 0.72rem;
    letter-spacing: 0.02em;
}

.top-bar-badge {
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.25rem 0.55rem;
    border-radius: var(--radius-pill);
}

.peru-flag-mini {
    width: 16px;
    height: 11px;
    border-radius: 2px;
    background: linear-gradient(90deg, #c8102e 33.3%, #ffffff 33.3%, #ffffff 66.6%, #c8102e 66.6%);
    border: 0.5px solid rgba(0, 0, 0, 0.15);
    display: inline-block;
    flex-shrink: 0;
}

.onpe-clock-box {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #cbd5e1;
    font-weight: 500;
    font-size: 0.73rem;
}

/* ==========================================================================
   NAVBAR ENCABEZADO AZUL - SISTEMA DE ESCRUTINIO
   ========================================================================== */
.modern-navbar {
    background: linear-gradient(135deg, #091b36 0%, #0d3f82 45%, #1d4ed8 100%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    position: sticky;
    top: 0;
    z-index: 1030;
    padding: 0.65rem 0;
    box-shadow: 0 6px 25px -3px rgba(13, 63, 130, 0.45);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modern-brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    transition: transform 0.25s ease;
}

.modern-brand:hover {
    transform: scale(1.02);
}

/* Isotipo interactivo con brillo y rotación en hover */
.brand-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.25rem;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modern-brand:hover .brand-icon-box {
    transform: scale(1.1) rotate(-6deg);
    box-shadow: 0 8px 22px rgba(6, 182, 212, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.brand-title-group {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-title-group .brand-acronym {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

.brand-title-group .brand-acronym .brand-badge-pill {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.15));
    color: #ffffff;
    font-size: 0.64rem;
    padding: 0.15rem 0.55rem;
    border-radius: var(--radius-pill);
    font-weight: 800;
    letter-spacing: 0.05em;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.brand-title-group .brand-sub {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: #93c5fd;
}

/* ==========================================================================
   BOTONES DEL ENCABEZADO CON TRANSICIONES DINÁMICAS (HOVER SPRING LIFT)
   ========================================================================== */
.nav-btn {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.86rem;
    padding: 0.5rem 1.15rem !important;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    cursor: pointer;
    text-decoration: none;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

/* Efecto Shimmer de Luz en Hover */
.nav-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -75%;
    width: 50%;
    height: 200%;
    background: linear-gradient(
        60deg,
        rgba(255, 255, 255, 0) 20%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0) 80%
    );
    transform: rotate(25deg);
    transition: all 0.65s ease;
    opacity: 0;
    pointer-events: none;
}

.nav-btn:hover::after {
    left: 130%;
    opacity: 1;
}

.nav-btn i {
    font-size: 0.96rem;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.25s ease;
}

/* Transición General al pasar el Mouse por encima */
.nav-btn:hover {
    transform: translateY(-3px) scale(1.04);
    background: rgba(255, 255, 255, 0.24);
    border-color: rgba(255, 255, 255, 0.6);
    color: #ffffff !important;
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.35);
}

.nav-btn:hover i {
    transform: scale(1.25) rotate(-6deg);
}

.nav-btn:active {
    transform: translateY(-1px) scale(0.98);
}

/* Botón Activo / Sección Actual */
.nav-btn.active {
    background: #ffffff !important;
    color: #0c4a6e !important;
    border-color: #ffffff;
    font-weight: 700;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25), 0 0 16px rgba(255, 255, 255, 0.5);
}

.nav-btn.active i {
    color: #0284c7 !important;
    transform: scale(1.1);
}

/* 1. Botón Resultados (Zafiro / Cyan) */
.nav-btn-resultados:hover {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.5), rgba(6, 182, 212, 0.5)) !important;
    border-color: #38bdf8 !important;
    box-shadow: 0 10px 25px -2px rgba(6, 182, 212, 0.45), 0 0 16px rgba(37, 99, 235, 0.4) !important;
}
.nav-btn-resultados:hover i {
    color: #7dd3fc !important;
}

/* 2. Botón 'Nueva Acta' (Esmeralda Neón Vibrante CTA) */
.nav-btn-upload {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.4), rgba(5, 150, 105, 0.5)) !important;
    border-color: rgba(52, 211, 153, 0.7) !important;
    color: #a7f3d0 !important;
}

.nav-btn-upload:hover {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    border-color: #6ee7b7 !important;
    color: #ffffff !important;
    box-shadow: 0 10px 25px -2px rgba(16, 185, 129, 0.55), 0 0 18px rgba(52, 211, 153, 0.5) !important;
}

.nav-btn-upload:hover i {
    color: #ffffff !important;
}

/* 3. Botón 'Historial & Auditoría' (Cielo / Azul) */
.nav-btn-history:hover {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.45), rgba(59, 130, 246, 0.45)) !important;
    border-color: #60a5fa !important;
    box-shadow: 0 10px 25px -2px rgba(14, 165, 233, 0.45), 0 0 16px rgba(56, 189, 248, 0.4) !important;
}
.nav-btn-history:hover i {
    color: #93c5fd !important;
}

/* 4. Botón 'Administración' (Violeta / Fucsia) */
.nav-btn-admin:hover {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.5), rgba(217, 70, 239, 0.5)) !important;
    border-color: #c084fc !important;
    box-shadow: 0 10px 25px -2px rgba(168, 85, 247, 0.5), 0 0 16px rgba(192, 132, 252, 0.4) !important;
}
.nav-btn-admin:hover i {
    color: #f0abfc !important;
}

/* 5. Botón En Vivo con Pulso Neón */
.nav-btn-live {
    background: rgba(16, 185, 129, 0.25) !important;
    border: 1.5px solid rgba(52, 211, 153, 0.65) !important;
    color: #6ee7b7 !important;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 0.4rem 1rem !important;
    border-radius: var(--radius-pill) !important;
}

.nav-btn-live:hover {
    transform: translateY(-2px) scale(1.06);
    background: rgba(16, 185, 129, 0.4) !important;
    border-color: #34d399 !important;
    color: #ffffff !important;
    box-shadow: 0 8px 22px rgba(52, 211, 153, 0.55), 0 0 16px rgba(16, 185, 129, 0.5) !important;
}

/* 6. Botón de Usuario */
.nav-user-btn {
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.nav-user-btn:hover {
    background: rgba(255, 255, 255, 0.22) !important;
    border-color: rgba(255, 255, 255, 0.7) !important;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.35), 0 0 14px rgba(255, 255, 255, 0.4) !important;
}

/* 7. Botón Login */
.nav-btn-login {
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    border-color: #60a5fa !important;
}

.nav-btn-login:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af) !important;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.55) !important;
}

/* 8. Botón Administrador (Parte Superior Derecha - Dorado/Ámbar Premium) */
.nav-btn-admin-login {
    background: rgba(245, 158, 11, 0.18) !important;
    border: 1.5px solid rgba(251, 191, 36, 0.65) !important;
    color: #fef08a !important;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.2);
}

.nav-btn-admin-login:hover {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    border-color: #fef08a !important;
    color: #ffffff !important;
    box-shadow: 0 10px 25px -2px rgba(245, 158, 11, 0.55), 0 0 16px rgba(251, 191, 36, 0.45) !important;
    transform: translateY(-3px) scale(1.04);
}

.nav-btn-admin-login i {
    color: #fef08a;
    transition: transform 0.25s ease;
}

.nav-btn-admin-login:hover i {
    color: #ffffff;
    transform: scale(1.2) rotate(-8deg);
}

/* Dropdown Activo de Administrador en el Header */
.nav-btn-admin-active {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(217, 119, 6, 0.35)) !important;
    border: 1.5px solid rgba(251, 191, 36, 0.7) !important;
    color: #ffffff !important;
    font-weight: 700;
    border-radius: 12px;
}

.nav-btn-admin-active:hover {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    border-color: #fde68a !important;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.45) !important;
}

/* 9. Botón Iniciar Sesión Digitador (Parte Superior Derecha - Azul/Cian Brillante) */
.nav-btn-digitador-login {
    background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%) !important;
    border: 1.5px solid rgba(56, 189, 248, 0.8) !important;
    color: #ffffff !important;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(2, 132, 199, 0.4);
}

.nav-btn-digitador-login:hover {
    background: linear-gradient(135deg, #0369a1 0%, #1d4ed8 100%) !important;
    border-color: #bae6fd !important;
    color: #ffffff !important;
    box-shadow: 0 10px 25px -2px rgba(37, 99, 235, 0.6), 0 0 18px rgba(56, 189, 248, 0.5) !important;
    transform: translateY(-3px) scale(1.04);
}

.nav-btn-digitador-login i {
    color: #bae6fd;
    transition: transform 0.25s ease;
}

.nav-btn-digitador-login:hover i {
    color: #ffffff;
    transform: scale(1.2) translateX(2px);
}


.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulseAnimation 2s infinite;
}

@keyframes pulseAnimation {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* Botón de Perfil de Usuario en Navbar */
.nav-user-btn {
    border-radius: var(--radius-pill) !important;
    padding: 0.35rem 0.95rem !important;
    border: 1.5px solid rgba(255, 255, 255, 0.28) !important;
}

.nav-user-btn:hover {
    transform: translateY(-2px) scale(1.03);
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25) !important;
}

/* Botón Login con Transición */
.nav-btn-login {
    background: #ffffff !important;
    color: #0d47a1 !important;
    font-weight: 700;
    border-radius: var(--radius-pill) !important;
    padding: 0.45rem 1.25rem !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.nav-btn-login:hover {
    background: #f0fdf4 !important;
    color: #059669 !important;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 22px rgba(16, 185, 129, 0.4);
}

/* Dropdowns modernos */
.modern-dropdown-menu {
    background: #ffffff !important;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: 0 16px 36px -8px rgba(12, 35, 64, 0.18), 0 4px 12px -2px rgba(12, 35, 64, 0.08);
    padding: 0.45rem;
    min-width: 225px;
    animation: fadeInDropdown 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInDropdown {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.modern-dropdown-item {
    padding: 0.55rem 0.8rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.85rem;
    color: #1d1d1f;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    transition: all 0.15s ease;
}

.modern-dropdown-item:hover {
    background: rgba(0, 102, 204, 0.08);
    color: #0066cc;
}

/* ==========================================================================
   CARDS & CONTENEDORES INSTITUCIONALES
   ========================================================================== */
.card-modern {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xs);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.card-modern:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--border-dark);
}

.card-header-clean {
    background: transparent;
    border-bottom: 1px solid var(--border-color);
    padding: 1.1rem 1.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ==========================================================================
   SELECTOR DE CÉDULA & FILTRO TERRITORIAL EN CASCADA
   Estilo Dashboard Moderno con Colores Vivos y Llamativos
   ========================================================================== */
.onpe-filter-container {
    background: #ffffff;
    border: 1.5px solid rgba(226, 232, 240, 0.85);
    border-radius: var(--radius-xl);
    box-shadow: 0 10px 30px -5px rgba(12, 35, 64, 0.07), 0 2px 8px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

/* Cuadrícula de Botones/Tarjetas de Cédula con Colores Vivos */
.dashboard-cedula-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.85rem;
    padding: 1rem;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1.5px solid var(--border-color);
}

@media (max-width: 1200px) {
    .dashboard-cedula-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .dashboard-cedula-grid {
        grid-template-columns: 1fr;
    }
}

.dashboard-cedula-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.95rem 1.15rem;
    background: #ffffff;
    border: 1.5px solid var(--border-color);
    border-radius: 14px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    cursor: pointer;
}

.dashboard-cedula-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 14px 28px -4px rgba(12, 35, 64, 0.12);
    border-color: #94a3b8;
}

/* Squircle de Icono */
.cedula-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.dashboard-cedula-card:hover .cedula-card-icon {
    transform: scale(1.14) rotate(-6deg);
}

.cedula-card-content {
    flex-grow: 1;
    min-width: 0;
}

.cedula-card-label {
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.2;
    color: #1e293b;
    white-space: nowrap;
}

.cedula-card-code {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.12rem 0.45rem;
    border-radius: var(--radius-pill);
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
    letter-spacing: 0.05em;
}

.cedula-card-sub {
    font-size: 0.72rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 0.15rem;
}

.cedula-active-pill {
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.16rem 0.55rem;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.pulse-dot-sm {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: currentColor;
    animation: pulseAnimation 2s infinite;
}

/* Esquemas de Colores Vivos y Llamativos por Tipo de Cédula */

/* 1. Presidente Regional: Zafiro Eléctrico */
.cedula-card-blue .cedula-card-icon {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #2563eb;
    border: 1px solid #bfdbfe;
}
.cedula-card-blue:hover {
    border-color: #3b82f6;
    box-shadow: 0 12px 28px -4px rgba(37, 99, 235, 0.25);
}
.cedula-card-blue.active {
    background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
    border-color: #2563eb;
    box-shadow: 0 10px 25px -3px rgba(37, 99, 235, 0.35), 0 0 0 1.5px #2563eb;
}
.cedula-card-blue.active .cedula-card-icon {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.45);
}
.cedula-card-blue .cedula-active-pill {
    background: #2563eb;
    color: #ffffff;
}

/* 2. Consejero Regional: Esmeralda Radiante */
.cedula-card-emerald .cedula-card-icon {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    color: #059669;
    border: 1px solid #a7f3d0;
}
.cedula-card-emerald:hover {
    border-color: #10b981;
    box-shadow: 0 12px 28px -4px rgba(16, 185, 129, 0.25);
}
.cedula-card-emerald.active {
    background: linear-gradient(135deg, #ffffff 0%, #ecfdf5 100%);
    border-color: #059669;
    box-shadow: 0 10px 25px -3px rgba(16, 185, 129, 0.35), 0 0 0 1.5px #059669;
}
.cedula-card-emerald.active .cedula-card-icon {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.45);
}
.cedula-card-emerald .cedula-active-pill {
    background: #059669;
    color: #ffffff;
}

/* 3. Alcalde Provincial: Ámbar Dorado */
.cedula-card-amber .cedula-card-icon {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    color: #d97706;
    border: 1px solid #fde68a;
}
.cedula-card-amber:hover {
    border-color: #f59e0b;
    box-shadow: 0 12px 28px -4px rgba(245, 158, 11, 0.25);
}
.cedula-card-amber.active {
    background: linear-gradient(135deg, #ffffff 0%, #fffbeb 100%);
    border-color: #d97706;
    box-shadow: 0 10px 25px -3px rgba(245, 158, 11, 0.35), 0 0 0 1.5px #d97706;
}
.cedula-card-amber.active .cedula-card-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.45);
}
.cedula-card-amber .cedula-active-pill {
    background: #d97706;
    color: #ffffff;
}

/* 4. Alcalde Distrital: Rojo Rubí / Coral */
.cedula-card-rose .cedula-card-icon {
    background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
    color: #dc2626;
    border: 1px solid #fecdd3;
}
.cedula-card-rose:hover {
    border-color: #ef4444;
    box-shadow: 0 12px 28px -4px rgba(239, 68, 68, 0.25);
}
.cedula-card-rose.active {
    background: linear-gradient(135deg, #ffffff 0%, #fff1f2 100%);
    border-color: #dc2626;
    box-shadow: 0 10px 25px -3px rgba(239, 68, 68, 0.35), 0 0 0 1.5px #dc2626;
}
.cedula-card-rose.active .cedula-card-icon {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.45);
}
.cedula-card-rose .cedula-active-pill {
    background: #dc2626;
    color: #ffffff;
}

/* Cascada Territorial ONPE (Departamento > Provincia > Distrito) */
.onpe-geo-cascade {
    padding: 1.25rem 1.5rem;
    background: #ffffff;
}

.geo-ribbon {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.geo-field-group {
    flex: 1 1 220px;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.geo-field-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.geo-badge-fixed {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    padding: 0.65rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    color: var(--onpe-navy);
    font-size: 0.92rem;
}

.geo-select {
    font-family: var(--font-primary);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-primary);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.65rem 1rem;
    background-color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-xs);
}

.geo-select:focus {
    border-color: var(--onpe-blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.12);
    outline: none;
}

.geo-active-crumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px dashed var(--border-color);
    font-size: 0.82rem;
}

/* ==========================================================================
   FICHA TÉCNICA DE CÓMPUTO & KPIS OFICIALES ONPE
   ========================================================================== */
.onpe-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.onpe-kpi-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.4rem;
    box-shadow: var(--shadow-xs);
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
}

.onpe-kpi-card:hover {
    border-color: var(--border-dark);
    box-shadow: var(--shadow-sm);
}

.onpe-kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--kpi-bar-color, var(--onpe-blue));
}

.onpe-kpi-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.onpe-kpi-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-secondary);
}

.onpe-kpi-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    background: var(--kpi-icon-bg, var(--onpe-blue-subtle));
    color: var(--kpi-icon-color, var(--onpe-blue));
}

.onpe-kpi-value {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--onpe-navy);
    line-height: 1.1;
    margin-bottom: 0.4rem;
}

.onpe-kpi-subtext {
    font-size: 0.78rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* Barra de progreso de Actas Contabilizadas estilo ONPE */
.onpe-progress-container {
    margin-top: 0.6rem;
}

.onpe-progress-track {
    height: 7px;
    background: #e2e8f0;
    border-radius: var(--radius-pill);
    overflow: hidden;
}

.onpe-progress-fill {
    height: 100%;
    border-radius: var(--radius-pill);
    background: linear-gradient(90deg, var(--onpe-blue) 0%, #38bdf8 100%);
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   TARJETA DE FÓRMULA GANADORA / PRIMER PUESTO (Estilo Proclamación ONPE)
   ========================================================================== */
.onpe-leader-card {
    background: linear-gradient(135deg, #fffbeb 0%, #ffffff 60%);
    border: 1.5px solid #fcd34d;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.08);
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.onpe-leader-card::after {
    content: '';
    position: absolute;
    right: -20px;
    bottom: -20px;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.onpe-leader-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #fef3c7;
    border: 1px solid #fde68a;
    color: #b45309;
    font-weight: 700;
    font-size: 0.74rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-pill);
    margin-bottom: 0.5rem;
}

.onpe-leader-avatar {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
    flex-shrink: 0;
}

/* ==========================================================================
   TABLA OFICIAL DE RESULTADOS ELECTORALES (Estilo Cédula ONPE)
   ========================================================================== */
/* ==========================================================================
   TABLA OFICIAL DE RESULTADOS ELECTORALES (Estilo Dashboard Moderno)
   ========================================================================== */
.onpe-table-card {
    background: #ffffff;
    border: 1.5px solid rgba(226, 232, 240, 0.85);
    border-radius: var(--radius-xl);
    box-shadow: 0 10px 30px -5px rgba(12, 35, 64, 0.06), 0 2px 8px rgba(0, 0, 0, 0.02);
    overflow: hidden;
    margin-bottom: 1.75rem;
}

.table-onpe-official {
    width: 100%;
    margin-bottom: 0;
    vertical-align: middle;
    border-collapse: separate;
    border-spacing: 0;
}

.table-onpe-official thead th {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    color: var(--text-secondary);
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 1.1rem 1.4rem;
    border-bottom: 1.5px solid var(--border-color);
    border-top: none;
    white-space: nowrap;
}

.table-onpe-official tbody tr {
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    border-bottom: 1px solid var(--border-color);
}

.table-onpe-official tbody tr:hover {
    background-color: #f8fafc;
    transform: translateX(4px);
    box-shadow: inset 4px 0 0 #2563eb;
}

.table-onpe-official tbody tr.row-leader {
    background: linear-gradient(90deg, rgba(254, 252, 232, 0.6) 0%, rgba(255, 255, 255, 0.9) 100%);
}

.table-onpe-official tbody tr.row-leader:hover {
    background: linear-gradient(90deg, rgba(254, 249, 195, 0.8) 0%, rgba(255, 255, 255, 1) 100%);
    box-shadow: inset 4px 0 0 #f59e0b;
}

.table-onpe-official tbody tr.row-special {
    background-color: #fafbfc;
    color: var(--text-secondary);
}

.table-onpe-official tbody td {
    padding: 1.15rem 1.4rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

/* Logo o Símbolo del Partido Político */
.party-symbol-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.25s ease;
}

.table-onpe-official tbody tr:hover .party-symbol-box {
    transform: scale(1.1) rotate(-5deg);
}

.party-name-bold {
    font-weight: 800;
    font-size: 0.98rem;
    letter-spacing: -0.015em;
    color: #0f172a;
    line-height: 1.2;
}

.candidate-name-sub {
    font-size: 0.84rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: 0.15rem;
}

/* Micro-barras de porcentaje vibrantes */
.onpe-bar-track {
    height: 9px;
    background: #e2e8f0;
    border-radius: var(--radius-pill);
    overflow: hidden;
    width: 100%;
    margin-top: 0.35rem;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
}

.onpe-bar-fill {
    height: 100%;
    border-radius: var(--radius-pill);
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   RESUMEN OFICIAL AL PIE DE LA TABLA (Acta de Liquidación y Auditoría)
   ========================================================================== */
.onpe-summary-box {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-top: 2px solid var(--border-color);
    padding: 1.5rem 1.75rem;
}

.summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 1px dashed var(--border-color);
    font-size: 0.9rem;
}

.summary-row:last-child {
    border-bottom: none;
    padding-top: 0.85rem;
}

.summary-row.total-row {
    font-size: 1.1rem;
    font-weight: 800;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(6, 182, 212, 0.08));
    border: 1.5px solid rgba(37, 99, 235, 0.25);
    border-radius: 12px;
    padding: 0.85rem 1.15rem;
    margin-top: 0.75rem;
    color: #1e3a8a;
}

/* ==========================================================================
   BOTONES INSTITUCIONALES ONPE
   ========================================================================== */
.btn {
    font-family: var(--font-primary);
    font-weight: 600;
    letter-spacing: -0.01em;
    border-radius: var(--radius-sm);
    transition: all 0.18s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.6rem 1.15rem;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--onpe-blue);
    border: 1px solid var(--onpe-blue);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.25);
}

.btn-primary:hover, .btn-primary:focus {
    background: var(--onpe-blue-hover);
    border-color: var(--onpe-blue-hover);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.35);
}

.btn-danger {
    background: var(--onpe-red);
    border: 1px solid var(--onpe-red);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(200, 16, 46, 0.25);
}

.btn-danger:hover, .btn-danger:focus {
    background: var(--onpe-red-hover);
    border-color: var(--onpe-red-hover);
    color: #ffffff;
}

.btn-outline-primary {
    border: 1.5px solid var(--border-color);
    color: var(--text-secondary);
    background: #ffffff;
}

.btn-outline-primary:hover {
    background: var(--onpe-blue-subtle);
    border-color: var(--onpe-blue-border);
    color: var(--onpe-blue);
}

.btn-pill {
    border-radius: var(--radius-pill) !important;
}

/* Badges Suaves (Pills) */
.badge-pill {
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.74rem;
    letter-spacing: 0.03em;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.badge-soft-primary {
    background: var(--onpe-blue-subtle);
    color: var(--onpe-blue);
    border: 1px solid var(--onpe-blue-border);
}

.badge-soft-danger {
    background: var(--onpe-red-subtle);
    color: var(--onpe-red);
    border: 1px solid var(--onpe-red-border);
}

.badge-soft-success {
    background: var(--accent-emerald-subtle);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.badge-soft-warning {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid rgba(245, 158, 11, 0.35);
}

.badge-soft-purple {
    background: #f5f3ff;
    color: #7c3aed;
    border: 1px solid rgba(124, 58, 237, 0.3);
}

.badge-soft-info {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid rgba(2, 132, 199, 0.3);
}

/* ==========================================================================
   BOTONES Y CHIPS DE FILTRADO (Módulo Candidatos & Cédulas)
   ========================================================================== */
.filter-chip-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.95rem;
    font-size: 0.84rem;
    font-weight: 600;
    color: #475569;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 9999px;
    text-decoration: none !important;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    white-space: nowrap;
    user-select: none;
}

.filter-chip i {
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}

.filter-chip:hover {
    color: #0f172a;
    border-color: #cbd5e1;
    background: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.07);
}

.filter-chip:hover i {
    transform: scale(1.1);
}

.filter-chip .filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.15rem 0.45rem;
    border-radius: 9999px;
    background: #f1f5f9;
    color: #64748b;
    line-height: 1;
    min-width: 22px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

/* Estado activo general */
.filter-chip.active {
    color: #ffffff !important;
    background: linear-gradient(135deg, #1e293b, #0f172a) !important;
    border-color: #0f172a !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25) !important;
}

.filter-chip.active .filter-count {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    border-color: transparent;
}

/* Colores temáticos por tipo cuando está activo */
.filter-chip[data-type="Presidente Regional"].active {
    background: linear-gradient(135deg, #0284c7, #0369a1) !important;
    border-color: #0284c7 !important;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35) !important;
}

.filter-chip[data-type="Consejero Regional"].active {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    border-color: #059669 !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35) !important;
}

.filter-chip[data-type="Alcalde Provincial"].active {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    border-color: #d97706 !important;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35) !important;
}

.filter-chip[data-type="Alcalde Distrital"].active {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed) !important;
    border-color: #7c3aed !important;
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.35) !important;
}

/* Stat Cards del Módulo Candidatos */
.cand-stat-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 0.95rem 1.15rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.cand-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
    border-color: #cbd5e1;
}

.cand-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* ==========================================================================
   COMPONENTES ESTILO APPLE (Glassmorphism & Cupertino Precision)
   ========================================================================== */
.btn-apple-glass {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 0.5px solid rgba(0, 0, 0, 0.12) !important;
    color: #1d1d1f !important;
    border-radius: var(--radius-pill) !important;
    font-weight: 600;
    font-size: 0.84rem;
    padding: 0.45rem 1.15rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-apple-glass:hover {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.18) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
    color: #000000 !important;
}

.btn-apple-primary {
    background: #0071e3 !important;
    border: none !important;
    color: #ffffff !important;
    border-radius: var(--radius-pill) !important;
    font-weight: 600;
    font-size: 0.84rem;
    padding: 0.45rem 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 113, 227, 0.3);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-apple-primary:hover {
    background: #0077ed !important;
    box-shadow: 0 4px 14px rgba(0, 113, 227, 0.4);
    transform: translateY(-1px);
    color: #ffffff !important;
}

.btn-apple-danger {
    background: #e30022 !important;
    border: none !important;
    color: #ffffff !important;
    border-radius: var(--radius-pill) !important;
    font-weight: 600;
    font-size: 0.84rem;
    padding: 0.45rem 1.25rem;
    box-shadow: 0 2px 8px rgba(227, 0, 34, 0.28);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-apple-danger:hover {
    background: #c8001e !important;
    box-shadow: 0 4px 14px rgba(227, 0, 34, 0.38);
    transform: translateY(-1px);
    color: #ffffff !important;
}

.btn-apple-ghost-danger {
    background: rgba(255, 59, 48, 0.08) !important;
    border: 0.5px solid rgba(255, 59, 48, 0.25) !important;
    color: #ff3b30 !important;
    border-radius: var(--radius-pill) !important;
    font-weight: 600;
    font-size: 0.84rem;
    padding: 0.45rem 0.95rem;
    transition: all 0.2s ease;
}

.btn-apple-ghost-danger:hover {
    background: rgba(255, 59, 48, 0.16) !important;
    color: #d70015 !important;
}

.apple-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(227, 0, 34, 0.06);
    border: 0.5px solid rgba(227, 0, 34, 0.18);
    color: #c8102e;
    border-radius: var(--radius-pill);
    padding: 0.25rem 0.85rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.apple-hero-title {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.035em;
    color: #1d1d1f;
    line-height: 1.15;
}

/* ==========================================================================
   FOOTER INSTITUCIONAL
   ========================================================================== */
.onpe-footer {
    margin-top: auto;
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    padding: 1.75rem 0;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.onpe-footer-brand {
    font-weight: 700;
    color: var(--onpe-navy);
}

/* ==========================================================================
   ESTILOS DASHBOARD MODERNO E INTUITIVO
   ========================================================================== */

/* Grid de Métricas Principales (4 KPIs Ejecutivos) */
.dashboard-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 1200px) {
    .dashboard-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .dashboard-kpi-grid {
        grid-template-columns: 1fr;
    }
}

.dashboard-kpi-card {
    background: #ffffff;
    border: 1.5px solid rgba(226, 232, 240, 0.85);
    border-radius: var(--radius-lg);
    padding: 1.45rem 1.5rem;
    box-shadow: 0 4px 14px rgba(12, 35, 64, 0.04);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.dashboard-kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--kpi-bar-color, #2563eb);
}

.dashboard-kpi-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 16px 32px -4px rgba(12, 35, 64, 0.12), 0 0 22px -4px var(--kpi-glow, rgba(37, 99, 235, 0.25));
    border-color: #cbd5e1;
}

.dashboard-kpi-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.dashboard-kpi-label {
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-secondary);
}

.dashboard-kpi-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
}

.dashboard-kpi-card:hover .dashboard-kpi-icon {
    transform: scale(1.15) rotate(-6deg);
}

.dashboard-kpi-value {
    font-size: 2.35rem;
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.1;
    margin-bottom: 0.35rem;
}

.dashboard-kpi-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Barra Segmentada de Votos (Válidos, Blancos, Nulos) */
.vote-segmented-bar {
    height: 10px;
    background: #e2e8f0;
    border-radius: var(--radius-pill);
    overflow: hidden;
    display: flex;
    width: 100%;
    margin-top: 0.75rem;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
}

.vote-seg-valid {
    background: linear-gradient(90deg, #10b981, #059669);
    transition: width 0.8s ease;
}

.vote-seg-blank {
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    transition: width 0.8s ease;
}

.vote-seg-null {
    background: linear-gradient(90deg, #f87171, #ef4444);
    transition: width 0.8s ease;
}

.vote-seg-impugned {
    background: linear-gradient(90deg, #d97706, #b45309);
    transition: width 0.8s ease;
}

/* Tarjeta Banner de Líder en Conteo */
.dashboard-leader-banner {
    background: linear-gradient(135deg, #fffef5 0%, #ffffff 40%, #eff6ff 100%);
    border: 2px solid #facc15;
    border-radius: var(--radius-xl);
    padding: 1.6rem 2rem;
    box-shadow: 0 14px 35px -5px rgba(245, 158, 11, 0.2), 0 4px 14px rgba(37, 99, 235, 0.08);
    margin-bottom: 1.75rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.dashboard-leader-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px -5px rgba(245, 158, 11, 0.28), 0 6px 18px rgba(37, 99, 235, 0.14);
}

.dashboard-leader-banner::after {
    content: '';
    position: absolute;
    right: -30px;
    bottom: -30px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.leader-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1px solid #fcd34d;
    color: #92400e;
    font-weight: 800;
    font-size: 0.74rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.3rem 0.95rem;
    border-radius: var(--radius-pill);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
    margin-bottom: 0.65rem;
}

.leader-avatar-box {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.45);
    border: 2.5px solid #ffffff;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dashboard-leader-banner:hover .leader-avatar-box {
    transform: scale(1.1) rotate(-6deg);
}

/* Medallas de Posición Olímpicas en la Tabla */
.rank-pill {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 800;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

/* 🥇 Medalla de Oro */
.rank-pill-1 {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 50%, #d97706 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.55), 0 0 10px rgba(251, 191, 36, 0.4);
    border: 2px solid #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* 🥈 Medalla de Plata */
.rank-pill-2 {
    background: linear-gradient(135deg, #64748b 0%, #94a3b8 50%, #475569 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(100, 116, 139, 0.35);
    border: 2px solid #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* 🥉 Medalla de Bronce */
.rank-pill-3 {
    background: linear-gradient(135deg, #b45309 0%, #d97706 50%, #78350f 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.35);
    border: 2px solid #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.rank-pill-other {
    background: #f1f5f9;
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid #e2e8f0;
}

/* Barra de Distribución Total en Resumen */
.total-distribution-wrapper {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
}

/* Botones del Dashboard */
.btn-dashboard-action {
    background: #ffffff !important;
    border: 1px solid var(--border-color) !important;
    color: #1e293b !important;
    border-radius: var(--radius-pill) !important;
    font-weight: 600;
    font-size: 0.84rem;
    padding: 0.48rem 1.15rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}

.btn-dashboard-action:hover {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.btn-dashboard-primary {
    background: linear-gradient(135deg, #c8102e, #a50d25) !important;
    border: none !important;
    color: #ffffff !important;
    border-radius: var(--radius-pill) !important;
    font-weight: 700;
    font-size: 0.84rem;
    padding: 0.48rem 1.3rem;
    box-shadow: 0 3px 10px rgba(200, 16, 46, 0.3);
    transition: all 0.2s ease;
}

.btn-dashboard-primary:hover {
    background: linear-gradient(135deg, #e30022, #b80018) !important;
    box-shadow: 0 5px 16px rgba(200, 16, 46, 0.45);
    transform: translateY(-1px);
    color: #ffffff !important;
}

/* ==========================================================================
   MODELO DASHBOARD CON FILTROS A LA IZQUIERDA Y PANEL CENTRAL (REFERENCIA USUARIO)
   ========================================================================== */

.body-dashboard-model {
    background-color: #f1f5f9 !important;
    background-image: none !important;
}

/* Contenedor Macro con Bordes Redondeados */
.dashboard-app-container {
    max-width: 1560px;
    margin: 1.25rem auto 2.5rem;
    background: #ffffff;
    border-radius: 28px;
    box-shadow: 0 20px 60px -10px rgba(12, 35, 64, 0.12), 0 4px 16px rgba(0, 0, 0, 0.04);
    display: flex;
    overflow: hidden;
    min-height: 920px;
    border: 1px solid rgba(226, 232, 240, 0.9);
}

@media (max-width: 1100px) {
    .dashboard-app-container {
        flex-direction: column;
        border-radius: 0;
        margin: 0;
    }
}

/* --------------------------------------------------------------------------
   COSTADO IZQUIERDO: SIDEBAR CON GRADIENTE Y FILTROS
   -------------------------------------------------------------------------- */
.dashboard-sidebar-panel {
    width: 290px;
    flex-shrink: 0;
    background: linear-gradient(180deg, #0d9488 0%, #0284c7 45%, #1e40af 100%);
    color: #ffffff;
    padding: 1.75rem 1.35rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
}

@media (max-width: 1100px) {
    .dashboard-sidebar-panel {
        width: 100%;
    }
}

/* Brand en Sidebar */
.sidebar-brand-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.sidebar-logo-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.sidebar-brand-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.sidebar-brand-sub {
    font-size: 0.72rem;
    color: #bae6fd;
    font-weight: 500;
}

.sidebar-section-title {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin: 1.15rem 0 0.6rem;
}

/* Menú Principal en Sidebar */
.sidebar-nav-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.65rem 0.95rem;
    border-radius: 12px;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.22s ease;
    border: 1px solid transparent;
}

.sidebar-nav-item:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    transform: translateX(3px);
}

.sidebar-nav-item.active {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.45);
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.sidebar-nav-item .active-dot {
    font-size: 1.3rem;
    line-height: 0;
    color: #ffffff;
    margin-right: -0.3rem;
}

/* Filtro de Cédulas en Sidebar */
.sidebar-cedula-filter-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.sidebar-filter-btn {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.65rem 0.85rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    cursor: pointer;
}

.sidebar-filter-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
    transform: translateX(4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.sidebar-filter-btn.active {
    background: #ffffff !important;
    color: #0c4a6e !important;
    border-color: #ffffff !important;
    font-weight: 700;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25), 0 0 14px rgba(255, 255, 255, 0.4);
    transform: translateX(4px);
}

.sidebar-filter-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.sidebar-filter-btn.active .sidebar-filter-icon {
    background: #0284c7;
    color: #ffffff;
}

.sidebar-filter-text {
    flex-grow: 1;
    min-width: 0;
}

.sidebar-filter-title {
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-filter-sub {
    font-size: 0.68rem;
    opacity: 0.8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-active-indicator {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #10b981;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

/* Filtro Territorial en Sidebar */
.sidebar-geo-box {
    background: rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    padding: 0.85rem;
}

.sidebar-geo-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #bae6fd;
    margin-bottom: 0.25rem;
    display: block;
}

.sidebar-geo-fixed {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0.45rem 0.75rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.84rem;
    color: #ffffff;
}

.sidebar-select {
    width: 100%;
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 0.45rem 0.75rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #0f172a;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.sidebar-reset-link {
    color: #fef08a;
    font-size: 0.72rem;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.sidebar-reset-link:hover {
    text-decoration: underline;
    color: #ffffff;
}

/* Footer de Sidebar (Logout Pill matching imagen) */
.sidebar-footer {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.sidebar-live-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(16, 185, 129, 0.25);
    border: 1px solid rgba(52, 211, 153, 0.5);
    color: #a7f3d0;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-pill);
    margin-bottom: 0.85rem;
}

.sidebar-user-card {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.85rem;
}

.sidebar-user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f59e0b;
    border: 2px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.82rem;
    color: #ffffff;
    flex-shrink: 0;
}

.sidebar-user-name {
    font-size: 0.84rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}

.sidebar-user-role {
    font-size: 0.68rem;
    color: #bae6fd;
}

.sidebar-logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.55rem 1.25rem;
    background: #ffffff;
    color: #0284c7 !important;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    transition: all 0.25s ease;
}

.sidebar-logout-btn:hover {
    background: #f0fdf4;
    color: #059669 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* --------------------------------------------------------------------------
   CENTRO: PANEL DE INFORMACIÓN FILTRADA
   -------------------------------------------------------------------------- */
.dashboard-center-panel {
    flex-grow: 1;
    min-width: 0;
    background: #f8fafc;
    padding: 1.75rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

/* Header Row: Welcome Card + 3 Solid KPI Cards */
.dash-header-row {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 1.25rem;
}

@media (max-width: 1200px) {
    .dash-header-row {
        grid-template-columns: 1fr;
    }
}

.dash-welcome-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    padding: 1.4rem 1.5rem;
    box-shadow: 0 4px 16px rgba(12, 35, 64, 0.04);
    display: flex;
    gap: 1rem;
    align-items: center;
}

.dash-avatar-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #06b6d4, #0284c7);
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(6, 182, 212, 0.35);
    flex-shrink: 0;
}

.dash-welcome-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.dash-welcome-sub {
    font-size: 0.78rem;
    color: #64748b;
    margin-bottom: 0.4rem;
    line-height: 1.3;
}

.dash-welcome-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.dash-clock-inline {
    font-size: 0.72rem;
    color: #0284c7;
    font-weight: 600;
}

/* Tarjeta Contenedora de 3 Bloques KPI Sólidos (Matching imagen) */
.dash-top-stats-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    padding: 1.4rem 1.5rem;
    box-shadow: 0 4px 16px rgba(12, 35, 64, 0.04);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.btn-download-report {
    background: linear-gradient(135deg, #0d9488, #059669);
    border: none;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.78rem;
    padding: 0.45rem 1.15rem;
    border-radius: var(--radius-pill);
    box-shadow: 0 3px 10px rgba(13, 148, 136, 0.35);
    transition: all 0.2s ease;
}

.btn-download-report:hover {
    background: linear-gradient(135deg, #0f766e, #047857);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(13, 148, 136, 0.45);
}

.btn-upload-quick {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #2563eb;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-upload-quick:hover {
    background: #1d4ed8;
    color: #ffffff;
    transform: scale(1.08);
}

.dash-kpi-blocks-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.95rem;
}

@media (max-width: 768px) {
    .dash-kpi-blocks-row {
        grid-template-columns: 1fr;
    }
}

.kpi-solid-block {
    border-radius: 16px;
    padding: 1.1rem 1.25rem;
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    transition: transform 0.25s ease;
}

.kpi-solid-block:hover {
    transform: translateY(-3px);
}

.kpi-block-amber {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 8px 22px rgba(245, 158, 11, 0.35);
}

.kpi-block-indigo {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    box-shadow: 0 8px 22px rgba(49, 46, 129, 0.35);
}

.kpi-block-blue {
    background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
    box-shadow: 0 8px 22px rgba(2, 132, 199, 0.35);
}

.kpi-solid-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.9;
    display: block;
    margin-bottom: 0.25rem;
}

.kpi-solid-value {
    font-size: 2.15rem;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}

.kpi-solid-sub {
    font-size: 0.72rem;
    opacity: 0.88;
    margin-top: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* --------------------------------------------------------------------------
   FILA DE GRÁFICOS (ÁREA + DONUT)
   -------------------------------------------------------------------------- */
.dash-charts-row {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 1.25rem;
}

@media (max-width: 1200px) {
    .dash-charts-row {
        grid-template-columns: 1fr;
    }
}

.dash-chart-card, .dash-donut-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    padding: 1.4rem 1.6rem;
    box-shadow: 0 4px 16px rgba(12, 35, 64, 0.04);
}

.chart-legend-box {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    display: inline-block;
}

/* Donut Chart con número central */
.donut-chart-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.donut-center-metric {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
}

.donut-center-number {
    font-size: 1.85rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.donut-center-label {
    font-size: 0.66rem;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 0.15rem;
}

.dot-indicator {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
}

/* --------------------------------------------------------------------------
   FILA DE ESTADÍSTICAS CIRCULARES (GAUGES SVG matching imagen)
   -------------------------------------------------------------------------- */
.dash-bottom-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

@media (max-width: 992px) {
    .dash-bottom-stats-row {
        grid-template-columns: 1fr;
    }
}

.dash-gauge-card {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    padding: 1.15rem 1.35rem;
    box-shadow: 0 4px 14px rgba(12, 35, 64, 0.04);
    display: flex;
    align-items: center;
    gap: 1.15rem;
}

.gauge-circle-box {
    width: 68px;
    height: 68px;
    flex-shrink: 0;
}

.circular-chart {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    max-height: 100%;
}

.circle-bg {
    fill: none;
    stroke: #e2e8f0;
    stroke-width: 3.8;
}

.circle {
    fill: none;
    stroke-width: 3.8;
    stroke-linecap: round;
    transition: stroke-dasharray 0.8s ease;
}

.circular-chart.orange .circle {
    stroke: #f59e0b;
}

.circular-chart.green .circle {
    stroke: #10b981;
}

.percentage {
    fill: #0f172a;
    font-family: var(--font-primary);
    font-weight: 800;
    font-size: 0.5rem;
    text-anchor: middle;
}

.gauge-info {
    flex-grow: 1;
    min-width: 0;
}

.gauge-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
}

.gauge-value {
    font-size: 1.2rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.gauge-trend {
    font-size: 0.72rem;
    font-weight: 600;
}

.leader-highlight-card {
    background: linear-gradient(135deg, #fffef5 0%, #ffffff 100%);
    border: 1.5px solid #fde047;
}

.leader-trophy-mini {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
    flex-shrink: 0;
}

/* ==========================================================================
   MÓDULO DE RESULTADOS ELECTORALES - DISEÑO INSTITUCIONAL UNIFICADO
   Colores, componentes e identidad visual integrada con el sistema general
   ========================================================================== */

.results-main-wrapper {
    max-width: 1540px;
    margin: 1.5rem auto 3rem;
    padding: 0 1.25rem;
}

/* 1. BARRA SUPERIOR DE LOS 4 BOTONES DE FILTRO DE ELECCIÓN */
.election-filter-tabs-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 992px) {
    .election-filter-tabs-bar {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .election-filter-tabs-bar {
        grid-template-columns: 1fr;
    }
}

.election-filter-tab {
    display: flex;
    align-items: center;
    gap: 0.95rem;
    padding: 1rem 1.25rem;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    text-decoration: none !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 6px rgba(12, 35, 64, 0.04);
    position: relative;
    overflow: hidden;
}

.election-filter-tab:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(12, 35, 64, 0.08);
}

.election-filter-tab .tab-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.election-filter-tab:hover .tab-icon-box {
    transform: scale(1.08);
}

.election-filter-tab .tab-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.election-filter-tab .tab-title {
    font-size: 0.96rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.15rem;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.election-filter-tab .tab-sub {
    font-size: 0.76rem;
    color: #64748b;
    font-weight: 500;
}

/* Colores específicos de cada una de las 4 opciones */
/* 1. Presidente Regional (Azul Real) */
.election-filter-tab.type-blue .tab-icon-box {
    background: #eff6ff;
    color: #2563eb;
    border: 1.5px solid #bfdbfe;
}
.election-filter-tab.type-blue.active {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    border-color: #1d4ed8;
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.35);
}

/* 2. Consejero (Verde Esmeralda) */
.election-filter-tab.type-emerald .tab-icon-box {
    background: #ecfdf5;
    color: #059669;
    border: 1.5px solid #a7f3d0;
}
.election-filter-tab.type-emerald.active {
    background: linear-gradient(135deg, #047857 0%, #059669 100%);
    border-color: #047857;
    box-shadow: 0 8px 22px rgba(5, 150, 105, 0.35);
}

/* 3. Alcalde Provincial (Ámbar / Naranja) */
.election-filter-tab.type-amber .tab-icon-box {
    background: #fffbeb;
    color: #d97706;
    border: 1.5px solid #fde68a;
}
.election-filter-tab.type-amber.active {
    background: linear-gradient(135deg, #b45309 0%, #d97706 100%);
    border-color: #b45309;
    box-shadow: 0 8px 22px rgba(217, 119, 6, 0.35);
}

/* 4. Alcalde Distrital (Rosa / Carmesí) */
.election-filter-tab.type-rose .tab-icon-box {
    background: #fef2f2;
    color: #e11d48;
    border: 1.5px solid #fecdd3;
}
.election-filter-tab.type-rose.active {
    background: linear-gradient(135deg, #be123c 0%, #e11d48 100%);
    border-color: #be123c;
    box-shadow: 0 8px 22px rgba(225, 29, 72, 0.35);
}

/* Estado activo general */
.election-filter-tab.active .tab-icon-box {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
}
.election-filter-tab.active .tab-title {
    color: #ffffff;
}
.election-filter-tab.active .tab-sub {
    color: rgba(255, 255, 255, 0.85);
}

/* Indicador de check activo */
.election-filter-tab .active-pill-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

/* 2. ENCABEZADO DE TÍTULO DE SECCIÓN */
.results-header-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.results-header-title-group {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.results-category-badge-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(12, 35, 64, 0.15);
}

.results-main-title {
    font-size: 1.55rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin: 0;
    line-height: 1.2;
}

.results-main-subtitle {
    font-size: 0.84rem;
    color: #64748b;
    margin: 0;
}

/* 3. TARJETA RESUMEN DE ACTAS CONTABILIZADAS */
.results-actas-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.35rem 1.75rem 1.15rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.35rem;
}

.results-actas-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 0.2rem;
}

.results-actas-hero-row {
    display: flex;
    align-items: baseline;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.results-actas-pct {
    font-size: 2.85rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}

.results-actas-info-group {
    display: flex;
    flex-direction: column;
}

.results-actas-total-text {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.15rem;
}

.results-actas-sub-text {
    font-size: 0.82rem;
    color: #64748b;
    font-weight: 500;
}

/* Barra de progreso moderna con gradiente institucional */
.results-progress-container {
    height: 14px;
    background-color: #e2e8f0;
    border-radius: 9999px;
    overflow: hidden;
    margin: 0.95rem 0 0.8rem;
}

.results-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #2563eb 0%, #06b6d4 100%);
    border-radius: 9999px;
    transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.results-actas-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-top: 0.45rem;
    border-top: 1px solid #f1f5f9;
}

.results-updated-timestamp {
    font-size: 0.76rem;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.results-status-legend {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #2563eb;
}

.results-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

/* 4. SUB-PESTAÑAS DE VISTA (Geográfica vs Organización Política) */
.results-subtabs-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.results-subtabs-group {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.results-subtab-btn {
    padding: 0.65rem 1.35rem;
    font-size: 0.88rem;
    font-weight: 700;
    border-radius: 10px;
    border: 1.5px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.results-subtab-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #94a3b8;
}

.results-subtab-btn.active {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

/* Selector de ordenamiento: Orden de Cédula vs Por Votos */
.results-order-selector-group {
    display: inline-flex;
    align-items: center;
    background: #f1f5f9;
    padding: 3px;
    border-radius: 10px;
    border: 1.5px solid #e2e8f0;
}

.results-order-btn {
    padding: 0.42rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748b;
    border-radius: 8px;
    text-decoration: none !important;
    transition: all 0.18s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.results-order-btn:hover {
    color: #0f172a;
    background: rgba(255, 255, 255, 0.6);
}

.results-order-btn.active {
    background: #ffffff;
    color: #1d4ed8;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Dropdown de Filtro Territorial "TODOS ⌄" */
.results-geo-dropdown-container {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.35rem;
}

.results-geo-pin-icon {
    font-size: 1.35rem;
    color: #2563eb;
}

.results-geo-selector-btn {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.85rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}

.results-geo-selector-btn:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
}

/* 5. GRÁFICO DE BARRAS CON AVATARES Y LOGOS */
/* 5. GRÁFICO DE BARRAS POR CANDIDATO CON LOGOS */
.results-chart-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.5rem 1.5rem 1.25rem 1.25rem;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

/* Escenario principal del gráfico (Eje Y + Columnas) */
.results-chart-stage {
    display: flex;
    position: relative;
    z-index: 2;
    height: 480px;
}

/* Eje Y izquierdo */
.results-chart-y-axis {
    width: 95px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    padding-right: 14px;
    font-family: 'Plus Jakarta Sans', monospace, sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748b;
    user-select: none;
    padding-bottom: 124px;
}

.results-y-tick {
    line-height: 1;
    white-space: nowrap;
}

/* Área de trazado */
.results-chart-plot-area {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

/* Líneas de cuadrícula punteadas horizontales */
.results-chart-grid-lines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 124px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none;
}

.results-grid-dashed-line {
    width: 100%;
    border-top: 1px dashed #e2e8f0;
}

/* Contenedor desplazable de columnas de candidatos */
.results-chart-columns-scroll {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: flex-end;
    gap: 1.75rem;
    padding-left: 1.25rem;
    padding-right: 3.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-behavior: smooth;
    z-index: 3;
}

.results-chart-columns-scroll::-webkit-scrollbar {
    display: none;
}

/* Columna individual de candidato */
.results-cand-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    width: 118px;
    flex-shrink: 0;
    height: 100%;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.results-cand-column:hover {
    transform: translateY(-2px);
}

/* Pilar / Barra vertical */
.results-bar-pillar {
    width: 92px;
    border-radius: 12px 12px 0 0;
    position: relative;
    transition: height 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s ease, filter 0.2s ease;
    display: flex;
    justify-content: center;
}

/* Primer lugar: Azul rey profundo con sombra luminosa */
.results-bar-pillar.bar-rank-first {
    background: linear-gradient(180deg, #1d4ed8 0%, #2563eb 100%);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

/* Demás lugares: Celeste / Azul cielo */
.results-bar-pillar.bar-rank-other {
    background: linear-gradient(180deg, #0284c7 0%, #38bdf8 100%);
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25);
}

.results-cand-column:hover .results-bar-pillar {
    filter: brightness(1.08);
}

/* Insignia corona de primer lugar */
.results-bar-first-crown {
    position: absolute;
    top: -54px;
    left: 50%;
    transform: translateX(-50%);
    width: 22px;
    height: 22px;
    background: #f59e0b;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.45);
    z-index: 12;
    animation: crownFloat 2s ease-in-out infinite;
}

@keyframes crownFloat {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-3px); }
}

/* ETIQUETA DE PORCENTAJE EN LA CÚSPIDE DE LA BARRA */
.results-bar-pct-top {
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    background: #0f172a;
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 800;
    font-family: 'Plus Jakarta Sans', monospace, sans-serif;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: -0.01em;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.28);
    z-index: 10;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.results-cand-column:hover .results-bar-pct-top {
    transform: translateX(-50%) scale(1.1);
    background: #1d4ed8;
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.4);
}

.results-bar-pillar.bar-rank-first .results-bar-pct-top {
    background: #1d4ed8;
    box-shadow: 0 2px 10px rgba(29, 78, 216, 0.45);
}

/* SECCIÓN BASE: LOGO + CASILLA + NOMBRE + VOTOS */
.results-cand-base-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 10px;
    text-align: center;
}

/* Tarjeta de Logo del Partido en la Base */
.results-party-logo-base {
    width: 58px;
    height: 58px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    box-shadow: 0 2px 8px rgba(12, 35, 64, 0.06);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
    position: relative;
}

/* Número de casilla oficial de la cédula en la tarjeta de logo */
.results-ballot-order-pill {
    position: absolute;
    top: -7px;
    left: -7px;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: #0f172a;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
    border: 1.5px solid #ffffff;
    z-index: 5;
    line-height: 1;
}

.results-party-logo-base img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.results-cand-column:hover .results-party-logo-base {
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

/* Nombre del partido o candidato debajo del logo */
.results-cand-party-name {
    font-size: 0.74rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
    margin-top: 6px;
    margin-bottom: 2px;
    max-width: 115px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 28px;
    word-break: break-word;
}

/* Conteo de votos debajo del nombre */
.results-cand-votos-count {
    font-size: 0.78rem;
    color: #2563eb;
    font-weight: 800;
    font-family: 'Plus Jakarta Sans', monospace, sans-serif;
    display: flex;
    align-items: center;
    gap: 3px;
    justify-content: center;
}

.results-cand-votos-count .text-muted {
    font-size: 0.68rem;
    font-weight: 500;
    color: #64748b !important;
}

/* Flechas de navegación para desplazamiento */
.results-chart-arrow-next {
    position: absolute;
    right: 12px;
    top: 40%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #2563eb;
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.38);
    z-index: 20;
    cursor: pointer;
    transition: all 0.2s ease;
}

.results-chart-arrow-next:hover {
    background: #1d4ed8;
    transform: translateY(-50%) scale(1.1);
}

.results-chart-arrow-prev {
    position: absolute;
    left: 105px;
    top: 40%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #ffffff;
    color: #2563eb;
    border: 1.5px solid #cbd5e1;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    z-index: 20;
    cursor: pointer;
    transition: all 0.2s ease;
}

.results-chart-arrow-prev:hover {
    background-color: #f1f5f9;
    border-color: #2563eb;
}

/* Tooltip emergente */
.results-cand-tooltip {
    position: absolute;
    bottom: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%);
    background: #0f172a;
    color: #ffffff;
    padding: 0.65rem 0.95rem;
    border-radius: 8px;
    font-size: 0.76rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    z-index: 50;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    text-align: center;
    line-height: 1.35;
}

.results-cand-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #0f172a transparent transparent transparent;
}

.results-cand-column:hover .results-cand-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-6px);
}

@media (max-width: 768px) {
    .results-actas-pct {
        font-size: 2.2rem;
    }
    .results-main-title {
        font-size: 1.3rem;
    }
    .results-chart-stage {
        height: 420px;
    }
    .results-chart-y-axis {
        width: 75px;
        font-size: 0.72rem;
        padding-bottom: 110px;
    }
    .results-chart-grid-lines {
        bottom: 110px;
    }
    .results-cand-column {
        width: 95px;
    }
    .results-bar-pillar {
        width: 72px;
    }
    .results-bar-pct-top {
        font-size: 0.70rem;
        padding: 2px 6px;
        top: -24px;
    }
    .results-party-logo-base {
        width: 48px;
        height: 48px;
    }
    .results-cand-party-name {
        font-size: 0.68rem;
        max-width: 90px;
    }
    .results-cand-votos-count {
        font-size: 0.72rem;
    }
}


/* ==========================================================================
   ESTILOS DE IMPRESIÓN OFICIAL (Cédula / Reporte para Print)
   ========================================================================== */
@media print {

    body {
        background: #ffffff !important;
        color: #000000 !important;
    }

    .modern-navbar, 
    .onpe-top-bar, 
    .onpe-footer, 
    .onpe-cedula-tabs, 
    .geo-ribbon, 
    .btn, 
    .d-print-none {
        display: none !important;
    }

    .container {
        max-width: 100% !important;
        padding: 0 !important;
    }

    .card-modern, .onpe-table-card, .onpe-kpi-card {
        border: 1px solid #000000 !important;
        box-shadow: none !important;
    }

    .print-official-header {
        display: block !important;
        border-bottom: 2px solid #000000;
        padding-bottom: 12px;
        margin-bottom: 20px;
    }
}
