/* Loader overlay para envíos de formulario con archivos grandes */
.form-upload-loader {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2147483000; /* por encima de cualquier modal */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.form-upload-loader.active {
    opacity: 1;
    pointer-events: all;
}

.form-upload-loader .loader-card {
    background: #fff;
    padding: 24px 28px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 260px;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.form-upload-loader .spinner {
    width: 28px;
    height: 28px;
    border: 3px solid #e5e7eb;
    border-top-color: #111;
    border-radius: 50%;
    animation: uploadSpin 0.8s linear infinite;
}

@keyframes uploadSpin {
    to { transform: rotate(360deg); }
}

.form-upload-loader .text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #111;
    font-size: 15px;
    line-height: 1.4;
}

.form-upload-loader .text .hint {
    color: #6b7280;
    font-size: 13px;
}