/* Popup de Confirmación de Pago */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 62, 80, 0.8);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.popup-container { background: #fff; border-radius: 16px; padding: 1.6rem; max-width: 560px; width: 92%; max-height: 90vh; overflow-y: auto; box-shadow: 0 18px 50px rgba(0,0,0,0.25); position: relative; animation: slideIn 0.35s ease-out; }

.popup-header {
    text-align: center;
    margin-bottom: 2rem;
}

.popup-header h2 { color: var(--color-text-dark); font-family: 'Quicksand', sans-serif; font-weight: 700; font-size: 1.4rem; margin: 0 0 0.4rem 0; }

.popup-header .success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #50E3C2, #4ECDC4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 8px 25px rgba(80, 227, 194, 0.3);
}

.popup-header .success-icon i {
    font-size: 2.5rem;
    color: white;
}

.popup-content {
    margin-bottom: 2rem;
}

.payment-info {
    background: var(--color-secondary-bg);
    border: 2px solid var(--color-accent-2);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.payment-info h3 {
    color: var(--color-text-dark);
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    margin: 0 0 1rem 0;
    text-align: center;
}

.price-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
}

.price-label {
    font-weight: 600;
    color: var(--color-text-dark);
}

.price-value { font-size: 1.25rem; font-weight: 800; color: #0a7c3a; }

.payment-details {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.2rem;
    margin-top: 1rem;
    border-left: 4px solid var(--color-accent-1);
}

.payment-details h4 {
    color: var(--color-text-dark);
    font-weight: 600;
    margin: 0 0 0.8rem 0;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.payment-details h4 i {
    color: var(--color-accent-1);
    font-size: 1.1rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 500;
    color: #666;
}

.detail-value {
    font-weight: 600;
    color: var(--color-text-dark);
}

.detail-value.status-success {
    color: #28a745;
    font-weight: 700;
}

.detail-value.status-pending {
    color: #ffc107;
    font-weight: 700;
}

.detail-value.status-info {
    color: var(--color-accent-1);
    font-weight: 700;
}

.popup-actions { display:flex; gap:0.8rem; justify-content:center; flex-wrap:wrap; }

.popup-btn { padding:0.7rem 1rem; border:none; border-radius:10px; font-weight:700; font-size:0.95rem; cursor:pointer; transition: all 0.3s ease; text-decoration:none; display:inline-flex; align-items:center; gap:0.5rem; min-width:130px; justify-content:center; }

.popup-btn-primary {
    background: linear-gradient(135deg, #50E3C2, #4ECDC4);
    color: white;
    box-shadow: 0 4px 15px rgba(80, 227, 194, 0.3);
}

.popup-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(80, 227, 194, 0.4);
}

.popup-btn-secondary {
    background: #f8f9fa;
    color: var(--color-text-dark);
    border: 2px solid #e0e0e0;
}

.popup-btn-secondary:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

.popup-btn-whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.popup-btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.popup-close:hover {
    background: #f0f0f0;
    color: var(--color-text-dark);
}

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .popup-container {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }
    
    .popup-header h2 {
        font-size: 1.5rem;
    }
    
    .popup-actions {
        flex-direction: column;
    }
    
    .popup-btn {
        width: 100%;
    }
    
    .price-display {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
} 