:root {
  --bg-main: #ffffff;
  --bg-card: #ffffff;
  --bg-soft: #f3f4f6;

  --text-main: #111827;
  --text-muted: #6b7280;

  --border-soft: #e5e7eb;
}

body.dark {
  --bg-main: #0f1115;
  --bg-card: #161a22;
  --bg-soft: #1e2430;

  --text-main: #e5e7eb;
  --text-muted: #9aa0a6;

  --border-soft: #2a2f3a;
}



/* ============================
   GLOBAL
============================ */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #fafafa;
    color: #222;
}
/* ============================
   NAVBAR
============================ */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: black;
    z-index: 100;
}

.navbar {
    padding: 15px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.navbar a {
    color: white;
    text-decoration: none;
    font-size: 16px;
}

/* ============================
   CONTENT + CLUSTER CARDS
============================ */
.content {
    padding: 20px;
}

.cluster-card {
    position: relative;   /* 🔑 CLAVE ABSOLUTA */
    background: #fff;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 18px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.cluster-header h3 {
    margin: 0;
    font-size: 22px;
}

.cluster-resumen {
    margin: 8px 0 14px 0;
    font-style: italic;
    color: #444;
    line-height: 1.4;
}

/* ============================
   ARTÍCULOS
============================ */
.articulo-item {
    position: relative;   /* 🔑 CLAVE */
    border-left: 3px solid #999;
    padding: 12px 16px;
    margin: 16px 0;
    background: #fff;
    border-radius: 4px;
}

/* Cabecera: logo + medio | título */
.articulo-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.articulo-logo {
    width: 26px;
    height: 26px;
    border-radius: 50%;   /* círculo */
    object-fit: cover;
}

.articulo-medio {
    font-weight: bold;
    color: #333;
}

.articulo-sep {
    color: #999;
    margin: 0 4px;
}

.articulo-titulo {
    font-weight: bold;
    color: #111;
}

/* Descripción del artículo */
.articulo-descripcion {
    color: #333;
    margin: 6px 0 10px 0;
    line-height: 1.4;
}

/* Footer: fecha izquierda, link derecha */
.articulo-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.articulo-link {
    color: #0058cc;
    font-weight: bold;
    text-decoration: none;
}

.articulo-link:hover {
    text-decoration: underline;
}

.articulo-fecha {
    font-size: 12px;
    color: #777;
}

/* ============================
   MOBILE
============================ */
@media (max-width: 600px) {
    .navbar ul {
        gap: 12px;
    }

    .cluster-card {
        padding: 15px;
    }

    .articulo-item {
        padding: 10px 12px;
    }

    .articulo-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

.articulo-logo {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: contain;  /* 🔄 MUY IMPORTANTE */
    background: white;
    padding: 4px;         /* 🔄 AGRANDA EL ESPACIO INTERIOR → no se corta */
}

/* =============================
   ANALISIS POLITICO + BIAS
============================= */

.cluster-analysis,
.cluster-bias {
    background: #f4f6f8;
    padding: 12px;
    border-radius: 8px;
    margin-top: 12px;
    border: 1px solid #e0e0e0;
}



.cluster-analysis,
.cluster-bias {
    margin-top: 10px;
    padding: 10px;
    border-left: 4px solid #ddd;
    background: #fafafa;
    border-radius: 6px;
}

.cluster-analysis h4,
.cluster-bias h4 {
    margin: 0 0 6px 0;
}


.sesgo-bar-gn {
    position: relative;
    height: 20px;
    background: linear-gradient(to right,
       #1565c0 0%,      /* izquierda: azul */
        white 50%,       /* centro: blanco */
        #c62828 100%   /* derecha (azul moderado) */
    );
    border-radius: 12px;
    margin: 12px 0;
}

.sesgo-indicator-gn {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 8px;   /* más gruesa */
    height: 28px; /* más alta */
    background: #111;
    border-radius: 4px;
    border: 2px solid white; /* borde elegante */
    box-shadow: 0 0 4px rgba(0,0,0,0.3);
}

.sesgo-percent {
    font-weight: bold;
    margin-bottom: 4px;
}

.sesgo-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    opacity: 0.8;
}

.sesgo-bar {
    position: relative;
    width: 100%;
    height: 22px;   /* más gruesa */
    background: linear-gradient(
        to right,
        #2f66ff 0%,       /* izquierda azul */
        #5c85ff 25%,      /* centro-izquierda */
        #ffffff 50%,      /* centro blanco */
        #ff7373 75%,      /* centro-derecha */
        #ff2d2d 100%      /* derecha rojo */
    );
    border-radius: 12px;
    margin: 10px 0 25px 0;
}


/* Barra principal */
.sesgo-bar {
    position: relative;
    width: 100%;
    height: 22px;      /* más gruesa */
    border-radius: 20px;
    margin: 15px 0;
    background: linear-gradient(90deg, #1d4ed8, #ffffff, #dc2626);
}

/* Aguja blanca (sesgo híbrido) */
.aguja-textual {
    position: absolute;
    top: -6px;
    width: 4px;
    height: 34px;
    background: white;
    border-radius: 2px;

    /* SOMBRA para que se vea sobre cualquier color */
    box-shadow:
        0 0 3px rgba(0,0,0,0.8),    /* contorno externo oscuro */
        0 0 6px rgba(255,255,255,0.8); /* halo suave blanco */

    border: 1px solid rgba(0,0,0,0.6); /* borde sutil */
}

/* Aguja negra (texto puro) */
.aguja-global {
    position: absolute;
    top: -6px;
    width: 4px;
    height: 34px;
    background: black;
    border-radius: 2px;
    box-shadow: 0 0 4px rgba(0,0,0,0.8);
}


.sesgo-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    opacity: 0.8;
}

.info-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 18px;
    height: 18px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 50%;
    background: #ddd;
    color: #333;
    cursor: pointer;
    margin-left: 6px;
    transition: 0.2s;
}

.info-icon:hover {
    background: #bbb;
}

/* Tooltip flotante */
.info-tooltip {
    position: absolute;
    background: white;
    color: #222;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 10px;
    width: 260px;
    font-size: 0.9rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    z-index: 2000;
    display: none;
}

.info-tooltip.visible {
    display: block;
}

.cluster-resumen,
.cluster-resumen p {
    font-style: normal !important;
}

/* Contenedor de planes */
.subs-container {
    text-align: center;
    margin-top: 30px;
}

.plans {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.plan-card {
    width: 260px;
    padding: 20px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.plan-card.destacado {
    border: 3px solid #ffcc00;
    transform: scale(1.05);
}

.plan-card h3 {
    margin-bottom: 10px;
}

.plan-card .price {
    font-size: 24px;
    margin-bottom: 15px;
}

.plan-card ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.plan-card li {
    margin: 8px 0;
}

.plan-btn {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: none;
    background: #000;
    color: white;
    cursor: pointer;
    font-weight: bold;
}

.plan-btn:hover {
    background: #333;
}

.tagline {
    font-style: italic;
    margin-bottom: 15px;
    color: #444;
}

/* Ajuste para tarjetas con mucho contenido */
.plan-card ul {
    text-align: left;
    max-height: 420px;
    overflow-y: auto;
    padding-right: 10px;
}

.plan-card ul::-webkit-scrollbar {
    width: 6px;
}
.plan-card ul::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

/* CONTENEDOR DE PLANES */
.planes-container {
    display: flex;
    gap: 25px;
    justify-content: center;
    margin: 40px 0;
    flex-wrap: wrap;
}

/* TARJETAS */
.plan-card {
    width: 300px;
    padding: 25px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
    text-align: center;
    border-top: 6px solid #ccc;
    transition: 0.2s;
}

.plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.plan-card ul {
    text-align: left;
    margin-top: 20px;
}

/* COLORES POR PLAN */
.plan-card.free { border-color: #1e88e5; }
.plan-card.prisma { border-color: orange; }
.plan-card.horizonte { border-color: #4caf50; }

/* SUBTÍTULO */
.plan-sub {
    color: #555;
    margin-top: -10px;
}

/* BOTONES */
.plan-btn {
    margin-top: 20px;
    padding: 12px 20px;
    font-size: 16px;
    width: 90%;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: 0.2s;
}

.plan-btn.free { background: rgb(222, 181, 19);  color: white; }
.plan-btn.prisma { background: rgb(222, 181, 19); color: white; }
.plan-btn.horizonte { background: rgb(222, 181, 19);  color: white; }

.plan-btn:hover {
    opacity: 0.85;
}

/* NEWSLETTER */
.newsletter-box {
    text-align: center;
    margin-top: 50px;
    padding: 30px;
    background: #f7f7f7;
    border-radius: 12px;
}

.newsletter-form input {
    padding: 12px;
    width: 260px;
    border-radius: 8px;
    border: 1px solid #aaa;
}

.newsletter-form button {
    padding: 12px 20px;
    margin-left: 10px;
    border-radius: 8px;
    border: none;
    background: #1e88e5;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

/* ============================
   BOTÓN SUSCRÍBETE (NAVBAR)
   ============================ */
.btn-suscripcion {
    background: #d9a404 !important;  /* amarillo oscuro */
    padding: 8px 12px;
    border-radius: 6px;
    color: black !important;
    font-weight: bold;
}
.btn-suscripcion:hover {
    background: #b38703 !important;  /* más oscuro */
    color: black !important;
}

/* ============================================
   TARJETAS DE PLANES — DISEÑO UNIFICADO
============================================ */


/* Tarjeta base */

/* TARJETAS DE SUSCRIPCIÓN — VERSIÓN LIMPIA Y ESTABLE */
.plans {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* Tarjeta básica */
.plan-card {
    width: 300px;
    padding: 25px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
    text-align: center;
    border-top: 6px solid #ccc;
    transition: 0.2s;
}

.plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

/* Colores por plan */
.plan-card.free        { border-color: #1e88e5; }
.plan-card.prisma      { border-color: orange; }
.plan-card.horizonte   { border-color: #4caf50; }

/* Títulos */
.plan-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

/* Precio */
.plan-card .price {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 14px;
}

/* Tagline */
.tagline {
    font-style: italic;
    color: #444;
    margin-bottom: 15px;
}

/* Lista */
.plan-card ul {
    list-style: none;
    padding: 0;
    text-align: left;
    margin-top: 15px;
    max-height: 360px;
    overflow-y: auto;
}

.plan-card li {
    margin: 8px 0;
}

/* Scroll */
.plan-card ul::-webkit-scrollbar {
    width: 6px;
}
.plan-card ul::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

/* Botones */
.plan-btn {
    margin-top: 20px;
    padding: 12px 20px;
    font-size: 16px;
    width: 90%;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: 0.2s;
}

.plan-btn.free {
    background: #1e88e5;
    color: #fff;
}
.plan-btn.prisma {
    background: orange;
    color: #fff;
}
.plan-btn.horizonte {
    background: #4caf50;
    color: #fff;
}

.plan-btn:hover {
    opacity: 0.85;
}

.plan-btn.free {
    background: #e2a710;
}
.plan-btn.free:hover {
    background: #a9910d;
}

.plan-btn.prisma {
    background: #e2a710;
}
.plan-btn.prisma:hover {
    background: #a9910d;
}

.plan-btn.horizonte {
    background: #e2a710;
}
.plan-btn.horizonte:hover {
    background: #a9910d;
}

/* ============================
    ACERCA DE NOSOTROS
============================ */

.acerca-container {
    max-width: 900px;
    margin: auto;
}

.acerca-intro {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 25px;
}

.acerca-card {
    background: #ffffff;
    padding: 25px;
    margin: 25px 0;
    border-radius: 10px;
    border-top: 5px solid #ccc;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.acerca-card h3 {
    margin-top: 0;
}

.acerca-card ul,
.acerca-card ol {
    margin-left: 20px;
    color: #333;
}

.acerca-card.cta {
    text-align: center;
    border-top-color: #d98c00;
}

/* Tamaño uniforme y legible en toda la página Acerca */
.acerca-container p,
.acerca-container li,
.acerca-container ul,
.acerca-container ol {
    font-size: 1.1rem;
    line-height: 1.6;
}

.acerca-card h3 {
    font-size: 1.4rem;
}

.navbar {
    padding: 15px 20px;
    color: white;
    background: black;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.nav-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.top-date {
    font-size: 12px;
    color: #cccccc;
    margin-bottom: 10px;
}

.footer {
    background: #0b0b0b;
    color: #ccc;
    padding: 40px 20px 20px;
    margin-top: 60px;
    font-size: 14px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: auto;
    gap: 40px;
}

.footer-col h3 {
    color: white;
    margin-bottom: 10px;
    font-size: 20px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 10px;
    font-size: 16px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 6px;
}

.footer-col ul li a {
    color: #ccc;
    text-decoration: none;
}

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

.footer-desc {
    max-width: 260px;
    line-height: 1.5;
}

.footer input {
    padding: 10px;
    width: 200px;
    border-radius: 6px;
    border: none;
    margin-bottom: 8px;
}

.footer-btn {
    padding: 10px 14px;
    background: #ffcc00;
    color: #000;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.footer-btn:hover {
    background: #e6b800;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    margin-top: 40px;
    color: #888;
    font-size: 13px;
}

/* REDES SOCIALES EN FOOTER */
.footer-social {
    margin-top: 12px;
    display: flex;
    gap: 14px;
    justify-content: flex-start;
}

.social-icon {
    color: #ccc;
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-icon svg {
    width: 24px;
    height: 24px;
    transition: 0.2s;
}

.social-icon:hover svg {
    color: white;
    transform: scale(1.12);
}
.logo-nav {
    height: 70px;
}

/* Contenedor NAV izquierda */
.nav-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Botón ☰ */
.menu-btn {
    font-size: 24px;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 4px;
    transition: 0.2s;
    color: white;
}

.menu-btn:hover {
    background: rgba(255,255,255,0.15);
}

/* Icono X en footer */
.icon-x {
    width: 24px;
    height: 24px;
    display: block;
    fill: currentColor;
}

/* --- LOGOS DENTRO DE LA BARRA EN DOS FILAS --- */

/* Restablecer logos como círculos y en columna vertical */
/* Contenedor de logos sobre la barra de sesgo */
/* ================================
   LOGOS SOBRE LA BARRA — ESTABLE
================================ */

/* Barra debe permitir overflow */
.sesgo-bar {
    position: relative;
    overflow: visible;  /* <- ESSENCIAL PARA QUE NO SE CORTEN LOS LOGOS */
}

/* Contenedor de logos */
.sesgo-logos {
    position: absolute;
    top: -30px;        /* 30px arriba de la barra */
    left: 0;
    width: 100%;
    height: 60px;      /* suficiente para 2 filas */
    pointer-events: none;
}

/* Cada logo (igual que logos de artículos) */
.sesgo-logo {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    position: absolute;
    transform: translateX(-50%);
    background: white;
    padding: 2px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.sesgo-bar {
    overflow: visible !important;
}

.sesgo-logos {
    position: relative;
    overflow: visible;
}

/* ===========================================
   LAYOUT DE TRES COLUMNAS (CORREGIDO)
   =========================================== */
.cluster-layout {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr) 230px;
    gap: 24px;
    margin-top: 40px;               /* 🟩 BAJA todo el layout para no pegarse al navbar */
    align-items: flex-start;
}

/* Columna central */
.cluster-main {
    min-width: 0;
}

/* Sidebars */
.cluster-sidebar {
    position: sticky;
    top: 120px;  /* 🟩 Ajuste perfecto para no tocar el banner */
}

/* Tarjetas laterales (sin fondo tan oscuro) */
.sidebar-card {
    background: #1a1f2b;            /* 🟩 Un poco más claro, igual al look de Prensa Inteligente */
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid #262c38;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

.sidebar-card h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: #f3f4f6;
}

/* Texto */
.sidebar-card p {
    font-size: 0.88rem;
    line-height: 1.45;
    color: #d1d5db;
}

/* Lista */
.sidebar-list {
    list-style: none;
    padding: 0;
}

.sidebar-list li + li {
    margin-top: 8px;
}

.sidebar-list a {
    font-size: 0.87rem;
    color: #93c5fd;
    text-decoration: none;
}

.sidebar-list a:hover {
    color: #bfdbfe;
}

/* Botón */
.btn-suscripcion-full {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #2563eb;
    color: white;
    font-size: 0.87rem;
    font-weight: 500;
    text-decoration: none;
}

.btn-suscripcion-full:hover {
    background: #1e40af;
}

/* Publicidad */
.ad-card .ad-label {
    font-size: 0.7rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.ad-placeholder {
    margin-top: 8px;
    padding: 12px;
    border: 1px dashed #4b5563;
    border-radius: 10px;
    font-size: 0.85rem;
    color: #e5e7eb;
    text-align: center;
}

/* ===========================================
   RESPONSIVE
   =========================================== */
@media (max-width: 1100px) {
    .cluster-layout {
        grid-template-columns: 1fr; /* columnas se apilan */
    }

    .cluster-sidebar {
        position: static;
    }
}

.cluster-sidebar {
    position: sticky;
    top: 120px;
}
.cluster-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.cluster-sidebar {
    background: transparent !important;
}

.sidebar-card {
    background: #ffffff !important;
    padding: 16px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}
.cluster-layout {
    display: grid;
    grid-template-columns: 260px 1fr 260px; 
    gap: 20px;
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
}
.content {
    overflow: visible !important;
}
.cluster-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}
/* LAYOUT DE 3 COLUMNAS */
.cluster-layout {
    display: grid;
    grid-template-columns: 260px 1fr 260px;
    gap: 20px;
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
}

/* STICKY SIDEbars */
.cluster-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
    background: transparent !important;
}

/* Tarjetas laterales */
.sidebar-card {
    background: #ffffff !important;
    padding: 16px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

/* Placeholder publicidad */
.ad-placeholder {
    background: #f5f5f5;
    border: 1px dashed #999;
    padding: 30px;
    text-align: center;
    border-radius: 8px;
    color: #555;
}

/* Evitar que overflow rompa sticky */
.content {
    overflow: visible !important;
}



/* ======== GRID PRINCIPAL ======== */
.cluster-grid {
    width: 100%;
    margin: 20px auto;
    display: grid;
    grid-template-columns: 250px 1fr 260px; /* centro más grande */
    gap: 24px;
}

/* ======== COLUMNA IZQUIERDA ======== */
.cluster-left {
    margin: 0;
    padding: 0;
}

.cluster-left .side-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.reciente-item {
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd3;
    font-size: 0.9rem;
}

.reciente-item a {
    color: var(--text-color);
    font-weight: normal !important;
}

/* ======== COLUMNA CENTRAL ======== */
.cluster-center {
    background: none;
    padding: 0;
}

.cluster-card {
    background: var(--bg-soft);
    padding: 20px 28px;
    border-radius: 8px;
}

/* ======== COLUMNA DERECHA ======== */
.cluster-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sub-box {
    background: var(--bg-soft);
    padding: 16px;
    border-radius: 8px;
}

.sub-box h4 {
    margin: 0 0 8px 0;
}

.sub-box p {
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.ad-box {
    background: #e9e9e9;
    height: 600px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #444;
    font-size: 1rem;
    font-weight: bold;
}

.reciente-item a {
    text-decoration: none !important;
    font-weight: 600;
    color: var(--text-color);
}

.reciente-item a:hover {
    color: var(--accent-color);
}

.cluster-left .side-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 10px 0;
}

#cluster-relacionados {
    margin-top: 10px;
}

/* GRID principal del cluster */
.cluster-grid {
    width: 100%;
    margin: 20px auto;
    display: grid;
    grid-template-columns: 250px 1fr 260px; /* izq | centro (grande) | der */
    gap: 24px;
    align-items: flex-start; /* todas las columnas alineadas arriba */
    padding: 0 10px;   
}

/* Que ninguna columna tenga margen raro arriba */
.cluster-left,
.cluster-center,
.cluster-right {
    margin-top: 0;
    padding-top: 0;
}

/* El card principal del cluster bien pegado arriba */
.cluster-center {
    background: none;
    padding: 0;
}

.cluster-card {
    background: var(--bg-soft);
    padding: 20px 28px;
    border-radius: 8px;
    margin: 0;            /* quita margen extra arriba/abajo */
}

/* ====== GRID PRINCIPAL DEL CLUSTER ====== */
.cluster-grid {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr) 260px; /* izq | centro | der */
    gap: 24px;

    /* centrado y márgenes laterales decentes */
    margin: 30px auto 40px; /* arriba, lados auto, abajo */
    padding: 0 20px;        /* espacio a los lados */
    
    align-items: flex-start; /* todas las columnas alineadas arriba */
}

/* ====== COLUMNAS SIN DESPLAZAMIENTOS EXTRAÑOS ====== */
.cluster-left,
.cluster-center,
.cluster-right {
    margin: 0;
    padding: 0;
}

/* Columna central: tarjeta grande del cluster */
.cluster-center {
    background: none;
}

/* Tarjeta principal del cluster */
.cluster-card {
    background: var(--bg-soft);
    padding: 20px 28px;
    border-radius: 8px;
    margin: 0;             /* importante para que alinee con las columnas */
}

/* Títulos de las columnas laterales */
.cluster-left .side-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 10px 0;
}

/* Lista de recientes / relacionados */
.reciente-item {
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #ddd3;
    font-size: 0.9rem;
}

.reciente-item a {
    text-decoration: none;
    font-weight: 600;
    color: var(--text-color);
    display: block;
}

.reciente-item a:hover {
    color: var(--accent-color);
}

/* Columna derecha */
.cluster-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sub-box {
    background: var(--bg-soft);
    padding: 16px;
    border-radius: 8px;
}

.ad-box {
    background: #e9e9e9;
    border-radius: 8px;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #444;
}

/* Bajar un poco las columnas izquierda y derecha en la página de cluster */
.cluster-right {
    padding-top: 20px; /* prueba con 16–24px según lo que te guste */
}

.cluster-left {
    padding-top: 80px; /* prueba con 16–24px según lo que te guste */
}

/* ====== NOTICIAS DESTACADAS AL FINAL ====== */
.destacados-section {
    max-width: 1100px;
    margin: 40px auto 60px;
    padding: 0 16px;
}

.destacados-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #000000; /* rojo tipo titular */
    margin: 0 0 16px 0;
}

.destacados-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

/* Cada noticia destacada */
.destacado-item {
    border-bottom: 1px solid #ddd3;
    padding-bottom: 10px;
}

.destacado-link {
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: var(--text-color);
}

.destacado-img-wrap {
    flex: 0 0 120px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
}

.destacado-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Texto a la derecha */
.destacado-text h4 {
    margin: 0 0 8px 0;
    font-size: 0.95rem;
    font-weight: 500; /* sin negrilla agresiva */
}

.destacado-meta {
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    color: #777;
}

.destacado-bar {
    width: 3px;
    height: 14px;
    background: #000000;
    border-radius: 2px;
    margin-right: 6px;
}

.destacado-medio {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Hover suave */
.destacado-link:hover h4 {
    color: var(--accent-color);
}

/* Responsive: una columna en móvil */
@media (max-width: 768px) {
    .destacados-grid {
        grid-template-columns: 1fr;
    }
}
/* ====== CLUSTERS DESTACADOS AL FINAL ====== */
.destacados-section {
    max-width: 1100px;
    margin: 40px auto 60px;
    padding: 0 16px;
}

.destacados-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #000000; /* rojo tipo titular */
    margin: 0 0 16px 0;
}

.destacados-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

/* Cada cluster destacado */
.destacado-item {
    border-bottom: 1px solid #ddd3;
    padding-bottom: 10px;
}

.destacado-link {
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: var(--text-color);
}

/* Imagen (usaremos el logo de un medio del cluster) */
.destacado-img-wrap {
    flex: 0 0 120px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
}

.destacado-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* para que el logo no se deforme */
}

/* Texto a la derecha */
.destacado-text h4 {
    margin: 0 0 6px 0;
    font-size: 0.95rem;
    font-weight: 500; /* sin negrilla pesada */
}

.destacado-meta {
    font-size: 0.8rem;
    color: #777;
}

/* Hover suave */
.destacado-link:hover h4 {
    color: var(--accent-color);
}

/* Responsive: una columna en móvil */
@media (max-width: 768px) {
    .destacados-grid {
        grid-template-columns: 1fr;
    }
}

.destacados-section {
    max-width: 1100px;
    margin: 40px auto 60px;
    padding: 0 16px;
}

.destacados-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 16px;
}

.destacados-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

/* Tarjeta del cluster */
.cluster-card-small {
    display: flex;
    gap: 14px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 12px;
}

.cluster-img-wrapper {
    width: 140px;
    height: 90px;
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    background: #eee;
}

.cluster-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Icono "ⓘ" en la esquina inferior derecha */
.cluster-img-info {
    position: absolute;
    bottom: 4px;
    right: 4px;
    font-size: 14px;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 2px 5px;
    border-radius: 3px;
}

/* Títulos */
.cluster-card-small h4 {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 500;
}

/* Fuente/meta */
.cluster-card-small .meta {
    font-size: 0.8rem;
    color: #777;
    margin-top: 6px;
}

@media (max-width: 768px) {
    .destacados-grid {
        grid-template-columns: 1fr;
    }
}

.cluster-img-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;   /* 👈 TODAS las imágenes tendrán esta proporción EXACTA */
    overflow: hidden;
    border-radius: 8px;
    position: relative;
    background: #111;
}

.cluster-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;      /* 👈 Se recorta para encajar en 16:9 */
    display: block;
}

.destacado-item,
.cluster-card-small {
    display: flex;
    flex-direction: column;
    height: auto;
}

.cluster-img-wrapper {
    flex: 0 0 180px !important;   /* ← imagen SIEMPRE mide 180px */
}

.cluster-fecha-top {
    font-size: 0.9rem;
    color: #666;
    margin: 0 0 6px 0;
    padding: 0;
}

.ad-slot {
    background: #e5e7eb;          /* gris claro */
    border-radius: 8px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 18px;
    font-weight: 600;
    cursor: default !important;
    border: 1px solid #d1d5db;
}

/* ========== BOTÓN MENÚ EN NAVBAR ========== */
.nav-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu-btn {
    font-size: 22px;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 4px;
    color: white;
    transition: 0.2s;
}

.menu-btn:hover {
    background: rgba(255,255,255,0.18);
}

/* ========== SIDEBAR LATERAL ========== */
.sidebar {
    position: fixed;
    top: 0;
    left: -300px;          /* escondido por defecto */
    width: 260px;
    height: 100vh;
    background: #0a0a0a;
    color: #ffffff;
    padding: 40px 24px;
    padding-top: 90px;     /* para no tapar la navbar */
    transition: left 0.3s ease;
    z-index: 1200;
    overflow-y: auto;
    border-right: 1px solid #222;
}

/* cuando se abre */
.sidebar.open {
    left: 0;
}

/* Botón de cerrar (✕) */
.sidebar-close {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 22px;
    cursor: pointer;
    color: white;
    opacity: 0.8;
}

.sidebar-close:hover {
    opacity: 1;
}

/* ========== OVERLAY OSCURO ========== */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: none;
    z-index: 1100;
}

.overlay.show {
    display: block;
}

/* ========== TIPOGRAFÍA Y LISTAS ========== */

/* título principal (Plan Brújula) */
.side-title {
    font-size: 22px;
    font-weight: bold;
    margin: 0 0 18px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #333;
    letter-spacing: 0.5px;
}

/* subtítulos “Cuenta”, etc. */
.side-subtitle {
    margin-top: 28px;
    font-size: 19px;
    opacity: 0.9;
    letter-spacing: 0.3px;
}

.side-list {
    list-style: none;
    padding-left: 0;
    margin: 10px 0 18px 0;
}

.side-list li {
    margin: 10px 0;
}

.side-list li a {
    color: #ffffff;
    font-size: 1.05rem;
    text-decoration: none;
    letter-spacing: 0.2px;
}

.side-list li a:hover {
    color: #ffcc00;
}

/* línea divisoria */
.divider {
    width: 100%;
    height: 1px;
    background: rgba(255,255,255,0.25);
    margin: 15px 0;
}

/* parte inferior (contacto + redes) */
.sidebar-bottom {
    margin-top: auto;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.25);
}

/* ========== SUBMENÚ “Nosotros ▸” ========== */
.submenu-toggle {
    font-size: 1.05rem;
    color: #ffffff;
    cursor: pointer;
    display: block;
    padding: 6px 0;
    letter-spacing: 0.2px;
}

.submenu-toggle span {
    font-size: inherit;
    color: inherit;
}

.submenu-toggle:hover {
    color: #ffcc00;
}

.submenu {
    list-style: none;
    padding-left: 12px;
    margin: 6px 0 12px 0;
}

.submenu li a {
    font-size: 0.95rem;
}

/* ========== REDES SOCIALES EN FILA ========== */
.side-social-row {
    display: flex;
    gap: 16px;
    margin-top: 14px;
    align-items: center;
}

.side-social-row .social-icon {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white !important;
}

.side-social-row .social-icon svg {
    width: 24px;
    height: 24px;
    fill: white !important;
    transition: opacity 0.2s;
}

.side-social-row .social-icon:hover svg {
    opacity: 0.75;
}

.auth-input {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    margin-bottom: 12px;
    font-size: 16px;
}

.intereses-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 20px;
    margin: 12px 0;
    text-align: left;
}
.intereses-grid label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

/* Normaliza el cuadro del formulario */
.form-card {
    max-width: 420px;
    margin: auto;
    padding: 25px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    text-align: center;

    /* 🔥 Esto corrige la asimetría */
    box-sizing: border-box;
}

/* Asegura que todos los inputs tengan margen simétrico */
.form-card .auth-input,
.form-card select,
.form-card textarea {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

/* Centrar títulos dentro del registro */
.form-card h2,
.acerca-container h2 {
    text-align: center !important;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

/* Ajustar espacio y simetría del header del formulario */
.form-card h2 {
    margin-bottom: 20px;
}

.password-msg {
    font-size: 13px;
    margin-top: 4px;
    color: #d9534f; /* rojo */
}

.password-msg.valid {
    color: #28a745; /* verde */
}

.password-match {
    font-size: 13px;
    margin-top: 4px;
    color: #d9534f; /* rojo */
}

.password-match.valid {
    color: #28a745; /* verde */
}
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20;
}

.modal-content {
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 520px !important;
    padding: 25px;
    overflow-y: auto;
    max-height: 85vh;
}

.hidden {
    display: none;
}

.auth-input {
    width: 100%;
    margin-bottom: 12px;
    padding: 10px 14px;
    border-radius: 6px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}
.top-date {
    font-size: 12px;
    color: #cccccc;
    margin-bottom: 10px;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;   /* 🔑 altura real */
    z-index: 1000;
    background: #111;
}

header {
    position: relative;
    height: auto;          /* 🔑 CLAVE */
    overflow: visible;     /* 🔑 CLAVE */
}
.topics-banner {
    margin-top: 0;        /* queda justo después del body padding */
    position: relative;
    z-index: 10;
}
.logo-nav {
    height: 70px;   /* 🔑 nunca más grande que el navbar */
}
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;

    height: 70px;          /* 🔑 MISMO QUE EL LOGO */
    padding: 0 20px;

    background: #111;
    color: white;

    display: flex;
    justify-content: space-between;
    align-items: center;

    z-index: 1000;
}

.cluster-card {
    background: #fff;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 18px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.cluster-fecha {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 6px;
}

.cluster-resumen {
    font-size: 14px;
    color: #444;
    line-height: 1.4;
    margin: 8px 0 12px;
}

.cluster-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.cluster-meta a {
    font-weight: bold;
    text-decoration: none;
}

.cluster-thumb{
  width:100%;
  height:150px;
  object-fit:cover;
  border-radius:8px;
  margin-bottom:10px;
}

/* =========================
   DESTACADOS — VERSIÓN COMPACTA (busqueda)
========================= */

.destacados-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.destacado-item {
  max-width: 260px;
}

.destacado-img {
  height: 120px;       /* 🔑 aquí está el cambio */
  object-fit: cover;
}

.img-container {
  position: relative;
}

.img-info-icon {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(0,0,0,.7);
  color: #fff;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: help;
}

.img-info-popup {
  position: absolute;
  bottom: 28px;
  right: 6px;
  background: rgba(0,0,0,.85);
  color: #fff;
  font-size: 12px;
  padding: 6px 8px;
  border-radius: 4px;
  display: none;
  white-space: nowrap;
}

.img-container:hover .img-info-popup {
  display: block;
}
/* ===== TÍTULOS DE COLUMNAS LATERALES (BÚSQUEDA / TEMAS) ===== */
.column-title {
  font-size: 15px;
  font-weight: bold;
  color: #111;              /* 🔑 visible en fondo blanco */
  margin-bottom: 10px;
  border-left: 4px solid #d9a404;  /* amarillo Prensa Inteligente */
  padding-left: 8px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* ===== PAGINACIÓN ===== */

.paginacion {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 30px 0 10px;
}

.pagina-btn {
  border: 1px solid #ccc;
  background: white;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

.pagina-btn:hover {
  background: #f3f3f3;
}

.pagina-btn.activa {
  background: #111;
  color: white;
  border-color: #111;
}

.cluster-tiempo {
  font-size: 12px;
  color: #666;
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* =========================
   HEADER GLOBAL NORMALIZADO
   ========================= */

.main-header {
  width: 100%;
  height: 64px;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  max-width: 1280px;
  height: 64px;
  margin: 0 auto;
  padding: 0 18px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.logo-nav {
  height: 34px;
  width: auto;
  object-fit: contain;
}

.main-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.main-menu li a {
  text-decoration: none;
  font-size: 14px;
  color: #111827;
  font-weight: 500;
}

.main-menu li a:hover {
  color: #2563eb;
}

.btn-suscripcion {
  padding: 6px 14px;
  border-radius: 999px;
  background: #111827;
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
}

.nav-user {
  position: relative;
}

.nav-avatar {
  width: 32px !important;
  height: 32px !important;
  max-width: 32px !important;
  max-height: 32px !important;

  border-radius: 50%;
  object-fit: cover;
  cursor: pointer;
}

.nav-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 42px;

  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  min-width: 180px;

  box-shadow: 0 8px 20px rgba(0,0,0,.08);
}

.nav-dropdown a {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  color: #111827;
  text-decoration: none;
}

.nav-dropdown a:hover {
  background: #f3f4f6;
}

.nav-name {
  padding: 10px 14px;
  font-weight: 600;
  border-bottom: 1px solid #eee;
}

.hero {
  margin-top: 12px;
}

.cluster-share-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 0;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fafafa;
}

.share-label {
  font-weight: 600;
  font-size: 14px;
  color: #111;
}

.share-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.share-btn {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #ddd;
  background: white;
  cursor: pointer;
}

.share-btn:hover {
  background: #f3f4f6;
}

.share-btn.copy {
  font-weight: 600;
}

.share-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  margin-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
}

.share-label {
  font-weight: 600;
  margin-right: 6px;
}

.share-box button {
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  padding: 6px 10px;
  font-size: 13px;
  cursor: pointer;
  border-radius: 6px;
}

.share-box button:hover {
  background: #e5e7eb;
}
/* ==================================================
   FIX CLUSTER — NOTICIAS DESTACADAS
   (igualar exactamente al HOME)
   ================================================== */

/* Sacar la sección del contexto del cluster-grid */
.cluster-grid + .destacados-section,
.destacados-section.destacados-full {
    width: 90%;
    margin: 50px auto;
}

/* Forzar el mismo grid ancho que Home */
.destacados-section.destacados-full .destacados-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

/* Cards con proporción correcta */
.destacados-section.destacados-full .destacado-item {
    min-height: 320px;
}

/* Imagen MÁS ANCHA, MENOS ALTA (como Home) */
.destacados-section.destacados-full .destacado-img {
    height: 170px;
    object-fit: cover;
}

/* ==================================================
   DESTACADOS — CLUSTER (aislados del resto)
   ================================================== */

.destacados-section.destacados-cluster {
    width: 90%;
    max-width: 1300px;
    margin: 50px auto 70px;
    padding: 0 20px;
}

.destacados-section.destacados-cluster .destacados-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

/* Tarjetas */
.destacados-section.destacados-cluster .destacado-item {
    max-width: none;              /* 🔑 rompe el límite compacto */
    border-bottom: none;
    padding: 14px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    display: flex;
    flex-direction: column;
}

/* Imagen APANORÁMICA (como Home) */
.destacados-section.destacados-cluster .destacado-img,
.destacados-section.destacados-cluster .cluster-img-wrapper {
    width: 100%;
    height: 170px;
    aspect-ratio: auto;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

/* Título */
.destacados-section.destacados-cluster h4,
.destacados-section.destacados-cluster .destacado-titulo {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
}

/* Meta */
.destacados-section.destacados-cluster .destacado-meta {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: auto;
}

/* Responsive */
@media (max-width: 1024px) {
    .destacados-section.destacados-cluster .destacados-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .destacados-section.destacados-cluster .destacados-grid {
        grid-template-columns: 1fr;
    }
}

body {
  padding-top: 70px; /* misma altura real del navbar */
}


/* =========================================
   CLUSTER — NOTICIAS DESTACADAS (AISLADO)
========================================= */

.cluster-page .cluster-destacados {
  max-width: 1100px;
  margin: 50px auto 60px;
  padding: 0 16px;
}

.cluster-page .cluster-destacados-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 18px;
  border-left: 4px solid #d9a404;
  padding-left: 10px;
}

.cluster-page .cluster-destacados-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.cluster-page .cluster-destacado-item {
  display: flex;
  gap: 14px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 12px;
}

.cluster-page .cluster-destacado-img {
  width: 140px;
  height: 90px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.cluster-page .cluster-destacado-text h4 {
  margin: 0 0 6px 0;
  font-size: 0.95rem;
  font-weight: 500;
}

.cluster-page .cluster-destacado-meta {
  font-size: 0.8rem;
  color: #777;
}

/* Mobile */
@media (max-width: 768px) {
  .cluster-page .cluster-destacados-grid {
    grid-template-columns: 1fr;
  }
}

/* ==================================================
   FIX FINAL — NOTICIAS DESTACADAS EN CLUSTER
   (AISLADO, NO AFECTA HOME)
   ================================================== */

.cluster-page .cluster-destacados {
  width: 90%;
  max-width: 1200px;
  margin: 50px auto 70px;
}

.cluster-page .cluster-destacados-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* igual que HOME */
  gap: 22px;
}

/* Tarjeta */
.cluster-page .cluster-destacados-grid .destacado-item {
  background: #fff;
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);

  /* 🔑 CLAVES */
  max-width: none;
  min-height: auto;
  display: block;
}

/* Imagen — más ancha, menos alta */
.cluster-page .cluster-destacados-grid .destacado-img {
  width: 100%;
  height: 160px;          /* HOME-like */
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 8px;
}

/* Título */
.cluster-page .cluster-destacados-grid .destacado-titulo {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 6px;
}

/* Footer */
.cluster-page .cluster-destacados-grid .destacado-footer {
  font-size: 12px;
  color: #666;
  display: flex;
  justify-content: space-between;
}

/* Responsive */
@media (max-width: 1024px) {
  .cluster-page .cluster-destacados-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .cluster-page .cluster-destacados-grid {
    grid-template-columns: 1fr;
  }
}

/* =====================================
   FIX ESPACIO HEADER + TOPICS (CLUSTER)
   ===================================== */

.cluster-page .topics-banner {
  margin-top: 70px !important; /* exactamente la altura del header */
}

/* ==================================================
   RESET + FIX DEFINITIVO
   NOTICIAS DESTACADAS — CLUSTER
   ================================================== */

/* Contenedor */
.cluster-page .cluster-destacados {
  max-width: 1200px;
  margin: 50px auto 70px;
  padding: 0 16px;
}

/* Grid igual al HOME */
.cluster-page .cluster-destacados-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

/* Card LIMPIA */
.cluster-page .cluster-destacados-grid .destacado-item {
  background: #fff;
  border-radius: 10px;
  padding: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);

  /* 🔥 RESET CLAVE */
  display: block !important;
  max-width: none !important;
  height: auto !important;
}

/* Link no flex */
.cluster-page .cluster-destacados-grid .destacado-link {
  display: block !important;
  text-decoration: none;
  color: inherit;
}

/* Imagen horizontal (HOME-like) */
.cluster-page .cluster-destacados-grid .destacado-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}

/* Título */
.cluster-page .cluster-destacados-grid .destacado-titulo {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 8px;

  /* evita columnas gigantes */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Footer */
.cluster-page .cluster-destacados-grid .destacado-footer {
  font-size: 12px;
  color: #666;
  display: flex;
  justify-content: space-between;
}

@media (max-width: 1024px) {
  .cluster-page .cluster-destacados-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .cluster-page .cluster-destacados-grid {
    grid-template-columns: 1fr;
  }
}

.topics-banner {
  margin: 0;
  padding: 0;
}

.topics-inner {
  padding: 8px 16px;
}

/* === CLUSTER: neutralizar offsets fantasmas === */
.cluster-page .topics-banner {
  margin-top: 0 !important;
}

.cluster-page section:first-of-type {
  margin-top: 0 !important;
}

.contact-form-vertical {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-form-vertical input,
.contact-form-vertical select,
.contact-form-vertical textarea {
  padding: 14px;
  font-size: 15px;
  border-radius: 8px;
}

.btn-contact-submit {
  margin-top: 10px;
  padding: 14px;
  font-size: 16px;
}

/* =========================
   FORMULARIO CONTACTO – ESTILO NEWSLETTER
   ========================= */

/* =========================
   FORMULARIO CONTACTO – ESTILO LIMPIO
   ========================= */

.newsletter-like {
  background: transparent; /* 👈 clave */
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Labels */
.newsletter-like label {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: -6px;
}

/* Inputs / select / textarea */
.newsletter-like input,
.newsletter-like select,
.newsletter-like textarea {
  padding: 14px 16px;
  font-size: 15px;
  border-radius: 10px;
  border: 1px solid #d0d0d0;
  background: #fff;
  width: 100%;
}

/* Textarea más grande */
.newsletter-like textarea {
  resize: vertical;
  min-height: 160px;
}

/* Botón igual al newsletter */
.newsletter-like button {
  margin-top: 10px;
  width: 100%;
  padding: 14px;
  font-size: 16px;
  border-radius: 10px;
}

.newsletter-like input,
.newsletter-like select,
.newsletter-like textarea,
.newsletter-like button {
  width: 100%;
  font-size: 16px;
  border-radius: 10px;
}

/* Altura uniforme */
.newsletter-like input,
.newsletter-like select {
  height: 52px;
}

/* Textarea grande y coherente */
.newsletter-like textarea {
  padding: 14px 16px;
  min-height: 180px;
  resize: vertical;
}

/* Botón mismo alto que inputs */
.newsletter-like button {
  height: 52px;
  margin-top: 10px;
}

/* =========================
   CONTACT FORM – SISTEMA ÚNICO
   ========================= */

.contact-form-vertical {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Labels */
.contact-form-vertical label {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 6px;
}

/* TODOS los campos iguales */
.contact-form-vertical input,
.contact-form-vertical select,
.contact-form-vertical textarea {
  width: 100%;
  box-sizing: border-box;

  height: 52px;              /* 👈 CLAVE */
  padding: 12px 14px;
  font-size: 16px;

  border-radius: 10px;
  border: 1px solid #ccc;
  background: #fff;
}

/* Textarea: solo más alto, pero MISMO padding */
.contact-form-vertical textarea {
  height: 180px;             /* 👈 controlado */
  resize: vertical;
}

/* Botón = MISMA ALTURA */
.contact-form-vertical button {
  height: 52px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 10px;
  margin-top: 10px;
}

.cluster-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 32px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
}

.cluster-left {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cluster-left .sub-box {
  background: #111;
  color: #fff;
  padding: 16px;
  border-radius: 8px;
}

.cluster-left .sub-box h4 {
  margin-bottom: 8px;
}

.cluster-left .sub-box p {
  font-size: 14px;
  opacity: 0.85;
}

.cluster-left .ad-box {
  margin-top: 24px;
  background: #f2f2f2;
  height: 250px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #777;
}

.articulos-filtros {
  display: flex;
  gap: 8px;
  margin: 16px 0 20px;
  border-bottom: 1px solid #2a2a2a;
}

.filtro-btn {
  background: none;
  border: none;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #999;
  cursor: pointer;
  position: relative;
}

.filtro-btn.active {
  color: #fff;
}

.filtro-btn.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: #f5c400; /* tu amarillo */
}

/* =========================
   PESTAÑAS FILTRO ARTÍCULOS
========================= */

.articulos-filtros {
  display: flex;
  gap: 6px;
  border-bottom: 2px solid #e5e5e5;
  margin: 24px 0 18px;
}

.filtro-btn {
  background: #f4f4f4;
  color: #111;
  border: 1px solid #ddd;
  border-bottom: none;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;

  border-radius: 8px 8px 0 0;

  transition: all 0.15s ease;
}

.filtro-btn:hover {
  background: #eaeaea;
}

/* ACTIVA = pestaña real */
.filtro-btn.active {
  background: #111;
  color: #fff;
  border-color: #111;
  position: relative;
  top: 2px;
}

/* Para que el contenido “encaje” */
#articulos-lista {
  border-top: 1px solid #ddd;
  padding-top: 16px;
}

/* =========================
   BOTÓN VER MÁS
========================= */

.ver-mas-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  margin: 32px auto 10px;
  padding: 14px 28px;

  background: #111;
  color: #fff;

  font-size: 16px;
  font-weight: 600;

  border: none;
  border-radius: 999px;

  cursor: pointer;
  transition: all 0.2s ease;
}

.ver-mas-btn::before {
  content: "+";
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.ver-mas-btn:hover {
  background: #000;
  transform: translateY(-1px);
}

.search-container {
  max-width: 900px;
  margin: 0 auto;
}

.search-intro {
  color: #444;
  margin-bottom: 24px;
}

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

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

.search-item a {
  font-weight: 500;
  color: #111;
}

.search-meta {
  font-size: 13px;
  color: #666;
}

.search-empty {
  color: #777;
  font-style: italic;
}

/* =========================
   SEARCH — CARDS
   ========================= */

.search-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.search-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.search-card:hover {
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
  transform: translateY(-1px);
}

.search-date {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 6px;
}

.search-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.search-snippet {
  font-size: 15px;
  color: #374151;
  margin-bottom: 12px;
  line-height: 1.55;
}

.search-actions {
  display: flex;
  gap: 16px;
  margin-top: 10px;
}

.search-actions a {
  font-size: 14px;
  font-weight: 500;
  color: #2563eb;
  text-decoration: none;
}

.search-actions a:hover {
  text-decoration: underline;
}

.search-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}

/* =========================
   BOOKMARK / GUARDAR
========================= */
/* =========================
   BOOKMARK / GUARDAR — DEFINITIVO
========================= */

/* =========================
   BOOKMARK / GUARDAR — SVG LIMPIO
========================= */

.fav-wrap {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
}

.fav-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.fav-icon {
  width: 18px;
  height: 24px;
  display: block;
}

/* NO guardado */
.fav-btn .fav-icon path {
  fill: none;
  stroke: #000;
}

/* Guardado */
.fav-btn.saved .fav-icon path {
  fill: #c7a000;
  stroke: #000;
}

/* Tooltip */
.fav-tooltip {
  position: absolute;
  top: -34px;
  right: 50%;
  transform: translateX(50%) translateY(4px);

  background: #111;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 9px;
  border-radius: 4px;
  white-space: nowrap;

  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
}

.fav-wrap:hover .fav-tooltip {
  opacity: 1;
  transform: translateX(50%) translateY(0);
}

.fav-btn.saved + .fav-tooltip {
  background: #c7a000;
  color: #000;
  border: 1px solid #000;
}

.nav-dropdown a {
  display: block;
  padding: 8px 12px;
}

.nav-dropdown a:hover {
  background: #f3f3f3;
}

/* =========================
   GUARDADOS — LAYOUT
========================= */

.guardados-container {
  max-width: 900px;        /* igual que acerca */
  margin: 0 auto;
  padding: 40px 24px 80px; /* aire arriba y abajo */
}

/* Títulos */
.guardados-container h2 {
  margin-bottom: 12px;
}

.guardados-container .acerca-intro {
  margin-bottom: 32px;
  color: #444;
  font-size: 1.05rem;
}

/* Separación entre bloques */
.guardados-container .acerca-card {
  margin-bottom: 36px;
}

.actividad-timeline {
  list-style: none;
  padding: 0;
  margin: 0;
}

.actividad-item {
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.actividad-fecha {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 4px;
}

.actividad-body {
  line-height: 1.4;
}






body {
  background: var(--bg-main);
  color: var(--text-main);
}

/* ===== DARK MODE – CONTENEDORES BASE ===== */

.acerca-card,
.ideologia-card,
.actividad-hero,
.actividad-hero-perfil,
.actividad-hero-grafico,
.nav-dropdown {
  background: var(--bg-card) !important;
  border-color: var(--border-soft) !important;
  color: var(--text-main);
}

/* Texto secundario */
.text-muted,
.ideologia-label,
.tema-label,
.actividad-hero-stats,
.mini-x-label,
.y-mid {
  color: var(--text-muted) !important;
}

/* =========================
   DARK MODE – CLUSTERS
   ========================= */

body.dark .cluster-card,
body.dark .cluster-container,
body.dark .cluster-box,
body.dark .cluster-panel,
body.dark .cluster-content {
  background: var(--bg-card);
  color: var(--text-main);
  border-color: var(--border-soft);
}

/* Texto principal */
body.dark h1,
body.dark h2,
body.dark h3,
body.dark h4,
body.dark strong {
  color: var(--text-main);
}

/* Texto secundario */
body.dark p,
body.dark span,
body.dark small,
body.dark .text-muted {
  color: var(--text-muted);
}

body.dark .cluster-resumen,
body.dark .cluster-analisis,
body.dark .cluster-sesgo,
body.dark .cluster-articulos {
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
}

body.dark .sesgo-label,
body.dark .sesgo-titulo,
body.dark .sesgo-leyenda {
  color: var(--text-muted);
}

/* =========================
   DARK MODE — CLUSTERS FINAL FIX
   ========================= */

body.dark .cluster-card *,
body.dark .cluster-box *,
body.dark .cluster-panel *,
body.dark .cluster-section * {
  background-color: transparent;
}

/* Nivel 1: card principal */
body.dark .cluster-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
}

/* Nivel 2: secciones internas */
body.dark .cluster-card .cluster-section,
body.dark .cluster-card .cluster-resumen,
body.dark .cluster-card .cluster-analisis,
body.dark .cluster-card .cluster-sesgo,
body.dark .cluster-card .cluster-articulos {
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
}

/* Texto meta / secundario */
body.dark .meta,
body.dark .subtitle,
body.dark .fecha,
body.dark .cluster-date,
body.dark .label,
body.dark .info-text {
  color: var(--text-muted);
}

body.dark .cluster-card {
  color: var(--text-main);
}

body.dark input,
body.dark textarea,
body.dark select {
  background: #0f141a;
  color: var(--text-main);
  border: 1px solid var(--border-soft);
}

/* =========================
   DARK MODE — NORMALIZACIÓN
   ========================= */

body.dark {
  --bg-main: #0d1117;
  --bg-card: #161b22;
  --bg-soft: #1c2128;

  --border-soft: #3a3a3c;

  --text-main: #e6edf3;
  --text-muted: #ffffff;
  --text-soft: #ffffff;
}

/* Quitar bordes legacy claros */
body.dark * {
  border-color: var(--border-soft) !important;
}

/* Cards principales */
body.dark .cluster-card {
  background: var(--bg-card);
  border-radius: 12px;
}

/* Sub-bloques internos */
body.dark .cluster-card > div,
body.dark .cluster-section,
body.dark .cluster-resumen,
body.dark .cluster-analisis,
body.dark .cluster-sesgo,
body.dark .cluster-articulos {
  background: var(--bg-soft);
}

/* Texto principal */
body.dark h1,
body.dark h2,
body.dark h3,
body.dark h4,
body.dark strong {
  color: var(--text-main);
}

/* Texto secundario */
body.dark p,
body.dark span,
body.dark li {
  color: var(--text-soft);
}

/* Meta / labels / fechas */
body.dark .meta,
body.dark .subtitle,
body.dark .label,
body.dark .cluster-date,
body.dark .info,
body.dark small {
  color: var(--text-muted);
}

body.dark input,
body.dark textarea,
body.dark select {
  background: var(--bg-main);
  color: var(--text-main);
  border: 1px solid var(--border-soft);
}

/* =========================
   DARK MODE — CLUSTERS FIX
   ========================= */

body.dark .cluster-card,
body.dark .cluster-card * {
  color: var(--text-soft);
}

/* Títulos fuertes */
body.dark .cluster-card h1,
body.dark .cluster-card h2,
body.dark .cluster-card h3,
body.dark .cluster-card h4,
body.dark .cluster-card strong {
  color: var(--text-main) !important;
}

/* Texto largo de resumen */
body.dark .cluster-resumen,
body.dark .cluster-resumen p,
body.dark .cluster-resumen span {
  color: #ffffff !important; /* más claro que soft */
  line-height: 1.6;
}

/* Fechas y metadata */
body.dark .cluster-date,
body.dark .meta,
body.dark .info,
body.dark small {
  color: #ffffff !important;
}

/* Tabs de artículos */
body.dark .tabs button,
body.dark .filter-btn,
body.dark .cluster-tabs button {
  background: var(--bg-soft);
  color: var(--text-main) !important;
  border: 1px solid var(--border-soft);
}

/* Tab activo */
body.dark .tabs button.active,
body.dark .filter-btn.active {
  background: #1f6feb;
  color: #ffffff !important;
  border-color: #1f6feb;
}

/* Links de artículos */
body.dark a {
  color: #ffffff;
}

body.dark a:hover {
  color: #ffffff;
}

/* =========================
   DARK MODE — SUSCRIPCIÓN
   ========================= */

body.dark .plan-card,
body.dark .pricing-card,
body.dark .suscripcion-card,
body.dark .acerca-card,
body.dark .plan-box {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-soft) !important;
  color: var(--text-soft) !important;
}

/* Títulos y precios */
body.dark .plan-card h2,
body.dark .plan-card h3,
body.dark .pricing-card h2,
body.dark .pricing-card h3,
body.dark .precio,
body.dark .price {
  color: var(--text-main) !important;
}

body.dark .plan-card p,
body.dark .pricing-card p,
body.dark .plan-card li {
  color: #e8ecf0 !important;
}

body.dark .plan-card .btn,
body.dark .pricing-card .btn {
  background: #1f6feb;
  color: #ffffff !important;
  border: none;
}

body.dark .plan-card .btn.secondary {
  background: transparent;
  border: 1px solid var(--border-soft);
  color: var(--text-main) !important;
}

/* =========================
   DARK MODE — NEWSLETTER
   ========================= */

body.dark .newsletter,
body.dark .newsletter-box,
body.dark .newsletter-card,
body.dark .newsletter-section,
body.dark .cta-newsletter {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-soft) !important;
  color: var(--text-soft) !important;
}





/* =========================
   DARK MODE — PERFIL
========================= */

/* Botón base */
body.dark .plan-btn {
  background: #eab308 !important;   /* gris oscuro */
  color: #f9fafb !important;        /* texto claro */
  border: 1px solid #374151;
}

/* Hover */
body.dark .plan-btn:hover {
  background: #374151 !important;
}



/* Hover prisma */
body.dark .plan-btn.prisma:hover {
  background: #eab308 !important;
}

/* Botón Cerrar sesión (si quieres más énfasis) */
body.dark button[onclick="logout()"] {
  background: #eab308 !important;   /* rojo oscuro */
  color: #fff !important;
  border: none;
}

body.dark button[onclick="logout()"]:hover {
  background: #eab308 !important;
}

/* =========================
   DARK MODE — CERRAR SESIÓN
========================= */

body.dark button[onclick="logout()"] {
  color: #111 !important;           /* 🔑 TEXTO NEGRO */
  font-weight: 600;
  border: none;
}

/* =========================
   PERFIL — TAGS DE INTERESES (DARK MODE)
========================= */

body.dark #perfil-intereses span {
  background: #1f2933 !important;
  border: 1px solid #374151 !important;
  color: #ffffff !important;
}

/* =========================
   PERFIL — TEXTO GRIS ILEGIBLE (DARK MODE)
========================= */

body.dark #perfil-extra,
body.dark #perfil-plan {
  color: #ffffff !important;
}




body.dark .search-card {
  background: #111827;          /* 👈 MISMO color base */
  border: 1px solid #1f2937;
  color: #e5e7eb;
}

/* Texto principal */
body.dark .search-card {
  color: #ffffff;
}

/* Títulos */
body.dark .search-card h1,
body.dark .search-card h2,
body.dark .search-card h3,
body.dark .search-card h4 {
  color: #f9fafb;
}

/* Texto secundario / resúmenes */
body.dark .search-card p,
body.dark .search-card .cluster-resumen,
body.dark .search-card .snippet {
  color: #ffffff;
}

/* Fechas, meta, contadores */
body.dark .search-card .cluster-fecha,
body.dark .search-card .cluster-tiempo,
body.dark .search-card .cluster-meta {
  color: #ffffff;
}

/* Links */
body.dark .search-card a {
  color: #ffcc00;
}

body.dark .search-card a:hover {
  text-decoration: underline;
}





/* ===============================
   OVERRIDE FINAL — BUSQUEDA DARK
   =============================== */

body.dark .search-card * {
  color: #e5e7eb !important;
}


body.dark .destacados-section {
  background: transparent;
}


/* ============================
   CLUSTER — NOTICIAS DESTACADAS (DARK)
============================ */

body.dark .cluster-destacados {
  background: transparent;
}

body.dark .cluster-destacados-title {
  color: #f9fafb;
}

/* Grid */
body.dark .cluster-destacados-grid {
  background: transparent;
}

/* Card */
body.dark .cluster-destacados-grid .destacado-item {
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 8px;
}

/* Quitar fondo blanco del <a> */
body.dark .cluster-destacados-grid .destacado-link {
  background: transparent;
  color: inherit;
}

/* Título */
body.dark .cluster-destacados-grid .destacado-titulo {
  color: #f9fafb;
}

/* Footer */
body.dark .cluster-destacados-grid .destacado-footer {
  color: #e5e7eb;
}

/* Hover */
body.dark .cluster-destacados-grid .destacado-item:hover {
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}


.search-box-page {
  display: flex;
  gap: 10px;
  margin: 20px 0 30px;
}

.search-box-page input {
  flex: 1;
  padding: 12px 14px;
  font-size: 15px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.search-box-page button {
  padding: 12px 18px;
  border-radius: 8px;
  border: none;
  background: #111;
  color: white;
  font-weight: 600;
  cursor: pointer;
}

/* =========================
   SEARCH PAGE — DARK MODE
========================= */

body.dark .search-box-page button,
body.dark #search-page-btn {
  background: #111827;          /* mismo fondo que cards */
  color: #f9fafb;               /* texto claro */
  border: 1px solid #374151;    /* 👈 BORDE CLARO */
  border-radius: 8px;
  transition: all 0.15s ease;
}

/* Hover */
body.dark .search-box-page button:hover,
body.dark #search-page-btn:hover {
  background: #1f2937;
  border-color: #989ba0;        /* un poco más visible */
}

.radar-box {
  background: var(--card-bg, #f9fafb);
  border: 1px solid var(--card-border, #e5e7eb);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 20px;
  font-size: 14px;
}

body.dark .radar-box {
  background: #111827;
  border-color: #1f2937;
}

.radar-title {
  font-size: 15px;
  margin-bottom: 10px;
}

.radar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.radar-list li {
  margin-bottom: 8px;
  line-height: 1.4;
}

.radar-sub {
  font-size: 12px;
  opacity: 0.8;
  margin-left: 18px;
}

.radar-status {
  margin-top: 10px;
  font-weight: 600;
}

.radar-block {
  margin-top: 6px;
  font-size: 0.9rem;
}

.radar-muted {
  opacity: 0.75;
}







/* Ideología histórica debe verse igual que narrativa */
#radar-bias .radar-muted {
  color: #111;          /* negro normal */
  font-size: 15px;
  font-weight: 500;
}

/* Radar SIN jerarquías secundarias */
.radar-sub {
  font-size: inherit;
  color: inherit;
  margin-top: 0;
}

.radar-list li {
  font-size: 15px;
  font-weight: 400;
  color: #111;
  margin-bottom: 10px;
}

.radar-list strong {
  font-weight: 600;
}

.radar-status {
  font-size: 15px;
  font-weight: 500;
  color: #111;
  margin-top: 12px;
}

.radar-title {
  font-size: 18px;        /* súbelo a 19–20 si quieres */
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
  color: #111;
}


.cluster-left {
  width: 340px;       /* DISTANCIA CAJA AL CLUSTER */
}

/* === Radar Header === */
.radar-header {
  display: flex;
  flex-direction: column;
  gap: 0px;
  margin-bottom: 14px;
}


/* === NV PREMIUM badge === */
.radar-premium {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 8px;
  border-radius: 4px;
  background: #f2c200; /* amarillo oscuro */
  color: #000;
}

/* === Radar title === */
.radar-title {
  font-size: 18px;   /* más grande */
  font-weight: 800;
  letter-spacing: 0.04em;
}


/* === Donut chart === */
.radar-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.radar-donut {
  --size: 54px;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background:
    conic-gradient(
      #000 0% calc(var(--p) * 1%),
      #e5e5e5 calc(var(--p) * 1%) 100%
    );
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

.radar-donut span {
  width: 34px;
  height: 34px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* texto al lado */
.radar-text {
  font-size: 14px;
  line-height: 1.4;
}



.radar-header {
  display: flex;
  flex-direction: column;
  gap: 4px;          /* 🔥 ESTE es el control real */
  margin-bottom: 12px;
}

.radar-premium {
  margin: 0;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 700;
  background: #f5c400;   /* amarillo oscuro */
  color: #000;
  border-radius: 4px;
  width: fit-content;
}

.radar-title {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.radar-donut {
  width: 80px;      /* 👈 TAMANO ARO EXTERNO */
  height: 80px;
  margin: 12px 0;
}

.radar-donut svg {
  width: 100%;
  height: 100%;
}

.radar-donut span {
  width: 65px;           /* TAMANO ARO INTERNO*/
  height: 65px;
}



/* =========================
   DONAS IDEOLÓGICAS RADAR
   ========================= */

.radar-donut-multi {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  position: relative;
  margin: 10px auto 18px auto;
  background: #e5e7eb; /* fallback */
}

/* agujero central */
.radar-donut-multi::after {
  content: "";
  position: absolute;
  inset: 18px;           /* <-- controla el grosor del aro */
  background: #ffffff;  /* modo claro */
  border-radius: 50%;
  z-index: 1;
}

/* texto central */
.donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.1;
  z-index: 2;
}

.donut-center small {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.8;
}


/* Contenedor general */
.radar-donuts-wrap {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-top: 8px;
}

/* Cada bloque */
.radar-donut-block {
  flex: 1;
  text-align: center;
}

/* Título */
.radar-donut-title {
  font-weight: 600;
  font-size: 17px;
  margin-bottom: 6px;
}

/* Dona */
.radar-donut-multi {
  width: 110px;
  height: 110px;
  margin: 0 auto;
  border-radius: 50%;
  position: relative;
  cursor: pointer;
}

/* Centro de la dona */
.radar-donut-multi::after {
  content: "";
  position: absolute;
  inset: 18px; /* 👉 grosor del aro */
  background: #fff;
  border-radius: 50%;
  z-index: 1;
}

.donut-center {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
}

.donut-center small {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.7;
}


.radar-donut-tooltip {
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  background: #111;
  color: #fff;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  white-space: nowrap;
}

.radar-donut-tooltip.visible {
  opacity: 1;
}

.radar-donut-multi:hover .radar-donut-tooltip {
  opacity: 1;
}


/* ===== BARRAS VERTICALES RADAR ===== */


.radar-bar-title {
  font-size: 16px;
  font-weight: 500;
  text-align: center;
}

.radar-bar-value {
  font-size: 13px;
  font-weight: 500;
  text-align: center;
}


.radar-bar-tooltip {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.85);
  color: #fff;
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .12s ease;
}




/* contenedor de barras (li) */
#radar-concentration,
#radar-repetition {
  display: flex;
  justify-content: center;
}



/* títulos centrados */
.radar-bar-title {
  text-align: center;
  font-weight: 600;
}



/* valor debajo */
.radar-bar-value {
  font-size: 13px;
  color: #374151;
  text-align: center;
}


/* ===============================
   RADAR — BARRAS HORIZONTALES
   =============================== */


/* Centrar títulos */
.radar-bar-title {
  text-align: center;
}



.radar-bar-tooltip {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);

  background: #111;
  color: #fff;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 6px;

  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 0.15s ease;
  z-index: 99;
}


/* Línea de corte */
.radar-bar-cut {
  position: absolute;
  left: -6px;
  width: 38px;
  height: 2px;
  background: #111;
  opacity: 0.8;
}

/* Valor al lado */
.radar-bar-value {
  font-size: 15px;
  font-weight: 600;
  margin-top: 4px;
}


/* Línea de corte */
.radar-bar-cut {
  position: absolute;
  left: -6px;
  width: 38px;
  height: 2px;
  background: #111;
}

/* 🔑 LABEL AL LADO DERECHO */



/* 🔑 LABEL AL LADO DERECHO DE LA BARRA */
.radar-bar-label {
  position: absolute;
  left: 42px;          /* a la derecha de la barra */
  font-size: 12px;
  font-weight: 700;
  color: #111;
  white-space: nowrap;
  transform: translateY(50%);
}


.radar-bar-title {
  min-height: 38px;   /* 🔑 MISMO ESPACIO PARA TODOS */
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
}


/* relleno */


/* repetición en rojo */

/* línea de corte (sí depende del porcentaje) */
.radar-bar-cut {
  position: absolute;
  left: -6px;
  width: 38px;
  height: 2px;
  background: #111;
  bottom: calc(var(--pct) * 1%);
}

/* 🔑 TEXTO FIJO, NO DEPENDE DEL % */
.radar-bar-percent {
  position: absolute;
  left: 42px;
  top: 50%;                    /* 🔥 MISMO NIVEL PARA TODAS */
  transform: translateY(-50%);
  font-size: 14px;
  font-weight: 700;
  color: #111;
  white-space: nowrap;
}




/* ===============================
   RADAR — BARRAS DEFINITIVAS
   =============================== */



/* título */
.radar-bar-title {
  min-height: 38px;
  font-weight: 600;
  text-align: center;
}


/* línea de corte */
.radar-bar-cut {
  position: absolute;
  left: -6px;
  width: 40px;
  height: 2px;
  background: #111;
}

/* 🔥 TEXTO ALINEADO GLOBALMENTE */
.radar-bar-label {
  position: absolute;
  left: 44px;
  top: 50%;                     /* 🔑 SIEMPRE MISMA ALTURA */
  transform: translateY(-50%);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  color: #111;
}




/* ===============================
   RADAR — BARRAS DEFINITIVAS
   =============================== */

.radar-bars-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: end;
}

.radar-bar-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.radar-bar-title {
  font-weight: 600;
  text-align: center;
  min-height: 40px;
}

.radar-bar-vertical {
  position: relative;
  width: 28px;
  height: 120px;
  background: #e5e7eb;
  border-radius: 8px;
  overflow: visible;
}

.radar-bar-fill {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: #181717;
}

.radar-bar-fill-warn {
  background: #181717;
}

.radar-bar-cut {
  position: absolute;
  left: -6px;
  width: 40px;
  height: 2px;
  background: #111;
}

.radar-bar-label {
  position: absolute;
  left: 44px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  font-weight: 700;
  color: #111;
  white-space: nowrap;
}

/* 🔒 Altura fija para texto bajo las barras */
.radar-bar-value {
  min-height: 40px;        /* 👈 clave */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}




.radar-top-medios {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid #e5e7eb;
}

.radar-top-medios-title {
  margin-bottom: 8px;
}

.radar-top-medios-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.radar-top-medios-list li {
  display: flex;
  justify-content: space-between;
  font-size: 17px;
  padding: 4px 0;
}

.radar-top-medios-list span {
  color: #6b7280;
}

.radar-medio-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Logo circular pequeño */
.radar-medio-logo {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: contain;
  background: white;
  border: 1px solid #e5e7eb;
}

/* Dark mode */
body.dark .radar-medio-logo {
  background: #111827;
  border-color: #374151;
}

.radar-top-medios-list li{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.radar-medio-left{
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.radar-medio-logo{
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: contain;
  background: #fff;
  border: 1px solid #e5e7eb;
  flex: 0 0 auto;
}

body.dark .radar-medio-logo{
  background: #111827;
  border-color: #374151;
}

.radar-top-medios-list li{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.radar-medio-left{
  display: flex;
  align-items: center;
  gap: 8px;
}

.radar-medio-logo{
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: contain;
  background: #fff;
  border: 1px solid #e5e7eb;
}
body.dark .radar-medio-logo{
  background: #111827;
  border-color: #374151;
}


/* ===============================
   RADAR — tamaño de texto general
   =============================== */



.radar-title {
  font-size: 20px; /* o el que ya tengas */
}

/* Título sección top medios */
.radar-top-title {
  font-weight: 600; /* o 700 si lo quieres fuerte */
  margin-bottom: 6px;
  font-size: 17.3px;
}

.radar-size {
  font-size: 20px;   /* ajusta aquí */
}

#radar-debate {
  font-size: 17px;
}
#radar-debate strong {
  font-weight: 400; /* normal */
}
#radar-size {
  font-size: 16px;   /* ajusta aquí */
}

#radar-time {
  font-size: 16px;
}

#radar-status {
  font-size: 1.1rem;   /* prueba 0.85rem – 0.95rem */
  font-weight: 500;   /* o 400 si lo quieres más neutro */
}

.radar-separator {
  border-top: 1px solid rgba(0, 0, 0, 0.18);
  margin: 12px 0;
}









/* ===============================
   RADAR — MODO OSCURO
=============================== */

body.dark .radar-bar-value,
body.dark .radar-bar-label,
body.dark .radar-bar-title,
body.dark .radar-status {
  color: #ffffff;
}

body.dark .radar-bar-vertical {
  border: 1px solid rgba(255, 255, 255, 0.7);
}

body.dark .radar-bar-cut {
  background: #ffffff;
}

body.dark .radar-top-title {
  color: #ffffff;
  font-weight: 600;
}

body.dark .radar-top-medios-list li {
  color: #e5e7eb;
}

body.dark .radar-separator {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

/* ===============================
   COLOR NEGRO LINDO
=============================== */
body.dark .radar-donut-multi::after {
  background: #161b22; 
}

body.dark .radar-box {
  background: #161b22;
}

body.dark .radar-premium {
  color: #000000;      /* 🔑 TEXTO NEGRO */
}

body.dark .acerca-intro {
  color: #ffffff;
}

body.dark .articulo-item {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.08);
  color: #e5e7eb;
}

.alert-config select {
    width: 100%;
    padding: 8px;
    border-radius: 6px;
    border: none;
    background: #0f1220;
    color: white;
}

.keyword-input {
    display: block;
    margin-bottom: 8px;
    padding: 6px;
    width: 100%;
    background:#0f1220;
    border:none;
    color:white;
}

.keyword-input {
    flex: 1;
    padding: 6px;
    background:#0f1220;
    border:none;
    color:white;
    border-radius:6px;
}

.big-check {
    width: 18px;
    height: 18px;
    transform: scale(1.4);
    margin-right: 6px;
}

/* 🔹 INPUTS MÁS GRANDES */
.keyword-input {
    flex: 1;
    padding: 10px 12px;
    background:#0f1220;
    border: 1px solid #3a3f55;
    color:white;
    border-radius:8px;
    font-size: 16px;
}

/* 🔹 PLACEHOLDER MÁS LEGIBLE */
.keyword-input::placeholder {
    color:#aaaaaa;
    font-size:15px;
}

/* 🔹 BOTONES AMARILLOS */
button {
    cursor:pointer;
}

/* Botón "Añadir" */
button[data-index] {
    background: #FFD339;
    color:#000;
    border:none;
    padding:8px 12px;
    border-radius:10px;
    font-size:15px;
    font-weight:600;
    transition: .2s ease-in-out;
}

/* Hover */
button[data-index]:hover {
    background:#ffca0a;
    transform: scale(1.03);
}

/* Botón desactivado */
button[data-index]:disabled {
    background:#8d8d8d;
    color:#222;
    cursor:not-allowed;
    transform:none;
}

/* 🔹 BOTÓN ELIMINAR */
button[data-index].delete-btn {
    background:#252838;
    color:white;
    border:1px solid #3b3f55;
}

button[data-index].delete-btn:hover {
    background:#3b3f55;
}

.alertas-container {
            max-width: 1100px;
            margin: auto;
            padding: 20px 10px 60px 10px;
        }

        .alertas-container h2 {
            margin-bottom: 10px;
        }

        .alertas-intro {
            font-size: 1.05rem;
            opacity: .9;
            margin-bottom: 25px;
        }

        .alerta-card {
            background: #ffffff;
            border: 1px solid #2c2f3a;
            border-radius: 12px;
            padding: 18px;
            margin-bottom: 18px;
        }

        .alerta-card h3 {
            margin-top: 0;
        }

        .alerta-meta {
            font-size: .82rem;
            opacity: .7;
            margin-bottom: 10px;
        }

        .alerta-sev {
            font-weight: bold;
            padding: 3px 8px;
            border-radius: 6px;
        }

        .sev-alta { background:#8b0000; }
        .sev-media { background:#805300; }
        .sev-baja  { background:#004d26; }

        .no-alertas {
            opacity: .7;
            text-align: center;
            padding: 40px;
        }


        .guardar-container{
    display: flex;
    justify-content: center;
    margin-top: 25px;
    margin-bottom: 10px;
}

/* Botón guardar amarillo */
#guardar-alertas{
    background:#FFD339 !important;
    color:#000 !important;
    border:none;
    padding:12px 25px;
    border-radius:14px;
    font-size:18px;
    font-weight:700;
    cursor:pointer;
    transition:.2s ease-in-out;
}

#guardar-alertas:hover{
    background:#ffca0a !important;
    transform: scale(1.03);
}

.footer-btn{
    margin-top:10px;
    border-radius:10px;
}


.cluster-comments {
  margin-top: 40px;
  padding: 20px;
  background: #fafafa;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
}

.comment-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.comment-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.comment-body {
  flex: 1;
}

.comment-form textarea {
  width: 100%;
  min-height: 90px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  resize: vertical;
}

.comment-locked {
  background: #fff4f4;
  padding: 12px;
  border-radius: 8px;
  border: 1px dashed #e0a0a0;
}

/* ======================
   💬 COMENTARIOS
====================== */

.comment-item {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
}

.comment-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.comment-body {
  flex: 1;
}

.comment-header {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 4px;
}

.comment-text {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #222;
}

.comment-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.comment-user {
  display: flex;
  flex-direction: column;
  font-size: 0.95rem;
}

.comment-relative {
  font-size: 0.8rem;
  opacity: 0.7;
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.comment-date {
  font-size: 0.75rem;
  opacity: 0.6;
  white-space: nowrap;
}

.comment-delete {
  background: none;
  border: none;
  cursor: pointer;
  color: #999;
  font-size: 0.9rem;
}

.comment-delete:hover {
  color: #c00;
}


/* =========================
   BOTÓN PUBLICAR COMENTARIO
========================= */

#comment-submit {
  width: 100%;
  margin-top: 12px;

  background: #f5c400;          /* Amarillo Prensa */
  color: #111;
  font-weight: 700;
  font-size: 1rem;

  padding: 14px 18px;
  border: none;
  border-radius: 6px;           /* cuadrado elegante */

  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.1s ease;
}

/* Hover */
#comment-submit:hover {
  background: #e6b800;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* Click */
#comment-submit:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Deshabilitado (cuando publica) */
#comment-submit:disabled {
  background: #ddd;
  color: #777;
  cursor: not-allowed;
  box-shadow: none;
}

.comment-form textarea {
  width: 100%;
  min-height: 90px;
  padding: 12px;
  font-size: 0.95rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  resize: vertical;
}

.articulo-fecha {
  font-size: 0.85rem;
  color: #666;
  font-weight: 400;
}



.cluster-actions{
  display: flex;
  align-items: center;          /* 👈 alinea verticalmente */
  justify-content: flex-end;    /* 👈 todo a la derecha */
  gap: 16px;                    /* 👈 separación real */
  margin-bottom: 12px;
}

.share-box{
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;          /* 👈 evita saltos raros */
}

.share-box .share-label{
  font-size: 12px;
  opacity:.75;
  margin-right: 6px;
}

/* HEADER DEL CLUSTER */
.cluster-header{
  display: flex;
  align-items: center;        /* alineación vertical perfecta */
  justify-content: space-between;
  margin-bottom: 14px;
}

/* FECHA A LA IZQUIERDA */
.cluster-date{
  font-size: 0.9rem;
  opacity: 0.75;
  white-space: nowrap;
}

/* ACCIONES A LA DERECHA */
.cluster-actions{
  display: flex;
  align-items: center;
  gap: 12px;
}

.cluster-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 6px 0 12px 0;
    line-height: 1.35;
}

/* Ajuste fino SOLO compartir */
.cluster-actions .share-box{
  display: flex;
  align-items: center;

  margin-top: -20px;   /* ⬆️ sube compartir */
  margin-right: 20px;  /* ⬅️ separa del bookmark */
}

.cluster-date{
  margin-top: 0;
}
.cluster-header{
  align-items: center;
  padding-top: 2px;
}


.share-box{
  display: flex;
  align-items: center;
  gap: 8px;
}

.share-label{
  font-weight: 600;
  margin-right: 6px;
}

.share-icon{
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.share-icon img{
  width: 18px;
  height: 18px;
  opacity: 0.75;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.share-icon:hover img{
  opacity: 1;
  transform: scale(1.08);
}

.share-icon img {
  color: #111;
}

body.dark .share-icon img {
  color: #eee;
}

/* === SHARE ICONS: estilo limpio, sin cajas === */
.share-box button {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 4px;
  margin: 0 2px;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* tamaño de iconos */
.share-box button svg,
.share-box button img {
  width: 25px;
  height: 25px;
}

.share-box .share-label{
  font-size: 15px;     /* prueba 14–18 */
  font-weight: 700;
  letter-spacing: .3px;
}

/* ===== BOOKMARK del CLUSTER: borde más grueso ===== */
.cluster-card .fav-btn.fav-cluster .fav-icon path {
  stroke-width: 2.2 !important;  /* prueba 2.8–4 */
  vector-effect: non-scaling-stroke;
}

/* =========================
   SHARE ICONS — DEFINITIVO
========================= */

/* Base */
.share-icon img{
  width: 20px;
  height: 20px;
  display: block;

  /* color base: negro */
  filter: none;

  transition:
    filter 0.15s ease,
    transform 0.15s ease;
}


/* =========================
   DARK MODE
========================= */

/* =========================
   SHARE ICONS — DARK MODE FIX FINAL
========================= */

body.dark .share-icon img{
  opacity: 1 !important;      /* 🔥 ESTA ERA LA RAZÓN */
  filter:
    brightness(0)
    invert(1)
    drop-shadow(0 0 0 #ffffff);
}

/* ⭐ Bookmark en modo oscuro */
body.dark .fav-icon path {
  stroke: #ffffff;
}

/* =========================
   SHARE TOOLTIP
========================= */

.share-icon{
  position: relative;
}

/* Tooltip */
.share-icon::after{
  content: attr(aria-label);
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);

  background: rgba(0,0,0,0.85);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

/* Mostrar al hover */
.share-icon:hover::after{
  opacity: 1;
  transform: translateX(-50%) translateY(2px);
}

body.dark .share-icon::after{
  background: rgba(255,255,255,0.95);
  color: #000;
}

/* =========================
   FIX FONDO FRANJA SUPERIOR
========================= */

body.dark .cluster-card > .cluster-actions,
body.dark .cluster-card > .cluster-fecha-top,
body.dark .cluster-card > .cluster-header,
body.dark .cluster-card > .cluster-top {
  background: transparent !important;
  box-shadow: none !important;
}








/* =========================
   LOGOS POR SESGO (GRID)
========================= */

.sesgo-logos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  margin-top: 20px;
}

.sesgo-col h5 {
  font-size: 0.85rem;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 8px;
}

.sesgo-col-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 🔑 2 columnas */
  gap: 10px;
}

.sesgo-logo-item {
  display: flex;
  justify-content: center;
  align-items: center;
}

.sesgo-logo-item img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  padding: 4px;
}


.sesgo-narrativa-title {
  margin: 18px 0 14px;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.sesgo-col h5 {
  font-size: 0.8rem;
  text-transform: uppercase;
  opacity: 0.65;
  margin-bottom: 10px;
}

.sesgo-col.izquierda h5 {
  text-align: left;
}

.sesgo-col.centro h5 {
  text-align: center;
}

.sesgo-col.derecha h5 {
  text-align: right;
}





.sesgo-col {
  position: relative;
  padding: 14px 10px 16px;
  border-radius: 14px;
}

/* IZQUIERDA */
.sesgo-col.izquierda {
  background: linear-gradient(
    to bottom,
    rgba(59, 130, 246, 0.12),
    rgba(59, 130, 246, 0.03)
  );
}

/* CENTRO */
.sesgo-col.centro {
  background: linear-gradient(
    to bottom,
    rgba(156, 163, 175, 0.12),
    rgba(156, 163, 175, 0.03)
  );
}

/* DERECHA */
.sesgo-col.derecha {
  background: linear-gradient(
    to bottom,
    rgba(239, 68, 68, 0.12),
    rgba(239, 68, 68, 0.03)
  );
}


body.dark .sesgo-col.izquierda {
  background: linear-gradient(
    to bottom,
    rgba(59, 130, 246, 0.18),
    rgba(59, 130, 246, 0.05)
  );
}

body.dark .sesgo-col.centro {
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.02)
  );
}

body.dark .sesgo-col.derecha {
  background: linear-gradient(
    to bottom,
    rgba(239, 68, 68, 0.18),
    rgba(239, 68, 68, 0.05)
  );
}

.sesgo-logo-item img {
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}


/* Contenedor de 2 columnas reales */
.sesgo-col-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}

/* Cada subcolumna apila logos verticalmente */
.sesgo-subcol {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}


/* =========================
   NARRATIVA DE MEDIOS
========================= */

.sesgo-narrativa {
  margin-top: 32px;
}

.sesgo-narrativa-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #111;
}

/* Grid principal */
.sesgo-logos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 28px;
}

/* Columnas base */
.sesgo-col {
  border-radius: 22px;
  padding: 20px 18px;
  position: relative;
}

/* Títulos */
.sesgo-col h5 {
  margin: 0 0 16px 0;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #444;
}

/* =========================
   IZQUIERDA — azul más fuerte
========================= */

.sesgo-col.izquierda {
  background: linear-gradient(
    90deg,
    rgba(37, 99, 235, 0.26) 0%,
    rgba(59, 130, 246, 0.18) 40%,
    rgba(255, 255, 255, 0.96) 100%
  );
}


/* =========================
   DERECHA — rojo más fuerte
========================= */

.sesgo-col.derecha {
  background: linear-gradient(
    270deg,
    rgba(220, 38, 38, 0.26) 0%,
    rgba(239, 68, 68, 0.18) 40%,
    rgba(255, 255, 255, 0.96) 100%
  );
}

/* =========================
   SUBCOLUMNAS (2 reales)
========================= */

.sesgo-col-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.sesgo-subcol {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

body.dark .sesgo-col.izquierda {
  background: linear-gradient(
    90deg,
    rgba(59, 130, 246, 0.22) 0%,
    rgba(59, 130, 246, 0.10) 35%,
    rgba(17, 24, 39, 0.0) 100%
  );
}
body.dark .sesgo-col.centro {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.03) 0%,
    rgba(255, 255, 255, 0.01) 100%
  );
}
body.dark .sesgo-col.derecha {
  background: linear-gradient(
    270deg,
    rgba(239, 68, 68, 0.22) 0%,
    rgba(239, 68, 68, 0.10) 35%,
    rgba(17, 24, 39, 0.0) 100%
  );
}

body.dark .sesgo-col {
  border-radius: 18px;
  box-shadow: none;
}

body.dark .sesgo-narrativa {
  background: transparent !important;
}

/* =========================================
   FIX GLOBAL LOGOS PNG — FONDO BLANCO EN DARK
   (Radar + artículos + narrativa + cualquier logo)
========================================= */

body.dark img.articulo-logo,
body.dark .sesgo-logo-item img,
body.dark img.sesgo-logo,
body.dark #cluster-radar img,
body.dark .radar-box img,
body.dark .radar-top-medios img,
body.dark .cluster-card img.articulo-logo,
body.dark .cluster-comments img.comment-avatar {
  background: #fff !important;           /* ajusta 2–5px según se vea */
   border-radius: 50%;
padding: 1px; 
}

/* Tamaños unificados */
.articulo-logo,
.radar-top-medios img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.sesgo-logo-item img,
.sesgo-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
}
body.dark img.articulo-logo,
body.dark .sesgo-logo-item img,
body.dark img.sesgo-logo {
  object-fit: contain;
}

.sesgo-col.centro .sesgo-col-grid {
  grid-template-columns: repeat(3, 1fr);
}

/* === FORZAR MISMO LAYOUT EN LAS 3 COLUMNAS === */
.sesgo-col .sesgo-col-grid {
  display: grid !important;
  grid-auto-flow: row;
  row-gap: 0px !important;
  column-gap: 8px;
}

.sesgo-subcol {
  display: grid;
  grid-auto-rows: min-content;
  row-gap: 0px; /* aquí controlas el espacio */
}

/* CADA SUB-IDEOLOGÍA → 2 COLUMNAS */
.sesgo-subcol {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 2px;
  row-gap: 4px;
}

.sesgo-col-2 {
  position: relative;
}

.sesgo-col-2::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: rgba(0,0,0,0.14);
}


/* Línea vertical CENTRAL */
.sesgo-col.derecha .sesgo-col-2::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: rgba(0,0,0,0.18);
}

.sesgo-col.derecha .sesgo-col-2 {
  position: relative;
}

body.dark .sesgo-col.derecha .sesgo-col-2::before {
  background: rgba(255,255,255,0.25);
}


body.dark .sesgo-col-2::before {
  background: rgba(255,255,255,0.25);
}

.sesgo-label.izquierda-label {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #6b7280; /* mismo tono que ya usas */
}

/* Texto izquierda */
.sesgo-label .label-izq {
  text-align: left;
}

/* Texto centro-izq */
.sesgo-label .label-centro-izq {
  text-align: right;
}

.sesgo-label.derecha-label {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #6b7280; /* mismo tono que ya usas */
}

/* Texto izquierda */
.sesgo-label .label-der {
  text-align: right;
}

/* Texto centro-izq */
.sesgo-label .label-centro-der {
  text-align: left;
}





.sesgo-historico {
  margin-top: 28px;
}

.sesgo-historico .sesgo-narrativa-title {
  opacity: 0.9;
}

.sesgo-subtitle {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  opacity: 0.6;
  margin-top: 2px;
}


body.dark .aguja-global {
  background: #000000;                 /* centro negro */       /* borde blanco */
  
  /* 🔑 DIFUMINADO BLANCO (glow) */
  box-shadow:
    0 0 4px rgba(255,255,255,0.9),
    0 0 8px rgba(255,255,255,0.6);
}

body.dark .aguja-textual {
  background: #ffffff;       /* blanco puro */
  opacity: 1; 
  }



  /* Evita que algo se salga horizontalmente */
.cluster-center,
#resultados-busqueda,
.cluster-card,
.articulo-item {
    max-width: 100%;
    box-sizing: border-box;
}

/* Previene overflow horizontal global */
body {
    overflow-x: hidden;
}


.cluster-card {
    position: relative;
    padding-top: 10px;
}

.cluster-tiempo,
.cluster-fecha {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 6px;
    display: block;
}

.cluster-card h3 {
    margin: 4px 0 10px 0;
    line-height: 1.3;
}




.cluster-center {
  width: 100%;
}

.paginacion {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.dots {
  padding: 0 6px;
  opacity: 0.6;
}

.cluster-comments {
  display: none !important;
}

/* =========================
VERIFICACIÓN CLUSTER
========================= */

.cluster-verificacion{
  margin:20px 0 28px 0;
}

.verificacion-header{
  margin-bottom:6px;
}

.verificacion-badge{
  display:inline-block;
  padding:6px 12px;
  font-size:12px;
  font-weight:700;
  letter-spacing:.6px;
  border-radius:6px;
  text-transform:uppercase;
  color:white;
}

.verificacion-badge.green{
  background:#1a7f37;
}

.verificacion-badge.yellow{
  background:#c58a00;
}

.verificacion-badge.red{
  background:#b42318;
}

.cluster-center p{
  line-height:1.7;
}

.section-title{
  display:flex;
  align-items:center;
  gap:8px;
}

.info-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  width:16px;
  height:16px;

  font-size:11px;
  font-weight:bold;

  border-radius:50%;
  border:1px solid #bbb;
  color:#666;

  cursor:pointer;
  user-select:none;
}

.info-icon::after{
  content: attr(data-info);

  position:absolute;
  background:#222;
  color:white;

  padding:8px 10px;
  border-radius:6px;

  font-size:12px;
  line-height:1.4;

  width:220px;

  opacity:0;
  pointer-events:none;
  transform:translateY(6px);

  transition:.15s;
}

.info-icon:hover::after{
  opacity:1;
}


.sidebar-card{
  display:block;
  margin-bottom:14px;
  text-decoration:none;
  color:inherit;

  border:none;
  box-shadow:none;
  outline:none;
}

.sidebar-card img{
  width:100%;
  height:110px;
  object-fit:cover;
  border-radius:6px;
}

.sidebar-card-title{
  font-size:14px;
  font-weight:600;
  line-height:1.35;
  margin-top:6px;
}

.sidebar-img-container{
  position:relative;
}

.destacado-img-container{
  position:relative;
}

.img-info-icon-small{
  position:absolute;
  top:6px;
  right:6px;

  width:18px;
  height:18px;

  border-radius:50%;
  background:#000;
  color:#fff;

  font-size:12px;
  display:flex;
  align-items:center;
  justify-content:center;

  cursor:pointer;
  z-index:3;
}

.img-info-popup-small{
  position:absolute;
  bottom:6px;
  left:6px;

  background:rgba(0,0,0,0.8);
  color:white;

  font-size:12px;
  padding:4px 8px;
  border-radius:4px;

  opacity:0;
  pointer-events:none;

  transition:opacity .2s;
}

.sidebar-img-container:hover .img-info-popup-small,
.destacado-img-container:hover .img-info-popup-small{
  opacity:1;
}

.adsense-box {
  margin: 20px 0;
  position: sticky;
  top: 100px;
}


.newsletter-box {
  background: #f3f4f6;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.newsletter-box h4 {
  font-size: 15px;
  margin-bottom: 4px;
}

.newsletter-box p {
  font-size: 15px;
  margin-bottom: 8px;
  color: #444;
}

.newsletter-box input {
  width: 100%;
  padding: 8px 10px;
  font-size: 14px;
  border-radius: 6px;
  border: 1px solid #ccc;
  margin-bottom: 6px;
}

.newsletter-box button {
  width: 100%;
  padding: 10px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 6px;
  background: #eab308;
  color: black;
  border: none;
  cursor: pointer;
}

.newsletter-box button:hover {
  background: #d2a107;
}

.newsletter-msg {
  font-size: 12px;
  margin-top: 4px;
  min-height: 14px;
}
.newsletter-box input {
  box-sizing: border-box;
}