/* ============================
   GLOBAL
============================ */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #fafafa;
    color: #222;
}

/* ============================
   NAVBAR (igual que siempre)
============================ */

header {
    position: relative;
    height: auto;
    overflow: visible;
}
.top-date {
    padding: 4px 20px 0 20px;
    font-size: 12px;
    color: #777;
    font-family: Arial, sans-serif;
}



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

.navbar a {
    text-decoration: none;
}



/* Contenedor derecha: fecha + menú */
.nav-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* Fecha dentro del banner */
.top-date {
    font-size: 12px;
    color: #cccccc;
    margin-bottom: 10px;
}

/* Botón suscripción */
.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;
}

/* ============================
   HERO PRINCIPAL
============================ */
.hero {
    width: 90%;
    margin: 30px auto;
    padding: 20px;
    background: white;
    border-radius: 8px;
    margin-top: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
}

.hero h1 {
    margin: 0 0 10px 0;
    font-size: 28px;
}

.hero p {
    font-size: 17px;
    color: #444;
    line-height: 1.4;
}

/* ============================
   GRID TIPO NEW YORK TIMES
============================ */
.nyt-grid {
    width: 90%;
    margin: 40px auto;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 25px;
}

/* ============================
   Columna izquierda (tarjetas pequeñas)
============================ */
.col-izq .item {
    background: white;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 18px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.col-izq .item h4 {
    margin: 0;
    font-size: 18px;
}

/* ============================
   Columna central (grande + medianas)
============================ */

.col-centro .grande {
    padding: 16px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.col-centro .grande h2 {
    margin: 0 0 10px 0;
    font-size: 26px;
}

.col-centro .grande p {
    margin: 0;
    font-size: 15px;
    color: #555;
}

.col-centro .mediana {
    padding: 12px;
    background: white;
    border-radius: 6px;
    margin-bottom: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.col-centro .mediana h3 {
    margin: 0;
    font-size: 20px;
}

/* ============================
   Derecha (ads + newsletter)
============================ */
.ad-box {
    width: 100%;
    /* ❌ quitamos height fija */
    /* height: 260px; */

    background: #ddd;
    border-radius: 8px;

    /* lo dejamos como caja normal, no centrada tipo "hero" */
    padding: 12px;
    font-size: 14px;
}

.newsletter {
    margin-top: 25px;
    background: white;
    padding: 20px;
    border-radius: 6px;
}

.newsletter input {
    width: 90%;
    padding: 8px;
    margin-top: 6px;
}

.newsletter button {
    margin-top: 10px;
    padding: 10px;
    width: 95%;
    background: black;
    color: white;
    border: none;
    border-radius: 6px;
}

/* ============================
   Últimos clusters
============================ */
.ultimos {
    width: 90%;
    margin: 40px auto;
}

.ultimos h2 {
    margin-bottom: 15px;
}

.latest-item {
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.latest-item strong {
    font-size: 17px;
}

/* ============================
   HERO — BARRA DE SESGO SIMPLE
============================ */
.hero-sesgo-container {
    margin-top: 18px;
}

.hero-sesgo-bar {
    position: relative;
    width: 100%;
    height: 14px;
    background: linear-gradient(to right,
        #1d4ed8 0%,      /* azul izquierda */
        #ffffff 50%,     /* blanco centro */
        #dc2626 100%     /* rojo derecha */
    );
    border-radius: 10px;
    margin-bottom: 6px;
}

.hero-sesgo-indicator {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 24px;
    background: #000;
    border-radius: 3px;
    box-shadow: 0 0 3px rgba(0,0,0,0.4);
}

.hero-sesgo-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #555;
}

.hero-extra {
    margin-top: 12px;
    font-size: 14px;
    color: #333;
    font-weight: bold;
}

.hero-analisis {
    font-weight: bold;
    margin-top: 12px;
    margin-bottom: 10px;
    color: #333;
}

/* Barra simple de porcentaje */
.sesgo-simple {
    margin-top: 6px;
}

.sesgo-simple-track {
    width: 180px;
    height: 8px;
    background: #ddd;
    border-radius: 4px;
    margin-bottom: 4px;
}

.sesgo-simple-fill {
    height: 100%;
    background: #0b3d62; /* azul elegante */
    border-radius: 4px;
    transition: width 0.5s ease;
}

.sesgo-simple-label {
    margin-top: 2px;
    font-size: 12px;
    color: #444;
}

.hero-analisis {
    font-weight: bold;
    margin-top: 12px;
    margin-bottom: 10px;
    color: #333;
}

/* Barra base */
.sesgo-simple {
    margin-top: 6px;
}

.sesgo-simple-track {
    width: 180px;       /* tamaño base (hero) */
    height: 8px;
    background: #ddd;
    border-radius: 4px;
    margin-bottom: 4px;
}

.sesgo-simple-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.4s ease;
}

.sesgo-simple-label {
    margin-top: 2px;
    font-size: 12px;
    color: #444;
}

/* Versiones pequeñas */
.sesgo-simple.sesgo-simple-small .sesgo-simple-track {
    width: 150px;
    height: 6px;
}

.sesgo-simple.sesgo-simple-small .sesgo-simple-label {
    font-size: 11px;
}

.sesgo-simple.sesgo-simple-tiny .sesgo-simple-track {
    width: 120px;
    height: 5px;
}

.sesgo-simple.sesgo-simple-tiny .sesgo-simple-label {
    font-size: 10px;
    color: #555;
}

/* ========== COLLAGE tipo NYT ========== */

.ultimos {
    padding: 20px;
    border-top: 1px solid #ddd;
    margin-top: 30px;
}

#lista-recientes {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.collage-item {
    flex: 1 1 calc(25% - 16px);  /* aprox 4 columnas responsivas */
    min-width: 220px;
    background: #ffffff;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.collage-item h4 {
    margin: 0 0 6px 0;
    font-size: 15px;
}

.collage-snippet {
    font-size: 13px;
    color: #555;
    margin: 4px 0 6px 0;
}

/* Bloques de publicidad dentro del collage */
.collage-ad {
    background: #f5f5f5;
    border: 1px dashed #bbb;
    text-align: center;
    font-weight: bold;
    color: #666;
    justify-content: center;
}

.item-fecha,
.hero-fecha {
    font-size: 12px;
    color: #777;
    margin: 4px 0 8px 0;
}

.hero-fecha,
.item-fecha {
    font-size: 12px;
    color: #777;
    margin: 4px 0 6px 0;
}

.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);
}

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

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

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


/* ============================
   SIDEBAR LATERAL empieza
============================ */
.sidebar {
    position: fixed;
    top: 0;
    left: -280px;           /* 🔹 escondido por defecto */
    width: 260px;
    height: 100vh;
    background: #111;
    color: #f5f5f5;
    padding: 20px;
    box-shadow: 2px 0 12px rgba(0,0,0,0.4);
    transition: left 0.35s ease;
    z-index: 1400;
    overflow-y: auto;
}

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

.sidebar h2 {
    margin-top: 10px;
    margin-bottom: 15px;
    font-size: 20px;
}

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

.sidebar ul li {
    margin: 10px 0;
    font-size: 14px;
    opacity: 0.9;
}

/* ============================
   OVERLAY OSCURO
============================ */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
    display: none;
    z-index: 1300;
}

.overlay.show {
    display: block;
}
/* ============================
   SIDEBAR LATERAL termina
============================ */
/* TITULOS DEL SIDEBAR */
.side-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 18px;
    color: white;
}

.side-subtitle {
    font-size: 18px;
    font-weight: bold;
    margin: 20px 0 10px;
    color: white;
}

/* LISTA DEL SIDEBAR */
.side-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

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

.side-list a {
    color: white !important;
    font-size: 16px;
    text-decoration: none;
}

.side-list a:hover {
    text-decoration: underline;
}

/* REDES SOCIALES (EN FILA) */
.side-social svg {
    width: 20px;
    height: 20px;
    margin-right: 6px;
    vertical-align: middle;
    fill: white;
}

.side-social a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white !important;
}



/* SIDEBAR GENERAL */
.sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 260px;
    height: 100%;
    background: #0a0a0a;
    color: white;
    padding: 40px 24px;
    padding-top: 90px;
    transition: 0.3s ease;
    z-index: 999;
    overflow-y: auto;
    border-right: 1px solid #222;
}
/* 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;
}

/* Ajuste títulos */
.side-title {
    margin-top: 10px;
}

/* 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;
}

/* Ajuste títulos */
.side-title {
    margin-top: 10px;
}
/* TÍTULO PRINCIPAL (Plan) */
.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 */
.side-subtitle {
    margin-top: 28px;
    font-size: 23px;
    opacity: 0.9;
    letter-spacing: 0.3px;
}

/* Listas */
.side-list {
    list-style: none;
    padding-left: 0;
    margin-top: 10px;
}

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

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

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

/* OPEN STATE */
.sidebar.open {
    left: 0;
}

/* CAPA OSCURA */
.overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 998;
}
.overlay.show {
    display: block;
}

.side-list li a {
    color: white;
    font-size: 1.05rem;   /* letra más grande */
    text-decoration: none;
}

.side-list {
    margin-bottom: 18px;
}

.side-social-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

.side-social svg {
    width: 20px;
    height: 20px;
    margin-right: 6px;
}

.side-social {
    display: flex;
    align-items: center;
    color: white;
    font-size: 1.05rem;
}

.sidebar-bottom {
    margin-top: auto; /* empuja hacia abajo */
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.top-list {
    margin-top: 10px;
}

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

/* evitar subrayado */
.side-list li a,
.side-social {
    text-decoration: none !important;
}

/* letra más grande */
.side-list li a,
.side-social {
    font-size: 1.12rem;
}

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

.side-social-group {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
/* Tamaño uniforme para iconos del sidebar */
.side-social svg {
    width: 22px !important;
    height: 22px !important;
    display: inline-block;
    vertical-align: middle;
}

/* Forzar que los iconos del sidebar sean blancos */
.sidebar a,
.sidebar a svg,
.side-social svg {
    color: #ffffff !important;
    fill: #ffffff !important;
}

/* Quitar subrayado en el panel lateral */
.sidebar a {
    text-decoration: none !important;
    color: #ffffff !important;
}

/* Asegurar que en hover tampoco aparezca */
.sidebar a:hover {
    text-decoration: none !important;
    color: #dddddd !important;
}

/* Imagen grande del HERO */
.hero-img {
    width: 100%;
    height: 260px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* Imagen de la tarjeta grande del centro */

/* Imagen en las tarjetas del collage */
.collage-img {
    width: 100%;
    height: 140px;
    background-size: cover;
    background-position: center;
    border-radius: 6px;
    margin-bottom: 8px;
}

.mini-img {
    width: 100%;
    max-height: 180px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 10px;
}

/* ===== HERO IMAGE ===== */
.hero-img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 8px;
    margin: 10px 0;
}

/* ===== IMAGEN GRANDE ===== */

/* ===== IMAGEN COLLAGE ===== */
.collage-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 10px;
}
.grande-img {
    width: 100%;
    height: 250px;   /* AJUSTA A TU GUSTO */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.mediana-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 8px;
}

/* ---------- Imagen con icono de información ---------- */

.hero-img-container,
.col-img-container,
.collage-img-container {
    position: relative;
}

.img-info-icon {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(0,0,0,0.55);
    color: white;
    padding: 2px 5px;
    font-size: 12px;
    border-radius: 3px;
    cursor: pointer;
}

.img-info-popup {
    position: absolute;
    bottom: 28px;
    right: 6px;
    background: rgba(0,0,0,0.75);
    color: white;
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 4px;
    display: none;
    width: max-content;
    max-width: 200px;
}

.hero-img-container:hover .img-info-popup,
.col-img-container:hover .img-info-popup,
.collage-img-container:hover .img-info-popup {
    display: block;
}

/* Contenedor de imagen del collage */
.col-img-container-small {
    width: 100%;
    position: relative;
    margin-bottom: 8px;
}

.col-small-img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    border-radius: 6px;
}

/* Icono ℹ️ para créditos */
.img-info-icon-small {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(0,0,0,0.55);
    color: white;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 10px;
    cursor: pointer;
}

/* Popup pequeño */
.img-info-popup-small {
    display: none;
    position: absolute;
    bottom: 36px;
    right: 6px;
    background: white;
    color: black;
    padding: 6px 8px;
    font-size: 11px;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    max-width: 160px;
    z-index: 10;
}

.img-info-icon-small:hover + .img-info-popup-small {
    display: block;
}

.mediana-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 8px;
}

/* ===========================
   IMÁGENES — FIX COMPLETO
=========================== */

/* HERO */
.hero-img {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    border-radius: 10px;
    margin: 12px 0;
}

/* CONTENEDORES */
.hero-img-container,
.col-img-container,
.col-img-container-small {
    position: relative;
    width: 100%;
}

/* NOTICIA GRANDE */
.col-big-img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

/* MEDIANAS */
.mediana-img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

/* COLLAGE (tarjetas pequeñas) */
.col-small-img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

/* Icono ℹ️ */
.img-info-icon,
.img-info-icon-small {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(0,0,0,0.55);
    color: white;
    font-size: 14px;
    padding: 3px 6px;
    border-radius: 4px;
    cursor: pointer;
}

/* Popup info */
.img-info-popup,
.img-info-popup-small {
    display: none;
    position: absolute;
    bottom: 28px;
    right: 6px;
    background: rgba(0,0,0,0.85);
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    max-width: 180px;
}

.img-info-icon:hover + .img-info-popup,
.img-info-icon-small:hover + .img-info-popup-small {
    display: block;
}
.col-img-container,
.col-img-container-small {
    position: relative;
}

.img-info-icon,
.img-info-icon-small {
    z-index: 20;
}

.img-info-popup,
.img-info-popup-small {
    z-index: 21;
}

.mini-img-container {
    position: relative;
    width: 100%;
    height: auto;
}

.mini-img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
}

.img-info-icon-small {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 3px 5px;
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
}

.img-info-popup-small {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(0,0,0,0.75);
    color: white;
    padding: 5px 8px;
    font-size: 11px;
    border-radius: 4px;
    display: none;

    /* 🔥 Arreglan el cuadro gigante */
    white-space: nowrap;     /* evita que el texto se parta en vertical */
    max-width: 140px;        /* evita que se haga demasiado largo */
    overflow: hidden;        /* limpia el exceso */
    text-overflow: ellipsis; /* agrega ... si es necesario */
}

.mini-img-container:hover .img-info-popup-small {
    display: block;
}

/* === Fix tooltips de imágenes pequeñas del collage === */

.col-img-container-small {
    position: relative;
    display: inline-block;
    /* 🔥 Asegura que NO haya fondo negro raro */
    background: transparent !important;
}

/* Iconito ℹ️ pequeño, solo un círculo encima de la imagen */
.img-info-icon-small {
    position: absolute;
    bottom: 6px;
    right: 6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
    z-index: 2;
}

/* Tooltip pequeño, NO debe ocupar todo el cuadro */
.img-info-popup-small {
    position: absolute;
    bottom: 30px;
    right: 6px;
    background: rgba(0,0,0,0.85);
    color: #fff;
    padding: 4px 8px;
    font-size: 11px;
    border-radius: 4px;
    white-space: nowrap;      /* 👈 evita que se haga vertical */
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: none;            /* por defecto oculto */
    z-index: 2;
}

.col-centro {
    background: white;
    border-radius: 8px;
    padding: 10px;
}
.col-izq {
    background: white;
    border-radius: 8px;
    padding: 10px;
}

/* Fuerza que la columna derecha ocupe toda la altura del grid */
.full-height-col {
    display: flex;
    flex-direction: column;
}

/* La publicidad ocupa TODO el espacio disponible */
.full-height-ad {
    flex-grow: 1;
    background: #ddd;
    border-radius: 8px;
    padding: 20px;
}

/* El newsletter queda abajo */
.newsletter {
    margin-top: 20px;
}

/* Reduce la separación entre tarjetas de las columnas */
.col-izq .item,
.col-centro .grande,
.col-centro .mediana {
    margin-bottom: 20px !important; /* antes era enorme */
}

/* Evita que las tarjetas creen bloques gigantes */
.col-izq,
.col-centro {
    display: flex;
    flex-direction: column;
    gap: 20px; /* separación más elegante */
}
.col-centro .mediana {
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.col-izq .item {
    min-height: 280px;
}
.col-centro .grande {
    min-height: 480px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.submenu-toggle {
    cursor: pointer;
    color: white !important;
    font-size: 16px;          /* MISMO TAMAÑO QUE LOS <a> */
    font-weight: normal;      /* MISMO PESO */
    letter-spacing: 0.2px;    /* IGUAL A LOS ENLACES */
    padding: 4px 0;           /* MISMA ALTURA VISUAL */
}

.submenu-toggle span {
    color: white !important;
    font-size: inherit;       /* Hereda el tamaño correcto */
}
/* === Submenú: Forzar el mismo estilo que los links === */
.submenu-toggle {
    color: white !important;
    font-size: 1.12rem !important;   /* MISMO QUE LOS <a> */
    font-weight: normal;
    letter-spacing: 0.2px;
    cursor: pointer;
    padding: 4px 0;
    display: block;
}

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

/* Hover igual que los enlaces */
.submenu-toggle:hover {
    color: #ffcc00 !important;
}

/* === BOTÓN "NOSOTROS" — mismo estilo que los enlaces === */
.submenu-toggle {
    font-size: 1.12rem !important;  /* igual a los <a> */
    color: white !important;
    cursor: pointer;
    display: block;
    padding: 6px 0;
    letter-spacing: 0.2px;
}

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

/* Hover igual al de los enlaces */
.submenu-toggle:hover {
    color: #ffcc00 !important;
}

/* Redes sociales en línea dentro del sidebar */
.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;
}

/* ============================
   SECCIÓN: NOTICIAS DESTACADAS
============================ */
.destacados-section {
    width: 90%;
    margin: 40px auto;
    padding: 20px 0;
}

/* Título elegante */
.destacados-title {
    margin: 0 0 18px 0;
    font-size: 24px;
    font-weight: bold;
    color: #222;
    border-left: 5px solid #d9a404; /* Amarillo PI */
    padding-left: 10px;
}

/* Cuadrícula responsiva */
.destacados-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 22px;
}

/* Tarjeta */
.destacado-item {
    background: white;
    border-radius: 8px;
    padding: 14px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

/* Hover */
.destacado-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* Imagen */
.destacado-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 10px;
}

/* Título de la noticia */
.destacado-titulo {
    font-size: 17px;
    font-weight: bold;
    color: #222;
    margin-bottom: 6px;
}

/* Snippet */
.destacado-snippet {
    font-size: 14px;
    color: #555;
    line-height: 1.35;
    margin-bottom: 10px;
}

/* Footer */
.destacado-footer {
    font-size: 12px;
    color: #777;
    display: flex;
    justify-content: space-between;
    margin-top: auto;
}

.destacado-link {
    text-decoration: none;
    color: #0b3d62;
    font-weight: bold;
}

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

.destacados-section {
    width: 90%;
    margin: 50px auto;
}

.destacados-title {
    font-size: 24px;
    margin-bottom: 18px;
    font-weight: bold;
}

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

.destacado-item {
    background: white;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.destacado-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 10px;
}

.destacado-titulo {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 6px;
}

.destacado-snippet {
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
}

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

.destacado-link {
    color: #0b3d62;
    font-weight: bold;
    text-decoration: none;
}

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

/* ===== FECHAS ===== */

.item-fecha,
.hero-fecha {
  display: block;
  margin: 6px 0 8px;
  font-size: 12px;
  font-weight: 500;
  color: #6b7280; /* gris visible */
  line-height: 1.2;
}

.hero-fecha {
  font-size: 13px;
  color: #9ca3af;
}

/* ================= BANNER EDITORIAL ================= */

.editorial-banner {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}

.editorial-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  gap: 10px;
  align-items: center;
  overflow-x: auto;
}

.editorial-btn {
  border: 1px solid #111;
  background: #fff;
  color: #111;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}

.editorial-btn.active,
.editorial-btn:hover {
  background: #111;
  color: #fff;
}

.editorial-dinamicos {
  display: flex;
  gap: 8px;
}

header {
    position: relative;
    height: auto;          /* 🔑 CLAVE */
    overflow: visible;     /* 🔑 CLAVE */
}

.navbar {
    top: 0;
    left: 0;
    right: 0;

    height: 70px;          
    padding: 0 20px;

    background: #111;
    color: white;

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

    z-index: 1000;
}



.hidden {
  display: none !important;
}

.nav-user {
  position: relative;
}

.nav-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  cursor: pointer;
}

.nav-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 42px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  min-width: 160px;
  z-index: 999;
}


.nav-name {
  padding: 8px 12px;
  font-weight: bold;
  border-bottom: 1px solid #eee;
}

/* ===== HEADER NUEVO ===== */

.nav-user img,
.nav-avatar {
  width: 34px !important;
  height: 34px !important;
  max-width: 34px !important;
  max-height: 34px !important;
  border-radius: 50%;
  object-fit: cover;
}

/* =========================
   NEUTRALIZAR HEADER VIEJO
   (solo para home)
   ========================= */

/* Anula header antiguo */

/* Evita que el logo estire el header nuevo */
body > header .logo-nav {
  height: auto !important;
}



/* ============================
   🔒 AISLAR HEADER GLOBAL
============================ */


/* Home NO controla la navbar del header */
.app-header .navbar {
  position: relative !important;
  background: #111 !important;
}

#hero {
  margin-top: 16px;
}

body.dark body {
  background: #0f1115;
  color: #e5e7eb;
}

body.dark .topics-banner {
  background: #0b0d11;
  border-bottom: 1px solid #1f2937;
}

body.dark .topic-btn {
  background: #111827;
  color: #e5e7eb;
  border: 1px solid #1f2937;
}

body.dark .topic-btn:hover {
  background: #1f2937;
}

body.dark .topic-btn.fixed {
  background: #1a1f2b;
  font-weight: 600;
}
body.dark .hero {
  background: transparent;
  color: #f3f4f6;
}

body.dark .nyt-grid {
  background: transparent;
}
body.dark .nyt-grid .card,
body.dark .nyt-grid article,
body.dark .nyt-grid .news-item {
  background: #111827;
  border: 1px solid #1f2937;
  color: #e5e7eb;
}
body.dark .nyt-grid h2,
body.dark .nyt-grid h3,
body.dark .nyt-grid h4 {
  color: #f9fafb;
}
body.dark .nyt-grid p,
body.dark .nyt-grid .snippet {
  color: #ffffff;
}
body.dark .newsletter {
  background: #111827;
  border: 1px solid #1f2937;
  color: #e5e7eb;
}

body.dark .newsletter h4 {
  color: #f9fafb;
}

body.dark .newsletter p {
  color: #fbfdff;
}

body.dark .newsletter input {
  background: #0f172a;
  border: 1px solid #1f2937;
  color: #e5e7eb;
}

body.dark .newsletter input::placeholder {
  color: #ffffff;
}

body.dark .newsletter button {
  background: #d9a404;
  color: #000;
  border: none;
}

body.dark .ultimos {
  background: transparent;
}

body.dark .ultimos .cluster-item {
  background: #111827;
  border: 1px solid #1f2937;
}

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

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

body.dark .destacado-item {
  background: #111827;
  border: 1px solid #1f2937;
}

body.dark .destacado-titulo {
  color: #f9fafb;
}

body.dark .destacado-snippet {
  color: #9ca3af;
}

body.dark .destacado-link {
  color: #ffcc00;
}

/* ============================
   HOME — DARK MODE UNIFICADO
============================ */

/* Fondo general */
body.dark body {
  background: #0f1115;
  color: #e5e7eb;
}

/* TODAS las cards editoriales del home */
body.dark .hero,
body.dark .col-izq .item,
body.dark .col-centro .grande,
body.dark .col-centro .mediana,
body.dark .collage-item,
body.dark .newsletter,
body.dark .ad-box,
body.dark .destacado-item {
  background: #161b22;          /* 👈 MISMO color base */
  border: 1px solid #292a2b;
  color: #e5e7eb;
}

/* Títulos */
body.dark .hero h1,
body.dark .col-centro h2,
body.dark .col-centro h3,
body.dark .col-izq h4,
body.dark .destacado-titulo {
  color: #f9fafb;
}

/* Texto secundario */
body.dark p,
body.dark .snippet,
body.dark .collage-snippet,
body.dark .destacado-snippet,
body.dark .item-fecha,
body.dark .hero-fecha {
  color: #ffffff;
}

body.dark .nyt-grid,
body.dark .ultimos,
body.dark .destacados-section {
  background: transparent;
}


body.dark {
  background: #0f141a; 
}

/* ============================
   HOME — quitar caja blanca de columnas
============================ */

body.dark .col-centro,
body.dark .col-izq {
  background: transparent;
}



.hero a,
.item a,
.grande a,
.mediana a,
.collage-item a {
  color: inherit;
  text-decoration: none;
}

.topics-banner {
  position: relative;
  z-index: 10;
  padding-top: 8px;
}

.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px; /* el que realmente usas */
  z-index: 1200;
}
body {
  padding-top: var(--header-height);
}

.destacado-img-container {
    position: relative;
}

.destacado-img {
    width: 100%;
    display: block;
}

.img-info-icon-small {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(0,0,0,0.6);
    color: white;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 50%;
    cursor: pointer;
}

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

.destacado-img-container:hover .img-info-popup-small {
    display: block;
}



/* ================= PANORAMA ================= */

.panorama {
    margin: 80px auto;
    padding: 0 80px;   /* ← ESTE es el margen real lateral */
    max-width: 1400px; /* opcional: evita que se estire infinito */
}

.panorama-title {
    font-size: 24px;
    margin-bottom: 30px;
}

.panorama-row {
    margin-bottom: 40px;
}

.panorama-label {
    font-size: 16px;
    margin-bottom: 12px;
    font-weight: 600;
}

.panorama-label.izquierda { color: #123699; }
.panorama-label.centro { color: #6b7280; }
.panorama-label.derecha { color: #951313; }

.panorama-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px;
}

.panorama-scroll::-webkit-scrollbar {
    height: 6px;
}

.panorama-scroll::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.panorama-card {
    min-width: 260px;
    max-width: 260px;
    flex-shrink: 0;
    background: white;
    border-radius: 8px;
    padding: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    scroll-snap-align: start;
    cursor: pointer;
    transition: transform 0.15s ease;
}

.panorama-card:hover {
    transform: translateY(-4px);
}

.panorama-card h5 {
    font-size: 15px;
    margin-bottom: 6px;
}

.panorama-card p {
    font-size: 13px;
    color: #555;
}

.sesgo-mini {
    margin-top: 8px;
}

.sesgo-track {
    width: 100%;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
}

.sesgo-fill {
    height: 100%;
}

.sesgo-label {
    font-size: 11px;
    color: #666;
}


.panorama-card {
    min-width: 320px;     /* antes seguramente era 240-260 */
    max-width: 340px;
    min-height: 260px;        /* más presencia vertical */
    padding: 20px;
    border-radius: 14px;
    background: white;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  display: flex;
flex-direction: column;
gap: 12px;   /* espacio natural entre elementos */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.panorama-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

.panorama-card h5 {
    font-size: 18px;
    line-height: 1.3;
    font-weight: 600;
}

.panorama-card p {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

.sesgo-mini {
    margin-top: 12px;
}

.sesgo-track {
    width: 100%;
    height: 6px;
    background: #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
}

.sesgo-fill {
    height: 100%;
    border-radius: 6px;
}

.sesgo-label {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
    display: block;
}

.panorama-card p {
    font-size: 15px;
    line-height: 1.6;
}

.panorama-label {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 24px;
}

.panorama-label.centro {
    text-align: center;
}

.panorama-label.derecha {
    text-align: right;
}



/* =========================
   DARK MODE — PANORAMA
========================= */

body.dark .panorama-card {
    background: #161b22;           /* gris oscuro elegante */
    border: 1px solid #1f2937;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

body.dark .panorama-card h3,
body.dark .panorama-card h4 {
    color: #f3f4f6;
}

body.dark .panorama-card p {
    color: #9ca3af;
}


/* =========================
   DARK MODE — PANORAMA TEXT
========================= */

body.dark .panorama-card,
body.dark .panorama-card h1,
body.dark .panorama-card h2,
body.dark .panorama-card h3,
body.dark .panorama-card h4,
body.dark .panorama-card p,
body.dark .panorama-card span {
    color: #ffffff !important;
}

.adsense-box {
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.full-height-ad.adsense-box {
  min-height: 320px;
}

.collage-item.ad-slot.adsense-box {
  min-height: 220px;
}