/* Estilos para la pantalla de carga */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0f4ccc;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    overflow: hidden;
    animation: fadeIn 1s ease-in;
}

.loader-hidden {
    opacity: 0;
    visibility: hidden;
}

/* Contenedor de emojis */
.emojis-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 9997;
    animation: fadeIn 2s ease-in;
}

.music-emoji {
    position: absolute;
    font-size: 40px;
    animation: emoji-rotate 5s infinite linear, fadeIn 2.5s ease-in;
    opacity: 0.8;
    display: block;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Posicionamiento aleatorio de los emojis */
.music-emoji:nth-child(1) { top: 10%; left: 15%; animation-delay: 0s; }
.music-emoji:nth-child(2) { top: 20%; left: 80%; animation-delay: 0.3s; }
.music-emoji:nth-child(3) { top: 35%; left: 25%; animation-delay: 0.6s; }
.music-emoji:nth-child(4) { top: 50%; left: 70%; animation-delay: 0.9s; }
.music-emoji:nth-child(5) { top: 65%; left: 40%; animation-delay: 1.2s; }
.music-emoji:nth-child(6) { top: 80%; left: 85%; animation-delay: 1.5s; }
.music-emoji:nth-child(7) { top: 15%; left: 45%; animation-delay: 1.8s; }
.music-emoji:nth-child(8) { top: 30%; left: 75%; animation-delay: 2.1s; }
.music-emoji:nth-child(9) { top: 45%; left: 10%; animation-delay: 2.4s; }
.music-emoji:nth-child(10) { top: 60%; left: 60%; animation-delay: 2.7s; }
.music-emoji:nth-child(11) { top: 75%; left: 30%; animation-delay: 3.0s; }
.music-emoji:nth-child(12) { top: 90%; left: 50%; animation-delay: 3.3s; }
.music-emoji:nth-child(13) { top: 25%; left: 5%; animation-delay: 3.6s; }
.music-emoji:nth-child(14) { top: 40%; left: 90%; animation-delay: 3.9s; }
.music-emoji:nth-child(15) { top: 55%; left: 20%; animation-delay: 4.2s; }
.music-emoji:nth-child(16) { top: 70%; left: 65%; animation-delay: 4.5s; }
.music-emoji:nth-child(17) { top: 85%; left: 35%; animation-delay: 4.8s; }
.music-emoji:nth-child(18) { top: 5%; left: 55%; animation-delay: 5.1s; }



/* Estilos del loader */
.loader {
    width: 120px;
    height: 120px;
    position: relative;
    perspective: 800px;
    z-index: 9998;
}

.music-note {
    position: absolute;
    width: 60px;
    height: 60px;
    top: 50%;
    left: 50%;
    margin-top: -30px;
    margin-left: -30px;
    animation: note-rotate 2s infinite linear;
}

.music-note i {
    font-size: 60px;
    color: white;
    animation: note-pulse 1.5s infinite ease-in-out;
}

.loader-text {
    color: white;
    font-size: 1.2rem;
    margin-top: 50px; /* Aumentado de 20px a 50px para separar más */
    font-weight: 500;
    letter-spacing: 1px;
    animation: text-pulse 1.5s infinite ease-in-out, fadeIn 1.5s ease-in;
    z-index: 9998;
}

.loader-circle {
    position: absolute;
    width: 120px;
    height: 120px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s infinite linear;
}

@keyframes note-rotate {
    0% {
        transform: rotate(0deg) translateY(0);
    }
    25% {
        transform: rotate(90deg) translateY(-10px);
    }
    50% {
        transform: rotate(180deg) translateY(0);
    }
    75% {
        transform: rotate(270deg) translateY(-10px);
    }
    100% {
        transform: rotate(360deg) translateY(0);
    }
}

@keyframes note-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes text-pulse {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes emoji-rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes emoji-float {
    0% {
        transform: translateX(-100px) translateY(-50px) rotate(0deg);
    }
    20% {
        transform: translateX(80px) translateY(30px) rotate(72deg);
    }
    40% {
        transform: translateX(-60px) translateY(80px) rotate(144deg);
    }
    60% {
        transform: translateX(100px) translateY(-30px) rotate(216deg);
    }
    80% {
        transform: translateX(-40px) translateY(-80px) rotate(288deg);
    }
    100% {
        transform: translateX(-100px) translateY(-50px) rotate(360deg);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
