var __gh = require("react").createElement, __gf = require("react").Fragment; var __create=Object.create;var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty;var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})},__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to};var __toESM=(mod,isNodeMode,target)=>(target=mod!=null?__create(__getProtoOf(mod)):{},__copyProps(isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target,mod)),__toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod);var stdin_exports={};__export(stdin_exports,{default:()=>stdin_default,featureConfig:()=>featureConfig});module.exports=__toCommonJS(stdin_exports);var dataSources=[{key:"productos",table:"ecommerce__productos",access:["public:read"]}];var automations=[{name:"precios_carrito",description:"Precio de cada linea del carrito: la formula vive aqui, no en la web",public:!0},{name:"crear_pedido",description:"Crea un pedido de reserva y devuelve el importe a cobrar",public:!0},{name:"validar_cupon",description:"Valida un c\xF3digo de descuento contra el subtotal",public:!0},{name:"registro_cliente",description:"Registra una cuenta de cliente",public:!0},{name:"login_cliente",description:"Inicia sesi\xF3n de cliente",public:!0},{name:"mis_pedidos",description:"Pedidos del cliente autenticado",public:!0},{name:"cancelar_pedido",description:"Cancela un pedido pendiente no pagado (abandono de checkout)",public:!0},{name:"recuperar_password",description:"Env\xEDa email con enlace de recuperaci\xF3n de contrase\xF1a",public:!0},{name:"reset_password",description:"Restablece la contrase\xF1a con token de recuperaci\xF3n",public:!0},{name:"mi_perfil",description:"Perfil del cliente autenticado",public:!0}];var slots=[{slot_id:"checkout-payment",function_id:"payment_charge",label:"Pago con tarjeta",view_position:"checkout"},{slot_id:"send-email",function_id:"email_transactional",label:"Correo",view_position:"AfterPayment"}];var import_react14=__toESM(require("react"));var import_framer_motion=require("framer-motion"),T={paper:"#F4EEE3",paper2:"#FBF7EF",card:"#FFFFFF",ink:"#211E18",ink2:"#463F34",muted:"#6E6759",faint:"#9A9384",line:"rgba(33,30,24,0.12)",line2:"rgba(33,30,24,0.07)",stone:"#8C7A58",stoneDeep:"#6C5C3F",stoneSoft:"#B8A886",sand:"#E7DcC8",amber:"#E4D93A",amberSoft:"#F1EA6A",brandYellow:"#EFE645",terra:"#B23A2E",forest:"#3C4535",espresso:"#1C1812",espresso2:"#2A241B",sans:"'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif",serif:"'Fraunces', Georgia, 'Times New Roman', serif",ease:[.22,.61,.36,1]},cx=(...a)=>a.filter(Boolean).join(" "),eur=new Intl.NumberFormat("es-ES",{style:"currency",currency:"EUR",minimumFractionDigits:0,maximumFractionDigits:2}),money=n=>{let v=Number(n);return Number.isFinite(v)?eur.format(v).replace("\xA0"," "):""},priceOf=p=>{let oferta=p?.precio_oferta,hasOferta=oferta!=null&&oferta!==""&&Number(oferta)>0;return Number(hasOferta?oferta:p?.precio||0)},hasOffer=p=>{let oferta=p?.precio_oferta;return oferta!=null&&oferta!==""&&Number(oferta)>0&&Number(oferta){let d=new Date;return`${d.getFullYear()}-${String(d.getMonth()+1).padStart(2,"0")}-${String(d.getDate()).padStart(2,"0")}`},availableFrom=p=>{let raw=p?.disponible_desde;if(!raw)return"";let iso=String(raw).slice(0,10);return/^\d{4}-\d{2}-\d{2}$/.test(iso)&&iso>todayISO()?iso:""},longDate=(iso,lang2)=>{if(!iso)return"";let[y,m,d]=iso.split("-").map(Number),dt=new Date(y,m-1,d);return isNaN(dt.getTime())?iso:new Intl.DateTimeFormat(lang2==="en"?"en-GB":"es-ES",{day:"numeric",month:"long"}).format(dt)},shortDate=(iso,lang2)=>{if(!iso)return"";let[y,m,d]=iso.split("-").map(Number),dt=new Date(y,m-1,d);return isNaN(dt.getTime())?iso:new Intl.DateTimeFormat(lang2==="en"?"en-GB":"es-ES",{day:"numeric",month:"short"}).format(dt).replace(".","")};function Reveal({children,delay=0,y=22,className,as="div"}){let reduce=(0,import_framer_motion.useReducedMotion)(),M=import_framer_motion.motion[as]||import_framer_motion.motion.div;return __gh(M,{className,initial:reduce?!1:{opacity:0,y},whileInView:reduce?{}:{opacity:1,y:0},viewport:{once:!0,margin:"-70px"},transition:{duration:.7,ease:T.ease,delay}},children)}function Eyebrow({children,color=T.stoneDeep,className}){return __gh("span",{className:cx("inline-flex items-center gap-2",className),style:{fontFamily:T.sans,fontSize:12,fontWeight:600,letterSpacing:"0.18em",textTransform:"uppercase",color},"data-gufi-src":"lib/ui.tsx:114"},__gh(Vieira,{size:13,color}),children)}function Vieira({size=20,color=T.terra,className,style}){return __gh("svg",{width:size,height:size,viewBox:"0 0 48 48",fill:"none",className,style,"aria-hidden":"true","data-gufi-src":"lib/ui.tsx:128"},__gh("path",{d:"M24 44C11.5 44 3 33.9 3 22.5 3 20 5 19 6.6 20.4 8 15 11 13.7 12.6 15.6 15 10 19 9.4 20.4 12 22-6 26-6 27.6 12 29-9.4 33 10 35.4 15.6 37-13.7 40 15 41.4 20.4 43 19 45 20 45 22.5 45 33.9 36.5 44 24 44Z",fill:color,opacity:"0.16","data-gufi-src":"lib/ui.tsx:129"}),__gh("path",{d:"M24 43C12 43 4 33.4 4 22.6",stroke:color,strokeWidth:"1.6",strokeLinecap:"round","data-gufi-src":"lib/ui.tsx:130"}),__gh("path",{d:"M24 43C36 43 44 33.4 44 22.6",stroke:color,strokeWidth:"1.6",strokeLinecap:"round","data-gufi-src":"lib/ui.tsx:131"}),[24,16.5,31.5,10,38,20.2,27.8,13.2,34.8].map((x,i)=>{let spread=[0,-7.5,7.5,-14,14,-3.8,3.8,-10.8,10.8][i];return __gh("path",{key:i,d:`M24 42.2C${24+spread*.35} 30 ${24+spread*.7} 20 ${24+spread} 13.5`,stroke:color,strokeWidth:"1.3",strokeLinecap:"round",opacity:"0.9","data-gufi-src":"lib/ui.tsx:134"})}),__gh("circle",{cx:"24",cy:"11",r:"2.4",fill:color,"data-gufi-src":"lib/ui.tsx:136"}))}function Flecha({size=22,color=T.amber,className,style}){return __gh("svg",{width:size,height:size,viewBox:"0 0 24 24",fill:"none",className,style,"aria-hidden":"true","data-gufi-src":"lib/ui.tsx:144"},__gh("path",{d:"M4 12h13M12 6l6 6-6 6",stroke:color,strokeWidth:"2.4",strokeLinecap:"round",strokeLinejoin:"round","data-gufi-src":"lib/ui.tsx:145"}))}function Grain({opacity=.035}){return __gh("div",{"aria-hidden":"true",style:{position:"fixed",inset:0,pointerEvents:"none",zIndex:1,opacity,backgroundImage:`url("data:image/svg+xml,")`,mixBlendMode:"multiply"},"data-gufi-src":"lib/ui.tsx:154"})}function OKLogo({height=32,ink="#181917",yellow="#EFE645",mark=!1,className,style}){let vb=mark?"150 -70 1960 780":"0 0 2244.98 1120.27",w=mark?height*(1960/780):height*(2244.98/1120.27);return __gh("svg",{width:w,height,viewBox:vb,className,style,"aria-label":"OK The Way",role:"img","data-gufi-src":"components/Brand.tsx:10"},__gh("path",{fill:ink,d:"M861.13,319.91c0,176.69-97.15,319.91-316.87,319.91S227.39,496.6,227.39,319.91,324.54,0,544.26,0,861.13,143.23,861.13,319.91ZM544.26,148.18C455.35,148.18,416,225.07,416,319.91s39.31,171.74,128.22,171.74,128.22-76.89,128.22-171.74S633.17,148.18,544.26,148.18Z","data-gufi-src":"components/Brand.tsx:12"}),__gh("polygon",{fill:ink,points:"980.91 0 980.91 640.96 1176.56 640.96 1176.56 475.04 1264.61 395.22 1418 640.96 1658.26 640.96 1419.56 249.65 1659.43 0 1386.3 0 1176.56 242.22 1176.56 0 980.91 0","data-gufi-src":"components/Brand.tsx:14"}),__gh("polygon",{fill:yellow,points:"1816.05 379.96 2042.52 379.96 2042.52 154.56 1827.92 154.56 1976.43 0 1728.43 0 1488.56 249.65 1727.26 640.96 1975.26 640.96 1816.05 379.96 1816.05 379.96","data-gufi-src":"components/Brand.tsx:16"}),!mark&&__gh(__gf,null,__gh("polygon",{fill:yellow,points:"1101.19 1052.65 1047.87 965.24 1101.45 909.47 1047.45 909.47 993.87 965.24 1047.19 1052.65 1101.19 1052.65","data-gufi-src":"components/Brand.tsx:19"}),__gh("polygon",{fill:ink,points:"225.95 834 0 834 0 884.87 89.74 884.87 89.74 1120.27 136.21 1120.27 136.21 884.87 225.95 884.87 225.95 834","data-gufi-src":"components/Brand.tsx:21"}),__gh("polygon",{fill:ink,points:"515.56 834 515.56 953.74 389.78 953.74 389.78 834 336.56 834 336.56 1120.27 389.78 1120.27 389.78 996.53 515.56 996.53 515.56 1120.27 568.78 1120.27 568.78 834 515.56 834","data-gufi-src":"components/Brand.tsx:23"}),__gh("polygon",{fill:ink,points:"899 888 899 834 759.69 834 723.99 834 710.56 834 710.56 1120.27 723.99 1120.27 759.69 1120.27 899 1120.27 899 1066.27 759.69 1066.27 759.69 996.53 879.17 996.53 879.17 953.74 759.69 953.74 759.69 888 899 888","data-gufi-src":"components/Brand.tsx:25"}),__gh("polygon",{fill:ink,points:"1524.78 834 1471.63 1026.61 1415.78 834 1362.78 834 1306.93 1026.61 1253.78 834 1193.78 834 1272.78 1120.27 1279.78 1120.27 1332.78 1120.27 1389.28 925.4 1445.78 1120.27 1498.78 1120.27 1505.78 1120.27 1584.78 834 1524.78 834","data-gufi-src":"components/Brand.tsx:27"}),__gh("path",{fill:ink,d:"M1884.43,1120.27h58.31L1824.56,834h-58.3l-118.18,286.27h58.31l27.93-67.66H1856.5Zm-131.37-113,42.35-102.6,42.35,102.6Z","data-gufi-src":"components/Brand.tsx:29"}),__gh("polygon",{fill:ink,points:"2181.8 834 2112.04 941 2042.28 834 1979.11 834 2088.8 1002.26 2088.8 1120.27 2135.28 1120.27 2135.28 1002.26 2244.97 834 2181.8 834","data-gufi-src":"components/Brand.tsx:31"})))}var FAVICON_HREF="data:image/svg+xml,"+encodeURIComponent("");var import_react=require("react"),KEY="okw_cart_v1";function load(){if(typeof window>"u")return[];try{let raw=localStorage.getItem(KEY),arr=raw?JSON.parse(raw):[];return Array.isArray(arr)?arr:[]}catch{return[]}}var state=load(),listeners=new Set;function commit(next){state=next;try{localStorage.setItem(KEY,JSON.stringify(next))}catch{}listeners.forEach(l=>l())}function subscribe(l){return listeners.add(l),()=>{listeners.delete(l)}}function snapshot(){return state}var lineKey=(producto,opciones)=>`${producto}::${JSON.stringify(opciones||{})}`,cartApi={add(item){let key=lineKey(item.producto,item.opciones),qty=Math.max(1,item.cantidad||1),idx=state.findIndex(x=>x.key===key);if(idx>=0){let next=state.slice();next[idx]={...next[idx],cantidad:Math.min(20,next[idx].cantidad+qty)},commit(next)}else commit([...state,{...item,key,cantidad:qty}])},setQty(key,qty){if(qty<=0){cartApi.remove(key);return}commit(state.map(x=>x.key===key?{...x,cantidad:Math.min(20,qty)}:x))},reprice(updates){if(!updates||!updates.length)return;let map=new Map(updates.map(u=>[u.key,u.precio])),changed=!1,next=state.map(x=>{let p=map.get(x.key);return p==null||!Number.isFinite(p)||Math.round(p*100)===Math.round(x.precio*100)?x:(changed=!0,{...x,precio:p})});changed&&commit(next)},remove(key){commit(state.filter(x=>x.key!==key))},clear(){commit([])}};function useCart(){let items=(0,import_react.useSyncExternalStore)(subscribe,snapshot,()=>[]),count=items.reduce((s,x)=>s+x.cantidad,0),total=items.reduce((s,x)=>s+x.precio*x.cantidad,0),totalCents=items.reduce((s,x)=>s+Math.round(x.precio*100)*x.cantidad,0);return{items,count,total,totalCents,...cartApi}}function resolveCid(gufi){let fromSite=gufi?.siteInfo?.company_id??gufi?.context?.companyId??gufi?.context?.activeCompany?.id;if(fromSite)return Number(fromSite);if(typeof window<"u"){let m=window.location.pathname.match(/\/(?:app\/)?(\d+)\//);if(m)return Number(m[1])}return 755}async function postJson(url,body){let res=await fetch(url,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(body||{})}),json=null;try{json=await res.json()}catch{}if(!res.ok||json?.success===!1)throw new Error(json?.error||`HTTP ${res.status}`);return json}async function callAutomation(gufi,name,input={}){if(gufi&&typeof gufi.automation=="function")try{return await gufi.automation(name,input)}catch{}let cid=resolveCid(gufi);return(await postJson(`/api/public/${cid}/automation/${encodeURIComponent(name)}`,input)).result}async function fetchTarifa(gufi,items){let input={items};if(gufi&&typeof gufi.automation=="function")try{let r=await gufi.automation("precios_carrito",input),t=r&&r.result!==void 0?r.result:r;if(t&&Array.isArray(t.lineas))return t}catch{}let cid=resolveCid(gufi),json=await postJson(`/api/public/${cid}/tarifa`,input);return json&&json.result!==void 0?json.result:json}async function runCheckout(gufi,input){if(gufi&&typeof gufi.runSlot=="function")return await gufi.runSlot("checkout-payment",input);let cid=resolveCid(gufi);return(await postJson(`/api/public/${cid}/slots/checkout-payment/run`,input)).result}async function verifySession(gufi,sessionId){let cid=resolveCid(gufi);try{return await(await fetch(`/api/public/stripe/verify-session?session_id=${encodeURIComponent(sessionId)}&company_id=${cid}`)).json()}catch{return{paid:!1}}}var import_react4=require("react"),import_framer_motion2=require("framer-motion"),import_lucide_react=require("lucide-react");var BRAND={name:"OK The Way",tag:"Parking en Sarria \xB7 Camino de Santiago",since:"2016",clientes:23e3,razonSocial:"Alquileres Requetrun S.L. & Oktheway Estate, S.L."},CONTACT={telPrincipal:"+34 676 451 970",telPrincipalRaw:"34676451970",telSecundario:"+34 604 018 427",telSecundarioRaw:"34604018427",email:"reservas@oktheway.com",direccion:"R\xFAa Gran V\xEDa 57-63, 27600 Sarria, Lugo, Espa\xF1a",mapsQuery:"R\xFAa Gran V\xEDa 57-63, 27600 Sarria, Lugo",facebook:"https://www.facebook.com/",instagram:"https://www.instagram.com/",x:"https://x.com/"},wa=msg=>`https://wa.me/${CONTACT.telPrincipalRaw}?text=${encodeURIComponent(msg)}`,IMAGES={hero:["/api/files/serve?path=company_755%2Fweb%2FIMG_2922.JPG","/api/files/serve?path=company_755%2Fweb%2FIMG_3870.JPG","/api/files/serve?path=company_755%2Fweb%2FIMG_3078.JPG"],band:"/api/files/serve?path=company_755%2Fweb%2FIMG_3090.JPG",servicio:"/api/files/serve?path=company_755%2Fweb%2FIMG_3082.JPG",galeria:["/api/files/serve?path=company_755%2Fweb%2FIMG_2925.JPG","/api/files/serve?path=company_755%2Fweb%2FIMG_3869.JPG","/api/files/serve?path=company_755%2Fweb%2FIMG_3106.JPG","/api/files/serve?path=company_755%2Fweb%2FIMG_2928.JPG","/api/files/serve?path=company_755%2Fweb%2FIMG_7164.JPG","/api/files/serve?path=company_755%2Fweb%2FIMG_8054.JPG","/api/files/serve?path=company_755%2Fweb%2FE9961637-EF67-4EBD-B5D6-627C3C7B67E4.JPG","/api/files/serve?path=company_755%2Fweb%2FIMG_3081.JPG"]},NAV=[{id:"servicios",label:{es:"Servicios",en:"Services"}},{id:"tienda",label:{es:"Reservar",en:"Book"}},{id:"como",label:{es:"C\xF3mo funciona",en:"How it works"}},{id:"galeria",label:{es:"El Camino",en:"The Camino"}},{id:"contacto",label:{es:"Contacto",en:"Contact"}}],SERVICIOS=[{icon:"SquareParking",titulo:{es:"Parking cubierto y cerrado",en:"Covered, secure parking"},texto:{es:"Deja tu coche en Sarria en un recinto cubierto, cerrado y vigilado durante todo tu Camino. Sin l\xEDmite de d\xEDas.",en:"Leave your car in Sarria in a covered, gated and monitored compound for the whole of your Camino. With no limit on the number of days."}},{icon:"Car",titulo:{es:"VTC y taxi en el Camino",en:"Private transfers and taxis on the Camino"},texto:{es:"Te recogemos en Santiago o en el aeropuerto y te traemos a Sarria a por tu coche. Ch\xF3fer y comodidad de puerta a puerta.",en:"We pick you up in Santiago or at the airport and bring you back to Sarria to collect your car. A private driver and door-to-door comfort."}},{icon:"KeyRound",titulo:{es:"Coche de alquiler",en:"Rental car"},texto:{es:"La \xFAnica empresa que te ofrece las dos soluciones: dejas el tuyo en Sarria y te entregamos uno de alquiler donde nos digas.",en:"The only company to offer you both solutions: leave your own car in Sarria and we deliver a rental car wherever you tell us."}},{icon:"Luggage",titulo:{es:"Traslado de equipajes",en:"Luggage transfer"},texto:{es:"Nosotros llevamos tu maleta o mochila de un alojamiento al siguiente, etapa a etapa, hasta Santiago. T\xFA caminas ligero.",en:"We carry your suitcase or backpack from one place to stay to the next, stage by stage, all the way to Santiago. You walk light."}}],PASOS=[{n:"01",titulo:{es:"Elige tu servicio",en:"Choose your service"},texto:{es:"Parking, traslado, coche de alquiler o transporte de equipaje. Reserva online en un minuto.",en:"Parking, transfers, a rental car or luggage transport. Book online in under a minute."}},{n:"02",titulo:{es:"Indica tus fechas",en:"Tell us your dates"},texto:{es:"Nos dices cu\xE1ndo llegas y cu\xE1ndo recoges. Matr\xEDcula, tama\xF1o del veh\xEDculo y poco m\xE1s.",en:"Let us know when you arrive and when you will collect. Your number plate, the size of your vehicle and little else."}},{n:"03",titulo:{es:"Deja tu coche en Sarria",en:"Leave your car in Sarria"},texto:{es:"Te esperamos en R\xFAa Gran V\xEDa. Aparcas, nos entregas la llave y empiezas a caminar.",en:"We will be waiting for you on R\xFAa Gran V\xEDa. Park up, hand us the key and set off on your walk."}},{n:"04",titulo:{es:"Haz tu Camino tranquilo",en:"Walk your Camino with peace of mind"},texto:{es:"Tu coche seguro, tu equipaje en destino. Al terminar, todo te espera donde lo necesitas.",en:"Your car safe, your luggage at your destination. When you finish, everything is waiting for you right where you need it."}}],CATEGORIAS=[{key:"Parking",label:{es:"Parking",en:"Parking"},icon:"SquareParking",from:"#8C7A58",to:"#6C5C3F"},{key:"Parking + traslado",label:{es:"Parking + traslado",en:"Parking + transfer"},icon:"Car",from:"#3C4535",to:"#2A3226"},{key:"Taxi y VTC",label:{es:"Taxi y VTC",en:"Taxi & private hire"},icon:"CarFront",from:"#4A4033",to:"#2E2820"},{key:"Traslado de maletas",label:{es:"Traslado de maletas",en:"Luggage transfer"},icon:"Luggage",from:"#B8A886",to:"#8C7A58"},{key:"Coche etapa a etapa",label:{es:"Coche etapa a etapa",en:"Car, stage by stage"},icon:"Route",from:"#B23A2E",to:"#7E2A22"}],catMeta=c=>CATEGORIAS.find(x=>x.key===c)||CATEGORIAS[0],FAQ=[{q:{es:"\xBFCu\xE1ntos d\xEDas puedo dejar el coche?",en:"How many days can I leave my car?"},a:{es:"Los que necesites. El parking en Sarria es sin l\xEDmite de d\xEDas: paga una tarifa \xFAnica y recoge tu coche cuando termines tu Camino.",en:"As many as you need. Parking in Sarria has no day limit: you pay a single flat rate and collect your car whenever you finish your Camino."}},{q:{es:"\xBFEl parking est\xE1 cubierto?",en:"Is the car park covered?"},a:{es:"S\xED. Es un recinto cubierto, cerrado y vigilado en R\xFAa Gran V\xEDa, en pleno Sarria, a un paso del inicio de los \xFAltimos 100 km.",en:"Yes. It is a covered, gated and monitored compound on R\xFAa Gran V\xEDa, in the heart of Sarria, just steps from the start of the final 100 km."}},{q:{es:"\xBFC\xF3mo recojo mi coche al llegar a Santiago?",en:"How do I get my car back once I reach Santiago?"},a:{es:"Elige el servicio de VTC/taxi o coche de alquiler: te recogemos en Santiago (o en el aeropuerto) y te traemos a Sarria, o te entregamos un coche all\xED. T\xFA eliges.",en:"Choose the private transfer/taxi service or a rental car: we pick you up in Santiago (or at the airport) and bring you back to Sarria, or we deliver a car to you there. The choice is yours."}},{q:{es:"\xBFQu\xE9 pasa con mi equipaje?",en:"What happens with my luggage?"},a:{es:"Con el traslado de mochilas y maletas movemos tu equipaje de alojamiento a alojamiento cada d\xEDa, para que camines sin peso. Por etapa o por el Camino completo.",en:"With our backpack and suitcase transfer we move your luggage from one place to stay to the next each day, so you can walk without carrying any weight. By the individual stage or for the whole Camino."}},{q:{es:"\xBFCu\xE1ndo se me cobra?",en:"When am I charged?"},a:{es:"Reservas y pagas online de forma segura con tarjeta. Recibir\xE1s por email la confirmaci\xF3n de tu reserva al instante.",en:"You book and pay online securely by card. You will receive confirmation of your booking by email straight away."}}],LEGAL={privacidad:{titulo:{es:"Pol\xEDtica de Privacidad",en:"Privacy Policy"},cuerpo:[[{es:"Responsable",en:"Data controller"},{es:`El responsable del tratamiento de tus datos es ${BRAND.razonSocial}, con domicilio en ${CONTACT.direccion} y correo de contacto ${CONTACT.email}.`,en:`The controller of your personal data is ${BRAND.razonSocial}, with registered address at ${CONTACT.direccion} and contact email ${CONTACT.email}.`}],[{es:"Datos que tratamos",en:"Data we process"},{es:"Tratamos los datos que nos facilitas al realizar una reserva (nombre, tel\xE9fono, correo electr\xF3nico, matr\xEDcula y datos del servicio contratado) y los datos de pago, que se procesan de forma segura a trav\xE9s de nuestra pasarela Stripe. OK The Way no almacena los datos completos de tu tarjeta.",en:"We process the data you provide when making a booking (name, telephone number, email address, number plate and details of the service booked) and your payment data, which is handled securely through our payment gateway, Stripe. OK The Way does not store your full card details."}],[{es:"Finalidad",en:"Purpose"},{es:"Gestionar tu reserva y la prestaci\xF3n del servicio contratado (parking, traslados, alquiler o transporte de equipaje), enviarte la confirmaci\xF3n y comunicarnos contigo sobre tu Camino.",en:"To manage your booking and provide the service you have contracted (parking, transfers, car rental or luggage transport), send you your confirmation and keep in touch with you about your Camino."}],[{es:"Legitimaci\xF3n",en:"Legal basis"},{es:"La base legal es la ejecuci\xF3n del contrato de servicio que solicitas y, en su caso, tu consentimiento para comunicaciones comerciales.",en:"The legal basis is the performance of the service contract you request and, where applicable, your consent to receive commercial communications."}],[{es:"Conservaci\xF3n",en:"Data retention"},{es:"Conservamos tus datos durante el tiempo necesario para prestar el servicio y cumplir con las obligaciones legales y fiscales aplicables.",en:"We keep your data for as long as necessary to provide the service and to comply with the applicable legal and tax obligations."}],[{es:"Tus derechos",en:"Your rights"},{es:`Puedes ejercer tus derechos de acceso, rectificaci\xF3n, supresi\xF3n, oposici\xF3n, limitaci\xF3n y portabilidad escribi\xE9ndonos a ${CONTACT.email}. Tambi\xE9n puedes reclamar ante la Agencia Espa\xF1ola de Protecci\xF3n de Datos.`,en:`You may exercise your rights of access, rectification, erasure, objection, restriction and portability by writing to us at ${CONTACT.email}. You also have the right to lodge a complaint with the Spanish Data Protection Agency (AEPD).`}]]},terminos:{titulo:{es:"T\xE9rminos y Condiciones",en:"Terms and Conditions"},cuerpo:[[{es:"Objeto",en:"Scope"},{es:`Estas condiciones regulan la contrataci\xF3n de los servicios ofrecidos por ${BRAND.razonSocial} a trav\xE9s de okthewayparking.com: parking en Sarria, traslados en VTC/taxi, coche de alquiler y transporte de equipaje en el Camino de Santiago.`,en:`These terms govern the booking of the services offered by ${BRAND.razonSocial} through okthewayparking.com: parking in Sarria, private hire/taxi transfers, car rental and luggage transport on the Camino de Santiago.`}],[{es:"Reservas y pago",en:"Bookings and payment"},{es:"La reserva se formaliza al completar el pago online con tarjeta. Recibir\xE1s un correo de confirmaci\xF3n con los detalles de tu servicio. Los precios mostrados incluyen los impuestos aplicables.",en:"Your booking is confirmed once you complete payment online by card. You will receive a confirmation email with the details of your service. The prices shown include all applicable taxes."}],[{es:"Prestaci\xF3n del servicio",en:"Provision of the service"},{es:"Es imprescindible indicar correctamente las fechas de entrada y recogida, la matr\xEDcula y los datos solicitados. El servicio se presta en las condiciones y horarios acordados en la reserva.",en:"It is essential to provide accurate drop-off and collection dates, your number plate and the information requested. The service is provided under the conditions and at the times agreed in the booking."}],[{es:"Cancelaciones",en:"Cancellations"},{es:`Para cualquier modificaci\xF3n o cancelaci\xF3n, contacta con nosotros lo antes posible en ${CONTACT.email} o en el ${CONTACT.telPrincipal}. Te informaremos de las condiciones aplicables seg\xFAn la antelaci\xF3n.`,en:`For any change or cancellation, please contact us as soon as possible at ${CONTACT.email} or on ${CONTACT.telPrincipal}. We will let you know the conditions that apply depending on how much notice you give.`}],[{es:"Responsabilidad",en:"Liability"},{es:"OK The Way custodia los veh\xEDculos en recinto cerrado y vigilado con la m\xE1xima diligencia. El cliente debe no dejar objetos de valor a la vista y facilitar la documentaci\xF3n necesaria.",en:"OK The Way looks after vehicles in a gated, monitored compound with the utmost care. Customers must not leave valuables in view and should provide the necessary documentation."}],[{es:"Legislaci\xF3n",en:"Governing law"},{es:"Estas condiciones se rigen por la legislaci\xF3n espa\xF1ola. Para cualquier controversia, las partes se someten a los juzgados y tribunales que correspondan conforme a la normativa de consumo.",en:"These terms are governed by Spanish law. For any dispute, the parties submit to the courts and tribunals having jurisdiction under the applicable consumer protection legislation."}]]}},HORARIO=[[{es:"Lunes",en:"Monday"},"07:00 \u2013 00:00"],[{es:"Martes",en:"Tuesday"},"07:30 \u2013 00:00"],[{es:"Mi\xE9rcoles",en:"Wednesday"},"07:00 \u2013 00:00"],[{es:"Jueves",en:"Thursday"},"07:00 \u2013 17:00"],[{es:"Viernes",en:"Friday"},"09:00 \u2013 00:00"],[{es:"S\xE1bado",en:"Saturday"},"07:00 \u2013 17:00"],[{es:"Domingo",en:"Sunday"},"09:00 \u2013 00:00"]];var import_react2=require("react"),KEY2="okw_auth_v1";function load2(){if(typeof window>"u")return null;try{let raw=localStorage.getItem(KEY2);if(!raw)return null;let u=JSON.parse(raw);return u&&u.clienteId>0&&typeof u.token=="string"&&u.token?u:null}catch{return null}}var state2=load2(),listeners2=new Set,authApi={set(u){state2=u;try{u?localStorage.setItem(KEY2,JSON.stringify(u)):localStorage.removeItem(KEY2)}catch{}listeners2.forEach(l=>l())},clear(){authApi.set(null)}};function subscribe2(l){return listeners2.add(l),()=>{listeners2.delete(l)}}function snapshot2(){return state2}function useAuth(){return{user:(0,import_react2.useSyncExternalStore)(subscribe2,snapshot2,()=>null),setUser:authApi.set,logout:authApi.clear}}var import_react3=require("react"),KEY3="okw_lang";function initial(){if(typeof window>"u")return"es";try{let s=localStorage.getItem(KEY3);return s==="es"||s==="en"?s:(navigator.language||"es").toLowerCase().startsWith("en")?"en":"es"}catch{return"es"}}var lang=initial(),listeners3=new Set;function setLang(l){lang=l;try{localStorage.setItem(KEY3,l),document.documentElement.lang=l}catch{}listeners3.forEach(fn=>fn())}function subscribe3(fn){return listeners3.add(fn),()=>{listeners3.delete(fn)}}function snapshot3(){return lang}function useLang(){let cur=(0,import_react3.useSyncExternalStore)(subscribe3,snapshot3,()=>"es"),t=(es,en)=>cur==="en"?en:es;function L(a,b){return b!==void 0||typeof a=="string"?cur==="en"&&b||a:a&&typeof a=="object"?cur==="en"?a.en??a.es:a.es??a.en:a}return{lang:cur,setLang,t,L}}var FOCUS="focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-offset-transparent focus-visible:ring-[rgba(140,122,88,0.95)] rounded-full";function LangToggle({lang:lang2,setLang:setLang2,compact=!1,className}){let opts=[{v:"es",label:"ES",aria:"Espa\xF1ol"},{v:"en",label:"EN",aria:"English"}];return __gh("div",{role:"group","aria-label":"Idioma \xB7 Language",className:`inline-flex items-center ${className||""}`,style:{borderRadius:999,border:`1px solid ${T.line}`,background:"rgba(251,247,239,0.55)",padding:2,gap:2},"data-gufi-src":"components/Nav.tsx:32"},opts.map(o=>{let on=lang2===o.v;return __gh("button",{key:o.v,onClick:()=>setLang2(o.v),"aria-pressed":on,"aria-label":o.aria,className:`grid place-items-center transition-all duration-200 active:scale-95 ${FOCUS}`,style:{minWidth:compact?34:52,height:compact?30:44,padding:compact?"0 8px":"0 14px",borderRadius:999,fontFamily:T.sans,fontSize:compact?12.5:14.5,fontWeight:700,letterSpacing:"0.04em",background:on?T.ink:"transparent",color:on?"#FBF7EF":T.muted},"data-gufi-src":"components/Nav.tsx:41"},o.label)}))}function Nav({onCart,onNavigate,onAccount}){let[scrolled,setScrolled]=(0,import_react4.useState)(!1),[open,setOpen]=(0,import_react4.useState)(!1),[active,setActive]=(0,import_react4.useState)(""),{count}=useCart(),{user}=useAuth(),{lang:lang2,setLang:setLang2,t,L}=useLang();(0,import_react4.useEffect)(()=>{let onScroll=()=>setScrolled(window.scrollY>12);return onScroll(),window.addEventListener("scroll",onScroll,{passive:!0}),()=>window.removeEventListener("scroll",onScroll)},[]),(0,import_react4.useEffect)(()=>{if(typeof window>"u"||!("IntersectionObserver"in window))return;let els=NAV.map(n=>document.getElementById(n.id)).filter(Boolean);if(!els.length)return;let obs=new IntersectionObserver(entries=>{let vis=entries.filter(e=>e.isIntersecting).sort((a,b)=>b.intersectionRatio-a.intersectionRatio);vis[0]&&setActive(vis[0].target.id)},{rootMargin:"-42% 0px -50% 0px",threshold:[0,.2,.5,1]});return els.forEach(el=>obs.observe(el)),()=>obs.disconnect()},[]),(0,import_react4.useEffect)(()=>{if(typeof document>"u")return;let prev=document.body.style.overflow;return open&&(document.body.style.overflow="hidden"),()=>{document.body.style.overflow=prev}},[open]);let go=id=>{setOpen(!1),onNavigate(id)},solid=!0,light=!1,ink=light?"#FBF7EF":"#181917",linkColor=light?"rgba(253,251,246,0.86)":T.ink2,linkActive=light?"#FFFFFF":T.ink,underline=light?"rgba(253,251,246,0.92)":T.stoneDeep;return __gh(__gf,null,__gh("div",{style:{background:T.espresso,color:"#EFE7D6"},className:"w-full relative z-[60]","data-gufi-src":"components/Nav.tsx:122"},__gh("p",{className:"py-2 px-4 flex items-center justify-center gap-2 text-center leading-snug",style:{fontFamily:T.sans,fontSize:12.5,letterSpacing:"0.02em"},"data-gufi-src":"components/Nav.tsx:123"},__gh(Flecha,{size:13,color:T.brandYellow,style:{flexShrink:0}}),__gh("span",{style:{textWrap:"balance"},"data-gufi-src":"components/Nav.tsx:125"},t("Gracias por pensar en nosotros para formar parte de tu Camino","Thank you for choosing us to be part of your Camino")))),__gh(import_framer_motion2.motion.header,{initial:{y:-12,opacity:0},animate:{y:0,opacity:1},transition:{duration:.6,ease:T.ease},className:"sticky top-0 z-50 w-full transition-all duration-300",style:{background:solid?"rgba(244,238,227,0.82)":"rgba(244,238,227,0)",backdropFilter:solid?"saturate(1.4) blur(14px)":"none",WebkitBackdropFilter:solid?"saturate(1.4) blur(14px)":"none",borderBottom:solid?`1px solid ${T.line2}`:"1px solid transparent",boxShadow:scrolled?"0 10px 30px -24px rgba(28,24,18,0.5)":"none"}},__gh("div",{className:"mx-auto flex items-center justify-between gap-4",style:{maxWidth:1240,padding:scrolled?"11px 24px":"18px 24px",transition:"padding .3s"},"data-gufi-src":"components/Nav.tsx:140"},__gh("a",{href:"#top",onClick:e=>{e.preventDefault(),go("top")},className:`flex items-center group -m-1 p-1 ${FOCUS}`,"aria-label":BRAND.name,"data-gufi-src":"components/Nav.tsx:141"},__gh(OKLogo,{height:scrolled?27:30,ink,yellow:T.brandYellow,className:"transition-all duration-300 group-hover:scale-[1.03]",style:{display:"block"}})),__gh("nav",{className:"hidden lg:flex items-center gap-0.5","aria-label":t("Principal","Main"),"data-gufi-src":"components/Nav.tsx:145"},NAV.map(n=>{let on=active===n.id;return __gh("button",{key:n.id,onClick:()=>go(n.id),"aria-current":on?"true":void 0,className:`relative px-3.5 py-2 group transition-colors duration-200 ${FOCUS}`,style:{fontFamily:T.sans,fontSize:14.5,fontWeight:500,color:on?linkActive:linkColor},"data-gufi-src":"components/Nav.tsx:149"},L(n.label),__gh("span",{className:`absolute left-3.5 right-3.5 -bottom-0.5 h-px origin-left transition-transform duration-300 group-hover:scale-x-100 ${on?"scale-x-100":"scale-x-0"}`,style:{background:underline},"data-gufi-src":"components/Nav.tsx:157"}))})),__gh("div",{className:"flex items-center gap-2.5","data-gufi-src":"components/Nav.tsx:166"},__gh(LangToggle,{lang:lang2,setLang:setLang2,compact:!0,className:"hidden sm:inline-flex"}),__gh("a",{href:`tel:+${CONTACT.telPrincipalRaw}`,className:`hidden sm:flex items-center gap-2 px-3.5 py-2 transition-colors duration-200 ${light?"hover:bg-[rgba(251,247,239,0.12)]":"hover:bg-[rgba(33,30,24,0.05)]"} ${FOCUS}`,style:{fontFamily:T.sans,fontSize:13.5,fontWeight:600,color:light?"#FBF7EF":T.ink},"data-gufi-src":"components/Nav.tsx:169"},__gh(import_lucide_react.Phone,{size:15,color:light?T.amberSoft:T.stoneDeep})," ",CONTACT.telPrincipal),__gh("button",{onClick:onAccount,"aria-label":t("Tu cuenta","Your account"),className:`relative grid place-items-center transition-all duration-200 active:scale-95 hover:bg-[rgba(33,30,24,0.05)] ${FOCUS}`,style:{width:44,height:44,borderRadius:999,border:`1px solid ${T.line}`,color:T.ink,background:"transparent"},"data-gufi-src":"components/Nav.tsx:177"},__gh(import_lucide_react.User,{size:18}),user&&__gh("span",{"aria-hidden":"true",className:"absolute -top-0.5 -right-0.5 rounded-full",style:{width:11,height:11,background:T.forest,border:`2px solid ${T.paper}`},"data-gufi-src":"components/Nav.tsx:184"})),__gh("button",{onClick:onCart,"aria-label":count>0?t(`Carrito, ${count} art\xEDculo${count>1?"s":""}`,`Cart, ${count} item${count>1?"s":""}`):t("Carrito","Cart"),className:`relative grid place-items-center transition-all duration-200 active:scale-95 hover:shadow-md ${FOCUS}`,style:{width:44,height:44,borderRadius:999,background:light?"#FBF7EF":T.ink,color:light?T.ink:"#FBF7EF"},"data-gufi-src":"components/Nav.tsx:187"},__gh(import_lucide_react.ShoppingBag,{size:18}),__gh(import_framer_motion2.AnimatePresence,null,count>0&&__gh(import_framer_motion2.motion.span,{key:"badge",initial:{scale:0},animate:{scale:1},exit:{scale:0},transition:{type:"spring",stiffness:600,damping:22},className:"absolute -top-1 -right-1 grid place-items-center rounded-full",style:{minWidth:20,height:20,padding:"0 5px",background:T.terra,color:"#fff",fontFamily:T.sans,fontSize:11,fontWeight:700,boxShadow:"0 2px 6px -1px rgba(0,0,0,0.35)"}},count))),__gh("button",{onClick:()=>setOpen(v=>!v),"aria-label":open?t("Cerrar men\xFA","Close menu"):t("Abrir men\xFA","Open menu"),"aria-expanded":open,className:`lg:hidden grid place-items-center transition-colors duration-200 active:scale-95 ${FOCUS}`,style:{width:44,height:44,borderRadius:999,border:`1px solid ${light?"rgba(251,247,239,0.45)":T.line}`,color:ink},"data-gufi-src":"components/Nav.tsx:209"},open?__gh(import_lucide_react.X,{size:18}):__gh(import_lucide_react.Menu,{size:18})))),__gh(import_framer_motion2.AnimatePresence,null,open&&__gh(import_framer_motion2.motion.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.32,ease:T.ease},className:"lg:hidden overflow-hidden",style:{background:"rgba(244,238,227,0.98)",backdropFilter:"blur(14px)",WebkitBackdropFilter:"blur(14px)",borderBottom:`1px solid ${T.line2}`}},__gh("div",{className:"px-6 pt-1 pb-5 flex flex-col max-h-[calc(100dvh-120px)] overflow-y-auto overscroll-contain","data-gufi-src":"components/Nav.tsx:228"},NAV.map((n,idx)=>__gh(import_framer_motion2.motion.button,{key:n.id,onClick:()=>go(n.id),initial:{opacity:0,x:-12},animate:{opacity:1,x:0},transition:{delay:.05+idx*.05,duration:.3,ease:T.ease},className:`text-left py-3.5 flex items-center justify-between group ${FOCUS}`,style:{fontFamily:T.serif,fontSize:23,color:active===n.id?T.stoneDeep:T.ink,borderBottom:`1px solid ${T.line2}`}},L(n.label),__gh(import_lucide_react.ArrowRight,{size:18,color:T.faint,className:"transition-transform duration-300 group-hover:translate-x-1"}))),__gh(import_framer_motion2.motion.button,{onClick:()=>go("tienda"),initial:{opacity:0,y:8},animate:{opacity:1,y:0},transition:{delay:.05+NAV.length*.05,duration:.3,ease:T.ease},className:`mt-5 inline-flex items-center justify-center gap-2.5 py-3.5 transition-transform active:scale-[0.98] ${FOCUS}`,style:{background:T.ink,color:"#FBF7EF",borderRadius:999,fontFamily:T.sans,fontSize:15.5,fontWeight:600}},t("Reservar mi plaza","Book my space"),__gh("span",{className:"grid place-items-center rounded-full",style:{width:26,height:26,background:T.amber},"data-gufi-src":"components/Nav.tsx:249"},__gh(import_lucide_react.ArrowRight,{size:15,color:T.espresso}))),__gh("a",{href:`tel:+${CONTACT.telPrincipalRaw}`,className:`flex items-center justify-center gap-2 mt-3 min-h-[44px] py-2.5 ${FOCUS}`,style:{fontFamily:T.sans,fontSize:14.5,fontWeight:600,color:T.stoneDeep},"data-gufi-src":"components/Nav.tsx:254"},__gh(import_lucide_react.Phone,{size:16})," ",CONTACT.telPrincipal),__gh("div",{className:"flex items-center justify-between mt-4 pt-4",style:{borderTop:`1px solid ${T.line2}`},"data-gufi-src":"components/Nav.tsx:262"},__gh("span",{style:{fontFamily:T.sans,fontSize:11,fontWeight:600,letterSpacing:"0.16em",textTransform:"uppercase",color:T.faint},"data-gufi-src":"components/Nav.tsx:263"},t("Idioma","Language")),__gh(LangToggle,{lang:lang2,setLang:setLang2})))))),__gh(import_framer_motion2.AnimatePresence,null,open&&__gh(import_framer_motion2.motion.div,{key:"okw-nav-scrim",className:"lg:hidden fixed inset-0 z-40",style:{background:"rgba(20,17,12,0.4)"},initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.25},onClick:()=>setOpen(!1),"aria-hidden":"true"})))}var import_react5=require("react"),import_framer_motion3=require("framer-motion"),import_lucide_react2=require("lucide-react");var FOCUS2="focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-offset-transparent focus-visible:ring-[rgba(239,230,69,0.9)]";function Hero({onNavigate}){let[i,setI]=(0,import_react5.useState)(0),reduce=(0,import_framer_motion3.useReducedMotion)(),ref=(0,import_react5.useRef)(null),{t,lang:lang2}=useLang();(0,import_react5.useEffect)(()=>{if(reduce)return;let t2=setInterval(()=>setI(v=>(v+1)%IMAGES.hero.length),6e3);return()=>clearInterval(t2)},[reduce]),(0,import_react5.useEffect)(()=>{IMAGES.hero.forEach(src=>{let im=new Image;im.src=src})},[]);let{scrollYProgress}=(0,import_framer_motion3.useScroll)({target:ref,offset:["start start","end start"]}),imgY=(0,import_framer_motion3.useTransform)(scrollYProgress,[0,1],["0%","10%"]),contentY=(0,import_framer_motion3.useTransform)(scrollYProgress,[0,1],[0,-54]),contentOpacity=(0,import_framer_motion3.useTransform)(scrollYProgress,[0,.62,1],[1,1,.28]),container={hidden:{},show:{transition:{staggerChildren:.11,delayChildren:.14}}},item={hidden:{opacity:0,y:22},show:{opacity:1,y:0,transition:{duration:.85,ease:T.ease}}};return __gh("section",{ref,id:"top",className:"relative w-full overflow-hidden min-h-[86vh] sm:min-h-[92vh]",style:{background:T.espresso},"data-gufi-src":"components/Hero.tsx:45"},__gh(import_framer_motion3.motion.div,{"aria-hidden":"true",className:"absolute",style:{inset:"-14% 0",y:reduce?0:imgY}},__gh(import_framer_motion3.AnimatePresence,null,__gh(import_framer_motion3.motion.div,{key:i,className:"absolute inset-0",initial:{opacity:0,scale:1.06},animate:{opacity:1,scale:1},exit:{opacity:0},transition:{opacity:{duration:1.6,ease:"easeInOut"},scale:{duration:6.6,ease:[.16,1,.3,1]}},style:{backgroundImage:`url(${IMAGES.hero[i]})`,backgroundSize:"cover",backgroundPosition:"center"}}))),__gh("div",{"aria-hidden":"true",className:"absolute inset-0",style:{background:"linear-gradient(180deg, rgba(20,17,12,0.58) 0%, rgba(20,17,12,0.16) 30%, rgba(20,17,12,0.30) 60%, rgba(20,17,12,0.84) 100%)"},"data-gufi-src":"components/Hero.tsx:70"}),__gh("div",{"aria-hidden":"true",className:"absolute inset-0",style:{background:"linear-gradient(90deg, rgba(20,17,12,0.55) 0%, rgba(20,17,12,0.18) 42%, rgba(20,17,12,0) 74%)"},"data-gufi-src":"components/Hero.tsx:75"}),__gh(import_framer_motion3.motion.div,{variants:reduce?void 0:container,initial:reduce?!1:"hidden",animate:reduce?void 0:"show",className:"relative z-10 mx-auto flex w-full flex-col justify-center min-h-[86vh] sm:min-h-[92vh] px-6 pt-24 pb-10 sm:pt-28",style:{maxWidth:1240,...reduce?{}:{y:contentY,opacity:contentOpacity}}},__gh(import_framer_motion3.motion.div,{variants:reduce?void 0:item,className:"mb-5 sm:mb-7"},__gh(Eyebrow,{color:"rgba(253,251,246,0.92)"},t("Sarria \xB7 km 111 \xB7 Camino de Santiago","Sarria \xB7 km 111 \xB7 Camino de Santiago"))),__gh(import_framer_motion3.motion.h1,{variants:reduce?void 0:item,style:{fontFamily:T.serif,color:"#FDFBF6",fontWeight:300,lineHeight:.96,letterSpacing:"-0.022em",fontSize:"clamp(32px, 8vw, 104px)",maxWidth:"15ch",textWrap:"balance"}},t("Nos encanta formar parte","We love being part"),__gh("br",{"data-gufi-src":"components/Hero.tsx:98"}),__gh("span",{style:{fontStyle:"italic",fontWeight:500},"data-gufi-src":"components/Hero.tsx:98"},t("de tu Camino","of your Camino"))),__gh(import_framer_motion3.motion.p,{variants:reduce?void 0:item,className:"mt-5 sm:mt-6",style:{fontFamily:T.sans,fontSize:"clamp(16px,1.7vw,20px)",lineHeight:1.6,color:"rgba(253,251,246,0.9)",maxWidth:560,textWrap:"pretty"}},t("Deja tu coche seguro en Sarria y camina ligero hasta Santiago. Parking cubierto, traslados, coche de alquiler y transporte de equipaje. Nosotros nos ocupamos de todo.","Leave your car safely in Sarria and walk light all the way to Santiago. Covered parking, transfers, car rental and luggage transport \u2014 we take care of everything.")),__gh(import_framer_motion3.motion.div,{variants:reduce?void 0:item,className:"mt-8 sm:mt-9 flex flex-col sm:flex-row sm:flex-wrap sm:items-center gap-3"},__gh("button",{onClick:()=>onNavigate("tienda"),className:`group inline-flex w-full sm:w-auto items-center justify-center gap-2.5 rounded-full pl-6 pr-4 py-3.5 transition-all duration-300 hover:-translate-y-0.5 active:scale-[0.98] active:translate-y-0 ${FOCUS2}`,style:{background:"#FBF7EF",color:T.ink,fontFamily:T.sans,fontSize:15.5,fontWeight:600,boxShadow:"0 20px 46px -20px rgba(0,0,0,0.7)"},"data-gufi-src":"components/Hero.tsx:113"},t("Reservar mi plaza","Book my space"),__gh("span",{className:"grid place-items-center rounded-full transition-transform duration-300 group-hover:translate-x-1",style:{width:27,height:27,background:T.amber},"data-gufi-src":"components/Hero.tsx:119"},__gh(import_lucide_react2.ArrowRight,{size:15,color:T.espresso}))),__gh("button",{onClick:()=>onNavigate("servicios"),className:`inline-flex w-full sm:w-auto items-center justify-center gap-2 rounded-full px-6 py-3.5 transition-all duration-300 hover:-translate-y-0.5 active:translate-y-0 ${FOCUS2}`,style:{background:"rgba(20,17,12,0.34)",border:"1px solid rgba(251,247,239,0.55)",color:"#FBF7EF",fontFamily:T.sans,fontSize:15.5,fontWeight:500,backdropFilter:"blur(6px)",WebkitBackdropFilter:"blur(6px)"},"data-gufi-src":"components/Hero.tsx:123"},t("Ver servicios","View services"))),__gh(import_framer_motion3.motion.div,{variants:reduce?void 0:item,className:"mt-auto pt-10 sm:pt-14 flex flex-wrap items-center gap-x-6 sm:gap-x-7 gap-y-3"},__gh("div",{className:"flex items-center gap-2.5","data-gufi-src":"components/Hero.tsx:133"},__gh("div",{className:"flex gap-0.5","aria-hidden":"true","data-gufi-src":"components/Hero.tsx:134"},[0,1,2,3,4].map(s=>__gh(import_lucide_react2.Star,{key:s,size:15,fill:T.amberSoft,color:T.amberSoft}))),__gh("span",{style:{fontFamily:T.sans,fontSize:13.5,color:"rgba(253,251,246,0.82)"},"data-gufi-src":"components/Hero.tsx:137"},__gh("b",{style:{color:"#fff",fontWeight:700},"data-gufi-src":"components/Hero.tsx:138"},"+",BRAND.clientes.toLocaleString(lang2==="en"?"en-US":"es-ES"))," ",t("peregrinos ya forman parte de nuestro Camino","pilgrims are already part of our Camino"))),__gh("span",{"aria-hidden":"true",className:"hidden md:block",style:{width:1,height:18,background:"rgba(251,247,239,0.28)"},"data-gufi-src":"components/Hero.tsx:141"}),__gh("span",{style:{fontFamily:T.sans,fontSize:13.5,color:"rgba(253,251,246,0.82)"},"data-gufi-src":"components/Hero.tsx:142"},t("Especialistas en el Camino desde ","Camino specialists since "),__gh("b",{style:{color:"#fff",fontWeight:700},"data-gufi-src":"components/Hero.tsx:143"},BRAND.since)))))}var XACOBEO_2027="data:image/webp;base64,UklGRuo0AABXRUJQVlA4WAoAAAAsAAAA4gIAsAAASUNDUOABAAAAAAHgbGNtcwQgAABtbnRyUkdCIFhZWiAH4gADABQACQAOAB1hY3NwTVNGVAAAAABzYXdzY3RybAAAAAAAAAAAAAAAAAAA9tYAAQAAAADTLWhhbmR56b9WWj4BtoMjhVVG90+qAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAApkZXNjAAAA/AAAACRjcHJ0AAABIAAAACJ3dHB0AAABRAAAABRjaGFkAAABWAAAACxyWFlaAAABhAAAABRnWFla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ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPD94cGFja2V0IGVuZD0idyI/PgAA";function XacobeoBar(){let{t}=useLang();return __gh("section",{style:{background:T.paper,borderBottom:`1px solid ${T.line2}`},"data-gufi-src":"components/XacobeoBar.tsx:12"},__gh(Reveal,null,__gh("div",{className:"mx-auto flex flex-col items-center gap-3 px-6 py-7 sm:py-8 lg:py-10",style:{maxWidth:1240},"data-gufi-src":"components/XacobeoBar.tsx:14"},__gh("span",{className:"text-center",style:{fontFamily:T.sans,fontSize:11,fontWeight:600,letterSpacing:"0.22em",textTransform:"uppercase",color:T.faint},"data-gufi-src":"components/XacobeoBar.tsx:15"},t("Vive el A\xF1o Santo del Camino","Experience the Holy Year of the Camino")),__gh("div",{className:"flex items-center justify-center gap-5 sm:gap-7 w-full","data-gufi-src":"components/XacobeoBar.tsx:18"},__gh("span",{"aria-hidden":"true",className:"hidden sm:block h-px flex-1",style:{maxWidth:220,background:"linear-gradient(90deg, transparent, rgba(33,30,24,0.16))"},"data-gufi-src":"components/XacobeoBar.tsx:19"}),__gh("img",{src:XACOBEO_2027,alt:t("Xacobeo 2027 \xB7 Galicia","Xacobeo 2027 \xB7 Galicia"),className:"h-10 sm:h-11",style:{width:"auto",display:"block",mixBlendMode:"multiply"},"data-gufi-src":"components/XacobeoBar.tsx:20"}),__gh("span",{"aria-hidden":"true",className:"hidden sm:block h-px flex-1",style:{maxWidth:220,background:"linear-gradient(90deg, rgba(33,30,24,0.16), transparent)"},"data-gufi-src":"components/XacobeoBar.tsx:21"})))))}var import_framer_motion4=require("framer-motion"),import_lucide_react3=require("lucide-react");var STATS=[{icon:import_lucide_react3.ShieldCheck,big:{es:"Cubierto",en:"Covered"},small:{es:"Recinto cerrado y vigilado",en:"Enclosed, guarded compound"}},{icon:import_lucide_react3.Infinity,big:{es:"Sin l\xEDmite",en:"No limit"},small:{es:"Los d\xEDas que dure tu Camino",en:"For as long as your Camino lasts"}},{icon:import_lucide_react3.Clock,big:{es:"Reserva 24 h",en:"Book 24/7"},small:{es:"Online, con confirmaci\xF3n al instante",en:"Online, confirmed instantly"}},{icon:import_lucide_react3.MapPin,big:{es:"Sarria \xB7 km 111",en:"Sarria \xB7 km 111"},small:{es:"A un paso del inicio de los 100 km",en:"Steps from the start of the 100 km"}}];function Trust(){let reduce=(0,import_framer_motion4.useReducedMotion)(),{t,L}=useLang();return __gh("section",{"aria-label":t("Garant\xEDas","Guarantees"),style:{background:T.paper2,borderTop:`1px solid ${T.line2}`,borderBottom:`1px solid ${T.line2}`},"data-gufi-src":"components/Trust.tsx:18"},__gh("div",{className:"mx-auto",style:{maxWidth:1240},"data-gufi-src":"components/Trust.tsx:19"},__gh("div",{className:"grid grid-cols-2 lg:grid-cols-4",style:{gap:1,background:T.line2},"data-gufi-src":"components/Trust.tsx:21"},STATS.map((s,i)=>__gh(import_framer_motion4.motion.div,{key:i,className:"group relative flex flex-col items-start gap-3 px-5 py-7 sm:flex-row sm:gap-3.5 sm:px-6 sm:py-8 lg:px-8 lg:py-11",style:{background:T.paper2},initial:reduce?!1:{opacity:0,y:12},whileInView:reduce?{}:{opacity:1,y:0},viewport:{once:!0,margin:"-40px"},transition:{duration:.6,ease:T.ease,delay:i*.07}},__gh("span",{className:"grid place-items-center rounded-xl shrink-0 transition-colors duration-300",style:{width:44,height:44,background:T.sand,color:T.stoneDeep},"data-gufi-src":"components/Trust.tsx:32"},__gh(s.icon,{size:19,strokeWidth:1.7})),__gh("div",{className:"min-w-0","data-gufi-src":"components/Trust.tsx:38"},__gh("div",{className:"relative inline-block","data-gufi-src":"components/Trust.tsx:39"},__gh("span",{style:{fontFamily:T.serif,fontSize:20,fontWeight:500,color:T.ink,lineHeight:1.12,letterSpacing:"-0.01em"},"data-gufi-src":"components/Trust.tsx:40"},L(s.big)),__gh("span",{"aria-hidden":"true",className:"absolute left-0 -bottom-1 h-[2px] w-0 group-hover:w-full transition-all duration-500",style:{background:T.amber,borderRadius:2,transitionTimingFunction:"cubic-bezier(0.22,0.61,0.36,1)"},"data-gufi-src":"components/Trust.tsx:43"})),__gh("div",{style:{fontFamily:T.sans,fontSize:13,color:T.muted,marginTop:5,lineHeight:1.4},"data-gufi-src":"components/Trust.tsx:49"},L(s.small))))))))}var import_framer_motion5=require("framer-motion"),import_lucide_react5=require("lucide-react");var import_lucide_react4=require("lucide-react"),MAP={SquareParking:import_lucide_react4.SquareParking,Car:import_lucide_react4.Car,CarFront:import_lucide_react4.CarFront,KeyRound:import_lucide_react4.KeyRound,Luggage:import_lucide_react4.Luggage,Route:import_lucide_react4.Route,MapPin:import_lucide_react4.MapPin,Package:import_lucide_react4.Package};function LucideIcon({name,...props}){let C=MAP[name]||import_lucide_react4.Package;return __gh(C,{...props})}function WhatsAppGlyph({size=22,color="#fff",className}){return __gh("svg",{width:size,height:size,viewBox:"0 0 24 24",fill:color,className,"aria-hidden":"true","data-gufi-src":"components/icons.tsx:16"},__gh("path",{d:"M.057 24l1.687-6.163a11.867 11.867 0 01-1.587-5.945C.16 5.335 5.495 0 12.05 0a11.817 11.817 0 018.413 3.488 11.824 11.824 0 013.48 8.414c-.003 6.557-5.338 11.892-11.893 11.892a11.9 11.9 0 01-5.688-1.448L.057 24zm6.597-3.807c1.676.995 3.276 1.591 5.392 1.592 5.448 0 9.886-4.434 9.889-9.885.002-5.462-4.415-9.89-9.881-9.892-5.452 0-9.887 4.434-9.889 9.884a9.86 9.86 0 001.51 5.26l-.999 3.648 3.978-1.042zm11.387-5.464c-.074-.124-.272-.198-.57-.347-.297-.149-1.758-.868-2.031-.967-.272-.099-.47-.149-.669.149-.198.297-.767.967-.94 1.165-.173.198-.347.223-.644.074-.297-.149-1.255-.462-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.297-.347.446-.521.151-.172.2-.296.3-.495.099-.198.05-.372-.025-.521-.075-.148-.669-1.611-.916-2.206-.242-.579-.487-.501-.669-.51l-.57-.01c-.198 0-.52.074-.792.372s-1.04 1.016-1.04 2.479 1.065 2.876 1.213 3.074c.149.198 2.095 3.2 5.076 4.487.71.306 1.263.489 1.694.626.712.226 1.36.194 1.872.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.29.173-1.414z","data-gufi-src":"components/icons.tsx:17"}))}function Servicios({onNavigate}){let reduce=(0,import_framer_motion5.useReducedMotion)(),{lang:lang2,t,L}=useLang();return __gh("section",{id:"servicios",className:"relative",style:{background:T.paper,scrollMarginTop:80},"data-gufi-src":"components/Servicios.tsx:13"},__gh("div",{className:"mx-auto px-6 py-16 sm:py-20 lg:py-32",style:{maxWidth:1240},"data-gufi-src":"components/Servicios.tsx:14"},__gh("div",{className:"grid lg:grid-cols-[1fr_1.1fr] gap-8 lg:gap-16 items-end mb-10 sm:mb-14 lg:mb-20","data-gufi-src":"components/Servicios.tsx:16"},__gh(Reveal,null,__gh(Eyebrow,null,t("Todo el Camino, resuelto","The whole Camino, sorted")),__gh("h2",{className:"mt-5",style:{fontFamily:T.serif,fontWeight:300,fontSize:"clamp(30px,4.6vw,60px)",lineHeight:1.04,letterSpacing:"-0.02em",color:T.ink},"data-gufi-src":"components/Servicios.tsx:19"},t("Cuatro formas de caminar","Four ways to walk"),__gh("br",{"data-gufi-src":"components/Servicios.tsx:20"}),__gh("span",{style:{fontStyle:"italic",fontWeight:500},"data-gufi-src":"components/Servicios.tsx:20"},t("m\xE1s ligero","lighter")))),__gh(Reveal,{delay:.1},__gh("p",{style:{fontFamily:T.sans,fontSize:17,lineHeight:1.62,color:T.ink2},"data-gufi-src":"components/Servicios.tsx:24"},t("Desde 2016 acompa\xF1amos a peregrinos de todo el mundo en Sarria, el punto de salida m\xE1s popular del Camino Franc\xE9s. Tu coche, tu equipaje y tu tranquilidad, en las mejores manos.","Since 2016 we've accompanied pilgrims from all over the world in Sarria, the most popular starting point on the Camino Franc\xE9s. Your car, your luggage and your peace of mind \u2014 in the best hands.")))),__gh("div",{className:"grid lg:grid-cols-[0.92fr_1.08fr] gap-8 lg:gap-14 items-start","data-gufi-src":"components/Servicios.tsx:34"},__gh(Reveal,{className:"lg:sticky lg:top-24"},__gh("div",{className:"group relative overflow-hidden rounded-[20px] sm:rounded-[26px]",style:{border:`1px solid ${T.line}`,boxShadow:"0 30px 70px -46px rgba(28,24,18,0.55)"},"data-gufi-src":"components/Servicios.tsx:37"},__gh("div",{className:"relative w-full overflow-hidden aspect-[16/10] sm:aspect-[3/2] lg:aspect-[4/5] lg:max-h-[560px]","data-gufi-src":"components/Servicios.tsx:38"},__gh(import_framer_motion5.motion.img,{src:IMAGES.servicio,alt:t("Sendero del Camino de Santiago cerca de Sarria","Camino de Santiago trail near Sarria"),loading:"lazy",className:"w-full h-full transition-transform duration-[1400ms] group-hover:scale-[1.05]",style:{objectFit:"cover",display:"block",willChange:"transform"},initial:reduce?!1:{scale:1.12},whileInView:reduce?{}:{scale:1},viewport:{once:!0,margin:"-60px"},transition:{duration:1.6,ease:T.ease}}),__gh("div",{className:"absolute inset-0",style:{background:"linear-gradient(180deg, rgba(20,17,12,0) 38%, rgba(20,17,12,0.16) 62%, rgba(20,17,12,0.82) 100%)"},"data-gufi-src":"components/Servicios.tsx:50"})),__gh("div",{className:"absolute inset-x-0 bottom-0 p-6 sm:p-7 lg:p-8","data-gufi-src":"components/Servicios.tsx:52"},__gh("div",{className:"mb-3","data-gufi-src":"components/Servicios.tsx:53"},__gh("span",{style:{fontFamily:T.sans,fontSize:11.5,fontWeight:600,letterSpacing:"0.16em",textTransform:"uppercase",color:"rgba(253,251,246,0.82)"},"data-gufi-src":"components/Servicios.tsx:54"},t("Sarria \xB7 Camino Franc\xE9s","Sarria \xB7 Camino Franc\xE9s"))),__gh("p",{style:{fontFamily:T.serif,fontWeight:300,fontStyle:"italic",fontSize:"clamp(21px,2.6vw,28px)",lineHeight:1.2,color:"#FDFBF6"},"data-gufi-src":"components/Servicios.tsx:58"},t("T\xFA solo pones los pasos.","You just take the steps.")),__gh("div",{className:"mt-4 flex items-center gap-2.5",style:{fontFamily:T.sans,fontSize:13,color:"rgba(253,251,246,0.78)"},"data-gufi-src":"components/Servicios.tsx:61"},__gh("b",{style:{color:"#fff",fontWeight:600,fontVariantNumeric:"tabular-nums"},"data-gufi-src":"components/Servicios.tsx:62"},"+",BRAND.clientes.toLocaleString(lang2==="en"?"en-US":"es-ES")),__gh("span",{"data-gufi-src":"components/Servicios.tsx:63"},t("peregrinos desde","pilgrims since")," ",BRAND.since))))),__gh("div",{className:"flex flex-col","data-gufi-src":"components/Servicios.tsx:70"},SERVICIOS.map((s,i)=>{let n=String(i+1).padStart(2,"0");return __gh(Reveal,{key:i,delay:i*.08},__gh("button",{type:"button",onClick:()=>onNavigate("tienda"),className:cx("group relative w-full text-left flex items-start gap-5 lg:gap-7 py-7 lg:py-8 transition-colors duration-300"),style:{borderTop:`1px solid ${i===0?"transparent":T.line}`},"data-gufi-src":"components/Servicios.tsx:75"},__gh("span",{"aria-hidden":!0,className:"absolute inset-x-[-16px] inset-y-0 rounded-2xl opacity-0 group-hover:opacity-100 transition-opacity duration-300",style:{background:T.paper2},"data-gufi-src":"components/Servicios.tsx:82"}),__gh("span",{className:"relative grid place-items-center rounded-2xl shrink-0 transition-all duration-300 group-hover:-translate-y-0.5",style:{width:56,height:56,background:T.sand,color:T.stoneDeep},"data-gufi-src":"components/Servicios.tsx:83"},__gh(LucideIcon,{name:s.icon,size:24,strokeWidth:1.6})),__gh("div",{className:"relative flex-1 min-w-0","data-gufi-src":"components/Servicios.tsx:87"},__gh("div",{className:"flex items-baseline gap-3","data-gufi-src":"components/Servicios.tsx:88"},__gh("span",{style:{fontFamily:T.serif,fontSize:13,fontWeight:500,color:T.stoneSoft,fontVariantNumeric:"tabular-nums",letterSpacing:"0.04em"},"data-gufi-src":"components/Servicios.tsx:89"},n),__gh("h3",{className:"flex-1",style:{fontFamily:T.serif,fontSize:"clamp(20px,2.4vw,25px)",fontWeight:500,color:T.ink,letterSpacing:"-0.01em",lineHeight:1.15},"data-gufi-src":"components/Servicios.tsx:90"},L(s.titulo)),__gh("span",{className:"shrink-0 mt-1 opacity-0 -translate-x-1.5 group-hover:opacity-100 group-hover:translate-x-0 transition-all duration-300",style:{color:T.stoneDeep},"data-gufi-src":"components/Servicios.tsx:91"},__gh(import_lucide_react5.ArrowRight,{size:20,strokeWidth:1.8}))),__gh("p",{className:"mt-2.5",style:{fontFamily:T.sans,fontSize:15,lineHeight:1.6,color:T.muted,maxWidth:"46ch"},"data-gufi-src":"components/Servicios.tsx:95"},L(s.texto)))))}),__gh(Reveal,{delay:.12},__gh("div",{className:"mt-9 pt-1","data-gufi-src":"components/Servicios.tsx:103"},__gh("button",{onClick:()=>onNavigate("tienda"),className:"group inline-flex w-full sm:w-auto items-center justify-center sm:justify-start gap-2.5 rounded-full pl-6 pr-5 sm:pl-7 py-3.5 transition-all active:scale-[0.98]",style:{background:T.ink,color:"#FBF7EF",fontFamily:T.sans,fontSize:15,fontWeight:600,boxShadow:"0 18px 40px -24px rgba(28,24,18,0.7)"},"data-gufi-src":"components/Servicios.tsx:104"},t("Ver todos los servicios y reservar","See all services & book"),__gh("span",{className:"grid place-items-center rounded-full transition-transform duration-300 group-hover:translate-x-1",style:{width:26,height:26,background:T.amber},"data-gufi-src":"components/Servicios.tsx:108"},__gh(import_lucide_react5.ArrowRight,{size:15,color:T.espresso})))))))))}var import_react6=require("react"),import_framer_motion6=require("framer-motion"),import_lucide_react6=require("lucide-react");var discountPct=p=>{let base=Number(p?.precio||0),off=Number(p?.precio_oferta||0);return base>0&&off>0&&offonOpen(p),"aria-label":`${t("Ver y reservar","View and book")}: ${name}`,whileHover:reduce?void 0:{y:-6,boxShadow:"0 26px 52px -28px rgba(33,30,24,0.42)",borderColor:"rgba(33,30,24,0.2)"},whileTap:{scale:.985},transition:{type:"spring",stiffness:320,damping:26},className:"group relative text-left w-full h-full rounded-[26px] overflow-hidden flex flex-col outline-none focus-visible:[outline:2px_solid_#8C7A58] focus-visible:[outline-offset:3px]",style:{background:T.card,border:`1px solid ${featured?"rgba(140,122,88,0.5)":T.line}`,boxShadow:featured?"0 14px 34px -24px rgba(33,30,24,0.35)":"0 1px 2px rgba(33,30,24,0.05)"}},__gh("div",{className:"relative overflow-hidden",style:{background:`linear-gradient(135deg, ${meta.from}, ${meta.to})`},"data-gufi-src":"components/Tienda.tsx:51"},__gh("div",{className:"relative aspect-[4/3]","data-gufi-src":"components/Tienda.tsx:52"},showImg?__gh("img",{src:rawImg,alt:p.nombre,loading:"lazy",decoding:"async",onError:()=>setImgOk(!1),onLoad:()=>setLoaded(!0),className:cx("absolute inset-0 w-full h-full object-cover",reduce?"":"group-hover:scale-[1.06]"),style:{opacity:loaded?1:0,transition:"transform 900ms cubic-bezier(0.22,0.61,0.36,1), opacity 700ms ease"},"data-gufi-src":"components/Tienda.tsx:54"}):__gh("div",{className:"absolute inset-0","data-gufi-src":"components/Tienda.tsx:65"},__gh("div",{className:"absolute -right-6 -bottom-8 opacity-[0.16]","data-gufi-src":"components/Tienda.tsx:66"},__gh(Vieira,{size:150,color:"#fff"})),__gh("div",{className:"absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 opacity-95","data-gufi-src":"components/Tienda.tsx:67"},__gh(LucideIcon,{name:meta.icon,size:44,color:"rgba(255,255,255,0.92)",strokeWidth:1.3}))),__gh("div",{className:"absolute inset-0 pointer-events-none",style:{background:"linear-gradient(to top, rgba(20,17,12,0.46) 0%, rgba(20,17,12,0) 44%)"},"data-gufi-src":"components/Tienda.tsx:74"}),featured&&__gh("span",{className:"absolute left-3.5 top-3.5 inline-flex items-center gap-1.5 rounded-full px-2.5 py-1",style:{background:"rgba(28,24,18,0.88)",WebkitBackdropFilter:"blur(6px)",backdropFilter:"blur(6px)",boxShadow:"0 4px 14px -6px rgba(33,30,24,0.55)"},"data-gufi-src":"components/Tienda.tsx:78"},__gh(Vieira,{size:11,color:T.amber}),__gh("span",{style:{fontFamily:T.sans,fontSize:10.5,fontWeight:700,letterSpacing:"0.06em",textTransform:"uppercase",color:"#FBF7EF"},"data-gufi-src":"components/Tienda.tsx:81"},t("Recomendado","Recommended"))),badge&&__gh("span",{className:"absolute left-3.5 top-3.5 inline-flex items-center gap-1.5 rounded-full px-2.5 py-1",style:{background:"rgba(251,247,239,0.94)",WebkitBackdropFilter:"blur(6px)",backdropFilter:"blur(6px)",boxShadow:"0 4px 14px -6px rgba(33,30,24,0.45)"},"data-gufi-src":"components/Tienda.tsx:87"},__gh("span",{style:{width:6,height:6,borderRadius:9,background:T.amber},"data-gufi-src":"components/Tienda.tsx:89"}),__gh("span",{style:{fontFamily:T.sans,fontSize:10.5,fontWeight:700,letterSpacing:"0.06em",textTransform:"uppercase",color:T.espresso},"data-gufi-src":"components/Tienda.tsx:90"},badge)),offer&&__gh("span",{className:"absolute right-3.5 top-3.5 rounded-full px-2.5 py-1",style:{background:T.terra,color:"#fff",fontFamily:T.sans,fontSize:11,fontWeight:700,letterSpacing:"0.02em",boxShadow:"0 6px 16px -6px rgba(178,58,46,0.75)"},"data-gufi-src":"components/Tienda.tsx:96"},pct>0?`\u2212${pct}%`:t("Oferta","Sale")),__gh("span",{className:"absolute left-3.5 bottom-3.5 inline-flex items-center gap-1.5 rounded-full px-2.5 py-1",style:{background:"rgba(255,255,255,0.15)",WebkitBackdropFilter:"blur(8px)",backdropFilter:"blur(8px)",border:"1px solid rgba(255,255,255,0.28)"},"data-gufi-src":"components/Tienda.tsx:103"},__gh(LucideIcon,{name:meta.icon,size:12.5,color:"#fff",strokeWidth:1.9}),__gh("span",{style:{fontFamily:T.sans,fontSize:11,fontWeight:600,letterSpacing:"0.03em",color:"#fff"},"data-gufi-src":"components/Tienda.tsx:106"},L(meta.label))))),__gh("div",{className:"flex flex-col flex-1 p-5 sm:p-6","data-gufi-src":"components/Tienda.tsx:112"},__gh("h3",{style:{fontFamily:T.serif,fontSize:20,fontWeight:500,lineHeight:1.14,color:T.ink,letterSpacing:"-0.01em"},"data-gufi-src":"components/Tienda.tsx:113"},name),p.resumen&&__gh("p",{className:"mt-2.5 flex-1 okw-clamp2",style:{fontFamily:T.sans,fontSize:14,lineHeight:1.55,color:T.muted},"data-gufi-src":"components/Tienda.tsx:115"},summary),avail&&__gh("span",{className:"mt-3 inline-flex items-center gap-1.5 rounded-full px-2.5 py-1 self-start",style:{background:"rgba(239,230,69,0.2)",border:"1px solid rgba(196,185,40,0.45)"},"data-gufi-src":"components/Tienda.tsx:118"},__gh(import_lucide_react6.CalendarClock,{size:12.5,color:T.stoneDeep,strokeWidth:2}),__gh("span",{style:{fontFamily:T.sans,fontSize:11.5,fontWeight:600,color:T.espresso},"data-gufi-src":"components/Tienda.tsx:121"},t(`Reservas desde el ${shortDate(avail,lang2)}`,`Bookings from ${shortDate(avail,lang2)}`))),__gh("div",{className:"mt-5 flex items-end justify-between gap-3","data-gufi-src":"components/Tienda.tsx:126"},__gh("div",{className:"flex items-baseline gap-2 flex-wrap","data-gufi-src":"components/Tienda.tsx:127"},__gh("span",{className:"tabular-nums",style:{fontFamily:T.serif,fontSize:26,fontWeight:500,color:T.ink,letterSpacing:"-0.01em"},"data-gufi-src":"components/Tienda.tsx:128"},money(price)),offer&&__gh("span",{className:"tabular-nums",style:{fontFamily:T.sans,fontSize:14,color:T.faint,textDecoration:"line-through"},"data-gufi-src":"components/Tienda.tsx:129"},money(p.precio))),__gh("span",{className:"grid place-items-center rounded-full transition-colors duration-300 bg-[#E7DCC8] group-hover:bg-[#211E18] shrink-0",style:{width:42,height:42},"data-gufi-src":"components/Tienda.tsx:131"},__gh(import_lucide_react6.ArrowUpRight,{size:18,className:"transition-colors duration-300 text-[#6C5C3F] group-hover:text-white"}))))))}function SkeletonCard(){return __gh("div",{className:"rounded-[26px] overflow-hidden flex flex-col",style:{background:T.card,border:`1px solid ${T.line2}`},"data-gufi-src":"components/Tienda.tsx:144"},__gh("div",{className:"aspect-[4/3] okw-shimmer",style:{background:"rgba(33,30,24,0.06)"},"data-gufi-src":"components/Tienda.tsx:145"}),__gh("div",{className:"p-5 sm:p-6 flex flex-col gap-3","data-gufi-src":"components/Tienda.tsx:146"},__gh("div",{className:"okw-shimmer rounded-md",style:{height:20,width:"72%",background:"rgba(33,30,24,0.08)"},"data-gufi-src":"components/Tienda.tsx:147"}),__gh("div",{className:"okw-shimmer rounded",style:{height:12,width:"100%",background:"rgba(33,30,24,0.05)"},"data-gufi-src":"components/Tienda.tsx:148"}),__gh("div",{className:"okw-shimmer rounded",style:{height:12,width:"86%",background:"rgba(33,30,24,0.05)"},"data-gufi-src":"components/Tienda.tsx:149"}),__gh("div",{className:"mt-3 flex items-center justify-between","data-gufi-src":"components/Tienda.tsx:150"},__gh("div",{className:"okw-shimmer rounded-md",style:{height:26,width:92,background:"rgba(33,30,24,0.08)"},"data-gufi-src":"components/Tienda.tsx:151"}),__gh("div",{className:"okw-shimmer rounded-full",style:{height:42,width:42,background:"rgba(33,30,24,0.06)"},"data-gufi-src":"components/Tienda.tsx:152"}))))}function Tienda({productos,loading,error,onRetry,onOpen}){let{t,L}=useLang(),[cat,setCat]=(0,import_react6.useState)("all"),cats=(0,import_react6.useMemo)(()=>["all",...CATEGORIAS.map(c=>c.key)],[]),counts=(0,import_react6.useMemo)(()=>{let m={};for(let p of productos)m[p.categoria]=(m[p.categoria]||0)+1;return m},[productos]),visibleCats=(0,import_react6.useMemo)(()=>cats.filter(c=>c==="all"||(counts[c]||0)>0),[cats,counts]),featured=(0,import_react6.useMemo)(()=>productos.filter(p=>p.destacado).slice().sort((a,b)=>(a.orden||0)-(b.orden||0)).slice(0,3),[productos]),featuredIds=(0,import_react6.useMemo)(()=>new Set(featured.map(p=>p.id)),[featured]),filtered=(0,import_react6.useMemo)(()=>(cat==="all"?productos.filter(p=>!featuredIds.has(p.id)):productos.filter(p=>p.categoria===cat)).slice().sort((a,b)=>(a.orden||0)-(b.orden||0)),[productos,cat,featuredIds]),shownCount=cat==="all"?productos.length:filtered.length;return __gh("section",{id:"tienda",style:{background:T.paper2,scrollMarginTop:72},"data-gufi-src":"components/Tienda.tsx:187"},__gh("style",{"data-gufi-src":"components/Tienda.tsx:188"},` @keyframes okwShimmer{0%{opacity:.5}50%{opacity:1}100%{opacity:.5}} .okw-shimmer{animation:okwShimmer 1.6s ease-in-out infinite} .okw-noscroll{scrollbar-width:none;-ms-overflow-style:none} .okw-noscroll::-webkit-scrollbar{display:none} .okw-clamp2{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden} .okw-catpill{min-height:44px} @media (min-width:640px){.okw-catpill{min-height:38px}} @media (prefers-reduced-motion: reduce){.okw-shimmer{animation:none}} `),__gh("div",{className:"mx-auto px-6 py-24 lg:py-32",style:{maxWidth:1240},"data-gufi-src":"components/Tienda.tsx:199"},__gh(Reveal,null,__gh("div",{className:"flex flex-col lg:flex-row lg:items-end justify-between gap-8 mb-9","data-gufi-src":"components/Tienda.tsx:202"},__gh("div",{className:"max-w-xl","data-gufi-src":"components/Tienda.tsx:203"},__gh(Eyebrow,null,t("Reserva tu Camino","Book Your Camino")),__gh("h2",{className:"mt-5",style:{fontFamily:T.serif,fontWeight:300,fontSize:"clamp(34px,4.6vw,60px)",lineHeight:1.02,letterSpacing:"-0.02em",color:T.ink},"data-gufi-src":"components/Tienda.tsx:205"},t("Elige tu servicio","Choose your service"),__gh("br",{"data-gufi-src":"components/Tienda.tsx:206"}),__gh("span",{style:{fontStyle:"italic",fontWeight:500},"data-gufi-src":"components/Tienda.tsx:206"},t("y reserva online","and book online"))),__gh("p",{className:"mt-5",style:{fontFamily:T.sans,fontSize:16.5,lineHeight:1.6,color:T.ink2},"data-gufi-src":"components/Tienda.tsx:208"},t("Parking, traslados, coche de alquiler o transporte de equipaje. Precio cerrado, confirmaci\xF3n por email al instante.","Parking, transfers, car rental or luggage transport. Fixed price, instant email confirmation."))),__gh("div",{className:"flex lg:inline-flex items-center justify-center lg:justify-start gap-2.5 rounded-2xl lg:rounded-full px-4 py-2.5 w-full lg:w-auto self-start",style:{background:"rgba(239,230,69,0.16)",border:"1px solid rgba(196,185,40,0.5)"},"data-gufi-src":"components/Tienda.tsx:212"},__gh(Flecha,{size:16,color:T.stoneDeep,className:"shrink-0"}),__gh("span",{style:{fontFamily:T.sans,fontSize:13.5,fontWeight:600,color:T.stoneDeep},"data-gufi-src":"components/Tienda.tsx:215"},t("Reserva anticipada Xacobeo 2027 \xB7 hasta \u221220%","Early booking Xacobeo 2027 \xB7 up to \u221220%"))))),!loading&&cat==="all"&&featured.length>0&&__gh("div",{className:"mb-12 sm:mb-14","data-gufi-src":"components/Tienda.tsx:222"},__gh(Reveal,null,__gh("div",{className:"flex items-center gap-3 mb-5","data-gufi-src":"components/Tienda.tsx:224"},__gh(Vieira,{size:15,color:T.stoneDeep}),__gh("span",{style:{fontFamily:T.sans,fontSize:12,fontWeight:700,letterSpacing:"0.1em",textTransform:"uppercase",color:T.stoneDeep},"data-gufi-src":"components/Tienda.tsx:226"},t("Los m\xE1s reservados","Most booked")),__gh("span",{className:"h-px flex-1",style:{background:T.line},"data-gufi-src":"components/Tienda.tsx:229"}))),__gh("div",{className:"grid sm:grid-cols-2 lg:grid-cols-3 gap-5","data-gufi-src":"components/Tienda.tsx:232"},featured.map((p,i)=>__gh(ProductCard,{key:p.id,p,i,onOpen,featured:!0})))),__gh(Reveal,{delay:.05},__gh("div",{className:"relative -mx-6 px-6 mb-8","data-gufi-src":"components/Tienda.tsx:240"},__gh("div",{className:"okw-noscroll flex gap-2 overflow-x-auto pb-1",role:"tablist","aria-label":t("Filtrar por servicio","Filter by service"),"data-gufi-src":"components/Tienda.tsx:241"},visibleCats.map(c=>{let active=cat===c,label=c==="all"?t("Todos","All"):L(catMeta(c).label),m=c==="all"?null:catMeta(c);return __gh("button",{key:c,role:"tab","aria-selected":active,onClick:()=>setCat(c),className:"okw-catpill relative shrink-0 inline-flex items-center justify-center gap-1.5 rounded-full px-4 py-2 whitespace-nowrap transition-colors outline-none focus-visible:[outline:2px_solid_#8C7A58] focus-visible:[outline-offset:2px]",style:{fontFamily:T.sans,fontSize:13.5,fontWeight:600,color:active?"#FBF7EF":T.ink2,border:`1px solid ${active?T.ink:T.line}`},"data-gufi-src":"components/Tienda.tsx:247"},active&&__gh(import_framer_motion6.motion.span,{layoutId:"cat-pill",className:"absolute inset-0 rounded-full",style:{background:T.ink},transition:{type:"spring",stiffness:380,damping:32}}),m&&__gh(LucideIcon,{name:m.icon,size:14,color:active?"#FBF7EF":T.stone,strokeWidth:1.9,className:"relative"}),__gh("span",{className:"relative","data-gufi-src":"components/Tienda.tsx:257"},label))})))),!loading&&filtered.length>0&&__gh("p",{className:"mb-5",style:{fontFamily:T.sans,fontSize:12.5,color:T.faint,letterSpacing:"0.01em"},"data-gufi-src":"components/Tienda.tsx:267"},shownCount," ",shownCount===1?t("servicio disponible","service available"):t("servicios disponibles","services available")),loading?__gh("div",{className:"grid sm:grid-cols-2 lg:grid-cols-3 gap-5","data-gufi-src":"components/Tienda.tsx:274"},Array.from({length:6}).map((_,i)=>__gh(SkeletonCard,{key:i}))):error&&productos.length===0?__gh("div",{className:"rounded-[26px] flex flex-col items-center text-center px-8 py-16",style:{border:`1px dashed ${T.line}`,background:T.card},"data-gufi-src":"components/Tienda.tsx:280"},__gh(Vieira,{size:46,color:T.stoneSoft}),__gh("p",{className:"mt-4",style:{fontFamily:T.serif,fontSize:22,fontWeight:500,color:T.ink},"data-gufi-src":"components/Tienda.tsx:282"},t("No hemos podido cargar los servicios","We couldn't load the services")),__gh("p",{className:"mt-2",style:{fontFamily:T.sans,fontSize:14.5,lineHeight:1.55,color:T.muted,maxWidth:340},"data-gufi-src":"components/Tienda.tsx:283"},t("Es un problema temporal de conexi\xF3n, no es que no haya disponibilidad. Vuelve a intentarlo o escr\xEDbenos por WhatsApp.","It's a temporary connection problem, not a lack of availability. Try again or message us on WhatsApp.")),__gh("button",{onClick:()=>onRetry&&onRetry(),className:"mt-5 rounded-full px-6 py-3 transition-transform active:scale-[0.98]",style:{background:T.ink,color:"#FBF7EF",fontFamily:T.sans,fontSize:14.5,fontWeight:600},"data-gufi-src":"components/Tienda.tsx:286"},t("Reintentar","Try again"))):filtered.length===0?__gh("div",{className:"rounded-[26px] flex flex-col items-center text-center px-8 py-16",style:{border:`1px dashed ${T.line}`,background:T.card},"data-gufi-src":"components/Tienda.tsx:292"},__gh(Vieira,{size:46,color:T.stoneSoft}),__gh("p",{className:"mt-4",style:{fontFamily:T.serif,fontSize:22,fontWeight:500,color:T.ink},"data-gufi-src":"components/Tienda.tsx:294"},t("No hay servicios en esta categor\xEDa","No services in this category")),__gh("p",{className:"mt-2",style:{fontFamily:T.sans,fontSize:14.5,lineHeight:1.55,color:T.muted,maxWidth:300},"data-gufi-src":"components/Tienda.tsx:295"},t("Prueba con otra opci\xF3n o descubre todos nuestros servicios del Camino.","Try another option or discover all our Camino services.")),__gh("button",{onClick:()=>setCat("all"),className:"mt-5 rounded-full px-6 py-3 transition-transform active:scale-[0.98]",style:{background:T.ink,color:"#FBF7EF",fontFamily:T.sans,fontSize:14.5,fontWeight:600},"data-gufi-src":"components/Tienda.tsx:298"},t("Ver todos los servicios","View all services"))):__gh("div",{className:"grid sm:grid-cols-2 lg:grid-cols-3 gap-5","data-gufi-src":"components/Tienda.tsx:304"},filtered.map((p,i)=>__gh(ProductCard,{key:p.id,p,i,onOpen})))))}var import_framer_motion7=require("framer-motion");function ComoFunciona(){let reduce=(0,import_framer_motion7.useReducedMotion)(),{t,L}=useLang(),last=PASOS.length-1;return __gh("section",{id:"como",className:"relative overflow-hidden",style:{background:T.espresso,scrollMarginTop:80},"data-gufi-src":"components/ComoFunciona.tsx:13"},__gh("div",{className:"absolute inset-0 opacity-[0.06]",style:{backgroundImage:"radial-gradient(circle at 1px 1px, #fff 1px, transparent 0)",backgroundSize:"26px 26px"},"data-gufi-src":"components/ComoFunciona.tsx:15"}),__gh("div",{className:"absolute inset-0 pointer-events-none",style:{background:"radial-gradient(90% 60% at 82% 8%, rgba(239,230,69,0.10), transparent 60%)"},"data-gufi-src":"components/ComoFunciona.tsx:17"}),__gh("div",{className:"relative mx-auto px-6 py-16 sm:py-20 lg:py-32",style:{maxWidth:1240},"data-gufi-src":"components/ComoFunciona.tsx:19"},__gh(Reveal,null,__gh("div",{className:"max-w-2xl","data-gufi-src":"components/ComoFunciona.tsx:21"},__gh(Eyebrow,{color:T.amberSoft},t("As\xED de sencillo","It's this simple")),__gh("h2",{className:"mt-5",style:{fontFamily:T.serif,fontWeight:300,fontSize:"clamp(30px,4.6vw,60px)",lineHeight:1.04,letterSpacing:"-0.02em",color:"#FDFBF6"},"data-gufi-src":"components/ComoFunciona.tsx:23"},t("De tu coche a Compostela","From your car to Compostela"),__gh("br",{"data-gufi-src":"components/ComoFunciona.tsx:24"}),__gh("span",{style:{fontStyle:"italic",fontWeight:500},"data-gufi-src":"components/ComoFunciona.tsx:24"},t("en cuatro pasos","in four steps"))))),__gh("div",{className:"relative mt-12 sm:mt-16 lg:mt-20","data-gufi-src":"components/ComoFunciona.tsx:29"},__gh("div",{className:"grid lg:grid-cols-4 gap-y-11 lg:gap-x-6","data-gufi-src":"components/ComoFunciona.tsx:30"},PASOS.map((p,i)=>__gh(Reveal,{key:i,delay:i*.12,className:"relative flex items-start gap-5 lg:flex-col lg:items-center lg:text-center lg:gap-0"},i__gh(Reveal,{key:i,delay:i%4*.06,className:"mb-3 sm:mb-4 break-inside-avoid"},__gh("figure",{className:"group relative overflow-hidden rounded-2xl",style:{border:`1px solid ${T.line}`},"data-gufi-src":"components/Galeria.tsx:50"},__gh("img",{src,alt:t("Peregrinos en el Camino de Santiago","Pilgrims on the Camino de Santiago"),loading:"lazy",className:"w-full transition-transform duration-[1400ms] group-hover:scale-[1.06]",style:{aspectRatio:RATIOS[i%RATIOS.length],objectFit:"cover",display:"block",willChange:"transform"},"data-gufi-src":"components/Galeria.tsx:51"}),__gh("figcaption",{className:"absolute inset-0 flex items-end p-4 opacity-0 group-hover:opacity-100 transition-opacity duration-500",style:{background:"linear-gradient(180deg, rgba(20,17,12,0) 45%, rgba(20,17,12,0.55) 100%)"},"data-gufi-src":"components/Galeria.tsx:59"},__gh("span",{className:"flex items-center gap-2 translate-y-2 group-hover:translate-y-0 transition-transform duration-500","data-gufi-src":"components/Galeria.tsx:61"},__gh(Vieira,{size:16,color:T.amberSoft}),__gh("span",{style:{fontFamily:T.sans,fontSize:11.5,fontWeight:600,letterSpacing:"0.14em",textTransform:"uppercase",color:"#FDFBF6"},"data-gufi-src":"components/Galeria.tsx:63"},"Buen Camino")))))))))}var import_react7=require("react"),import_framer_motion9=require("framer-motion"),import_lucide_react7=require("lucide-react");function FAQ2(){let[open,setOpen]=(0,import_react7.useState)(0),{t,L}=useLang();return __gh("section",{id:"faq",style:{background:T.paper,scrollMarginTop:80},"data-gufi-src":"components/FAQ.tsx:12"},__gh("div",{className:"mx-auto px-6 py-16 sm:py-20 lg:py-32",style:{maxWidth:1160},"data-gufi-src":"components/FAQ.tsx:13"},__gh("div",{className:"grid lg:grid-cols-[0.82fr_1.18fr] gap-10 sm:gap-12 lg:gap-16","data-gufi-src":"components/FAQ.tsx:14"},__gh(Reveal,null,__gh("div",{className:"lg:sticky lg:top-24","data-gufi-src":"components/FAQ.tsx:17"},__gh(Eyebrow,null,t("Preguntas frecuentes","Frequently asked questions")),__gh("h2",{className:"mt-5",style:{fontFamily:T.serif,fontWeight:300,fontSize:"clamp(30px,4vw,50px)",lineHeight:1.05,letterSpacing:"-0.02em",color:T.ink},"data-gufi-src":"components/FAQ.tsx:19"},t("Todo lo que","Everything you"),__gh("br",{"data-gufi-src":"components/FAQ.tsx:20"}),t("necesitas saber","need to know")),__gh("p",{className:"mt-5",style:{fontFamily:T.sans,fontSize:16,lineHeight:1.6,color:T.muted,maxWidth:"34ch"},"data-gufi-src":"components/FAQ.tsx:22"},t("Resolvemos las dudas m\xE1s habituales. Si te queda cualquier cosa, hablamos cuando quieras.","We answer the most common questions. If anything's still unclear, let's talk whenever you like.")),__gh("div",{className:"mt-8 rounded-2xl p-5",style:{background:T.paper2,border:`1px solid ${T.line}`},"data-gufi-src":"components/FAQ.tsx:26"},__gh("div",{style:{fontFamily:T.sans,fontSize:13.5,fontWeight:600,color:T.ink},"data-gufi-src":"components/FAQ.tsx:27"},t("\xBFOtra pregunta?","Another question?")),__gh("div",{className:"mt-3.5 flex flex-col gap-2.5","data-gufi-src":"components/FAQ.tsx:28"},__gh("a",{href:wa(t("Hola, tengo una consulta sobre vuestros servicios del Camino.","Hi, I have a question about your Camino services.")),target:"_blank",rel:"noopener noreferrer",className:"group inline-flex items-center gap-2.5 transition-colors",style:{fontFamily:T.sans,fontSize:14,color:T.ink2},"data-gufi-src":"components/FAQ.tsx:29"},__gh("span",{className:"grid place-items-center rounded-full shrink-0 transition-colors duration-300 group-hover:brightness-95",style:{width:34,height:34,background:T.forest},"data-gufi-src":"components/FAQ.tsx:31"},__gh(import_lucide_react7.MessageCircle,{size:16,color:"#FDFBF6"})),t("Escr\xEDbenos por WhatsApp","Message us on WhatsApp")),__gh("a",{href:`tel:+${CONTACT.telPrincipalRaw}`,className:"group inline-flex items-center gap-2.5 transition-colors",style:{fontFamily:T.sans,fontSize:14,color:T.ink2},"data-gufi-src":"components/FAQ.tsx:36"},__gh("span",{className:"grid place-items-center rounded-full shrink-0",style:{width:34,height:34,background:T.sand},"data-gufi-src":"components/FAQ.tsx:38"},__gh(import_lucide_react7.Phone,{size:15,color:T.stoneDeep})),CONTACT.telPrincipal))))),__gh("div",{className:"flex flex-col","data-gufi-src":"components/FAQ.tsx:49"},FAQ.map((it,i)=>{let isOpen=open===i;return __gh(Reveal,{key:i,delay:i*.05},__gh("div",{style:{borderTop:`1px solid ${T.line}`},"data-gufi-src":"components/FAQ.tsx:54"},__gh("button",{onClick:()=>setOpen(isOpen?null:i),"aria-expanded":isOpen,className:"group w-full flex items-center justify-between gap-6 py-6 text-left","data-gufi-src":"components/FAQ.tsx:55"},__gh("span",{className:"transition-colors duration-200",style:{fontFamily:T.serif,fontSize:"clamp(18px,2.2vw,23px)",fontWeight:500,color:isOpen?T.ink:T.ink2,lineHeight:1.25},"data-gufi-src":"components/FAQ.tsx:60"},L(it.q)),__gh("span",{className:"grid place-items-center rounded-full shrink-0 transition-all duration-300",style:{width:34,height:34,background:isOpen?T.ink:T.sand,transform:isOpen?"rotate(45deg)":"none"},"data-gufi-src":"components/FAQ.tsx:66"},__gh(import_lucide_react7.Plus,{size:17,color:isOpen?"#FBF7EF":T.stoneDeep}))),__gh(import_framer_motion9.AnimatePresence,{initial:!1},isOpen&&__gh(import_framer_motion9.motion.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{height:{duration:.36,ease:T.ease},opacity:{duration:.28,ease:T.ease}},className:"overflow-hidden"},__gh("p",{className:"pb-7 pr-4 sm:pr-14",style:{fontFamily:T.sans,fontSize:16,lineHeight:1.64,color:T.muted},"data-gufi-src":"components/FAQ.tsx:82"},L(it.a))))))}),__gh("div",{style:{borderTop:`1px solid ${T.line}`},"data-gufi-src":"components/FAQ.tsx:90"})))))}var import_lucide_react8=require("lucide-react");var WA_GREEN="#25D366",todayIdx=(new Date().getDay()+6)%7;function Contacto(){let{t,L}=useLang(),mapsDir=`https://www.google.com/maps/dir/?api=1&destination=${encodeURIComponent(CONTACT.direccion)}`,info=[{icon:import_lucide_react8.Phone,label:t("Tel\xE9fono","Phone"),value:CONTACT.telPrincipal,href:`tel:+${CONTACT.telPrincipalRaw}`},{icon:import_lucide_react8.Phone,label:t("Tambi\xE9n","Also"),value:CONTACT.telSecundario,href:`tel:+${CONTACT.telSecundarioRaw}`},{icon:import_lucide_react8.Mail,label:t("Email","Email"),value:CONTACT.email,href:`mailto:${CONTACT.email}`},{icon:import_lucide_react8.MapPin,label:t("Direcci\xF3n","Address"),value:"R\xFAa Gran V\xEDa 57-63, Sarria",href:mapsDir}];return __gh("section",{id:"contacto",style:{background:T.paper2,scrollMarginTop:80},"data-gufi-src":"components/Contacto.tsx:23"},__gh("div",{className:"mx-auto px-6 py-20 sm:py-24 lg:py-32",style:{maxWidth:1240},"data-gufi-src":"components/Contacto.tsx:24"},__gh("div",{className:"grid lg:grid-cols-2 gap-12 lg:gap-20 items-start","data-gufi-src":"components/Contacto.tsx:25"},__gh("div",{"data-gufi-src":"components/Contacto.tsx:27"},__gh(Reveal,null,__gh(Eyebrow,null,t("Estamos en Sarria","We are in Sarria")),__gh("h2",{className:"mt-5",style:{fontFamily:T.serif,fontWeight:300,fontSize:"clamp(32px,4.4vw,56px)",lineHeight:1.03,letterSpacing:"-0.02em",color:T.ink},"data-gufi-src":"components/Contacto.tsx:30"},t("Hablemos de","Let's talk about"),__gh("br",{"data-gufi-src":"components/Contacto.tsx:31"}),__gh("span",{style:{fontStyle:"italic",fontWeight:500},"data-gufi-src":"components/Contacto.tsx:31"},t("tu Camino","your Camino"))),__gh("p",{className:"mt-5",style:{fontFamily:T.sans,fontSize:16.5,lineHeight:1.6,color:T.ink2,maxWidth:460},"data-gufi-src":"components/Contacto.tsx:33"},t("\xBFDudas con las fechas, el veh\xEDculo o el equipaje? Escr\xEDbenos por WhatsApp y te respondemos r\xE1pido, o ll\xE1manos directamente.","Questions about dates, the vehicle or your luggage? Message us on WhatsApp and we\u2019ll reply fast, or just give us a call."))),__gh(Reveal,{delay:.08},__gh("div",{className:"mt-9 grid sm:grid-cols-2 gap-3.5","data-gufi-src":"components/Contacto.tsx:39"},info.map((c,i)=>__gh("a",{key:i,href:c.href,target:c.href.startsWith("http")?"_blank":void 0,rel:c.href.startsWith("http")?"noopener noreferrer":void 0,className:"group relative flex items-start gap-3.5 rounded-2xl p-[18px] border outline-none transition-all duration-300 hover:-translate-y-0.5 hover:shadow-[0_18px_44px_-26px_rgba(33,30,24,0.55)] border-[rgba(33,30,24,0.1)] hover:border-[rgba(140,122,88,0.55)] focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[#8C7A58]",style:{background:T.card},"data-gufi-src":"components/Contacto.tsx:41"},__gh("span",{className:"grid place-items-center rounded-xl shrink-0 transition-all duration-300 group-hover:scale-105",style:{width:42,height:42,background:T.sand,boxShadow:"inset 0 0 0 1px rgba(140,122,88,0.2)"},"data-gufi-src":"components/Contacto.tsx:49"},__gh(c.icon,{size:17,color:T.stoneDeep})),__gh("div",{className:"min-w-0 pr-5 flex-1","data-gufi-src":"components/Contacto.tsx:52"},__gh("div",{style:{fontFamily:T.sans,fontSize:11,fontWeight:700,letterSpacing:"0.12em",textTransform:"uppercase",color:T.faint},"data-gufi-src":"components/Contacto.tsx:53"},c.label),__gh("div",{style:{fontFamily:T.sans,fontSize:15,fontWeight:600,color:T.ink,marginTop:3,lineHeight:1.3,wordBreak:"break-word",fontVariantNumeric:"tabular-nums"},"data-gufi-src":"components/Contacto.tsx:54"},c.value)),__gh(import_lucide_react8.ArrowUpRight,{size:15,color:T.stone,className:"absolute right-4 top-4 opacity-0 -translate-y-0.5 transition-all duration-300 group-hover:opacity-100 group-hover:translate-y-0"}))))),__gh(Reveal,{delay:.14},__gh("div",{className:"mt-3.5 rounded-2xl p-5",style:{background:T.card,border:`1px solid ${T.line}`},"data-gufi-src":"components/Contacto.tsx:63"},__gh("div",{className:"flex flex-wrap items-center gap-x-2 gap-y-2 pb-3 mb-1",style:{borderBottom:`1px solid ${T.line2}`},"data-gufi-src":"components/Contacto.tsx:64"},__gh(import_lucide_react8.Clock,{size:16,color:T.stoneDeep}),__gh("span",{style:{fontFamily:T.sans,fontSize:12.5,fontWeight:700,letterSpacing:"0.08em",textTransform:"uppercase",color:T.ink},"data-gufi-src":"components/Contacto.tsx:66"},t("Horario de oficina","Office hours")),__gh("span",{className:"ml-auto inline-flex items-center gap-1.5 rounded-full px-2.5 py-1",style:{background:"rgba(60,69,53,0.1)",color:T.forest,fontFamily:T.sans,fontSize:11,fontWeight:700},"data-gufi-src":"components/Contacto.tsx:67"},__gh("span",{className:"rounded-full",style:{width:5,height:5,background:T.forest},"data-gufi-src":"components/Contacto.tsx:68"})," ",t("Reservas 24 h online","24 h online booking"))),__gh("div",{className:"grid grid-cols-1 gap-0.5 mt-2","data-gufi-src":"components/Contacto.tsx:71"},HORARIO.map(([d,h],i)=>{let isToday=i===todayIdx;return __gh("div",{key:i,className:"flex items-center justify-between rounded-lg px-2 py-1.5 transition-colors",style:{background:isToday?"rgba(60,69,53,0.07)":"transparent"},"data-gufi-src":"components/Contacto.tsx:75"},__gh("span",{className:"flex items-center gap-2",style:{fontFamily:T.sans,fontSize:13.5,fontWeight:isToday?700:400,color:isToday?T.ink:T.ink2},"data-gufi-src":"components/Contacto.tsx:76"},isToday&&__gh("span",{className:"rounded-full",style:{width:6,height:6,background:T.forest},"data-gufi-src":"components/Contacto.tsx:77"}),!isToday&&__gh("span",{style:{width:6,height:6},"data-gufi-src":"components/Contacto.tsx:78"}),L(d),isToday&&__gh("span",{style:{fontSize:10.5,fontWeight:700,color:T.forest,letterSpacing:"0.06em"},"data-gufi-src":"components/Contacto.tsx:79"},t("\xB7 HOY","\xB7 TODAY"))),__gh("span",{style:{fontFamily:T.sans,fontSize:13.5,fontWeight:600,color:isToday?T.ink:T.ink,fontVariantNumeric:"tabular-nums"},"data-gufi-src":"components/Contacto.tsx:81"},h))}))))),__gh(Reveal,{delay:.1},__gh("div",{className:"rounded-3xl overflow-hidden",style:{background:T.espresso,boxShadow:"0 40px 80px -50px rgba(0,0,0,0.6)",border:"1px solid rgba(251,247,239,0.08)"},"data-gufi-src":"components/Contacto.tsx:92"},__gh("div",{style:{height:3,background:`linear-gradient(90deg, ${WA_GREEN}, ${T.amber})`},"data-gufi-src":"components/Contacto.tsx:94"}),__gh("div",{className:"p-6 sm:p-8 lg:p-10","data-gufi-src":"components/Contacto.tsx:95"},__gh("div",{className:"flex items-center gap-3 mb-6","data-gufi-src":"components/Contacto.tsx:96"},__gh("span",{className:"grid place-items-center rounded-full shrink-0",style:{width:48,height:48,background:WA_GREEN,boxShadow:"0 8px 22px -8px rgba(37,211,102,0.8)"},"data-gufi-src":"components/Contacto.tsx:97"},__gh(WhatsAppGlyph,{size:26,color:"#fff"})),__gh("div",{className:"min-w-0","data-gufi-src":"components/Contacto.tsx:100"},__gh("div",{style:{fontFamily:T.serif,fontSize:21,fontWeight:500,color:"#FDFBF6"},"data-gufi-src":"components/Contacto.tsx:101"},t("\xBFTe ayudamos?","Need a hand?")),__gh("div",{className:"flex items-center gap-1.5",style:{fontFamily:T.sans,fontSize:12.5,color:"rgba(253,251,246,0.6)"},"data-gufi-src":"components/Contacto.tsx:102"},__gh("span",{className:"rounded-full",style:{width:6,height:6,background:"#4ade80"},"data-gufi-src":"components/Contacto.tsx:103"})," ",t("Normalmente respondemos en minutos","We usually reply within minutes")))),__gh("p",{className:"mb-5",style:{fontFamily:T.sans,fontSize:15,lineHeight:1.6,color:"rgba(253,251,246,0.72)"},"data-gufi-src":"components/Contacto.tsx:108"},t("Escr\xEDbenos por WhatsApp y resolvemos tus dudas al momento: fechas, veh\xEDculo, equipaje o cualquier detalle de tu Camino.","Message us on WhatsApp and we\u2019ll sort out your questions right away: dates, vehicle, luggage or any detail of your Camino.")),__gh("a",{href:wa(t("Hola OK The Way \u{1F44B}, me gustar\xEDa m\xE1s informaci\xF3n sobre vuestros servicios para el Camino.","Hi OK The Way \u{1F44B}, I\u2019d like more information about your services for the Camino.")),target:"_blank",rel:"noopener noreferrer",className:"inline-flex w-full items-center justify-center gap-2.5 rounded-xl py-4 outline-none transition-transform duration-200 hover:-translate-y-0.5 active:scale-[0.98] focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[#F1EA6A]",style:{background:WA_GREEN,color:"#0b3d20",fontFamily:T.sans,fontSize:16,fontWeight:700,boxShadow:"0 12px 28px -12px rgba(37,211,102,0.7)"},"data-gufi-src":"components/Contacto.tsx:111"},__gh(WhatsAppGlyph,{size:20,color:"#0b3d20"})," ",t("Escribir por WhatsApp","Message us on WhatsApp")),__gh("div",{className:"my-5 flex items-center gap-3","data-gufi-src":"components/Contacto.tsx:117"},__gh("span",{className:"flex-1",style:{height:1,background:"rgba(251,247,239,0.12)"},"data-gufi-src":"components/Contacto.tsx:118"}),__gh("span",{style:{fontFamily:T.sans,fontSize:11.5,letterSpacing:"0.14em",textTransform:"uppercase",color:"rgba(253,251,246,0.4)"},"data-gufi-src":"components/Contacto.tsx:119"},"o"),__gh("span",{className:"flex-1",style:{height:1,background:"rgba(251,247,239,0.12)"},"data-gufi-src":"components/Contacto.tsx:120"})),__gh("div",{className:"grid grid-cols-1 gap-2.5","data-gufi-src":"components/Contacto.tsx:123"},__gh("a",{href:`tel:+${CONTACT.telPrincipalRaw}`,className:"flex items-center justify-between rounded-xl px-4 py-3.5 outline-none transition-colors hover:bg-[rgba(251,247,239,0.1)] focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[#F1EA6A]",style:{background:"rgba(251,247,239,0.06)",border:"1px solid rgba(251,247,239,0.14)"},"data-gufi-src":"components/Contacto.tsx:124"},__gh("span",{className:"flex items-center gap-2.5",style:{fontFamily:T.sans,fontSize:14,color:"#FDFBF6"},"data-gufi-src":"components/Contacto.tsx:127"},__gh(import_lucide_react8.Phone,{size:16,color:T.amberSoft})," ",t("Llamar","Call")," ",CONTACT.telPrincipal),__gh(import_lucide_react8.ArrowUpRight,{size:16,color:"rgba(253,251,246,0.5)"})),__gh("a",{href:mapsDir,target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-between rounded-xl px-4 py-3.5 outline-none transition-colors hover:bg-[rgba(251,247,239,0.1)] focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[#F1EA6A]",style:{background:"rgba(251,247,239,0.06)",border:"1px solid rgba(251,247,239,0.14)"},"data-gufi-src":"components/Contacto.tsx:132"},__gh("span",{className:"flex items-center gap-2.5",style:{fontFamily:T.sans,fontSize:14,color:"#FDFBF6"},"data-gufi-src":"components/Contacto.tsx:135"},__gh(import_lucide_react8.Navigation,{size:16,color:T.amberSoft})," ",t("C\xF3mo llegar a Sarria","Directions to Sarria")),__gh(import_lucide_react8.ArrowUpRight,{size:16,color:"rgba(253,251,246,0.5)"})))))))))}var import_lucide_react9=require("lucide-react");var link="py-1 transition-colors duration-200 outline-none hover:text-white focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[#F1EA6A] rounded";function Footer({onLegal,onNavigate}){let{t,L}=useLang(),mapsDir=`https://www.google.com/maps/dir/?api=1&destination=${encodeURIComponent(CONTACT.direccion)}`;return __gh("footer",{style:{background:T.espresso,color:"#EFE7D6",paddingBottom:"env(safe-area-inset-bottom, 0px)"},"data-gufi-src":"components/Footer.tsx:15"},__gh("div",{"aria-hidden":"true",style:{height:2,background:`linear-gradient(90deg, transparent, ${T.stone}, ${T.amber}, ${T.stone}, transparent)`,opacity:.5},"data-gufi-src":"components/Footer.tsx:17"}),__gh("div",{className:"mx-auto px-6 pt-16 sm:pt-20 pb-28 md:pb-12",style:{maxWidth:1240},"data-gufi-src":"components/Footer.tsx:18"},__gh("div",{className:"grid lg:grid-cols-[1.6fr_1fr_1fr_1.2fr] gap-10 sm:gap-12 lg:gap-8","data-gufi-src":"components/Footer.tsx:19"},__gh("div",{"data-gufi-src":"components/Footer.tsx:20"},__gh("div",{className:"mb-5","data-gufi-src":"components/Footer.tsx:21"},__gh(OKLogo,{height:40,ink:"#FBF7EF"})),__gh("p",{style:{fontFamily:T.sans,fontSize:14.5,lineHeight:1.65,color:"rgba(239,231,214,0.62)",maxWidth:330},"data-gufi-src":"components/Footer.tsx:24"},t(`Parking en Sarria y servicios para el Camino de Santiago. Especialistas desde ${BRAND.since}. Tu coche seguro, tu equipaje en destino, tu Camino ligero.`,`Parking in Sarria and services for the Camino de Santiago. Specialists since ${BRAND.since}. Your car safe, your luggage at its destination, your Camino light.`))),__gh("div",{"data-gufi-src":"components/Footer.tsx:32"},__gh("h4",{style:{fontFamily:T.sans,fontSize:12,fontWeight:700,letterSpacing:"0.14em",textTransform:"uppercase",color:"rgba(239,231,214,0.5)",marginBottom:16},"data-gufi-src":"components/Footer.tsx:33"},t("Explora","Explore")),__gh("ul",{className:"flex flex-col gap-2.5","data-gufi-src":"components/Footer.tsx:34"},NAV.map(n=>__gh("li",{key:n.id,"data-gufi-src":"components/Footer.tsx:36"},__gh("button",{onClick:()=>onNavigate(n.id),className:`group inline-flex items-center gap-1.5 ${link}`,style:{fontFamily:T.sans,fontSize:14.5,color:"rgba(239,231,214,0.78)"},"data-gufi-src":"components/Footer.tsx:37"},__gh("span",{className:"inline-block w-0 overflow-hidden transition-all duration-300 group-hover:w-2.5",style:{color:T.amber},"data-gufi-src":"components/Footer.tsx:38"},"\u203A"),L(n.label)))))),__gh("div",{"data-gufi-src":"components/Footer.tsx:46"},__gh("h4",{style:{fontFamily:T.sans,fontSize:12,fontWeight:700,letterSpacing:"0.14em",textTransform:"uppercase",color:"rgba(239,231,214,0.5)",marginBottom:16},"data-gufi-src":"components/Footer.tsx:47"},t("Legal","Legal")),__gh("ul",{className:"flex flex-col gap-2.5","data-gufi-src":"components/Footer.tsx:48"},__gh("li",{"data-gufi-src":"components/Footer.tsx:49"},__gh("button",{onClick:()=>onLegal("privacidad"),className:link,style:{fontFamily:T.sans,fontSize:14.5,color:"rgba(239,231,214,0.78)"},"data-gufi-src":"components/Footer.tsx:49"},t("Pol\xEDtica de privacidad","Privacy policy"))),__gh("li",{"data-gufi-src":"components/Footer.tsx:50"},__gh("button",{onClick:()=>onLegal("terminos"),className:link,style:{fontFamily:T.sans,fontSize:14.5,color:"rgba(239,231,214,0.78)"},"data-gufi-src":"components/Footer.tsx:50"},t("T\xE9rminos y condiciones","Terms & conditions"))))),__gh("div",{"data-gufi-src":"components/Footer.tsx:54"},__gh("h4",{style:{fontFamily:T.sans,fontSize:12,fontWeight:700,letterSpacing:"0.14em",textTransform:"uppercase",color:"rgba(239,231,214,0.5)",marginBottom:16},"data-gufi-src":"components/Footer.tsx:55"},t("Contacto","Contact")),__gh("ul",{className:"flex flex-col gap-3","data-gufi-src":"components/Footer.tsx:56"},__gh("li",{"data-gufi-src":"components/Footer.tsx:57"},__gh("a",{href:`tel:+${CONTACT.telPrincipalRaw}`,className:`flex items-center gap-2.5 ${link}`,style:{fontFamily:T.sans,fontSize:14.5,color:"rgba(239,231,214,0.78)"},"data-gufi-src":"components/Footer.tsx:57"},__gh(import_lucide_react9.Phone,{size:15,color:T.amberSoft,className:"shrink-0"})," ",CONTACT.telPrincipal)),__gh("li",{"data-gufi-src":"components/Footer.tsx:58"},__gh("a",{href:`mailto:${CONTACT.email}`,className:`flex items-center gap-2.5 ${link}`,style:{fontFamily:T.sans,fontSize:14.5,color:"rgba(239,231,214,0.78)"},"data-gufi-src":"components/Footer.tsx:58"},__gh(import_lucide_react9.Mail,{size:15,color:T.amberSoft,className:"shrink-0"})," ",CONTACT.email)),__gh("li",{"data-gufi-src":"components/Footer.tsx:59"},__gh("a",{href:mapsDir,target:"_blank",rel:"noopener noreferrer",className:`group flex items-start gap-2.5 ${link}`,style:{fontFamily:T.sans,fontSize:14.5,color:"rgba(239,231,214,0.78)"},"data-gufi-src":"components/Footer.tsx:60"},__gh(import_lucide_react9.MapPin,{size:15,color:T.amberSoft,className:"mt-0.5 shrink-0"}),__gh("span",{"data-gufi-src":"components/Footer.tsx:62"},CONTACT.direccion," ",__gh(import_lucide_react9.ArrowUpRight,{size:13,className:"inline-block opacity-0 -translate-y-0.5 transition-all duration-200 group-hover:opacity-100 group-hover:translate-y-0"}))))))),__gh("div",{className:"mt-16 pt-7 flex flex-col md:flex-row items-center justify-between gap-3",style:{borderTop:"1px solid rgba(251,247,239,0.12)"},"data-gufi-src":"components/Footer.tsx:69"},__gh("p",{style:{fontFamily:T.sans,fontSize:12.5,color:"rgba(239,231,214,0.5)"},"data-gufi-src":"components/Footer.tsx:70"},"\xA9 ",new Date().getFullYear()," ",BRAND.name," \xB7 ",BRAND.razonSocial),__gh("p",{className:"inline-flex items-center gap-2",style:{fontFamily:T.sans,fontSize:12.5,color:"rgba(239,231,214,0.5)"},"data-gufi-src":"components/Footer.tsx:71"},__gh(Vieira,{size:14,color:T.amberSoft})," Buen Camino \xB7 Sarria \xB7 Lugo \xB7 Galicia"))))}var import_react8=require("react"),import_framer_motion10=require("framer-motion");var WA_GREEN2="#25D366";function WhatsAppFab(){let{t}=useLang(),[show,setShow]=(0,import_react8.useState)(!1),reduce=(0,import_framer_motion10.useReducedMotion)();return(0,import_react8.useEffect)(()=>{let onScroll=()=>{let y=window.scrollY,nearBottom=y+window.innerHeight>document.documentElement.scrollHeight-720;setShow(y>600&&!nearBottom)};return onScroll(),window.addEventListener("scroll",onScroll,{passive:!0}),()=>window.removeEventListener("scroll",onScroll)},[]),__gh(import_framer_motion10.AnimatePresence,null,show&&__gh(import_framer_motion10.motion.div,{className:"fixed z-[80]",style:{right:"calc(20px + env(safe-area-inset-right, 0px))",bottom:"calc(20px + env(safe-area-inset-bottom, 0px))"},initial:{scale:0,opacity:0,y:8},animate:{scale:1,opacity:1,y:0},exit:{scale:0,opacity:0},transition:reduce?{duration:.2}:{type:"spring",stiffness:320,damping:22}},!reduce&&__gh(import_framer_motion10.motion.span,{"aria-hidden":"true",className:"absolute rounded-full pointer-events-none",style:{inset:0,background:WA_GREEN2},initial:{opacity:.32,scale:1},animate:{opacity:0,scale:1.65},transition:{duration:2.6,repeat:1/0,ease:"easeOut"}}),__gh("a",{href:wa(t("Hola OK The Way \u{1F44B}, me gustar\xEDa m\xE1s informaci\xF3n sobre vuestros servicios en el Camino.","Hi OK The Way \u{1F44B}, I\u2019d like more information about your services on the Camino.")),target:"_blank",rel:"noopener noreferrer","aria-label":t("Escr\xEDbenos por WhatsApp","Message us on WhatsApp"),className:"relative flex items-center justify-center sm:justify-start gap-2.5 rounded-full h-14 w-14 sm:h-auto sm:w-auto sm:pl-4 sm:pr-5 sm:py-3.5 outline-none transition-transform duration-200 hover:scale-[1.04] active:scale-95 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[#181917]",style:{background:WA_GREEN2,color:"#0b3d20",boxShadow:"0 18px 38px -14px rgba(37,211,102,0.75), 0 2px 8px rgba(0,0,0,0.12)",fontFamily:T.sans,fontWeight:700,fontSize:14.5},"data-gufi-src":"components/WhatsAppFab.tsx:41"},__gh(WhatsAppGlyph,{size:24,color:"#0b3d20"}),__gh("span",{className:"hidden sm:inline","data-gufi-src":"components/WhatsAppFab.tsx:47"},t("\xBFTe ayudamos?","Need a hand?")))))}var import_react9=require("react"),import_framer_motion11=require("framer-motion"),import_lucide_react10=require("lucide-react");var SUR_RE=/\(\s*\+\s*(\d+(?:[.,]\d+)?)\s*€?\s*\)/,fieldsOf=product=>{let f=product?.opciones?.fields;return Array.isArray(f)?f:[]},optionsByLabel=(fields,vals)=>{let out={};return fields.forEach(f=>{f?.label&&vals[f.key]&&(out[f.label]=vals[f.key])}),out};function priceBreakdown(product,opciones){let base=priceOf(product),opts=opciones&&typeof opciones=="object"?opciones:{},optSurcharge=0;for(let k of Object.keys(opts)){let m=String(opts[k]==null?"":opts[k]).match(SUR_RE);m&&(optSurcharge+=Number(m[1].replace(",",".")))}let seasonSurcharge=0,mult=1;for(let f of fieldsOf(product)){if(!f||!f.label)continue;let v=opts[f.label];if(!v)continue;let rec=Number(f.temporada_recargo);if(rec>0&&Array.isArray(f.temporada_meses)&&f.temporada_meses.length){let mm=String(v).match(/^\d{4}-(\d{2})-\d{2}/);mm&&f.temporada_meses.indexOf(Number(mm[1]))>=0&&(seasonSurcharge+=rec)}if(f.multiplica){let n=parseInt(String(v).replace(/\D/g,""),10);Number.isFinite(n)&&n>=1&&(mult*=Math.min(n,50))}}let surcharge=optSurcharge+seasonSurcharge;return{base,mult,optSurcharge,seasonSurcharge,surcharge,unit:base*mult+surcharge}}var sameMoney=(a,b)=>Math.round(a*100)===Math.round(b*100);function CartDrawer({gufi,open,onClose}){let{t,L}=useLang(),{user}=useAuth(),{items,count,setQty,remove}=useCart(),[step,setStep]=(0,import_react9.useState)("cart"),[f,setF]=(0,import_react9.useState)({nombre:"",email:"",telefono:""}),[emailTouched,setEmailTouched]=(0,import_react9.useState)(!1),[busy,setBusy]=(0,import_react9.useState)(!1),[err,setErr]=(0,import_react9.useState)(null),reduce=(0,import_framer_motion11.useReducedMotion)(),[cuponInput,setCuponInput]=(0,import_react9.useState)(""),[cuponCodigo,setCuponCodigo]=(0,import_react9.useState)(""),[cuponInfo,setCuponInfo]=(0,import_react9.useState)(null),[cuponErr,setCuponErr]=(0,import_react9.useState)(null),[cuponBusy,setCuponBusy]=(0,import_react9.useState)(!1),[avisos,setAvisos]=(0,import_react9.useState)([]),[noDisp,setNoDisp]=(0,import_react9.useState)([]),[motivos,setMotivos]=(0,import_react9.useState)({});(0,import_react9.useEffect)(()=>{if(!open)return;document.documentElement.style.overflow="hidden";let onKey=e=>{e.key==="Escape"&&onClose()};return document.addEventListener("keydown",onKey),()=>{document.documentElement.style.overflow="",document.removeEventListener("keydown",onKey)}},[open,onClose]),(0,import_react9.useEffect)(()=>{items.length===0&&setStep("cart")},[items.length]),(0,import_react9.useEffect)(()=>{open&&user&&setF(prev=>({nombre:prev.nombre||user.nombre||"",email:prev.email||user.email||"",telefono:prev.telefono||user.telefono||""}))},[open,user]);let cartSig=(0,import_react9.useMemo)(()=>JSON.stringify(items.map(i=>[i.producto,i.cantidad,i.opciones])),[items]);(0,import_react9.useEffect)(()=>{if(!open)return;if(!items.length){setNoDisp(prev=>prev.length?[]:prev);return}let cancelled=!1,snapshot4=items.map(i=>({key:i.key,nombre:i.nombre,nombre_en:i.nombre_en,precio:i.precio}));return fetchTarifa(gufi,items.map(i=>({producto:i.producto,cantidad:i.cantidad,opciones:i.opciones}))).then(tarifa=>{if(cancelled||!tarifa||!Array.isArray(tarifa.lineas)||tarifa.lineas.length!==snapshot4.length)return;let updates=[],cambios=[],fuera=[];tarifa.lineas.forEach((l,idx)=>{let prev=snapshot4[idx];if(!l||!l.ok){fuera.push(prev.key);return}let unit=Number(l.precio_unitario);if(!Number.isFinite(unit)||unit<=0){fuera.push(prev.key);return}sameMoney(unit,prev.precio)||(cambios.push({key:prev.key,nombre:prev.nombre,nombre_en:prev.nombre_en,antes:prev.precio,ahora:unit,motivo:""}),updates.push({key:prev.key,precio:unit}))});let fueraId=fuera.join("|");setNoDisp(prevF=>prevF.join("|")===fueraId?prevF:fuera),setMotivos(()=>{let m={};return tarifa.lineas.forEach((l,idx)=>{l&&!l.ok&&l.motivo&&(m[snapshot4[idx].key]=String(l.motivo))}),m}),cambios.length&&(setAvisos(cambios),cartApi.reprice(updates))}).catch(()=>{}),()=>{cancelled=!0}},[open,cartSig,gufi]),(0,import_react9.useEffect)(()=>{open||setAvisos([])},[open]);let bloqueadas=new Set(noDisp),activos=items.filter(i=>!bloqueadas.has(i.key)),total=activos.reduce((s,x)=>s+x.precio*x.cantidad,0),totalCents=activos.reduce((s,x)=>s+Math.round(x.precio*100)*x.cantidad,0);(0,import_react9.useEffect)(()=>{let cancelled=!1;if(!cuponCodigo||totalCents<=0){setCuponInfo(null);return}return setCuponBusy(!0),callAutomation(gufi,"validar_cupon",{codigo:cuponCodigo,subtotalCents:totalCents}).then(r=>{cancelled||(r?.valid?(setCuponInfo({descuentoCents:Number(r.descuentoCents)||0}),setCuponErr(null)):(setCuponInfo(null),setCuponCodigo(""),setCuponErr(r?.mensaje||t("C\xF3digo no v\xE1lido.","Invalid code."))))}).catch(()=>{cancelled||(setCuponInfo(null),setCuponCodigo(""),setCuponErr(t("No hemos podido validar el c\xF3digo. Vuelve a aplicarlo.","We could not validate the code. Please apply it again.")))}).finally(()=>{cancelled||setCuponBusy(!1)}),()=>{cancelled=!0}},[cuponCodigo,totalCents,gufi]);let descuento=cuponInfo?cuponInfo.descuentoCents/100:0,totalFinal=Math.max(0,total-descuento),applyCupon=()=>{let code=cuponInput.trim().toUpperCase();setCuponErr(null),code&&setCuponCodigo(code)},clearCupon=()=>{setCuponCodigo(""),setCuponInput(""),setCuponInfo(null),setCuponErr(null)},validEmail=/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(f.email),telOk=f.telefono.replace(/\D/g,"").length>=6,canPay=!!f.nombre.trim()&&validEmail&&telOk&&activos.length>0&&noDisp.length===0,pay=async()=>{if(setErr(null),noDisp.length){setErr(t("Quita de la reserva los servicios ya no disponibles para continuar.","Please remove the unavailable services to continue."));return}if(!activos.length){setErr(t("Tu reserva est\xE1 vac\xEDa.","Your booking is empty."));return}if(!f.nombre.trim()){setErr(t("Indica tu nombre.","Please enter your name."));return}if(!validEmail){setErr(t("Indica un email v\xE1lido para enviarte la confirmaci\xF3n.","Please enter a valid email so we can send your confirmation."));return}if(!telOk){setErr(t("Indica un tel\xE9fono de contacto v\xE1lido.","Please enter a valid contact phone number."));return}setBusy(!0);try{let order=await callAutomation(gufi,"crear_pedido",{cliente:{nombre:f.nombre,email:f.email,telefono:f.telefono},items:activos.map(i=>({producto:i.producto,cantidad:i.cantidad,variante:"",opciones:i.opciones})),cupon:cuponCodigo||void 0,...user?{clienteId:user.clienteId,clienteToken:user.token}:{}});if(!order?.orderId)throw new Error("No se pudo crear el pedido");let serverCents=Number(order.totalCents),mostradoCents=Math.max(0,totalCents-(cuponInfo?cuponInfo.descuentoCents:0));if(Number.isFinite(serverCents)&&serverCents!==mostradoCents){try{await callAutomation(gufi,"cancelar_pedido",{orderId:order.orderId,email:f.email})}catch{}let nuevo=money(serverCents/100);setErr(t(`El precio de alg\xFAn servicio ha cambiado: el importe correcto es ${nuevo}. Revisa tu reserva y vuelve a continuar.`,`The price of one of the services has changed: the correct amount is ${nuevo}. Please review your booking and continue again.`)),setStep("cart"),setBusy(!1);return}try{sessionStorage.setItem("okw_pending_order",JSON.stringify({id:order.orderId,email:f.email}))}catch{}let base=window.location.origin+window.location.pathname,res=await runCheckout(gufi,{amount:order.totalCents,currency:"eur",productName:"OK The Way \xB7 Reserva del Camino",orderId:order.orderId,customerEmail:f.email,successUrl:`${base}?okw_paid=1&session_id={CHECKOUT_SESSION_ID}`,errorUrl:`${base}?okw_cancel=1`,baseUrl:base});if(res?.url){window.location.href=res.url;return}throw new Error("No se recibi\xF3 la URL de pago")}catch(e){let msg=String(e?.message||e);/completo hasta|fully booked|no puede ser anterior|cannot be in the past|^Falta |^"/i.test(msg)?setErr(msg):/not connected|stripe|connect/i.test(msg)?setErr(t("El pago con tarjeta se est\xE1 activando. Reserva ahora por WhatsApp y lo confirmamos al momento.","Card payment is being activated. Book now via WhatsApp and we will confirm right away.")):setErr(t("No hemos podido iniciar el pago. Int\xE9ntalo de nuevo o escr\xEDbenos por WhatsApp.","We could not start the payment. Please try again or message us on WhatsApp.")),setBusy(!1)}},waCheckout=wa(`${t("Hola OK The Way \u{1F44B}, quiero reservar:","Hi OK The Way \u{1F44B}, I would like to book:")} ${activos.map(i=>`\xB7 ${i.nombre} x${i.cantidad}`).join(` `)} ${t("Total","Total")}: ${money(total)} ${t("Nombre","Name")}: ${f.nombre||"-"} \xB7 Email: ${f.email||"-"}`),emailError=emailTouched&&f.email.length>0&&!validEmail;return __gh(import_framer_motion11.AnimatePresence,null,open&&__gh(__gf,null,__gh(import_framer_motion11.motion.div,{className:"fixed inset-0 z-[100]",style:{background:"rgba(20,17,12,0.5)",backdropFilter:"blur(3px)"},initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onClick:onClose}),__gh(import_framer_motion11.motion.aside,{role:"dialog","aria-modal":"true","aria-label":step==="cart"?t("Tu reserva","Your booking"):t("Tus datos","Your details"),className:"fixed inset-y-0 right-0 z-[101] flex flex-col",style:{width:"min(448px, 100vw)",background:T.paper2,boxShadow:"-30px 0 80px -40px rgba(0,0,0,0.5)"},initial:{x:"100%"},animate:{x:0},exit:{x:"100%"},transition:reduce?{duration:.2}:{type:"spring",stiffness:320,damping:36}},__gh("div",{className:"shrink-0",style:{borderBottom:`1px solid ${T.line}`,background:T.card,paddingTop:"env(safe-area-inset-top, 0px)"},"data-gufi-src":"components/CartDrawer.tsx:219"},__gh("div",{className:"flex items-center justify-between px-5 sm:px-6 py-4 sm:py-5","data-gufi-src":"components/CartDrawer.tsx:220"},__gh("div",{className:"flex items-center gap-2.5 min-w-0","data-gufi-src":"components/CartDrawer.tsx:221"},__gh(import_lucide_react10.ShoppingBag,{size:19,color:T.ink,className:"shrink-0"}),__gh("span",{className:"truncate",style:{fontFamily:T.serif,fontSize:20,fontWeight:500,color:T.ink},"data-gufi-src":"components/CartDrawer.tsx:223"},step==="cart"?t("Tu reserva","Your booking"):t("Tus datos","Your details"))),__gh("button",{onClick:onClose,"aria-label":t("Cerrar","Close"),className:"grid place-items-center rounded-full outline-none transition-colors hover:bg-[rgba(33,30,24,0.06)] focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[#8C7A58] shrink-0",style:{width:44,height:44,border:`1px solid ${T.line}`},"data-gufi-src":"components/CartDrawer.tsx:225"},__gh(import_lucide_react10.X,{size:18}))),items.length>0&&__gh("div",{className:"flex items-center gap-2 px-5 sm:px-6 pb-4","data-gufi-src":"components/CartDrawer.tsx:229"},__gh(Segment,{label:t("Reserva","Booking"),n:1,state:step==="cart"?"active":"done"}),__gh("span",{className:"flex-1",style:{height:2,borderRadius:2,background:step==="form"?T.ink:T.line},"data-gufi-src":"components/CartDrawer.tsx:231"}),__gh(Segment,{label:t("Datos","Details"),n:2,state:step==="form"?"active":"todo"}),__gh("span",{className:"ml-1 rounded-full px-2.5 py-1",style:{background:T.sand,fontFamily:T.sans,fontSize:11.5,fontWeight:700,color:T.stoneDeep,fontVariantNumeric:"tabular-nums"},"data-gufi-src":"components/CartDrawer.tsx:233"},count))),items.length===0?__gh("div",{className:"flex-1 flex flex-col items-center justify-center text-center px-8 gap-4","data-gufi-src":"components/CartDrawer.tsx:239"},__gh("div",{className:"grid place-items-center rounded-full",style:{width:96,height:96,background:T.sand},"data-gufi-src":"components/CartDrawer.tsx:240"},__gh(Vieira,{size:48,color:T.stoneDeep})),__gh("p",{style:{fontFamily:T.serif,fontSize:22,color:T.ink},"data-gufi-src":"components/CartDrawer.tsx:243"},t("Tu reserva est\xE1 vac\xEDa","Your booking is empty")),__gh("p",{style:{fontFamily:T.sans,fontSize:14.5,lineHeight:1.55,color:T.muted,maxWidth:268},"data-gufi-src":"components/CartDrawer.tsx:244"},t("Elige un servicio para empezar tu Camino sin cargas.","Choose a service to start your Camino without the weight.")),__gh("button",{onClick:onClose,className:"mt-2 rounded-full px-6 py-3 outline-none transition-transform hover:-translate-y-0.5 active:scale-[0.98] focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[#8C7A58]",style:{background:T.ink,color:"#FBF7EF",fontFamily:T.sans,fontSize:14.5,fontWeight:600},"data-gufi-src":"components/CartDrawer.tsx:245"},t("Ver servicios","View services"))):__gh(__gf,null,__gh("div",{className:"flex-1 overflow-y-auto px-5 py-4",style:{WebkitOverflowScrolling:"touch",overscrollBehavior:"contain"},"data-gufi-src":"components/CartDrawer.tsx:249"},step==="cart"?__gh("div",{className:"flex flex-col gap-3","data-gufi-src":"components/CartDrawer.tsx:251"},avisos.length>0&&__gh(import_framer_motion11.motion.div,{initial:reduce?!1:{opacity:0,y:-6},animate:{opacity:1,y:0},className:"rounded-2xl p-3.5 flex items-start gap-2.5",style:{background:"rgba(140,122,88,0.10)",border:"1px solid rgba(140,122,88,0.28)"}},__gh(import_lucide_react10.AlertTriangle,{size:16,color:T.stoneDeep,className:"mt-0.5 shrink-0"}),__gh("div",{className:"min-w-0 flex-1","data-gufi-src":"components/CartDrawer.tsx:257"},__gh("p",{style:{fontFamily:T.sans,fontSize:12.5,fontWeight:700,color:T.stoneDeep},"data-gufi-src":"components/CartDrawer.tsx:258"},avisos.length===1?t("Hemos actualizado un precio","We have updated a price"):t("Hemos actualizado algunos precios","We have updated some prices")),__gh("ul",{className:"mt-1 flex flex-col gap-0.5","data-gufi-src":"components/CartDrawer.tsx:263"},avisos.map(a=>__gh("li",{key:a.key,style:{fontFamily:T.sans,fontSize:12,lineHeight:1.45,color:T.ink2},"data-gufi-src":"components/CartDrawer.tsx:265"},L(a.nombre,a.nombre_en),":"," ",__gh("span",{className:"tabular-nums",style:{textDecoration:"line-through",color:T.faint},"data-gufi-src":"components/CartDrawer.tsx:267"},money(a.antes))," ",__gh("span",{className:"tabular-nums",style:{fontWeight:700,color:a.ahorasetAvisos([]),"aria-label":t("Entendido","Got it"),className:"grid place-items-center rounded-lg shrink-0 outline-none transition-colors hover:bg-[rgba(33,30,24,0.06)] focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-[#8C7A58] -mr-1 -mt-1",style:{width:32,height:32},"data-gufi-src":"components/CartDrawer.tsx:274"},__gh(import_lucide_react10.X,{size:14,color:T.muted}))),noDisp.length>0&&__gh("div",{className:"rounded-2xl p-3.5 flex items-start gap-2.5",style:{background:"rgba(178,58,46,0.08)",border:"1px solid rgba(178,58,46,0.2)"},"data-gufi-src":"components/CartDrawer.tsx:280"},__gh(import_lucide_react10.AlertTriangle,{size:16,color:T.terra,className:"mt-0.5 shrink-0"}),__gh("p",{style:{fontFamily:T.sans,fontSize:12.5,lineHeight:1.45,color:T.terra},"data-gufi-src":"components/CartDrawer.tsx:282"},t("Hay servicios que no se pueden reservar tal cual. Qu\xEDtalos para poder continuar.","Some services cannot be booked as they are. Please remove them to continue."))),__gh(import_framer_motion11.AnimatePresence,{initial:!1},items.map(it=>{let meta=catMeta(it.categoria),fuera=bloqueadas.has(it.key);return __gh(import_framer_motion11.motion.div,{key:it.key,layout:!reduce,initial:reduce?!1:{opacity:0,y:8},animate:{opacity:1,y:0},exit:reduce?{opacity:0}:{opacity:0,height:0,marginTop:-12,x:24},transition:{duration:.28,ease:T.ease},className:"rounded-2xl p-4",style:{background:T.card,border:`1px solid ${fuera?"rgba(178,58,46,0.35)":T.line}`,boxShadow:"0 1px 2px rgba(33,30,24,0.03)"}},__gh("div",{className:"flex gap-3.5","data-gufi-src":"components/CartDrawer.tsx:296"},__gh("span",{className:"grid place-items-center rounded-xl shrink-0",style:{width:46,height:46,background:`linear-gradient(135deg, ${meta.from}, ${meta.to})`,boxShadow:`0 8px 18px -10px ${meta.to}`},"data-gufi-src":"components/CartDrawer.tsx:297"},__gh(LucideIcon,{name:meta.icon,size:20,color:"#fff",strokeWidth:1.6})),__gh("div",{className:"flex-1 min-w-0","data-gufi-src":"components/CartDrawer.tsx:300"},__gh("div",{className:"flex items-start justify-between gap-2","data-gufi-src":"components/CartDrawer.tsx:301"},__gh("div",{className:"min-w-0","data-gufi-src":"components/CartDrawer.tsx:302"},__gh("div",{style:{fontFamily:T.sans,fontSize:10,fontWeight:700,letterSpacing:"0.09em",textTransform:"uppercase",color:T.faint},"data-gufi-src":"components/CartDrawer.tsx:303"},L(meta.label)),__gh("h4",{style:{fontFamily:T.sans,fontSize:14.5,fontWeight:600,color:fuera?T.muted:T.ink,lineHeight:1.25,marginTop:1},"data-gufi-src":"components/CartDrawer.tsx:304"},L(it.nombre,it.nombre_en)),fuera&&__gh("div",{className:"mt-1","data-gufi-src":"components/CartDrawer.tsx:306"},__gh("span",{className:"inline-block rounded-full px-2 py-0.5",style:{background:"rgba(178,58,46,0.1)",fontFamily:T.sans,fontSize:10.5,fontWeight:700,color:T.terra},"data-gufi-src":"components/CartDrawer.tsx:307"},t("No se puede reservar","Cannot be booked")),motivos[it.key]&&__gh("div",{className:"mt-1",style:{fontFamily:T.sans,fontSize:11.5,lineHeight:1.4,color:T.terra},"data-gufi-src":"components/CartDrawer.tsx:308"},motivos[it.key]))),__gh("button",{onClick:()=>remove(it.key),"aria-label":t("Quitar servicio","Remove service"),className:"grid place-items-center shrink-0 rounded-lg outline-none transition-colors hover:bg-[rgba(178,58,46,0.08)] focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-[#B23A2E] -mr-1 -mt-1",style:{width:36,height:36},"data-gufi-src":"components/CartDrawer.tsx:312"},__gh(import_lucide_react10.Trash2,{size:15,color:T.faint}))),Object.keys(it.opciones||{}).length>0&&__gh("div",{className:"mt-1.5 flex flex-wrap gap-1","data-gufi-src":"components/CartDrawer.tsx:317"},Object.entries(it.opciones).slice(0,4).map(([k,v])=>__gh("span",{key:k,className:"rounded-full px-2 py-0.5",style:{background:T.sand,fontFamily:T.sans,fontSize:10.5,fontWeight:500,color:T.stoneDeep},"data-gufi-src":"components/CartDrawer.tsx:319"},v))),__gh("div",{className:"mt-2.5 flex items-center justify-between","data-gufi-src":"components/CartDrawer.tsx:323"},__gh("div",{className:"flex items-center rounded-full",style:{border:`1px solid ${T.line}`,background:T.paper2},"data-gufi-src":"components/CartDrawer.tsx:324"},__gh("button",{onClick:()=>setQty(it.key,it.cantidad-1),disabled:it.cantidad<=1,"aria-label":t("Quitar una unidad","Remove one unit"),className:"grid place-items-center rounded-full outline-none transition-colors hover:bg-[rgba(33,30,24,0.05)] disabled:opacity-30 disabled:hover:bg-transparent focus-visible:outline focus-visible:outline-2 focus-visible:outline-[#8C7A58]",style:{width:40,height:40},"data-gufi-src":"components/CartDrawer.tsx:325"},__gh(import_lucide_react10.Minus,{size:13})),__gh("span",{style:{fontFamily:T.sans,fontWeight:700,fontSize:13.5,width:24,textAlign:"center",fontVariantNumeric:"tabular-nums"},"data-gufi-src":"components/CartDrawer.tsx:326"},it.cantidad),__gh("button",{onClick:()=>setQty(it.key,it.cantidad+1),disabled:it.cantidad>=20,"aria-label":t("A\xF1adir una unidad","Add one unit"),className:"grid place-items-center rounded-full outline-none transition-colors hover:bg-[rgba(33,30,24,0.05)] disabled:opacity-30 disabled:hover:bg-transparent focus-visible:outline focus-visible:outline-2 focus-visible:outline-[#8C7A58]",style:{width:40,height:40},"data-gufi-src":"components/CartDrawer.tsx:327"},__gh(import_lucide_react10.Plus,{size:13}))),__gh("div",{className:"text-right","data-gufi-src":"components/CartDrawer.tsx:329"},it.cantidad>1&&__gh("div",{style:{fontFamily:T.sans,fontSize:11,color:T.faint,fontVariantNumeric:"tabular-nums"},"data-gufi-src":"components/CartDrawer.tsx:330"},it.cantidad," \xD7 ",money(it.precio)),__gh("span",{style:{fontFamily:T.serif,fontSize:17,fontWeight:500,color:fuera?T.faint:T.ink,fontVariantNumeric:"tabular-nums",textDecoration:fuera?"line-through":"none"},"data-gufi-src":"components/CartDrawer.tsx:331"},money(it.precio*it.cantidad)))))))})),__gh("div",{className:"mt-1 flex flex-wrap items-center gap-x-4 gap-y-2 px-1","data-gufi-src":"components/CartDrawer.tsx:342"},[t("Confirmaci\xF3n inmediata","Instant confirmation"),t("Sin l\xEDmite de d\xEDas","No day limit"),t("Recinto vigilado","Guarded facility")].map(label=>__gh("span",{key:label,className:"inline-flex items-center gap-1.5",style:{fontFamily:T.sans,fontSize:11.5,color:T.muted},"data-gufi-src":"components/CartDrawer.tsx:344"},__gh(import_lucide_react10.Check,{size:13,color:T.forest})," ",label)))):__gh("div",{className:"flex flex-col gap-3.5 pt-1","data-gufi-src":"components/CartDrawer.tsx:351"},__gh(Field,{label:t("Nombre y apellidos","Full name"),value:f.nombre,onChange:v=>setF(p=>({...p,nombre:v})),placeholder:t("Tu nombre","Your name"),autoFocus:!0,required:!0}),__gh(Field,{label:t("Email","Email"),value:f.email,onChange:v=>setF(p=>({...p,email:v})),onBlur:()=>setEmailTouched(!0),placeholder:t("tucorreo@email.com","youremail@email.com"),type:"email",required:!0,error:emailError?t("Revisa el formato de tu email.","Please check your email format."):void 0,hint:emailError?void 0:t("Te enviaremos la confirmaci\xF3n de tu reserva aqu\xED.","We will send your booking confirmation here.")}),__gh(Field,{label:t("Tel\xE9fono","Phone"),value:f.telefono,onChange:v=>setF(p=>({...p,telefono:v})),placeholder:"+34 \u2026",type:"tel",required:!0}),__gh("div",{className:"mt-1 rounded-xl p-3.5 flex items-start gap-2.5",style:{background:"rgba(60,69,53,0.08)",border:"1px solid rgba(60,69,53,0.12)"},"data-gufi-src":"components/CartDrawer.tsx:356"},__gh(import_lucide_react10.ShieldCheck,{size:16,color:T.forest,className:"mt-0.5 shrink-0"}),__gh("p",{style:{fontFamily:T.sans,fontSize:12.5,lineHeight:1.5,color:T.ink2},"data-gufi-src":"components/CartDrawer.tsx:358"},t("Pago 100% seguro con tarjeta a trav\xE9s de Stripe. No guardamos los datos de tu tarjeta.","100% secure card payment through Stripe. We never store your card details."))))),__gh("div",{className:"shrink-0 px-5 pt-4",style:{borderTop:`1px solid ${T.line}`,background:T.card,paddingBottom:"calc(20px + env(safe-area-inset-bottom, 0px))"},"data-gufi-src":"components/CartDrawer.tsx:365"},__gh("div",{className:"mb-3","data-gufi-src":"components/CartDrawer.tsx:367"},cuponInfo?__gh("div",{className:"flex items-center justify-between rounded-xl px-3 py-2.5",style:{background:"rgba(60,69,53,0.08)",border:"1px solid rgba(60,69,53,0.2)"},"data-gufi-src":"components/CartDrawer.tsx:369"},__gh("span",{className:"flex items-center gap-1.5",style:{fontFamily:T.sans,fontSize:13,fontWeight:700,color:T.forest},"data-gufi-src":"components/CartDrawer.tsx:370"},__gh(import_lucide_react10.Check,{size:15})," ",cuponCodigo),__gh("button",{onClick:clearCupon,className:"outline-none rounded focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[#8C7A58]",style:{fontFamily:T.sans,fontSize:12.5,color:T.muted},"data-gufi-src":"components/CartDrawer.tsx:371"},t("Quitar","Remove"))):__gh("div",{className:"flex gap-2","data-gufi-src":"components/CartDrawer.tsx:374"},__gh("input",{value:cuponInput,onChange:e=>setCuponInput(e.target.value),onKeyDown:e=>{e.key==="Enter"&&applyCupon()},placeholder:t("C\xF3digo de descuento","Discount code"),"aria-label":t("C\xF3digo de descuento","Discount code"),className:"flex-1 rounded-xl px-3.5 outline-none focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-[#8C7A58]",style:{background:T.paper2,border:`1px solid ${T.line}`,fontFamily:T.sans,fontSize:16,color:T.ink,minHeight:44,textTransform:"uppercase"},"data-gufi-src":"components/CartDrawer.tsx:375"}),__gh("button",{onClick:applyCupon,disabled:cuponBusy||!cuponInput.trim(),className:"rounded-xl px-4 outline-none transition-opacity disabled:opacity-40 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[#8C7A58]",style:{background:T.sand,color:T.stoneDeep,fontFamily:T.sans,fontSize:13.5,fontWeight:700,minHeight:44},"data-gufi-src":"components/CartDrawer.tsx:379"},cuponBusy?"\u2026":t("Aplicar","Apply"))),cuponErr&&__gh("p",{className:"mt-1.5",style:{fontFamily:T.sans,fontSize:12,color:T.terra},"data-gufi-src":"components/CartDrawer.tsx:385"},cuponErr)),cuponInfo&&__gh("div",{className:"flex flex-col gap-1 mb-2",style:{fontFamily:T.sans,fontSize:13.5,color:T.muted},"data-gufi-src":"components/CartDrawer.tsx:389"},__gh("div",{className:"flex justify-between","data-gufi-src":"components/CartDrawer.tsx:390"},__gh("span",{"data-gufi-src":"components/CartDrawer.tsx:390"},t("Subtotal","Subtotal")),__gh("span",{className:"tabular-nums","data-gufi-src":"components/CartDrawer.tsx:390"},money(total))),__gh("div",{className:"flex justify-between",style:{color:T.forest},"data-gufi-src":"components/CartDrawer.tsx:391"},__gh("span",{"data-gufi-src":"components/CartDrawer.tsx:391"},t("Descuento","Discount")," \xB7 ",cuponCodigo),__gh("span",{className:"tabular-nums","data-gufi-src":"components/CartDrawer.tsx:391"},"\u2212",money(descuento)))),__gh("div",{className:"flex items-end justify-between mb-3","data-gufi-src":"components/CartDrawer.tsx:394"},__gh("div",{"data-gufi-src":"components/CartDrawer.tsx:395"},__gh("span",{style:{fontFamily:T.sans,fontSize:14,color:T.muted},"data-gufi-src":"components/CartDrawer.tsx:396"},t("Total","Total")),__gh("span",{className:"ml-2",style:{fontFamily:T.sans,fontSize:11.5,color:T.faint},"data-gufi-src":"components/CartDrawer.tsx:397"},t("IVA incluido","VAT included"))),__gh("span",{style:{fontFamily:T.serif,fontSize:26,fontWeight:500,color:T.ink,fontVariantNumeric:"tabular-nums"},"data-gufi-src":"components/CartDrawer.tsx:399"},money(totalFinal))),err&&__gh(import_framer_motion11.motion.div,{initial:{opacity:0,y:-4},animate:{opacity:1,y:0},className:"mb-3 rounded-xl p-3",style:{background:"rgba(178,58,46,0.08)",border:"1px solid rgba(178,58,46,0.2)"}},__gh("p",{style:{fontFamily:T.sans,fontSize:12.5,color:T.terra,lineHeight:1.45},"data-gufi-src":"components/CartDrawer.tsx:404"},err),__gh("a",{href:waCheckout,target:"_blank",rel:"noopener noreferrer",className:"mt-2 inline-flex items-center gap-1.5 outline-none rounded focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[#0b6b34]",style:{fontFamily:T.sans,fontSize:12.5,fontWeight:700,color:"#0b6b34"},"data-gufi-src":"components/CartDrawer.tsx:405"},__gh(import_lucide_react10.MessageCircle,{size:13})," ",t("Reservar por WhatsApp","Book via WhatsApp"))),step==="cart"?__gh("button",{onClick:()=>setStep("form"),disabled:noDisp.length>0||activos.length===0,className:"w-full inline-flex items-center justify-center gap-2 rounded-full py-3.5 outline-none transition-transform hover:-translate-y-0.5 active:scale-[0.98] disabled:opacity-40 disabled:hover:translate-y-0 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[#8C7A58]",style:{background:T.ink,color:"#FBF7EF",fontFamily:T.sans,fontSize:15.5,fontWeight:600,boxShadow:"0 14px 30px -16px rgba(33,30,24,0.8)"},"data-gufi-src":"components/CartDrawer.tsx:412"},t("Continuar","Continue")," ",__gh(import_lucide_react10.ArrowRight,{size:17})):__gh("div",{className:"flex flex-col gap-2","data-gufi-src":"components/CartDrawer.tsx:418"},__gh("button",{onClick:pay,disabled:busy||!canPay,className:"w-full inline-flex items-center justify-center gap-2 rounded-full py-3.5 outline-none transition-transform hover:-translate-y-0.5 active:scale-[0.98] disabled:opacity-70 disabled:hover:translate-y-0 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[#8C7A58]",style:{background:T.ink,color:"#FBF7EF",fontFamily:T.sans,fontSize:15.5,fontWeight:600,boxShadow:"0 14px 30px -16px rgba(33,30,24,0.8)"},"data-gufi-src":"components/CartDrawer.tsx:419"},busy?__gh(__gf,null,__gh(import_framer_motion11.motion.span,{"aria-hidden":!0,animate:reduce?{}:{rotate:360},transition:{duration:.9,repeat:1/0,ease:"linear"},style:{width:15,height:15,borderRadius:"50%",border:"2px solid rgba(251,247,239,0.35)",borderTopColor:"#FBF7EF"}})," ",t("Redirigiendo a Stripe\u2026","Redirecting to Stripe\u2026")):__gh(__gf,null,__gh(import_lucide_react10.Lock,{size:16})," ",t("Pagar","Pay")," ",money(totalFinal))),__gh("button",{onClick:()=>setStep("cart"),className:"w-full inline-flex items-center justify-center gap-1.5 py-3 outline-none rounded focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[#8C7A58]",style:{fontFamily:T.sans,fontSize:13.5,color:T.muted},"data-gufi-src":"components/CartDrawer.tsx:427"},__gh(import_lucide_react10.ArrowLeft,{size:14})," ",t("Volver a la reserva","Back to booking"))),__gh("div",{className:"mt-3 flex items-center justify-center gap-3 opacity-80","data-gufi-src":"components/CartDrawer.tsx:433"},__gh("span",{className:"inline-flex items-center gap-1.5",style:{fontFamily:T.sans,fontSize:11,color:T.faint},"data-gufi-src":"components/CartDrawer.tsx:434"},__gh(import_lucide_react10.Lock,{size:11})," ",t("Pago seguro","Secure payment")),__gh("span",{style:{width:3,height:3,borderRadius:"50%",background:T.faint},"data-gufi-src":"components/CartDrawer.tsx:435"}),__gh("span",{className:"inline-flex items-center gap-1.5",style:{fontFamily:T.sans,fontSize:11,color:T.faint},"data-gufi-src":"components/CartDrawer.tsx:436"},__gh(import_lucide_react10.CreditCard,{size:12})," Stripe")))))))}function Segment({label,n,state:state3}){let active=state3==="active",done=state3==="done";return __gh("span",{className:"inline-flex items-center gap-1.5","data-gufi-src":"components/CartDrawer.tsx:452"},__gh("span",{className:"grid place-items-center rounded-full transition-colors",style:{width:20,height:20,background:active||done?T.ink:T.sand,color:active||done?"#FBF7EF":T.stoneDeep,fontFamily:T.sans,fontSize:11,fontWeight:700},"data-gufi-src":"components/CartDrawer.tsx:453"},done?__gh(import_lucide_react10.Check,{size:12}):n),__gh("span",{style:{fontFamily:T.sans,fontSize:12.5,fontWeight:active?700:500,color:active?T.ink:T.muted},"data-gufi-src":"components/CartDrawer.tsx:456"},label))}function Field({label,value,onChange,onBlur,placeholder,type="text",hint,error,autoFocus,required}){let[focused,setFocused]=(0,import_react9.useState)(!1),border=error?T.terra:focused?T.stone:T.line,ring=error?"rgba(178,58,46,0.14)":focused?"rgba(140,122,88,0.16)":"transparent";return __gh("div",{"data-gufi-src":"components/CartDrawer.tsx:466"},__gh("label",{style:{fontFamily:T.sans,fontSize:12.5,fontWeight:600,color:T.ink2,display:"block",marginBottom:5},"data-gufi-src":"components/CartDrawer.tsx:467"},label,required&&__gh("span",{"aria-hidden":"true",style:{color:T.terra},"data-gufi-src":"components/CartDrawer.tsx:467"}," *")),__gh("input",{type,value,placeholder,autoFocus,required,onChange:e=>onChange(e.target.value),onFocus:()=>setFocused(!0),onBlur:()=>{setFocused(!1),onBlur?.()},"aria-invalid":!!error,className:"w-full outline-none",style:{background:T.paper2,border:`1px solid ${border}`,boxShadow:`0 0 0 3px ${ring}`,borderRadius:12,padding:"13px 14px",fontFamily:T.sans,fontSize:16,lineHeight:1.35,minHeight:48,color:T.ink,transition:"border-color .2s, box-shadow .2s"},"data-gufi-src":"components/CartDrawer.tsx:468"}),error?__gh("p",{style:{fontFamily:T.sans,fontSize:11.5,color:T.terra,marginTop:5},"data-gufi-src":"components/CartDrawer.tsx:477"},error):hint?__gh("p",{style:{fontFamily:T.sans,fontSize:11.5,color:T.faint,marginTop:5},"data-gufi-src":"components/CartDrawer.tsx:478"},hint):null)}var import_react10=require("react"),import_framer_motion12=require("framer-motion"),import_lucide_react11=require("lucide-react");var estColor={pagado:"#3C4535",pendiente:"#B8860B",cancelado:"#B23A2E"};function Account({gufi,open,onClose,resetToken,onResetDone}){let{user,setUser,logout}=useAuth(),{t,lang:lang2}=useLang(),reduce=(0,import_framer_motion12.useReducedMotion)(),[mode,setMode]=(0,import_react10.useState)("login"),[f,setF]=(0,import_react10.useState)({nombre:"",email:"",telefono:"",password:""}),[busy,setBusy]=(0,import_react10.useState)(!1),[err,setErr]=(0,import_react10.useState)(null),[notice,setNotice]=(0,import_react10.useState)(null);(0,import_react10.useEffect)(()=>{open&&resetToken&&!user&&setMode("reset")},[open,resetToken,user]);let[orders,setOrders]=(0,import_react10.useState)(null),[loadingOrders,setLoadingOrders]=(0,import_react10.useState)(!1),[payingId,setPayingId]=(0,import_react10.useState)(null),estLabel=e=>e==="pagado"?t("Pagado","Paid"):e==="pendiente"?t("Pago no completado","Payment not completed"):e==="cancelado"?t("Cancelado","Cancelled"):e,retryPay=async p=>{if(user){setErr(null),setPayingId(p.id);try{let base=window.location.origin+window.location.pathname;try{sessionStorage.setItem("okw_pending_order",JSON.stringify({id:p.id,email:user.email}))}catch{}let res=await runCheckout(gufi,{amount:Math.round(Number(p.total)*100),currency:"eur",productName:"OK The Way \xB7 Reserva del Camino",orderId:p.id,customerEmail:user.email,successUrl:`${base}?okw_paid=1&session_id={CHECKOUT_SESSION_ID}`,errorUrl:`${base}?okw_cancel=1`,baseUrl:base});if(res?.url){window.location.href=res.url;return}throw new Error("no url")}catch{setErr(t("No hemos podido iniciar el pago. Int\xE9ntalo de nuevo.","We could not start the payment. Please try again.")),setPayingId(null)}}};(0,import_react10.useEffect)(()=>{if(!open)return;document.documentElement.style.overflow="hidden";let onKey=e=>{e.key==="Escape"&&onClose()};return document.addEventListener("keydown",onKey),()=>{document.documentElement.style.overflow="",document.removeEventListener("keydown",onKey)}},[open,onClose]);let loadOrders=(0,import_react10.useCallback)(async()=>{if(user){setLoadingOrders(!0);try{let r=await callAutomation(gufi,"mis_pedidos",{clienteId:user.clienteId,token:user.token});setOrders(r?.ok?r.pedidos||[]:[])}catch{setOrders([])}finally{setLoadingOrders(!1)}}},[gufi,user]);(0,import_react10.useEffect)(()=>{open&&user&&loadOrders()},[open,user,loadOrders]);let submit=async e=>{e.preventDefault(),setErr(null),setNotice(null);let email=f.email.trim().toLowerCase();if(mode!=="reset"&&!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(email)){setErr(t("Introduce un email v\xE1lido.","Enter a valid email."));return}if(mode!=="forgot"&&f.password.length<6){setErr(t("La contrase\xF1a debe tener al menos 6 caracteres.","Password must be at least 6 characters."));return}if(mode==="register"&&!f.nombre.trim()){setErr(t("Introduce tu nombre.","Enter your name."));return}if(mode==="register"&&f.telefono.replace(/\D/g,"").length<6){setErr(t("Introduce un tel\xE9fono m\xF3vil v\xE1lido.","Enter a valid mobile phone number."));return}setBusy(!0);try{if(mode==="forgot"){let r2=await callAutomation(gufi,"recuperar_password",{email});setNotice(r2?.mensaje||t("Si existe una cuenta con ese email, te hemos enviado un enlace para restablecer la contrase\xF1a.","If an account exists for that email, we have sent you a link to reset your password."));return}if(mode==="reset"){let r2=await callAutomation(gufi,"reset_password",{token:resetToken||"",password:f.password});if(!r2?.ok){setErr(r2?.mensaje||t("El enlace no es v\xE1lido o ha caducado. Solicita uno nuevo.","The link is invalid or has expired. Please request a new one."));return}setUser({clienteId:r2.clienteId,nombre:r2.nombre,email:r2.email,telefono:r2.telefono,direccion:r2.direccion,codigo_postal:r2.codigo_postal,ciudad:r2.ciudad,token:r2.token}),setF({nombre:"",email:"",telefono:"",password:""}),setMode("login"),onResetDone?.();return}let name=mode==="register"?"registro_cliente":"login_cliente",payload=mode==="register"?{email,password:f.password,nombre:f.nombre.trim(),telefono:f.telefono.trim()}:{email,password:f.password},r=await callAutomation(gufi,name,payload);if(!r?.ok){setErr(r?.mensaje||t("No ha sido posible. Revisa los datos.","Something went wrong. Check your details."));return}setUser({clienteId:r.clienteId,nombre:r.nombre,email:r.email,telefono:r.telefono,direccion:r.direccion,codigo_postal:r.codigo_postal,ciudad:r.ciudad,token:r.token}),setF({nombre:"",email:"",telefono:"",password:""})}catch{setErr(t("No hemos podido conectar. Int\xE9ntalo de nuevo.","Could not connect. Please try again."))}finally{setBusy(!1)}},inputStyle={width:"100%",minHeight:48,background:T.paper2,border:`1px solid ${T.line}`,borderRadius:12,padding:"12px 14px",fontFamily:T.sans,fontSize:16,color:T.ink,outline:"none"};return __gh(import_framer_motion12.AnimatePresence,null,open&&__gh(__gf,null,__gh(import_framer_motion12.motion.div,{className:"fixed inset-0 z-[100]",style:{background:"rgba(20,17,12,0.5)",backdropFilter:"blur(3px)"},initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onClick:onClose}),__gh(import_framer_motion12.motion.aside,{role:"dialog","aria-modal":"true","aria-label":t("Tu cuenta","Your account"),className:"fixed inset-y-0 right-0 z-[101] flex flex-col",style:{width:"min(448px, 100vw)",background:T.paper2,boxShadow:"-30px 0 80px -40px rgba(0,0,0,0.5)"},initial:{x:"100%"},animate:{x:0},exit:{x:"100%"},transition:reduce?{duration:.2}:{type:"spring",stiffness:320,damping:36}},__gh("div",{className:"shrink-0 flex items-center justify-between px-5 sm:px-6 py-4 sm:py-5",style:{borderBottom:`1px solid ${T.line}`,background:T.card,paddingTop:"calc(env(safe-area-inset-top, 0px) + 16px)"},"data-gufi-src":"components/Account.tsx:128"},__gh("div",{className:"flex items-center gap-2.5 min-w-0","data-gufi-src":"components/Account.tsx:129"},__gh(import_lucide_react11.User,{size:19,color:T.ink,className:"shrink-0"}),__gh("span",{className:"truncate",style:{fontFamily:T.serif,fontSize:20,fontWeight:500,color:T.ink},"data-gufi-src":"components/Account.tsx:131"},user?t("Tu cuenta","Your account"):mode==="login"?t("Iniciar sesi\xF3n","Sign in"):mode==="register"?t("Crear cuenta","Create account"):mode==="forgot"?t("Recuperar contrase\xF1a","Reset password"):t("Nueva contrase\xF1a","New password"))),__gh("button",{onClick:onClose,"aria-label":t("Cerrar","Close"),className:"grid place-items-center rounded-full shrink-0 outline-none transition-colors hover:bg-[rgba(33,30,24,0.06)] focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[#8C7A58]",style:{width:44,height:44,border:`1px solid ${T.line}`},"data-gufi-src":"components/Account.tsx:133"},__gh(import_lucide_react11.X,{size:18}))),__gh("div",{className:"flex-1 min-h-0 overflow-y-auto px-5 sm:px-6 py-5",style:{overscrollBehavior:"contain"},"data-gufi-src":"components/Account.tsx:136"},user?__gh(__gf,null,__gh("div",{className:"flex items-center gap-3 mb-5","data-gufi-src":"components/Account.tsx:190"},__gh("span",{className:"grid place-items-center rounded-full shrink-0",style:{width:52,height:52,background:T.sand},"data-gufi-src":"components/Account.tsx:191"},__gh(Vieira,{size:26,color:T.terra})),__gh("div",{className:"min-w-0","data-gufi-src":"components/Account.tsx:192"},__gh("div",{className:"truncate",style:{fontFamily:T.serif,fontSize:21,fontWeight:500,color:T.ink},"data-gufi-src":"components/Account.tsx:193"},t("Hola","Hi"),", ",(user.nombre||"").split(" ")[0]),__gh("div",{className:"truncate flex items-center gap-1.5",style:{fontFamily:T.sans,fontSize:13,color:T.muted},"data-gufi-src":"components/Account.tsx:194"},__gh(import_lucide_react11.Mail,{size:13})," ",user.email))),__gh("div",{className:"flex items-center gap-2 mb-3","data-gufi-src":"components/Account.tsx:198"},__gh(import_lucide_react11.Package,{size:16,color:T.stoneDeep}),__gh("span",{style:{fontFamily:T.sans,fontSize:13,fontWeight:700,letterSpacing:"0.06em",textTransform:"uppercase",color:T.ink},"data-gufi-src":"components/Account.tsx:198"},t("Mis reservas","My bookings"))),err&&__gh("p",{className:"mb-3",style:{fontFamily:T.sans,fontSize:13,color:T.terra},"data-gufi-src":"components/Account.tsx:199"},err),loadingOrders?__gh("div",{className:"flex flex-col gap-2","data-gufi-src":"components/Account.tsx:201"},[0,1].map(i=>__gh("div",{key:i,className:"rounded-2xl animate-pulse",style:{height:78,background:"rgba(33,30,24,0.05)"},"data-gufi-src":"components/Account.tsx:201"}))):orders&&orders.length>0?__gh("div",{className:"flex flex-col gap-2.5","data-gufi-src":"components/Account.tsx:203"},orders.map(p=>__gh("div",{key:p.id,className:"rounded-2xl p-4",style:{background:T.card,border:`1px solid ${T.line}`},"data-gufi-src":"components/Account.tsx:205"},__gh("div",{className:"flex items-center justify-between gap-2","data-gufi-src":"components/Account.tsx:206"},__gh("span",{style:{fontFamily:T.sans,fontSize:13.5,fontWeight:700,color:T.ink},"data-gufi-src":"components/Account.tsx:207"},"#",p.id),__gh("span",{className:"rounded-full px-2.5 py-0.5",style:{fontFamily:T.sans,fontSize:11,fontWeight:700,color:estColor[p.estado]||T.muted,background:"rgba(33,30,24,0.05)"},"data-gufi-src":"components/Account.tsx:208"},estLabel(p.estado))),__gh("div",{className:"mt-1.5",style:{fontFamily:T.sans,fontSize:12.5,color:T.muted},"data-gufi-src":"components/Account.tsx:210"},(p.lineas||[]).map((l,i)=>__gh("div",{key:i,className:"truncate","data-gufi-src":"components/Account.tsx:211"},l.nombre_producto,Number(l.cantidad)>1?` \xD7 ${l.cantidad}`:""))),__gh("div",{className:"mt-2 text-right",style:{fontFamily:T.serif,fontSize:16,fontWeight:500,color:T.ink},"data-gufi-src":"components/Account.tsx:213"},money(p.total)),p.estado==="pendiente"&&__gh("button",{onClick:()=>retryPay(p),disabled:payingId===p.id,className:"mt-3 w-full inline-flex items-center justify-center gap-2 rounded-full py-2.5 outline-none transition-transform active:scale-[0.98] disabled:opacity-70 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[#8C7A58]",style:{background:T.ink,color:"#FBF7EF",fontFamily:T.sans,fontSize:13.5,fontWeight:600},"data-gufi-src":"components/Account.tsx:215"},__gh(import_lucide_react11.RefreshCw,{size:14})," ",payingId===p.id?t("Redirigiendo a Stripe\u2026","Redirecting to Stripe\u2026"):t("Reintentar pago","Retry payment"))))):__gh("div",{className:"rounded-2xl p-6 text-center",style:{background:T.card,border:`1px dashed ${T.line}`},"data-gufi-src":"components/Account.tsx:225"},__gh("p",{style:{fontFamily:T.sans,fontSize:14,color:T.muted},"data-gufi-src":"components/Account.tsx:226"},t("Todav\xEDa no tienes reservas.","You don't have any bookings yet.")),__gh("button",{onClick:onClose,className:"mt-3 rounded-full px-5 py-2.5 inline-flex items-center gap-2",style:{background:T.ink,color:"#FBF7EF",fontFamily:T.sans,fontSize:13.5,fontWeight:600},"data-gufi-src":"components/Account.tsx:227"},t("Explorar servicios","Explore services")," ",__gh(import_lucide_react11.ArrowRight,{size:14})))):__gh(__gf,null,(mode==="login"||mode==="register")&&__gh("div",{className:"flex gap-1 p-1 rounded-full mb-5",style:{background:T.sand},"data-gufi-src":"components/Account.tsx:141"},["login","register"].map(mo=>__gh("button",{key:mo,onClick:()=>{setMode(mo),setErr(null),setNotice(null)},className:"flex-1 rounded-full outline-none",style:{minHeight:40,fontFamily:T.sans,fontSize:13.5,fontWeight:700,color:mode===mo?"#FBF7EF":T.stoneDeep,background:mode===mo?T.ink:"transparent"},"data-gufi-src":"components/Account.tsx:143"},mo==="login"?t("Entrar","Sign in"):t("Registrarme","Register")))),mode==="forgot"&&__gh("p",{className:"mb-4",style:{fontFamily:T.sans,fontSize:13.5,lineHeight:1.55,color:T.muted},"data-gufi-src":"components/Account.tsx:150"},t("Dinos tu email y te enviaremos un enlace para crear una contrase\xF1a nueva.","Tell us your email and we will send you a link to create a new password.")),mode==="reset"&&__gh("p",{className:"mb-4",style:{fontFamily:T.sans,fontSize:13.5,lineHeight:1.55,color:T.muted},"data-gufi-src":"components/Account.tsx:153"},t("Elige tu nueva contrase\xF1a (m\xEDnimo 6 caracteres).","Choose your new password (at least 6 characters).")),__gh("form",{onSubmit:submit,className:"flex flex-col gap-3","data-gufi-src":"components/Account.tsx:155"},mode==="register"&&__gh("input",{value:f.nombre,onChange:e=>setF(p=>({...p,nombre:e.target.value})),placeholder:t("Nombre y apellidos","Full name"),"aria-label":t("Nombre","Name"),style:inputStyle,"data-gufi-src":"components/Account.tsx:157"}),mode!=="reset"&&__gh("input",{type:"email",value:f.email,onChange:e=>setF(p=>({...p,email:e.target.value})),placeholder:t("Tu email","Your email"),"aria-label":"Email",autoComplete:"email",style:inputStyle,"data-gufi-src":"components/Account.tsx:160"}),mode==="register"&&__gh("input",{value:f.telefono,onChange:e=>setF(p=>({...p,telefono:e.target.value})),placeholder:t("Tel\xE9fono m\xF3vil","Mobile phone"),"aria-label":t("Tel\xE9fono m\xF3vil","Mobile phone"),type:"tel",required:!0,style:inputStyle,"data-gufi-src":"components/Account.tsx:163"}),mode!=="forgot"&&__gh("input",{type:"password",value:f.password,onChange:e=>setF(p=>({...p,password:e.target.value})),placeholder:mode==="reset"?t("Nueva contrase\xF1a","New password"):t("Contrase\xF1a","Password"),"aria-label":t("Contrase\xF1a","Password"),autoComplete:mode==="login"?"current-password":"new-password",style:inputStyle,"data-gufi-src":"components/Account.tsx:166"}),err&&__gh("p",{style:{fontFamily:T.sans,fontSize:13,color:T.terra},"data-gufi-src":"components/Account.tsx:168"},err),notice&&__gh("p",{style:{fontFamily:T.sans,fontSize:13,lineHeight:1.5,color:T.forest},"data-gufi-src":"components/Account.tsx:169"},notice),__gh("button",{type:"submit",disabled:busy,className:"mt-1 inline-flex items-center justify-center gap-2 rounded-full outline-none transition-transform active:scale-[0.98] disabled:opacity-70 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[#8C7A58]",style:{minHeight:50,background:T.ink,color:"#FBF7EF",fontFamily:T.sans,fontSize:15.5,fontWeight:600},"data-gufi-src":"components/Account.tsx:170"},__gh(import_lucide_react11.Lock,{size:16})," ",busy?t("Un momento\u2026","One moment\u2026"):mode==="login"?t("Iniciar sesi\xF3n","Sign in"):mode==="register"?t("Crear mi cuenta","Create account"):mode==="forgot"?t("Enviarme el enlace","Send me the link"):t("Guardar contrase\xF1a","Save password"))),mode==="login"&&__gh("button",{onClick:()=>{setMode("forgot"),setErr(null),setNotice(null)},className:"mt-3 w-full text-center outline-none rounded focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[#8C7A58]",style:{fontFamily:T.sans,fontSize:13,color:T.stoneDeep,textDecoration:"underline",textUnderlineOffset:3},"data-gufi-src":"components/Account.tsx:175"},t("\xBFHas olvidado tu contrase\xF1a?","Forgot your password?")),(mode==="forgot"||mode==="reset")&&__gh("button",{onClick:()=>{setMode("login"),setErr(null),setNotice(null)},className:"mt-3 w-full text-center outline-none rounded focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[#8C7A58]",style:{fontFamily:T.sans,fontSize:13,color:T.muted},"data-gufi-src":"components/Account.tsx:180"},"\u2190 ",t("Volver a iniciar sesi\xF3n","Back to sign in")),(mode==="login"||mode==="register")&&__gh("p",{className:"mt-4 text-center",style:{fontFamily:T.sans,fontSize:12.5,color:T.muted},"data-gufi-src":"components/Account.tsx:185"},t("Guarda tus datos y consulta tus reservas del Camino cuando quieras.","Save your details and check your Camino bookings anytime.")))),user&&__gh("div",{className:"shrink-0 px-5 sm:px-6 py-4",style:{borderTop:`1px solid ${T.line}`,background:T.card,paddingBottom:"calc(16px + env(safe-area-inset-bottom, 0px))"},"data-gufi-src":"components/Account.tsx:235"},__gh("button",{onClick:()=>{logout(),setOrders(null)},className:"w-full inline-flex items-center justify-center gap-2 rounded-full py-3 outline-none transition-colors focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[#8C7A58]",style:{border:`1px solid ${T.line}`,fontFamily:T.sans,fontSize:14,fontWeight:600,color:T.ink2},"data-gufi-src":"components/Account.tsx:236"},__gh(import_lucide_react11.LogOut,{size:15})," ",t("Cerrar sesi\xF3n","Log out"))))))}var import_react11=require("react"),import_framer_motion13=require("framer-motion"),import_lucide_react12=require("lucide-react");var discountPct2=p=>{let base=Number(p?.precio||0),off=Number(p?.precio_oferta||0);return base>0&&off>0&&off{if(setQty(1),setVals({}),setTouched(!1),setFocusKey(null),setImgOk(!0),!product)return;prevFocus.current=document.activeElement||null,document.documentElement.style.overflow="hidden";let onKey=e=>{if(e.key==="Escape"){e.preventDefault(),onClose();return}if(e.key==="Tab"){let root=panelRef.current;if(!root)return;let nodes=Array.from(root.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])')).filter(el=>!el.hasAttribute("disabled")&&el.getAttribute("aria-hidden")!=="true"&&el.offsetParent!==null);if(nodes.length===0)return;let first=nodes[0],last=nodes[nodes.length-1];e.shiftKey&&document.activeElement===first?(e.preventDefault(),last.focus()):!e.shiftKey&&document.activeElement===last&&(e.preventDefault(),first.focus())}};document.addEventListener("keydown",onKey);let t2=window.setTimeout(()=>{let root=panelRef.current;(root?.querySelector("[data-autofocus]")||root?.querySelector("button"))?.focus()},60);return()=>{document.removeEventListener("keydown",onKey),document.documentElement.style.overflow="",window.clearTimeout(t2);try{prevFocus.current?.focus?.()}catch{}}},[product,onClose]);let fields=(0,import_react11.useMemo)(()=>{let f=product?.opciones?.fields;return Array.isArray(f)?f:[]},[product]);if(!product)return null;let meta=catMeta(product.categoria),offer=hasOffer(product),price=priceOf(product),pct=discountPct2(product),img=product.imagen&&String(product.imagen).trim(),showImg=img&&imgOk,name=L(product.nombre,product.nombre_en),descES=product.descripcion||product.resumen,descEN=product.descripcion?product.descripcion_en:product.resumen_en,description=L(descES,descEN),missing=fields.filter(f=>f.required&&!(vals[f.key]&&vals[f.key].trim())),todayStr=todayISO(),avail=availableFrom(product),minDate=avail&&avail>todayStr?avail:todayStr,availLabel=avail?longDate(avail,lang2):"",dateFields=fields.filter(f=>f.type==="date"),dateErrors={};for(let f of dateFields){let v=vals[f.key];v&&(v/recogida/i.test(f.key+" "+f.label)),llegadaF=dateFields.find(f=>f!==recogidaF&&/llegada|inicio|entrada|^fecha$/i.test(f.key+" "+f.label))||dateFields.find(f=>f!==recogidaF);recogidaF&&llegadaF&&vals[recogidaF.key]&&vals[llegadaF.key]&&vals[recogidaF.key]{setTouched(!0);let badKey=missing.length>0?missing[0].key:Object.keys(dateErrors)[0];if(badKey){let el=document.getElementById("opt-"+badKey);el?.scrollIntoView({behavior:reduce?"auto":"smooth",block:"center"}),el?.querySelector("input,select,textarea")?.focus?.();return}cartApi.add({producto:product.id,nombre:product.nombre,nombre_en:product.nombre_en,categoria:product.categoria,precio:unit,opciones:opcionesSel,cantidad:qty}),onAdded()},inputBase={background:T.paper2,border:`1px solid ${T.line}`,borderRadius:12,padding:"12px 14px",fontFamily:T.sans,fontSize:16,lineHeight:1.35,color:T.ink,width:"100%",minHeight:48,outline:"none",transition:"border-color 160ms ease, box-shadow 160ms ease"},fieldStyle=(key,err)=>({...inputBase,borderColor:err?T.terra:focusKey===key?T.stone:T.line,boxShadow:err?"0 0 0 3px rgba(178,58,46,0.14)":focusKey===key?"0 0 0 3px rgba(140,122,88,0.16)":"none"});return __gh(import_framer_motion13.AnimatePresence,null,product&&__gh(import_framer_motion13.motion.div,{className:"fixed inset-0 z-[95] flex items-end sm:items-center justify-center sm:p-4",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},role:"dialog","aria-modal":"true","aria-labelledby":"okw-modal-title"},__gh("div",{className:"absolute inset-0",style:{background:"rgba(20,17,12,0.55)",WebkitBackdropFilter:"blur(5px)",backdropFilter:"blur(5px)"},onClick:onClose,"data-gufi-src":"components/ProductModal.tsx:153"}),__gh(import_framer_motion13.motion.div,{ref:panelRef,initial:reduce?{opacity:0}:{y:44,opacity:0},animate:reduce?{opacity:1}:{y:0,opacity:1},exit:reduce?{opacity:0}:{y:34,opacity:0},transition:{duration:.4,ease:T.ease},className:"relative w-full flex flex-col overflow-hidden rounded-t-3xl sm:rounded-[28px]",style:{maxWidth:760,maxHeight:"92vh",background:T.paper2,boxShadow:"0 40px 90px -40px rgba(0,0,0,0.6)"}},__gh("div",{className:"relative shrink-0 overflow-hidden",style:{background:`linear-gradient(135deg, ${meta.from}, ${meta.to})`},"data-gufi-src":"components/ProductModal.tsx:165"},__gh("div",{className:"relative h-[176px] sm:h-[224px]","data-gufi-src":"components/ProductModal.tsx:166"},showImg?__gh("img",{src:img,alt:name,onError:()=>setImgOk(!1),className:"absolute inset-0 w-full h-full object-cover","data-gufi-src":"components/ProductModal.tsx:168"}):__gh(__gf,null,__gh("div",{className:"absolute -right-8 -bottom-10 opacity-[0.18]","data-gufi-src":"components/ProductModal.tsx:171"},__gh(Vieira,{size:190,color:"#fff"})),__gh("div",{className:"absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 opacity-95","data-gufi-src":"components/ProductModal.tsx:172"},__gh(LucideIcon,{name:meta.icon,size:52,color:"rgba(255,255,255,0.95)",strokeWidth:1.3}))),__gh("div",{className:"absolute inset-0 pointer-events-none",style:{background:"linear-gradient(to top, rgba(20,17,12,0.58) 0%, rgba(20,17,12,0.04) 55%)"},"data-gufi-src":"components/ProductModal.tsx:179"}),__gh("div",{className:"sm:hidden absolute top-2.5 left-1/2 -translate-x-1/2 rounded-full",style:{width:44,height:5,background:"rgba(255,255,255,0.55)"},"data-gufi-src":"components/ProductModal.tsx:182"}),offer&&__gh("span",{className:"absolute left-5 top-5 rounded-full px-2.5 py-1",style:{background:T.terra,color:"#fff",fontFamily:T.sans,fontSize:11.5,fontWeight:700,letterSpacing:"0.02em",boxShadow:"0 6px 16px -6px rgba(178,58,46,0.75)"},"data-gufi-src":"components/ProductModal.tsx:186"},pct>0?`\u2212${pct}% ${t("oferta","off")}`:t("Oferta","Sale")),__gh("button",{"data-autofocus":!0,onClick:onClose,"aria-label":t("Cerrar","Close"),className:"absolute right-4 top-4 sm:right-5 sm:top-5 grid place-items-center rounded-full transition-colors outline-none focus-visible:[outline:2px_solid_#fff] focus-visible:[outline-offset:2px] hover:bg-[rgba(20,17,12,0.5)]",style:{width:38,height:38,background:"rgba(20,17,12,0.38)",color:"#fff",WebkitBackdropFilter:"blur(4px)",backdropFilter:"blur(4px)"},"data-gufi-src":"components/ProductModal.tsx:193"},__gh(import_lucide_react12.X,{size:18})),__gh("span",{className:"absolute left-5 bottom-5 inline-flex items-center gap-1.5 rounded-full px-3 py-1.5",style:{background:"rgba(255,255,255,0.15)",WebkitBackdropFilter:"blur(8px)",backdropFilter:"blur(8px)",border:"1px solid rgba(255,255,255,0.28)"},"data-gufi-src":"components/ProductModal.tsx:200"},__gh(LucideIcon,{name:meta.icon,size:13,color:"#fff",strokeWidth:1.9}),__gh("span",{style:{fontFamily:T.sans,fontSize:11.5,fontWeight:600,letterSpacing:"0.04em",color:"#fff"},"data-gufi-src":"components/ProductModal.tsx:203"},L(meta.label))))),__gh("div",{className:"flex-1 min-h-0 overflow-y-auto px-6 sm:px-7 py-6",style:{WebkitOverflowScrolling:"touch",overscrollBehavior:"contain"},"data-gufi-src":"components/ProductModal.tsx:209"},__gh("div",{className:"flex items-start justify-between gap-4","data-gufi-src":"components/ProductModal.tsx:210"},__gh("h2",{id:"okw-modal-title",style:{fontFamily:T.serif,fontSize:26,fontWeight:500,lineHeight:1.1,color:T.ink,letterSpacing:"-0.01em"},"data-gufi-src":"components/ProductModal.tsx:211"},name),__gh("div",{className:"text-right shrink-0","data-gufi-src":"components/ProductModal.tsx:212"},__gh("div",{className:"tabular-nums",style:{fontFamily:T.serif,fontSize:29,fontWeight:500,color:T.ink,letterSpacing:"-0.01em"},"data-gufi-src":"components/ProductModal.tsx:213"},money(price)),offer&&__gh("div",{className:"tabular-nums",style:{fontFamily:T.sans,fontSize:14,color:T.faint,textDecoration:"line-through"},"data-gufi-src":"components/ProductModal.tsx:214"},money(product.precio)))),__gh("p",{className:"mt-3",style:{fontFamily:T.sans,fontSize:15.5,lineHeight:1.62,color:T.ink2},"data-gufi-src":"components/ProductModal.tsx:217"},description),avail&&__gh("div",{className:"mt-4 flex items-start gap-2.5 rounded-2xl px-4 py-3",style:{background:"rgba(239,230,69,0.16)",border:"1px solid rgba(196,185,40,0.5)"},"data-gufi-src":"components/ProductModal.tsx:221"},__gh(import_lucide_react12.CalendarClock,{size:17,color:T.stoneDeep,strokeWidth:1.9,className:"shrink-0",style:{marginTop:1}}),__gh("p",{style:{fontFamily:T.sans,fontSize:13.5,lineHeight:1.5,color:T.espresso},"data-gufi-src":"components/ProductModal.tsx:224"},__gh("b",{style:{fontWeight:700},"data-gufi-src":"components/ProductModal.tsx:225"},t("Completo hasta el "+availLabel+".","Fully booked until "+availLabel+"."))," ",t(`Puedes reservar con fecha de entrada a partir del ${availLabel}.`,`You can book with an arrival date from ${availLabel} onwards.`))),fields.length>0&&__gh("div",{className:"mt-7","data-gufi-src":"components/ProductModal.tsx:235"},__gh("div",{className:"flex items-center gap-3 mb-4","data-gufi-src":"components/ProductModal.tsx:236"},__gh("span",{style:{fontFamily:T.sans,fontSize:12,fontWeight:700,letterSpacing:"0.1em",textTransform:"uppercase",color:T.stoneDeep},"data-gufi-src":"components/ProductModal.tsx:237"},t("Detalles de tu reserva","Your booking details")),__gh("span",{className:"h-px flex-1",style:{background:T.line},"data-gufi-src":"components/ProductModal.tsx:238"})),__gh("div",{className:"grid sm:grid-cols-2 gap-4","data-gufi-src":"components/ProductModal.tsx:240"},fields.map(f=>{let dErr=dateErrors[f.key],err=touched&&!!f.required&&!(vals[f.key]&&vals[f.key].trim())||!!dErr,spanFull=f.type==="text"||f.type==="textarea";return __gh("div",{key:f.key,id:"opt-"+f.key,className:spanFull?"sm:col-span-2":"","data-gufi-src":"components/ProductModal.tsx:246"},__gh("label",{htmlFor:"in-"+f.key,style:{fontFamily:T.sans,fontSize:12.5,fontWeight:600,color:T.ink2,display:"block",marginBottom:6},"data-gufi-src":"components/ProductModal.tsx:247"},f.label,f.required&&__gh("span",{style:{color:T.terra},"data-gufi-src":"components/ProductModal.tsx:248"}," *")),f.type==="select"?__gh("div",{className:"relative","data-gufi-src":"components/ProductModal.tsx:251"},__gh("select",{id:"in-"+f.key,value:vals[f.key]||"",onFocus:()=>setFocusKey(f.key),onBlur:()=>setFocusKey(k=>k===f.key?null:k),onChange:e=>setVals(p=>({...p,[f.key]:e.target.value})),"aria-invalid":err,style:{...fieldStyle(f.key,err),appearance:"none",WebkitAppearance:"none",MozAppearance:"none",paddingRight:38,cursor:"pointer"},"data-gufi-src":"components/ProductModal.tsx:252"},__gh("option",{value:"","data-gufi-src":"components/ProductModal.tsx:261"},t("Selecciona\u2026","Select\u2026")),(f.options||[]).map(o=>__gh("option",{key:o,value:o,"data-gufi-src":"components/ProductModal.tsx:262"},o))),__gh(import_lucide_react12.ChevronDown,{size:16,color:T.muted,className:"absolute right-3 top-1/2 -translate-y-1/2 pointer-events-none"})):f.type==="textarea"?__gh("textarea",{id:"in-"+f.key,rows:4,value:vals[f.key]||"",onFocus:()=>setFocusKey(f.key),onBlur:()=>setFocusKey(k=>k===f.key?null:k),onChange:e=>setVals(p=>({...p,[f.key]:e.target.value})),placeholder:f.label,"aria-invalid":err,style:{...fieldStyle(f.key,err),resize:"vertical",minHeight:96},"data-gufi-src":"components/ProductModal.tsx:267"}):__gh("input",{id:"in-"+f.key,type:f.type==="date"?"date":f.type==="number"?"number":f.type==="email"?"email":f.type==="tel"?"tel":"text",min:f.type==="number"?0:f.type==="date"?minDate:void 0,value:vals[f.key]||"",onFocus:()=>setFocusKey(f.key),onBlur:()=>setFocusKey(k=>k===f.key?null:k),onChange:e=>setVals(p=>({...p,[f.key]:e.target.value})),placeholder:f.type==="text"||f.type==="email"||f.type==="tel"?f.label:void 0,"aria-invalid":err,style:fieldStyle(f.key,err),"data-gufi-src":"components/ProductModal.tsx:279"}),dErr?__gh("p",{style:{fontFamily:T.sans,fontSize:11.5,color:T.terra,marginTop:5},"data-gufi-src":"components/ProductModal.tsx:292"},dErr):err?__gh("p",{style:{fontFamily:T.sans,fontSize:11.5,color:T.terra,marginTop:5},"data-gufi-src":"components/ProductModal.tsx:293"},t("Este campo es obligatorio.","This field is required.")):null)})),touched&&missing.length>0&&__gh("p",{className:"mt-3",style:{fontFamily:T.sans,fontSize:12.5,color:T.terra},"data-gufi-src":"components/ProductModal.tsx:299"},t("Completa los campos obligatorios marcados con *.","Please complete the required fields marked with *.")))),__gh("div",{className:"shrink-0 flex items-center gap-3 px-5 sm:px-7 py-4",style:{borderTop:`1px solid ${T.line}`,background:T.card},"data-gufi-src":"components/ProductModal.tsx:306"},__gh("div",{className:"flex items-center rounded-full shrink-0",style:{border:`1px solid ${T.line}`},"data-gufi-src":"components/ProductModal.tsx:307"},__gh("button",{onClick:()=>setQty(q=>Math.max(1,q-1)),disabled:qty<=1,"aria-label":t("Quitar uno","Remove one"),className:"grid place-items-center transition-opacity disabled:opacity-30 outline-none focus-visible:[outline:2px_solid_#8C7A58] focus-visible:[outline-offset:-2px] rounded-full",style:{width:44,height:44},"data-gufi-src":"components/ProductModal.tsx:308"},__gh(import_lucide_react12.Minus,{size:16,color:T.ink2})),__gh("span",{className:"tabular-nums",style:{fontFamily:T.sans,fontWeight:700,fontSize:15,width:26,textAlign:"center"},"aria-live":"polite","data-gufi-src":"components/ProductModal.tsx:312"},qty),__gh("button",{onClick:()=>setQty(q=>Math.min(20,q+1)),disabled:qty>=20,"aria-label":t("A\xF1adir uno","Add one"),className:"grid place-items-center transition-opacity disabled:opacity-30 outline-none focus-visible:[outline:2px_solid_#8C7A58] focus-visible:[outline-offset:-2px] rounded-full",style:{width:44,height:44},"data-gufi-src":"components/ProductModal.tsx:313"},__gh(import_lucide_react12.Plus,{size:16,color:T.ink2}))),__gh("button",{onClick:add,className:"flex-1 min-w-0 inline-flex items-center justify-center gap-2 rounded-full py-3.5 transition-transform active:scale-[0.98] outline-none focus-visible:[outline:2px_solid_#8C7A58] focus-visible:[outline-offset:2px]",style:{background:T.ink,color:"#FBF7EF",fontFamily:T.sans,fontSize:15,fontWeight:600},"data-gufi-src":"components/ProductModal.tsx:318"},__gh(import_lucide_react12.Check,{size:18,className:"shrink-0"})," ",__gh("span",{className:"whitespace-nowrap","data-gufi-src":"components/ProductModal.tsx:321"},t("A\xF1adir a la reserva","Add to booking")),__gh("span",{className:"hidden sm:inline tabular-nums",style:{opacity:.75},"data-gufi-src":"components/ProductModal.tsx:322"},"\xB7 ",money(unit*qty)))),(surcharge>0||mult>1)&&__gh("div",{className:"shrink-0 flex items-center justify-center gap-1.5 pt-1",style:{background:T.card},"data-gufi-src":"components/ProductModal.tsx:326"},__gh("span",{style:{fontFamily:T.sans,fontSize:11.5,color:T.stoneDeep},"data-gufi-src":"components/ProductModal.tsx:327"},mult>1&&__gh(__gf,null,mult," \xD7 ",money(price)," = ",__gh("b",{"data-gufi-src":"components/ProductModal.tsx:328"},money(price*mult))),mult>1&&surcharge>0&&" \xB7 ",surcharge>0&&__gh(__gf,null,t("Suplemento","Surcharge"),": ",__gh("b",{"data-gufi-src":"components/ProductModal.tsx:330"},"+",money(surcharge)),seasonSurcharge>0?" \xB7 "+t("temporada alta","high season"):""))),__gh("div",{className:"shrink-0 flex items-center justify-center gap-1.5 pt-1.5",style:{background:T.card,paddingBottom:"calc(12px + env(safe-area-inset-bottom, 0px))"},"data-gufi-src":"components/ProductModal.tsx:334"},__gh(import_lucide_react12.ShieldCheck,{size:13,color:T.forest,className:"shrink-0"}),__gh("span",{style:{fontFamily:T.sans,fontSize:11.5,color:T.muted},"data-gufi-src":"components/ProductModal.tsx:336"},t("Pago seguro con tarjeta \xB7 confirmaci\xF3n por email","Secure card payment \xB7 email confirmation"))))))}var import_react12=require("react"),import_framer_motion14=require("framer-motion"),import_lucide_react13=require("lucide-react");function LegalModal({which,onClose}){let{t,L}=useLang();(0,import_react12.useEffect)(()=>{if(!which)return;let onKey=e=>{e.key==="Escape"&&onClose()};return document.addEventListener("keydown",onKey),document.documentElement.style.overflow="hidden",()=>{document.removeEventListener("keydown",onKey),document.documentElement.style.overflow=""}},[which,onClose]);let data=which?LEGAL[which]:null;return __gh(import_framer_motion14.AnimatePresence,null,which&&data&&__gh(import_framer_motion14.motion.div,{className:"fixed inset-0 z-[90] flex items-center justify-center p-4",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0}},__gh("div",{className:"absolute inset-0",style:{background:"rgba(20,17,12,0.5)",backdropFilter:"blur(4px)"},onClick:onClose,"data-gufi-src":"components/LegalModal.tsx:25"}),__gh(import_framer_motion14.motion.div,{initial:{y:24,opacity:0,scale:.98},animate:{y:0,opacity:1,scale:1},exit:{y:16,opacity:0},transition:{duration:.35,ease:T.ease},className:"relative w-full rounded-3xl overflow-hidden flex flex-col",style:{maxWidth:720,maxHeight:"86vh",background:T.paper2,boxShadow:"0 40px 90px -40px rgba(0,0,0,0.55)"}},__gh("div",{className:"flex items-center justify-between px-7 py-5",style:{borderBottom:`1px solid ${T.line}`,background:T.card},"data-gufi-src":"components/LegalModal.tsx:28"},__gh("div",{className:"flex items-center gap-2.5","data-gufi-src":"components/LegalModal.tsx:29"},__gh(Vieira,{size:20,color:T.terra}),__gh("h3",{style:{fontFamily:T.serif,fontSize:22,fontWeight:500,color:T.ink},"data-gufi-src":"components/LegalModal.tsx:31"},L(data.titulo))),__gh("button",{onClick:onClose,"aria-label":t("Cerrar","Close"),className:"grid place-items-center rounded-full transition-colors hover:bg-[rgba(33,30,24,0.06)]",style:{width:38,height:38,border:`1px solid ${T.line}`},"data-gufi-src":"components/LegalModal.tsx:33"},__gh(import_lucide_react13.X,{size:18}))),__gh("div",{className:"overflow-y-auto px-7 py-7","data-gufi-src":"components/LegalModal.tsx:35"},data.cuerpo.map(([h,body],i)=>__gh("div",{key:i,className:"mb-6","data-gufi-src":"components/LegalModal.tsx:37"},__gh("h4",{style:{fontFamily:T.sans,fontSize:12.5,fontWeight:700,letterSpacing:"0.1em",textTransform:"uppercase",color:T.stoneDeep,marginBottom:7},"data-gufi-src":"components/LegalModal.tsx:38"},L(h)),__gh("p",{style:{fontFamily:T.sans,fontSize:15,lineHeight:1.62,color:T.ink2},"data-gufi-src":"components/LegalModal.tsx:39"},L(body))))))))}var import_react13=require("react"),import_framer_motion15=require("framer-motion"),import_lucide_react14=require("lucide-react");function SuccessOverlay({state:state3,onClose}){let{t}=useLang(),reduce=(0,import_framer_motion15.useReducedMotion)(),btnRef=(0,import_react13.useRef)(null);return(0,import_react13.useEffect)(()=>{if(!state3)return;document.documentElement.style.overflow="hidden";let onKey=e=>{e.key==="Escape"&&state3!=="processing"&&onClose()};return document.addEventListener("keydown",onKey),()=>{document.documentElement.style.overflow="",document.removeEventListener("keydown",onKey)}},[state3,onClose]),(0,import_react13.useEffect)(()=>{if(state3==="paid"||state3==="unpaid"){let t2=setTimeout(()=>btnRef.current?.focus(),420);return()=>clearTimeout(t2)}},[state3]),state3?__gh(import_framer_motion15.motion.div,{className:"fixed inset-0 z-[110] flex items-center justify-center p-4 sm:p-6",initial:{opacity:0},animate:{opacity:1},style:{background:"rgba(20,17,12,0.6)",backdropFilter:"blur(6px)"}},__gh("div",{"aria-hidden":"true",className:"absolute pointer-events-none",style:{width:640,height:640,borderRadius:"50%",background:state3==="paid"?"radial-gradient(circle, rgba(60,69,53,0.28), transparent 62%)":"radial-gradient(circle, rgba(140,122,88,0.22), transparent 62%)",filter:"blur(20px)"},"data-gufi-src":"components/SuccessOverlay.tsx:29"}),__gh(import_framer_motion15.motion.div,{role:"dialog","aria-modal":"true","aria-live":"polite",initial:{y:24,opacity:0,scale:.97},animate:{y:0,opacity:1,scale:1},transition:{duration:reduce?.2:.45,ease:T.ease},className:"relative w-full text-center rounded-3xl overflow-hidden px-6 py-10 sm:px-8 sm:py-12",style:{maxWidth:480,maxHeight:"92dvh",background:T.paper2,boxShadow:"0 40px 90px -40px rgba(0,0,0,0.5)",border:"1px solid rgba(33,30,24,0.06)"}},__gh(import_framer_motion15.AnimatePresence,{mode:"wait"},state3==="unpaid"?__gh(import_framer_motion15.motion.div,{key:"unpaid",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.25}},__gh("button",{onClick:onClose,"aria-label":t("Cerrar","Close"),className:"absolute right-4 top-4 sm:right-5 sm:top-5 grid place-items-center rounded-full outline-none transition-colors hover:bg-[rgba(33,30,24,0.06)] focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[#8C7A58]",style:{width:44,height:44,border:`1px solid ${T.line}`},"data-gufi-src":"components/SuccessOverlay.tsx:39"},__gh(import_lucide_react14.X,{size:18})),__gh("div",{className:"mx-auto mb-6 grid place-items-center rounded-full",style:{width:84,height:84,background:T.sand},"data-gufi-src":"components/SuccessOverlay.tsx:40"},__gh(import_lucide_react14.CreditCard,{size:36,color:T.stoneDeep})),__gh("h2",{style:{fontFamily:T.serif,fontSize:"clamp(22px, 5.5vw, 26px)",fontWeight:500,color:T.ink},"data-gufi-src":"components/SuccessOverlay.tsx:43"},t("El pago no se complet\xF3","Payment not completed")),__gh("p",{className:"mt-3 mx-auto",style:{fontFamily:T.sans,fontSize:15,lineHeight:1.6,color:T.ink2,maxWidth:380},"data-gufi-src":"components/SuccessOverlay.tsx:44"},t("No se ha realizado ning\xFAn cargo. Tu reserva sigue en el carrito: puedes intentarlo de nuevo cuando quieras.","No charge has been made. Your booking is still in the cart \u2014 you can try again whenever you like.")),__gh("button",{ref:btnRef,onClick:onClose,className:"mt-7 inline-flex items-center gap-2 rounded-full px-7 py-3 outline-none transition-transform hover:-translate-y-0.5 active:scale-[0.98] focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[#8C7A58]",style:{background:T.ink,color:"#FBF7EF",fontFamily:T.sans,fontSize:14.5,fontWeight:600},"data-gufi-src":"components/SuccessOverlay.tsx:47"},t("Volver a mi reserva","Back to my booking")),__gh("p",{className:"mt-4",style:{fontFamily:T.sans,fontSize:12,color:T.faint},"data-gufi-src":"components/SuccessOverlay.tsx:50"},t("\xBFDudas?","Questions?")," ",CONTACT.telPrincipal," \xB7 ",CONTACT.email)):state3==="processing"?__gh(import_framer_motion15.motion.div,{key:"processing",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.25}},__gh("div",{className:"relative mx-auto mb-6",style:{width:84,height:84},"data-gufi-src":"components/SuccessOverlay.tsx:54"},!reduce&&[0,.6].map(d=>__gh(import_framer_motion15.motion.span,{key:d,className:"absolute rounded-full",style:{inset:0,border:`1.5px solid ${T.stoneSoft}`},initial:{scale:.85,opacity:.5},animate:{scale:1.7,opacity:0},transition:{duration:1.8,repeat:1/0,ease:"easeOut",delay:d}})),__gh("div",{className:"absolute inset-0 grid place-items-center rounded-full",style:{background:T.sand},"data-gufi-src":"components/SuccessOverlay.tsx:59"},__gh(import_framer_motion15.motion.div,{animate:reduce?{}:{scale:[1,1.08,1]},transition:{duration:1.6,repeat:1/0,ease:"easeInOut"}},__gh(Vieira,{size:40,color:T.stoneDeep})))),__gh("h2",{style:{fontFamily:T.serif,fontSize:"clamp(22px, 5.5vw, 26px)",fontWeight:500,color:T.ink},"data-gufi-src":"components/SuccessOverlay.tsx:65"},t("Confirmando tu reserva\u2026","Confirming your booking\u2026")),__gh("p",{className:"mt-2",style:{fontFamily:T.sans,fontSize:14.5,color:T.muted},"data-gufi-src":"components/SuccessOverlay.tsx:66"},t("Un momento, estamos verificando tu pago.","One moment, we\u2019re verifying your payment."))):__gh(import_framer_motion15.motion.div,{key:"paid",initial:{opacity:0},animate:{opacity:1},transition:{duration:.3}},__gh("button",{onClick:onClose,"aria-label":t("Cerrar","Close"),className:"absolute right-4 top-4 sm:right-5 sm:top-5 grid place-items-center rounded-full outline-none transition-colors hover:bg-[rgba(33,30,24,0.06)] focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[#8C7A58]",style:{width:44,height:44,border:`1px solid ${T.line}`},"data-gufi-src":"components/SuccessOverlay.tsx:70"},__gh(import_lucide_react14.X,{size:18})),__gh("div",{className:"relative mx-auto mb-6",style:{width:88,height:88},"data-gufi-src":"components/SuccessOverlay.tsx:72"},!reduce&&[0,.5].map(d=>__gh(import_framer_motion15.motion.span,{key:d,className:"absolute rounded-full",style:{inset:0,border:`1.5px solid ${T.forest}`},initial:{scale:.8,opacity:.45},animate:{scale:2.1,opacity:0},transition:{duration:2,repeat:1/0,ease:"easeOut",delay:.3+d}})),__gh(import_framer_motion15.motion.div,{initial:{scale:0},animate:{scale:1},transition:reduce?{duration:.2}:{type:"spring",stiffness:260,damping:18,delay:.1},className:"absolute inset-0 grid place-items-center rounded-full",style:{background:T.forest,boxShadow:"0 18px 40px -18px rgba(60,69,53,0.9)"}},__gh(import_framer_motion15.motion.span,{initial:{pathLength:0,opacity:0},animate:{opacity:1},transition:{delay:.28}},__gh(import_lucide_react14.Check,{size:44,color:"#fff",strokeWidth:2.4})))),__gh("h2",{style:{fontFamily:T.serif,fontSize:"clamp(24px, 6vw, 30px)",fontWeight:500,color:T.ink,letterSpacing:"-0.01em"},"data-gufi-src":"components/SuccessOverlay.tsx:85"},t("\xA1Reserva confirmada!","Booking confirmed!")),__gh("p",{className:"mt-3 mx-auto",style:{fontFamily:T.sans,fontSize:15.5,lineHeight:1.6,color:T.ink2,maxWidth:380},"data-gufi-src":"components/SuccessOverlay.tsx:86"},t("Gracias por confiar en nosotros para tu Camino. Hemos recibido tu pago correctamente.","Thank you for trusting us with your Camino. We\u2019ve received your payment successfully.")),__gh("div",{className:"mt-6 flex items-center justify-center gap-2.5 rounded-xl px-4 py-3 mx-auto",style:{background:T.card,border:`1px solid ${T.line}`,maxWidth:340},"data-gufi-src":"components/SuccessOverlay.tsx:89"},__gh(import_lucide_react14.Mail,{size:16,color:T.stoneDeep,className:"shrink-0"}),__gh("span",{style:{fontFamily:T.sans,fontSize:13,color:T.muted},"data-gufi-src":"components/SuccessOverlay.tsx:91"},t("Recibir\xE1s la confirmaci\xF3n en tu email","You\u2019ll receive the confirmation by email"))),__gh("button",{ref:btnRef,onClick:onClose,className:"mt-7 inline-flex items-center gap-2 rounded-full px-7 py-3 outline-none transition-transform hover:-translate-y-0.5 active:scale-[0.98] focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[#8C7A58]",style:{background:T.ink,color:"#FBF7EF",fontFamily:T.sans,fontSize:14.5,fontWeight:600},"data-gufi-src":"components/SuccessOverlay.tsx:93"},__gh(Vieira,{size:16,color:T.amberSoft})," Buen Camino"),__gh("p",{className:"mt-4",style:{fontFamily:T.sans,fontSize:12,color:T.faint},"data-gufi-src":"components/SuccessOverlay.tsx:96"},t("\xBFDudas?","Questions?")," ",CONTACT.telPrincipal," \xB7 ",CONTACT.email))))):null}var Boundary=class extends import_react14.default.Component{constructor(p){super(p),this.state={err:!1}}static getDerivedStateFromError(){return{err:!0}}componentDidCatch(e){console.error("[OKW]",e)}render(){return this.state.err?__gh("div",{style:{padding:40,fontFamily:"sans-serif"},"data-gufi-src":"page.tsx:29"},"Algo ha fallado. Recarga la p\xE1gina."):this.props.children}};function injectFonts(){if(typeof document>"u"||document.getElementById("okw-style"))return;if(!Array.from(document.fonts).some(f=>f.family.replace(/["']/g,"")==="Fraunces")){let pc1=document.createElement("link");pc1.rel="preconnect",pc1.href="https://fonts.googleapis.com";let pc2=document.createElement("link");pc2.rel="preconnect",pc2.href="https://fonts.gstatic.com",pc2.crossOrigin="anonymous";let link2=document.createElement("link");link2.id="okw-fonts",link2.rel="stylesheet",link2.href="https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..600;1,9..144,300..600&family=Inter:wght@400;500;600;700&display=swap",document.head.append(pc1,pc2,link2)}let style=document.createElement("style");style.id="okw-style",style.textContent=`section[id]{scroll-margin-top:80px} .okw-root ::selection{background:${T.brandYellow};color:${T.espresso}} .okw-root{-webkit-font-smoothing:antialiased}`,document.head.append(style);try{document.querySelectorAll("link[rel='icon'],link[rel='shortcut icon'],link[rel='apple-touch-icon']").forEach(n=>n.parentNode&&n.parentNode.removeChild(n));let fav=document.createElement("link");fav.rel="icon",fav.type="image/svg+xml",fav.href=FAVICON_HREF;let apple=document.createElement("link");apple.rel="apple-touch-icon",apple.href=FAVICON_HREF,document.head.append(fav,apple)}catch{}}function OkTheWay({gufi}){let[productos,setProductos]=(0,import_react14.useState)([]),[loading,setLoading]=(0,import_react14.useState)(!0),[loadError,setLoadError]=(0,import_react14.useState)(!1),[cartOpen,setCartOpen]=(0,import_react14.useState)(!1),[modal,setModal]=(0,import_react14.useState)(null),[legal,setLegal]=(0,import_react14.useState)(null),[success,setSuccess]=(0,import_react14.useState)(null),[accountOpen,setAccountOpen]=(0,import_react14.useState)(!1),[resetToken,setResetToken]=(0,import_react14.useState)(null);(0,import_react14.useEffect)(()=>{injectFonts();try{document.title="OK The Way \xB7 Parking en Sarria y servicios para el Camino de Santiago"}catch{}},[]);let load3=(0,import_react14.useCallback)(async()=>{setLoading(!0),setLoadError(!1);try{let rows=[];for(let page=1;page<=20;page++){let r=await gufi.query("ecommerce__productos",{pageSize:100,page}),batch=Array.isArray(r?.data)?r.data:[];if(rows.push(...batch),batch.length<100)break}setProductos(rows.filter(p=>p.activo!==!1&&(!p.sitio||p.sitio==="oktheway")))}catch(e){console.error("[OKW] productos",e),setProductos([]),setLoadError(!0)}finally{setLoading(!1)}},[gufi]);(0,import_react14.useEffect)(()=>{load3()},[load3]),(0,import_react14.useEffect)(()=>{if(typeof window>"u")return;let q=new URLSearchParams(window.location.search),clean=()=>window.history.replaceState({},"",window.location.origin+window.location.pathname);if(q.get("okw_paid")){let sid=q.get("session_id")||"";setSuccess("processing"),(async()=>{let paid=!1;if(sid&&sid.startsWith("cs_"))try{let r=await verifySession(gufi,sid);paid=!(r&&r.paid===!1)}catch{paid=!0}if(paid){cartApi.clear();try{sessionStorage.removeItem("okw_pending_order")}catch{}setSuccess("paid")}else setSuccess("unpaid")})(),clean()}else if(q.get("okw_cancel")){clean();try{let raw=sessionStorage.getItem("okw_pending_order");if(raw){sessionStorage.removeItem("okw_pending_order");let p=JSON.parse(raw);p&&p.id&&callAutomation(gufi,"cancelar_pedido",{orderId:p.id,email:p.email}).catch(()=>{})}}catch{}setCartOpen(!0)}else if(q.get("okw_reset")){let tk=q.get("okw_reset")||"";clean(),tk&&(setResetToken(tk),setAccountOpen(!0))}},[gufi]);let navigate=(0,import_react14.useCallback)(id=>{let el=document.getElementById(id);el&&el.scrollIntoView({behavior:"smooth",block:"start"})},[]);return __gh(Boundary,null,__gh("div",{className:"okw-root",style:{background:T.paper,color:T.ink,fontFamily:T.sans,position:"relative",minHeight:"100vh",overflowX:"hidden"},"data-gufi-src":"page.tsx:152"},__gh(Grain,null),__gh("div",{style:{position:"relative",zIndex:2},"data-gufi-src":"page.tsx:154"},__gh(Nav,{onCart:()=>setCartOpen(!0),onNavigate:navigate,onAccount:()=>setAccountOpen(!0)}),__gh("main",{"data-gufi-src":"page.tsx:156"},__gh(Hero,{onNavigate:navigate}),__gh(XacobeoBar,null),__gh(Trust,null),__gh(Servicios,{onNavigate:navigate}),__gh(Tienda,{productos,loading,error:loadError,onRetry:load3,onOpen:p=>setModal(p)}),__gh(ComoFunciona,null),__gh(Galeria,null),__gh(FAQ2,null),__gh(Contacto,null)),__gh(Footer,{onLegal:k=>setLegal(k),onNavigate:navigate})),__gh(WhatsAppFab,null),__gh(CartDrawer,{gufi,open:cartOpen,onClose:()=>setCartOpen(!1)}),__gh(Account,{gufi,open:accountOpen,onClose:()=>setAccountOpen(!1),resetToken,onResetDone:()=>setResetToken(null)}),__gh(ProductModal,{product:modal,onClose:()=>setModal(null),onAdded:()=>{setModal(null),setCartOpen(!0)}}),__gh(LegalModal,{which:legal,onClose:()=>setLegal(null)}),__gh(SuccessOverlay,{state:success,onClose:()=>{success==="unpaid"&&setCartOpen(!0),setSuccess(null)}})))}var featureConfig={dataSources,automations,slots,meta:{name:"OK The Way \u2014 Web",version:"1.0.0"}};var stdin_default=OkTheWay;