/* Fondo difuminado */
.simple-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    z-index: 1000;
}

/* Cuando el modal está activo */
.simple-modal.visible {
    opacity: 1;
    visibility: visible;
}

/* Fondo borroso */
.simple-modal-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
}

/* Caja del modal */
.simple-modal-dialog {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 90%;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}


.simple-modal-dialog div {
    max-height: 80vh;
    overflow-y: auto;
    text-align: center;

}

/* Efecto al mostrar */
.simple-modal.visible .simple-modal-dialog {
    transform: scale(1);
}

/* Botón de cierre */
.simple-modal-close {
    position: absolute;
    top: 0;
    right: 3px;
    border: none;
    background: transparent;
    font-size: 20px;
    cursor: pointer;
}

/* Ajuste para móviles */
@media (max-width: 600px) {
    .simple-modal-dialog {
        width: 90%;
        max-height: 70vh;
        padding: 15px;
    }

    .hide-on-mobile {
        display: none;
    }
}

@media (min-width: 600px) {
    .hide-on-desktop {
        display: none;
    }
}