/* Modal de Loading */
.loading-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
}

.loading-content {
    background: #21242c;
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid #363b45;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    text-align: center;
    min-width: 340px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

/* Spinner Moderno */
.spinner-modern {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.05);
    border-top: 4px solid #2f81f7;
    border-radius: 50%;
    animation: spin 1s cubic-bezier(0.5, 0.1, 0.5, 0.9) infinite;
    filter: drop-shadow(0 0 8px rgba(47, 129, 247, 0.5));
}

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

.loader-textB h3 {
    color: #ffffff;
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.loader-textB p {
    color: #8b949e;
    font-size: 0.95rem;
    font-weight: 400;
}

/* Base modal transition hints */
.loading-modal[style*="display: none"] {
    opacity: 0;
    pointer-events: none;
}