/* Modal de Error */
.error-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.2s ease-in-out;
}

.error-modal-overlay.show {
    display: flex;
}

.error-modal {
    background: white;
    border-radius: 12px;
    padding: 0;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease-out;
    position: relative;
}

.error-modal-header {
    background: #dc3545;
    color: white;
    padding: 15px 20px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.error-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.error-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.error-modal-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.error-modal-body {
    padding: 20px;
    color: #333;
    font-size: 15px;
    line-height: 1.5;
}

.error-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.error-modal-button {
    background: #dc3545;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
    flex: 1;
}

.error-modal-button:hover {
    background: #c82333;
}

.error-modal-button-whatsapp {
    background: #25D366;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.error-modal-button-whatsapp:hover {
    background: #20BA5A;
}

/* Modal de éxito (opcional) */
.success-modal .error-modal-header {
    background: #28a745;
}

.success-modal .error-modal-button {
    background: #28a745;
}

.success-modal .error-modal-button:hover {
    background: #218838;
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .error-modal {
        max-width: 90%;
        width: 90%;
    }
    
    .error-modal-header h3 {
        font-size: 16px;
    }
    
    .error-modal-body {
        padding: 15px;
        font-size: 14px;
    }
}

