/* --- SECCIÓN RADAR (Compacta y Lateral) --- */
.news-radar-section {
    background-color: #ffffff;
    padding: 80px 0;
    /* Un poco más compacto */
    font-family: 'Montserrat', sans-serif;
    color: #111;
    overflow: hidden;
    /* Evita scroll horizontal de la página completa */
}

.news-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

/* HEADER */
.news-header {
    margin-bottom: 40px;
}

.news-label {
    font-family: 'Oswald', sans-serif;
    font-size: 0.8rem;
    color: #888;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 5px;
}

.news-title {
    font-family: 'Inter', sans-serif;
    font-size: 2.5rem;
    color: #000;
    margin: 0;
    line-height: 1;
}

.news-divider {
    width: 100%;
    height: 2px;
    background-color: #000;
    margin-top: 15px;
}

/* LAYOUT HÍBRIDO: Fijo Izquierda + Slider Derecha */
.news-grid-layout {
    display: flex;
    gap: 40px;
    height: 450px;
    /* Altura fija para alinear todo */
    margin-bottom: 50px;
}

/* 1. ARTÍCULO DESTACADO (Izquierda - 50%) */
.news-featured {
    flex: 1;
    /* Ocupa la mitad */
    display: flex;
    flex-direction: column;
    min-width: 0;
    /* Evita desbordes flex */
}

.featured-img-wrapper {
    height: 240px;
    width: 100%;
    overflow: hidden;
    margin-bottom: 20px;
    background: #eee;
}

.featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
    filter: grayscale(100%);
}

.news-featured:hover .featured-img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.news-meta {
    font-size: 0.7rem;
    font-weight: 700;
    color: #00bcd4;
    margin-bottom: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.news-source {
    color: #000;
    font-weight: 800;
    margin-right: 10px;
}

.news-date {
    color: #999;
}

.featured-headline {
    font-family: 'Inter', sans-serif;
    font-size: 1.8rem;
    line-height: 1.2;
    margin-bottom: 10px;
    color: #000;
}

.featured-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.featured-excerpt {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #555;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    /* Corta texto si es muy largo */
}

.news-link-action {
    font-family: 'Oswald', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: #000;
    text-decoration: none;
    border-bottom: 2px solid #00bcd4;
    padding-bottom: 2px;
    transition: 0.3s;
}

.news-link-action:hover {
    background-color: #00bcd4;
    color: #fff;
}

/* 2. SLIDER LATERAL (Derecha - 50%) */
.news-slider-container {
    flex: 1;
    /* Ocupa la otra mitad */
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    border-left: 1px solid #eee;
    /* Separador sutil */
    padding-left: 40px;
}

.slider-hint {
    font-size: 0.7rem;
    color: #ccc;
    letter-spacing: 1px;
    margin-bottom: 10px;
    text-align: right;
}

.news-slider-track {
    display: flex;
    overflow-x: auto;
    /* PERMITE EL SCROLL LATERAL */
    gap: 25px;
    padding-bottom: 20px;
    /* Espacio para scrollbar */
    scroll-snap-type: x mandatory;
    /* Efecto magnético */
    -webkit-overflow-scrolling: touch;
}

/* Estilo de la Scrollbar sutil */
.news-slider-track::-webkit-scrollbar {
    height: 4px;
}

.news-slider-track::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.news-slider-track::-webkit-scrollbar-thumb {
    background: #00bcd4;
    border-radius: 4px;
}

/* TARJETAS DEL SLIDER */
.news-slide-card {
    min-width: 260px;
    /* Ancho fijo de cada tarjeta */
    width: 260px;
    scroll-snap-align: start;
    /* Se detiene al inicio */
    padding-right: 10px;
    border-right: 1px solid #f0f0f0;
    /* Separador visual entre tarjetas */
}

.slide-headline {
    font-family: 'Inter', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #000;
    line-height: 1.3;
}

.slide-excerpt {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
    margin-bottom: 15px;
}

.news-link-sm {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #00bcd4;
    text-decoration: none;
    letter-spacing: 1px;
}

.news-link-sm:hover {
    text-decoration: underline;
}

/* BOTÓN PÍLDORA (REDONDEADO) */
.news-footer {
    text-align: center;
    margin-top: 10px;
}

.btn-news-pill {
    display: inline-block;
    padding: 15px 45px;
    background-color: transparent;
    border: 2px solid #000;
    color: #000;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    text-decoration: none;
    transition: 0.3s;
    letter-spacing: 1px;

    /* LA MAGIA REDONDEADA */
    border-radius: 50px;
}

.btn-news-pill:hover {
    background-color: #000;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .news-grid-layout {
        flex-direction: column;
        /* Uno arriba del otro en móvil */
        height: auto;
    }

    .news-slider-container {
        padding-left: 0;
        border-left: none;
        border-top: 1px solid #eee;
        padding-top: 30px;
    }

    .news-slider-track {
        /* En móvil aseguramos que se vea que hay más contenido */
        padding-right: 30px;
    }
}

/* =========================================================
   TRANSFORMACIÓN DESKTOP: FIX DE ALTURA Y SOLAPAMIENTO
   ========================================================= */
@media (min-width: 1024px) {

    /* 1. CONTENEDOR PRINCIPAL */
    .news-grid-layout {
        display: grid;
        grid-template-columns: 1.2fr 1fr;
        gap: 60px;
        align-items: start;
        /* FIX: Cambiado de 'stretch' a 'start' para evitar forzar alturas */
        margin-bottom: 80px;
        /* FIX: Más margen abajo para empujar el botón */

        /* FIX CRÍTICO: Reseteamos cualquier altura heredada del móvil */
        height: auto !important;
        min-height: auto !important;
        overflow: visible !important;
    }

    /* 2. ARTÍCULO DESTACADO (IZQUIERDA) */
    .news-featured {
        display: flex;
        flex-direction: column;
        /* FIX: Aseguramos que el contenedor ocupe su espacio real */
        height: auto !important;
    }

    .featured-img-wrapper {
        /* Imagen grande e imponente */
        height: 450px;
        width: 100%;
        margin-bottom: 30px;
        overflow: hidden;
        /* Para que la imagen no se salga */
    }

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

    .featured-headline {
        font-size: 2.8rem;
        /* Título grande */
        line-height: 1.1;
        margin-bottom: 20px;
        color: #000;
    }

    .featured-excerpt {
        font-size: 1.1rem;
        max-width: 95%;
        line-height: 1.6;
        color: #555;
        margin-bottom: 30px;
    }

    /* Enlace "Leer Artículo" en Desktop */
    .news-link-action {
        display: inline-block;
        font-weight: 800;
        text-transform: uppercase;
        border-bottom: 2px solid #000;
        padding-bottom: 5px;
    }

    /* 3. LISTA DERECHA (FEED) */
    .news-slider-container {
        border-left: 1px solid #e0e0e0;
        padding-left: 50px;
        overflow: visible;
        height: auto !important;
        /* FIX */
    }

    .slider-hint {
        display: none;
    }

    .news-slider-track {
        display: flex;
        flex-direction: column;
        gap: 0;
        overflow: visible;
        padding: 0;
        width: 100% !important;
        /* FIX */
    }

    .news-slide-card {
        min-width: unset;
        width: 100%;
        padding: 30px 0;
        border-bottom: 1px solid #e0e0e0;
        margin-right: 0;
        white-space: normal;
        /* FIX: Evita que el texto se vaya de lado */
        border-right: none;
        /* Eliminar borde derecho del slider */
    }

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

    .news-slide-card:hover {
        transform: translateX(10px);
        transition: transform 0.3s ease;
    }

    /* Quitamos estilos de tarjeta móvil si existen */
    .news-slide-card {
        background: transparent !important;
        border-radius: 0 !important;
    }

    .slide-headline {
        font-size: 1.3rem;
        margin-bottom: 10px;
        white-space: normal;
        /* Texto envuelve normal */
        line-height: 1.3;
        color: #000;
    }

    .slide-excerpt {
        display: block !important;
        /* Asegurar que se vea */
        white-space: normal;
        color: #666;
        margin-bottom: 15px;
        font-size: 0.95rem;
        line-height: 1.4;
    }

    .news-link-sm {
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
        font-size: 0.8rem;
    }

    /* 4. FOOTER (BOTÓN) */
    .news-footer {
        margin-top: 40px;
        text-align: center;
        clear: both;
        /* FIX: Asegura que nada flote encima */
        position: relative;
        z-index: 10;
    }
}