:root {
    /* Sources badge colors (using !important here is fine for theme override) */
    --source-estados: #3b82f6 !important;
    --source-ofac: #8b5cf6 !important;
    --source-banorte: #ef4444 !important;
    --source-amex: #0284c7 !important;
    --source-santander: #dc2626 !important;
    --source-bbva: #1d4ed8 !important;
    --source-blackdatalogin: #64748b !important;
    --source-facebook: #1877f2 !important;
    --source-padron-afiliaciones: #059669 !important;
    
    /* Political parties colors for Padrón de Afiliaciones */
    --partido-morena: #722f37 !important;        /* Guinda */
    --partido-pri: #dc2626 !important;           /* Rojo */
    --partido-pan: #2563eb !important;           /* Azul */
    --partido-mc: #ea580c !important;            /* Naranja (Movimiento Ciudadano) */
    --partido-pvem: #16a34a !important;          /* Verde */
    --partido-pt: #b91c1c !important;            /* Rojo más oscuro */
    --partido-otros: #6b7280 !important;         /* Gris para otros partidos */
}

/* Source Badges */
.badge-source {
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.375rem;
}

.badge-estados { background-color: var(--source-estados); }
.badge-ofac { background-color: var(--source-ofac); }
.badge-banorte { background-color: var(--source-banorte); }
.badge-amex { background-color: var(--source-amex); }
.badge-santander { background-color: var(--source-santander); }
.badge-bbva { background-color: var(--source-bbva); }
.badge-blackdatalogin { background-color: var(--source-blackdatalogin); }
.badge-facebook { background-color: var(--source-facebook); }
.badge-padron-afiliaciones { background-color: var(--source-padron-afiliaciones); }

/* Political party badges for Padrón de Afiliaciones - Increased specificity for Bootstrap override */
.badge.badge-partido-morena { background-color: var(--partido-morena) !important; }
.badge.badge-partido-pri { background-color: var(--partido-pri) !important; }
.badge.badge-partido-pan { background-color: var(--partido-pan) !important; }
.badge.badge-partido-mc { background-color: var(--partido-mc) !important; }
.badge.badge-partido-pvem { background-color: var(--partido-pvem) !important; }
.badge.badge-partido-pt { background-color: var(--partido-pt) !important; }
.badge.badge-partido-otros { background-color: var(--partido-otros) !important; }

/* Ensure political party badges inherit base badge styling with Bootstrap compatibility */
.badge.badge-partido-morena, .badge.badge-partido-pri, .badge.badge-partido-pan,
.badge.badge-partido-mc, .badge.badge-partido-pvem, .badge.badge-partido-pt,
.badge.badge-partido-otros {
    color: #fff !important;
    font-weight: 700 !important;
    border-radius: 0.375rem !important;
} 