/** Shared inner-page header + footer for subpages (Servicios, Contacto). Loads after components.jsx which provides Icon, Button, Eyebrow. */ function PageHeader({ activePage }) { const [scrolled, setScrolled] = React.useState(false); const [menuOpen, setMenuOpen] = React.useState(false); React.useEffect(() => { const onScroll = () => setScrolled(window.scrollY > 32); window.addEventListener("scroll", onScroll, { passive: true }); onScroll(); return () => window.removeEventListener("scroll", onScroll); }, []); const links = [ { href: "index.html", label: "Inicio", id: "inicio" }, { href: "Servicios.html", label: "Servicios", id: "servicios" }, { href: "index.html#historia", label: "Historia", id: "historia" }, { href: "index.html#galeria", label: "Galería", id: "galeria" }, { href: "Contacto.html", label: "Contacto", id: "contacto" }, ]; return (
Los Endrinos
Los Endrinos Apartamento rural · Jaén
Reservar estancia
); } function PageFooter() { return ( ); } /* ── Page hero (shorter, for inner pages) ────────────────── */ function PageHero({ eyebrow, title, subtitle, image }) { return (
{eyebrow}

{title}

{subtitle &&

{subtitle}

}
); } Object.assign(window, { PageHeader, PageFooter, PageHero });