﻿:root {
    --brand-orange: #FF4E00; /* Aprox del isotipo nave  */
    --brand-gray-dark: #555555; /* Gris de las letras [cite: 44] */
    --brand-gray-light: #E0E0E0;
    --bg-color: #F4F4F4;
}

.loader-rocket-base {
    position: relative;
    width: 160px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rocket-ripple {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--brand-gray-light);
    opacity: 0;
    z-index: 1;
    animation: ripple-effect 2s linear infinite;
}

    .rocket-ripple:nth-child(2) {
        animation-delay: 0.6s;
    }

.helice {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-left-color: var(--brand-orange);
    border-right-color: var(--brand-gray-light);
    animation: spin 1s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.helice-2 {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 0.5px solid transparent;
    border-left-width: 3px;
    border-left-color: var(--primary-color);
    border-right-width: 3px;
    border-right-color: var(--primary-color);
    animation: spin 1s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes spin-reverse {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(-360deg);
    }
}

@keyframes ripple-effect {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
        border-width: 4px;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
        border-width: 0px;
    }
}

.loader-modal .modal-dialog {
    margin: 0;
    max-width: 100vw;
    height: 100vh;
}

.loader-modal .modal-content.loader-shell {
    position: relative;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Zona central */
.loader-center-zone {
    position: relative;
    width: min(10vw, 720px);
    height: min(10vw, 720px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Fondo degradado alrededor del loader */
.loader-radial-bg {
    position: absolute;
    width: 400px;
    height: 400px;
    top: -160px;
    border-radius: 50%;
    pointer-events: none;
    /* background: radial-gradient( circle at center, rgba(255,255,255,1) 0%, rgba(255,255,255,0.98) 12%, rgba(244,248,255,0.95) 28%, rgba(232,239,250,0.78) 48%, rgba(221,231,246,0.45) 64%, rgba(221,231,246,0.12) 78%, rgba(221,231,246,0.00) 100% );*/
    transform: scale(0.25);
    /*animation: pulseCircle 2.1s ease-out infinite;*/
    filter: blur(50px);
}

/* Halo extra para dar protagonismo */
.loader-radial-halo {
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient( circle at center, rgba(0, 0, 0, 0.16) 0%, rgba(0, 0, 0, 0.10) 28%, rgba(0, 0, 0, 0.05) 46%, rgba(0, 0, 0, 0.00) 70% );
    filter: blur(20px);
}

/* Contenedor de la animación */
.loader-animation-wrap {
    position: relative;
    z-index: 2;
    width: 220px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Loader circular de ejemplo */
.circle-loader {
    position: relative;
    width: 72px;
    height: 72px;
}

    .circle-loader span {
        position: absolute;
        inset: 0;
        border-radius: 50%;
        border: 3px solid rgba(88, 116, 180, 0.28);
        background: radial-gradient(circle, rgba(255,255,255,0.75) 0%, rgba(255,255,255,0.10) 70%, rgba(255,255,255,0) 100%);
        animation: pulseCircle 2.1s ease-out infinite;
        box-shadow: 0 0 24px rgba(90, 120, 190, 0.08);
    }

        .circle-loader span:nth-child(2) {
            animation-delay: 0.7s;
        }

        .circle-loader span:nth-child(3) {
            animation-delay: 1.4s;
        }

@keyframes pulseCircle {
    0% {
        transform: scale(0.18);
        opacity: 0.95;
    }

    60% {
        opacity: 0.42;
    }

    100% {
        transform: scale(2.9);
        opacity: 0;
    }
}

/* Texto */
.loader-text {
    position: relative;
    z-index: 2;
    margin-top: 20px;
    font-size: 0.95rem;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: rgba(50, 64, 92, 0.72);
}

/* Opcional: suavizar lo que está detrás */
body.loading-page #appContent {
    filter: blur(4px) brightness(0.97) saturate(0.88);
    transform: scale(0.995);
    transition: filter 180ms ease, transform 180ms ease;
}
