/* Top navigation bar — fixed, with language toggle and CTA */ const Nav = ({ lang, setLang, t }) => { const [scrolled, setScrolled] = React.useState(false); const [open, setOpen] = React.useState(false); React.useEffect(() => { const onScroll = () => setScrolled(window.scrollY > 24); onScroll(); window.addEventListener('scroll', onScroll, { passive: true }); return () => window.removeEventListener('scroll', onScroll); }, []); const items = [ { href: '#nosotros', label: t('Quiénes somos', 'About') }, { href: '#fabricamos', label: t('Lo que fabricamos', 'What we build') }, { href: '#capacidades', label: t('Capacidades', 'Capabilities') }, { href: '#portafolio', label: t('Portafolio', 'Portfolio') }, { href: '#proceso', label: t('Proceso', 'Process') }, { href: '#contacto', label: t('Contacto', 'Contact') }, ]; return (
{t('Cotizar', 'Get a quote')}
{open && (
{items.map((it) => ( setOpen(false)} style={{ fontSize: 18, color: '#F4F2EE' }}> {it.label} ))}
)}
); }; window.Nav = Nav;