/* ===== CELEBRACIÓN 1ER ANIVERSARIO MENTALFAM ===== */

/* Banner de Aniversario */
.aniversario-banner {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FF6B6B 100%);
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.4);
    z-index: 10001;
    display: flex;
    align-items: center;
    gap: 15px;
    animation: bannerEntrance 1s ease-out, bannerFloat 3s ease-in-out infinite;
    font-family: 'Poppins', sans-serif;
}

@keyframes bannerEntrance {
    from {
        top: -100px;
        opacity: 0;
    }
    to {
        top: 20px;
        opacity: 1;
    }
}

@keyframes bannerFloat {
    0%, 100% {
        transform: translateX(-50%) translateY(0px);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

.aniversario-banner .icon {
    font-size: 2rem;
    animation: iconRotate 2s ease-in-out infinite;
}

@keyframes iconRotate {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    25% {
        transform: rotate(-15deg) scale(1.1);
    }
    75% {
        transform: rotate(15deg) scale(1.1);
    }
}

.aniversario-banner .text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.aniversario-banner .text h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.aniversario-banner .text p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.95;
    font-weight: 500;
}

/* Confeti Cayendo */
.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    background: #FFD700;
    position: fixed;
    top: -10px;
    z-index: 10000;
    animation: confettiFall linear infinite;
}

@keyframes confettiFall {
    to {
        transform: translateY(100vh) rotate(360deg);
    }
}

.confetti:nth-child(1) { left: 10%; animation-duration: 3s; background: #FFD700; }
.confetti:nth-child(2) { left: 20%; animation-duration: 3.5s; background: #FF6B6B; animation-delay: 0.2s; }
.confetti:nth-child(3) { left: 30%; animation-duration: 4s; background: #4ECDC4; animation-delay: 0.4s; }
.confetti:nth-child(4) { left: 40%; animation-duration: 3.2s; background: #95E1D3; animation-delay: 0.6s; }
.confetti:nth-child(5) { left: 50%; animation-duration: 3.8s; background: #F38181; animation-delay: 0.8s; }
.confetti:nth-child(6) { left: 60%; animation-duration: 3.3s; background: #AA96DA; animation-delay: 1s; }
.confetti:nth-child(7) { left: 70%; animation-duration: 3.6s; background: #FCBAD3; animation-delay: 1.2s; }
.confetti:nth-child(8) { left: 80%; animation-duration: 3.9s; background: #FFFFD2; animation-delay: 1.4s; }
.confetti:nth-child(9) { left: 90%; animation-duration: 3.4s; background: #A8D8EA; animation-delay: 1.6s; }
.confetti:nth-child(10) { left: 15%; animation-duration: 4.2s; background: #FFD700; animation-delay: 1.8s; }
.confetti:nth-child(11) { left: 25%; animation-duration: 3.7s; background: #FF6B6B; animation-delay: 2s; }
.confetti:nth-child(12) { left: 35%; animation-duration: 4.1s; background: #4ECDC4; animation-delay: 2.2s; }
.confetti:nth-child(13) { left: 45%; animation-duration: 3.5s; background: #95E1D3; animation-delay: 2.4s; }
.confetti:nth-child(14) { left: 55%; animation-duration: 3.9s; background: #F38181; animation-delay: 2.6s; }
.confetti:nth-child(15) { left: 65%; animation-duration: 3.3s; background: #AA96DA; animation-delay: 2.8s; }
.confetti:nth-child(16) { left: 75%; animation-duration: 4s; background: #FCBAD3; animation-delay: 3s; }
.confetti:nth-child(17) { left: 85%; animation-duration: 3.6s; background: #FFFFD2; animation-delay: 3.2s; }
.confetti:nth-child(18) { left: 95%; animation-duration: 3.8s; background: #A8D8EA; animation-delay: 3.4s; }
.confetti:nth-child(19) { left: 5%; animation-duration: 4.3s; background: #FFD700; animation-delay: 3.6s; }
.confetti:nth-child(20) { left: 50%; animation-duration: 3.4s; background: #FF6B6B; animation-delay: 3.8s; }

/* Mensaje de Celebración en el Login Box */
.celebration-message {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 15px;
    border-radius: 10px;
    text-align: center;
    margin-top: -50px;
    margin-bottom: 25px;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    animation: messageGlow 2s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

@keyframes messageGlow {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    }
    50% {
        box-shadow: 0 8px 35px rgba(102, 126, 234, 0.5);
    }
}

.celebration-message::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.celebration-message h3 {
    margin: 0 0 5px 0;
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.celebration-message h3 .emoji {
    font-size: 1.1rem;
    animation: emojiPulse 1s ease-in-out infinite;
}

@keyframes emojiPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

.celebration-message p {
    margin: 0;
    font-size: 0.7rem;
    opacity: 0.95;
    font-weight: 500;
}

.celebration-message .years {
    font-size: 1.6rem;
    font-weight: 900;
    margin: 5px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: numberScale 2s ease-in-out infinite;
}

@keyframes numberScale {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Fuegos Artificiales */
.firework {
    position: fixed;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.firework::before,
.firework::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: inherit;
}

.firework::before {
    animation: fireworkExplosion 1.5s ease-out infinite;
}

.firework::after {
    animation: fireworkExplosion 1.5s ease-out 0.3s infinite;
}

@keyframes fireworkExplosion {
    0% {
        transform: translate(0, 0);
        opacity: 1;
    }
    100% {
        transform: translate(var(--x), var(--y));
        opacity: 0;
    }
}

/* Estrellas Brillantes */
.star {
    position: fixed;
    width: 20px;
    height: 20px;
    z-index: 9998;
    pointer-events: none;
    animation: starTwinkle 2s ease-in-out infinite;
}

@keyframes starTwinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.8) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.2) rotate(180deg);
    }
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .aniversario-banner {
        top: 120px;
        padding: 10px 20px;
        font-size: 0.85rem;
        max-width: 90%;
    }
    
    .aniversario-banner .icon {
        font-size: 1.3rem;
    }
    
    .aniversario-banner .text h3 {
        font-size: 0.95rem;
    }
    
    .aniversario-banner .text p {
        font-size: 0.7rem;
    }
    
    .celebration-message {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .celebration-message h3 {
        font-size: 1.2rem;
    }
    
    .celebration-message .years {
        font-size: 2.5rem;
    }
    
    .celebration-message p {
        font-size: 0.9rem;
    }
}

/* Efecto de Brillo en el Logo */
.logo-anniversary-glow {
    animation: logoAnniversaryGlow 2s ease-in-out infinite !important;
}

@keyframes logoAnniversaryGlow {
    0%, 100% {
        filter: drop-shadow(0 4px 15px rgba(123, 67, 151, 0.3)) !important;
    }
    50% {
        filter: drop-shadow(0 8px 30px rgba(255, 215, 0, 0.6)) drop-shadow(0 4px 15px rgba(123, 67, 151, 0.5)) !important;
    }
}
