/* =====================================================================
   AURAL — Page Transitions
   Overlay con logo palpitando que aparece al navegar entre páginas internas
   ===================================================================== */

#aural-page-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 28px;
    background: linear-gradient(135deg,
                #1a0533 0%,
                #2d0a5c 35%,
                #16124a 65%,
                #0a2340 100%);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity .42s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0s linear .42s;
}

#aural-page-loader.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity .35s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0s linear 0s;
}

/* Halo luminoso de fondo */
#aural-page-loader::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle,
                rgba(245, 133, 31, 0.20) 0%,
                rgba(232, 42, 180, 0.12) 35%,
                transparent 70%);
    filter: blur(80px);
    animation: aural-loader-halo 3.5s ease-in-out infinite;
}

#aural-page-loader__logo {
    position: relative;
    width: 180px;
    max-width: 60vw;
    height: auto;
    z-index: 2;
    animation: aural-loader-pulse 1.4s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(245, 133, 31, 0.45))
            drop-shadow(0 0 60px rgba(232, 42, 180, 0.30));
}

#aural-page-loader__bar {
    position: relative;
    z-index: 2;
    width: 220px;
    max-width: 60vw;
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    overflow: hidden;
}

#aural-page-loader__bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -40%;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg,
                transparent 0%,
                #f5851f 30%,
                #e82ab4 60%,
                #06b6d4 100%);
    border-radius: 2px;
    animation: aural-loader-progress 1.2s linear infinite;
    box-shadow: 0 0 14px rgba(245, 133, 31, 0.5);
}

#aural-page-loader__text {
    position: relative;
    z-index: 2;
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
}

@keyframes aural-loader-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.08);
        opacity: 0.85;
    }
}

@keyframes aural-loader-progress {
    0%   { left: -40%; }
    100% { left: 100%; }
}

@keyframes aural-loader-halo {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.85;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.15);
        opacity: 1;
    }
}

/* ---- Page enter: contenido entra con un fade desde abajo al cargar ---- */
body.aural-page-entering main {
    opacity: 0;
    transform: translateY(20px);
}
body.aural-page-entered main {
    opacity: 1;
    transform: translateY(0);
    transition: opacity .55s cubic-bezier(0.16, 1, 0.3, 1),
                transform .55s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reduce motion: simplificar */
@media (prefers-reduced-motion: reduce) {
    #aural-page-loader__logo,
    #aural-page-loader::before,
    #aural-page-loader__bar::after {
        animation: none !important;
    }
    body.aural-page-entering main,
    body.aural-page-entered main {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}
