/* ========== RESET & BASE ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg-primary: #0a0e17;
    --bg-secondary: #0f1523;
    --bg-card: #151c2e;
    --bg-card-hover: #1a2340;
    --text-primary: #e8ecf4;
    --text-secondary: #8892a8;
    --text-muted: #5a6478;
    --accent-blue: #3b82f6;
    --accent-cyan: #06b6d4;
    --accent-green: #22c55e;
    --accent-yellow: #eab308;
    --accent-orange: #f97316;
    --accent-red: #ef4444;
    --accent-purple: #a855f7;
    --border: #1e293b;
    --border-light: #2a3550;
    --font-sans: 'Inter', -apple-system, sans-serif;
    --font-serif: 'DM Serif Display', Georgia, serif;
}

html { scroll-behavior: smooth; }

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

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

a { color: var(--accent-cyan); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-blue); }

/* ========== HEADER ========== */
.site-header {
    background: rgba(10, 14, 23, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 14px 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    color: white;
    font-weight: 900;
    font-size: 18px;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: -1px;
}

.logo-text h1 {
    font-family: var(--font-serif);
    font-size: 20px;
    line-height: 1.1;
    color: white;
}

.tagline {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.main-nav {
    display: flex;
    gap: 28px;
}

.main-nav a {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}

.main-nav a:hover { color: white; }

.header-date {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
}

/* ========== TICKER ========== */
.ticker-bar {
    background: var(--accent-red);
    padding: 8px 0;
    overflow: hidden;
}

.ticker-bar .container {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ticker-label {
    background: rgba(0,0,0,0.3);
    color: white;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 4px;
    white-space: nowrap;
    letter-spacing: 1px;
}

.ticker-content {
    overflow: hidden;
    flex: 1;
}

.ticker-scroll {
    display: flex;
    gap: 60px;
    animation: ticker 30s linear infinite;
    white-space: nowrap;
}

.ticker-scroll span {
    color: white;
    font-size: 13px;
    font-weight: 500;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ========== HERO STATS ========== */
.hero-stats {
    padding: 48px 0 32px;
    border-bottom: 1px solid var(--border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: border-color 0.3s;
}

.stat-card:hover { border-color: var(--accent-cyan); transform: translateY(-2px); }

.stat-card-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: border-color 0.3s, transform 0.2s;
}

.stat-number {
    font-size: 36px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 6px;
}

/* ========== SECTIONS ========== */
.section {
    padding: 60px 0;
}

.section-alt {
    background: var(--bg-secondary);
}

.section-header {
    margin-bottom: 36px;
}

.section-header h2 {
    font-family: var(--font-serif);
    font-size: 32px;
    margin-bottom: 8px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 15px;
    max-width: 600px;
}

/* ========== SCORE LEGEND ========== */
.score-legend {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
    padding: 10px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    flex-wrap: wrap;
}

.legend-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-secondary);
}

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

/* ========== TIME FILTER ========== */
.time-filter {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.filter-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    padding: 6px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-sans);
}

.filter-btn:hover { border-color: var(--accent-cyan); color: white; }
.filter-btn.active {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: white;
}

/* ========== BAROMETER PARTY LIST ========== */
.barometer-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.barometer-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px 24px;
    display: grid;
    grid-template-columns: 40px 180px 1fr 80px 100px;
    align-items: center;
    gap: 16px;
    transition: border-color 0.3s, background 0.3s;
}

.barometer-item:hover {
    border-color: var(--border-light);
    background: var(--bg-card-hover);
}

.barometer-rank {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-muted);
}

.barometer-party {
    display: flex;
    align-items: center;
    gap: 12px;
}

.party-color {
    width: 12px;
    height: 36px;
    border-radius: 3px;
}

.party-name {
    font-weight: 700;
    font-size: 15px;
}

.party-leader {
    font-size: 12px;
    color: var(--text-muted);
}

.barometer-bar-container {
    position: relative;
    height: 32px;
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
    overflow: hidden;
}

.barometer-bar {
    height: 100%;
    border-radius: 6px;
    transition: width 1s ease-out;
    display: flex;
    align-items: center;
    padding-left: 12px;
}

.barometer-bar-label {
    font-size: 12px;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.barometer-score {
    font-size: 28px;
    font-weight: 900;
    text-align: right;
}

.barometer-trend {
    font-size: 13px;
    font-weight: 600;
    text-align: right;
}

.trend-up { color: var(--accent-green); }
.trend-down { color: var(--accent-red); }
.trend-neutral { color: var(--text-muted); }

/* ========== MEDIA BAROMETER ========== */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.media-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    transition: border-color 0.3s;
}

.media-card:hover { border-color: var(--border-light); }

.media-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.media-name {
    font-weight: 700;
    font-size: 16px;
}

.media-type {
    font-size: 11px;
    color: var(--text-muted);
}

.media-score-big {
    font-size: 32px;
    font-weight: 900;
}

.media-meters {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.meter {
    display: flex;
    align-items: center;
    gap: 10px;
}

.meter-label {
    font-size: 11px;
    color: var(--text-secondary);
    width: 80px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meter-bar {
    flex: 1;
    height: 6px;
    background: rgba(255,255,255,0.05);
    border-radius: 3px;
    overflow: hidden;
}

.meter-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 1s ease-out;
}

.meter-value {
    font-size: 12px;
    font-weight: 600;
    width: 30px;
    text-align: right;
}

/* Bias spectrum */
.bias-spectrum {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.bias-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.bias-bar {
    height: 8px;
    background: linear-gradient(to right, #ef4444, #f97316, #eab308, #22c55e, #3b82f6, #8b5cf6);
    border-radius: 4px;
    position: relative;
}

.bias-marker {
    position: absolute;
    top: -4px;
    width: 16px;
    height: 16px;
    background: white;
    border: 3px solid var(--bg-card);
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 6px rgba(255,255,255,0.4);
}

.bias-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
}

.bias-labels span {
    font-size: 10px;
    color: var(--text-muted);
}

/* ========== HEADLINES COMPARATOR ========== */
.headline-group {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
}

.headline-topic {
    font-family: var(--font-serif);
    font-size: 20px;
    margin-bottom: 4px;
}

.headline-date {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.headline-variants {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.headline-variant {
    display: grid;
    grid-template-columns: 140px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(255,255,255,0.02);
    border-radius: 8px;
    border-left: 3px solid var(--border);
}

.headline-source {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

.headline-source-link {
    color: var(--text-secondary);
    transition: color 0.2s;
}

.headline-source-link:hover {
    color: var(--accent-cyan);
    text-decoration: underline;
}

.headline-text {
    font-size: 14px;
    font-weight: 500;
}

.headline-bias-tag {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.tag-neutral { background: rgba(34,197,94,0.15); color: var(--accent-green); }
.tag-slight { background: rgba(234,179,8,0.15); color: var(--accent-yellow); }
.tag-moderate { background: rgba(249,115,22,0.15); color: var(--accent-orange); }
.tag-strong { background: rgba(239,68,68,0.15); color: var(--accent-red); }

/* ========== CORRUPTION RADAR ========== */
.corruption-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.corruption-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    border-left: 4px solid;
}

.corruption-party {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 12px;
}

.corruption-cases {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.corruption-case {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(255,255,255,0.02);
    border-radius: 6px;
}

.case-name {
    font-size: 13px;
    font-weight: 500;
}

.case-status {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-open { background: rgba(249,115,22,0.15); color: var(--accent-orange); }
.status-trial { background: rgba(239,68,68,0.15); color: var(--accent-red); }
.status-sentenced { background: rgba(168,85,247,0.15); color: var(--accent-purple); }
.status-investigation { background: rgba(234,179,8,0.15); color: var(--accent-yellow); }
.status-fugitive { background: rgba(239,68,68,0.25); color: #ff4444; font-weight: 800; }

.corruption-total {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-secondary);
}

.corruption-total strong {
    color: var(--text-primary);
}

/* ========== METHODOLOGY ========== */
.methodology-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.method-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
    transition: border-color 0.3s;
}

.method-card:hover { border-color: var(--accent-cyan); }

.method-icon {
    font-size: 28px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.method-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.method-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========== FOOTER ========== */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 48px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 36px;
}

.footer-col p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 12px;
    line-height: 1.7;
}

.footer-col h4 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.footer-col a {
    display: block;
    color: var(--text-secondary);
    font-size: 13px;
    padding: 4px 0;
}

.footer-col a:hover { color: white; }

.logo-text-footer {
    font-family: var(--font-serif);
    font-size: 18px;
    color: white;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    font-size: 12px;
    color: var(--text-muted);
}

/* ========== SCORE COLORS ==========
   Escala semáforo: verde (bueno) → amarillo → naranja → rojo (malo)
   Sin azules ni cyans para evitar confusión con colores de partido
*/
.score-excellent { color: #22c55e; }  /* verde */
.score-good { color: #84cc16; }      /* verde-lima */
.score-average { color: #eab308; }   /* amarillo */
.score-poor { color: #f97316; }      /* naranja */
.score-bad { color: #ef4444; }       /* rojo */

/* ========== LEADERS RANKING ========== */
.leader-filter {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

/* Podium: top 3 verdad + top 3 mentirosos */
.leaders-podium {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 40px;
}

.podium-group {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    position: relative;
    overflow: hidden;
}

.podium-group::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.podium-truth::before { background: linear-gradient(90deg, #22c55e, #84cc16); }
.podium-lies::before { background: linear-gradient(90deg, #ef4444, #f97316); }

.podium-title {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

.podium-truth .podium-title { color: #22c55e; }
.podium-lies .podium-title { color: #ef4444; }

.podium-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.podium-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    background: rgba(255,255,255,0.02);
    border-radius: 12px;
    transition: background 0.2s;
}

.podium-item:hover { background: rgba(255,255,255,0.05); }

.podium-medal {
    font-size: 28px;
    width: 40px;
    text-align: center;
    flex-shrink: 0;
}

.leader-photo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border);
    flex-shrink: 0;
}

.leader-photo-placeholder {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
    color: white;
    flex-shrink: 0;
    border: 3px solid var(--border);
}

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

.podium-name {
    font-weight: 700;
    font-size: 15px;
}

.podium-role {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.podium-score {
    font-size: 32px;
    font-weight: 900;
    flex-shrink: 0;
}

/* Full ranking list */
.leaders-ranking {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 14px;
}

.leader-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
    display: flex;
    gap: 16px;
    transition: border-color 0.3s, transform 0.2s;
    position: relative;
    overflow: hidden;
}

.leader-card:hover {
    border-color: var(--border-light);
    transform: translateY(-2px);
}

.leader-card-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.leader-card-rank {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-muted);
}

.leader-card-photo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border);
}

.leader-card-photo-placeholder {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 20px;
    color: white;
    border: 3px solid var(--border);
}

.leader-card-score-big {
    font-size: 26px;
    font-weight: 900;
}

.leader-card-right {
    flex: 1;
    min-width: 0;
}

.leader-card-name {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 2px;
}

.leader-card-role {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.leader-card-party {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.leader-card-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 10px;
}

.leader-stat {
    text-align: center;
    padding: 6px 4px;
    border-radius: 6px;
    background: rgba(255,255,255,0.03);
}

.leader-stat-value {
    font-size: 18px;
    font-weight: 800;
    display: block;
}

.leader-stat-label {
    font-size: 9px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.leader-stat-lies .leader-stat-value { color: #ef4444; }
.leader-stat-half .leader-stat-value { color: #eab308; }
.leader-stat-truth .leader-stat-value { color: #22c55e; }

/* Donut-style bar for truth ratio */
.leader-truth-bar {
    height: 8px;
    border-radius: 4px;
    display: flex;
    overflow: hidden;
    gap: 2px;
}

.truth-segment-lies { background: #ef4444; }
.truth-segment-half { background: #eab308; }
.truth-segment-truth { background: #22c55e; }

.leader-worst {
    margin-top: 8px;
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.5;
    padding: 8px;
    background: rgba(239, 68, 68, 0.06);
    border-radius: 6px;
    border-left: 2px solid #ef4444;
}

.leader-worst strong {
    color: #ef4444;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.leader-trend-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
}

.trend-badge-up { background: rgba(34,197,94,0.15); color: #22c55e; }
.trend-badge-down { background: rgba(239,68,68,0.15); color: #ef4444; }
.trend-badge-neutral { background: rgba(90,100,120,0.15); color: var(--text-muted); }

/* ========== BULOS DESTACADOS ========== */
.bulos-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bulo-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 3px solid #ef4444;
    border-radius: 10px;
    padding: 18px 20px;
}

.bulo-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.bulo-party {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(255,255,255,0.08);
    color: var(--text-primary);
}

.bulo-date {
    font-size: 11px;
    color: var(--text-muted);
}

.bulo-verdict {
    font-size: 10px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: auto;
}

.bulo-claim {
    font-size: 15px;
    font-weight: 600;
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.5;
}

.bulo-source {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    padding: 8px 12px;
    background: rgba(34, 197, 94, 0.05);
    border-radius: 6px;
    border-left: 2px solid #22c55e;
}

.bulo-source strong {
    color: #22c55e;
}

/* ========== CORRUPTION ENHANCEMENTS ========== */
.corruption-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.corruption-impact {
    text-align: center;
}

.corruption-impact-value {
    font-size: 24px;
    font-weight: 900;
    display: block;
    line-height: 1;
}

.corruption-impact-label {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

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

.case-meta {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 3px;
    flex-wrap: wrap;
}

.case-amount {
    font-size: 11px;
    color: var(--text-muted);
}

.case-vigencia {
    font-size: 9px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.vigencia-actual { background: rgba(239,68,68,0.15); color: #ef4444; }
.vigencia-parcial { background: rgba(249,115,22,0.15); color: #f97316; }
.vigencia-anterior { background: rgba(234,179,8,0.15); color: #eab308; }
.vigencia-antigua { background: rgba(90,100,120,0.15); color: var(--text-muted); }

.corruption-clean {
    padding: 20px;
    text-align: center;
    color: #22c55e;
    font-size: 14px;
    font-weight: 500;
}

/* ========== AD PLACEMENTS ========== */
.ad-placement {
    text-align: center;
    padding: 16px 0;
}

.ad-label {
    display: inline-block;
    font-size: 9px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.ad-placeholder {
    border: 1px dashed var(--border-light);
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.01);
}

.ad-banner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 20px 24px;
}

.ad-banner .ad-placeholder {
    width: 100%;
    max-width: 728px;
    height: 90px;
    margin: 0 auto;
}

.ad-sidebar {
    position: sticky;
    top: 80px;
}

.ad-sidebar .ad-placeholder {
    width: 100%;
    min-height: 250px;
}

/* Headlines layout with sidebar */
.headlines-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
    align-items: start;
}

.headlines-main {
    min-width: 0;
}

.headlines-sidebar {
    padding-top: 80px;
}

/* ========== NEWSLETTER ========== */
.newsletter-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #0f1a2e 0%, #162040 50%, #0f1523 100%);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.newsletter-content {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-title {
    font-family: var(--font-serif);
    font-size: 32px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.newsletter-subtitle {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 28px;
}

.newsletter-input-group {
    display: flex;
    gap: 10px;
}

.newsletter-input {
    flex: 1;
    padding: 14px 18px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 15px;
    font-family: var(--font-sans);
    outline: none;
    transition: border-color 0.2s;
}

.newsletter-input:focus {
    border-color: var(--accent-cyan);
}

.newsletter-input::placeholder {
    color: var(--text-muted);
}

.newsletter-btn {
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    color: white;
    font-size: 15px;
    font-weight: 700;
    font-family: var(--font-sans);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.2s, transform 0.1s;
}

.newsletter-btn:hover {
    opacity: 0.9;
}

.newsletter-btn:active {
    transform: scale(0.98);
}

.newsletter-error {
    color: var(--accent-red);
    font-size: 13px;
    margin-top: 10px;
    min-height: 20px;
    display: none;
}

.newsletter-success {
    color: var(--accent-green);
    font-size: 14px;
    font-weight: 600;
    margin-top: 10px;
    min-height: 20px;
    display: none;
}

.newsletter-privacy {
    color: var(--text-muted);
    font-size: 11px;
    margin-top: 14px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .methodology-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .barometer-item { grid-template-columns: 30px 140px 1fr 60px 70px; padding: 14px; }
    .main-nav { display: none; }
    .leaders-podium { grid-template-columns: 1fr; }
    .leaders-ranking { grid-template-columns: 1fr; }
    .headlines-layout { grid-template-columns: 1fr; }
    .headlines-sidebar { padding-top: 0; }
    .ad-sidebar { position: static; }
}

@media (max-width: 600px) {
    .stats-grid { grid-template-columns: 1fr; }
    .barometer-item { grid-template-columns: 1fr; gap: 8px; }
    .footer-grid { grid-template-columns: 1fr; }
    .media-grid { grid-template-columns: 1fr; }
    .corruption-grid { grid-template-columns: 1fr; }
    .headline-variant { grid-template-columns: 1fr; }
    .newsletter-input-group { flex-direction: column; }
    .newsletter-btn { width: 100%; }
    .ad-banner .ad-placeholder { height: 60px; max-width: 100%; }
}
