.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); 
    display: none; 
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(5px); 
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 450px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    text-align: center;
    animation: bounceIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.modal-header {
    padding: 30px 20px;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
}

.modal-header i {
    font-size: 3rem;
    margin-bottom: 10px;
}

.modal-body {
    padding: 25px;
}

.modal-body p {
    color: #555;
    font-size: 1.05rem;
    line-height: 1.6;
}

.modal-footer {
    padding: 20px;
    display: flex;
    gap: 15px;
    justify-content: center;
    background: #f8f9fa;
}

/* Botones del Modal */
.btn-modal {
    padding: 12px 25px;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.btn-modal:active {
    transform: scale(0.95);
}

.btn-secundario {
    background: #bdc3c7;
    color: #2c3e50;
}

.btn-secundario:hover {
    background: #95a5a6;
}

.btn-recuperar {
    background: #35c2c4;
    color: white;
}

.btn-recuperar:hover {
    background: #2dafb1;
}

@keyframes bounceIn {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}