/* ========================================= */
/* MODALES PERSONALIZADOS                    */
/* ========================================= */

.modal-custom-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99999;
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
    animation: modalFadeIn 0.3s ease;
}

.modal-custom-overlay.active {
    display: flex;
}

.modal-custom-box {
    background: white;
    border-radius: 1.5rem;
    max-width: 500px;
    width: 90%;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

/* Icono del modal */
.modal-custom-icon {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 1rem;
}

.modal-custom-icon .success { color: #22c55e; }
.modal-custom-icon .error { color: #ef4444; }
.modal-custom-icon .warning { color: #f59e0b; }
.modal-custom-icon .info { color: var(--primary-blue); }

/* Título */
.modal-custom-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    text-align: center;
    color: #1a1a2e;
    margin-bottom: 0.5rem;
}

/* Mensaje */
.modal-custom-message {
    text-align: center;
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Botones */
.modal-custom-buttons {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.modal-custom-btn {
    padding: 0.6rem 1.8rem;
    border: none;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
}

.modal-custom-btn:hover {
    transform: translateY(-2px);
}

.modal-custom-btn.primary {
    background: var(--primary-blue);
    color: white;
}

.modal-custom-btn.primary:hover {
    background: #003d66;
    box-shadow: 0 4px 15px rgba(0, 84, 145, 0.3);
}

.modal-custom-btn.success {
    background: #22c55e;
    color: white;
}

.modal-custom-btn.success:hover {
    background: #16a34a;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.modal-custom-btn.danger {
    background: #ef4444;
    color: white;
}

.modal-custom-btn.danger:hover {
    background: #dc2626;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.modal-custom-btn.warning {
    background: #f59e0b;
    color: white;
}

.modal-custom-btn.warning:hover {
    background: #d97706;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.modal-custom-btn.secondary {
    background: #e2e8f0;
    color: #4a5568;
}

.modal-custom-btn.secondary:hover {
    background: #cbd5e1;
}

/* Animaciones */
@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-30px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 480px) {
    .modal-custom-box {
        padding: 1.5rem;
        width: 95%;
    }
    
    .modal-custom-icon {
        font-size: 3rem;
    }
    
    .modal-custom-title {
        font-size: 1.1rem;
    }
    
    .modal-custom-message {
        font-size: 0.85rem;
    }
    
    .modal-custom-btn {
        min-width: 80px;
        padding: 0.5rem 1.2rem;
        font-size: 0.8rem;
    }
}