/* ============================== */
/*  Cuenta regresiva con galería  */
/* ============================== */

.aniversario {
    position: relative;
    text-align: center;
    padding: 60px 20px;
    color: #fff;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Títulos */
.aniversario h1 {
    font-size: 3rem;
    color: #ff6b6b;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    z-index: 2;
    position: relative;
}

.aniversario p {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    z-index: 2;
    position: relative;
}

/* Contenedor principal de la cuenta regresiva */
.countdown-container {
    position: relative;
    z-index: 3;
    background: rgba(0, 0, 0, 0.3);
    padding: 25px 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    backdrop-filter: blur(2px);
}

/* Estilo del contador */
.countdown {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    font-size: 18px;
}

/* Cada bloque de tiempo */
.countdown div {
    text-align: center;
    font-size: 18px;
    color: #fff;
}

/* Números */
.countdown span {
    display: block;
    font-weight: bold;
    font-size: 40px;
    background: rgba(255, 107, 107, 0.85);
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 8px;
    min-width: 80px;
}

/* Palabras debajo */
.countdown div::after {
    content: attr(data-label);
    display: block;
    font-size: 16px;
    color: #f1f1f1;
    margin-top: 5px;
    font-weight: normal;
}

/* ============================== */
/* Mensaje en vivo y botón        */
/* ============================== */
.live-message {
    text-align: center;
    animation: fadeIn 1s ease-out;
}

.live-title {
    font-size: 3.5rem;
    color: #ff6b6b;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.live-subtitle {
    font-size: 1.5rem;
    color: #f1f1f1;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.live-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: white;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
    margin-top: 20px;
}

.live-button:hover {
    background: linear-gradient(135deg, #00f2fe, #4facfe);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    color: white;
}

/* ============================== */
/* Galería con transición         */
/* ============================== */
.gallery {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.gallery-slideshow {
    position: relative;
    width: 100%;
    height: 100%;
}

.gallery-slideshow img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.gallery-slideshow img.active {
    opacity: 1;
}

/* Superposición oscura */
.gallery::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

/* ============================== */
/* Animaciones necesarias         */
/* ============================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(79, 172, 254, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 15px rgba(79, 172, 254, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(79, 172, 254, 0);
    }
}

/* ============================== */
/* Responsive                     */
/* ============================== */
@media (max-width: 768px) {
    .aniversario {
        padding: 40px 15px;
        min-height: 80vh;
    }
    
    .aniversario h1 {
        font-size: 2.2rem;
    }
    
    .countdown {
        gap: 20px;
        font-size: 16px;
    }
    
    .countdown span {
        font-size: 28px;
        padding: 8px 14px;
        min-width: 60px;
    }
    
    .live-title {
        font-size: 2.5rem;
    }
    
    .live-subtitle {
        font-size: 1.2rem;
    }
    
    .live-button {
        padding: 12px 25px;
        font-size: 1rem;
    }
}