/* ==========================================================================
   INTLAX ANALYTICS & NOTICIAS • ELECCIONES 2027 (TEMA OSCURO CASI NEGRO)
   Combina la identidad editorial oscura de INTLAX Noticias (#0B0F17 / #0F172A)
   con el Tablero Electoral de INTLAX Analytics (Elecciones 2027).
   ========================================================================== */

:root {
    --bg-page: #0B0F17;          /* Oscuro casi negro principal */
    --bg-surface: #0F172A;       /* Slate oscuro de estilo de noticias */
    --bg-offset: #162032;        /* Superficie elevada para tarjetas y bloques */
    --bg-card: #131B2E;          /* Fondo de tarjetas */
    --text-dark: #F8FAFC;        /* Blanco nítido para titulares */
    --text-base: #CBD5E1;        /* Gris claro para texto de lectura */
    --text-muted: #94A3B8;       /* Gris medio para metadatos y fechas */
    --accent: #FFCC00;           /* Amarillo identidad INTLAX */
    --accent-hover: #E6B800;
    --border: #1E293B;           /* Bordes sutiles oscuros */
    --border-light: #334155;
    --green: #22C55E;
    --red: #EF4444;
    --blue: #3B82F6;

    /* Colores Tablero INTLAX Analytics (Elecciones 2027) */
    --ana-bg-outer: #090C12;
    --ana-bg-board: #141113;
    --ana-bg-row: #1E1A1C;
    --ana-bg-row-hover: #272224;
    --ana-bg-track: #2B2728;
    --ana-border: #2E2728;
    --ana-gold: #DFB75A;
    --ana-blue: #3B82F6;
    --ana-red: #E04F64;
    --ana-amber: #E3C059;
    --ana-orange: #DE7A3B;

    /* Tipografías */
    --font-display: 'Anton', sans-serif;
    --font-serif: 'Merriweather', serif;
    --font-sans: 'Inter', sans-serif;

    --container-w: 1440px;
    --px: 24px;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-page);
    color: var(--text-dark);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
    color: inherit;
}

.container {
    max-width: var(--container-w);
    margin: 0 auto;
    padding: 0 var(--px);
}

/* ==========================================================================
   1. TICKER SUPERIOR (FINANCIERO + PULSO ELECTORAL 2027)
   ========================================================================== */
.ticker {
    background-color: #070A10;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    white-space: nowrap;
    padding: 8px 0;
    font-size: 11.5px;
}
.ticker::-webkit-scrollbar { display: none; }
.ticker-inner {
    display: flex;
    gap: 28px;
    align-items: center;
}
.ticker-badge {
    background: var(--accent);
    color: #0B0F17;
    font-weight: 800;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.ticker-item strong {
    color: #F8FAFC;
}
.text-green { color: #4ADE80; font-weight: 600; }
.text-red { color: #F87171; font-weight: 600; }
.text-gold { color: var(--accent); font-weight: 600; }

/* ==========================================================================
   2. HEADER & NAVEGACIÓN PRINCIPAL (OSCURO CASI NEGRO)
   ========================================================================== */
.header {
    background: rgba(11, 15, 23, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    gap: 16px;
}
.header-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
}
.btn-icon {
    width: 38px;
    height: 38px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-base);
    transition: all 0.2s;
}
.btn-icon:hover {
    background: var(--bg-offset);
    border-color: var(--accent);
}
.header-date {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-muted);
}
.fb-badge-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 600;
    color: #60A5FA;
    background: rgba(37, 99, 235, 0.14);
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid rgba(59, 130, 246, 0.35);
    transition: all 0.2s;
}
.fb-badge-link:hover {
    background: rgba(37, 99, 235, 0.25);
    color: #93C5FD;
}

.header-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.logo-intlax {
    font-family: var(--font-display);
    font-size: 40px;
    line-height: 0.95;
    color: #FFFFFF;
    letter-spacing: 0.01em;
}
.logo-intlax .dot {
    color: var(--accent);
}
.logo-sub {
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 3px;
}

.header-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

/* Botón Google Auth / Perfil en Tema Oscuro */
.btn-google-auth {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-offset);
    border: 1px solid var(--border-light);
    padding: 7px 15px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    color: #F8FAFC;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: all 0.2s;
}
.btn-google-auth:hover {
    background: #1E293B;
    border-color: var(--accent);
    transform: translateY(-1px);
}
.user-pill-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
}

.btn-admin-cms {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #1E293B;
    border: 1px solid var(--border-light);
    color: #F8FAFC;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s;
}
.btn-admin-cms:hover {
    background: var(--accent);
    color: #0B0F17;
    border-color: var(--accent);
}

/* Barra de Navegación Principal */
.nav-categories {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 0;
    border-top: 1px solid var(--border);
    overflow-x: auto;
}
.nav-categories::-webkit-scrollbar { display: none; }
.nav-tabs-group {
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 15px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-base);
    white-space: nowrap;
    border: 1px solid transparent;
    transition: all 0.2s;
}
.nav-tab:hover {
    background: var(--bg-offset);
    color: #FFFFFF;
}
.nav-tab.active {
    background: var(--accent);
    color: #0B0F17;
    font-weight: 800;
}
.nav-tab.tab-analytics {
    background: linear-gradient(135deg, #1E1617 0%, #2D1F21 100%);
    color: #FDE68A;
    border: 1px solid #6B5327;
}
.nav-tab.tab-analytics.active {
    background: linear-gradient(135deg, #FFCC00 0%, #DFB75A 100%);
    color: #0B0F17;
    border-color: #FFCC00;
}

.pulse-dot {
    width: 7px;
    height: 7px;
    background-color: #EF4444;
    border-radius: 50%;
    display: inline-block;
    animation: pulse-red 1.5s infinite;
}
@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* ==========================================================================
   3. TABLERO INTLAX ANALYTICS • ELECCIONES 2027 (DISEÑO EXACTO DEL EJEMPLO)
   ========================================================================== */
.analytics-showcase-wrapper {
    background: radial-gradient(circle at 18% 20%, #241315 0%, #0E0C0E 55%, #090C12 100%);
    color: #FFFFFF;
    padding: 28px 0 36px;
    border-bottom: 1px solid var(--border);
}

.analytics-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding: 12px 16px;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid var(--border-light);
    border-radius: 10px;
}

.poll-selector-pills {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.poll-pill-btn {
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #CBD5E1;
    background: #162032;
    border: 1px solid #334155;
    transition: all 0.2s;
}
.poll-pill-btn:hover {
    border-color: var(--accent);
    color: #FFFFFF;
}
.poll-pill-btn.active {
    background: var(--accent);
    color: #0B0F17;
    border-color: var(--accent);
    font-weight: 800;
}

.toolbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.btn-capture-mode {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 13px;
    border-radius: 8px;
    font-size: 11.5px;
    font-weight: 600;
    color: #E7E5E4;
    background: #1E293B;
    border: 1px solid #334155;
    transition: all 0.2s;
}
.btn-capture-mode:hover, .btn-capture-mode.active {
    background: #3B82F6;
    border-color: #3B82F6;
    color: #FFFFFF;
}

/* El Tablero Principal (Idéntico a Captura de pantalla 2026-11-07) */
.intlax-poll-board {
    background: radial-gradient(circle at 12% 30%, rgba(120, 28, 28, 0.22) 0%, rgba(25, 20, 21, 0.98) 52%, #141112 100%);
    border: 1px solid #2F2728;
    border-radius: 14px;
    padding: 26px 32px 22px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75);
    position: relative;
    overflow: hidden;
}

.board-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 18px;
    border-bottom: 1px solid #2C2425;
}
.board-brand-group {
    display: flex;
    align-items: center;
    gap: 18px;
}
.board-logo-block {
    display: flex;
    flex-direction: column;
}
.board-logo-title {
    font-family: var(--font-sans);
    font-weight: 900;
    font-size: 23px;
    line-height: 1;
    letter-spacing: 0.02em;
    color: #FFFFFF;
}
.board-logo-sub {
    font-size: 8.5px;
    font-weight: 600;
    letter-spacing: 0.34em;
    color: #A8A29E;
    margin-top: 4px;
    text-transform: uppercase;
}
.board-divider-v {
    width: 1px;
    height: 30px;
    background-color: #382E30;
}
.board-location-block {
    display: flex;
    flex-direction: column;
}
.board-location-name {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: #FFFFFF;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}
.elecciones-2027-tag {
    background: rgba(223, 183, 90, 0.16);
    color: #DFB75A;
    border: 1px solid rgba(223, 183, 90, 0.45);
    padding: 1px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
}
.board-location-sub {
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.14em;
    color: #A8A29E;
    margin-top: 3px;
    text-transform: uppercase;
}

.board-status-pill {
    border: 1px solid #3D3536;
    background: rgba(34, 29, 30, 0.85);
    border-radius: 999px;
    padding: 7px 16px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: #D6D3D1;
    text-transform: uppercase;
}

.board-headline-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 20px 0 18px;
    gap: 16px;
}
.board-kicker {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
    color: #A8A29E;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.board-main-question {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: #FFFFFF;
}
.board-right-instruction {
    text-align: right;
}
.board-right-instruction strong {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #FFFFFF;
}
.board-right-instruction span {
    display: block;
    font-size: 12px;
    color: #A8A29E;
    margin-top: 3px;
}

/* Column Headers */
.board-columns-header {
    display: grid;
    grid-template-columns: 330px 1fr 170px;
    padding: 0 12px 10px;
    border-bottom: 1px solid #2D2526;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: #9CA3AF;
    text-transform: uppercase;
}
.board-columns-header .col-h-right {
    text-align: right;
}

/* Lista de Filas de Aspirantes */
.board-candidates-list {
    display: flex;
    flex-direction: column;
    gap: 11px;
    margin-top: 12px;
}

.board-candidate-row {
    display: grid;
    grid-template-columns: 330px 1fr 170px;
    align-items: center;
    background: rgba(34, 30, 31, 0.92);
    border: 1px solid #322B2C;
    border-radius: 8px;
    overflow: hidden;
    min-height: 78px;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.board-candidate-row:hover {
    background: #272223;
    border-color: #4B4042;
}
.board-candidate-row.rank-1 {
    border-color: rgba(223, 183, 90, 0.55);
    box-shadow: 0 0 24px rgba(223, 183, 90, 0.07);
}
.board-candidate-row.user-voted-row {
    border-color: #3B82F6;
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.4);
}

/* Columna 1: Foto + Nombre + Reacción */
.cand-cell-left {
    display: flex;
    align-items: center;
    gap: 16px;
    height: 100%;
}
.cand-photo-box {
    position: relative;
    width: 106px;
    height: 78px;
    flex-shrink: 0;
    background: #2A1818;
    overflow: hidden;
    cursor: pointer;
}
.cand-color-strip {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    z-index: 2;
}
.cand-photo-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.cand-photo-box:hover img {
    transform: scale(1.06);
}
.cand-rank-badge {
    position: absolute;
    bottom: 6px;
    left: 8px;
    width: 20px;
    height: 20px;
    background: rgba(15, 13, 13, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    color: #FFFFFF;
    z-index: 3;
}

.cand-identity {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8px 8px 8px 0;
}
.cand-name-link {
    font-size: 19px;
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.15;
    cursor: pointer;
    transition: color 0.15s;
}
.cand-name-link:hover {
    color: var(--ana-gold);
}
.cand-reaction-line {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 5px;
}
.reaction-emoji-icon {
    font-size: 18px;
    line-height: 1;
}
.reaction-label-text {
    font-size: 12.5px;
    color: #D6D3D1;
    font-weight: 500;
}

/* Columna 2: Barra de Progreso + Acciones de Voto y Noticias */
.cand-cell-center {
    padding: 10px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.progress-track {
    width: 100%;
    height: 24px;
    background: #2C2829;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}
.progress-fill {
    height: 100%;
    border-radius: 5px;
    transition: width 0.65s cubic-bezier(0.22, 1, 0.36, 1);
    min-width: 8px;
}
.progress-sub-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
    gap: 10px;
    flex-wrap: wrap;
}
.progress-caption {
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: #9CA3AF;
    text-transform: uppercase;
}

.row-interactive-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}
.btn-vote-reaction {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.16);
    transition: all 0.2s;
}
.btn-vote-reaction:hover {
    background: var(--ana-gold);
    color: #141112;
    border-color: var(--ana-gold);
}
.btn-vote-reaction.voted {
    background: #2563EB;
    border-color: #60A5FA;
    color: #FFFFFF;
}
.btn-cand-news-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #FDE68A;
    background: rgba(223, 183, 90, 0.12);
    padding: 3px 9px;
    border-radius: 999px;
    border: 1px solid rgba(223, 183, 90, 0.28);
    transition: all 0.2s;
}
.btn-cand-news-link:hover {
    background: rgba(223, 183, 90, 0.25);
}

.voters-mini-avatars {
    display: inline-flex;
    align-items: center;
}
.voters-mini-avatars img {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid #191415;
    margin-left: -5px;
}
.voters-mini-avatars img:first-child {
    margin-left: 0;
}

/* Columna 3: Porcentaje y Votos */
.cand-cell-right {
    padding: 8px 18px 8px 8px;
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.cand-pct-number {
    font-size: 38px;
    font-weight: 800;
    line-height: 1;
    color: #FFFFFF;
    letter-spacing: -0.02em;
}
.cand-pct-symbol {
    font-size: 20px;
    font-weight: 600;
    color: #D6D3D1;
    margin-left: 1px;
}
.cand-votes-count {
    font-size: 13px;
    color: #D6D3D1;
    margin-top: 3px;
    font-weight: 500;
}

/* Pie de tabla del Sondeo */
.board-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
    padding-top: 10px;
    font-size: 10.5px;
    color: #9CA3AF;
}

/* Modo captura limpia para Facebook */
.intlax-poll-board.capture-mode .row-interactive-controls {
    display: none !important;
}

/* Tarjetas de Métricas Secundarias debajo del Tablero */
.analytics-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 22px;
}
.ana-kpi-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px 18px;
}
.ana-kpi-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}
.ana-kpi-val {
    font-size: 26px;
    font-weight: 800;
    color: #FFFFFF;
    margin-top: 4px;
}
.ana-kpi-sub {
    font-size: 11.5px;
    color: var(--accent);
    margin-top: 4px;
}

/* ==========================================================================
   4. REPOSITORIO DE ASPIRANTES Y CANDIDATOS (TEMA OSCURO)
   ========================================================================== */
.candidates-repo-section {
    padding: 40px 0;
    background-color: var(--bg-page);
    border-bottom: 1px solid var(--border);
}
.repo-header-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--border-light);
    padding-bottom: 12px;
}
.candidates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 22px;
}
.candidate-profile-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.candidate-profile-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-light);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45);
}
.cand-card-top {
    display: flex;
    gap: 14px;
    padding: 18px;
    align-items: center;
    background: linear-gradient(180deg, #162032 0%, #131B2E 100%);
    border-bottom: 1px solid var(--border);
}
.cand-card-avatar {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    object-fit: cover;
    border: 3px solid var(--accent);
    flex-shrink: 0;
}
.cand-card-party {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(255, 204, 0, 0.14);
    color: var(--accent);
    border: 1px solid rgba(255, 204, 0, 0.3);
    display: inline-block;
    margin-bottom: 4px;
}
.cand-card-name {
    font-size: 18px;
    font-weight: 800;
    color: #F8FAFC;
    line-height: 1.2;
}
.cand-card-role {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}
.cand-card-body {
    padding: 16px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.cand-bio-snippet {
    font-size: 13px;
    color: var(--text-base);
    line-height: 1.45;
}
.cand-related-news-box {
    background: #0B0F17;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 12px;
}
.cand-related-news-title {
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.cand-news-item-link {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #E2E8F0;
    padding: 5px 0;
    border-bottom: 1px dashed var(--border);
    transition: color 0.15s;
}
.cand-news-item-link:last-child {
    border-bottom: none;
}
.cand-news-item-link:hover {
    color: var(--accent);
}
.cand-card-footer {
    padding: 12px 18px;
    background: #0F172A;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

/* ==========================================================================
   5. ESTILO DE NOTICIAS (TEMA OSCURO DE `estilo de noticias` N+ / INTLAX)
   ========================================================================== */
.section-label {
    font-family: var(--font-display);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--accent);
    border-bottom: 2px solid var(--accent);
    padding-bottom: 4px;
    margin-bottom: 16px;
}
.section-title {
    font-family: var(--font-display);
    font-size: 28px;
    text-transform: uppercase;
    color: #F8FAFC;
    margin-bottom: 16px;
}
.title-display-lg { font-family: var(--font-display); font-size: 32px; line-height: 1.1; text-transform: uppercase; color: #F8FAFC; }
.title-display-md { font-family: var(--font-display); font-size: 24px; line-height: 1.15; text-transform: uppercase; color: #F8FAFC; }
.title-serif-lg { font-family: var(--font-serif); font-size: 22px; font-weight: 700; line-height: 1.3; color: #F8FAFC; }
.title-serif-md { font-family: var(--font-serif); font-size: 18px; font-weight: 700; line-height: 1.35; color: #F8FAFC; }
.title-serif-sm { font-family: var(--font-serif); font-size: 15px; font-weight: 700; line-height: 1.35; color: #F8FAFC; }
.desc-serif { font-family: var(--font-serif); font-size: 14px; color: var(--text-base); line-height: 1.45; margin-top: 8px; }
.time { font-size: 11px; color: var(--text-muted); display: inline-block; margin-top: 6px; }

.img-wrap {
    background-color: var(--bg-offset);
    overflow: hidden;
    position: relative;
    border-radius: 6px;
}
.img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.group:hover .img-wrap img {
    transform: scale(1.03);
}
.group:hover .hover-accent {
    color: var(--accent);
}
.aspect-16-9 { aspect-ratio: 16/9; }
.aspect-16-10 { aspect-ratio: 16/10; }

.grid-12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.hero-section, .three-col-row, .content-grid {
    padding: 28px 0;
    border-bottom: 1px solid var(--border);
}
.story {
    display: flex;
    flex-direction: column;
    cursor: pointer;
}
.cand-mention-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 204, 0, 0.12);
    color: var(--accent);
    border: 1px solid rgba(255, 204, 0, 0.32);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 999px;
    margin-top: 6px;
    margin-right: 4px;
    transition: all 0.15s;
}
.cand-mention-chip:hover {
    background: var(--accent);
    color: #0B0F17;
}

.trending-item {
    display: flex;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
}
.trending-num {
    width: 28px;
    height: 28px;
    border: 1px solid var(--border-light);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    margin-right: 12px;
    flex-shrink: 0;
}

/* ==========================================================================
   6. APARTADO DE OPINIÓN Y PUBLICIDAD (TEMA OSCURO)
   ========================================================================== */
.opinion-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-top: 4px solid var(--accent);
    border-radius: 10px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.opinion-card:hover {
    border-color: var(--border-light);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}
.opinion-author-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.opinion-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
}

.ad-banner-slot {
    background: linear-gradient(90deg, #131B2E 0%, #1E293B 100%);
    color: #FFFFFF;
    border-radius: 12px;
    padding: 20px 26px;
    margin: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    border: 1px solid var(--border-light);
}

/* ==========================================================================
   7. MODALES Y FORMULARIOS (TEMA OSCURO CASI NEGRO)
   ========================================================================== */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(5, 8, 14, 0.82);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    overflow-y: auto;
}
.modal-backdrop.open {
    display: flex;
}
.modal-box {
    background: #0F172A;
    color: #F8FAFC;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    width: 100%;
    max-width: 720px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65);
    padding: 28px;
    position: relative;
}
.modal-close-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #1E293B;
    color: #F8FAFC;
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
}
.modal-close-btn:hover {
    background: var(--accent);
    color: #0B0F17;
}

.form-group {
    margin-bottom: 14px;
}
.form-group label {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    color: #CBD5E1;
    margin-bottom: 5px;
}
.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 10px 12px;
    background: #0B0F17;
    color: #F8FAFC;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 13.5px;
    font-family: inherit;
    outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.15);
}

.btn-primary {
    background: #1E293B;
    color: #FFFFFF;
    border: 1px solid var(--border-light);
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}
.btn-primary:hover {
    background: var(--accent);
    color: #0B0F17;
    border-color: var(--accent);
}
.btn-accent {
    background: var(--accent);
    color: #0B0F17;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s;
}
.btn-accent:hover {
    background: var(--accent-hover);
}

@media (max-width: 1024px) {
    .grid-12, .grid-3, .analytics-kpi-grid {
        grid-template-columns: 1fr;
    }
    .col-3, .col-4, .col-5, .col-6, .col-7, .col-8 {
        grid-column: span 1;
    }
    .board-columns-header {
        display: none;
    }
    .board-candidate-row {
        grid-template-columns: 1fr;
        gap: 8px;
        padding-bottom: 12px;
    }
    .cand-cell-right {
        text-align: left;
        padding: 0 16px;
        flex-direction: row;
        align-items: baseline;
        gap: 10px;
    }
    .board-headline-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .board-right-instruction {
        text-align: left;
    }
}
