/* Estilos para el modal de éxito */
.modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    width: 90%;
    max-width: 500px;
    animation: modalSlideIn 0.4s ease;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 9998;
    animation: overlayFadeIn 0.3s ease;
}

.modal-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    color: white;
    position: relative;
}

.modal-header {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.success-icon {
    font-size: 80px;
    margin-bottom: 15px;
    animation: iconBounce 0.6s ease;
}

.success-icon i {
    background: rgba(255, 255, 255, 0.2);
    padding: 20px;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-header h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.modal-body {
    padding: 30px 25px;
    text-align: center;
}

.modal-body p {
    margin: 10px 0;
    font-size: 16px;
    line-height: 1.6;
}

.modal-body p:first-child {
    font-size: 18px;
    font-weight: 500;
}

.contact-info-modal {
    margin-top: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.phones-modal {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.phones-modal a {
    color: white;
    text-decoration: none;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.phones-modal a:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateX(5px);
}

.modal-footer {
    padding: 20px;
    background: rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
}

#closeModalBtn {
    background: white;
    color: #667eea;
    border: none;
    padding: 12px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

#closeModalBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    background: #f8f9fa;
}

/* Loader para el botón */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.8;
}

.btn-loading i {
    animation: spin 1s linear infinite;
}

/* Animaciones */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@keyframes overlayFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes iconBounce {
    0% { transform: scale(0.3); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .modal {
        width: 95%;
    }
    
    .modal-header h2 {
        font-size: 24px;
    }
    
    .success-icon {
        font-size: 60px;
    }
    
    .phones-modal a {
        font-size: 14px;
    }
}
