.modal-overlay {

    position: fixed;

    inset: 0;

    background: rgba(0, 0, 0, .45);

    display: none;

    align-items: center;
    justify-content: center;

    z-index: 99999; /* <<< para estar por encima del navbar*/
}

.modal-box {

    width: 92%;
    max-width: 420px;

    background: white;

    border-radius: 18px;

    padding: 24px;

    box-sizing: border-box;

    animation: modalShow .15s ease;
}

.modal-box h3 {

    margin-top: 0;
    margin-bottom: 12px;
}

.modal-box p {

    color: #666;

    line-height: 1.5;
}

.modal-actions {

    display: flex;

    justify-content: flex-end;

    gap: 12px;

    margin-top: 24px;
}

.modal-cancel,
.modal-confirm {

    border: none;

    padding: 12px 16px;

    border-radius: 10px;

    cursor: pointer;

    font-weight: 700;
}

.modal-cancel {

    background: #eee;
}

.modal-confirm {

    background: #111;

    color: white;
}

/* REF modal de eliminar cuenta */
.modal-confirm:disabled {

    opacity: .5;

    cursor: not-allowed;
}

.modal-danger {

    background: #C62828;

    color: white;
}



.modal-box input[type="text"] {

    width: 100%;

    margin-top: 10px;

    padding: 12px;

    border: 1px solid #ddd;

    border-radius: 10px;

    box-sizing: border-box;

    font-size: 14px;
}

.modal-box input[type="text"]:focus {

    outline: none;

    border-color: #999;
}

/* ---------------------------- */

@keyframes modalShow {

    from {

        opacity: 0;
        transform: scale(.96);
    }

    to {

        opacity: 1;
        transform: scale(1);
    }
}