/* --- CONTENEDOR PRINCIPAL --- */
.rss-ne-main-wrapper {
    max-width: 1200px;
    margin: 20px auto;
    position: relative;
    padding: 0 10px;
    font-family: Arial, sans-serif;
}

/* --- CABECERA (Actualizado) --- */
.rss-ne-header-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-end; 
    margin-bottom: 5px; 
    text-align: right; 
}

.rss-ne-label-wrapper {
    display: table; 
    margin-left: auto; 
}

.rss-ne-header-container .rss-ne-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    color: #888;
    font-weight: bold;
    letter-spacing: -0.5px !important;
    padding: 0;
    margin-bottom: -3px !important;
}

.rss-ne-header-line-custom {
    width: 100%; 
    height: 5px; 
    background-color: #0170b9;
    margin-bottom: 6px;
}

.rss-ne-seccion-titulo-externo {
    font-size: 20px !important;
    color: #02385b;
    margin: 0 !important;
    font-weight: 800;
    line-height: 1.1;
    transition: opacity 0.3s ease;
}

/* --- ANIMACIÓN --- */
.rss-ne-fade-effect {
    animation: rssNeFadeInOut 0.6s ease-in-out;
}

@keyframes rssNeFadeInOut {
    0% { opacity: 1; transform: translateY(0); }
    50% { opacity: 0.3; transform: translateY(-2px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* --- CONTENEDOR DEL SLIDER --- */
.rss-ne-slider-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.rss-ne-noticias-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    border: 1px solid #ccc;
    background-color: #fff;
    scrollbar-width: none;
    width: 100%;
    -webkit-overflow-scrolling: touch;
}

.rss-ne-noticias-grid::-webkit-scrollbar { display: none; }

.rss-ne-feed-block {
    display: flex;
    flex: 0 0 100%;
    min-width: 100%;
    scroll-snap-align: start;
    flex-wrap: nowrap !important;
}

/* --- TARJETA DE NOTICIA --- */
.rss-ne-noticia-item {
    flex: 0 0 33.333% !important; 
    min-width: 33.333% !important;
    max-width: 33.333% !important;
    scroll-snap-align: start;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: 1px solid #eee;
    background: #fff;
}

.rss-ne-noticia-item:hover { background-color: #f0f7ff; }

.rss-ne-noticia-link-wrapper {
    display: flex;
    text-decoration: none !important;
    padding: 12px 15px 5px 15px;
    flex-grow: 1;
}

.rss-ne-noticia-imagen {
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
    margin-right: 15px;
}

.rss-ne-noticia-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.rss-ne-noticia-titulo {
    margin: 0;
    font-size: 16px !important;
    line-height: 1.3;
    font-weight: 600;
    color: #333 !important;
}

.rss-ne-noticia-autor { font-size: 10px; color: #888; }

.rss-ne-noticia-footer {
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-end;
    padding: 0 15px 15px 15px;
}

.rss-ne-noticia-medio {
    margin: 0;
    color: #02385b;
    font-size: 12px !important;
    font-weight: bold;
}

.rss-ne-separador-azul {
    width: 30px;
    height: 3px;
    background-color: #0170b9;
    margin-bottom: 4px;
}

/* --- FLECHAS --- */
.rss-ne-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #00968885;
    color: white;
    border: 1px solid #ffffff66;
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-sizing: border-box;
    font-size: 14px;
}
.rss-ne-arrow-prev { left: -19px; }
.rss-ne-arrow-next { right: -19px; }

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .rss-ne-noticia-item { 
        flex: 0 0 50% !important; 
        min-width: 50% !important;
        max-width: 50% !important;
    }
}

@media (max-width: 600px) {
    .rss-ne-noticia-item { 
        flex: 0 0 100% !important; 
        min-width: 100% !important;
        max-width: 100% !important;
    }

    .rss-ne-noticia-imagen { flex: 0 0 70px; width: 70px; height: 70px; }
    .rss-ne-seccion-titulo-externo { font-size: 20px; }
}