#processing-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none; 
    align-items: center;
    justify-content: center;
    flex-direction: column;
    font-family: 'Open Sans', sans-serif;
    z-index: 9999;

    /* Estado final deseado */
    background-color: rgba(255, 255, 255, 0.75);
    opacity: 1;

    /* Animación automática */
    animation: overlayFadeIn 0.6s ease forwards;
}

@keyframes overlayFadeIn {
    from {
        background-color: rgba(255, 255, 255, 0);
        opacity: 0;
    }
    to {
        background-color: rgba(255, 255, 255, 0.75);
        opacity: 1;
    }
}


.overlay-content {
    text-align: center;
    color: #000000;
    border: 1px solid #a3a5a7;
    padding: 25px 35px;
    border-radius: 12px;
    background-color: rgb(255, 255, 255);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

@media (max-width: 600px) {
    .overlay-content {
        padding: 20px;
        width: 90%;
    }
}

/* Spinner fluido con profundidad y doble rotación */
.spinner {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 30px auto 20px;
    perspective: 1000px;
}

/* Anillo exterior */
.spinner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid transparent;
    border-top: 6px solid #287eff;
    border-right: 6px solid #287eff;
    box-shadow: 0 0 8px rgba(40, 126, 255, 0.4);
    animation: spin-clockwise 1.2s ease-in-out infinite;
    z-index: 2;
}

/* Núcleo interior */
.spinner::after {
    content: "";
    position: absolute;
    top: 18%;
    left: 18%;
    width: 64%;
    height: 64%;
    border-radius: 50%;
    border: 1px solid transparent;
    border-bottom: 4px solid #287effd0;
    border-left: 4px solid #287effd0;
    background-color: rgba(255, 255, 255, 0.03);
    box-shadow: inset 0 0 6px rgba(255, 255, 255, 0.12);
    animation: spin-counter 1.8s ease-in-out infinite;
    z-index: 1;
}

@keyframes spin-clockwise {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes spin-counter {
    0%   { transform: rotate(360deg); }
    100% { transform: rotate(0deg); }
}
