/* Promo Banner Styles */
.promo-banner {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 50%, #ff6b35 100%);
    background-size: 200% 100%;
    color: #ffffff;
    padding: 12px 20px;
    text-align: center;
    position: fixed;
    top: 0; /* Se ajustará dinámicamente con JavaScript */
    left: 0;
    width: 100%;
    margin: 0 !important;
    margin-top: 0 !important;
    padding-top: 12px !important;
    overflow: hidden;
    z-index: 9999; /* Debajo del navbar (10000) pero encima del contenido */
    box-shadow: 0 2px 10px rgba(255, 107, 53, 0.3);
    animation: promoSlide 0.5s ease-out, promoGradient 3s ease infinite;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.promo-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: promoShine 3s infinite;
}

.promo-banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.promo-banner-media {
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 50px;
}

.promo-banner-media img {
    height: 50px;
    width: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
}

.promo-banner-text {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.promo-icon {
    font-size: 1.3rem;
    animation: promoBounce 2s ease-in-out infinite;
    display: inline-block;
    color: #ffffff;
}

.promo-message {
    flex: 1;
}

.promo-banner-btn {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 8px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    white-space: nowrap;
}

.promo-banner-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.promo-banner.promo-hidden {
    opacity: 0 !important;
    transform: translateY(-6px);
    pointer-events: none;
    visibility: hidden !important;
}

/* Animations */
@keyframes promoSlide {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes promoGradient {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes promoShine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes promoBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .promo-banner {
        padding: 10px 12px;
        /* top se ajusta dinámicamente con JavaScript */
    }
    
    .promo-banner-content {
        flex-direction: row; /* Mantener horizontal: IMAGEN | Texto | Botón */
        gap: 10px;
        align-items: center;
        justify-content: center;
        flex-wrap: nowrap;
    }
    
    /* IMAGEN - Primera en el orden */
    .promo-banner-media {
        order: 1;
        max-height: 40px;
        flex-shrink: 0;
    }
    
    .promo-banner-media img {
        height: 40px;
        width: auto;
    }
    
    /* TEXTO - Segunda en el orden */
    .promo-banner-text {
        order: 2;
        font-size: 0.8rem;
        flex-direction: row;
        gap: 6px;
        align-items: center;
        justify-content: center;
        flex: 1;
        min-width: 0; /* Permite que el texto se ajuste */
    }
    
    .promo-icon {
        font-size: 0.95rem;
        flex-shrink: 0;
    }
    
    .promo-message {
        text-align: center;
        flex: 1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* BOTÓN - Tercera en el orden */
    .promo-banner-btn {
        order: 3;
        padding: 6px 14px;
        font-size: 0.8rem;
        flex-shrink: 0;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .promo-banner {
        padding: 8px 10px;
    }
    
    .promo-banner-content {
        gap: 8px;
    }
    
    .promo-banner-media {
        max-height: 35px;
    }
    
    .promo-banner-media img {
        height: 35px;
    }
    
    .promo-banner-text {
        font-size: 0.7rem;
        gap: 4px;
    }
    
    .promo-icon {
        font-size: 0.85rem;
    }
    
    .promo-message {
        font-size: 0.7rem;
    }
    
    .promo-banner-btn {
        padding: 5px 12px;
        font-size: 0.75rem;
    }
}

/* Para pantallas muy pequeñas, ajustar aún más */
@media (max-width: 360px) {
    .promo-banner {
        padding: 6px 8px;
    }
    
    .promo-banner-content {
        gap: 6px;
    }
    
    .promo-banner-media {
        max-height: 30px;
    }
    
    .promo-banner-media img {
        height: 30px;
    }
    
    .promo-banner-text {
        font-size: 0.65rem;
        gap: 3px;
    }
    
    .promo-icon {
        font-size: 0.75rem;
    }
    
    .promo-message {
        font-size: 0.65rem;
    }
    
    .promo-banner-btn {
        padding: 4px 10px;
        font-size: 0.7rem;
    }
}

