// pages.jsx — Subpages: Programas, Nosotros, Matrícula, Contacto. // Reuses Nav, Footer, Ribbon, SectionHeader, PALETTES from app.jsx + sections.jsx. const { useState: useStateP } = React; function submitMatricula(form, p, setStep) { const C = window.WIPBOT_CONTENT; const endpoint = (C && C.forms && C.forms.matriculaEndpoint) || ''; if (!endpoint || endpoint.includes('REEMPLAZA')) { alert('⚠️ Formulario no configurado todavía. Por favor contacta por WhatsApp o email.'); return; } fetch(endpoint, { method: 'POST', headers: { 'Content-Type': 'application/json', 'Accept': 'application/json' }, body: JSON.stringify({ ...form, _subject: 'Nueva solicitud de matrícula - Wipbot' }) }).then(function(r) { if (r.ok) { setStep(99); // success state } else { alert('Hubo un error al enviar. Por favor contacta por WhatsApp.'); } }).catch(function() { alert('Sin conexión. Por favor contacta por WhatsApp.'); }); } function PageShell({ p, showRibbon, children }) { React.useEffect(() => { document.body.style.background = p.bg; document.body.style.color = p.ink; }, [p]); return (
{subtitle}
}{v.v}
{text}
Te contactaremos en menos de 24h para confirmar la plaza. Si tienes prisa, escríbenos por WhatsApp.
Ir al WhatsApp →Te llamaremos en 24h para confirmar plaza y resolver cualquier duda.
Te respondemos en menos de 24h en horario laboral.
{subtitle}
{cta} →