/* =================================
   COUNTDOWN STYLES - HEADER MENU
   ================================= */

.header-countdown {
    display: flex;
    align-items: center;
    margin-right: 10px;
    margin-left: 10px;
}

.countdown-container-header {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, 
        rgba(20, 10, 5, 0.9) 0%, 
        rgba(40, 20, 10, 0.9) 50%, 
        rgba(20, 10, 5, 0.9) 100%);
    border: 1px solid #ff6600;
    border-radius: 8px;
    padding: 8px 14px;
    box-shadow: 0 0 15px rgba(255, 102, 0, 0.4);
}

.countdown-title-header {
    color: #e8c88a;
    font-size: 13px;
    font-weight: 600;
    margin-right: 8px;
    white-space: nowrap;
}

.countdown-timer-header {
    display: flex;
    gap: 8px;
}

.time-unit-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 28px;
}

.number-header {
    color: #ff6600;
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
    text-shadow: 0 0 8px rgba(255, 102, 0, 0.6);
}

.label-header {
    color: #e8c88a;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    margin-top: 2px;
}

/* Responsive header countdown */
@media (max-width: 768px) {
    .header-countdown {
        margin-right: 10px;
    }
    
    .countdown-container-header {
        padding: 4px 6px;
        gap: 4px;
    }
    
    .countdown-title-header {
        font-size: 9px;
        margin-right: 3px;
    }
    
    .countdown-timer-header {
        gap: 3px;
    }
    
    .time-unit-header {
        min-width: 18px;
    }
    
    .number-header {
        font-size: 12px;
    }
    
    .label-header {
        font-size: 7px;
    }
}

@media (max-width: 480px) {
    .countdown-title-header {
        display: none; /* Ocultar texto en moviles muy pequenos */
    }
    
    .countdown-container-header {
        padding: 3px 5px;
    }
}

/* =================================
   COUNTDOWN STYLES - HERO SECTION (OCULTO)
   ================================= */

.hero-countdown {
    position: absolute;
    bottom: 180px; /* Arriba del boton descargar */
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    width: 100%;
    max-width: 600px;
    padding: 0 20px;
}

.countdown-container {
    background: linear-gradient(135deg, 
        rgba(20, 10, 5, 0.95) 0%, 
        rgba(40, 20, 10, 0.95) 50%, 
        rgba(20, 10, 5, 0.95) 100%);
    border: 2px solid #ff6600;
    border-radius: 12px;
    padding: 15px; /* Mas compacto */
    text-align: center;
    box-shadow: 
        0 0 20px rgba(255, 102, 0, 0.5),
        inset 0 0 15px rgba(255, 102, 0, 0.1);
    backdrop-filter: blur(3px);
    position: relative;
}

.countdown-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff6600, #ff8533, #ff6600, #cc5200);
    border-radius: 15px;
    z-index: -1;
    animation: borderGlow 3s ease-in-out infinite alternate;
}

@keyframes borderGlow {
    0% { opacity: 0.7; }
    100% { opacity: 1; }
}

.countdown-title {
    color: #fff;
    font-size: 16px; /* Mas chico */
    font-weight: bold;
    margin: 0 0 12px 0;
    text-shadow: 
        0 0 8px #ff6600,
        2px 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.5px;
    animation: titlePulse 2s ease-in-out infinite alternate;
}

@keyframes titlePulse {
    0% { text-shadow: 0 0 10px #ff6600, 2px 2px 4px rgba(0, 0, 0, 0.8); }
    100% { text-shadow: 0 0 20px #ff6600, 0 0 30px #ff8533, 2px 2px 4px rgba(0, 0, 0, 0.8); }
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 12px; /* Mas compacto */
    flex-wrap: wrap;
}

.time-unit {
    background: linear-gradient(135deg, #331a0e, #4d2616);
    border: 1px solid #674220;
    border-radius: 8px;
    padding: 8px 6px; /* Mas chico */
    min-width: 55px; /* Mas chico */
    box-shadow: 
        0 3px 6px rgba(0, 0, 0, 0.3),
        inset 0 1px 2px rgba(255, 102, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.time-unit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 102, 0, 0.2), transparent);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

.time-unit .number {
    display: block;
    font-size: 22px; /* Mas chico */
    font-weight: bold;
    color: #ff6600;
    text-shadow: 0 0 8px #ff6600;
    margin-bottom: 2px;
    font-family: 'Roboto', sans-serif;
    position: relative;
    z-index: 2;
}

.time-unit .label {
    display: block;
    font-size: 9px; /* Mucho mas chico */
    color: #e8c88a;
    font-weight: 500;
    letter-spacing: 0.3px;
    position: relative;
    z-index: 2;
}

/* Efectos especiales cuando quedan pocos dias */
.countdown-urgent .time-unit {
    animation: urgentPulse 1s ease-in-out infinite alternate;
}

.countdown-urgent .countdown-title {
    color: #ff3232;
    animation: urgentTitle 0.5s ease-in-out infinite alternate;
}

@keyframes urgentPulse {
    0% { 
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), inset 0 1px 2px rgba(255, 50, 50, 0.3);
        border-color: #ff3232;
    }
    100% { 
        box-shadow: 0 4px 15px rgba(255, 50, 50, 0.6), inset 0 1px 2px rgba(255, 50, 50, 0.5);
        border-color: #ff6666;
    }
}

@keyframes urgentTitle {
    0% { color: #ff3232; }
    100% { color: #ff6666; }
}

/* Responsive */
@media (max-width: 1200px) {
    .hero-countdown {
        right: 50px;
        width: 250px;
    }
}

@media (max-width: 768px) {
    .hero-countdown {
        top: auto;
        bottom: 140px;
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        width: 280px;
    }
    
    .countdown-container {
        padding: 10px;
    }
    
    .countdown-title {
        font-size: 12px;
        margin-bottom: 8px;
    }
    
    .countdown-timer {
        gap: 6px;
    }
    
    .time-unit {
        min-width: 38px;
        padding: 5px 3px;
    }
    
    .time-unit .number {
        font-size: 16px;
    }
    
    .time-unit .label {
        font-size: 8px;
    }
}

@media (max-width: 480px) {
    .hero-countdown {
        bottom: 120px;
    }
    
    .countdown-title {
        font-size: 16px;
    }
    
    .time-unit {
        min-width: 50px;
        padding: 6px 4px;
    }
    
    .time-unit .number {
        font-size: 20px;
    }
    
    .time-unit .label {
        font-size: 9px;
    }
}
