const NAV_LINKS=[{href:'/',label:'Inicio'},{href:'/rotulacion-3d/',label:'Rotulaci\u00f3n 3D'},{href:'/insumos/',label:'Insumos'},{href:'/cursos/',label:'Cursos'},{href:'/galeria/',label:'Galer\u00eda'},{href:'/sobre/',label:'Nosotros'},{href:'/contacto/',label:'Contacto'}];
const getCartCount=()=>{try{return JSON.parse(localStorage.getItem('aktiva-cart')||'[]').length}catch(e){return 0}};
const Navbar=()=>{const[m,sm]=useState(false);const[s,ss]=useState(false);const[cc,scc]=useState(getCartCount());useEffect(()=>{const o=()=>ss(window.scrollY>40);window.addEventListener('scroll',o,{passive:true});return()=>window.removeEventListener('scroll',o)},[]);useEffect(()=>{const i=setInterval(()=>scc(getCartCount()),1000);return()=>clearInterval(i)},[]);return React.createElement(React.Fragment,null,React.createElement("nav",{className:"fixed top-0 left-0 right-0 z-50 transition-all duration-500 "+(s?'nav-blur-bg':'bg-transparent')},React.createElement("div",{className:"max-w-7xl mx-auto px-6 py-5 flex items-center justify-between"},React.createElement("a",{href:"/",className:"flex items-center no-underline"},React.createElement("img",{src:"https://activamedios.com/wp-content/uploads/2026/06/mqtrkgph-image.png",alt:"Activa Medios",style:{height:40,width:'auto',flexShrink:0,filter:'brightness(0) invert(1)'}})),React.createElement("div",{className:"hidden md:flex items-center liquid-glass rounded-full px-1",style:{borderRadius:'999px'}},NAV_LINKS.map(l=>React.createElement("a",{key:l.href,href:l.href,className:"px-5 py-2.5 text-xs font-medium tracking-[0.08em] no-underline transition-colors uppercase "+(window.location.pathname===l.href?'text-white':'text-white/70 hover:text-white')},l.label))),React.createElement("div",{className:"hidden md:flex items-center gap-3"},React.createElement("a",{href:"/carrito-compras/",className:"relative inline-flex items-center justify-center w-11 h-11 text-white no-underline"},React.createElement("i",{"data-lucide":"shopping-cart",style:{width:18,height:18}}),cc>0&&React.createElement("span",{className:"cart-badge"},cc)),React.createElement("a",{href:"/cotizacion-3d/",className:"inline-flex items-center gap-2 liquid-glass text-white text-xs font-semibold tracking-[0.06em] uppercase px-6 py-2.5 rounded-full no-underline cta-btn"},React.createElement("i",{"data-lucide":"file-text",style:{width:14,height:14}}),"COTIZAR AHORA")),React.createElement("button",{onClick:()=>sm(!m),className:"md:hidden w-11 h-11 flex items-center justify-center text-white/80 rounded-full liquid-glass","aria-label":"Men\u00fa"},React.createElement("i",{"data-lucide":m?'x':'menu',style:{width:22,height:22}}))),m&&React.createElement("div",{className:"md:hidden nav-blur-bg border-t border-white/5",style:{animation:'fadeIn 0.2s ease-out'}},React.createElement("div",{className:"px-6 py-4 flex flex-col gap-2"},NAV_LINKS.map(l=>React.createElement("a",{key:l.href,href:l.href,onClick:()=>sm(false),className:"py-3 text-sm font-medium tracking-[0.06em] no-underline transition-colors uppercase "+(window.location.pathname===l.href?'text-white':'text-white/70 hover:text-white')},l.label)),React.createElement("a",{href:"/carrito-compras/",className:"py-3 text-sm font-medium tracking-[0.06em] text-white no-underline uppercase flex items-center gap-2"},React.createElement("i",{"data-lucide":"shopping-cart",style:{width:16,height:16}}),"Carrito (",cc,")"),React.createElement("a",{href:"/cotizacion-3d/",onClick:()=>sm(false),className:"mt-2 text-center liquid-glass text-white text-sm font-semibold tracking-[0.06em] uppercase py-3 rounded-xl no-underline"},"COTIZAR AHORA")))))};