/* Estilos base - FRANJA ULTRA FINA */
.ygb-ticker {
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 0.3em 0 !important;
    box-sizing: border-box;
}

.ygb-ticker-header {
    padding: 0.2em 15px;
    margin-right: 15px;
    border-radius: 4px;
    font-weight: bold;
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 0.9em;
}

.ygb-ticker-content {
    flex: 1;
    overflow: hidden;
}

/* Track con flexbox para el efecto continuo */
.ygb-ticker-track {
    display: flex;
    white-space: nowrap;
    animation: ygb-scroll linear infinite;
    width: fit-content;
    align-items: center;
}

/* Contenido de cada ciclo */
.ygb-ticker-track-content {
    display: inline-block;
    white-space: nowrap;
    font-size: 0.9em;
}

/* Separador visible entre ciclos */
.ygb-ticker-separator-cycle {
    display: inline-block;
    margin: 0 30px;
    font-size: 1.2em;
    opacity: 0.9;
    color: inherit;
    white-space: nowrap;
}

/* Animaciones para el separador */
.ygb-ticker-separator-cycle.anim-pulse {
    animation: cycle-pulse 2s ease-in-out infinite;
}

.ygb-ticker-separator-cycle.anim-spin {
    animation: cycle-spin 3s linear infinite;
    display: inline-block;
}

.ygb-ticker-separator-cycle.anim-bounce {
    animation: cycle-bounce 2s ease infinite;
    display: inline-block;
}

.ygb-ticker-separator-cycle.anim-flash {
    animation: cycle-flash 2s ease infinite;
}

.ygb-ticker-separator-cycle.anim-shake {
    animation: cycle-shake 0.5s ease infinite;
    display: inline-block;
}

@keyframes cycle-pulse {
    0% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.15); }
    100% { opacity: 0.7; transform: scale(1); }
}

@keyframes cycle-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes cycle-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes cycle-flash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@keyframes cycle-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Animación de scroll - mueve exactamente la mitad (un ciclo completo) */
@keyframes ygb-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Pausa en hover */
.ygb-ticker:hover .ygb-ticker-track {
    animation-play-state: paused;
}

/* Items dentro del contenido */
.ygb-ticker-item {
    margin: 0 10px;
    display: inline-block;
    font-size: 0.9em;
}

.ygb-ticker-item a {
    text-decoration: none;
    font-weight: 600;
}

.ygb-ticker-item a:hover {
    text-decoration: underline;
}

/* Separador entre items (punto) */
.ygb-ticker-separator {
    margin: 0 3px;
    opacity: 0.5;
    font-size: 0.9em;
}

/* Botón cerrar */
.ygb-ticker-close {
    background: transparent;
    border: none;
    font-size: 20px;
    line-height: 1;
    padding: 0 10px;
    margin-left: 5px;
    cursor: pointer;
    transition: opacity 0.3s;
    flex-shrink: 0;
    height: 100%;
    display: flex;
    align-items: center;
    opacity: 0.8;
}

.ygb-ticker-close:hover {
    opacity: 1;
    background: transparent;
}

/* Ajuste para admin bar */
.admin-bar [id^="ygb-universal-"][style*="position: fixed"][style*="top: 0"] {
    top: 32px !important;
}

/* Responsive */
@media (max-width: 768px) {
    .ygb-ticker-track-content {
        font-size: 13px;
    }
    
    .ygb-ticker-separator-cycle {
        margin: 0 15px;
        font-size: 1em;
    }
    
    .admin-bar [id^="ygb-universal-"][style*="position: fixed"][style*="top: 0"] {
        top: 46px !important;
    }
}