// StorePicker — small modal with the real iOS + Android store buttons. // Used by "Descargar gratis" CTAs throughout the site. const { motion: storeMotion, AnimatePresence: StoreAnim } = window.Motion; const { useState: storeUseState, useEffect: storeUseEffect } = React; const STORE_LINKS = { ios: 'https://apps.apple.com/ar/app/wuclock/id6755618949', android: 'https://play.google.com/store/apps/details?id=com.agustin.wuclockv2', }; // Global toggle — call window.openStorePicker() from anywhere function openStorePicker() { window.dispatchEvent(new CustomEvent('wu:open-store-picker')); } function StorePicker() { const [open, setOpen] = storeUseState(false); storeUseEffect(() => { const onOpen = () => setOpen(true); window.addEventListener('wu:open-store-picker', onOpen); return () => window.removeEventListener('wu:open-store-picker', onOpen); }, []); storeUseEffect(() => { if (!open) return; const onKey = (e) => { if (e.key === 'Escape') setOpen(false); }; window.addEventListener('keydown', onKey); document.body.style.overflow = 'hidden'; return () => { window.removeEventListener('keydown', onKey); document.body.style.overflow = ''; }; }, [open]); return ( {open && ( setOpen(false)} className="fixed inset-0 z-[100] flex items-center justify-center px-4" style={{ background: 'rgba(0,0,0,0.72)', backdropFilter: 'blur(20px)' }} > e.stopPropagation()} className="liquid-glass-strong relative w-full max-w-md p-8 md:p-10 text-center" style={{ borderRadius: '1.75rem' }} > {/* Close */}

Descargar

Gratis para iOS
y Android.

Más energía, mejor sueño y rituales de 8 minutos — personalizados para tu cuerpo.

Compatible con iOS 16+ · Android 10+

)}
); } // Pretty App Store / Play Store buttons function StoreButton({ kind, href, variant = 'solid' }) { const isIos = kind === 'ios'; return ( {isIos ? : } {isIos ? 'Descargar en el' : 'Disponible en'} {isIos ? 'App Store' : 'Google Play'} ); } function AppleLogo() { return ( ); } function PlayStoreLogo() { return ( ); } Object.assign(window, { StorePicker, StoreButton, openStorePicker, STORE_LINKS });