/* Contenedor externo: ocupa el 100% del ancho y fondo azul */
.barra-superior-outer {
    width: 100%;
    background-color: #19225a !important;
}

/* Contenedor interno: ancho máximo, centrado y estilo de flexbox */
.barra-superior-inner {
    max-width: 1200px;  /* Ajusta este valor según el ancho de tu sitio */
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 8px 12px;
    font-size: 14px;
    color: white;
}

/* Estilo para el título de la barra */
.barra-titulo {
    margin-right: 15px;
    font-weight: bold;
}

/* Contenedor para la lista de noticias y las flechas */
.barra-news-container {
    position: relative;
    flex: 1;
    overflow: hidden;
}

/* Contenedor de las noticias (news ticker) */
.barra-news {
    display: flex;
    gap: 15px;
    white-space: nowrap;
    overflow-x: auto;
    scroll-behavior: smooth;
    /* Opcional: ocultar scrollbar en navegadores Webkit */
}
.barra-news::-webkit-scrollbar {
    display: none;
}

/* Estilo para cada noticia */
.barra-news-item {
    text-decoration: none;
    color: white;
}

/* Botones de flecha */
.barra-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 5px 10px;
    z-index: 10;
}

/* Flecha izquierda */
.barra-arrow-left {
    left: 0;
}

/* Flecha derecha */
.barra-arrow-right {
    right: 0;
}