// Registration / onboarding — full-bleed editorial intro function RegistroScreen({ onSubmit }) { const T = window.T; const { Icon } = window; const [nombre, setNombre] = React.useState(''); const [zona, setZona] = React.useState(''); const [telefono, setTelefono] = React.useState(''); const [touched, setTouched] = React.useState({}); const [step, setStep] = React.useState(0); // 0 = intro, 1 = form const nombreValid = nombre.trim().split(/\s+/).length >= 2; const telValid = /^0(412|414|416|424|426)\d{7}$/.test(telefono); const zonaValid = !!zona; const canSubmit = nombreValid && telValid && zonaValid; const errs = { nombre: touched.nombre && !nombreValid ? 'Ingresa nombre y apellido' : '', telefono: touched.telefono && !telValid ? 'Formato: 04121234567' : '', zona: touched.zona && !zonaValid ? 'Selecciona una zona' : '', }; const label = (t) => (