/* global React, Reveal */ const { useState: coUseState } = React; function Contact({ setRoute }) { const [form, setForm] = coUseState({ name: '', company: '', email: '', phone: '', budget: '—', service: [], message: '' }); const [sent, setSent] = coUseState(false); const services = ['Estrategia', 'SEO', 'Campañas', 'E-Commerce', 'Branding', 'Desarrollo Web']; const budgets = ['< USD 5K', 'USD 5K–15K', 'USD 15K–40K', 'USD 40K+', 'No sé aún']; const ci = (window.GM_CONFIG && window.GM_CONFIG.contact) ? window.GM_CONFIG.contact : {}; const email = ci.email || 'hola@growthmasters.digital'; const phone = ci.phone || '+57 305 260 4847'; const phoneRaw = ci.phone_raw || '+573052604847'; const whatsapp = ci.whatsapp || '+573052604847'; const waMessage = ci.whatsapp_message || 'Hola, quiero conocer más sobre los servicios de Growth Masters.'; const city = ci.city || 'Bogotá, Colombia'; const coverage = ci.coverage || 'Servimos a toda Latinoamérica'; const responseTime = ci.response_time || '< 24 horas hábiles'; const waUrl = 'https://wa.me/' + whatsapp.replace(/[^0-9]/g, '') + '?text=' + encodeURIComponent(waMessage); const toggle = (s) => setForm(f => ({ ...f, service: f.service.includes(s) ? f.service.filter(x => x !== s) : [...f.service, s] })); const submit = async (e) => { e.preventDefault(); try { if (window.GM_CONFIG && window.GM_CONFIG.apiRoot) { await fetch(window.GM_CONFIG.apiRoot + 'contact', { method: 'POST', headers: { 'Content-Type': 'application/json', 'X-WP-Nonce': window.GM_CONFIG.nonce }, body: JSON.stringify(form), }); } } catch (err) {} setSent(true); }; return (
Contacto · agenda una llamada

Hablemos de
tu crecimiento.

Cuéntanos en qué estás. Un consultor senior te responde en menos de 24 horas. Primera llamada de 30 minutos gratis.

{!sent ? (
setForm({ ...form, name: e.target.value })} placeholder="María Rodríguez" />
setForm({ ...form, company: e.target.value })} placeholder="Acme S.A." />
setForm({ ...form, email: e.target.value })} placeholder="maria@acme.com" />
setForm({ ...form, phone: e.target.value })} placeholder="+57 300 000 0000" />
{services.map(s => ( ))}
{budgets.map(b => ( ))}