/* ==================================================
   Modern News Ticker - Estilos con Borde Configurable
   ================================================== */

/* Estilo base del contenedor de la marquesina */
.modern-news-ticker {
    position: relative;
    width: 100%;
    height: 70px; /* Altura fija para diseño consistente */
    line-height: 70px; /* Centra verticalmente el texto */
    font-size: 18px;
    overflow: hidden;
    background-color: #000000; /* Color de fondo por defecto (se sobrescribe desde JS) */
    color: #ffffff; /* Color de texto por defecto (se sobrescribe desde JS) */
    font-family: 'Barlow Condensed', 'Arial', sans-serif; /* Fuente moderna y condensada */
    margin: 20px 0;
    border-radius: 0; /* Sin bordes redondeados por defecto */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Contenedor interno que maneja el desplazamiento */
.modern-news-ticker .ticker-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Reset de estilos para listas */
.modern-news-ticker ul,
.modern-news-ticker li {
    margin: 0;
    padding: 0;
    list-style: none;
    white-space: nowrap;
}

/* Estilo de cada elemento de noticia (li) */
.modern-news-ticker li {
    display: inline-block;
    margin-right: 40px; /* Espacio entre noticias */
    line-height: 70px; /* Alineación vertical */
    vertical-align: middle;
    /* Fondo sutil para separar visualmente cada titular */
    background-color: rgba(255, 255, 255, 0.05);

    padding: 0 20px;
    border-radius: 30px; /* Forma de "píldora" para mejor separación visual */
    transition: all 0.2s ease;
    /* --- NUEVO: Estilos de borde por defecto --- */
    border: 2px solid rgba(255, 255, 255, 0.2); /* Borde blanco semi-transparente */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); /* Sombra sutil para profundidad */
}

/* Efecto al pasar el mouse sobre un titular */
.modern-news-ticker li:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.02);
    /* --- NUEVO: Borde más brillante al hacer hover --- */
    border-color: rgba(255, 255, 255, 0.5);
}

/* Estilo del enlace (título + imagen) */
.modern-news-ticker a {
    color: inherit; /* Hereda el color del texto del contenedor */
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: opacity 0.3s ease;
    width: 100%;
    height: 100%;
}

.modern-news-ticker a:hover {
    opacity: 0.9;
}

/* Estilo de la miniatura de la imagen */
.modern-news-ticker .thumbnail {
    width: 55px;
    height: 55px;
    object-fit: cover; /* Recorta la imagen sin deformarla */
    margin-right: 15px;
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Mensaje de error (si el feed falla) */
.modern-news-ticker .mt-error {
    font-size: 16px;
    font-style: italic;
    text-align: center;
    margin: 0;
    padding: 0 20px;
    color: #ff6b6b;
}

/* -------------------------------
   ESTILOS RESPONSIVE
   ------------------------------- */

@media screen and (max-width: 1024px) {
    .modern-news-ticker {
        height: 65px;
        line-height: 65px;
        font-size: 17px;
    }

    .modern-news-ticker li {
        line-height: 65px;
        margin-right: 30px;
        padding: 0 15px;
    }

    .modern-news-ticker .thumbnail {
        width: 50px;
        height: 50px;
        margin-right: 12px;
    }
}

@media screen and (max-width: 768px) {
    .modern-news-ticker {
        height: 80px;
        line-height: 80px;
        font-size: 16px;
    }

    .modern-news-ticker li {
        line-height: 80px;
        margin-right: 25px;
        padding: 0 12px;
    }

    .modern-news-ticker .thumbnail {
        width: 45px;
        height: 45px;
        margin-right: 10px;
    }
}

@media screen and (max-width: 480px) {
    .modern-news-ticker {
        height: 90px;
        line-height: 90px;
        font-size: 15px;
    }

    .modern-news-ticker li {
        line-height: 90px;
        margin-right: 20px;
        padding: 0 10px;
    }

    .modern-news-ticker .thumbnail {
        width: 40px;
        height: 40px;
        margin-right: 8px;
    }
}