/* ==================================================
   Modern News Ticker - Estilos con Borde Configurable
   ================================================== */

/* Estilo base del contenedor de la marquesina */
.modern-news-ticker {
    position: relative;
    width: 100%;
    height: 70px;
    line-height: 60px;
    font-size: 18px;
    overflow: hidden;
    background-color: #000000;
    color: #ffffff;
    font-family: 'Barlow Condensed', 'Arial', sans-serif;
    margin: 20px 0;
    border-radius: 0;
    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;
    transition: all 0.3s ease;
}

/* Reset de estilos para listas */
.modern-news-ticker ul,
.modern-news-ticker li {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline;
}

/* Lista de noticias - Contenedor de desplazamiento */
.modern-news-ticker ul {
    position: absolute;
    height: 100%;
    white-space: nowrap;
    transition: transform 0.3s ease-out;
    will-change: transform;
}

/* Elemento de la noticia individual */
.modern-news-ticker li {
    display: inline-block;
    padding: 0 15px;
    height: 100%;
    line-height: 70px;
    vertical-align: top;
    border: 2px solid transparent;
    border-radius: 4px;
    margin: 0 5px;
    transition: border-color 0.3s ease;
}

/* Estilo del enlace */
.modern-news-ticker a {
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
    color: #ffffff;
    display: flex;
    align-items: center;
    height: 100%;
    transition: opacity 0.3s ease;
}

.modern-news-ticker a:hover {
    opacity: 0.8;
}

/* Contenedor de la imagen/miniatura */
.modern-news-ticker .thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    margin-right: 10px;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-sizing: border-box;
    vertical-align: middle;
}

/* Título del titular */
.modern-news-ticker .title {
    display: inline-block;
    vertical-align: middle;
    padding-right: 15px;
    font-size: 1.1em;
}

/* Mensajes de estado (Cargando/Error) */
.modern-news-ticker .loading-message,
.modern-news-ticker .error-message {
    display: block;
    padding-left: 15px;
    font-size: 1em;
    font-weight: 300;
}
.modern-news-ticker .error-message {
    color: #ff5555;
    font-weight: bold;
}

/* ==================================================
   NUEVOS ESTILOS (Título, Separador, Navegación)
   ================================================== */

/* Estilo para el Título de la Marquesina */
.modern-news-ticker .ticker-title {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background-color: #333;
    color: #fff;
    padding: 0 20px;
    font-weight: bold;
    z-index: 10;
    text-transform: uppercase;
    line-height: 70px;
    clip-path: polygon(0 0, 100% 0, calc(100% - 15px) 100%, 0% 100%);
    padding-right: 35px;
    font-size: 16px;
    letter-spacing: 1px;
}

/* Estilo para el separador entre noticias - MEJORADO PARA VISIBILIDAD */
.modern-news-ticker .ticker-separator {
    color: inherit;
    opacity: 0.8;
    font-weight: bold;
    margin: 0 10px 0 15px; /* Más margen a la izquierda para mejor separación */
    display: inline-block;
    font-size: 1.2em;
    vertical-align: middle;
    line-height: 70px;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.5); /* Sombra para mejor visibilidad */
}

/* Estilo para los botones de navegación */
.modern-news-ticker .ticker-controls {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    z-index: 10;
    display: flex;
    align-items: center;
    background: inherit;
    padding-left: 10px;
    background-color: inherit;
}

.modern-news-ticker .ticker-controls button {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #ffffff;
    font-size: 24px;
    height: 100%;
    width: 40px;
    cursor: pointer;
    transition: background-color 0.2s;
    line-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modern-news-ticker .ticker-controls button:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Estilo para el caso de fallo de imagen */
.modern-news-ticker .thumbnail.error-loaded {
    object-fit: contain;
    background-color: transparent;
    padding: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .modern-news-ticker {
        height: 60px;
        line-height: 50px;
        font-size: 16px;
    }
    
    .modern-news-ticker .ticker-title {
        font-size: 14px;
        padding: 0 15px;
        padding-right: 25px;
    }
    
    .modern-news-ticker .thumbnail {
        width: 50px;
        height: 50px;
    }
    
    .modern-news-ticker li {
        line-height: 60px;
    }
    
    .modern-news-ticker .ticker-controls button {
        line-height: 60px;
    }
    
    /* Separador responsive */
    .modern-news-ticker .ticker-separator {
        margin: 0 8px 0 12px;
        font-size: 1.1em;
        line-height: 60px;
    }
}