:root {
    /* Definimos la altura exacta aquí para control total */
    --ticker-height: 30px;
}

/* ===== SECCIÓN TICKER CORREGIDA ===== */
.ticker-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--ticker-height);
    background: #2d4f95;
    /* Color inicial azul */
    z-index: 11000;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(197, 160, 89, 0.3);
    overflow: hidden;
    transition: background 0.4s ease, border-color 0.4s ease;
    /* Transición suave */
}

/* ESTADO INVERTIDO AL HACER SCROLL */
.ticker-section.scrolled {
    background: #ffffff !important;
    border-bottom: 1px solid rgba(45, 79, 149, 0.2);
}

.ticker-section.scrolled .ticker-group span {
    color: #3b3b3b !important;
    font-weight: 500;
    /* Texto cambia a azul */
}

/* ESTO ES LO QUE EMPUJA TODO SIN ROMPER NADA */
body {
    margin-top: var(--ticker-height) !important;
}

header,
.navbar-fixed {
    top: var(--ticker-height) !important;
}

/* ===== ESTRUCTURA INTERNA PARA FLUJO INFINITO ===== */
.ticker-container {
    width: 100%;
    overflow: hidden;
}

.ticker-track {
    display: flex;
    width: max-content;
    animation: scroll-left 40s linear infinite;
}

.ticker-group {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.ticker-group span {
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 500;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 0 40px;
    white-space: nowrap;
    transition: color 0.4s ease;
    /* Transición suave para el texto */
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}