/**
 * Countdown Banner Section
 * Sección independiente para mostrar countdown y precio
 */

.countdown-banner {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 24px 0; /* Padding simétrico arriba y abajo */
    border-bottom: 3px solid var(--gold-primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: fixed; /* Fixed como el navbar */
    top: 100px; /* Separación del navbar: 70px (navbar) + 15px (espacio) */
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1020; /* Debajo del navbar (1030) pero encima del contenido */
    transition: all 0.3s ease;
}

.countdown-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 215, 0, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 215, 0, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.countdown-banner-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-6);
    display: flex;
    align-items: center;
    justify-content: center; /* Centrar todo */
    gap: var(--space-8);
    position: relative;
    z-index: 1;
}

/* Texto "Quedan:" */
.countdown-banner-label-quedan {
    font-size: 28px;
    font-weight: 700;
    color: var(--gold-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Countdown Timer */
.countdown-banner-timer {
    display: flex;
    align-items: center;
    gap: 16px;
}

.countdown-banner-digit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.countdown-banner-value {
    background: rgba(255, 215, 0, 0.1);
    border: 2px solid var(--gold-primary);
    border-radius: 12px;
    min-width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 700;
    color: var(--gold-primary);
    font-family: 'Courier New', monospace;
    position: relative;
    box-shadow:
        0 4px 15px rgba(255, 215, 0, 0.2),
        inset 0 2px 10px rgba(255, 215, 0, 0.1);
    transition: all 0.3s ease;
}

.countdown-banner-value::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(26, 26, 46, 0.5);
}

.countdown-banner-label {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.countdown-banner-separator {
    font-size: 32px;
    font-weight: 700;
    color: var(--gold-primary);
    margin: 0 -4px;
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0.3; }
}

/* Precio - Mismo alto que countdown */
.countdown-banner-precio {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 24px;
    background: rgba(255, 215, 0, 0.1);
    border: 2px solid var(--gold-primary);
    border-radius: 12px;
    position: relative;
    height: 80px; /* Misma altura que el countdown-banner-value */
    box-shadow:
        0 4px 15px rgba(255, 215, 0, 0.2),
        inset 0 2px 10px rgba(255, 215, 0, 0.1);
}

.countdown-banner-precio-label {
    font-size: 9px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.countdown-banner-precio-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--gold-primary);
    text-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
    line-height: 1;
}

/* Placeholder cuando no hay fecha */
.countdown-banner-placeholder {
    padding: 20px 40px;
    background: rgba(255, 215, 0, 0.1);
    border: 2px solid var(--gold-primary);
    border-radius: 12px;
}

.countdown-banner-placeholder p {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 768px) {
    .countdown-banner {
        padding: 16px 0;
        top: 70px; /* Ajuste para móvil */
    }

    .countdown-banner-container {
        flex-wrap: wrap;
        gap: var(--space-4);
    }

    .countdown-banner-label-quedan {
        font-size: 20px;
        width: 100%;
        text-align: center;
    }

    .countdown-banner-timer {
        gap: 8px;
    }

    .countdown-banner-value {
        min-width: 60px;
        height: 60px;
        font-size: 24px;
        border-radius: 10px;
    }

    .countdown-banner-label {
        font-size: 9px;
    }

    .countdown-banner-separator {
        font-size: 24px;
        margin: 0 -6px;
    }

    .countdown-banner-precio {
        padding: 10px 20px;
        height: 60px; /* Ajustado para móvil */
        max-width: 200px;
    }

    .countdown-banner-precio-label {
        font-size: 8px;
    }

    .countdown-banner-precio-value {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .countdown-banner-value {
        min-width: 50px;
        height: 50px;
        font-size: 20px;
        border-radius: 8px;
    }

    .countdown-banner-label {
        font-size: 8px;
    }

    .countdown-banner-separator {
        font-size: 20px;
    }

    .countdown-banner-precio-value {
        font-size: 24px;
    }
}

/* Animación de entrada */
.countdown-banner-digit {
    animation: slideDown 0.6s ease-out backwards;
}

.countdown-banner-digit:nth-child(1) { animation-delay: 0.1s; }
.countdown-banner-digit:nth-child(3) { animation-delay: 0.2s; }
.countdown-banner-digit:nth-child(5) { animation-delay: 0.3s; }
.countdown-banner-digit:nth-child(7) { animation-delay: 0.4s; }

.countdown-banner-precio {
    animation: slideDown 0.6s ease-out 0.5s backwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
