/* v2-dark.css — Dark theme for all v2 pages
   Base: inicio-dark.css (dk- namespace) + overrides for production classes */

/* ============================
   BASE: body.dark
   ============================ */
html.dark-root {
    overflow-x: hidden;
}

html.dark-root *, html.dark-root *::before, html.dark-root *::after {
    box-sizing: border-box;
}

.dk-main {
    overflow-x: hidden;
}

body.dark {
    background: #121212;
    color: #e0e0e0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

/* Override CSS variables for dark */
body.dark {
    --ink: #e0e0e0;
    --ink-light: #b8b8b8;
    --ink-muted: #aaa;
    --ink-faint: #999;
    --paper: #121212;
    --paper-alt: #1a1a1a;
    --border: #2a2a2a;
    --border-light: #1e1e1e;
    --accent-blue: #6b8aaa;
}

/* ============================
   LAYOUT
   ============================ */
.dk-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* ============================
   HEADER
   ============================ */
.dk-header {
    border-bottom: 1px solid #2a2a2a;
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    background: #121212;
    transition: transform 0.2s ease;
}

.dk-header--hidden {
    transform: translateY(-100%);
    pointer-events: none;
}

.dk-header .dk-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dk-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.dk-logo-icon {
    width: 28px;
    height: 28px;
}

.dk-logo-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 600;
    color: #999;
}

.dk-nav {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.dk-nav a {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: #aaa;
    text-decoration: none;
}

.dk-nav a:hover {
    color: #aaa;
}

.dk-nav a.dk-nav--active {
    color: #aaa;
}

/* ============================
   MAIN
   ============================ */
.dk-main {
    padding: 2rem 0 4rem;
}

/* ============================
   TOPBAR (título + tensión)
   ============================ */
.dk-topbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #2a2a2a;
}

.dk-page-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #f0f0f0;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.dk-fecha {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: #aaa;
}

.dk-tension-box {
    text-align: right;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.dk-tension-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.dk-tension-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    color: #6b8aaa;
}

.dk-tension-number.dk-warm { color: #d4a853; }
.dk-tension-number.dk-hot { color: #c85a4a; }

.dk-tension-context {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: #999;
}

/* ============================
   SEMANTIC COLORS
   ============================ */
.dk-cool { color: #6b8aaa; }
.dk-warm { color: #d4a853; }
.dk-hot { color: #c85a4a; }

/* ============================
   COMMON ELEMENTS
   ============================ */
.dk-cat {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.dk-sep {
    color: #aaa;
    margin: 0 0.15rem;
}

.dk-time {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: #aaa;
}

.dk-canal {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: #aaa;
}

.dk-programa {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: #999;
}

/* ============================
   CHIPS (micro-data)
   ============================ */
.dk-chips {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
    align-items: center;
}

.dk-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.dk-chip {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: #aaa;
    padding: 0.2rem 0.5rem;
    border: 1px solid #2a2a2a;
    border-radius: 2px;
}

.dk-chip-label {
    color: #666;
}

/* Tensión */
.dk-chip--tension {
    color: #6b8aaa;
    border-color: #2a3a4a;
}

.dk-chip--tension.dk-warm {
    color: #d4a853;
    border-color: #4a3a1a;
}

.dk-chip--tension.dk-hot {
    color: #c85a4a;
    border-color: #4a2a2a;
}

/* Sesgo */
.dk-chip--negativo {
    color: #c85a4a;
    border-color: #4a2a2a;
}

.dk-chip--positivo {
    color: #5aaa6b;
    border-color: #2a4a2a;
}

.dk-chip--neutral {
    color: #aaa;
    border-color: #2a2a2a;
}

/* Eje político */
.dk-chip--centro {
    color: #a88ab8;
    border-color: #3a2a4a;
}

.dk-chip--izq {
    color: #c85a5a;
    border-color: #4a2a2a;
}

.dk-chip--der {
    color: #5a7ac8;
    border-color: #2a2a4a;
}

.dk-chip--vivo {
    color: #d4a853;
    border-color: #4a3a1a;
}

/* ============================
   CAPA 1: EL GOLPE
   ============================ */
.dk-golpe {
    margin-bottom: 3rem;
}

.dk-dominante {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #2a2a2a;
}

.dk-dominante-meta {
    margin-bottom: 0.5rem;
}

.dk-dominante-titulo {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 0.75rem;
}

.dk-dominante-titulo a {
    color: #f0f0f0;
    text-decoration: none;
}

.dk-dominante-titulo a:hover {
    color: #d4a853;
}

.dk-dominante-desc {
    font-size: 1rem;
    line-height: 1.6;
    color: #aaa;
    max-width: 700px;
}

/* Secundarias: grid 2 col */
.dk-secundarias {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.dk-secundaria {
    padding: 1rem 1rem 1rem 0;
    border-bottom: 1px solid #1e1e1e;
}

.dk-secundaria:nth-child(odd) {
    padding-right: 1.5rem;
    border-right: 1px solid #1e1e1e;
}

.dk-secundaria:nth-child(even) {
    padding-left: 1.5rem;
}

.dk-secundaria-meta {
    margin-bottom: 0.25rem;
}

.dk-secundaria-titulo {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.25;
}

.dk-secundaria-titulo a {
    color: #d0d0d0;
    text-decoration: none;
}

.dk-secundaria-titulo a:hover {
    color: #d4a853;
}

/* ============================
   CAPA 2: CONTEXTO
   ============================ */
.dk-contexto {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #2a2a2a;
}

.dk-bloque {
    margin-bottom: 2rem;
}

.dk-bloque-titulo {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #2a2a2a;
    margin-bottom: 1rem;
}

.dk-bloque-titulo--caliente {
    color: #d4a853;
    border-color: #4a3a1a;
}

.dk-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid #1a1a1a;
}

.dk-item:last-child {
    border-bottom: none;
}

.dk-item-meta {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.dk-item-titulo {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.3;
}

.dk-item-titulo a {
    color: #c8c8c8;
    text-decoration: none;
}

.dk-item-titulo a:hover {
    color: #d4a853;
}

/* ============================
   COBERTURAS (dk- grid)
   ============================ */
.dk-coberturas-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.dk-cobertura {
    padding: 0.75rem 1rem 0.75rem 0;
    border-bottom: 1px solid #1a1a1a;
}

.dk-cobertura:nth-child(odd) {
    padding-right: 1.5rem;
    border-right: 1px solid #1a1a1a;
}

.dk-cobertura:nth-child(even) {
    padding-left: 1.5rem;
}

.dk-cobertura-titulo {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0.25rem 0;
}

.dk-cobertura-titulo a {
    color: #b8b8b8;
    text-decoration: none;
}

.dk-cobertura-titulo a:hover {
    color: #d4a853;
}

.dk-cobertura-meta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: #999;
}

/* ============================
   CAPA 3: EL MAPA (por categoría)
   ============================ */
.dk-mapa {
    margin-bottom: 3rem;
}

.dk-cats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem 3rem;
}

.dk-cat-section {
    border-top: 1px solid #2a2a2a;
    padding-top: 0.75rem;
}

.dk-cat-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.75rem;
}

.dk-cat-name {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 600;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.dk-cat-stats {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: #999;
}

.dk-cat-item {
    padding: 0.35rem 0;
}

.dk-cat-link {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    text-decoration: none;
    color: #aaa;
    font-size: 0.9rem;
    line-height: 1.35;
}

.dk-cat-link:hover {
    color: #e0e0e0;
}

.dk-cat-item-tension {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: #aaa;
    min-width: 1.5rem;
    text-align: right;
    flex-shrink: 0;
}

.dk-cat-item-tension.dk-warm { color: #d4a853; }
.dk-cat-item-tension.dk-hot { color: #c85a4a; }

.dk-cat-item-titulo {
    flex: 1;
}

/* ============================
   NAV + FOOTER
   ============================ */
.dk-nav-bottom {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid #2a2a2a;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
}

.dk-nav-bottom a {
    color: #aaa;
    text-decoration: none;
}

.dk-nav-bottom a:hover {
    color: #aaa;
}

.dk-nav-bottom span {
    color: #aaa;
    margin: 0 0.5rem;
}

/* ============================
   STATIC PAGES (acerca, legales, privacidad)
   ============================ */
.dk-page {
    max-width: 680px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.dk-page-subtitle {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: #aaa;
    margin-top: 0.25rem;
    margin-bottom: 2rem;
}

.dk-page-body {
    color: #b8b8b8;
    line-height: 1.7;
    font-size: 0.95rem;
}

.dk-page-body h2 {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #e0e0e0;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.dk-page-body h3 {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #ccc;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.dk-page-body p {
    margin-bottom: 0.75rem;
}

.dk-page-body ul {
    margin: 0.5rem 0 1rem 1.5rem;
}

.dk-page-body li {
    margin-bottom: 0.4rem;
}

.dk-page-body strong {
    color: #d0d0d0;
}

.dk-page-nav {
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid #2a2a2a;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: #aaa;
    text-align: center;
}

.dk-page-nav a {
    color: #aaa;
    text-decoration: none;
}

.dk-page-nav a:hover {
    color: #d4a853;
}

.dk-page-nav span {
    margin: 0 0.5rem;
    color: #aaa;
}

.dk-footer {
    padding: 1.5rem 0;
    border-top: 1px solid #1a1a1a;
}

.dk-footer p {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: #aaa;
    text-align: center;
    margin: 0.3rem 0;
    overflow-wrap: break-word;
}

.dk-footer-links a {
    color: #999;
    text-decoration: none;
}

.dk-footer-links a:hover {
    color: #d4a853;
}

.dk-footer-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.dk-footer-social a {
    color: #666;
    text-decoration: none;
    transition: color 0.15s;
}

.dk-footer-social a:hover {
    color: #e0e0e0;
}

.dk-footer-social svg {
    display: block;
}


/* ============================================================
   DARK OVERRIDES FOR PRODUCTION CLASSES
   Used by v2 templates that reuse production HTML structures.
   ============================================================ */

/* --- Article (generic) --- */
body.dark .article--normal {
    border-bottom-color: #1e1e1e;
}

body.dark .article-source {
    color: #aaa;
}

body.dark .article-title a {
    color: #d0d0d0;
}

body.dark .article-title a:hover {
    color: #d4a853;
}

body.dark .article-summary {
    color: #aaa;
}

body.dark .article--normal .article-source {
    color: #aaa;
}

body.dark .article--normal .article-title a {
    color: #c8c8c8;
}

body.dark .article--normal .article-title a:hover {
    color: #d4a853;
}

body.dark .article--normal .article-summary {
    color: #aaa;
}

/* --- Rankings page --- */
body.dark .rankings-page {
    color: #e0e0e0;
}

body.dark .rankings-titulo {
    color: #f0f0f0;
}

body.dark .rankings-fecha {
    color: #aaa;
}

body.dark .rankings-ronda {
    border-bottom-color: #2a2a2a;
}

/* --- Tendencias page --- */
body.dark .tendencias-page {
    color: #e0e0e0;
}

body.dark .tendencias-titulo {
    color: #f0f0f0;
}

body.dark .tendencias-fecha {
    color: #aaa;
}

body.dark .tendencia {
    border-bottom-color: #1e1e1e;
}

body.dark .tendencia-categoria {
    color: #aaa;
}

body.dark .tendencia-meta-inline {
    color: #999;
}

body.dark .tendencia-titulo a {
    color: #d0d0d0;
}

body.dark .tendencia-titulo a:hover {
    color: #d4a853;
}

body.dark .tendencia-titulo--importante a {
    color: #f0f0f0;
}

body.dark .tendencia-copete {
    color: #bbb;
}

body.dark .tendencia-rango {
    color: #999;
}

body.dark .tendencia-estado {
    color: #d4a853;
}

body.dark .tendencias-empty {
    color: #aaa;
}

/* --- Canales page --- */
body.dark .canales-page {
    color: #e0e0e0;
}

body.dark .canales-titulo {
    color: #f0f0f0;
}

body.dark .canales-fecha {
    color: #aaa;
}

body.dark .canales-bajada {
    color: #bbb;
}

body.dark .canales-section {
    border-bottom-color: #2a2a2a;
}

body.dark .canales-section-title {
    color: #e0e0e0;
}

body.dark .canales-section-desc {
    color: #aaa;
}

body.dark .canal-rank {
    color: #aaa;
}

body.dark .canal-nombre {
    color: #ccc;
}

body.dark .canal-valor {
    color: #ccc;
}

body.dark .canal-palabra {
    color: #aaa;
}

body.dark .canal-bar-container {
    background: #1e1e1e;
}

body.dark .canal-bar--tension {
    background: #6b8aaa;
    opacity: 0.8;
}

body.dark .canal-bar--sesgo-neg {
    background: #c85a4a;
    opacity: 0.6;
}

body.dark .canal-bar--sesgo-pos {
    background: #6b8aaa;
    opacity: 0.5;
}

body.dark .canal-bar-center {
    border-left-color: #999;
}

body.dark .canal-valor--sesgo {
    /* keep default */
}

body.dark .sesgo-neg { color: #c85a4a; }
body.dark .sesgo-pos { color: #6b8aaa; }

body.dark .canal-espectro {
    border-color: #2a2a2a;
}

body.dark .espectro-segmento span {
    color: #e0e0e0;
}

body.dark .espectro-izquierda { background: #8b3a3a; }
body.dark .espectro-centro_izquierda { background: #6b4a4a; }
body.dark .espectro-centro { background: #555; }
body.dark .espectro-centro_derecha { background: #4a5a6b; }
body.dark .espectro-derecha { background: #3a4a6b; }
body.dark .espectro-derecha span { color: #e0e0e0; }
body.dark .espectro-na { background: #2a2a2a; }
body.dark .espectro-na span { color: #aaa; }

body.dark .espectro-leyenda-item {
    color: #aaa;
}

body.dark .espectro-dot.espectro-izquierda { background: #8b3a3a; }
body.dark .espectro-dot.espectro-centro_izquierda { background: #6b4a4a; }
body.dark .espectro-dot.espectro-centro { background: #555; }
body.dark .espectro-dot.espectro-centro_derecha { background: #4a5a6b; }
body.dark .espectro-dot.espectro-derecha { background: #3a4a6b; }
body.dark .espectro-dot.espectro-na { background: #2a2a2a; }

body.dark .canal-posicion-label {
    color: #bbb;
}

body.dark .canal-tension-teleprompter { color: #6b8aaa; }
body.dark .canal-tension-intercambio { color: #6b8aaa; }
body.dark .canal-tension-discusion { color: #d4a853; }
body.dark .canal-tension-gritos { color: #c85a4a; }
body.dark .canal-tension-agresion { color: #c85a4a; }

/* Daypart sections */
body.dark .canales-daypart {
    border-bottom-color: #1e1e1e;
}

body.dark .daypart-label {
    color: #aaa;
}

body.dark .daypart-canal-row {
    border-bottom-color: #1a1a1a;
}

body.dark .canal-mini-bar-wrap {
    background: #1e1e1e;
}

body.dark .canal-count {
    color: #999;
}

body.dark .canales-footer {
    border-top-color: #2a2a2a;
}

body.dark .canales-footer p {
    color: #aaa;
}

body.dark .canales-footer a {
    color: #6b8aaa;
}

/* Noticias ranking (quilomberas / sesgo extremo) */
body.dark .noticias-ranking {
    color: #e0e0e0;
}

body.dark .noticia-rank-item {
    border-bottom-color: #1e1e1e;
}

body.dark .noticia-rank-tension {
    color: #c85a4a;
}

body.dark .noticia-rank-canal {
    color: #aaa;
}

body.dark .noticia-rank-hora {
    color: #aaa;
}

body.dark .noticia-rank-titulo {
    color: #d0d0d0;
}

body.dark .noticia-rank-titulo:hover {
    color: #d4a853;
}

body.dark .noticia-rank-meta {
    color: #aaa;
}

body.dark .noticia-rank-pos {
    color: #aaa;
}

body.dark .noticia-rank-sesgo-val.sesgo-neg { color: #c85a4a; }
body.dark .noticia-rank-sesgo-val.sesgo-pos { color: #6b8aaa; }

body.dark .noticia-rank-cat {
    color: #aaa;
}

/* --- Noticia detail page --- */
body.dark .noticia-fuente {
    color: #aaa;
}

body.dark .noticia-canal {
    color: #ccc;
}

body.dark .noticia-categoria {
    color: #aaa;
}

body.dark .noticia-categoria::before {
    color: #aaa;
}

body.dark .noticia-programa {
    color: #aaa;
}

body.dark .noticia-programa::before {
    color: #aaa;
}

body.dark .noticia-fuente time {
    color: #aaa;
}

body.dark .noticia-fuente time::before {
    color: #aaa;
}

body.dark .noticia-titulo {
    color: #f0f0f0;
}

body.dark .noticia-indicadores {
    color: #aaa;
}

/* Tension chip: steam for hot, snow for cold */
.dk-chip--tension.dk-hot,
.dk-chip--tension:not(.dk-warm):not(.dk-hot) {
    position: relative;
}

/* Hot: steam rises */
.dk-chip--tension.dk-hot::after {
    content: '';
    position: absolute;
    top: -1px;
    right: 6px;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: #c85a4a;
    opacity: 0;
    animation: chip-steam 2s ease-out infinite;
}

@keyframes chip-steam {
    0% { opacity: 0; transform: translateY(0) scale(1); }
    15% { opacity: 0.5; }
    50% { opacity: 0.2; }
    100% { opacity: 0; transform: translateY(-8px) scale(0.4); }
}

/* Cold: snowflakes fall */
.dk-chip--tension:not(.dk-warm):not(.dk-hot)::before,
.dk-chip--tension:not(.dk-warm):not(.dk-hot)::after {
    content: '*';
    position: absolute;
    top: -3px;
    font-size: 10px;
    line-height: 1;
    color: #8ab4d4;
    opacity: 0;
}

.dk-chip--tension:not(.dk-warm):not(.dk-hot)::before {
    left: 8px;
    animation: chip-snow 2.2s ease-in infinite;
}

.dk-chip--tension:not(.dk-warm):not(.dk-hot)::after {
    left: 55%;
    animation: chip-snow 2.8s ease-in infinite 0.7s;
}

@keyframes chip-snow {
    0% { opacity: 0; transform: translateY(0); }
    10% { opacity: 0.8; }
    50% { opacity: 0.5; transform: translateY(8px) translateX(3px); }
    100% { opacity: 0; transform: translateY(14px) translateX(-2px); }
}

body.dark .noticia-cuerpo {
    color: #b8b8b8;
}

body.dark .noticia-cierre {
    color: #aaa;
}

body.dark .noticia-desarrollo {
    color: #aaa;
    border-top-color: #2a2a2a;
}

body.dark .noticia-desarrollo a {
    color: #d4a853;
}

body.dark .noticia-origen {
    color: #aaa;
}

body.dark .noticia-origen a {
    color: #aaa;
    border-bottom-color: #aaa;
}

body.dark .noticia-origen a:hover {
    color: #d4a853;
    border-bottom-color: #d4a853;
}

body.dark .noticia-actions {
    border-top-color: #2a2a2a;
    margin-top: 2rem;
    padding: 1.5rem 0;
    flex-wrap: wrap;
    gap: 1rem;
}

body.dark .noticia-share {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

body.dark .noticia-share-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

body.dark .noticia-share-label {
    color: #666;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Share buttons: brand-colored circles */
body.dark .share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    text-decoration: none;
    transition: opacity 0.15s, transform 0.15s;
    opacity: 0.75;
}

body.dark .share-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

body.dark .share-btn svg {
    display: block;
}

body.dark .share-whatsapp { color: #25D366; }
body.dark .share-telegram { color: #26A5E4; }
body.dark .share-x { color: #e7e9ea; }
body.dark .share-threads { color: #e7e9ea; }
body.dark .share-facebook { color: #1877F2; }
body.dark .share-linkedin { color: #0A66C2; }
body.dark .share-reddit { color: #FF4500; }
body.dark .share-copy { color: #666; }
body.dark .share-copy:hover { color: #aaa; }

/* Legacy text share-links (v1 compat) */
body.dark .share-link {
    color: #aaa;
    border-color: #2a2a2a;
}

body.dark .share-link:hover {
    color: #ccc;
    border-color: #aaa;
}

body.dark .noticia-volver a {
    color: #aaa;
    border-color: #2a2a2a;
}

body.dark .noticia-volver a:hover {
    color: #ccc;
    border-color: #aaa;
}

/* Related: more space before */
body.dark .noticia-related {
    margin-top: 2.5rem;
}

body.dark .badge-en-desarrollo {
    color: #d4a853;
    border-color: #4a3a1a;
    background: transparent;
}

body.dark .article-archived-tag {
    color: #aaa;
}

body.dark .lock-icon {
    color: #aaa;
}

/* Instrument */
body.dark .instrument-words {
    color: #aaa;
}

body.dark .instrument-words a {
    color: #aaa;
}

body.dark .instrument-words a:hover {
    color: #d4a853;
}

body.dark .instrument-words--actores {
    color: #aaa;
}

body.dark .instrument-words--actores a {
    color: #aaa;
}

body.dark .instrument-words--actores a:hover {
    color: #d4a853;
}

/* Related */
body.dark .noticia-related {
    border-top-color: #2a2a2a;
}

body.dark .noticia-related-title {
    color: #e0e0e0;
}

body.dark .related-list .article {
    border-bottom-color: #1e1e1e;
}

/* --- Breadcrumb --- */
body.dark .breadcrumb {
    color: #999;
}

body.dark .breadcrumb a {
    color: #aaa;
}

body.dark .breadcrumb a:hover {
    color: #d4a853;
}

body.dark .breadcrumb-sep {
    color: #aaa;
}

/* --- Cobertura detail page --- */
body.dark .cobertura-full {
    color: #e0e0e0;
}

body.dark .cobertura-categoria {
    color: #aaa;
}

body.dark .cobertura-importancia {
    color: #aaa;
}

body.dark .cobertura-titulo {
    color: #f0f0f0;
}

body.dark .cobertura-full .cobertura-titulo {
    color: #f0f0f0;
}

body.dark .cobertura-copete {
    color: #aaa;
}

body.dark .cobertura-meta {
    color: #aaa;
}

body.dark .cobertura-meta-item {
    color: #aaa;
}

body.dark .cobertura-meta-sep {
    color: #aaa;
}

body.dark .cobertura-canal {
    color: #aaa;
    border-color: #2a2a2a;
    background: transparent;
}

body.dark .cobertura-cuerpo {
    color: #b8b8b8;
}

body.dark .cobertura-cuerpo h2 {
    color: #ccc;
    border-bottom-color: #2a2a2a;
}

body.dark .cobertura-cuerpo p {
    color: #b8b8b8;
}

body.dark .cobertura-cuerpo a {
    color: #6b8aaa;
}

body.dark .cobertura-keywords {
    border-top-color: #2a2a2a;
}

body.dark .cobertura-keyword {
    color: #aaa;
    border-color: #2a2a2a;
    background: transparent;
}

body.dark .cobertura-keyword:hover {
    color: #d4a853;
    border-color: #4a3a1a;
}

body.dark .cobertura-footer {
    border-top-color: #2a2a2a;
}

body.dark .cobertura-footer-meta {
    color: #aaa;
}

body.dark .cobertura-nav .btn {
    color: #aaa;
    border-color: #2a2a2a;
}

body.dark .cobertura-nav .btn:hover {
    color: #ccc;
    border-color: #aaa;
    background: transparent;
}

/* --- Search page --- */
body.dark .search-page {
    color: #e0e0e0;
}

body.dark .search-box input {
    background: #1a1a1a;
    border-color: #2a2a2a;
    color: #e0e0e0;
}

body.dark .search-box input:focus {
    border-color: #aaa;
}

body.dark .search-box input::placeholder {
    color: #999;
}

body.dark .search-submit {
    color: #aaa;
    background: transparent;
    border-color: #2a2a2a;
}

body.dark .search-submit:hover {
    color: #ccc;
    border-color: #aaa;
}

body.dark .search-status {
    color: #aaa;
}

body.dark .search-chips .search-chip {
    background: #1e1e1e;
    color: #aaa;
    border-color: #2a2a2a;
}

body.dark .search-chips .search-chip--active {
    background: #2a2a2a;
    color: #d4a853;
    border-color: #4a3a1a;
}

body.dark .search-filter-toggle {
    color: #aaa;
}

body.dark .search-channel-hidden {
    background: #1a1a1a;
    color: #e0e0e0;
    border-color: #2a2a2a;
}

body.dark .search-checkbox-label {
    color: #aaa;
}

body.dark .search-results mark {
    background: rgba(212, 168, 83, 0.25);
    color: #d4a853;
}

body.dark .search-results .article-archived {
    color: #aaa;
}

body.dark .search-pagination button {
    color: #aaa;
    border-color: #2a2a2a;
    background: transparent;
}

body.dark .search-pagination button:hover:not(:disabled) {
    color: #ccc;
    border-color: #aaa;
}

body.dark .search-pagination button:disabled {
    color: #aaa;
}

/* Search nav (fixed header for results) */
body.dark .search-nav {
    background: #121212;
    border-bottom-color: #2a2a2a;
}

body.dark .search-nav-name {
    color: #aaa;
}

body.dark .search-nav-query {
    color: #d4a853;
}

body.dark .search-nav-count {
    color: #aaa;
}

body.dark .search-nav-sep {
    color: #aaa;
}

body.dark .search-nav-arrow {
    color: #aaa;
    border-color: #2a2a2a;
}

body.dark .search-nav-arrow:hover:not(:disabled) {
    color: #ccc;
    border-color: #aaa;
}

body.dark .search-nav-arrow:disabled {
    color: #aaa;
    border-color: #1e1e1e;
}

body.dark .search-nav-page {
    color: #aaa;
}

body.dark .search-nav-input {
    background: #1a1a1a;
    color: #e0e0e0;
    border-color: #2a2a2a;
}

body.dark .search-nav-input::placeholder {
    color: #999;
}

body.dark .search-nav-submit {
    color: #aaa;
}

body.dark .search-nav-submit:hover {
    color: #ccc;
}

/* --- Container override (for v2 pages using .container) --- */
body.dark .container {
    /* Inherits from production styles.css, just ensure it works on dark bg */
}

body.dark .main {
    /* Already handled by body.dark background */
}

body.dark .footer {
    border-top-color: #1a1a1a;
}

body.dark .footer p {
    color: #aaa;
}

body.dark .footer a {
    color: #999;
}

body.dark .footer a:hover {
    color: #aaa;
}


/* ── GANCHO ── */
.gancho {
    text-align: center;
    padding: 4rem 1.5rem 3.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 2rem;
    position: relative;
}

.gancho-pulpos {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
}

.gancho-face {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: none;
}

.gancho-face--active {
    opacity: 1;
}

@media (max-width: 600px) {
    .gancho-pulpos {
        width: 64px;
        height: 64px;
        margin-bottom: 0.8rem;
    }
}

.gancho-tagline {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    font-weight: 800;
    color: #f0f0f0;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin: 0 auto;
    max-width: 600px;
    text-wrap: balance;
}

.gancho-tagline em {
    font-style: normal;
    color: #d4a853;
}

.gancho-sub {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-top: 1.2rem;
}

@media (max-width: 600px) {
    .gancho-tagline {
        font-size: 1.7rem;
    }
    .gancho {
        padding: 3rem 1rem 2.5rem;
    }
}

/* ============================
   EL CLIMA DE LA TELE (inicio v2)
   Tufte + gamification: data-ink, hsl interpolation,
   ambient encoding, breathing pulse
   ============================ */

/* --- Keyframes --- */
@keyframes parte-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@keyframes canal-breathe {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* --- Section titles --- */
.section-titulo {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2em;
    font-weight: 700;
    color: #d0d0d0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.section-titulo--warm {
    color: #c85a4a;
}

.section-titulo--importante {
    color: #d4a853;
}

.section-titulo--eje {
    color: #8a9ab8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#eje-window-label {
    transition: none;
}

.eje {
    min-height: 0;
}

.eje h2 {
    height: 1.6em;
    line-height: 1.6em;
}

@media (max-width: 600px) {
    .section-titulo--eje {
        font-size: 0.85rem;
    }
}

.section-titulo--temas {
    color: #7ab88a;
}

.section-titulo--sagas {
    color: #b89a6b;
}

.section-titulo--rachas {
    color: #c9a84c;
}

.section-ico {
    display: inline-block;
    vertical-align: middle;
    width: 28px;
    height: 28px;
    margin-right: 6px;
}

.section-bajada {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: #999;
    margin: -0.5rem 0 1rem 0;
}

.section-titulo--keywords {
    color: #a88ab8;
}

/* ── 1. EL PARTE ── */
.parte {
    padding: 1rem 0 2.5rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid #2a2a2a;
}

.parte-live {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.4rem;
    font-weight: 700;
    color: #e0e0e0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.parte-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #c85a4a;
    animation: parte-pulse 2s ease-in-out infinite;
}

.parte-titulo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #e0e0e0;
    line-height: 1.2;
    margin: 0 0 0.75rem;
}

.parte-estado {
    font-weight: 800;
    transition: color 0.4s ease, opacity 0.15s ease;
    display: inline-block;
}

.parte-estado.dk-cool {
    color: hsl(160, 50%, 48%); /* green zone */
}

.parte-estado.dk-warm {
    color: hsl(30, 65%, 52%); /* orange zone */
}

.parte-estado.dk-hot {
    color: hsl(5, 75%, 50%); /* red zone */
}

/* Gauge bar — hsl interpolation */
.parte-gauge {
    height: 6px;
    border-radius: 1px;
    background: #1e1e1e;
    margin-bottom: 0.75rem;
}

.parte-gauge-fill {
    height: 100%;
    background: hsl(calc(200 - var(--intensity) * 200), calc(40% + var(--intensity) * 25%), calc(38% + var(--intensity) * 12%));
    transition: width 0.4s ease;
}

.parte-contexto {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: #aaa;
    line-height: 1.6;
    margin: 0;
}

/* Deltas */
.parte-delta {
    font-weight: 600;
}

.parte-delta--up {
    color: #c85a4a;
}

.parte-delta--down {
    color: #6b8aaa;
}

/* Timeline: tension line chart */
.parte-timeline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    height: 40px;
}

.parte-timeline-svg {
    flex: 1;
    height: 100%;
}

.parte-timeline-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: #999;
    flex-shrink: 0;
}

/* Journey timeline (animated) */
.parte-journey {
    margin-top: 1rem;
    height: 96px;
    position: relative;
}

/* SVG text classes — sizes are in SVG user units (viewBox matches container px) */
.jrn-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    fill: #aaa;
    transition: opacity 0.5s ease;
}

.jrn-now-temp {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    font-weight: 700;
    transition: opacity 0.5s ease;
}

.jrn-now-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    fill: #ccc;
    text-transform: uppercase;
    font-weight: 600;
    transition: opacity 0.5s ease;
}

.jrn-tooltip {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    fill: #ccc;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

.parte-now-dot {
    animation: parte-pulse 2.5s ease-in-out infinite;
}

/* ── 2. LO IMPORTANTE ── */
.principales {
    padding-bottom: 2.5rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid #2a2a2a;
}

/* Destacadas cards */
.dest-card {
    background: none;
    padding: 0.8rem 0;
    margin: 0 0 0.5rem 0;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.dest-card:last-child {
    border-bottom: none;
}

.dest-card:last-child {
    margin-bottom: 0;
}

.dest-thumb-wrap {
    position: relative;
    width: 120px;
    height: 68px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.dest-thumb {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ppal {
    padding: 0.75rem 0;
    border-bottom: 1px solid #1a1a1a;
    min-width: 0;
}

.ppal:last-child {
    border-bottom: none;
}

.ppal--block {
    display: block;
    padding-bottom: 1.25rem;
    margin-bottom: 0.25rem;
    border-bottom: 1px solid #2a2a2a;
}

.ppal-meta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: #aaa;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.35rem;
    flex-wrap: wrap;
}

.ppal-canal { color: #aaa; }
.ppal-sep { color: #aaa; }
.ppal-hora { color: #aaa; }
.ppal-cat { color: #aaa; text-transform: uppercase; letter-spacing: 0.05em; }
.ppal-programa { color: #888; }

.section-titulo-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 0.2rem;
}

.ppal-vivo {
    color: #d4a853;
    font-weight: 600;
}

.ppal-titulo {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.35;
    margin: 0;
    min-width: 0;
}

.ppal-titulo a {
    color: #c8c8c8;
    text-decoration: none;
}

.ppal-titulo a:hover {
    color: #d4a853;
}

.ppal-titulo--block {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 0.35rem;
}

.ppal-titulo--block a {
    color: #f0f0f0;
}

.ppal-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #bbb;
    max-width: 700px;
    margin: 0 0 0.5rem;
}

/* Tension number — hsl color via --intensity */
.ppal-tension {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    color: hsl(calc(200 - var(--intensity) * 160), 45%, calc(40% + var(--intensity) * 15%));
    flex-shrink: 0;
    min-width: 1.5rem;
    text-align: right;
}

/* ── 3. CANALES ── */
.canales-rank {
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #2a2a2a;
}

.canal-row {
    display: grid;
    grid-template-columns: 7rem 1fr 2rem auto;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0;
}

.canal-row--hot {
    animation: canal-breathe 3s ease-in-out infinite;
}

.canal-nombre {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: #aaa;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.canal-track {
    height: 5px;
    background: #1a1a1a;
    border-radius: 1px;
}

.canal-bar {
    height: 100%;
    border-radius: 1px;
    background: hsl(calc(200 - var(--intensity) * 160), 45%, calc(30% + var(--intensity) * 15%));
    transition: width 0.3s ease;
}

.canal-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    text-align: right;
    color: hsl(calc(200 - var(--intensity) * 160), 45%, calc(40% + var(--intensity) * 15%));
}

.canal-word {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: #999;
    white-space: nowrap;
}

/* ── 4. SE ESTÁ CALENTANDO + SAGAS ── */
.cocinando {
    padding-bottom: 2.5rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid #2a2a2a;
}

.cocina-item {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #1a1a1a;
}

.cocina-item:last-child {
    border-bottom: none;
}

.cocina-tension {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.15rem;
    font-weight: 700;
    /* color set inline via temp_color filter */
    flex-shrink: 0;
    min-width: 3rem;
    text-align: right;
    position: relative;
}

/* Steam: rising particles that appear above hot items (30°+) */
.cocina-tension::before,
.cocina-tension::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0;
    pointer-events: none;
    filter: blur(0.5px);
}

.cocina-tension::before {
    top: -2px;
    right: 25%;
    animation: steam-rise 2.2s ease-out infinite;
    animation-delay: 0s;
    animation-play-state: var(--steam-play, paused);
}

.cocina-tension::after {
    top: -2px;
    right: 55%;
    animation: steam-rise 2.6s ease-out infinite;
    animation-delay: 0.8s;
    animation-play-state: var(--steam-play, paused);
}

@keyframes steam-rise {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0.5);
    }
    15% {
        opacity: var(--steam-opacity, 0);
    }
    65% {
        opacity: calc(var(--steam-opacity, 0) * 0.5);
    }
    100% {
        opacity: 0;
        transform: translateY(-16px) scale(1.3);
    }
}

.cocina-saga {
    color: #d4a853;
}

.cocina-body {
    flex: 1;
    min-width: 0;
}

.cocina-link {
    font-size: 1.15rem;
    font-weight: 600;
    color: #e8e8e8;
    text-decoration: none;
    line-height: 1.3;
    display: block;
}

.cocina-link:hover {
    color: #d4a853;
}

.cocina-desc {
    font-size: 0.9rem;
    color: #bbb;
    margin: 0.25rem 0 0;
    line-height: 1.5;
}

.cocina-meta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: #999;
    display: block;
    margin-top: 0.15rem;
}

/* ── 5. EJE POLÍTICO ── */
.eje {
    padding-bottom: 2.5rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid #2a2a2a;
}

.eje-tabs {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.eje-tab {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.35rem 0.7rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: none;
    color: #777;
    cursor: pointer;
    transition: all 0.15s;
}

.eje-tab:hover {
    color: #ccc;
    border-color: rgba(255, 255, 255, 0.2);
}

.eje-tab--active {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
}

.eje-fila {
    padding: 0.6rem 0 0;
}

.eje-nombre {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 600;
    color: #ccc;
    display: block;
    padding-bottom: 0.25rem;
}

.eje-track {
    height: 10px;
    background: #1a1a1a;
    border-radius: 2px;
    position: relative;
}

.eje-center {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #333;
}

.eje-bar {
    position: absolute;
    top: 0;
    height: 100%;
    border-radius: 2px;
    transition: width 0.6s ease;
}

.eje-bar--left {
    right: 50%;
    background: #8b4444;
}

.eje-bar--right {
    left: 50%;
    background: #44618b;
}

.eje-legend {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: #aaa;
}

.eje-legend--left { color: #8b4444; }
.eje-legend--right { color: #44618b; }

/* ── 6. POR TEMA ── */
.temas {
    padding-bottom: 2.5rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid #2a2a2a;
}

/* Tema article layout */
.tema-article {
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.tema-article:last-child {
    border-bottom: none;
}

.tema-row-top {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0.7rem;
}

.tema-row-top .tema-thumb-link {
    flex: 0 0 auto;
}

.tema-row-top .cocina-link {
    flex: 1;
    min-width: 0;
    display: block;
}

.tema-thumb {
    display: block;
    width: auto;
    height: 50px;
    border-radius: 3px;
    object-fit: cover;
    opacity: 0.85;
    transition: opacity 0.2s;
}

.tema-thumb:hover {
    opacity: 1;
}

@media (max-width: 600px) {
    .tema-thumb {
        height: 60px;
    }
    .tema-row-top .cocina-link {
        font-size: 0.9em !important;
    }
}

.tema-grupo {
    padding: 1rem 0 0;
    margin-bottom: 2rem;
}

.tema-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.tema-divider {
    border: none;
    border-top: 1px solid;
    margin: 0 0 0.8rem 0;
}

.tema-icon {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    object-fit: contain;
}

.tema-nombre {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5em;
    line-height: 1;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tema-nombre--cool { color: #6b8aaa; }
.tema-nombre--warm { color: #d4a853; }
.tema-nombre--hot { color: #c85a4a; }

/* ── 6b. PULPO GRID — specialist cards ── */
.pulpo-grid-section {
    padding-bottom: 2.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #2a2a2a;
}

.pulpo-grid-bajada {
    font-size: 1rem;
    color: #ccc;
    margin: -0.2rem 0 1.4rem;
    line-height: 1.5;
}

.pulpo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.75rem;
}

.pulpo-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    padding: 1.6rem 1rem 1.4rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.pulpo-cell:hover {
    background: rgba(var(--cell-rgb), 0.1);
    border-color: rgba(var(--cell-rgb), 0.4);
    transform: translateY(-3px);
}

.pulpo-cell-img {
    width: 120px;
    height: 120px;
    margin-bottom: 0.8rem;
    filter: drop-shadow(0 0 12px rgba(var(--cell-glow), 0.4));
    transition: filter 0.2s, transform 0.2s;
}

.pulpo-cell:hover .pulpo-cell-img {
    filter: drop-shadow(0 0 20px rgba(var(--cell-glow), 0.7));
    transform: scale(1.06);
}

.pulpo-cell-name {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.25rem;
}

.pulpo-cell-tagline {
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    color: #aaa;
    line-height: 1.3;
    font-style: italic;
}

@media (max-width: 480px) {
    .pulpo-grid {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 0.4rem;
    }
    .pulpo-cell {
        padding: 0.6rem 0.2rem 0.6rem;
        min-width: 0;
        overflow: hidden;
    }
    .pulpo-cell-img {
        width: 56px;
        height: 56px;
        margin-bottom: 0.4rem;
    }
    .pulpo-cell-name {
        font-size: 0.7rem;
        word-break: break-word;
    }
    .pulpo-cell-tagline {
        font-size: 0.65rem;
    }
}

/* ── 7. KEYWORDS ── */
.keywords {
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #2a2a2a;
}

.keywords-cloud {
    line-height: 2.2;
}

.keywords-cloud span {
    color: #7a8a8a;
    margin-right: 0.6rem;
    display: inline-block;
}

/* ── 8. BUSCÁ CTA ── */
.buscar-cta {
    text-align: center;
    padding: 3.5rem 1rem 2.5rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    margin-top: 1.5rem;
}

.buscar-hook {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #e8e8e8;
    margin: 0 0 1.8rem;
    line-height: 1.4;
}

.buscar-form {
    display: flex;
    gap: 0;
    max-width: 420px;
    margin: 0 auto;
}

.buscar-input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 6px 0 0 6px;
    padding: 0.7rem 1rem;
    transition: border-color 0.2s;
}

.buscar-input-wrap:focus-within {
    border-color: #555;
}

.buscar-icon {
    color: #666;
    flex-shrink: 0;
}

.buscar-input {
    flex: 1;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #e0e0e0;
    background: transparent;
    border: none;
    padding: 0;
    outline: none;
}

.buscar-input::placeholder {
    color: #666;
}

.buscar-submit {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    color: #111;
    background: #d4a853;
    border: none;
    padding: 0 1.3rem;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
}

.buscar-submit:hover {
    background: #e0b760;
}

.buscar-tagline {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: #888;
    margin: 1.2rem 0 0;
    letter-spacing: 0.03em;
}


/* ============================
   MOBILE
   ============================ */
@media (max-width: 768px) {
    .dk-page-title {
        font-size: 1.8rem;
    }

    .dk-topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .dk-tension-box {
        align-self: flex-start;
    }

    .dk-tension-number {
        font-size: 2rem;
    }

    .dk-dominante-titulo {
        font-size: 1.5rem;
    }

    .dk-secundarias {
        grid-template-columns: 1fr;
    }

    .dk-secundaria:nth-child(odd) {
        padding-right: 0;
        border-right: none;
    }

    .dk-secundaria:nth-child(even) {
        padding-left: 0;
    }

    .dk-contexto {
        grid-template-columns: 1fr;
    }

    .dk-coberturas-grid {
        grid-template-columns: 1fr;
    }

    .dk-cobertura:nth-child(odd) {
        padding-right: 0;
        border-right: none;
    }

    .dk-cobertura:nth-child(even) {
        padding-left: 0;
    }

    .dk-cats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Inicio mobile — overflow protection */
    .section-titulo {
        font-size: 1.1rem;
        letter-spacing: 0.05em;
        overflow-wrap: break-word;
        word-break: break-word;
    }

    .section-ico {
        width: 20px;
        height: 20px;
        margin-right: 4px;
    }

    .parte-live {
        font-size: 1.1rem;
    }

    .parte-titulo {
        font-size: 1.5rem;
    }

    .cocina-link {
        font-size: 22px !important;
        overflow-wrap: break-word;
        word-break: break-word;
    }

    .ppal-titulo--block {
        font-size: 22px !important;
        overflow-wrap: break-word;
        word-break: break-word;
    }

    .ppal-desc,
    .cocina-desc {
        font-size: 15px !important;
        overflow-wrap: break-word;
        word-break: break-word;
    }

    .eje-legend {
        font-size: 0.7rem;
    }

    .buscar-cta {
        padding: 2.5rem 0.5rem 1.8rem;
    }

    .buscar-form {
        max-width: 100%;
    }

    .buscar-submit {
        padding: 0 0.8rem;
        font-size: 0.75rem;
    }

    .buscar-input {
        font-size: 0.85rem;
    }

    .canal-row {
        grid-template-columns: 5.5rem 1fr 2rem auto;
        gap: 0.4rem;
    }

    .canal-nombre {
        font-size: 0.8rem;
    }

}

@media (max-width: 480px) {
    .dk-page-title {
        font-size: 1.5rem;
    }

    .dk-dominante-titulo {
        font-size: 1.3rem;
    }

    .dk-secundaria-titulo {
        font-size: 1rem;
    }

    html {
        font-size: 18px;
    }

    /* Inicio 480px */
    .section-titulo {
        font-size: 1rem;
        letter-spacing: 0.04em;
    }

    .parte-live {
        font-size: 1rem;
    }

    .parte-titulo {
        font-size: 1.2rem;
    }

    .cocina-link {
        font-size: 21px !important;
    }

    .cocina-tension {
        font-size: 1rem;
        min-width: 2.5rem;
    }

    .ppal-titulo--block {
        font-size: 21px !important;
    }

    .ppal-desc,
    .cocina-desc {
        font-size: 14px !important;
    }

    .eje-nombre {
        font-size: 0.8rem;
    }

    .keywords-cloud span {
        font-size: 0.85rem !important;
        margin-right: 0.4rem;
    }

    .buscar-input {
        font-size: 0.95rem;
    }

    .canal-row {
        grid-template-columns: 4.5rem 1fr 2rem auto;
    }

    .canal-word {
        display: none;
    }

}


/* ============================
   CRONOLOGÍA V2
   ============================ */

/* Keyword cloud */
.crono-keywords {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #2a2a2a;
}

.crono-keywords-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.crono-keywords-cloud {
    line-height: 1.8;
}

.crono-keywords-cloud span {
    color: #9aa;
    margin-right: 0.6rem;
    display: inline-block;
}

/* ============================
   READING HEADER (instrumento de navegación, dark)
   ============================ */

/* Sky colors for daypart segments */
body.dark {
    --sky-madrugada: #1a1a2e;
    --sky-primera-manana: #8a5a40;
    --sky-manana: #3a6a7a;
    --sky-mediodia: #7a6a3a;
    --sky-primera-tarde: #7a5a2a;
    --sky-segunda-tarde: #6a3a2a;
    --sky-prime: #4a3a6a;
    --sky-trasnoche: #2d2d44;
}

body.dark .reading-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: #121212;
    border-bottom: 1px solid #2a2a2a;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

body.dark .reading-header--visible {
    transform: translateY(0);
}

body.dark .reading-header-inner {
    max-width: 760px;
    margin: 0 auto;
    padding: 0.4rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0;
}

/* Brand */
body.dark .reading-brand {
    flex-shrink: 0;
    padding-right: 0.75rem;
    border-right: 1px solid #2a2a2a;
}

body.dark .reading-brand a {
    display: flex;
    align-items: center;
}

body.dark .reading-logo {
    width: 32px;
    height: 32px;
}

/* Current position indicator */
body.dark .reading-current {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0 0.75rem;
    border-right: 1px solid #2a2a2a;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: #ccc;
    white-space: nowrap;
}

body.dark .reading-current-icon {
    font-size: 1.1rem;
}

body.dark .reading-current-position {
    font-weight: 700;
    font-size: 0.85rem;
    color: #e0e0e0;
}

body.dark .reading-current-sep {
    color: #666;
}

body.dark .reading-current-date {
    color: #888;
    font-weight: 500;
}

/* Carousel wrap */
body.dark .reading-carousel-wrap {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex: 1;
    padding: 0 0.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    overflow: hidden;
}

body.dark .reading-arrow {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    cursor: pointer;
    transition: color 0.15s ease;
    background: none;
    border: none;
    padding: 0;
}

body.dark .reading-arrow:hover {
    color: #ccc;
}

body.dark .reading-carousel {
    display: flex;
    align-items: center;
    gap: 2px;
    overflow-x: auto;
    overflow-y: hidden;
    flex: 1;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 calc(50% - 50px);
}

body.dark .reading-carousel::-webkit-scrollbar {
    display: none;
}

/* Segments */
body.dark .reading-segment {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    min-width: 48px;
    color: #888;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    border-radius: 3px;
    flex-shrink: 0;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    scroll-snap-align: center;
}

body.dark .reading-segment:hover {
    color: #ccc;
}

body.dark .reading-segment--has-content {
    color: #999;
    background: #1a1a1a;
}

body.dark .reading-segment--active {
    color: #e0e0e0;
    font-weight: 700;
    padding: 6px 12px;
    font-size: 0.7rem;
    min-width: 60px;
}

/* Daypart colors */
body.dark .reading-segment--active[data-daypart="madrugada"] { background: var(--sky-madrugada); }
body.dark .reading-segment--active[data-daypart="primera-manana"] { background: var(--sky-primera-manana); }
body.dark .reading-segment--active[data-daypart="manana"] { background: var(--sky-manana); }
body.dark .reading-segment--active[data-daypart="mediodia"] { background: var(--sky-mediodia); }
body.dark .reading-segment--active[data-daypart="primera-tarde"] { background: var(--sky-primera-tarde); }
body.dark .reading-segment--active[data-daypart="segunda-tarde"] { background: var(--sky-segunda-tarde); }
body.dark .reading-segment--active[data-daypart="prime"] { background: var(--sky-prime); }
body.dark .reading-segment--active[data-daypart="trasnoche"] { background: var(--sky-trasnoche); }

body.dark .reading-segment--empty {
    color: #444;
    opacity: 0.3;
    cursor: default;
    background: transparent;
}

/* Search icon */
body.dark .reading-search {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    text-decoration: none;
    padding-left: 0.75rem;
    margin-left: 0.75rem;
    border-left: 1px solid #2a2a2a;
}

body.dark .reading-search:hover {
    color: #ccc;
}

/* Timeline inside reading header */
body.dark .reading-timeline {
    padding: 4px 0 6px;
    border-top: 1px solid #1e1e1e;
}

body.dark .reading-timeline-inner {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Timeline marks */
body.dark .timeline-marks {
    position: relative;
    height: 14px;
    margin-bottom: 2px;
}

body.dark .timeline-mark {
    position: absolute;
    transform: translateX(-50%);
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    color: #666;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

body.dark .timeline-mark:hover {
    color: #d4a853;
}

body.dark .timeline-mark--current {
    color: #e0e0e0;
    font-weight: 600;
}

body.dark .timeline-mark--hidden {
    display: none;
}

/* Timeline track */
body.dark .timeline-track {
    position: relative;
    height: 12px;
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0 4px;
}

body.dark .timeline-line {
    position: absolute;
    left: 4px;
    right: 4px;
    height: 2px;
    background: #2a2a2a;
    border-radius: 1px;
}

body.dark .timeline-progress {
    position: absolute;
    left: 4px;
    height: 2px;
    background: #d4a853;
    border-radius: 1px;
    transition: width 0.15s ease;
}

body.dark .timeline-cursor {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #e0e0e0;
    border-radius: 50%;
    transform: translateX(-50%);
    transition: left 0.15s ease;
    z-index: 2;
}

/* Channel filter bar */
body.dark .reading-channels {
    border-top: 1px solid #1e1e1e;
    padding: 4px 0;
}

body.dark .reading-channels-inner {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    gap: 2px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

body.dark .reading-channels-inner::-webkit-scrollbar {
    display: none;
}

body.dark .channel-segment {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    padding: 3px 8px;
    color: #666;
    text-decoration: none;
    white-space: nowrap;
    border-radius: 3px;
    flex-shrink: 0;
    scroll-snap-align: center;
    cursor: pointer;
    transition: all 0.15s;
}

body.dark .channel-segment:hover {
    color: #ccc;
}

body.dark .channel-segment--active {
    color: #e0e0e0;
    background: #2a2a2a;
    font-weight: 600;
}

/* Daypart headers */
.crono-daypart-header {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    padding: 2rem 0 0.75rem;
    border-bottom: 1px solid #2a2a2a;
    margin-bottom: 1rem;
}

.crono-daypart-header:first-child {
    padding-top: 0;
}

.crono-daypart-name {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    color: #9aa;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.crono-daypart-count {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: #999;
}

/* Hour groups */
.crono-hour-group {
    margin-bottom: 0.5rem;
}

/* Feed section */
.crono-feed {
    padding-top: 0.5rem;
}

/* Dark overrides for limit-summary (hour/daypart summaries) */
body.dark .limit-summary {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 3px;
    padding: 1rem 1.25rem;
    margin: 1rem 0;
}

body.dark .limit-summary-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}

body.dark .limit-summary-label--accent {
    color: #9aa;
}

body.dark .limit-summary-keywords {
    line-height: 1.8;
}

body.dark .limit-summary-keywords span {
    color: #d4a853;
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

body.dark .limit-summary-meta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: #aaa;
    margin-top: 0.5rem;
}

body.dark .limit-summary--daypart {
    border-color: #aaa;
    margin: 1.5rem 0;
}

/* Simultaneous groups dark */
body.dark .simultaneous-group {
    margin: 0.25rem 0;
}

body.dark .simultaneous-row {
    border-bottom-color: #1e1e1e;
}

body.dark .article--column {
    border-right-color: #1e1e1e;
}

/* Article thumbnail in dark */
body.dark .article-thumbnail img {
    border-radius: 2px;
}

/* Mobile: reading header (dark) */
@media (max-width: 768px) {
    body.dark .reading-segment {
        padding: 2px 4px;
    }
}

@media (max-width: 480px) {
    body.dark .reading-header-inner {
        flex-wrap: wrap;
    }

    body.dark .reading-brand {
        padding-right: 0.5rem;
    }

    body.dark .reading-current {
        flex: 1;
        border-right: none;
    }

    body.dark .reading-search {
        order: 3;
        padding-left: 0.5rem;
        margin-left: auto;
        border-left: none;
    }

    body.dark .reading-carousel-wrap {
        order: 4;
        flex-basis: 100%;
        padding: 0.25rem 0;
        margin: 0 -1.5rem;
        width: calc(100% + 3rem);
        overflow: hidden;
        border-top: 1px solid #2a2a2a;
    }

    body.dark .reading-arrow {
        display: none;
    }

    body.dark .reading-carousel {
        width: 100%;
        padding: 0 calc(50% - 45px);
        gap: 4px;
        -webkit-overflow-scrolling: touch;
    }

    body.dark .reading-segment {
        padding: 5px 10px;
        font-size: 0.65rem;
        min-width: 50px;
    }

    body.dark .reading-segment--active {
        font-size: 0.75rem;
        padding: 6px 14px;
        min-width: 70px;
    }

    body.dark .reading-channels-inner {
        padding: 0 calc(50% - 40px);
    }

    body.dark .channel-segment {
        font-size: 0.6rem;
        padding: 4px 10px;
    }

    .crono-daypart-name {
        font-size: 0.75rem;
    }
}

/* ============================
   TEMAS PAGE
   ============================ */
.temas-page {
    padding-bottom: 4rem;
}

.temas-filter {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.temas-pill {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    padding: 0.3rem 0.7rem;
    border: 1px solid #333;
    border-radius: 3px;
    background: transparent;
    color: var(--pill-color, #aaa);
    cursor: pointer;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.temas-pill:hover {
    border-color: var(--pill-color, #aaa);
    filter: brightness(1.2);
}

.temas-pill.active {
    border-color: var(--pill-color, #aaa);
    background: rgba(255, 255, 255, 0.05);
    filter: brightness(1.3);
}

.temas-pill-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    border-radius: 2px;
}

.temas-pill-count {
    opacity: 0.4;
    margin-left: 0.2rem;
}

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

.cocina-item--break {
    margin-bottom: 1.4rem;
    padding-bottom: 1.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cocina-item--compact .cocina-desc {
    display: none;
}

.cocina-item--compact .cocina-link {
    font-size: 1.35rem;
}

.tema-ver-mas {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--pill-color, #888);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.8rem 0;
    width: 100%;
    text-align: center;
    opacity: 0.6;
    transition: opacity 0.15s;
    position: relative;
}

.tema-ver-mas::before,
.tema-ver-mas::after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 4rem);
    height: 1px;
    background: currentColor;
    opacity: 0.3;
}

.tema-ver-mas::before { left: 0; }
.tema-ver-mas::after { right: 0; }

.tema-ver-mas:hover {
    opacity: 1;
}

/* --- Primicias page v2 --- */

/* Header block: disclaimer + brand slogan at top */
.pri-header {
    margin-bottom: 2.5rem;
}

.pri-disclaimer-top {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.62rem;
    color: #444;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.pri-disclaimer-top p {
    margin: 0 0 0.4rem;
}

.pri-header-brand {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    color: #666;
    text-align: center;
    padding-top: 0.75rem;
    border-top: 1px solid #222;
}

.pri-header-brand a {
    color: #999;
    text-decoration: none;
    font-weight: 600;
}

.pri-header-brand a:hover {
    color: #ccc;
}

/* Section titles (primicias, menciones) */
.pri-section-titulo {
    font-family: var(--font-sans, 'Inter', sans-serif);
    font-size: 1rem;
    font-weight: 700;
    color: #e0e0e0;
    margin: 0 0 0.2rem;
}

.pri-section-bajada {
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 0.65rem;
    color: #555;
    margin: 0 0 1.2rem;
}

/* Disclaimer "clandestino" */
.pri-disclaimer {
    margin-top: 3rem;
    padding-top: 1.5rem;
}

.pri-disclaimer-line {
    width: 40px;
    height: 1px;
    background: #333;
    margin-bottom: 1rem;
}

.pri-disclaimer-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: #444;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.pri-disclaimer-link {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    margin-top: 0.75rem;
}

.pri-disclaimer-link a {
    color: #555;
    text-decoration: none;
}

.pri-disclaimer-link a:hover {
    color: #888;
}

.pri-section {
    display: flex;
    flex-direction: column;
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #2a2a2a;
}

/* Bolt icon — lightning with glint */
.pri-bolt {
    display: inline-block;
    vertical-align: middle;
    width: 22px;
    height: 28px;
    margin-right: 5px;
}

.pri-bolt-flash {
    animation: pri-glint 3s ease-in-out infinite;
}

@keyframes pri-glint {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* Primicias title — neon glow + sweep */
.section-titulo--primicias {
    position: relative;
    overflow: hidden;
    display: inline-block;
    color: white;
    animation: pri-neon 4s ease-in-out infinite;
}

.section-titulo--primicias::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 40%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(252, 219, 51, 0.0) 30%,
        rgba(255, 255, 0, 0.20) 50%,
        rgba(252, 219, 51, 0.0) 70%,
        transparent 100%
    );
    pointer-events: none;
    animation: pri-lightning 8s ease-in-out infinite;
    animation-delay: 3s;
}

@keyframes pri-neon {
    0%, 100% {
        text-shadow:
            0 0 2px rgba(255,255,255,0.3),
            0 0 6px rgba(255,255,255,0.15),
            0 0 12px rgba(252,219,51,0.1),
            0 0 24px rgba(252,219,51,0.05);
    }
    50% {
        text-shadow:
            0 0 3px rgba(255,255,255,0.5),
            0 0 10px rgba(255,255,255,0.25),
            0 0 20px rgba(252,219,51,0.15),
            0 0 35px rgba(252,219,51,0.08);
    }
}

@keyframes pri-lightning {
    0%, 85% { left: -100%; opacity: 0; }
    88% { opacity: 1; }
    92% { left: 200%; opacity: 1; }
    95%, 100% { left: 200%; opacity: 0; }
}

/* Primicia card — border + presence */
.pri-card {
    padding: 0.8rem 0;
    margin-bottom: 0.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.pri-card:last-child {
    border-bottom: none;
}

.pri-card .ppal-titulo--block {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
}

.pri-card .ppal-meta {
    margin-bottom: 0.2rem;
    font-size: 0.65rem;
}

/* Canales count */
.pri-canales-count {
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 0.7rem;
    font-weight: 600;
    display: inline-block;
    margin-top: 0.3rem;
}

/* Micro-bolt divider between primicias */
.pri-divider {
    text-align: center;
    padding: 0.25rem 0;
    opacity: 0.4;
}

.pri-divider-bolt {
    display: inline-block;
}

/* Spread timeline — dots + labels on a line, animated */
.pri-spread {
    position: relative;
    height: 3.5rem;
    margin: 0.4rem 0 0;
}

.pri-spread-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(var(--cat-color, 200,200,200), 0.35);
    transform-origin: left;
    transform: scaleX(0);
}

.pri-spread--visible .pri-spread-line {
    animation: pri-line-draw 1.8s ease-out forwards;
}

/* Point container (absolute, holds dot + label) */
.pri-spread-point {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
}

/* Dot */
.pri-spread-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #555;
    opacity: 0;
    transform: scale(0);
    transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.pri-spread--visible .pri-spread-dot {
    animation: pri-dot-pop 0.3s ease-out forwards;
    animation-delay: var(--dot-delay, 0.3s);
}

.pri-spread-dot--first {
    width: 9px;
    height: 9px;
    background: rgb(var(--cat-color, 200,200,200));
    box-shadow: 0 0 6px rgba(var(--cat-color, 200,200,200), 0.4);
}

/* Label (above or below) */
.pri-spread-label {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    white-space: nowrap;
    opacity: 0;
}

.pri-spread--visible .pri-spread-label {
    animation: pri-fade-in 0.3s ease-out forwards;
    animation-delay: var(--dot-delay, 0.3s);
}

.pri-spread-label:not(.pri-spread-label--below) {
    bottom: calc(100% + 7px);
}

.pri-spread-label--below {
    top: calc(100% + 7px);
}

.pri-spread-canal {
    display: block;
    font-family: var(--font-sans, 'Inter', sans-serif);
    font-size: 0.55rem;
    color: #888;
    font-weight: 500;
}

.pri-spread-time {
    display: block;
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 0.45rem;
    color: #555;
}

/* Hover: highlight dot */
.pri-spread-point:hover .pri-spread-dot {
    background: rgb(var(--cat-color, 200,200,200));
    box-shadow: 0 0 8px rgba(var(--cat-color, 200,200,200), 0.5);
    transform: scale(1.4);
}

.pri-spread-point:hover .pri-spread-canal {
    color: #e0e0e0;
}

.pri-spread-point:hover .pri-spread-time {
    color: #999;
}


/* Spread animations */
@keyframes pri-line-draw {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

@keyframes pri-dot-pop {
    from { opacity: 0; transform: scale(0); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes pri-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Mobile spread */
@media (max-width: 600px) {
    .pri-spread {
        height: 3rem;
        margin: 0.3rem 0.25rem 0;
    }

    .pri-spread-canal { font-size: 0.5rem; }
    .pri-spread-time { font-size: 0.42rem; }
}

/* Dense spread (5+ canales): hide mid labels, show on hover/touch */
.pri-spread--dense {
    height: 2.5rem;
}

.pri-spread--dense .pri-spread-point--mid .pri-spread-label {
    display: none;
}

.pri-spread--dense .pri-spread-point--mid:hover .pri-spread-label,
.pri-spread--dense .pri-spread-point--mid:active .pri-spread-label,
.pri-spread--dense .pri-spread-point--mid.touch-active .pri-spread-label {
    display: block;
    opacity: 1;
    z-index: 10;
    background: #1a1a1a;
    padding: 2px 6px;
    border-radius: 3px;
}

/* Dense: bigger dots for mid points (touch target) */
.pri-spread--dense .pri-spread-point--mid .pri-spread-dot {
    width: 10px;
    height: 10px;
    cursor: pointer;
}

/* First label: anchor left so it doesn't overflow */
.pri-spread--dense .pri-spread-point--first .pri-spread-label {
    left: 0;
    transform: none;
    text-align: left;
}

/* Last label: anchor right so it doesn't overflow */
.pri-spread--dense .pri-spread-point--last .pri-spread-label {
    left: auto;
    right: 0;
    transform: none;
    text-align: right;
}

/* Also fix first/last on non-dense when near edges */
.pri-spread-point--first .pri-spread-label {
    left: 0;
    transform: none;
    text-align: left;
}

.pri-spread-point--last .pri-spread-label {
    left: auto;
    right: 0;
    transform: none;
    text-align: right;
}


/* ============================
   RANKING DE CANALES (primiciosos / copiados)
   ============================ */

.pri-ranking-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #2a2a2a;
}

.pri-ranking-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.pri-ranking-titulo {
    font-family: var(--font-sans, 'Inter', sans-serif);
    font-size: 1rem;
    font-weight: 700;
    color: #e0e0e0;
    margin: 0 0 0.2rem;
}

.pri-ranking-bajada {
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 0.6rem;
    color: #555;
    margin: 0 0 0.8rem;
}

.pri-ranking-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0;
}

.pri-ranking-pos {
    width: 1.2rem;
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 0.65rem;
    color: #444;
    text-align: right;
    flex-shrink: 0;
}

.pri-ranking-canal {
    width: 6.5rem;
    font-family: var(--font-sans, 'Inter', sans-serif);
    font-size: 0.78rem;
    color: #999;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
}

.pri-ranking-track {
    flex: 1;
    height: 0.7rem;
    background: #1e1e1e;
    border-radius: 2px;
    overflow: hidden;
    display: block;
}

.pri-ranking-bar {
    display: block;
    height: 100%;
    border-radius: 2px;
    transition: width 0.4s ease;
}

.pri-ranking-bar--primero {
    background: rgba(80, 180, 120, 0.6);
    border-right: 2px solid rgba(80, 180, 120, 0.85);
}

.pri-ranking-bar--tarde {
    background: rgba(180, 80, 80, 0.55);
    border-right: 2px solid rgba(180, 80, 80, 0.8);
}

.pri-ranking-num {
    width: 2.5rem;
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 0.7rem;
    color: #666;
    text-align: right;
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .pri-ranking-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .pri-ranking-canal {
        width: 5.5rem;
        font-size: 0.72rem;
    }
}


/* ============================
   NO PARAN DE HABLAR (v2 data-ink)
   ============================ */
.rachas-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #2a2a2a;
}

.rachas-titulo {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    font-weight: 600;
    color: #e0e0e0;
    margin: 0 0 0.25rem 0;
}

.rachas-bajada {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: #999;
    margin: 0 0 1.5rem 0;
}

.rachas-list {
    display: flex;
    flex-direction: column;
}

/* Row: name | bar track | number + arrow */
.racha-row {
    display: grid;
    grid-template-columns: 12rem 1fr 3.5rem 5.5rem;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0;
}

.racha-row--hidden {
    display: none;
}

.rachas-section--open .racha-row--hidden {
    display: grid;
}

.racha-row--hot {
    animation: canal-breathe 3s ease-in-out infinite;
}

/* Name — color set inline */
.racha-name {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.racha-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s;
}

.racha-name a:hover {
    color: #e0e0e0;
}

/* Bar track — fondo visible marca la parte "vacía" */
.racha-track {
    display: block;
    height: 6px;
    background: #2a2a2a;
    border-radius: 2px;
    overflow: hidden;
}

/* Bar — color set inline */
.racha-bar {
    display: block;
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Number — color set inline */
.racha-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    font-weight: 700;
    text-align: right;
    position: relative;
}

/* Signal sweep — shimmer only on hot bars (señal viva) */
.racha-row--hot .racha-bar {
    position: relative;
    overflow: hidden;
}

.racha-row--hot .racha-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 35%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
    animation: bar-sweep 3.5s ease-in-out infinite;
}

@keyframes bar-sweep {
    0% { left: -50%; }
    45%, 100% { left: 120%; }
}

/* Trend arrow */
.racha-arrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    font-weight: 700;
    text-align: right;
}

.racha-arrow--up {
    color: #00e676;
}

.racha-arrow--dn {
    color: #ff1744;
}

.racha-arrow--flat {
    color: #333;
    font-size: 0.85rem;
    letter-spacing: -1px;
}

/* Toggle button */
.rachas-toggle {
    display: block;
    margin: 0.75rem auto 0;
    padding: 0.3rem 1.2rem;
    background: none;
    border: 1px solid #2a2a2a;
    border-radius: 2px;
    color: #666;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
}

.rachas-toggle:hover {
    color: #aaa;
    border-color: #444;
}

/* Mobile */
@media (max-width: 600px) {
    .racha-row {
        grid-template-columns: 8rem 1fr 2.5rem 3.5rem;
        gap: 0.4rem;
    }

    .racha-name {
        font-size: 0.9rem;
    }

    .racha-num {
        font-size: 0.85rem;
    }

    .racha-arrow {
        font-size: 0.75rem;
    }
}
