// Shared layout: head + shell with Nav + Footer + WhatsApp. // Each page calls: renderPage(, { current: 'nosotras' }) function Shell({ children, current }) { return ( <> {children} > ); } function renderPage(content, opts = {}) { ReactDOM.createRoot(document.getElementById('root')).render( {content} ); // reveal-on-scroll const io = new IntersectionObserver((entries) => { entries.forEach(e => { if (e.isIntersecting) e.target.classList.add('in'); }); }, { threshold: 0.12 }); setTimeout(() => { document.querySelectorAll('.reveal').forEach(el => io.observe(el)); }, 100); } window.Shell = Shell; window.renderPage = renderPage;