// GuerrerosCR — Main app const { useState: useStateApp, useEffect: useEffectApp } = React; function WAFloat() { const isEn = window.location.pathname.startsWith("/en"); return ( ); } const savedTheme = (() => { try { return localStorage.getItem("gc_theme") === "dark" ? "Oscuro" : "Claro"; } catch (e) { return "Claro"; } })(); const APP_DEFAULTS = /*EDITMODE-BEGIN*/{ "theme": savedTheme, "accent": "#2563EB", "showFloatingWA": true }/*EDITMODE-END*/; function App() { const isEn = window.location.pathname.startsWith("/en"); const [t, setTweak] = useTweaks(APP_DEFAULTS); useEffectApp(() => { document.documentElement.setAttribute("data-theme", t.theme === "Oscuro" ? "dark" : "light"); document.documentElement.style.setProperty("--brand", t.accent || "#2563EB"); try { localStorage.setItem("gc_theme", t.theme === "Oscuro" ? "dark" : "light"); } catch (e) {} }, [t.theme, t.accent]); return (