/* Contenedor del spinner (oculto por defecto) */
#loadingSpinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5); /* Fondo semitransparente */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    visibility: hidden; /* Oculto inicialmente */
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

/* Estilo del spinner */
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Animación de giro */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Mostrar spinner */
#loadingSpinner.active {
    visibility: visible;
    opacity: 1;
}
