/* ==================== MODERN SPIRITUAL PRELOADER ==================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0f172a; /* Deep Navy */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    transition: opacity 0.8s cubic-bezier(0.65, 0, 0.35, 1), visibility 0.8s;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

/* Background Atmosphere */
.preloader-bg-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.2) 0%, rgba(15, 23, 42, 0) 70%);
    border-radius: 50%;
    filter: blur(60px);
    animation: pulseGlow 4s infinite ease-in-out;
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.5); opacity: 0.8; }
}

/* Central Icon / Logo Container */
.preloader-content {
    position: relative;
    text-align: center;
    z-index: 10;
}

.preloader-dove {
    width: 280px; /* Tamaño adecuado para las alas extendidas */
    height: auto;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.4));
    margin-bottom: 30px;
    animation: floatingIcon 3s infinite ease-in-out;
}

@keyframes floatingIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Progress Bar Container */
.loader-wrapper {
    width: 280px;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    margin-bottom: 20px;
    backdrop-filter: blur(5px);
}

.loader-bar {
    position: absolute;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #2563eb, #60a5fa, #ffffff);
    background-size: 200% 100%;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.6);
    transition: width 0.1s linear;
}

/* Loading Messages */
.loader-status {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    height: 20px;
}

.loader-percentage {
    position: absolute;
    right: 0;
    top: -25px;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
}
