﻿/*PARA EL MODAL DEL LOADING/SPINNER*/

/* 1. Fondo oscurecido que cubre toda la pantalla */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Fondo medio oscuro */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999; /* Asegura que esté por encima de todo */
    backdrop-filter: blur(4px); /* Efecto de desenfoque moderno */
}

/* 2. Caja contenedora central */
.loading-overlay__box {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2); /* Sombra elegante */
    text-align: center;
    max-width: 320px;
    width: 90%;
    animation: fadeInScale 0.3s ease-out;
}

/* 3. El Spinner (Círculo animado) */
.loading-overlay__spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db; /* Color principal */
    border-radius: 50%;
    margin: 0 auto 1.5rem auto;
    animation: spin 1s linear infinite;
}

/* 4. Textos pintorescos */
.loading-overlay__box strong {
    display: block;
    font-size: 1.25rem;
    color: #2c3e50;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin-bottom: 0.5rem;
}

.loading-overlay__box p {
    color: #7f8c8d;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.4;
}

/* --- Animaciones --- */

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}
