/* Estilos específicos para la cuenta regresiva */
.countdown-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8eaed 100%);
    padding: 3rem 1rem;
    text-align: center;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.countdown-background-animation {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255,255,255,0.2) 0%, transparent 70%);
    opacity: 0.8;
    animation: pulse-bg 10s infinite alternate;
}

.countdown-container {
    position: relative;
    z-index: 2;
}

.countdown-header {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-icon-container {
    position: relative;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.countdown-main-icon {
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

.countdown-sparkle {
    position: absolute;
    font-size: 1.5rem;
    top: -10px;
    right: -10px;
    transform: rotate(20deg);
    animation: twinkle 2s ease-in-out infinite;
}

.countdown-title {
    font-family: var(--font-script);
    font-size: 2.5rem;
    margin: 0 0 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--primary-color);
}

.title-line-highlight {
    color: var(--gold-color);
    font-size: 3rem;
    font-weight: 700;
}

.countdown-hearts {
    margin: 1rem 0;
}

.heart {
    display: inline-block;
    margin: 0 5px;
    animation: beat 1.5s ease infinite;
}

.heart:nth-child(2) {
    animation-delay: 0.5s;
}

.heart:nth-child(3) {
    animation-delay: 1s;
}

.countdown-subtitle {
    font-size: 1.2rem;
    font-family: var(--font-secondary);
    color: var(--dark-gray);
    margin-bottom: 2rem;
    font-weight: 300;
    letter-spacing: 1px;
}

.subtitle-word {
    display: inline-block;
    margin: 0 5px;
    animation: fadeInUp 0.5s ease-out;
}

.subtitle-word:nth-child(2) { animation-delay: 0.2s; }
.subtitle-word:nth-child(3) { animation-delay: 0.4s; }
.subtitle-word:nth-child(4) { animation-delay: 0.6s; }
.subtitle-word:nth-child(5) { animation-delay: 0.8s; }

.countdown-timer-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 2rem;
    font-family: var(--font-secondary);
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.countdown-item .count {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    background: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    min-width: 80px;
    line-height: 1;
    position: relative;
    overflow: hidden;
}

.countdown-item .label {
    font-size: 0.9rem;
    color: var(--medium-gray);
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.countdown-progress-ring {
    width: 300px;
    height: 300px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    opacity: 0.5;
}

.progress-circle {
    transform: rotate(-90deg);
}

.progress-background {
    fill: none;
    stroke: rgba(212, 175, 55, 0.1);
    stroke-width: 10px;
}

.progress-bar {
    fill: none;
    stroke: var(--gold-color);
    stroke-width: 10px;
    stroke-linecap: round;
    stroke-dasharray: 879;
    stroke-dashoffset: 879;
    transition: stroke-dashoffset 1s ease;
}

.countdown-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.countdown-feature {
    display: flex;
    align-items: center;
    background: white;
    padding: 15px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.countdown-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.feature-icon {
    font-size: 1.5rem;
    margin-right: 10px;
}

.feature-text {
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    color: var(--primary-color);
}

/* Estados especiales según proximidad */
.countdown-urgent .countdown-item .count {
    color: #e74c3c;
    animation: pulse-urgent 2s infinite;
}

.countdown-soon .countdown-item .count {
    color: #e67e22;
}

.countdown-far .countdown-item .count {
    color: var(--primary-color);
}

/* Animaciones */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(0.8) rotate(20deg); }
    50% { opacity: 1; transform: scale(1.1) rotate(25deg); }
}

@keyframes beat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-bg {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

@keyframes pulse-urgent {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); box-shadow: 0 0 15px rgba(231, 76, 60, 0.5); }
}

/* Responsive */
@media (max-width: 768px) {
    .countdown-title {
        font-size: 2rem;
    }
    
    .title-line-highlight {
        font-size: 2.3rem;
    }
    
    .countdown-timer {
        flex-wrap: wrap;
    }
    
    .countdown-item {
        min-width: 60px;
    }
    
    .countdown-item .count {
        font-size: 1.8rem;
        min-width: 60px;
        padding: 10px;
    }
    
    .countdown-progress-ring {
        width: 200px;
        height: 200px;
    }
    
    .progress-circle {
        width: 200px;
        height: 200px;
    }
    
    .progress-background, .progress-bar {
        cx: 100;
        cy: 100;
        r: 90;
    }
}

@media (max-width: 480px) {
    .countdown-item {
        min-width: 50px;
    }
    
    .countdown-item .count {
        font-size: 1.5rem;
        min-width: 50px;
        padding: 8px;
    }
    
    .countdown-features {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
}
