var __gh = require("react").createElement, __gf = require("react").Fragment; var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __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 __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:"tipos",table:"pms__tipos_habitacion",access:["public:read"]},{key:"habitaciones",table:"pms__habitaciones",access:["public:read"]},{key:"tarifas",table:"pms__tarifas",access:["public:read"]},{key:"reservas",table:"pms__reservas",access:["public:read"],sensitive:["notas"]},{key:"resenas",table:"pms__resenas",access:["public:read"]},{key:"competidores",table:"pms__competidores",access:["public:read"]},{key:"cargos",table:"pms__cargos",access:["public:read"]}];var automations=[{name:"web_booking",description:"Crea la reserva desde el motor web con validaci\xF3n de disponibilidad",public:!0}];var integrations=[];var import_react=require("react"),import_framer_motion=require("framer-motion"),import_lucide_react=require("lucide-react"),CANVAS="#FBFAF8",SURFACE="#FFFFFF",ALT="#F4F1EC",INK="#1A1916",INK_SOFT="#5C5852",INK_MUTE="#9B958C",LINE="#ECE8E1",LINE_2="#DAD4CA",ACCENT="#3F6B57",ACCENT_BG="#EDF1EE",DANGER="#8A4A3B";var SH_SOFT="0 1px 2px rgba(26,25,22,.04)",SH_FLOAT="0 1px 2px rgba(26,25,22,.04), 0 12px 40px -24px rgba(26,25,22,.16)";var FONT_SANS="'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif",TYPE={display:"clamp(3.25rem, 1.6rem + 7.1vw, 6.5rem)",h1:"clamp(2.25rem, 1.3rem + 4.1vw, 3.5rem)",h2:"clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem)",lead:"clamp(1.125rem, 1.02rem + 0.45vw, 1.3125rem)",editorialNum:"clamp(3rem, 1.5rem + 6vw, 5rem)"};var EASE_OUT=[.16,1,.3,1],EASE_INOUT=[.65,0,.35,1];var SPRING_SOFT={stiffness:120,damping:24,mass:1};function useReducedMotion(){let[reduce,setReduce]=(0,import_react.useState)(!1);return(0,import_react.useEffect)(()=>{if(typeof window>"u"||!window.matchMedia)return;let mq=window.matchMedia("(prefers-reduced-motion: reduce)"),update=()=>setReduce(mq.matches);return update(),mq.addEventListener?(mq.addEventListener("change",update),()=>mq.removeEventListener("change",update)):(mq.addListener(update),()=>mq.removeListener(update))},[]),reduce}var T={tipos:"pms__tipos_habitacion",habitaciones:"pms__habitaciones",tarifas:"pms__tarifas",reservas:"pms__reservas",resenas:"pms__resenas",competidores:"pms__competidores",cargos:"pms__cargos"},pad=n=>String(n).padStart(2,"0"),ymd=d=>`${d.getFullYear()}-${pad(d.getMonth()+1)}-${pad(d.getDate())}`,fromYmd=s=>{let[y,m,d]=s.slice(0,10).split("-").map(Number);return new Date(y,m-1,d)},addDays=(s,n)=>{let d=fromYmd(s);return d.setDate(d.getDate()+n),ymd(d)},diffDays=(a,b)=>Math.round((fromYmd(a).getTime()-fromYmd(b).getTime())/864e5),relId=v=>v&&typeof v=="object"?v.id:v,num=v=>Number(v&&typeof v=="object"?v.amount??v.value??0:v??0),eur=v=>new Intl.NumberFormat("es-ES",{style:"currency",currency:"EUR",maximumFractionDigits:0}).format(num(v)),MES=["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],DIA=["dom","lun","mar","mi\xE9","jue","vie","s\xE1b"],fmtD=s=>{let d=fromYmd(s);return`${d.getDate()} ${MES[d.getMonth()]}`},mondayOf=s=>{let day=fromYmd(s).getDay(),back=day===0?6:day-1;return addDays(s,-back)},HERO_IMG="https://images.unsplash.com/photo-1501785888041-af3ef285b470?w=2400&q=82&auto=format&fit=crop",EXPERIENCE_IMG="https://images.unsplash.com/photo-1486870591958-9b9d0d1dda99?w=2000&q=80&auto=format&fit=crop",CTA_IMG="https://images.unsplash.com/photo-1522771739844-6a9f6d5f14af?w=2000&q=80&auto=format&fit=crop",ROOM_IMG={IND:"https://images.unsplash.com/photo-1611892440504-42a792e24d32?w=1400&q=80&auto=format&fit=crop",DBL:"https://images.unsplash.com/photo-1505693416388-ac5ce068fe85?w=1400&q=80&auto=format&fit=crop",SUP:"https://images.unsplash.com/photo-1582719478250-c89cae4dc85b?w=1400&q=80&auto=format&fit=crop",STE:"https://images.unsplash.com/photo-1618773928121-c32242e63f39?w=1400&q=80&auto=format&fit=crop"},roomImg=codigo=>ROOM_IMG[String(codigo||"").toUpperCase()]||ROOM_IMG.DBL,EXTRA_IMG={desayuno:"https://images.unsplash.com/photo-1533920379810-6bedac961555?w=1200&q=80&auto=format&fit=crop",spa:"https://images.unsplash.com/photo-1610701596007-11502861dcfa?w=1200&q=80&auto=format&fit=crop"},FEATURES={IND:["Cama 105 \xB7 lencer\xEDa 300 hilos","Escritorio con vista","Ducha efecto lluvia"],DBL:["Cama 160 o twin","Lencer\xEDa 300 hilos","Ba\xF1o completo en m\xE1rmol"],SUP:["Cama king \xB7 zona de estar","Vistas a la sierra","Amenities Le Labo"],STE:["Sal\xF3n independiente","Terraza privada 18 m\xB2","Ba\xF1era exenta + ducha"]},EXTRA_META={desayuno:{label:"Desayuno km 0",desc:"Buffet de producto de la sierra \xB7 7:30\u201310:30",icon:import_lucide_react.Coffee,per:"persona / noche",mult:(n,g)=>n*g},spa:{label:"Circuito spa & aguas",desc:"Termal, sauna y vaporario \xB7 acceso ilimitado",icon:import_lucide_react.Waves,per:"estancia",mult:()=>1},parking:{label:"Parking cubierto",desc:"Plaza asignada bajo el hotel \xB7 cargador EV",icon:import_lucide_react.Car,per:"noche",mult:n=>n},late_checkout:{label:"Late check-out 14:00",desc:"Alarga tu \xFAltima ma\xF1ana sin prisa",icon:import_lucide_react.Clock,per:"estancia",mult:()=>1}},EXTRA_ORDER=["desayuno","spa","parking","late_checkout"];function nightlyRate(tipoId,tipos,tarifas,day){let matches=tarifas.filter(t=>relId(t.tipo_habitacion)===tipoId&&String(t.fecha_inicio).slice(0,10)<=day&&String(t.fecha_fin).slice(0,10)>=day);if(matches.length)return matches.sort((a,b)=>{let la=diffDays(String(a.fecha_fin).slice(0,10),String(a.fecha_inicio).slice(0,10)),lb=diffDays(String(b.fecha_fin).slice(0,10),String(b.fecha_inicio).slice(0,10));if(la!==lb)return la-lb;let pa=num(a.precio_noche),pb=num(b.precio_noche);return pa!==pb?pa-pb:num(a.id)-num(b.id)}),num(matches[0].precio_noche);let tipo=tipos.find(t=>t.id===tipoId);return tipo?num(tipo.precio_base):0}function rateTotal(tipoId,tipos,tarifas,entrada,salida){let s=0;for(let d=entrada;d{inView&&mv.set(to)},[inView,to,mv]),(0,import_framer_motion.useMotionValueEvent)(sv,"change",v=>{ref.current&&(ref.current.textContent=(Number(v)||0).toFixed(decimals)+suffix)}),(0,import_react.useEffect)(()=>{reduce&&inView&&ref.current&&(ref.current.textContent=(Number(to)||0).toFixed(decimals)+suffix)},[reduce,inView,to,decimals,suffix]),__gh("span",{ref,className:"tabular-nums","data-gufi-src":"page.tsx:259"},"0"+suffix)}var CountUp=SpringNumber;function Photo({src,alt,label,className="",imgClass="",priority=!1,reveal=!1}){let[failed,setFailed]=(0,import_react.useState)(!1),reduce=useReducedMotion(),wrapRef=(0,import_react.useRef)(null),inView=(0,import_framer_motion.useInView)(wrapRef,{once:!0,margin:"-8% 0px"}),inner=__gh(__gf,null,failed?__gh("div",{className:"absolute inset-0 flex items-center justify-center",style:{background:ACCENT_BG},"data-gufi-src":"page.tsx:282"},__gh("span",{className:"serif text-[clamp(20px,4vw,34px)]",style:{color:ACCENT},"data-gufi-src":"page.tsx:283"},label)):__gh("img",{src,alt,loading:priority?"eager":"lazy",onError:()=>setFailed(!0),className:`absolute inset-0 w-full h-full object-cover ${imgClass}`,style:{filter:"saturate(0.92) contrast(1.02) brightness(1.02)"},"data-gufi-src":"page.tsx:273"}),!failed&&__gh("div",{className:"absolute inset-0 pointer-events-none",style:{background:"rgba(63,107,87,0.04)",mixBlendMode:"multiply"},"data-gufi-src":"page.tsx:288"}),__gh("div",{className:"absolute inset-0 pointer-events-none",style:{boxShadow:"inset 0 0 0 1px rgba(26,25,22,0.06)",borderRadius:"inherit"},"data-gufi-src":"page.tsx:291"}));return reveal&&!reduce?__gh(import_framer_motion.motion.div,{ref:wrapRef,className:`relative overflow-hidden ${className}`,style:{background:ALT},initial:{clipPath:"inset(0 0 100% 0)",scale:1.06},animate:inView?{clipPath:"inset(0 0 0% 0)",scale:1}:{},transition:{duration:1,ease:EASE_OUT}},inner):__gh("div",{ref:wrapRef,className:`relative overflow-hidden ${className}`,style:{background:ALT},"data-gufi-src":"page.tsx:309"},inner)}function ParallaxImage({src,alt,label,speed=.12,className=""}){let ref=(0,import_react.useRef)(null),reduce=useReducedMotion(),{scrollYProgress}=(0,import_framer_motion.useScroll)({target:ref,offset:["start end","end start"]}),y=(0,import_framer_motion.useSpring)((0,import_framer_motion.useTransform)(scrollYProgress,[0,1],reduce?["0%","0%"]:[`${-speed*100}%`,`${speed*100}%`]),SPRING_SOFT);return __gh("div",{ref,className:`relative overflow-hidden ${className}`,"data-gufi-src":"page.tsx:325"},__gh(import_framer_motion.motion.div,{style:{y,willChange:"transform"},className:"absolute -inset-y-[12%] inset-x-0"},__gh(Photo,{src,alt,label,className:"w-full h-full"})))}function Stepper({label,value,set,min,max,hint}){return __gh("div",{role:"group","aria-label":label,"data-gufi-src":"page.tsx:338"},__gh("div",{className:"flex items-center justify-between","data-gufi-src":"page.tsx:339"},__gh("div",{"data-gufi-src":"page.tsx:340"},__gh("span",{className:"text-[13px]",style:{color:INK},"data-gufi-src":"page.tsx:341"},label),hint&&__gh("span",{className:"block text-[11px]",style:{color:INK_MUTE},"data-gufi-src":"page.tsx:342"},hint)),__gh("div",{className:"flex items-center gap-1",style:{background:ALT,borderRadius:12,padding:2},"data-gufi-src":"page.tsx:344"},__gh("button",{type:"button","aria-label":`Quitar ${label.toLowerCase()}`,onClick:()=>set(Math.max(min,value-1)),disabled:value<=min,className:`w-9 h-9 rounded-[10px] flex items-center justify-center disabled:opacity-30 transition-colors hover:bg-white ${focusRing}`,style:{color:INK_SOFT},"data-gufi-src":"page.tsx:345"},__gh(import_lucide_react.Minus,{size:15})),__gh("span",{"aria-live":"polite",className:"w-7 text-center text-[15px] tabular-nums",style:{color:INK},"data-gufi-src":"page.tsx:355"},value),__gh("button",{type:"button","aria-label":`A\xF1adir ${label.toLowerCase()}`,onClick:()=>set(Math.min(max,value+1)),disabled:value>=max,className:`w-9 h-9 rounded-[10px] flex items-center justify-center disabled:opacity-30 transition-colors hover:bg-white ${focusRing}`,style:{color:INK_SOFT},"data-gufi-src":"page.tsx:356"},__gh(import_lucide_react.Plus,{size:15})))))}function Stars({value,size=14,color=ACCENT,white=!1}){return __gh("span",{className:"flex gap-0.5","aria-label":`${value} de 5 estrellas`,"data-gufi-src":"page.tsx:374"},[1,2,3,4,5].map(s=>{let on=s<=Math.round(value),c=white?"#fff":color;return __gh(import_lucide_react.Star,{key:s,size,style:{color:c,fill:on?c:"transparent"},className:on?"":"opacity-30","aria-hidden":!0})}))}var EYEBROW="text-[11px] font-semibold uppercase tracking-[0.18em]";function WebMirador({id,gufi}){let today=ymd(new Date),reduce=useReducedMotion(),[data,setData]=(0,import_react.useState)(null),[loadError,setLoadError]=(0,import_react.useState)(!1),[entrada,setEntrada]=(0,import_react.useState)(addDays(today,1)),[salida,setSalida]=(0,import_react.useState)(addDays(today,3)),[adultos,setAdultos]=(0,import_react.useState)(2),[ninos,setNinos]=(0,import_react.useState)(0),[searched,setSearched]=(0,import_react.useState)(!1),[booking,setBooking]=(0,import_react.useState)(null),[extras,setExtras]=(0,import_react.useState)({}),[step,setStep]=(0,import_react.useState)(0),[done,setDone]=(0,import_react.useState)(null),[fNombre,setFNombre]=(0,import_react.useState)(""),[fApellidos,setFApellidos]=(0,import_react.useState)(""),[fEmail,setFEmail]=(0,import_react.useState)(""),[busy,setBusy]=(0,import_react.useState)(!1),[bookErr,setBookErr]=(0,import_react.useState)(""),[stuck,setStuck]=(0,import_react.useState)(!1),resultsRef=(0,import_react.useRef)(null),heroRef=(0,import_react.useRef)(null),modalRef=(0,import_react.useRef)(null),triggerRef=(0,import_react.useRef)(null),firstFieldRef=(0,import_react.useRef)(null),guests=adultos+ninos,{scrollY}=(0,import_framer_motion.useScroll)(),navSolid=(0,import_framer_motion.useMotionValue)(0),navBg=(0,import_framer_motion.useTransform)(navSolid,[0,1],["rgba(251,250,248,0)","rgba(251,250,248,0.8)"]),navBorder=(0,import_framer_motion.useTransform)(navSolid,[0,1],["rgba(236,232,225,0)","rgba(236,232,225,1)"]);(0,import_framer_motion.useMotionValueEvent)(scrollY,"change",v=>{let s=v>80?1:0;navSolid.get()!==s&&navSolid.set(s),setStuck(prev=>v>680?!0:v<600?!1:prev)});let{scrollYProgress}=(0,import_framer_motion.useScroll)({target:heroRef,offset:["start start","end start"]}),heroYRaw=(0,import_framer_motion.useTransform)(scrollYProgress,[0,1],["0%",reduce?"0%":"8%"]),heroY=(0,import_framer_motion.useSpring)(heroYRaw,SPRING_SOFT),copyY=(0,import_framer_motion.useTransform)(scrollYProgress,[0,1],["0%",reduce?"0%":"-6%"]);(0,import_react.useEffect)(()=>{let alive=!0;return Promise.allSettled(Object.values(T).map(table=>gufi.dataProvider.query(table,{pageSize:1e4}).then(r=>r.data))).then(results=>{if(!alive)return;let anyOk=results.some(r=>r.status==="fulfilled"),vals=results.map(r=>r.status==="fulfilled"?r.value||[]:[]),[tipos,habitaciones,tarifas,reservas,resenas,competidores,cargos]=vals;setData({tipos,habitaciones,tarifas,reservas,resenas,competidores,cargos}),anyOk||setLoadError(!0)}),()=>{alive=!1}},[gufi]);let nights=(0,import_react.useMemo)(()=>entrada&&salida&&entrada{let out={};if(!data?.competidores?.length)return out;let stayWeek=mondayOf(entrada),byTipo={};return data.competidores.filter(c=>c.fuente==="booking").forEach(c=>{let t=relId(c.tipo_equivalente);t&&(byTipo[t]=byTipo[t]||[]).push(c)}),Object.keys(byTipo).forEach(k=>{let rows=byTipo[k],weeks=rows.map(r=>String(r.semana||"").slice(0,10)).filter(Boolean),target="",le=weeks.filter(w=>w<=stayWeek).sort();le.length?target=le[le.length-1]:weeks.length&&(target=weeks.slice().sort()[0]);let prices=(target?rows.filter(r=>String(r.semana||"").slice(0,10)===target):rows).map(r=>num(r.precio)).filter(p=>p>0);prices.length&&(out[k]=prices.reduce((s,x)=>s+x,0)/prices.length)}),out},[data,entrada]),avgSavings=(0,import_react.useMemo)(()=>{if(!data?.tipos?.length)return 0;let pcts=[];return data.tipos.forEach(t=>{let comp=compByTipo[t.id],ours=num(t.precio_base);comp&&ours&&comp>ours&&pcts.push((comp-ours)/comp*100)}),pcts.length?Math.round(pcts.reduce((s,x)=>s+x,0)/pcts.length):0},[data,compByTipo]),extrasCatalog=(0,import_react.useMemo)(()=>{if(!data?.cargos?.length)return[];let acc={};return data.cargos.forEach(c=>{let k=c.categoria;!k||!EXTRA_META[k]||(acc[k]=acc[k]||[]).push(num(c.precio))}),EXTRA_ORDER.filter(k=>acc[k]&&acc[k].length).map(k=>{let arr=acc[k].slice().sort((a,b)=>a-b),price=arr[Math.floor(arr.length/2)];return{key:k,price,...EXTRA_META[k]}})},[data]),availability=(0,import_react.useMemo)(()=>{if(!data?.tipos?.length||!nights)return[];let active=(data.reservas||[]).filter(r=>r.estado==="confirmada"||r.estado==="checkin"),freeRoom=h=>!active.some(r=>{if(relId(r.habitacion)!==h.id)return!1;let rIn=String(r.fecha_entrada).slice(0,10),rOut=String(r.fecha_salida).slice(0,10);return rInnum(a.precio_base)-num(b.precio_base)).map(tipo=>{let fits=Number(tipo.capacidad)>=guests,rooms=(data.habitaciones||[]).filter(h=>relId(h.tipo)===tipo.id&&!h.fuera_de_servicio&&fits&&freeRoom(h)),total=rateTotal(tipo.id,data.tipos,data.tarifas||[],entrada,salida);return{tipo,rooms,total,night:nights?Math.round(total/nights):num(tipo.precio_base),fits}})},[data,entrada,salida,guests,nights]),noResults=searched&&availability.length>0&&availability.every(a=>a.rooms.length===0),priceStrip=(0,import_react.useMemo)(()=>{if(!data?.tipos?.length)return[];let cheapest=[...data.tipos].sort((a,b)=>num(a.precio_base)-num(b.precio_base))[0];if(!cheapest)return[];let out=[];for(let i=0;i<14;i++){let d=addDays(today,i+1);out.push({day:d,price:nightlyRate(cheapest.id,data.tipos,data.tarifas||[],d)})}return out},[data,today]),stripMin=(0,import_react.useMemo)(()=>priceStrip.length?Math.min(...priceStrip.map(p=>p.price)):0,[priceStrip]),directWeek=(0,import_react.useMemo)(()=>{if(!data?.reservas?.length)return 0;let since=addDays(today,-7);return data.reservas.filter(r=>r.canal==="directo"&&String(r.__created_at__||"").slice(0,10)>=since).length},[data,today]),reviewStats=(0,import_react.useMemo)(()=>{if(!data?.resenas?.length)return null;let rs=data.resenas,avg=rs.reduce((s,r)=>s+Number(r.puntuacion||0),0)/rs.length,dist=[5,4,3,2,1].map(n=>({n,c:rs.filter(r=>Number(r.puntuacion)===n).length})),bySource={};return rs.forEach(r=>{bySource[r.fuente]=(bySource[r.fuente]||0)+1}),{avg,count:rs.length,dist,bySource}},[data]),topReviews=(0,import_react.useMemo)(()=>data?.resenas?.length?[...data.resenas].filter(r=>Number(r.puntuacion)>=4&&r.comentario).sort((a,b)=>Number(b.puntuacion)-Number(a.puntuacion)).slice(0,4):[],[data]),scrollToResults=()=>setTimeout(()=>resultsRef.current&&resultsRef.current.scrollIntoView({behavior:"smooth",block:"start"}),120),search=()=>{nights&&(setSearched(!0),scrollToResults())},pickDate=d=>{setEntrada(d),setSalida(addDays(d,Math.max(1,nights||2))),setSearched(!0),scrollToResults()},openBooking=(b,e)=>{triggerRef.current=e?.currentTarget||null,setBooking(b),setExtras({}),setStep(extrasCatalog.length>0?0:1),setBookErr("")},closeBooking=()=>{setBooking(null),setBookErr(""),triggerRef.current&&setTimeout(()=>triggerRef.current?.focus(),0)},extrasLines=(0,import_react.useMemo)(()=>booking?extrasCatalog.filter(e=>extras[e.key]).map(e=>{let qty=e.mult(nights||1,guests);return{...e,qty,line:e.price*qty}}):[],[booking,extras,extrasCatalog,nights,guests]),extrasTotal=(0,import_react.useMemo)(()=>extrasLines.reduce((s,e)=>s+e.line,0),[extrasLines]),grandTotal=(booking?booking.total:0)+extrasTotal,confirm=async()=>{if(!fNombre.trim()||!fEmail.trim()){setBookErr("Necesitamos tu nombre y tu email para confirmar la reserva.");return}if(!/^[^@\s]+@[^@\s]+\.[^@\s]+$/.test(fEmail.trim())){setBookErr("Ese email no parece v\xE1lido.");return}if(!nights){setBookErr("La salida debe ser posterior a la entrada.");return}setBusy(!0),setBookErr("");try{let room=booking.rooms[0],res=await gufi.automation("web_booking",{nombre:fNombre.trim(),apellidos:fApellidos.trim(),email:fEmail.trim(),entrada,salida,habitacion_id:room.id,adultos,ninos,extras:extrasLines.map(e=>({categoria:e.key,concepto:e.label,precio:e.price,cantidad:e.qty}))});if(res&&res.success===!1){setBookErr("no_disponible"),setBusy(!1);return}setData(p=>({...p,reservas:[...p.reservas||[],{habitacion:room.id,fecha_entrada:entrada,fecha_salida:salida,estado:"confirmada"}]}));let serverTotal=res?.total_estancia??res?.total??grandTotal,serverExtras=res?.extras_total??extrasTotal;setDone({tipo:booking.tipo,codigo:res?.codigo,total:serverTotal,room:Math.max(0,serverTotal-serverExtras),extras:serverExtras,entrada,salida,nights}),setBooking(null)}catch(e){let msg=String(e?.message||"").toLowerCase();msg.includes("pasad")||msg.includes("past")?setBookErr("La fecha de entrada ya ha pasado. Elige una fecha futura."):msg.includes("salida")||msg.includes("entrada")||msg.includes("checkout")?setBookErr("Las fechas no son v\xE1lidas: la salida debe ser posterior a la entrada."):msg.includes("email")?setBookErr("Ese email no parece v\xE1lido."):msg.includes("servicio")||msg.includes("disponible")?setBookErr("no_disponible"):setBookErr("No hemos podido completar la reserva. Int\xE9ntalo de nuevo en un momento.")}finally{setBusy(!1)}},recoverDates=()=>{closeBooking(),setSearched(!1),setTimeout(()=>{let el=document.getElementById("reservar");el&&el.scrollIntoView({behavior:"smooth",block:"center"})},120)};(0,import_react.useEffect)(()=>{if(!booking)return;setTimeout(()=>firstFieldRef.current?.focus(),60);let onKey=e=>{if(e.key==="Escape"&&!busy){e.preventDefault(),closeBooking();return}if(e.key!=="Tab"||!modalRef.current)return;let f=modalRef.current.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'),list=Array.from(f).filter(el=>!el.hasAttribute("disabled")&&el.offsetParent!==null);if(!list.length)return;let first=list[0],last=list[list.length-1];e.shiftKey&&document.activeElement===first?(e.preventDefault(),last.focus()):!e.shiftKey&&document.activeElement===last&&(e.preventDefault(),first.focus())};return document.addEventListener("keydown",onKey),()=>document.removeEventListener("keydown",onKey)},[booking,busy]),(0,import_react.useEffect)(()=>{if(!done)return;let onKey=e=>{e.key==="Escape"&&(setDone(null),setSearched(!1),setExtras({}),window.scrollTo({top:0,behavior:"smooth"}))};return document.addEventListener("keydown",onKey),()=>document.removeEventListener("keydown",onKey)},[done]);let inputLight=`h-12 w-full px-4 rounded-xl text-[14px] outline-none transition-colors [color-scheme:light] ${focusRing}`,dateRange=searched&&nights?`${fmtD(entrada).toUpperCase()} \u2014 ${fmtD(salida).toUpperCase()} \xB7 ${nights} ${nights===1?"NOCHE":"NOCHES"} \xB7 ${guests} ${guests===1?"HU\xC9SPED":"HU\xC9SPEDES"}`:"LAS HABITACIONES",onEntradaChange=v=>{setEntrada(v),v>=salida&&setSalida(addDays(v,1))};return __gh("div",{style:{background:CANVAS,color:INK,fontFamily:FONT_SANS},className:"min-h-screen antialiased overflow-x-hidden selection:bg-[#3F6B57]/15","data-gufi-src":"page.tsx:749"},__gh("style",{"data-gufi-src":"page.tsx:750"},` @import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..600;1,9..144,300..500&family=Inter:wght@400;500;600&display=swap'); .serif { font-family:'Fraunces',Georgia,serif; font-optical-sizing:auto; font-weight:380; font-variation-settings:'opsz' 144,'SOFT' 0,'WONK' 1; letter-spacing:-0.022em; font-feature-settings:'ss01','liga'; } .serif-italic { font-family:'Fraunces',Georgia,serif; font-style:italic; font-variation-settings:'opsz' 40,'SOFT' 4,'WONK' 1; font-weight:380; letter-spacing:-0.01em; } .sc { font-variant-caps:all-small-caps; letter-spacing:0.04em; font-weight:500; } @keyframes mirShimmer { 0% { background-position: -160% 0 } 100% { background-position: 260% 0 } } .mir-shimmer { background: linear-gradient(90deg, ${ALT} 0%, #FAF7F2 50%, ${ALT} 100%); background-size: 200% 100%; animation: mirShimmer 1.5s ease-in-out infinite; } .mir-hide-scroll::-webkit-scrollbar { display:none; } .mir-hide-scroll { -ms-overflow-style:none; scrollbar-width:none; } .mir-strip-mask { -webkit-mask-image: linear-gradient(90deg, transparent, #000 32px, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(90deg, transparent, #000 32px, #000 calc(100% - 32px), transparent); } @media (prefers-reduced-motion: reduce) { .mir-shimmer { animation: none } } `),__gh(import_framer_motion.motion.nav,{className:"fixed top-0 inset-x-0 z-40",style:{background:navBg,backdropFilter:"blur(20px)",borderBottom:"1px solid",borderColor:navBorder}},__gh("div",{className:"max-w-[1200px] mx-auto px-6 md:px-10 h-16 flex items-center justify-between","data-gufi-src":"page.tsx:768"},__gh("a",{href:"#top",className:`flex flex-col leading-none ${focusRing} rounded`,style:{color:INK},"data-gufi-src":"page.tsx:769"},__gh("span",{className:"serif text-[20px] lowercase","data-gufi-src":"page.tsx:770"},"El Mirador"),__gh("span",{className:"text-[11px] mt-0.5 sc",style:{color:INK_MUTE},"data-gufi-src":"page.tsx:771"},"Sierra de Gredos \xB7 1957")),__gh("a",{href:"#reservar",className:`text-[14px] transition-colors ${focusRing} rounded px-2 py-1`,style:{color:INK},"data-gufi-src":"page.tsx:775"},"Reservar"))),__gh(import_framer_motion.AnimatePresence,null,stuck&&!booking&&!done&&__gh(import_framer_motion.motion.a,{href:"#reservar",initial:{y:16,opacity:0},animate:{y:0,opacity:1},exit:{y:16,opacity:0},transition:{duration:.35,ease:EASE_OUT},className:`fixed bottom-5 right-5 z-50 h-12 px-6 rounded-full text-[14px] font-medium flex items-center gap-2 ${focusRing}`,style:{background:INK,color:"#fff",boxShadow:SH_FLOAT}},"Reservar ",__gh(import_lucide_react.ArrowRight,{size:15}))),__gh("header",{id:"top",ref:heroRef,className:"relative overflow-hidden",style:{background:CANVAS},"data-gufi-src":"page.tsx:803"},__gh("div",{className:"max-w-[1200px] mx-auto w-full px-6 md:px-10 pt-28 md:pt-36 pb-12 md:pb-20","data-gufi-src":"page.tsx:809"},__gh("div",{className:"grid lg:grid-cols-[1.15fr_0.85fr] gap-10 lg:gap-16 items-center min-h-[64svh]","data-gufi-src":"page.tsx:810"},__gh(import_framer_motion.motion.div,{style:{y:copyY}},__gh(import_framer_motion.motion.p,{className:`${EYEBROW} mb-5`,style:{color:INK_MUTE},initial:reduce?!1:{opacity:0},animate:{opacity:1},transition:{duration:.8,delay:.1,ease:EASE_OUT}},"Sierra de Gredos \xB7 \xC1vila \xB7 1957"),__gh("h1",{className:"serif",style:{fontSize:TYPE.display,lineHeight:.98,letterSpacing:"-0.03em",textWrap:"balance",color:INK},"data-gufi-src":"page.tsx:822"},__gh(LineReveal,null,"Donde el tiempo"),__gh(LineReveal,{delay:.08},__gh("span",{className:"serif-italic","data-gufi-src":"page.tsx:824"},"se detiene"))),__gh(import_framer_motion.motion.div,{className:"h-px mt-7 mb-7 origin-left",style:{background:ACCENT,maxWidth:120},initial:reduce?!1:{scaleX:0},whileInView:{scaleX:1},viewport:{once:!0},transition:{duration:1.4,delay:.2,ease:EASE_OUT}}),__gh(import_framer_motion.motion.p,{className:"max-w-[46ch] leading-relaxed",style:{fontSize:TYPE.lead,color:INK_SOFT,textWrap:"pretty"},initial:reduce?!1:{opacity:0,y:12},animate:{opacity:1,y:0},transition:{duration:.8,delay:.35,ease:EASE_OUT}},"Veinticinco habitaciones, una sierra infinita y el silencio como quinto servicio de habitaciones."),reviewStats&&__gh(import_framer_motion.motion.div,{className:"flex items-center gap-2 mt-7",initial:reduce?!1:{opacity:0},animate:{opacity:1},transition:{duration:.6,delay:.5}},__gh(Stars,{value:reviewStats.avg,size:14}),__gh("span",{className:"text-[13px] tabular-nums",style:{color:INK_SOFT},"data-gufi-src":"page.tsx:851"},(Number(reviewStats.avg)||0).toFixed(1)," \xB7 ",reviewStats.count," rese\xF1as"))),__gh(import_framer_motion.motion.div,{initial:reduce?!1:{opacity:0,scale:.98},animate:{opacity:1,scale:1},transition:{duration:1,ease:EASE_OUT,delay:.15},className:"relative"},__gh(import_framer_motion.motion.div,{style:{y:heroY},className:"rounded-2xl overflow-hidden w-full aspect-[4/5] lg:aspect-[3/4]"},__gh("div",{className:"relative w-full h-full overflow-hidden rounded-2xl",style:{background:ALT},"data-gufi-src":"page.tsx:866"},__gh(import_framer_motion.motion.img,{src:HERO_IMG,alt:"Sierra de Gredos al amanecer",loading:"eager",className:"absolute inset-0 w-full h-full object-cover",style:{filter:"saturate(0.92) contrast(1.02) brightness(1.02)"},animate:reduce?{}:{scale:1.06,x:"-1.5%"},transition:{duration:20,ease:EASE_INOUT,repeat:1/0,repeatType:"mirror"}}),__gh("div",{className:"absolute inset-0 pointer-events-none",style:{background:"rgba(63,107,87,0.04)",mixBlendMode:"multiply"},"data-gufi-src":"page.tsx:876"}),__gh("div",{className:"absolute inset-0 pointer-events-none",style:{boxShadow:"inset 0 0 0 1px rgba(26,25,22,0.06)",borderRadius:"inherit"},"data-gufi-src":"page.tsx:877"}))))))),__gh("div",{id:"reservar",className:"relative z-20 max-w-[1200px] mx-auto px-6 md:px-10 scroll-mt-24","data-gufi-src":"page.tsx:886"},__gh(import_framer_motion.motion.div,{initial:reduce?!1:{opacity:0,y:24},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.7,ease:EASE_OUT},className:"rounded-2xl overflow-hidden",style:{background:SURFACE,border:`1px solid ${LINE}`,boxShadow:SH_FLOAT}},__gh("div",{className:"grid md:grid-cols-[1fr_1fr_auto_auto] md:divide-x",style:{borderColor:LINE},"data-gufi-src":"page.tsx:895"},__gh("label",{className:"block p-5 md:p-6",style:{borderColor:LINE},"data-gufi-src":"page.tsx:896"},__gh("span",{className:EYEBROW,style:{color:INK_MUTE},"data-gufi-src":"page.tsx:897"},"Llegada"),__gh("input",{"aria-label":"Fecha de llegada",type:"date",min:today,value:entrada,onChange:e=>onEntradaChange(e.target.value),className:`mt-2 ${inputLight}`,style:{background:ALT,color:INK},"data-gufi-src":"page.tsx:898"})),__gh("label",{className:"block p-5 md:p-6",style:{borderColor:LINE},"data-gufi-src":"page.tsx:906"},__gh("span",{className:EYEBROW,style:{color:INK_MUTE},"data-gufi-src":"page.tsx:907"},"Salida"),__gh("input",{"aria-label":"Fecha de salida",type:"date",min:addDays(entrada,1),value:salida,onChange:e=>setSalida(e.target.value),className:`mt-2 ${inputLight}`,style:{background:ALT,color:INK},"data-gufi-src":"page.tsx:908"})),__gh("div",{className:"p-5 md:p-6 md:min-w-[230px]","data-gufi-src":"page.tsx:916"},__gh("span",{className:EYEBROW,style:{color:INK_MUTE},"data-gufi-src":"page.tsx:917"},"Hu\xE9spedes"),__gh("div",{className:"mt-2 space-y-2.5","data-gufi-src":"page.tsx:918"},__gh(Stepper,{label:"Adultos",value:adultos,set:setAdultos,min:1,max:6}),__gh(Stepper,{label:"Ni\xF1os",value:ninos,set:setNinos,min:0,max:4}))),__gh("div",{className:"p-5 md:p-6 flex flex-col justify-center","data-gufi-src":"page.tsx:923"},nights===0&&__gh("p",{className:"text-[12px] mb-2",style:{color:ACCENT},"data-gufi-src":"page.tsx:925"},"La salida debe ser posterior a la entrada"),__gh("button",{onClick:search,disabled:!nights,className:`h-12 px-7 rounded-full text-[14px] font-medium disabled:opacity-40 flex items-center gap-2 justify-center active:scale-[0.98] transition-all ${focusRing}`,style:{background:INK,color:"#fff"},"data-gufi-src":"page.tsx:927"},"Ver disponibilidad ",__gh(import_lucide_react.ArrowRight,{size:15}))))),__gh("p",{className:"text-center text-[12px] mt-4",style:{color:INK_MUTE},"data-gufi-src":"page.tsx:938"},"Reserva directa \xB7 pago en el hotel \xB7 cancelaci\xF3n flexible")),__gh("section",{className:"mt-20 md:mt-28",style:{background:ALT,borderTop:`1px solid ${LINE}`,borderBottom:`1px solid ${LINE}`},"data-gufi-src":"page.tsx:944"},__gh("div",{className:"max-w-[1200px] mx-auto px-6 md:px-10","data-gufi-src":"page.tsx:945"},__gh(Stagger,{className:"grid grid-cols-2 md:grid-cols-4 divide-x divide-y md:divide-y-0",style:{borderColor:LINE}},[{v:data?__gh(CountUp,{to:avgSavings,suffix:"%"}):"\u2014",l:"menos que las OTAs",s:"precio directo vs Booking",accent:!0},{v:"0%",l:"comisiones",s:"cada euro se queda en el hotel"},{v:data&&reviewStats?__gh(CountUp,{to:reviewStats.avg,decimals:1}):"\u2014",l:"sobre 5 estrellas",s:reviewStats?`${reviewStats.count} rese\xF1as verificadas`:"rese\xF1as verificadas"},{v:data?__gh(CountUp,{to:directWeek}):"\u2014",l:"reservas directas",s:"en los \xFAltimos 7 d\xEDas"}].map((k,i)=>__gh(import_framer_motion.motion.div,{key:i,variants:STAGGER_CHILD,className:"px-5 md:px-7 py-12 md:py-16",style:{borderColor:LINE}},__gh("div",{className:"serif tabular-nums",style:{fontSize:TYPE.editorialNum,lineHeight:.92,color:k.accent?ACCENT:INK},"data-gufi-src":"page.tsx:954"},k.v),__gh("div",{className:`${EYEBROW} mt-4`,style:{color:INK_MUTE},"data-gufi-src":"page.tsx:955"},k.l),__gh("div",{className:"text-[12px] mt-1.5",style:{color:INK_SOFT},"data-gufi-src":"page.tsx:956"},k.s)))))),__gh("section",{ref:resultsRef,className:"max-w-[1200px] mx-auto px-6 md:px-10 py-24 md:py-36 scroll-mt-20","data-gufi-src":"page.tsx:964"},__gh(Reveal,null,__gh("p",{className:`${EYEBROW} sc`,style:{color:INK_MUTE},"data-gufi-src":"page.tsx:966"},dateRange),__gh("h2",{className:"serif mt-4 max-w-[58ch]",style:{fontSize:TYPE.h2,lineHeight:1.04,textWrap:"balance"},"data-gufi-src":"page.tsx:967"},__gh(LineReveal,null,searched?"Tu estancia, a un clic":"Cuatro maneras de quedarse"))),!searched&&priceStrip.length>0&&__gh(Reveal,{delay:.08,className:"mt-10"},__gh("div",{className:"flex items-baseline gap-2 mb-3","data-gufi-src":"page.tsx:975"},__gh("span",{className:EYEBROW,style:{color:INK_MUTE},"data-gufi-src":"page.tsx:976"},"Fechas flexibles \xB7 desde"),__gh("span",{className:"text-[15px] tabular-nums",style:{color:ACCENT,fontWeight:500},"data-gufi-src":"page.tsx:977"},eur(stripMin),"/noche")),__gh("div",{className:"mir-strip-mask","data-gufi-src":"page.tsx:979"},__gh("div",{className:"flex gap-2.5 overflow-x-auto pb-2 px-1 mir-hide-scroll","data-gufi-src":"page.tsx:980"},priceStrip.map(p=>{let d=fromYmd(p.day),cheap=p.price===stripMin;return __gh("button",{key:p.day,onClick:()=>pickDate(p.day),className:`shrink-0 w-[78px] rounded-xl px-3 py-3 text-center transition-transform hover:-translate-y-0.5 ${focusRing}`,style:{background:SURFACE,border:`1px solid ${cheap?ACCENT:LINE}`,boxShadow:SH_SOFT},"data-gufi-src":"page.tsx:985"},__gh("div",{className:"text-[10px] sc",style:{color:INK_MUTE},"data-gufi-src":"page.tsx:991"},DIA[d.getDay()]),__gh("div",{className:"text-[17px] leading-tight mt-0.5",style:{color:INK,fontWeight:500},"data-gufi-src":"page.tsx:992"},d.getDate()," ",MES[d.getMonth()]),__gh("div",{className:"text-[12px] tabular-nums mt-1.5",style:{color:cheap?ACCENT:INK},"data-gufi-src":"page.tsx:993"},eur(p.price)))})))),noResults&&__gh(Reveal,{className:"mt-14"},__gh("div",{className:"rounded-2xl py-16 px-6 text-center",style:{background:SURFACE,border:`1px solid ${LINE}`},"data-gufi-src":"page.tsx:1005"},__gh(import_lucide_react.CalendarX,{size:28,style:{color:INK_MUTE},className:"mx-auto"}),__gh("h3",{className:"text-[20px] mt-4",style:{color:INK,fontWeight:500},"data-gufi-src":"page.tsx:1007"},"Sin disponibilidad para estas fechas"),__gh("p",{className:"text-[14px] mt-2 max-w-sm mx-auto",style:{color:INK_SOFT},"data-gufi-src":"page.tsx:1008"},"Prueba otra fecha cercana. Te mostramos las pr\xF3ximas noches con mejor tarifa."),priceStrip.length>0&&__gh("div",{className:"mir-strip-mask mt-8 max-w-2xl mx-auto","data-gufi-src":"page.tsx:1012"},__gh("div",{className:"flex gap-2.5 overflow-x-auto pb-2 px-1 mir-hide-scroll justify-start","data-gufi-src":"page.tsx:1013"},priceStrip.slice(0,10).map(p=>{let d=fromYmd(p.day),cheap=p.price===stripMin;return __gh("button",{key:p.day,onClick:()=>pickDate(p.day),className:`shrink-0 w-[78px] rounded-xl px-3 py-3 text-center transition-transform hover:-translate-y-0.5 ${focusRing}`,style:{background:CANVAS,border:`1px solid ${cheap?ACCENT:LINE}`},"data-gufi-src":"page.tsx:1018"},__gh("div",{className:"text-[10px] sc",style:{color:INK_MUTE},"data-gufi-src":"page.tsx:1021"},DIA[d.getDay()]),__gh("div",{className:"text-[16px] leading-tight mt-0.5",style:{color:INK,fontWeight:500},"data-gufi-src":"page.tsx:1022"},d.getDate()," ",MES[d.getMonth()]),__gh("div",{className:"text-[12px] tabular-nums mt-1.5",style:{color:cheap?ACCENT:INK},"data-gufi-src":"page.tsx:1023"},eur(p.price)))}))))),__gh("div",{className:"mt-14 space-y-8","data-gufi-src":"page.tsx:1035"},!data&&[0,1,2].map(i=>__gh("div",{key:i,className:"grid md:grid-cols-[1.15fr_1fr] rounded-2xl overflow-hidden",style:{border:`1px solid ${LINE}`},"data-gufi-src":"page.tsx:1038"},__gh("div",{className:"mir-shimmer min-h-[280px] md:min-h-[380px]","data-gufi-src":"page.tsx:1039"}),__gh("div",{className:"p-7 md:p-10 space-y-4",style:{background:SURFACE},"data-gufi-src":"page.tsx:1040"},__gh("div",{className:"mir-shimmer h-7 w-2/3 rounded-lg","data-gufi-src":"page.tsx:1041"}),__gh("div",{className:"mir-shimmer h-4 w-full rounded","data-gufi-src":"page.tsx:1042"}),__gh("div",{className:"mir-shimmer h-4 w-5/6 rounded","data-gufi-src":"page.tsx:1043"}),__gh("div",{className:"mir-shimmer h-16 w-full rounded-xl","data-gufi-src":"page.tsx:1044"}),__gh("div",{className:"mir-shimmer h-12 w-1/2 rounded-full mt-6","data-gufi-src":"page.tsx:1045"})))),data&&!noResults&&availability.map(({tipo,rooms,total,night},i)=>{let feats=FEATURES[String(tipo.codigo||"").toUpperCase()]||[],soldOut=searched&&rooms.length===0,comp=compByTipo[tipo.id],myNight=searched?night:num(tipo.precio_base),code=String(tipo.codigo||"").toUpperCase();return __gh(Reveal,{key:tipo.id,delay:.04+i*.05},__gh("article",{className:"group grid md:grid-cols-[1.15fr_1fr] rounded-2xl overflow-hidden transition-all duration-300",style:{background:SURFACE,border:`1px solid ${LINE}`,boxShadow:SH_SOFT},onMouseEnter:e=>e.currentTarget.style.borderColor=LINE_2,onMouseLeave:e=>e.currentTarget.style.borderColor=LINE,"data-gufi-src":"page.tsx:1059"},__gh("div",{className:"relative min-h-[280px] md:min-h-[380px]","data-gufi-src":"page.tsx:1065"},__gh(Photo,{src:roomImg(code),alt:tipo.nombre,label:code,reveal:!0,layoutId:`room-${tipo.id}`,className:`absolute inset-0 w-full h-full ${soldOut?"grayscale":""}`,imgClass:"transition-transform duration-[1200ms] group-hover:scale-[1.04]"}),__gh("div",{className:"absolute bottom-4 left-4 z-10","data-gufi-src":"page.tsx:1075"},__gh("span",{className:"px-2.5 py-1 rounded-full text-[10px] sc",style:{background:"rgba(255,255,255,0.92)",color:INK},"data-gufi-src":"page.tsx:1076"},code))),__gh("div",{className:`p-7 md:p-10 flex flex-col ${soldOut?"opacity-60":""}`,"data-gufi-src":"page.tsx:1081"},__gh("div",{className:"flex items-baseline justify-between gap-4","data-gufi-src":"page.tsx:1082"},__gh("h3",{className:"text-[21px] md:text-[22px] tracking-[-0.01em]",style:{color:INK,fontWeight:500},"data-gufi-src":"page.tsx:1083"},tipo.nombre),__gh("span",{className:"text-[12px] shrink-0 flex items-center gap-1.5",style:{color:INK_MUTE},"data-gufi-src":"page.tsx:1084"},__gh(import_lucide_react.Users,{size:13})," hasta ",tipo.capacidad)),__gh("p",{className:"text-[14px] leading-relaxed mt-3 max-w-[68ch]",style:{color:INK_SOFT,textWrap:"pretty"},"data-gufi-src":"page.tsx:1088"},tipo.descripcion),__gh("ul",{className:"mt-5 space-y-2","data-gufi-src":"page.tsx:1089"},feats.map(f=>__gh("li",{key:f,className:"flex items-center gap-2.5 text-[13px]",style:{color:INK_SOFT},"data-gufi-src":"page.tsx:1091"},__gh(import_lucide_react.Check,{size:14,style:{color:ACCENT},strokeWidth:2})," ",f))),comp>0&&__gh("div",{className:"mt-6 rounded-xl p-3.5",style:{background:ALT},"data-gufi-src":"page.tsx:1098"},__gh("div",{className:"flex items-center justify-between text-[12px] mb-1.5","data-gufi-src":"page.tsx:1099"},__gh("span",{className:"flex items-center gap-1.5",style:{color:ACCENT,fontWeight:500},"data-gufi-src":"page.tsx:1100"},__gh(import_lucide_react.ShieldCheck,{size:13})," Aqu\xED, directo"),__gh("span",{className:"tabular-nums",style:{color:INK,fontWeight:500},"data-gufi-src":"page.tsx:1103"},eur(myNight))),__gh("div",{className:"h-1.5 rounded-full overflow-hidden mb-2",style:{background:LINE},"data-gufi-src":"page.tsx:1105"},__gh("div",{className:"h-full rounded-full",style:{width:`${Math.max(12,myNight/comp*100)}%`,background:ACCENT},"data-gufi-src":"page.tsx:1106"})),__gh("div",{className:"flex items-center justify-between text-[12px]",style:{color:INK_MUTE},"data-gufi-src":"page.tsx:1108"},__gh("span",{"data-gufi-src":"page.tsx:1109"},"En Booking.com"),__gh("span",{className:"tabular-nums line-through","data-gufi-src":"page.tsx:1110"},eur(comp)))),__gh("div",{className:"mt-auto pt-7 flex items-end justify-between gap-4","data-gufi-src":"page.tsx:1115"},__gh("div",{"data-gufi-src":"page.tsx:1116"},__gh("div",{className:"flex items-baseline gap-1.5","data-gufi-src":"page.tsx:1117"},__gh("span",{className:"text-[clamp(26px,3vw,32px)] tabular-nums",style:{color:INK,fontWeight:500},"data-gufi-src":"page.tsx:1118"},eur(myNight)),__gh("span",{className:"text-[12px]",style:{color:INK_MUTE},"data-gufi-src":"page.tsx:1119"},"/noche")),searched&&nights>1&&!soldOut&&__gh("span",{className:"text-[12px] tabular-nums",style:{color:INK_MUTE},"data-gufi-src":"page.tsx:1122"},eur(total)," \xB7 ",nights," noches"),searched&&!soldOut&&rooms.length>0&&rooms.length<=2&&__gh("span",{className:"block text-[13px] mt-1",style:{color:ACCENT},"data-gufi-src":"page.tsx:1125"},rooms.length===1?"\xDAltima habitaci\xF3n":`Solo quedan ${rooms.length}`)),searched?soldOut?__gh("span",{className:"text-[13px] pb-1",style:{color:INK_MUTE},"data-gufi-src":"page.tsx:1132"},"Completo en tus fechas"):__gh("button",{onClick:e=>openBooking({tipo,rooms,total,night},e),className:`h-12 px-7 rounded-full text-[14px] font-medium active:scale-[0.98] transition-all flex items-center gap-1.5 ${focusRing}`,style:{background:INK,color:"#fff"},"data-gufi-src":"page.tsx:1134"},"Reservar ",__gh(import_lucide_react.ChevronRight,{size:16})):__gh("a",{href:"#reservar",className:`h-12 px-6 rounded-full text-[14px] font-medium flex items-center transition-colors ${focusRing}`,style:{border:`1px solid ${LINE_2}`,color:INK},"data-gufi-src":"page.tsx:1143"},"Ver fechas")))))}))),extrasCatalog.length>0&&__gh("section",{className:"max-w-[1200px] mx-auto px-6 md:px-10 pb-24 md:pb-36","data-gufi-src":"page.tsx:1159"},__gh(Reveal,null,__gh("p",{className:EYEBROW,style:{color:INK_MUTE},"data-gufi-src":"page.tsx:1161"},"Hazlo tuyo"),__gh("h2",{className:"serif mt-4 max-w-[58ch]",style:{fontSize:TYPE.h2,lineHeight:1.04,textWrap:"balance"},"data-gufi-src":"page.tsx:1162"},__gh(LineReveal,null,"Suma experiencias a tu estancia")),__gh("p",{className:"text-[15px] mt-3 max-w-2xl leading-relaxed",style:{color:INK_SOFT,textWrap:"pretty"},"data-gufi-src":"page.tsx:1165"},"Elige tus extras al reservar. Se a\xF1aden a tu cuenta \xB7 pago en el hotel.")),__gh(Stagger,{className:"grid sm:grid-cols-2 lg:grid-cols-4 gap-4 mt-10"},extrasCatalog.map(e=>__gh(import_framer_motion.motion.div,{key:e.key,variants:STAGGER_CHILD},__gh("div",{className:"rounded-2xl p-6 h-full flex flex-col transition-transform duration-300 hover:-translate-y-0.5",style:{background:SURFACE,border:`1px solid ${LINE}`,boxShadow:SH_SOFT},onMouseEnter:ev=>ev.currentTarget.style.borderColor=LINE_2,onMouseLeave:ev=>ev.currentTarget.style.borderColor=LINE,"data-gufi-src":"page.tsx:1172"},EXTRA_IMG[e.key]&&__gh(Photo,{src:EXTRA_IMG[e.key],alt:e.label,label:e.label,reveal:!0,className:"rounded-xl aspect-[16/10] mb-5 w-full"}),__gh("div",{className:"w-11 h-11 rounded-xl flex items-center justify-center mb-4",style:{background:ALT},"data-gufi-src":"page.tsx:1181"},__gh(e.icon,{size:19,style:{color:ACCENT},strokeWidth:1.5})),__gh("h3",{className:"text-[16px]",style:{color:INK,fontWeight:500},"data-gufi-src":"page.tsx:1184"},e.label),__gh("p",{className:"text-[13px] leading-relaxed mt-2 flex-1",style:{color:INK_SOFT},"data-gufi-src":"page.tsx:1185"},e.desc),__gh("div",{className:"mt-5 flex items-baseline gap-1.5","data-gufi-src":"page.tsx:1186"},__gh("span",{className:"text-[22px] tabular-nums",style:{color:INK,fontWeight:500},"data-gufi-src":"page.tsx:1187"},eur(e.price)),__gh("span",{className:"text-[12px]",style:{color:INK_MUTE},"data-gufi-src":"page.tsx:1188"},"/ ",e.per))))))),__gh("section",{"data-gufi-src":"page.tsx:1198"},__gh("div",{className:"relative h-[52vh] min-h-[360px] overflow-hidden","data-gufi-src":"page.tsx:1199"},__gh(ParallaxImage,{src:EXPERIENCE_IMG,alt:"Sendero por la Sierra de Gredos",label:"La sierra",speed:.14,className:"absolute inset-0 w-full h-full"}),__gh("div",{className:"absolute inset-0 pointer-events-none",style:{background:"linear-gradient(180deg, rgba(26,25,22,0) 52%, rgba(26,25,22,0.34))"},"data-gufi-src":"page.tsx:1201"}),__gh("div",{className:"absolute inset-0 flex items-end","data-gufi-src":"page.tsx:1202"},__gh("div",{className:"max-w-[1200px] mx-auto w-full px-6 md:px-10 pb-12 md:pb-16","data-gufi-src":"page.tsx:1203"},__gh(Reveal,null,__gh("p",{className:EYEBROW,style:{color:"rgba(255,255,255,0.78)"},"data-gufi-src":"page.tsx:1205"},"La experiencia"),__gh("h2",{className:"serif text-white mt-3 max-w-[58ch]",style:{fontSize:TYPE.h2,lineHeight:1.04,textWrap:"balance"},"data-gufi-src":"page.tsx:1206"},__gh(LineReveal,null,"Peque\xF1o por elecci\xF3n."),__gh(LineReveal,{delay:.06},__gh("span",{className:"serif-italic","data-gufi-src":"page.tsx:1208"},"Grande en los detalles."))))))),__gh("div",{style:{background:ALT,borderTop:`1px solid ${LINE}`,borderBottom:`1px solid ${LINE}`},"data-gufi-src":"page.tsx:1214"},__gh("div",{className:"max-w-[1200px] mx-auto px-6 md:px-10","data-gufi-src":"page.tsx:1215"},__gh(Stagger,{className:"grid sm:grid-cols-2 lg:grid-cols-4 divide-x divide-y lg:divide-y-0",style:{borderColor:LINE}},[{icon:import_lucide_react.Coffee,t:"Desayuno km 0",d:"Producto de la sierra, pan de horno de le\xF1a y miel de la finca. 7:30 \u2013 10:30."},{icon:import_lucide_react.Wifi,t:"Fibra sim\xE9trica",d:"600 Mb en todo el hotel. El silencio es opcional; la cobertura no."},{icon:import_lucide_react.Car,t:"Parking cubierto",d:"Plaza asignada bajo el edificio. Cargador para el\xE9ctricos."},{icon:import_lucide_react.Moon,t:"Late check-out",d:"La sierra no tiene prisa. Sal a las 14:00 si la ocupaci\xF3n lo permite."}].map(f=>__gh(import_framer_motion.motion.div,{key:f.t,variants:STAGGER_CHILD,className:"p-8",style:{borderColor:LINE}},__gh(f.icon,{size:20,style:{color:ACCENT},strokeWidth:1.5}),__gh("h3",{className:"text-[15px] mt-5",style:{color:INK,fontWeight:500},"data-gufi-src":"page.tsx:1225"},f.t),__gh("p",{className:"text-[13px] leading-relaxed mt-2",style:{color:INK_SOFT},"data-gufi-src":"page.tsx:1226"},f.d))))))),reviewStats&&__gh("section",{className:"max-w-[1200px] mx-auto px-6 md:px-10 py-24 md:py-36","data-gufi-src":"page.tsx:1236"},__gh("div",{className:"grid lg:grid-cols-[0.85fr_1.15fr] gap-12 lg:gap-16 items-start","data-gufi-src":"page.tsx:1237"},__gh(Reveal,{className:"lg:sticky lg:top-24"},__gh("p",{className:EYEBROW,style:{color:INK_MUTE},"data-gufi-src":"page.tsx:1239"},"Lo que dicen"),__gh("div",{className:"flex items-end gap-3 mt-4","data-gufi-src":"page.tsx:1240"},__gh("span",{className:"serif",style:{fontSize:TYPE.editorialNum,lineHeight:.9,color:INK},"data-gufi-src":"page.tsx:1241"},(Number(reviewStats.avg)||0).toFixed(1)),__gh("div",{className:"pb-2","data-gufi-src":"page.tsx:1242"},__gh(Stars,{value:reviewStats.avg,size:15}),__gh("span",{className:"block text-[12px] mt-1",style:{color:INK_MUTE},"data-gufi-src":"page.tsx:1244"},reviewStats.count," rese\xF1as verificadas"))),__gh("div",{className:"mt-7 space-y-2 max-w-xs","data-gufi-src":"page.tsx:1247"},reviewStats.dist.map(d=>__gh("div",{key:d.n,className:"flex items-center gap-3","aria-label":`${d.n} estrellas: ${d.c} rese\xF1as`,"data-gufi-src":"page.tsx:1249"},__gh("span",{className:"text-[11px] tabular-nums w-3",style:{color:INK_MUTE},"data-gufi-src":"page.tsx:1250"},d.n),__gh(import_lucide_react.Star,{size:10,style:{color:ACCENT,fill:ACCENT},"aria-hidden":!0}),__gh("div",{className:"flex-1 h-1.5 rounded-full overflow-hidden",style:{background:LINE},"data-gufi-src":"page.tsx:1252"},__gh("div",{className:"h-full rounded-full",style:{width:`${d.c/reviewStats.count*100}%`,background:ACCENT},"data-gufi-src":"page.tsx:1253"})),__gh("span",{className:"text-[11px] tabular-nums w-5 text-right",style:{color:INK_MUTE},"data-gufi-src":"page.tsx:1255"},d.c)))),__gh("div",{className:"mt-7 flex flex-wrap gap-2","data-gufi-src":"page.tsx:1259"},Object.entries(reviewStats.bySource).map(([s,c])=>__gh("span",{key:s,className:"px-3 py-1.5 rounded-full text-[12px] sc flex items-center gap-1.5",style:{background:ALT,color:INK_SOFT},"data-gufi-src":"page.tsx:1261"},__gh(import_lucide_react.Check,{size:12,style:{color:ACCENT},strokeWidth:2.5})," ",s," \xB7 ",c)))),__gh("div",{className:"space-y-5","data-gufi-src":"page.tsx:1268"},topReviews.map((r,i)=>__gh(Reveal,{key:r.id??i,delay:.04+i*.06},__gh("figure",{className:"relative rounded-2xl p-7 md:p-8",style:{background:SURFACE,border:`1px solid ${LINE}`,boxShadow:SH_SOFT},"data-gufi-src":"page.tsx:1271"},__gh(import_lucide_react.Quote,{size:20,className:"absolute top-6 right-7",style:{color:INK,opacity:.07},"aria-hidden":!0}),__gh(Stars,{value:Number(r.puntuacion),size:13}),__gh("blockquote",{className:"serif-italic mt-5",style:{fontSize:TYPE.lead,lineHeight:1.5,color:INK_SOFT,textWrap:"balance",hangingPunctuation:"first"},"data-gufi-src":"page.tsx:1274"},"\xAB",r.comentario,"\xBB"),__gh("figcaption",{className:"mt-6 text-[12px] flex flex-wrap items-center gap-x-2 gap-y-1",style:{color:INK_MUTE},"data-gufi-src":"page.tsx:1277"},__gh("span",{style:{color:INK,fontWeight:500},"data-gufi-src":"page.tsx:1278"},r.huesped__display),r.titulo&&__gh("span",{"data-gufi-src":"page.tsx:1279"},"\xB7 ",r.titulo),__gh("span",{className:"sc","data-gufi-src":"page.tsx:1280"},"\xB7 ",String(r.fuente||"").replace("_"," "))),r.respondida&&r.respuesta&&__gh("div",{className:"mt-5 rounded-xl p-4",style:{background:ALT},"data-gufi-src":"page.tsx:1283"},__gh("p",{className:EYEBROW,style:{color:INK_MUTE},"data-gufi-src":"page.tsx:1284"},"Respuesta de El Mirador"),__gh("p",{className:"text-[13px] leading-relaxed mt-1.5",style:{color:INK_SOFT},"data-gufi-src":"page.tsx:1285"},r.respuesta)))))))),__gh("section",{className:"px-6 md:px-10 pb-24 md:pb-32","data-gufi-src":"page.tsx:1297"},__gh(Reveal,null,__gh("div",{className:"max-w-[1200px] mx-auto grid md:grid-cols-[1fr_0.85fr] rounded-2xl overflow-hidden",style:{background:SURFACE,border:`1px solid ${LINE}`,boxShadow:SH_FLOAT},"data-gufi-src":"page.tsx:1299"},__gh("div",{className:"px-8 md:px-14 py-16 md:py-24 flex flex-col justify-center","data-gufi-src":"page.tsx:1303"},__gh("p",{className:EYEBROW,style:{color:INK_MUTE},"data-gufi-src":"page.tsx:1304"},"Mejor precio garantizado"),__gh("h2",{className:"serif mt-4 max-w-[58ch]",style:{fontSize:TYPE.h2,lineHeight:1.04,textWrap:"balance",color:INK},"data-gufi-src":"page.tsx:1307"},__gh(LineReveal,null,"La mejor tarifa"),__gh(LineReveal,{delay:.06},__gh("span",{className:"serif-italic","data-gufi-src":"page.tsx:1309"},"vive aqu\xED"))),__gh("p",{className:"text-[15px] mt-5 max-w-md leading-relaxed",style:{color:INK_SOFT,textWrap:"pretty"},"data-gufi-src":"page.tsx:1311"},"Sin intermediarios, sin comisiones, sin letra peque\xF1a."),__gh("a",{href:"#reservar",className:`inline-flex items-center gap-2 mt-9 h-12 px-8 rounded-full text-[14px] font-medium active:scale-[0.98] transition-all w-fit ${focusRing}`,style:{background:INK,color:"#fff"},"data-gufi-src":"page.tsx:1314"},"Reservar ahora ",__gh(import_lucide_react.ArrowRight,{size:15}))),__gh(ParallaxImage,{src:CTA_IMG,alt:"Interior c\xE1lido de El Mirador",label:"El Mirador",speed:.1,className:"min-h-[240px] md:min-h-full w-full"})))),__gh("footer",{style:{background:CANVAS,borderTop:`1px solid ${LINE}`},"data-gufi-src":"page.tsx:1331"},__gh("div",{className:"max-w-[1200px] mx-auto px-6 md:px-10 py-16 flex flex-col md:flex-row items-start md:items-end justify-between gap-8","data-gufi-src":"page.tsx:1332"},__gh("div",{"data-gufi-src":"page.tsx:1333"},__gh("span",{className:"serif text-[20px] lowercase",style:{color:INK},"data-gufi-src":"page.tsx:1334"},"El Mirador"),__gh("p",{className:"text-[12px] mt-3 flex items-center gap-1.5",style:{color:INK_MUTE},"data-gufi-src":"page.tsx:1335"},__gh(import_lucide_react.MapPin,{size:12})," Ctra. de la Sierra km 12 \xB7 05630 Sierra de Gredos, \xC1vila"),__gh("p",{className:"text-[12px] mt-1",style:{color:INK_MUTE},"data-gufi-src":"page.tsx:1338"},"+34 920 12 34 56 \xB7 hola@hotelmirador.es")),__gh("div",{className:"text-[12px] leading-relaxed md:text-right",style:{color:INK_MUTE},"data-gufi-src":"page.tsx:1340"},"Reserva directa \u2014 mejor precio garantizado.",__gh("br",{"data-gufi-src":"page.tsx:1342"}),"Motor de reservas Gufi PMS \xB7 ",new Date().getFullYear()))),__gh(import_framer_motion.AnimatePresence,null,loadError&&__gh(import_framer_motion.motion.div,{initial:{y:80,opacity:0},animate:{y:0,opacity:1},exit:{y:80,opacity:0},className:"fixed bottom-4 inset-x-4 md:left-auto md:right-6 md:w-[380px] z-50 rounded-2xl p-4 flex items-start gap-3",style:{background:SURFACE,border:`1px solid ${LINE_2}`,boxShadow:SH_FLOAT},role:"alert"},__gh(import_lucide_react.X,{size:18,style:{color:ACCENT},className:"mt-0.5 shrink-0"}),__gh("div",{className:"text-[13px]",style:{color:INK_SOFT},"data-gufi-src":"page.tsx:1360"},"No hemos podido cargar la disponibilidad. Revisa tu conexi\xF3n y recarga la p\xE1gina."),__gh("button",{onClick:()=>setLoadError(!1),"aria-label":"Cerrar aviso",className:`shrink-0 ${focusRing} rounded`,"data-gufi-src":"page.tsx:1363"},__gh(import_lucide_react.X,{size:16,style:{color:INK_MUTE}})))),__gh(import_framer_motion.AnimatePresence,null,booking&&__gh(import_framer_motion.motion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 z-[60] flex items-end sm:items-center justify-center p-0 sm:p-6",style:{background:"rgba(26,25,22,0.4)",backdropFilter:"blur(8px)"},onClick:e=>e.target===e.currentTarget&&!busy&&closeBooking()},__gh(import_framer_motion.motion.div,{ref:modalRef,role:"dialog","aria-modal":"true","aria-labelledby":"mir-modal-title",initial:reduce?{opacity:0}:{clipPath:"inset(0 0 0 100%)"},animate:reduce?{opacity:1}:{clipPath:"inset(0 0 0 0%)"},exit:reduce?{opacity:0}:{opacity:0,y:24},transition:{duration:.6,ease:EASE_OUT},className:"w-full sm:max-w-md flex flex-col max-h-[94svh] rounded-t-2xl sm:rounded-2xl overflow-hidden",style:{background:SURFACE,boxShadow:SH_FLOAT,border:`1px solid ${LINE}`}},__gh("div",{className:"sm:hidden flex justify-center pt-3 pb-1 shrink-0","data-gufi-src":"page.tsx:1394"},__gh("span",{className:"w-9 h-1 rounded-full",style:{background:INK_MUTE,opacity:.5},"data-gufi-src":"page.tsx:1395"})),__gh("div",{className:"px-6 sm:px-7 pt-4 sm:pt-6 pb-5 flex items-start gap-4 shrink-0",style:{borderBottom:`1px solid ${LINE}`},"data-gufi-src":"page.tsx:1398"},__gh(Photo,{src:roomImg(booking.tipo.codigo),alt:booking.tipo.nombre,label:String(booking.tipo.codigo||"").toUpperCase(),layoutId:`room-${booking.tipo.id}`,className:"w-16 h-16 rounded-xl shrink-0"}),__gh("div",{className:"flex-1 min-w-0","data-gufi-src":"page.tsx:1400"},__gh("p",{className:EYEBROW,style:{color:INK_MUTE},"data-gufi-src":"page.tsx:1401"},extrasCatalog.length>0?step===0?"Paso 1 \xB7 Extras":"Paso 2 \xB7 Tus datos":"Tus datos"),__gh("h3",{id:"mir-modal-title",className:"text-[18px] mt-1 truncate",style:{color:INK,fontWeight:500},"data-gufi-src":"page.tsx:1406"},booking.tipo.nombre),__gh("p",{className:"text-[12px] mt-0.5 tabular-nums",style:{color:INK_MUTE},"data-gufi-src":"page.tsx:1407"},fmtD(entrada)," \u2192 ",fmtD(salida)," \xB7 ",nights," ",nights===1?"noche":"noches"," \xB7 ",adultos,"A",ninos>0?` ${ninos}N`:""),__gh("p",{className:"text-[12px] mt-1",style:{color:INK_MUTE},"data-gufi-src":"page.tsx:1410"},"Te asignaremos una de las ",booking.rooms.length," ",booking.rooms.length===1?"habitaci\xF3n disponible":"habitaciones disponibles",".")),__gh("button",{onClick:()=>!busy&&closeBooking(),"aria-label":"Cerrar",className:`w-8 h-8 rounded-full flex items-center justify-center transition-colors shrink-0 hover:bg-[#F4F1EC] ${focusRing}`,style:{color:INK_MUTE},"data-gufi-src":"page.tsx:1414"},__gh(import_lucide_react.X,{size:16}))),__gh("div",{className:"px-6 sm:px-7 py-6 space-y-5 overflow-y-auto flex-1","data-gufi-src":"page.tsx:1421"},step===0&&extrasCatalog.length>0&&__gh("div",{"data-gufi-src":"page.tsx:1423"},__gh("p",{className:`${EYEBROW} mb-3`,style:{color:INK_MUTE},"data-gufi-src":"page.tsx:1424"},"A\xF1ade extras"),__gh("div",{className:"space-y-2","data-gufi-src":"page.tsx:1425"},extrasCatalog.map(e=>{let on=!!extras[e.key],qty=e.mult(nights||1,guests);return __gh("button",{key:e.key,type:"button","aria-pressed":on,onClick:()=>setExtras(p=>({...p,[e.key]:!p[e.key]})),className:`w-full flex items-center gap-3 p-3 rounded-xl text-left transition-colors ${focusRing}`,style:{border:`1px solid ${on?ACCENT:LINE}`,background:on?ACCENT_BG:SURFACE},"data-gufi-src":"page.tsx:1430"},__gh("div",{className:"w-9 h-9 rounded-lg flex items-center justify-center shrink-0",style:{background:on?ACCENT:ALT},"data-gufi-src":"page.tsx:1438"},__gh(e.icon,{size:16,style:{color:on?"#fff":ACCENT},strokeWidth:1.6})),__gh("div",{className:"flex-1 min-w-0","data-gufi-src":"page.tsx:1441"},__gh("div",{className:"text-[13px] truncate",style:{color:INK,fontWeight:500},"data-gufi-src":"page.tsx:1442"},e.label),__gh("div",{className:"text-[11px]",style:{color:INK_MUTE},"data-gufi-src":"page.tsx:1443"},eur(e.price)," / ",e.per)),__gh("div",{className:"text-right shrink-0","data-gufi-src":"page.tsx:1445"},__gh("div",{className:"text-[13px] tabular-nums",style:{color:INK,fontWeight:500},"data-gufi-src":"page.tsx:1446"},eur(e.price*qty)),__gh("div",{className:"w-5 h-5 rounded-md ml-auto mt-1 flex items-center justify-center",style:{background:on?ACCENT:LINE},"data-gufi-src":"page.tsx:1447"},on?__gh(import_lucide_react.Check,{size:12,color:"#fff",strokeWidth:3}):__gh(import_lucide_react.Plus,{size:12,style:{color:INK_MUTE}}))))})),__gh("p",{className:"text-[11px] mt-3",style:{color:INK_MUTE},"data-gufi-src":"page.tsx:1455"},"Se a\xF1aden a tu cuenta \xB7 pago en el hotel.")),step===1&&__gh("div",{"data-gufi-src":"page.tsx:1460"},__gh("p",{className:`${EYEBROW} mb-3`,style:{color:INK_MUTE},"data-gufi-src":"page.tsx:1461"},"Tus datos"),__gh("div",{className:"grid grid-cols-2 gap-3","data-gufi-src":"page.tsx:1462"},__gh("input",{ref:firstFieldRef,"aria-label":"Nombre",placeholder:"Nombre *",value:fNombre,onChange:e=>setFNombre(e.target.value),className:inputLight,style:{background:ALT,color:INK},"data-gufi-src":"page.tsx:1463"}),__gh("input",{"aria-label":"Apellidos",placeholder:"Apellidos",value:fApellidos,onChange:e=>setFApellidos(e.target.value),className:inputLight,style:{background:ALT,color:INK},"data-gufi-src":"page.tsx:1465"})),__gh("input",{"aria-label":"Email",placeholder:"Email *",type:"email",value:fEmail,onChange:e=>setFEmail(e.target.value),className:`${inputLight} mt-3`,style:{background:ALT,color:INK},"data-gufi-src":"page.tsx:1468"})),bookErr==="no_disponible"?__gh("div",{className:"rounded-xl p-4",style:{background:ACCENT_BG,border:`1px solid ${ACCENT}`},"data-gufi-src":"page.tsx:1474"},__gh("p",{className:"text-[13px]",style:{color:INK},"data-gufi-src":"page.tsx:1475"},"Esta habitaci\xF3n se acaba de reservar."),__gh("button",{onClick:recoverDates,className:`mt-2 text-[13px] underline ${focusRing} rounded`,style:{color:ACCENT},"data-gufi-src":"page.tsx:1476"},"Buscar otras fechas")):bookErr?__gh("p",{className:"text-[13px]",style:{color:DANGER},"data-gufi-src":"page.tsx:1481"},bookErr):null,__gh("div",{className:"rounded-xl p-4 space-y-2",style:{background:ALT},"data-gufi-src":"page.tsx:1484"},__gh("div",{className:"flex items-center justify-between text-[13px]",style:{color:INK_SOFT},"data-gufi-src":"page.tsx:1485"},__gh("span",{"data-gufi-src":"page.tsx:1486"},"Alojamiento \xB7 ",nights," ",nights===1?"noche":"noches"),__gh("span",{className:"tabular-nums","data-gufi-src":"page.tsx:1487"},eur(booking.total))),__gh(import_framer_motion.AnimatePresence,{initial:!1},extrasLines.map(e=>__gh(import_framer_motion.motion.div,{key:e.key,initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:{duration:.22},className:"flex items-center justify-between text-[13px] overflow-hidden",style:{color:INK_SOFT}},__gh("span",{"data-gufi-src":"page.tsx:1493"},e.label," ",e.qty>1?`\xD7${e.qty}`:""),__gh("span",{className:"tabular-nums","data-gufi-src":"page.tsx:1494"},eur(e.line))))))),__gh("div",{className:"px-6 sm:px-7 py-4 shrink-0",style:{borderTop:`1px solid ${LINE}`,background:SURFACE},"data-gufi-src":"page.tsx:1502"},__gh("div",{className:"flex items-center justify-between mb-3","data-gufi-src":"page.tsx:1503"},__gh("div",{className:"text-[12px]",style:{color:INK_MUTE},"data-gufi-src":"page.tsx:1504"},"Total estancia",__gh("span",{className:"block text-[11px]","data-gufi-src":"page.tsx:1506"},"impuestos incluidos \xB7 pago en el hotel")),__gh(import_framer_motion.motion.span,{key:grandTotal,initial:reduce?!1:{scale:1.04},animate:{scale:1},transition:{duration:.2},className:"text-[26px] tabular-nums",style:{color:INK,fontWeight:500}},eur(grandTotal))),step===0?__gh("button",{onClick:()=>setStep(1),className:`w-full h-12 rounded-full text-[14px] font-medium active:scale-[0.98] transition-all flex items-center justify-center gap-1.5 ${focusRing}`,style:{background:INK,color:"#fff"},"data-gufi-src":"page.tsx:1512"},"Continuar ",__gh(import_lucide_react.ArrowRight,{size:15})):__gh("div",{className:"flex gap-2","data-gufi-src":"page.tsx:1518"},extrasCatalog.length>0&&__gh("button",{onClick:()=>setStep(0),disabled:busy,className:`h-12 px-5 rounded-full text-[14px] font-medium transition-colors disabled:opacity-50 ${focusRing}`,style:{border:`1px solid ${LINE_2}`,color:INK},"data-gufi-src":"page.tsx:1520"},"Atr\xE1s"),__gh("button",{onClick:confirm,disabled:busy,className:`flex-1 h-12 rounded-full text-[14px] font-medium active:scale-[0.98] transition-all disabled:opacity-50 ${focusRing}`,style:{background:INK,color:"#fff"},"data-gufi-src":"page.tsx:1526"},busy?"Confirmando\u2026":"Confirmar reserva")),__gh("p",{className:"text-center text-[11px] mt-3",style:{color:INK_MUTE},"data-gufi-src":"page.tsx:1533"},"Cancelaci\xF3n gratuita hasta las 18:00 del d\xEDa de llegada."))))),__gh(import_framer_motion.AnimatePresence,null,done&&__gh(import_framer_motion.motion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},role:"dialog","aria-modal":"true","aria-labelledby":"mir-done-title",className:"fixed inset-0 z-[60] flex items-center justify-center p-6",style:{background:CANVAS}},__gh("div",{className:"text-center max-w-md","data-gufi-src":"page.tsx:1555"},__gh(import_framer_motion.motion.div,{initial:reduce?!1:{scale:.7,opacity:0},animate:{scale:1,opacity:1},transition:{duration:.45,delay:.1,ease:EASE_OUT},className:"w-20 h-20 rounded-full mx-auto flex items-center justify-center",style:{background:ACCENT}},__gh(import_lucide_react.Check,{size:34,color:"#fff",strokeWidth:2.5})),__gh("h2",{id:"mir-done-title",className:"serif mt-8",style:{fontSize:TYPE.h1,lineHeight:1,color:INK,textWrap:"balance"},"data-gufi-src":"page.tsx:1565"},__gh(LineReveal,null,"Te esperamos")),done.codigo&&__gh("p",{className:`${EYEBROW} sc mt-3`,style:{color:INK_MUTE},"data-gufi-src":"page.tsx:1569"},__gh(LineReveal,{delay:.12},`Reserva ${done.codigo}`)),__gh("p",{className:"text-[15px] leading-relaxed mt-4",style:{color:INK_SOFT},"data-gufi-src":"page.tsx:1573"},done.tipo.nombre," \xB7 ",fmtD(done.entrada)," \u2192 ",fmtD(done.salida)," \xB7 ",eur(done.total),done.extras>0&&__gh("span",{className:"block text-[13px] mt-1",style:{color:INK_MUTE},"data-gufi-src":"page.tsx:1576"},"Alojamiento ",eur(done.room)," + extras ",eur(done.extras)),__gh("br",{"data-gufi-src":"page.tsx:1580"}),"Hemos enviado la confirmaci\xF3n a tu email."),__gh("button",{onClick:()=>{setDone(null),setSearched(!1),setExtras({}),window.scrollTo({top:0,behavior:"smooth"})},className:`mt-10 h-12 px-8 rounded-full text-[14px] font-medium transition-colors ${focusRing}`,style:{border:`1px solid ${INK}`,color:INK},"data-gufi-src":"page.tsx:1583"},"Volver")))))}var featureConfig={dataSources,automations,integrations,meta:{name:"Web \xB7 Motor de reservas",version:"1.0.0"}};var stdin_default=WebMirador;