.blockui {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.blockui-content {
    background: white;
    padding: 20px;
    border-radius: 5px;
    color: #333;
}

/* Clase para elementos bloqueables */
.bloqueable {
    position: relative; /* Necesario para el overlay */
}

/* Overlay de bloqueo */
.block-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(2px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 100;
    border-radius: inherit; /* Hereda esquinas redondeadas */
}

/* Opcional: Solo carga si se usa spinner */
.block-spinner {
    display: none; /* Oculta por defecto */
}

.block-overlay .block-spinner {
    display: block; /* Muestra solo cuando está en el overlay */
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

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