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:"disponibilidad_agora",description:"Noches ya ocupadas de cada apartamento",public:!0},{name:"tarifas_agora",description:"Precio y disponibilidad reales de Avirato",public:!0}];var slots=[{slot_id:"send-email",function_id:"email_transactional",label:"Correo",view_position:"AfterPayment"}];var import_react14=__toESM(require("react"));var import_react=__toESM(require("react")),import_framer_motion=require("framer-motion");var T={cal:"#F7F7F5",papel:"#FFFFFF",nieblaSuave:"#EFF2F3",niebla:"#DDE3E6",pizarra:"#22272C",pizarra2:"#3E464D",grisTexto:"#5E686F",grisTenue:"#8B949A",azul:"#6E8EA3",azulHondo:"#3E5869",azulClaro:"#A8BECD",azulVelo:"rgba(110,142,163,0.10)",roble:"#C2A98B",robleTenue:"rgba(194,169,139,0.22)",linea:"rgba(34,39,44,0.13)",lineaSuave:"rgba(34,39,44,0.07)",alerta:"#A8503C",ok:"#4F7A64",display:"'Spectral', 'Iowan Old Style', Georgia, serif",texto:"'Hanken Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif",mono:"'DM Mono', ui-monospace, 'SF Mono', Menlo, monospace",ease:[.22,.61,.36,1],easeSalida:[.4,0,1,1],r1:2,r2:4,r3:10,sombra:"0 1px 2px rgba(34,39,44,0.04), 0 8px 24px -12px rgba(34,39,44,0.14)",sombraAlta:"0 2px 6px rgba(34,39,44,0.06), 0 24px 60px -20px rgba(34,39,44,0.22)"},ANCHO=1120,cx=(...a)=>a.filter(Boolean).join(" "),EUR=new Intl.NumberFormat("es-ES",{style:"currency",currency:"EUR",minimumFractionDigits:0,maximumFractionDigits:2});var hoyISO=()=>{let d=new Date;return`${d.getFullYear()}-${String(d.getMonth()+1).padStart(2,"0")}-${String(d.getDate()).padStart(2,"0")}`},sumarDias=(iso,dias)=>{let m=/^(\d{4})-(\d{2})-(\d{2})/.exec(String(iso||""));if(!m)return"";let base=Date.UTC(Number(m[1]),Number(m[2])-1,Number(m[3]));return new Date(base+dias*864e5).toISOString().slice(0,10)},nochesDe=(entrada,noches)=>{let out=[],n=Math.max(0,Math.min(60,Number(noches)||0));for(let i=0;i{let a=/^(\d{4})-(\d{2})-(\d{2})/.exec(String(entrada||"")),b=/^(\d{4})-(\d{2})-(\d{2})/.exec(String(salida||""));if(!a||!b)return 0;let desde=Date.UTC(Number(a[1]),Number(a[2])-1,Number(a[3])),hasta=Date.UTC(Number(b[1]),Number(b[2])-1,Number(b[3]));return Math.round((hasta-desde)/864e5)},salidaDe=(entrada,noches)=>{if(!entrada)return"";let n=Math.max(1,Math.round(Number(noches)||1));return sumarDias(entrada,n)};var MESES_ES=["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"],MESES_EN=["January","February","March","April","May","June","July","August","September","October","November","December"],fechaLarga=(iso,lang2)=>{let m=/^(\d{4})-(\d{2})-(\d{2})/.exec(String(iso||""));if(!m)return"";let dia=Number(m[3]),mes=Number(m[2])-1;return lang2==="en"?`${dia} ${MESES_EN[mes]}`:`${dia} de ${MESES_ES[mes]}`},mesLargo=(iso,lang2)=>{let m=/^(\d{4})-(\d{2})/.exec(String(iso||""));if(!m)return"";let nombre=(lang2==="en"?MESES_EN:MESES_ES)[Number(m[2])-1]||"";return`${nombre.charAt(0).toUpperCase()}${nombre.slice(1)} ${m[1]}`},INICIALES_DIA={es:["L","M","X","J","V","S","D"],en:["M","T","W","T","F","S","S"]},DIAS_ES=["lunes","martes","mi\xE9rcoles","jueves","viernes","s\xE1bado","domingo"],DIAS_EN=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],diaSemana=iso=>{let m=/^(\d{4})-(\d{2})-(\d{2})/.exec(String(iso||""));return m?(new Date(Date.UTC(Number(m[1]),Number(m[2])-1,Number(m[3]))).getUTCDay()+6)%7:0},fechaHablada=(iso,lang2)=>{let m=/^(\d{4})-(\d{2})-(\d{2})/.exec(String(iso||""));if(!m)return"";let dia=(lang2==="en"?DIAS_EN:DIAS_ES)[diaSemana(iso)],mes=(lang2==="en"?MESES_EN:MESES_ES)[Number(m[2])-1];return lang2==="en"?`${dia} ${Number(m[3])} ${mes} ${m[1]}`:`${dia} ${Number(m[3])} de ${mes} de ${m[1]}`},diasDelMes=iso=>{let m=/^(\d{4})-(\d{2})/.exec(String(iso||""));return m?new Date(Date.UTC(Number(m[1]),Number(m[2]),0)).getUTCDate():0},sumarMeses=(mes,n)=>{let m=/^(\d{4})-(\d{2})/.exec(String(mes||""));if(!m)return"";let total=Number(m[1])*12+(Number(m[2])-1)+Math.round(n),ano=Math.floor(total/12),i=total-ano*12;return`${ano}-${String(i+1).padStart(2,"0")}`},fechaCorta=(iso,lang2)=>{let m=/^(\d{4})-(\d{2})-(\d{2})/.exec(String(iso||""));if(!m)return"";let mes=Number(m[2])-1;return`${Number(m[3])} ${(lang2==="en"?MESES_EN:MESES_ES)[mes].slice(0,3)}`};function Aparece({children,retardo=0,y=18,as="div",style,className,id}){let quieto=(0,import_framer_motion.useReducedMotion)(),M=import_framer_motion.motion[as]||import_framer_motion.motion.div;return __gh(M,{id,className,style,"data-ag-anim":"aparece",initial:quieto?!1:{opacity:0,y},whileInView:quieto?{}:{opacity:1,y:0},viewport:{once:!0,margin:"-60px"},transition:{duration:.7,ease:T.ease,delay:retardo}},children)}function Antetitulo({children,color=T.azulHondo,style}){return __gh("span",{style:{fontFamily:T.mono,fontSize:11,letterSpacing:"0.22em",textTransform:"uppercase",color,display:"inline-block",...style},"data-gufi-src":"lib/ui.tsx:295"},children)}function Titular({children,as="h2",style,className}){return __gh(as,{className:className||"ag-h2",style:{fontFamily:T.display,fontWeight:300,color:T.pizarra,margin:0,...style}},children)}function Seccion({id,children,fondo,estrecha,style}){return __gh("section",{id,style:{background:fondo||"transparent",padding:"clamp(56px, 9vw, 104px) 20px",...style},"data-gufi-src":"lib/ui.tsx:334"},__gh("div",{style:{maxWidth:estrecha?760:ANCHO,margin:"0 auto"},"data-gufi-src":"lib/ui.tsx:335"},children))}function Boton({children,onClick,variante="solido",tipo="button",deshabilitado,ancho,href,style,titulo,ariaLabel}){let base={fontFamily:T.texto,fontSize:14.5,fontWeight:600,letterSpacing:"0.01em",padding:"13px 22px",minHeight:48,borderRadius:T.r2,cursor:deshabilitado?"not-allowed":"pointer",display:"inline-flex",alignItems:"center",justifyContent:"center",gap:9,width:ancho?"100%":void 0,textDecoration:"none",transition:"background 160ms ease, border-color 160ms ease, color 160ms ease, opacity 160ms ease",opacity:deshabilitado?.45:1},pinta={solido:{background:T.azulHondo,color:"#FFFFFF",border:`1px solid ${T.azulHondo}`},contorno:{background:"transparent",color:T.pizarra,border:`1px solid ${T.linea}`},texto:{background:"transparent",color:T.azulHondo,border:"1px solid transparent",padding:"10px 4px",minHeight:44}},props={style:{...base,...pinta[variante],...style},onClick:deshabilitado?void 0:onClick,title:titulo,"aria-label":ariaLabel};return href?__gh("a",{...props,href,target:href.startsWith("http")?"_blank":void 0,rel:"noreferrer","data-gufi-src":"lib/ui.tsx:373"},children):__gh("button",{...props,type:tipo,disabled:deshabilitado,"data-gufi-src":"lib/ui.tsx:374"},children)}var campoBase={fontFamily:T.texto,fontSize:16,lineHeight:1.35,color:T.pizarra,borderWidth:1,borderStyle:"solid",borderColor:T.linea,background:T.papel,borderRadius:T.r2,padding:"12px 14px",minHeight:48,width:"100%",outline:"none",transition:"border-color 150ms ease"};function Etiqueta({children,htmlFor}){return __gh("label",{htmlFor,style:{display:"block",fontFamily:T.texto,fontSize:12.5,fontWeight:600,color:T.grisTexto,marginBottom:7,letterSpacing:"0.01em"},"data-gufi-src":"lib/ui.tsx:394"},children)}function Dato({valor,etiqueta,style}){return __gh("div",{style:{...style},"data-gufi-src":"lib/ui.tsx:405"},__gh("div",{style:{fontFamily:T.mono,fontSize:15,color:T.pizarra,letterSpacing:"-0.01em"},"data-gufi-src":"lib/ui.tsx:406"},valor),__gh("div",{style:{fontFamily:T.texto,fontSize:11.5,color:T.grisTenue,marginTop:3,letterSpacing:"0.04em"},"data-gufi-src":"lib/ui.tsx:407"},etiqueta))}function Filete({style,sobreOscuro}){let largo=sobreOscuro?"rgba(247,247,245,0.16)":T.lineaSuave;return __gh("div",{"aria-hidden":"true",style:{display:"flex",alignItems:"center",gap:0,...style},"data-gufi-src":"lib/ui.tsx:421"},__gh("span",{style:{width:34,height:1,background:T.roble},"data-gufi-src":"lib/ui.tsx:422"}),__gh("span",{style:{flex:1,height:1,background:largo},"data-gufi-src":"lib/ui.tsx:423"}))}var ISOTIPO={fronton:"M8 22 L24 7 L40 22",columnas:[12,17.6,23.2,28.8,34.4],base:"M9.5 41.5 H38.5",columna:x=>`M${x} 24.5 V39`};function Isotipo({size=28,color=T.azulHondo,style}){return __gh("svg",{width:size,height:size,viewBox:"0 0 48 48",fill:"none",style,"aria-hidden":"true","data-gufi-src":"lib/ui.tsx:443"},__gh("path",{d:ISOTIPO.fronton,stroke:color,strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round","data-gufi-src":"lib/ui.tsx:444"}),ISOTIPO.columnas.map(x=>__gh("path",{key:x,d:ISOTIPO.columna(x),stroke:color,strokeWidth:"1.7",strokeLinecap:"round",opacity:"0.85","data-gufi-src":"lib/ui.tsx:446"})),__gh("path",{d:ISOTIPO.base,stroke:color,strokeWidth:"2.2",strokeLinecap:"round","data-gufi-src":"lib/ui.tsx:448"}))}var FAVICON="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Crect width='48' height='48' fill='%23F7F7F5'/%3E%3Cg stroke='%233E5869' fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 22 L24 7 L40 22' stroke-width='2.6'/%3E%3Cpath d='M12 24.5V39M17.6 24.5V39M23.2 24.5V39M28.8 24.5V39M34.4 24.5V39' stroke-width='2'/%3E%3Cpath d='M9.5 41.5H38.5' stroke-width='2.6'/%3E%3C/g%3E%3C/svg%3E";function Foto({src,srcSm,sizes,alt,ratio="4 / 3",style,objectPosition,ajuste="cover",onError,prioridad}){let[roto,setRoto]=import_react.default.useState(!1);return import_react.default.useEffect(()=>{setRoto(!1)},[src]),__gh("div",{style:{aspectRatio:ratio,width:"100%",background:T.nieblaSuave,overflow:"hidden",position:"relative",...style},"data-gufi-src":"lib/ui.tsx:493"},roto?__gh("div",{style:{position:"absolute",inset:0,display:"grid",placeItems:"center",padding:16,fontFamily:T.texto,fontSize:12.5,lineHeight:1.5,color:T.grisTenue,textAlign:"center"},"data-gufi-src":"lib/ui.tsx:495"},alt):__gh("img",{src,srcSet:srcSm?`${srcSm} 900w, ${src} 1800w`:void 0,sizes:srcSm?sizes||"100vw":void 0,alt,loading:prioridad?"eager":"lazy",fetchPriority:prioridad?"high":void 0,decoding:"async",onError:()=>{setRoto(!0),onError&&onError()},style:{width:"100%",height:"100%",objectFit:ajuste,objectPosition:objectPosition||"center",display:"block"},"data-gufi-src":"lib/ui.tsx:502"}))}var Z={nav:80,navPanel:90,legal:95,panel:100,aviso:110,dialogo:120,visor:140},ESCENA={fondo:"rgba(16,19,22,0.96)",tinta:"#F2F4F5",tintaTenue:"rgba(242,244,245,0.62)",linea:"rgba(242,244,245,0.16)",boton:"rgba(242,244,245,0.10)"},DUR={rapida:.3,media:.55,lenta:.9};function decideApertura(){if(typeof window>"u")return"abierto";try{if(typeof window.matchMedia=="function"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches||window.sessionStorage&&window.sessionStorage.getItem("ag_apertura")==="1"||window.location&&String(window.location.hash||"").length>1||typeof document<"u"&&document.visibilityState==="hidden")return"abierto"}catch{return"abierto"}return"cortina"}var faseApertura=decideApertura(),oyentesApertura=new Set;function abrirApertura(){if(faseApertura!=="abierto"){faseApertura="abierto";try{typeof window<"u"&&window.sessionStorage&&window.sessionStorage.setItem("ag_apertura","1")}catch{}oyentesApertura.forEach(fn=>fn())}}typeof window<"u"&&faseApertura==="cortina"&&window.setTimeout(()=>abrirApertura(),2600);function suscribirApertura(fn){return oyentesApertura.add(fn),()=>{oyentesApertura.delete(fn)}}function leerApertura(){return faseApertura}function useApertura(){return import_react.default.useSyncExternalStore(suscribirApertura,leerApertura,()=>"abierto")}function useGrande(min=992){let[ok,setOk]=import_react.default.useState(!1);return import_react.default.useEffect(()=>{if(typeof window>"u"||typeof window.matchMedia!="function")return;let mq=window.matchMedia(`(min-width: ${min}px)`),aplicar=()=>setOk(!!mq.matches);return aplicar(),typeof mq.addEventListener=="function"?(mq.addEventListener("change",aplicar),()=>mq.removeEventListener("change",aplicar)):(mq.addListener(aplicar),()=>mq.removeListener(aplicar))},[min]),ok}function useScrubPermitido(){let quieto=(0,import_framer_motion.useReducedMotion)(),grande=useGrande();return!quieto&&grande}function useAvance(ref,registro="cruza"){let neutro=registro==="sale"?0:.5,mv=(0,import_framer_motion.useMotionValue)(neutro),activo=useScrubPermitido();return import_react.default.useEffect(()=>{if(!activo){mv.set(neutro);return}let el=ref.current;if(!el||typeof window>"u")return;let pedido=0,medir=()=>{pedido=0;let r=el.getBoundingClientRect(),vh=window.innerHeight||1,v;if(registro==="sale")v=r.height>0?-r.top/r.height:0;else{let total=r.height+vh;v=total>0?(vh-r.top)/total:0}mv.set(v<0?0:v>1?1:v)},pedirMedida=()=>{pedido||(pedido=requestAnimationFrame(medir))};medir(),window.addEventListener("scroll",pedirMedida,{passive:!0,capture:!0}),window.addEventListener("resize",pedirMedida,{passive:!0});let ro=null;typeof ResizeObserver<"u"&&(ro=new ResizeObserver(pedirMedida),ro.observe(el));let relojes=[300,1200,2600].map(ms=>window.setTimeout(pedirMedida,ms));return()=>{pedido&&cancelAnimationFrame(pedido),relojes.forEach(window.clearTimeout),window.removeEventListener("scroll",pedirMedida,{capture:!0}),window.removeEventListener("resize",pedirMedida),ro&&ro.disconnect()}},[ref,registro,activo,mv,neutro]),mv}var MUELLE={pegado:null,arrastra:{stiffness:260,damping:42,mass:.6},planea:{stiffness:110,damping:30,mass:.9}};function useAvanceSuave(ref,registro="cruza",muelle="arrastra"){let crudo=useAvance(ref,registro),cfg=MUELLE[muelle],suave=(0,import_framer_motion.useSpring)(crudo,cfg||{stiffness:1e3,damping:100,mass:.1});return cfg?suave:crudo}function useActo(ref){let mv=(0,import_framer_motion.useMotionValue)(1),activo=useScrubPermitido();return import_react.default.useEffect(()=>{if(!activo){mv.set(1);return}let el=ref.current;if(!el||typeof window>"u")return;let pedido=0,medir=()=>{pedido=0;let r=el.getBoundingClientRect(),vh=window.innerHeight||1,recorrido=r.height-vh,v=recorrido>1?-r.top/recorrido:1;mv.set(v<0?0:v>1?1:v)},pedirMedida=()=>{pedido||(pedido=requestAnimationFrame(medir))};medir(),window.addEventListener("scroll",pedirMedida,{passive:!0,capture:!0}),window.addEventListener("resize",pedirMedida,{passive:!0});let ro=null;typeof ResizeObserver<"u"&&(ro=new ResizeObserver(pedirMedida),ro.observe(el));let relojes=[300,1200,2600].map(ms=>window.setTimeout(pedirMedida,ms));return()=>{pedido&&cancelAnimationFrame(pedido),relojes.forEach(window.clearTimeout),window.removeEventListener("scroll",pedirMedida,{capture:!0}),window.removeEventListener("resize",pedirMedida),ro&&ro.disconnect()}},[ref,activo,mv]),mv}function usePuntero(){let crudoX=(0,import_framer_motion.useMotionValue)(0),crudoY=(0,import_framer_motion.useMotionValue)(0),px=(0,import_framer_motion.useSpring)(crudoX,{stiffness:60,damping:22,mass:.9}),py=(0,import_framer_motion.useSpring)(crudoY,{stiffness:60,damping:22,mass:.9}),permitido=useScrubPermitido();return import_react.default.useEffect(()=>{if(!permitido||typeof window>"u"){crudoX.set(0),crudoY.set(0);return}if(typeof window.matchMedia=="function"&&!window.matchMedia("(hover: hover) and (pointer: fine)").matches){crudoX.set(0),crudoY.set(0);return}let pedido=0,ultimo=null,aplicar=()=>{pedido=0,ultimo&&(crudoX.set(ultimo.x/(window.innerWidth||1)-.5),crudoY.set(ultimo.y/(window.innerHeight||1)-.5))},mover=e=>{ultimo={x:e.clientX,y:e.clientY},pedido||(pedido=requestAnimationFrame(aplicar))},salir=()=>{crudoX.set(0),crudoY.set(0)};return window.addEventListener("pointermove",mover,{passive:!0}),window.addEventListener("pointerleave",salir,{passive:!0}),()=>{pedido&&cancelAnimationFrame(pedido),window.removeEventListener("pointermove",mover),window.removeEventListener("pointerleave",salir)}},[permitido,crudoX,crudoY]),{px,py}}var VARIANTES_PADRE={quieto:{},dentro:retardo=>({transition:{delayChildren:retardo,staggerChildren:.075}})},VARIANTES_LINEA={quieto:{y:"110%"},dentro:{y:"0%",transition:{duration:DUR.lenta,ease:T.ease}}};function Revela({children,retardo=0,as="div",style,className,id,unaVez=!0,arranca,espera}){let quieto=(0,import_framer_motion.useReducedMotion)(),M=import_framer_motion.motion[as]||import_framer_motion.motion.div;return quieto?__gh(M,{id,className,style},children):__gh(M,{id,className,style,"data-ag-anim":"revela",variants:VARIANTES_PADRE,custom:retardo,...espera?{initial:"quieto",animate:"quieto"}:arranca?{initial:"quieto",animate:"dentro"}:{initial:"quieto",whileInView:"dentro",viewport:{once:unaVez,margin:"-12% 0px -10% 0px"}}},__gh("span",{style:{display:"block",overflow:"hidden",paddingBottom:"0.08em",marginBottom:"-0.08em"},"data-gufi-src":"lib/ui.tsx:983"},__gh(import_framer_motion.motion.span,{style:{display:"block"},variants:VARIANTES_LINEA},children)))}function RevelaLineas({texto,retardo=0,as="div",style,className,arranca,espera}){let quieto=(0,import_framer_motion.useReducedMotion)(),M=import_framer_motion.motion[as]||import_framer_motion.motion.div,lineas=String(texto||"").split(` `);return quieto?__gh(M,{className,style},lineas.map((l,i)=>__gh("span",{key:i,style:{display:"block"},"data-gufi-src":"lib/ui.tsx:1018"},l))):__gh(M,{className,style,"data-ag-anim":"revela-lineas",variants:VARIANTES_PADRE,custom:retardo,...espera?{initial:"quieto",animate:"quieto"}:arranca?{initial:"quieto",animate:"dentro"}:{initial:"quieto",whileInView:"dentro",viewport:{once:!0,margin:"-12% 0px -10% 0px"}}},lineas.map((l,i)=>__gh("span",{key:i,style:{display:"block",overflow:"hidden",paddingBottom:"0.08em",marginBottom:"-0.08em"},"data-gufi-src":"lib/ui.tsx:1039"},__gh(import_framer_motion.motion.span,{style:{display:"block"},variants:VARIANTES_LINEA},l))))}function TitularRevelado({children,as="h2",retardo=0,style,arranca,espera,className}){return __gh(Revela,{as,arranca,espera,retardo,className:className||"ag-h2",style:{fontFamily:T.display,fontWeight:300,color:T.pizarra,margin:0,...style}},children)}function FileteVivo({style,sobreOscuro,retardo=0,arranca,espera}){let quieto=(0,import_framer_motion.useReducedMotion)(),largo=sobreOscuro?"rgba(247,247,245,0.16)":T.lineaSuave;if(quieto)return __gh(Filete,{style,sobreOscuro});let disparo=espera?{initial:"quieto",animate:"quieto"}:arranca?{initial:"quieto",animate:"dentro"}:{initial:"quieto",whileInView:"dentro",viewport:{once:!0,margin:"-10% 0px"}};return __gh(import_framer_motion.motion.div,{"aria-hidden":"true","data-ag-anim":"filete",style:{display:"flex",alignItems:"center",transformOrigin:"left center",...style},variants:{quieto:{},dentro:{transition:{delayChildren:retardo}}},...disparo},__gh(import_framer_motion.motion.span,{style:{width:34,height:1,background:T.roble,transformOrigin:"left center"},variants:{quieto:{scaleX:0},dentro:{scaleX:1,transition:{duration:DUR.media,ease:T.ease}}}}),__gh(import_framer_motion.motion.span,{style:{flex:1,height:1,background:largo,transformOrigin:"left center"},variants:{quieto:{scaleX:0},dentro:{scaleX:1,transition:{duration:DUR.lenta,ease:T.ease,delay:.1}}}}))}function CabeceraSeccion({antetitulo,titulo,entradilla,as="h2",anchoTexto="62ch",sobreOscuro,retardo=0,style,grande}){let tinta=sobreOscuro?T.cal:T.pizarra,tenue=sobreOscuro?"rgba(247,247,245,0.72)":T.grisTexto;return __gh("div",{style,"data-gufi-src":"lib/ui.tsx:1146"},antetitulo?__gh(Aparece,{y:10,retardo},__gh(Antetitulo,{color:sobreOscuro?T.azulClaro:T.azulHondo},antetitulo)):null,__gh(TitularRevelado,{as,retardo:retardo+.06,className:grande?"ag-h2-grande":"ag-h2",style:{marginTop:antetitulo?14:0,color:tinta}},titulo),__gh(FileteVivo,{retardo:retardo+.18,sobreOscuro,style:{margin:"22px 0 0"}}),entradilla?__gh(Aparece,{retardo:retardo+.24,y:14},__gh("p",{style:{margin:"20px 0 0",maxWidth:anchoTexto,fontFamily:T.texto,fontSize:"clamp(14.5px, 1.6vw, 16.5px)",lineHeight:1.68,color:tenue},"data-gufi-src":"lib/ui.tsx:1166"},entradilla)):null)}var CASA={nombre:"\xC1gora Palas",calle:"R\xFAa Agro do Rolo, 34",cp:"27200",municipio:"Palas de Rei",provincia:"Lugo",pais:"Espa\xF1a",telefono:"+34 676 451 970",telefonoRaw:"34676451970",telefono2:"+34 604 018 427",telefono2Raw:"34604018427",email:"reservas@agorapalas.com",whatsapp:"https://wa.me/34676451970",razonSocial:"Apartamentos Tur\xEDsticos A Ulloa, S.L.",nif:"B16361420",domicilioSocial:"Lugarredondi\xF1a, San Lorenzo de Aguiar 5, 27150 Outeiro de Rei (Lugo)",entrada:{es:"de 14:00 a 23:00",en:"2 pm to 11 pm"},salida:{es:"hasta las 11:00",en:"by 11 am"},unidades:9},WHATSAPP=mensaje=>`https://wa.me/${CASA.telefonoRaw}?text=${encodeURIComponent(mensaje)}`,MAX_NOCHES=21;var ESTANCIA_LARGA={es:`El buscador llega hasta ${MAX_NOCHES} noches. Para una estancia m\xE1s larga, escr\xEDbenos y te la organizamos.`,en:`The search goes up to ${MAX_NOCHES} nights. For a longer stay, just write to us and we will arrange it.`};var SECCIONES=[{id:"edificio",rotulo:{es:"El edificio",en:"The building"}},{id:"galeria",rotulo:{es:"La casa",en:"Inside"}},{id:"equipamiento",rotulo:{es:"Equipamiento",en:"Amenities"}},{id:"lugar",rotulo:{es:"Palas de Rei",en:"Palas de Rei"}},{id:"preguntas",rotulo:{es:"Preguntas",en:"Questions"}},{id:"contacto",rotulo:{es:"Contacto",en:"Contact"}}],CANCELACION={es:"Cancelaci\xF3n gratuita hasta 3 d\xEDas antes de la fecha de llegada. Dentro de los 3 d\xEDas previos, la reserva se cobra \xEDntegra. En caso de no presentarse sin avisar, se cobra el importe total.",en:"Free cancellation up to 3 days before arrival. Within the last 3 days the full booking is charged. No-shows without notice are charged in full."},LUGAR={titulo:{es:"Palas de Rei",en:"Palas de Rei"},entradilla:{es:"Donde se acaba la etapa que viene de Portomar\xEDn y empieza la que va hacia Arz\xFAa. \xC1gora Palas est\xE1 en el casco urbano, en la R\xFAa Agro do Rolo.",en:"Where the stage from Portomar\xEDn ends and the one towards Arz\xFAa begins. \xC1gora Palas sits in the town itself, on R\xFAa Agro do Rolo."},etapas:[{desde:"Portomar\xEDn",hasta:"Palas de Rei",km:24.8,sentido:{es:"la etapa que te trae aqu\xED",en:"the stage that brings you here"}},{desde:"Palas de Rei",hasta:"Arz\xFAa",km:28.5,sentido:{es:"la que sale ma\xF1ana",en:"the one that leaves tomorrow"}}],comoLlegar:{es:"El edificio est\xE1 en la R\xFAa Agro do Rolo, 34. Si llegas en coche, hay aparcamiento en la calle. Si llegas andando, est\xE1s a pie del trazado.",en:"The building is at R\xFAa Agro do Rolo, 34. Arriving by car, there is street parking. Arriving on foot, you are right by the route."}},EQUIPAMIENTO=[{grupo:{es:"En tu apartamento",en:"In your apartment"},items:[{icono:"ChefHat",es:"Cocina equipada con placa, microondas y nevera",en:"Kitchenette with hob, microwave and fridge"},{icono:"ShowerHead",es:"Ba\xF1o propio con ducha a ras de suelo",en:"Private bathroom with walk-in shower"},{icono:"Wind",es:"Aire acondicionado y calefacci\xF3n",en:"Air conditioning and heating"},{icono:"Wifi",es:"Wifi en todo el edificio",en:"Wifi throughout the building"},{icono:"Tv",es:"Televisi\xF3n",en:"Television"},{icono:"BedDouble",es:"Ropa de cama y toallas incluidas",en:"Bed linen and towels included"}]},{grupo:{es:"En el edificio",en:"In the building"},items:[{icono:"MoveVertical",es:"Ascensor a todas las plantas",en:"Lift to every floor"},{icono:"Accessibility",es:"Apartamento adaptado para movilidad reducida",en:"Apartment adapted for reduced mobility"},{icono:"WashingMachine",es:"Lavadora y servicio de lavander\xEDa",en:"Washing machine and laundry service"},{icono:"Shirt",es:"Equipo de planchado",en:"Ironing equipment"},{icono:"CigaretteOff",es:"Edificio sin humo",en:"Non-smoking building"},{icono:"Dog",es:"Se admiten mascotas",en:"Pets welcome"}]},{grupo:{es:"Para seguir camino",en:"To keep walking"},items:[{icono:"Luggage",es:"Servicio de maletas",en:"Luggage service"},{icono:"Bike",es:"Alquiler de bicicletas",en:"Bicycle hire"},{icono:"Car",es:"Alquiler de coches y servicio de taxi",en:"Car hire and taxi service"},{icono:"Map",es:"Informaci\xF3n tur\xEDstica",en:"Tourist information"},{icono:"Baby",es:"Cuna y camas supletorias bajo petici\xF3n",en:"Cot and extra beds on request"},{icono:"CreditCard",es:"Pago con tarjeta en el alojamiento",en:"Card payments at the property"}]}],PREGUNTAS=[{p:{es:"\xBFA qu\xE9 hora puedo entrar y salir?",en:"What are the check-in and check-out times?"},r:{es:"La entrada es de 14:00 a 23:00 y la salida, hasta las 12:00. Si llegas m\xE1s tarde de las 23:00, av\xEDsanos por WhatsApp y lo organizamos.",en:"Check-in runs from 2 pm to 11 pm and check-out is by 12 noon. If you will arrive after 11 pm, message us on WhatsApp and we will sort it out."}},{p:{es:"\xBFPuedo cancelar?",en:"Can I cancel?"},r:{es:CANCELACION.es,en:CANCELACION.en}},{p:{es:"\xBFLos apartamentos tienen cocina?",en:"Do the apartments have a kitchen?"},r:{es:"Todos. Placa de inducci\xF3n, microondas, nevera, hervidor y cafetera, con menaje. No es una cocina de casa, pero da para cenar bien despu\xE9s de una etapa.",en:"All of them. Induction hob, microwave, fridge, kettle and coffee machine, with crockery. It is not a full kitchen, but it is enough to cook a proper dinner after a stage."}},{p:{es:"\xBFHay ascensor?",en:"Is there a lift?"},r:{es:"S\xED, llega a todas las plantas. Y hay un apartamento adaptado para movilidad reducida.",en:"Yes, it reaches every floor. And there is one apartment adapted for reduced mobility."}},{p:{es:"\xBFPuedo llevar a mi perro?",en:"Can I bring my dog?"},r:{es:"S\xED, se admiten mascotas. D\xEDnoslo al reservar para asignarte el apartamento que mejor os venga.",en:"Yes, pets are welcome. Tell us when you book so we can give you the apartment that suits you both best."}},{p:{es:"\xBFQu\xE9 hago con la mochila al d\xEDa siguiente?",en:"What about my backpack the next day?"},r:{es:"Hay servicio de maletas: tu equipaje sale hacia tu siguiente alojamiento mientras t\xFA caminas. Preg\xFAntanos y te contamos c\xF3mo va.",en:"There is a luggage service: your bag travels to your next accommodation while you walk. Ask us and we will explain how it works."}},{p:{es:"\xBFSe puede aparcar?",en:"Is there parking?"},r:{es:"Hay aparcamiento en la calle, junto al edificio. Si vienes en coche y vas a dejarlo varios d\xEDas para hacer el Camino, escr\xEDbenos: eso lo resolvemos por otra v\xEDa.",en:"There is street parking next to the building. If you are coming by car and plan to leave it for several days to walk the Camino, write to us: that one we solve another way."}}],ACTO=[{clave:"alturas",titulo:{es:"{n} alturas",en:"{n} levels"},texto:{es:"Dos estudios por planta, y un \xE1tico de 20 m\xB2 que remata el edificio. El ascensor llega a todas.",en:"Two studios per floor, and a 20 m\xB2 top-floor flat that finishes the building. The lift reaches every one."}},{clave:"nueve",titulo:{es:"{n} apartamentos",en:"{n} apartments"},texto:{es:"Cada uno con su cocina, su ba\xF1o y su propio papel pintado. Ninguno es igual al de al lado.",en:"Each with its own kitchen, bathroom and wallpaper. No two are the same."}},{clave:"planta",titulo:{es:"Elige por la planta",en:"Pick by floor"},texto:{es:"Abajo se entra sin escaleras. Arriba se duerme m\xE1s callado. Pulsa la celda del tuyo.",en:"The ground floor has no stairs. The top is the quietest. Tap the cell of the one you want."}}],COPY={heroTitulo:{es:`Nueve apartamentos en Palas de Rei`,en:`Nine apartments in Palas de Rei`},heroEntradilla:{es:"Un edificio entero, reformado en 2026, a pie del Camino Franc\xE9s. Cada apartamento con su cocina, su ba\xF1o y su propio car\xE1cter.",en:"A whole building, renovated in 2026, right on the Camino Franc\xE9s. Each apartment with its own kitchen, bathroom and character."},edificioTitulo:{es:"El edificio",en:"The building"},edificioEntradilla:{es:"Cinco alturas, nueve apartamentos. Elige el tuyo por la planta: abajo se entra sin escaleras, arriba se duerme m\xE1s callado.",en:"Five levels, nine apartments. Pick yours by floor: the ground floor has no stairs, the top is the quietest."},edificioCierre:{es:"Pulsa cualquier apartamento para ver sus fotos, sus metros y el precio de tus noches.",en:"Tap any apartment to see its photos, its floor area and the rate for your nights."},galeriaTitulo:{es:"La casa por dentro",en:"Inside"},equipamientoTitulo:{es:"Lo que vas a encontrar",en:"What you will find"},preguntasTitulo:{es:"Preguntas frecuentes",en:"Frequently asked questions"},contactoTitulo:{es:"Hablamos",en:"Get in touch"},contactoEntradilla:{es:"Para llegar tarde, traer perro, pedir cuna o cualquier cosa que no encaje en un formulario: escr\xEDbenos y te contestamos.",en:"Late arrival, a dog, a cot, or anything that does not fit in a form: write to us and we will answer."},cierreTitulo:{es:`Te esperamos en Palas de Rei`,en:`We will be waiting in Palas de Rei`},cierreTexto:{es:"Si llegas m\xE1s tarde de las 23:00, av\xEDsanos por WhatsApp y lo organizamos. Y si prefieres que reservemos nosotros por ti, ll\xE1manos.",en:"If you will arrive after 11 pm, message us on WhatsApp and we will sort it out. And if you would rather we booked it for you, just call."}};var import_react2=require("react"),KEY="ag_lang";function initial(){if(typeof window>"u")return"es";try{let s=localStorage.getItem(KEY);return s==="es"||s==="en"?s:(navigator.language||"es").toLowerCase().startsWith("en")?"en":"es"}catch{return"es"}}var lang=initial(),listeners=new Set;function setLang(l){lang=l;try{localStorage.setItem(KEY,l),document.documentElement.lang=l}catch{}listeners.forEach(fn=>fn())}function subscribe(fn){return listeners.add(fn),()=>{listeners.delete(fn)}}function snapshot(){return lang}function useLang(){let cur=(0,import_react2.useSyncExternalStore)(subscribe,snapshot,()=>"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}}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 fetchDisponibilidad(gufi){if(gufi&&typeof gufi.automation=="function")try{let r=await gufi.automation("disponibilidad_agora",{}),d=r&&r.result!==void 0?r.result:r;if(d&&Array.isArray(d.apartamentos))return d}catch{}let cid=resolveCid(gufi),json=await postJson(`/api/public/${cid}/disponibilidad`,{});return json&&json.result!==void 0?json.result:json}var WEB_CODE=18135485,SPACE_TYPE=5,BASE="https://booking.avirato.com/",LOS_NUEVE=[726,729,734,736,738,741,742,744,745],esFecha=s=>typeof s=="string"&&/^\d{4}-\d{2}-\d{2}$/.test(s);function enlaceMotor(s={}){let p=new URLSearchParams;p.set("code",String(WEB_CODE)),p.set("spaceTypeId",String(SPACE_TYPE)),p.set("id_habitacion",s.aviratoId?String(s.aviratoId):LOS_NUEVE.join("-"));let hoy=new Date().toISOString().slice(0,10);esFecha(s.entrada)&&esFecha(s.salida)&&s.salida>s.entrada&&s.entrada>=hoy&&(p.set("startDate",s.entrada),p.set("endDate",s.salida));let adultos=Number(s.adultos);Number.isFinite(adultos)&&adultos>=1&&p.set("adults",String(Math.min(8,Math.round(adultos))));let ninos=Number(s.ninos);return Number.isFinite(ninos)&&ninos>0&&p.set("children",String(Math.min(6,Math.round(ninos)))),p.set("lang",s.idioma==="en"?"en":"es"),`${BASE}?${p.toString()}`}async function tarifas(gufi,args){if(!esFecha(args.entrada)||!esFecha(args.salida)||args.salida<=args.entrada)return{ok:!1,motivo:"fechas"};try{let r=await callAutomation(gufi,"tarifas_agora",{entrada:args.entrada,salida:args.salida,adultos:args.adultos||2,ninos:args.ninos||0,idioma:args.idioma==="en"?"en":"es"});return r&&r.ok===!0&&Array.isArray(r.apartamentos)?r:{ok:!1,motivo:r&&r.motivo||"respuesta",detalle:r&&r.detalle}}catch(e){return{ok:!1,motivo:"red",detalle:String(e&&e.message||e)}}}function porProducto(r){let out={};if(!r||r.ok!==!0)return out;for(let a of r.apartamentos)Number.isFinite(a.productoId)&&(out[a.productoId]=a);return out}function precioDe(tarifas2,productoId){if(!tarifas2||tarifas2.estado==="sinFechas")return{clase:"sinFechas"};if(tarifas2.estado==="pidiendo")return{clase:"pidiendo"};if(tarifas2.estado==="falla")return{clase:"sinDato"};let a=tarifas2.porId[productoId];if(!a)return{clase:"sinDato"};if(!a.disponible)return{clase:"ocupado",motivo:a.motivoBloqueo};let barata=a.tarifas[0];return!barata||barata.porNoche===null||barata.porNoche===void 0?{clase:"sinDato"}:{clase:"cifra",porNoche:barata.porNoche,total:barata.total,reembolsable:barata.reembolsable,minNoches:barata.minNoches}}function euros(valor,lang2){return valor==null||!Number.isFinite(Number(valor))?"":new Intl.NumberFormat(lang2==="en"?"en-GB":"es-ES",{style:"currency",currency:"EUR",minimumFractionDigits:Number.isInteger(Number(valor))?0:2,maximumFractionDigits:2}).format(Number(valor))}var NIVELES=[{es:"Planta baja",en:"Ground floor"},{es:"Primera planta",en:"First floor"},{es:"Segunda planta",en:"Second floor"},{es:"Tercera planta",en:"Third floor"},{es:"\xC1tico",en:"Top floor"}];function codigoDe(nombre){let limpio=String(nombre||"").replace(/^\s*[ÁA]gora\s+Palas\s*/i,"").trim();return limpio?/^[aá]tico$/i.test(limpio)?"\xC1TICO":limpio.toUpperCase():"\u2014"}function nivelDe(codigo){if(codigo==="\xC1TICO")return 4;if(/^B\d/i.test(codigo))return 0;let n=parseInt(codigo,10);return Number.isFinite(n)&&n>=1&&n<=3?n:0}function columnaDe(codigo){if(codigo==="\xC1TICO")return 0;let bajo=/^B(\d)$/i.exec(codigo);return bajo?Number(bajo[1])>=2?1:0:/B$/i.test(codigo)?1:0}var num=(v,porDefecto=0)=>{let n=Number(v);return Number.isFinite(n)?n:porDefecto};function aApartamento(p){let opciones=p?.opciones&&typeof p.opciones=="object"?p.opciones:{},ficha=opciones.ficha&&typeof opciones.ficha=="object"?opciones.ficha:{},codigo=codigoDe(p?.nombre),nivel=ficha.planta?nivelPorEtiqueta(ficha.planta,codigo):nivelDe(codigo);return{id:num(p?.id),nombre:String(p?.nombre||""),nombreEn:String(p?.nombre_en||p?.nombre||""),codigo,nivel,plantaEtiqueta:NIVELES[nivel]||NIVELES[0],columna:columnaDe(codigo),resumen:String(p?.resumen||""),resumenEn:String(p?.resumen_en||p?.resumen||""),descripcion:String(p?.descripcion||""),descripcionEn:String(p?.descripcion_en||p?.descripcion||""),precioNoche:num(p?.precio_oferta)>0?num(p.precio_oferta):num(p?.precio),capacidad:num(ficha.capacidad),m2:num(ficha.m2),camaDoble:num(ficha.camaDoble),camasIndividuales:num(ficha.camasIndividuales),caracter:String(ficha.caracter||""),caracterEn:String(ficha.caracterEn||""),fotos:Array.isArray(ficha.fotos)?ficha.fotos.filter(Boolean):[],fotosSm:Array.isArray(ficha.fotosSm)?ficha.fotosSm.filter(Boolean):[],ficha,raw:p}}function nivelPorEtiqueta(planta,codigo){let t=String(planta).toLowerCase();return t.includes("\xE1tico")||t.includes("atico")?4:t.includes("bajo")?0:t.includes("primera")||t.startsWith("1")?1:t.includes("segunda")||t.startsWith("2")?2:t.includes("tercera")||t.startsWith("3")?3:nivelDe(codigo)}function porAlzado(aptos){return[4,3,2,1,0].map(n=>({nivel:n,etiqueta:NIVELES[n],unidades:aptos.filter(a=>a.nivel===n).sort((a,b)=>a.columna-b.columna||a.codigo.localeCompare(b.codigo))})).filter(f=>f.unidades.length>0)}function aOcupacion(respuesta){let out={},lista=respuesta?.apartamentos;if(!Array.isArray(lista))return out;for(let a of lista){let id=num(a?.id);id&&(out[id]=new Set(Array.isArray(a?.ocupadas)?a.ocupadas.map(String):[]))}return out}function estaLibre(ocupacion,id,noches){if(!noches.length)return!0;let tomadas=ocupacion[id];return!tomadas||tomadas.size===0?!0:!noches.some(n=>tomadas.has(n))}var import_react3=require("react");var MARCA_DIBUJA=620,LEVANTA=800,SUBIDA=620,DESMONTA=LEVANTA+SUBIDA+40,DESFASE=.09;function Apertura(){let{t}=useLang(),fase=useApertura(),[activa]=(0,import_react3.useState)(()=>fase==="cortina"),[sube,setSube]=(0,import_react3.useState)(!1),[fuera,setFuera]=(0,import_react3.useState)(!1);if((0,import_react3.useEffect)(()=>{if(!activa)return;let levantar=()=>{setSube(ya=>ya||(abrirApertura(),!0))},a=window.setTimeout(levantar,LEVANTA),b=window.setTimeout(()=>setFuera(!0),DESMONTA),salta=()=>levantar();window.addEventListener("keydown",salta,{passive:!0}),window.addEventListener("pointerdown",salta,{passive:!0}),window.addEventListener("wheel",salta,{passive:!0}),window.addEventListener("touchstart",salta,{passive:!0});let antesRaiz=document.documentElement.style.overflow,antesCuerpo=document.body.style.overflow;return document.documentElement.style.overflow="hidden",document.body.style.overflow="hidden",()=>{window.clearTimeout(a),window.clearTimeout(b),window.removeEventListener("keydown",salta),window.removeEventListener("pointerdown",salta),window.removeEventListener("wheel",salta),window.removeEventListener("touchstart",salta),document.documentElement.style.overflow=antesRaiz,document.body.style.overflow=antesCuerpo}},[activa]),(0,import_react3.useEffect)(()=>{!sube||typeof document>"u"||(document.documentElement.style.overflow="",document.body.style.overflow="")},[sube]),!activa||fuera)return null;let etiquetas=[LUGAR.titulo.es,"Camino Franc\xE9s",`${CASA.unidades} ${t("apartamentos","apartments")}`],hoja=(clave,fondo,canto,retardo,z,contenido)=>__gh(import_framer_motion.motion.div,{key:clave,"aria-hidden":clave==="atras"?"true":void 0,initial:{y:0},animate:{y:sube?"-101%":0},transition:{duration:SUBIDA/1e3,ease:T.ease,delay:sube?retardo:0},style:{position:"absolute",inset:0,zIndex:z,background:fondo,borderBottom:`1px solid ${canto}`,boxShadow:sube?T.sombraAlta:"none",willChange:"transform"}},contenido),marca=__gh(import_framer_motion.motion.div,{initial:{y:0,opacity:1},animate:{y:sube?"38%":0,opacity:sube?0:1},transition:{duration:SUBIDA/1e3,ease:T.ease,delay:sube?DESFASE:0},style:{position:"absolute",inset:0,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:0,padding:"0 20px"}},__gh("svg",{width:64,height:64,viewBox:"0 0 48 48",fill:"none","aria-hidden":"true",style:{display:"block"},"data-gufi-src":"components/Apertura.tsx:164"},__gh(import_framer_motion.motion.path,{d:ISOTIPO.fronton,stroke:T.azulHondo,strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",initial:{pathLength:0,opacity:0},animate:{pathLength:1,opacity:1},transition:{duration:MARCA_DIBUJA/1e3*.55,ease:T.ease,delay:.05}}),ISOTIPO.columnas.map((x,i)=>__gh(import_framer_motion.motion.path,{key:x,d:ISOTIPO.columna(x),stroke:T.azulHondo,strokeWidth:"1.7",strokeLinecap:"round",opacity:.85,initial:{pathLength:0},animate:{pathLength:1},transition:{duration:.26,ease:T.ease,delay:.26+Math.abs(2-i)*.045}})),__gh(import_framer_motion.motion.path,{d:ISOTIPO.base,stroke:T.azulHondo,strokeWidth:"2.2",strokeLinecap:"round",initial:{pathLength:0},animate:{pathLength:1},transition:{duration:.3,ease:T.ease,delay:.42}})),__gh("span",{style:{display:"block",overflow:"hidden",marginTop:20,paddingBottom:"0.1em"},"data-gufi-src":"components/Apertura.tsx:195"},__gh(import_framer_motion.motion.span,{initial:{y:"110%"},animate:{y:"0%"},transition:{duration:DUR.lenta,ease:T.ease,delay:.3},style:{display:"block",fontFamily:T.display,fontWeight:300,color:T.pizarra,fontSize:"clamp(29px, 7.4vw, 46px)",lineHeight:1.05,letterSpacing:"-0.024em",whiteSpace:"nowrap"}},CASA.nombre)),__gh(import_framer_motion.motion.span,{"aria-hidden":"true",initial:{scaleX:0},animate:{scaleX:1},transition:{duration:DUR.media,ease:T.ease,delay:.52},style:{display:"block",width:"clamp(120px, 26vw, 190px)",height:1,marginTop:16,background:T.roble,transformOrigin:"left center"}}),__gh("div",{style:{position:"absolute",left:0,right:0,bottom:"calc(26px + env(safe-area-inset-bottom, 0px))",padding:"0 clamp(20px, 5vw, 46px)",display:"flex",flexWrap:"wrap",justifyContent:"center",gap:"6px 22px"},"data-gufi-src":"components/Apertura.tsx:225"},etiquetas.map((e,i)=>__gh(import_framer_motion.motion.span,{key:e,initial:{opacity:0,y:8},animate:{opacity:1,y:0},transition:{duration:DUR.media,ease:T.ease,delay:.46+i*.07},style:{fontFamily:T.mono,fontSize:10.5,letterSpacing:"0.2em",textTransform:"uppercase",color:T.grisTenue,whiteSpace:"nowrap"}},e))));return __gh("div",{"aria-hidden":"true",style:{position:"fixed",inset:0,zIndex:Z.visor+10,pointerEvents:sube?"none":"auto",overflow:"hidden"},"data-gufi-src":"components/Apertura.tsx:257"},hoja("atras",T.cal,T.linea,DESFASE,1),hoja("delante",T.papel,T.roble,0,2,marca))}var import_react4=require("react"),import_lucide_react=require("lucide-react");function conAlfa(hex,a){let m=/^#?([0-9a-fA-F]{6})$/.exec(String(hex));if(!m)return hex;let n=parseInt(m[1],16);return"rgba("+(n>>16&255)+","+(n>>8&255)+","+(n&255)+","+a+")"}var IDS=["edificio","galeria","equipamiento","lugar","preguntas","contacto"],BEZIER="cubic-bezier("+T.ease.join(",")+")",CSS=` .agn-barra{position:fixed;top:0;left:0;right:0;z-index:${Z.nav};border-bottom:1px solid transparent; transition:background 240ms ease,border-color 240ms ease,backdrop-filter 240ms ease;} .agn-fila{box-sizing:border-box;max-width:${ANCHO+40}px;margin:0 auto;display:flex;align-items:center;gap:10px;padding:12px 20px;} .agn-izq{flex:1 1 0;min-width:0;display:flex;align-items:center;} /* 9 px y no 7: en la esquina del pulgar hay tres dianas seguidas (idioma, reservar, men\xFA) y el list\xF3n de separaci\xF3n entre dianas t\xE1ctiles es 8. */ .agn-dcha{flex:1 1 0;min-width:0;display:flex;align-items:center;justify-content:flex-end;gap:9px;} .agn-marca{display:inline-flex;align-items:center;gap:9px;min-height:44px;min-width:44px;background:none;border:0;padding:5px;margin:-5px;cursor:pointer;} .agn-marca-txt{font-family:${T.display};font-weight:300;font-size:19px;line-height:1;letter-spacing:-0.01em;color:${T.pizarra};white-space:nowrap;} .agn-enlaces{flex:0 0 auto;display:none;align-items:center;} .agn-enlace{position:relative;background:none;border:0;cursor:pointer;padding:10px;min-height:44px;font-family:${T.texto};font-size:14px;font-weight:500; color:${T.grisTexto};white-space:nowrap;transition:color 180ms ease;} .agn-enlace:hover{color:${T.pizarra};} .agn-enlace[data-on='1']{color:${T.pizarra};} .agn-enlace::after{content:'';position:absolute;left:10px;right:10px;bottom:8px;height:1px;background:${T.roble}; transform:scaleX(0);transform-origin:left center;transition:transform 260ms ${BEZIER};} .agn-enlace:hover::after,.agn-enlace:focus-visible::after,.agn-enlace[data-on='1']::after{transform:scaleX(1);} .agn-idioma{display:none;} .agn-lang{position:relative;} .agn-lang::after{content:'';position:absolute;left:0;right:0;top:-3px;bottom:-3px;} .agn-cuad{width:44px;height:44px;flex:0 0 auto;display:grid;place-items:center;padding:0;cursor:pointer; border:1px solid ${T.linea};border-radius:${T.r2}px;background:transparent;color:${T.pizarra}; transition:background 160ms ease,border-color 160ms ease;} .agn-cuad:hover{background:${T.azulVelo};border-color:${T.azulClaro};} .agn-menu{display:grid;} .agn-panel{position:fixed;inset:0;z-index:${Z.navPanel};background:${T.cal};display:flex;flex-direction:column; overflow-y:auto;overscroll-behavior:contain;outline:none;} .agn-plink{display:block;width:100%;text-align:left;background:none;border:0;border-bottom:1px solid ${T.lineaSuave}; padding:16px 2px;min-height:58px;cursor:pointer;color:${T.pizarra};transition:color 180ms ease; font-family:${T.display};font-weight:300;font-size:clamp(25px,7.2vw,34px);line-height:1.2;letter-spacing:-0.015em;} .agn-plink[data-on='1']{color:${T.azulHondo};} /* \u2500\u2500 LA BARRA SOBRE UNA BANDA OSCURA \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 La web es clara de arriba abajo salvo el cierre y el pie, que comparten la tinta de la casa. Cuando una de esas bandas le pasa por debajo, la barra invierte su tinta: si no, el r\xF3tulo y los enlaces se quedan en pizarra sobre pizarra y la barra desaparece durante dos pantallas. \u{1F534} SE HACE CON UN ATRIBUTO EN LA BARRA Y SELECTORES DESCENDIENTES, no tocando los estilos en l\xEDnea de cada hijo. Dos razones: una clase puesta a mano la borra React en el siguiente render (ya nos pas\xF3 con un observador), y un color escrito en l\xEDnea le gana SIEMPRE a cualquier regla de la hoja, as\xED que los hijos que tengan que cambiar no pueden llevarlo en l\xEDnea. Lo que s\xED va por prop es lo que no es color de texto: el isotipo y el bot\xF3n. \u{1F534} Y OJO: este bloque es una plantilla de JS. Un acento invertido dentro de un comentario de aqu\xED la CIERRA y tumba el fichero. Aqu\xED dentro, ni uno. */ .agn-barra[data-oscuro='1'] .agn-marca-txt{color:${T.cal};} .agn-barra[data-oscuro='1'] .agn-enlace{color:rgba(247,247,245,0.70);} .agn-barra[data-oscuro='1'] .agn-enlace:hover, .agn-barra[data-oscuro='1'] .agn-enlace[data-on='1']{color:${T.cal};} .agn-barra[data-oscuro='1'] .agn-cuad{border-color:rgba(247,247,245,0.24);color:${T.cal};} .agn-barra[data-oscuro='1'] .agn-cuad:hover{background:rgba(247,247,245,0.10);border-color:rgba(247,247,245,0.4);} @media (min-width:1120px){ .agn-fila{padding:14px 20px;} .agn-enlaces{display:flex;} .agn-idioma{display:inline-flex;} .agn-menu{display:none;} } @media (max-width:639px){ .agn-barra[data-top='1'] .agn-cuad{background:${conAlfa(T.cal,.72)};border-color:${T.lineaSuave}; backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);} } @media (max-width:359px){.agn-marca-txt{display:none;}} `;function Idioma({grande,sobreOscuro}){let{lang:lang2,setLang:setLang2,t}=useLang();return __gh("div",{role:"group","aria-label":t("Idioma","Language"),style:{display:"inline-flex",alignItems:"center",gap:2,padding:2,border:`1px solid ${sobreOscuro?"rgba(247,247,245,0.24)":T.linea}`,borderRadius:T.r2,background:"transparent",transition:"border-color 240ms ease"},"data-gufi-src":"components/Nav.tsx:120"},["es","en"].map(v=>{let on=lang2===v;return __gh("button",{key:v,type:"button",className:"agn-lang",onClick:()=>setLang2(v),"aria-pressed":on,"aria-label":v==="es"?"Espa\xF1ol":"English",style:{minWidth:grande?56:44,height:grande?44:38,padding:"0 10px",border:"1px solid transparent",borderRadius:T.r1,cursor:"pointer",background:on?sobreOscuro?T.cal:T.azulHondo:"transparent",color:on?sobreOscuro?T.pizarra:T.papel:sobreOscuro?"rgba(247,247,245,0.70)":T.grisTexto,fontFamily:T.texto,fontSize:grande?14:12.5,fontWeight:600,letterSpacing:"0.06em",transition:"background 160ms ease, color 160ms ease"},"data-gufi-src":"components/Nav.tsx:135"},v.toUpperCase())}))}function Nav({onIrA,onReserva}){let{t,L}=useLang(),quieto=(0,import_framer_motion.useReducedMotion)(),[bajado,setBajado]=(0,import_react4.useState)(!1),[abierto,setAbierto]=(0,import_react4.useState)(!1),[activo,setActivo]=(0,import_react4.useState)(""),panelRef=(0,import_react4.useRef)(null),previoRef=(0,import_react4.useRef)(null),[avance,setAvance]=(0,import_react4.useState)(0),[oscuro,setOscuro]=(0,import_react4.useState)(!1);(0,import_react4.useEffect)(()=>{if(typeof window>"u")return;let pedido=0,medir=()=>{pedido=0;let raiz=document.querySelector(".ag-root");if(!raiz)return;let r=raiz.getBoundingClientRect(),recorrido=-r.top;setBajado(recorrido>8);let total=r.height-(window.innerHeight||0);setAvance(total>40?Math.max(0,Math.min(1,recorrido/total)):0);let CORTE=28,sobre=!1,bandas=document.querySelectorAll("[data-ag-oscuro]");for(let i=0;i=CORTE){sobre=!0;break}}setOscuro(sobre)},pedirMedida=()=>{pedido||(pedido=requestAnimationFrame(medir))};medir(),window.addEventListener("scroll",pedirMedida,{passive:!0,capture:!0}),window.addEventListener("resize",pedirMedida,{passive:!0});let relojes=[400,1500,3e3].map(ms=>window.setTimeout(pedirMedida,ms));return()=>{pedido&&cancelAnimationFrame(pedido),relojes.forEach(window.clearTimeout),window.removeEventListener("scroll",pedirMedida,{capture:!0}),window.removeEventListener("resize",pedirMedida)}},[]),(0,import_react4.useEffect)(()=>{if(typeof window>"u"||!("IntersectionObserver"in window))return;let obs=null,reloj=null,intentos=0,montar=()=>{let els=IDS.map(id=>document.getElementById(id)).filter(Boolean);if(!els.length){intentos++<12&&(reloj=setTimeout(montar,400));return}let dentro=new Set;obs=new IntersectionObserver(entradas=>{for(let e of entradas)e.isIntersecting?dentro.add(e.target.id):dentro.delete(e.target.id);let primero=IDS.find(id=>dentro.has(id))||"";setActivo(primero)},{rootMargin:"-45% 0px -50% 0px",threshold:0}),els.forEach(el=>obs.observe(el))};return montar(),()=>{reloj&&clearTimeout(reloj),obs&&obs.disconnect()}},[]),(0,import_react4.useEffect)(()=>{if(!abierto||typeof document>"u")return;let panel=panelRef.current;previoRef.current=document.activeElement;let antes=document.body.style.overflow;document.body.style.overflow="hidden",panel&&panel.focus({preventScroll:!0});let enfocables=()=>panel?Array.from(panel.querySelectorAll('button, a[href], input, select, [tabindex]:not([tabindex="-1"])')).filter(el=>!el.hasAttribute("disabled")):[],tecla=e=>{if(e.key==="Escape"){e.stopPropagation(),setAbierto(!1);return}if(e.key!=="Tab")return;let f=enfocables();if(!f.length)return;let primero=f[0],ultimo=f[f.length-1];e.shiftKey&&(document.activeElement===primero||document.activeElement===panel)?(e.preventDefault(),ultimo.focus()):!e.shiftKey&&document.activeElement===ultimo&&(e.preventDefault(),primero.focus())};return document.addEventListener("keydown",tecla),()=>{document.removeEventListener("keydown",tecla),document.body.style.overflow=antes;let previo=previoRef.current,vuelve=previo&&previo!==document.body?previo:document.querySelector(".agn-menu");vuelve&&typeof vuelve.focus=="function"&&vuelve.focus({preventScroll:!0})}},[abierto]);let ENLACES=SECCIONES.map(s=>({id:s.id,label:L(s.rotulo)})),ir=id=>{setAbierto(!1),onIrA(id)},etiquetaReserva=t("Reservar, se abre en otra pesta\xF1a","Book, opens in a new tab");return __gh(__gf,null,__gh("style",{dangerouslySetInnerHTML:{__html:CSS},"data-gufi-src":"components/Nav.tsx:349"}),__gh("header",{className:"agn-barra","data-top":bajado?"0":"1","data-oscuro":oscuro?"1":"0",style:{background:bajado?conAlfa(oscuro?T.pizarra:T.cal,.84):"transparent",backdropFilter:bajado?"saturate(1.3) blur(14px)":"none",WebkitBackdropFilter:bajado?"saturate(1.3) blur(14px)":"none",borderBottomColor:bajado?oscuro?"rgba(247,247,245,0.14)":T.linea:"transparent",transition:"background 260ms ease, border-color 260ms ease, color 260ms ease"},"data-gufi-src":"components/Nav.tsx:351"},__gh("div",{className:"agn-fila","data-gufi-src":"components/Nav.tsx:365"},__gh("div",{className:"agn-izq","data-gufi-src":"components/Nav.tsx:366"},__gh("button",{type:"button",className:"agn-marca",onClick:()=>{setAbierto(!1),onIrA("top")},"aria-label":t("\xC1gora Palas \xB7 ir al principio","\xC1gora Palas \xB7 back to top"),"data-gufi-src":"components/Nav.tsx:367"},__gh(Isotipo,{size:26,color:oscuro?T.azulClaro:T.azulHondo}),__gh("span",{className:"agn-marca-txt","data-gufi-src":"components/Nav.tsx:374"},"\xC1gora Palas"))),__gh("nav",{className:"agn-enlaces","aria-label":t("Secciones","Sections"),"data-gufi-src":"components/Nav.tsx:378"},ENLACES.map(e=>__gh("button",{key:e.id,type:"button",className:"agn-enlace","data-on":activo===e.id?"1":"0","aria-current":activo===e.id?"true":void 0,onClick:()=>ir(e.id),"data-gufi-src":"components/Nav.tsx:380"},e.label))),__gh("div",{className:"agn-dcha","data-gufi-src":"components/Nav.tsx:393"},__gh("span",{className:"agn-idioma","data-gufi-src":"components/Nav.tsx:394"},__gh(Idioma,{sobreOscuro:oscuro})),__gh(Boton,{variante:"solido",onClick:onReserva,ariaLabel:etiquetaReserva,style:{minHeight:44,padding:"0 17px",fontSize:13.5,...oscuro?{background:T.cal,borderColor:T.cal,color:T.pizarra}:null}},t("Reservar","Book")),__gh("button",{type:"button",className:"agn-cuad agn-menu",onClick:()=>setAbierto(!0),"aria-label":t("Abrir men\xFA","Open menu"),"aria-expanded":abierto,"data-gufi-src":"components/Nav.tsx:414"},__gh(import_lucide_react.Menu,{size:19})))),__gh("span",{"aria-hidden":"true",style:{position:"absolute",left:0,right:0,bottom:-1,height:1,background:T.roble,transformOrigin:"left center",transform:`scaleX(${bajado?avance:0})`,opacity:bajado?.9:0,transition:"transform 140ms linear, opacity 240ms ease"},"data-gufi-src":"components/Nav.tsx:432"})),__gh(import_framer_motion.AnimatePresence,null,abierto&&__gh(import_framer_motion.motion.div,{key:"agn-panel",ref:panelRef,className:"agn-panel",tabIndex:-1,role:"dialog","aria-modal":"true","aria-label":t("Men\xFA","Menu"),initial:quieto?!1:{opacity:0,y:-10},animate:quieto?{}:{opacity:1,y:0},exit:quieto?{}:{opacity:0,y:-10},transition:{duration:.2,ease:T.ease}},__gh("div",{style:{display:"flex",alignItems:"center",gap:10,padding:"12px 20px",borderBottom:`1px solid ${T.lineaSuave}`},"data-gufi-src":"components/Nav.tsx:459"},__gh("span",{style:{display:"inline-flex",alignItems:"center",gap:9,minWidth:0},"data-gufi-src":"components/Nav.tsx:460"},__gh(Isotipo,{size:26}),__gh("span",{style:{fontFamily:T.display,fontWeight:300,fontSize:19,lineHeight:1,letterSpacing:"-0.01em",color:T.pizarra,whiteSpace:"nowrap"},"data-gufi-src":"components/Nav.tsx:462"},"\xC1gora Palas")),__gh("button",{type:"button",className:"agn-cuad",onClick:()=>setAbierto(!1),"aria-label":t("Cerrar men\xFA","Close menu"),style:{marginLeft:"auto"},"data-gufi-src":"components/Nav.tsx:466"},__gh(import_lucide_react.X,{size:19}))),__gh("nav",{"aria-label":t("Secciones","Sections"),style:{padding:"6px 20px 0"},"data-gufi-src":"components/Nav.tsx:477"},ENLACES.map(e=>__gh("button",{key:e.id,type:"button",className:"agn-plink","data-on":activo===e.id?"1":"0",onClick:()=>ir(e.id),"data-gufi-src":"components/Nav.tsx:479"},e.label))),__gh("div",{style:{marginTop:"auto",display:"grid",gap:14,padding:"22px 20px",paddingBottom:"calc(22px + env(safe-area-inset-bottom))",borderTop:`1px solid ${T.lineaSuave}`},"data-gufi-src":"components/Nav.tsx:491"},__gh(Boton,{variante:"solido",ancho:!0,onClick:()=>{setAbierto(!1),onReserva()},ariaLabel:etiquetaReserva},t("Reservar","Book")),__gh("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:12},"data-gufi-src":"components/Nav.tsx:501"},__gh("span",{style:{fontFamily:T.texto,fontSize:11.5,fontWeight:600,letterSpacing:"0.14em",textTransform:"uppercase",color:T.grisTenue},"data-gufi-src":"components/Nav.tsx:502"},t("Idioma","Language")),__gh(Idioma,{grande:!0}))))))}var import_react6=require("react"),import_lucide_react3=require("lucide-react");var import_react5=require("react"),import_lucide_react2=require("lucide-react");var CELDA=38,CELDA_TACTIL=44,AIRE_MES=20,HUECO_MESES=26,ANCHO_MES=CELDA*7,ANCHO_PANEL_2=ANCHO_MES*2+HUECO_MESES+AIRE_MES*2,ANCHO_PANEL_1=ANCHO_MES+AIRE_MES*2,VACIO=new Set,HOJA=` .agc-env{position:relative;} .agc-disp{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:stretch; background:${T.papel};border:1px solid ${T.linea};border-radius:${T.r2}px;overflow:hidden; transition:border-color 180ms ease;} .agc-env[data-abierto='1'] .agc-disp{border-color:${T.azul};} .agc-mitad{display:flex;flex-direction:column;align-items:flex-start;gap:3px;justify-content:center; min-width:0;min-height:58px;padding:9px 12px;margin:0;background:transparent;border:0;cursor:pointer; text-align:left;-webkit-appearance:none;appearance:none;transition:background 160ms ease;} .agc-mitad + .agc-mitad{border-left:1px solid ${T.linea};} .agc-mitad:hover{background:${T.azulVelo};} .agc-mitad[data-on='1']{background:${T.azulVelo};} .agc-rot{font-family:${T.texto};font-size:11px;font-weight:600;letter-spacing:0.1em;text-transform:uppercase; color:${T.grisTenue};white-space:nowrap;} .agc-val{font-family:${T.mono};font-size:15.5px;line-height:1.2;letter-spacing:-0.01em;color:${T.pizarra}; white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;} .agc-val[data-vacio='1']{color:${T.grisTenue};} .agc-panel{background:${T.papel};border:1px solid ${T.linea};border-radius:${T.r3}px; box-shadow:${T.sombraAlta};padding:${AIRE_MES}px;} .agc-meses{display:flex;gap:${HUECO_MESES}px;align-items:flex-start;} .agc-rejilla{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));} .agc-dia{position:relative;height:${CELDA}px;display:grid;place-items:center;margin:0;padding:0;border:0; background:transparent;font-family:${T.mono};font-size:13px;line-height:1;color:${T.pizarra2}; cursor:pointer;-webkit-appearance:none;appearance:none;-webkit-tap-highlight-color:transparent;} .agc-dia span{position:relative;z-index:1;} .agc-dia:hover:not([data-no='1']) span{color:${T.azulHondo};} .agc-dia[data-no='1']{cursor:default;color:${T.grisTenue};} .agc-dia[data-fuera='1']{color:${T.grisTenue};opacity:0.5;} /* La raya de la noche vendida. Va en una capa y no en text-decoration: as\xED es del grosor de un pelo y del color de la tinta, no del tama\xF1o de la cifra. \u{1F534} Este bloque es una plantilla de JS: ni un acento invertido aqu\xED dentro. */ .agc-tach::after{content:'';position:absolute;left:22%;right:22%;top:50%;height:1px; background:${T.grisTenue};z-index:2;} .agc-hoy::before{content:'';position:absolute;left:50%;bottom:4px;width:3px;height:3px;margin-left:-1.5px; border-radius:999px;background:${T.roble};z-index:1;} @media (max-width:719px){ .agc-dia{height:${CELDA_TACTIL}px;font-size:14px;} /* DOS MESES TAMBIEN EN EL MOVIL, pero APILADOS y dentro de una sabana que scrollea. Con uno solo, quien abre el calendario un 27 ve un mes con cuatro dias pulsables y veintiseis apagados, y tiene que adivinar que hay una flecha. Apilados se ve lo que de verdad hay disponible sin tocar nada, que es justo lo que un movil necesita mas que un escritorio. */ .agc-meses{flex-direction:column;gap:22px;} .agc-panel{border:0;border-radius:0;box-shadow:none;padding:14px 16px 0;} } `;function banda(tramo){return{position:"absolute",top:2,bottom:2,left:tramo==="ini"||tramo==="solo"?2:-1,right:tramo==="fin"||tramo==="solo"?2:-1,background:tramo==="ini"||tramo==="fin"||tramo==="solo"?T.azulHondo:T.azulVelo,borderRadius:tramo==="solo"?T.r2:tramo==="ini"?`${T.r2}px 0 0 ${T.r2}px`:tramo==="fin"?`0 ${T.r2}px ${T.r2}px 0`:0,zIndex:0}}function Mes({mes,celdas,foco,onElegir,onEncima,onFoco,lang:lang2}){let iniciales=lang2==="en"?INICIALES_DIA.en:INICIALES_DIA.es,hoy=hoyISO(),hueco=diaSemana(`${mes}-01`);return __gh("div",{style:{width:"100%",minWidth:0},"data-gufi-src":"components/Calendario.tsx:165"},__gh("div",{"aria-hidden":"true",style:{fontFamily:T.display,fontWeight:300,fontSize:17,lineHeight:1,letterSpacing:"-0.01em",color:T.pizarra,textAlign:"center",marginBottom:12},"data-gufi-src":"components/Calendario.tsx:166"},mesLargo(mes,lang2)),__gh("div",{className:"agc-rejilla","aria-hidden":"true",style:{marginBottom:4},"data-gufi-src":"components/Calendario.tsx:176"},iniciales.map((d,i)=>__gh("div",{key:i,style:{height:20,display:"grid",placeItems:"center",fontFamily:T.texto,fontSize:10.5,fontWeight:600,letterSpacing:"0.08em",color:i>=5?T.azul:T.grisTenue},"data-gufi-src":"components/Calendario.tsx:178"},d))),__gh("div",{className:"agc-rejilla","data-gufi-src":"components/Calendario.tsx:194"},Array.from({length:hueco},(_,i)=>__gh("div",{key:`h${i}`,"aria-hidden":"true","data-gufi-src":"components/Calendario.tsx:195"})),celdas.map(c=>{let punta=c.papel==="ini"||c.papel==="fin"||c.papel==="solo";return __gh("button",{key:c.iso,type:"button",className:["agc-dia",c.vendida?"agc-tach":"",c.iso===hoy?"agc-hoy":""].filter(Boolean).join(" "),"data-no":c.no?"1":"0","data-iso":c.iso,tabIndex:c.iso===foco?0:-1,"aria-disabled":c.no?!0:void 0,"aria-pressed":punta,"aria-label":c.vendida?`${fechaHablada(c.iso,lang2)} \u2014 ${lang2==="en"?"night already booked":"noche ya reservada"}`:fechaHablada(c.iso,lang2),onClick:()=>{c.no||onElegir(c.iso)},onMouseEnter:()=>onEncima(c.iso),onFocus:()=>onFoco(c.iso),"data-gufi-src":"components/Calendario.tsx:199"},c.papel?__gh("span",{"aria-hidden":"true",style:banda(c.papel),"data-gufi-src":"components/Calendario.tsx:221"}):null,__gh("span",{style:{color:punta?T.papel:void 0,fontWeight:punta?500:400},"data-gufi-src":"components/Calendario.tsx:222"},c.dia))})))}function CampoEstancia({entrada,noches,onCambio,minFecha,maxNoches,ocupadas,id,compacto,notaTope,style}){let{t,lang:lang2}=useLang(),quieto=(0,import_framer_motion.useReducedMotion)(),tomadas=ocupadas||VACIO,suelo=String(minFecha||hoyISO()),nochesSeguras=Math.max(1,Math.round(Number(noches)||1)),salida=entrada?sumarDias(entrada,nochesSeguras):"",[abierto,setAbierto]=(0,import_react5.useState)(!1),[fase,setFase]=(0,import_react5.useState)("entrada"),[encima,setEncima]=(0,import_react5.useState)(""),[foco,setFoco]=(0,import_react5.useState)(""),[mesBase,setMesBase]=(0,import_react5.useState)(()=>String(entrada||suelo).slice(0,7)),[forma,setForma]=(0,import_react5.useState)({meses:1,lado:"izq",sabana:!0}),envRef=(0,import_react5.useRef)(null),panelRef=(0,import_react5.useRef)(null),volverA=(0,import_react5.useRef)(null),corridaLibre=(0,import_react5.useCallback)(desde=>{let n=0;for(;n{let total=diasDelMes(mes),tope=fase==="salida"&&entrada?corridaLibre(entrada):0,salidaMax=fase==="salida"&&entrada&&tope>0?sumarDias(entrada,tope):"",propuesta=fase==="salida"&&entrada&&encima>entrada&&(!salidaMax||encima<=salidaMax)?encima:"",desde=entrada,hasta=propuesta||salida,out=[];for(let d=1;d<=total;d++){let iso=`${mes}-${String(d).padStart(2,"0")}`,vendida=tomadas.has(iso),no=isosalidaMax:no=vendida||corridaLibre(iso)<1);let papel="";desde&&hasta&&iso>=desde&&iso<=hasta?desde===hasta?papel="solo":iso===desde?papel="ini":iso===hasta?papel="fin":papel="medio":desde&&!hasta&&iso===desde&&(papel="solo"),out.push({iso,dia:d,no,vendida,papel})}return out},[fase,entrada,salida,encima,suelo,tomadas,corridaLibre]),meses=(0,import_react5.useMemo)(()=>forma.meses===2?[mesBase,sumarMeses(mesBase,1)]:[mesBase],[forma.meses,mesBase]),abrir=cual=>{if(setFase(cual),setEncima(""),setMesBase(String(cual==="salida"&&entrada?entrada:entrada||suelo).slice(0,7)),setFoco(cual==="salida"&&salida?salida:entrada||suelo),typeof window<"u"){volverA.current=document.activeElement;let vw=window.innerWidth||0,sabana=vw<720,r=envRef.current?envRef.current.getBoundingClientRect():null,meses2=2,lado="izq";if(!sabana&&r&&envRef.current){let izq=16,der=vw-16;for(let p=envRef.current.parentElement;p;p=p.parentElement){if(window.getComputedStyle(p).overflowX==="visible")continue;let pr=p.getBoundingClientRect();pr.width<=0||(izq=Math.max(izq,pr.left+8),der=Math.min(der,pr.right-8))}let cabe=ancho=>r.left+ancho<=der||r.right-ancho>=izq;if(cabe(ANCHO_PANEL_2))meses2=2,lado=r.left+ANCHO_PANEL_2<=der?"izq":"der";else if(cabe(ANCHO_PANEL_1))meses2=1,lado=r.left+ANCHO_PANEL_1<=der?"izq":"der";else{setForma({meses:2,lado:"izq",sabana:!0}),setAbierto(!0);return}}sabana&&(meses2=2,lado="izq"),setForma({meses:meses2,lado,sabana})}setAbierto(!0)},cerrar=(0,import_react5.useCallback)(()=>{setAbierto(!1),setEncima("");let v=volverA.current;if(v&&typeof v.focus=="function")try{v.focus({preventScroll:!0})}catch{}},[]),elegir=iso=>{if(fase==="entrada"||!entrada||iso<=entrada){let cabe=corridaLibre(iso);if(cabe<1)return;onCambio(iso,Math.max(1,Math.min(nochesSeguras,cabe))),setFase("salida"),setEncima(""),setFoco(iso);return}let n=nochesEntre(entrada,iso);n>=1&&(onCambio(entrada,Math.min(n,maxNoches)),setFoco(iso),cerrar())};(0,import_react5.useEffect)(()=>{if(!abierto||typeof document>"u")return;let fuera=e=>{let env=envRef.current,pan=panelRef.current,d=e.target;env&&env.contains(d)||pan&&pan.contains(d)||cerrar()},tecla=e=>{if(e.key==="Escape"){e.stopPropagation(),cerrar();return}if(!forma.sabana||e.key!=="Tab")return;let pan=panelRef.current;if(!pan)return;let nodos=Array.from(pan.querySelectorAll('button:not([aria-disabled="true"])')).filter(n=>n.offsetWidth>0||n.offsetHeight>0);if(!nodos.length)return;let primero=nodos[0],ultimo=nodos[nodos.length-1];e.shiftKey&&document.activeElement===primero?(e.preventDefault(),ultimo.focus()):!e.shiftKey&&document.activeElement===ultimo&&(e.preventDefault(),primero.focus())};return document.addEventListener("mousedown",fuera),document.addEventListener("touchstart",fuera,{passive:!0}),document.addEventListener("keydown",tecla),()=>{document.removeEventListener("mousedown",fuera),document.removeEventListener("touchstart",fuera),document.removeEventListener("keydown",tecla)}},[abierto,cerrar,forma.sabana]),(0,import_react5.useEffect)(()=>{if(!abierto||!forma.sabana||typeof document>"u")return;let antes=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=antes}},[abierto,forma.sabana]),(0,import_react5.useLayoutEffect)(()=>{if(!abierto)return;let pan=panelRef.current;if(!pan)return;let diana=pan.querySelector(`[data-iso="${foco}"]`)||pan.querySelector(".agc-dia");if(diana)try{diana.focus({preventScroll:!0})}catch{}if(!forma.sabana)try{pan.scrollIntoView({block:"nearest",behavior:quieto?"auto":"smooth"})}catch{}},[abierto,forma.meses]);let mover=e=>{let paso={ArrowLeft:-1,ArrowRight:1,ArrowUp:-7,ArrowDown:7};if(e.key==="Enter"||e.key===" ")return;if(e.key==="PageUp"||e.key==="PageDown"){e.preventDefault();let n=e.key==="PageUp"?-1:1,nuevoMes=sumarMeses(mesBase,n);if(n<0&&nuevoMes{let pan=panelRef.current,diana=pan&&pan.querySelector(`[data-iso="${cand}"]`);if(diana)try{diana.focus({preventScroll:!0})}catch{}});return}let d=paso[e.key];if(!d)return;e.preventDefault();let siguiente=sumarDias(foco||suelo,d);if(!siguiente||siguiente0&&forma.meses===2?sumarMeses(mesDeFoco,-1):mesDeFoco),requestAnimationFrame(()=>{let pan=panelRef.current,diana=pan&&pan.querySelector(`[data-iso="${siguiente}"]`);if(diana)try{diana.focus({preventScroll:!0})}catch{}})},puedeAtras=sumarMeses(mesBase,-1)>=suelo.slice(0,7),nNoches=entrada?nochesSeguras:0,cabecera=__gh("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:10,marginBottom:10},"data-gufi-src":"components/Calendario.tsx:559"},__gh("button",{type:"button",onClick:()=>{puedeAtras&&setMesBase(sumarMeses(mesBase,-1))},"aria-disabled":puedeAtras?void 0:!0,"aria-label":t("Mes anterior","Previous month"),style:{width:40,height:40,display:"grid",placeItems:"center",padding:0,background:"transparent",border:`1px solid ${T.lineaSuave}`,borderRadius:T.r2,color:puedeAtras?T.pizarra:T.grisTenue,cursor:puedeAtras?"pointer":"default"},"data-gufi-src":"components/Calendario.tsx:560"},__gh(import_lucide_react2.ChevronLeft,{size:17,strokeWidth:1.7})),__gh("div",{style:{fontFamily:T.mono,fontSize:11,letterSpacing:"0.18em",textTransform:"uppercase",color:T.azulHondo,textAlign:"center",minWidth:0},"data-gufi-src":"components/Calendario.tsx:574"},fase==="entrada"||!entrada?t("Cu\xE1ndo llegas","When you arrive"):t("Cu\xE1ndo te vas","When you leave")),__gh("button",{type:"button",onClick:()=>setMesBase(sumarMeses(mesBase,1)),"aria-label":t("Mes siguiente","Next month"),style:{width:40,height:40,display:"grid",placeItems:"center",padding:0,background:"transparent",border:`1px solid ${T.lineaSuave}`,borderRadius:T.r2,color:T.pizarra,cursor:"pointer"},"data-gufi-src":"components/Calendario.tsx:581"},__gh(import_lucide_react2.ChevronRight,{size:17,strokeWidth:1.7}))),pie=__gh("div",{style:{marginTop:14,paddingTop:12,borderTop:`1px solid ${T.lineaSuave}`,display:"flex",flexWrap:"wrap",alignItems:"center",gap:"8px 14px",paddingBottom:forma.sabana?"calc(10px + env(safe-area-inset-bottom, 0px))":0},"data-gufi-src":"components/Calendario.tsx:597"},__gh("div",{"aria-live":"polite",style:{flex:"1 1 160px",minWidth:0,fontFamily:T.mono,fontSize:12.5,letterSpacing:"0.02em",color:T.grisTexto},"data-gufi-src":"components/Calendario.tsx:602"},entrada?`${fechaCorta(entrada,lang2)} \u2192 ${fechaCorta(salida,lang2)} \xB7 ${nNoches} ${nNoches===1?t("noche","night"):t("noches","nights")}`:t("Elige el d\xEDa de llegada","Pick your arrival day")),__gh("div",{style:{display:"flex",alignItems:"center",gap:6,flex:"0 0 auto"},"data-gufi-src":"components/Calendario.tsx:611"},entrada?__gh("button",{type:"button",onClick:()=>{onCambio("",nochesSeguras),setFase("entrada"),setEncima("")},style:{minHeight:40,padding:"0 10px",background:"transparent",border:`1px solid ${T.lineaSuave}`,borderRadius:T.r2,cursor:"pointer",fontFamily:T.texto,fontSize:13,color:T.grisTexto},"data-gufi-src":"components/Calendario.tsx:613"},t("Quitar","Clear")):null,__gh(Boton,{variante:"solido",onClick:cerrar,style:{minHeight:40,padding:"0 16px",fontSize:13.5}},t("Listo","Done"))),notaTope?__gh("p",{style:{flex:"1 1 100%",margin:0,fontFamily:T.texto,fontSize:11.5,lineHeight:1.5,color:T.grisTenue},"data-gufi-src":"components/Calendario.tsx:631"},notaTope):null,__gh("p",{style:{flex:"1 1 100%",margin:0,display:"flex",alignItems:"center",gap:7,fontFamily:T.texto,fontSize:11.5,lineHeight:1.5,color:T.grisTenue},"data-gufi-src":"components/Calendario.tsx:642"},__gh("span",{"aria-hidden":"true",style:{position:"relative",fontFamily:T.mono,fontSize:12,color:T.grisTenue},"data-gufi-src":"components/Calendario.tsx:646"},__gh("span",{"data-gufi-src":"components/Calendario.tsx:647"},"24"),__gh("span",{style:{position:"absolute",left:-1,right:-1,top:"50%",height:1,background:T.grisTenue},"data-gufi-src":"components/Calendario.tsx:648"})),t("noche ya reservada","night already booked"))),rejillas=__gh("div",{className:"agc-meses",onKeyDown:mover,onMouseLeave:()=>setEncima(""),"data-gufi-src":"components/Calendario.tsx:656"},meses.map(m=>__gh(Mes,{key:m,mes:m,celdas:celdasDe(m),foco,onElegir:elegir,onEncima:setEncima,onFoco:setFoco,lang:lang2}))),idPanel=`${id}-panel`;return __gh("div",{className:"agc-env",id,ref:envRef,"data-abierto":abierto?"1":"0",style,"data-gufi-src":"components/Calendario.tsx:683"},__gh("style",{dangerouslySetInnerHTML:{__html:HOJA},"data-gufi-src":"components/Calendario.tsx:684"}),__gh("div",{className:"agc-disp",style:compacto?{gridTemplateColumns:"minmax(0, 1fr)"}:void 0,"data-gufi-src":"components/Calendario.tsx:686"},["entrada","salida"].map((cual,i)=>{let valor=cual==="entrada"?entrada:salida,rotulo=cual==="entrada"?t("Entrada","Check-in"):t("Salida","Check-out");return __gh("button",{key:cual,type:"button",className:"agc-mitad","data-on":abierto&&fase===cual?"1":"0","aria-haspopup":"dialog","aria-expanded":abierto&&fase===cual,"aria-controls":abierto?idPanel:void 0,"aria-label":valor?`${rotulo}: ${fechaHablada(valor,lang2)}`:`${rotulo}: ${t("elegir d\xEDa","pick a day")}`,onClick:()=>abierto&&fase===cual?cerrar():abrir(cual),style:compacto&&i===1?{borderLeft:"none",borderTop:`1px solid ${T.linea}`}:void 0,"data-gufi-src":"components/Calendario.tsx:691"},__gh("span",{className:"agc-rot","aria-hidden":"true","data-gufi-src":"components/Calendario.tsx:708"},rotulo),__gh("span",{className:"agc-val","aria-hidden":"true","data-vacio":valor?"0":"1","data-gufi-src":"components/Calendario.tsx:709"},valor?fechaCorta(valor,lang2):t("Elegir d\xEDa","Pick a day")))})),__gh(import_framer_motion.AnimatePresence,null,abierto?forma.sabana?__gh(import_framer_motion.motion.div,{key:"sabana",initial:quieto?{opacity:0}:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:quieto?0:DUR.rapida,ease:T.ease},style:{position:"fixed",inset:0,zIndex:Z.dialogo,display:"flex",flexDirection:"column",justifyContent:"flex-end"}},__gh("div",{"aria-hidden":"true",onClick:cerrar,style:{position:"absolute",inset:0,background:"rgba(34,39,44,0.5)",backdropFilter:"blur(3px)",WebkitBackdropFilter:"blur(3px)"},"data-gufi-src":"components/Calendario.tsx:728"}),__gh(import_framer_motion.motion.div,{ref:panelRef,id:idPanel,role:"dialog","aria-modal":"true","aria-label":t("Elige tus fechas","Pick your dates"),className:"agc-panel",initial:quieto?{y:0}:{y:24},animate:{y:0},exit:quieto?{y:0}:{y:24},transition:{duration:quieto?0:DUR.media,ease:T.ease},style:{position:"relative",width:"100%",maxHeight:"88dvh",overflowY:"auto",borderTopLeftRadius:T.r3,borderTopRightRadius:T.r3,background:T.papel}},__gh("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:10,marginBottom:4},"data-gufi-src":"components/Calendario.tsx:749"},__gh("span",{style:{display:"inline-flex",alignItems:"center",gap:8,fontFamily:T.texto,fontSize:14.5,fontWeight:600,color:T.pizarra},"data-gufi-src":"components/Calendario.tsx:750"},__gh(import_lucide_react2.CalendarDays,{size:16,strokeWidth:1.7,color:T.azulHondo,"aria-hidden":"true"}),t("Tus fechas","Your dates")),__gh("button",{type:"button",onClick:cerrar,"aria-label":t("Cerrar el calendario","Close the calendar"),style:{width:44,height:44,display:"grid",placeItems:"center",padding:0,background:"transparent",border:`1px solid ${T.lineaSuave}`,borderRadius:T.r2,color:T.pizarra,cursor:"pointer"},"data-gufi-src":"components/Calendario.tsx:754"},__gh(import_lucide_react2.X,{size:18,strokeWidth:1.7}))),cabecera,rejillas,pie)):__gh(import_framer_motion.motion.div,{key:"panel",ref:panelRef,id:idPanel,role:"dialog","aria-label":t("Elige tus fechas","Pick your dates"),className:"agc-panel",initial:quieto?{opacity:1}:{opacity:0,y:-8},animate:{opacity:1,y:0},exit:quieto?{opacity:0}:{opacity:0,y:-8},transition:{duration:quieto?0:DUR.rapida,ease:T.ease},style:{position:"absolute",top:"calc(100% + 8px)",zIndex:Z.panel,left:forma.lado==="izq"?0:void 0,right:forma.lado==="der"?0:void 0,width:forma.meses===2?ANCHO_PANEL_2:ANCHO_PANEL_1}},cabecera,rejillas,pie):null))}var servir=clave=>"https://gufi.dev/api/files/serve?path="+clave.replace(/\//g,"%2F"),FACHADA=servir("company_755/4840baa7-4877-468f-b2c5-c2521eb92e52_edificio-fachada-solo.webp"),FACHADA_SM=servir("company_755/58cc8b6f-811e-4d00-8aaa-091be708917a_edificio-fachada-solo-sm.webp"),CSS2=` .agh-sec{position:relative;padding:0 0 clamp(40px,6vw,64px);} .agh{display:grid;grid-template-columns:minmax(0,1fr);gap:0;} /* EL ORDEN EN M\xD3VIL: la fachada primero, a sangre de borde a borde. El margen lateral de la p\xE1gina no existe aqu\xED a prop\xF3sito \u2014 es la respuesta directa a \xABque aproveche el margen y no sea todo una columna\xBB. */ .agh-foto{order:-1;position:relative;} .agh-txt{order:0;padding:0 20px;min-width:0;} /* \u{1F534} EL MARCO LLEVA SU PROPIA PROPORCI\xD3N, Y ES LOAD-BEARING. Todas las capas de la fachada van en posici\xF3n absoluta (es lo que permite que el paralaje del scroll y el del puntero vayan en capas distintas y se sumen, porque la y es una sola propiedad), as\xED que NINGUNA aporta altura. Sin una proporci\xF3n aqu\xED, el marco mide CERO: medido a 390 px, la portada entera se qued\xF3 sin fachada y la ficha de datos, con su margen negativo de \u221234, se sub\xEDa encima de la barra. En escritorio no se ve\xEDa porque all\xED manda el min-height. Tres tramos, los mismos que explica el componente: retrato en el tel\xE9fono, banda apaisada cuando la foto va a todo el ancho de la p\xE1gina, y altura libre cuando ya es una columna de dos. */ .agh-marco{position:relative;overflow:hidden;background:${T.nieblaSuave};aspect-ratio:5 / 4;} @media (min-width:640px){ .agh-marco{aspect-ratio:16 / 9;} } /* La ficha de datos cruza el borde de la foto y se mete en la cal. */ .agh-ficha{position:relative;z-index:2;margin:-34px 20px 0;} .agh-baja{display:none;} @media (min-width:640px){ .agh-txt{padding:0 clamp(20px,4vw,40px);} .agh-ficha{margin:-40px clamp(20px,4vw,40px) 0;} } /* \u{1F534} EL CAMBIO A DOS COLUMNAS ES A 1.120, NO A 960, Y LA FOTO SE LLEVA EL 38 % Y NO EL 42. Los dos n\xFAmeros salen de la misma medida: el titular de portada son dos l\xEDneas escritas a mano y la primera, \xABNueve apartamentos\xBB, ocupa 8,5 veces el cuerpo. Con el cambio a 960 y la foto al 42 %, la columna de texto ca\xEDa a 508 px y el titular ten\xEDa que bajar de 70 a 50 px justo al cruzar el cambio: un escal\xF3n del 30 % hacia ABAJO al ensanchar la ventana, que se lee como que algo se ha roto. A 1.120 y con el 38 %, la columna mide 641 px y el titular entra a 70 px, que es exactamente lo que vale el tramo del tel\xE9fono en su tope. O sea: el titular cruza el cambio de maqueta sin moverse. Medido en once anchos, no estimado. */ @media (min-width:1120px){ /* La columna de texto cae a plomo con el resto de la p\xE1gina: su relleno izquierdo es el mismo aire que tiene la caja de ${ANCHO}px centrada. La columna de la foto se come lo que queda hasta el borde de la pantalla. */ /* \u{1F534} EL width:100% DE LA REJILLA. La secci\xF3n es un flex en esta maqueta (para centrar la portada en la altura de la pantalla), y un hijo de un flex vale por defecto flex:0 1 auto: se encoge a su CONTENIDO en vez de ocupar la l\xEDnea. Sin esto, la rejilla med\xEDa 1.317 de 1.440 y la fachada se quedaba a 123 px del borde derecho \u2014 justo lo contrario de que sangre. Se ve en una captura y NO se ve leyendo el CSS, porque el grid-template-columns est\xE1 perfecto: lo que falla es el ancho de la caja que lo contiene. */ .agh{grid-template-columns:minmax(0,1fr) minmax(0,38vw);align-items:center;width:100%;} .agh-sec{padding:0 0 clamp(56px,7vw,96px);min-height:min(100svh,920px);display:flex;align-items:center;} .agh-txt{order:0;padding:clamp(88px,10vh,120px) clamp(28px,3vw,52px) clamp(40px,5vh,64px) max(20px, calc((100vw - ${ANCHO}px) / 2));} .agh-foto{order:0;} .agh-marco{aspect-ratio:auto;min-height:min(84svh,760px);} /* En escritorio la ficha flota DENTRO de la foto, pisando su esquina de abajo a la izquierda y sali\xE9ndose 28 px hacia la columna del texto. */ .agh-ficha{position:absolute;left:-28px;bottom:clamp(24px,4vh,46px);margin:0;max-width:300px;z-index:3;} .agh-baja{display:inline-flex;} } @media (min-width:1600px){ .agh{grid-template-columns:minmax(0,1fr) minmax(0,40vw);} } `;function useAncho(consulta){let suscribir=(0,import_react6.useCallback)(avisar=>{if(typeof window>"u"||!window.matchMedia)return()=>{};let m=window.matchMedia(consulta);return typeof m.addEventListener=="function"?(m.addEventListener("change",avisar),()=>m.removeEventListener("change",avisar)):(m.addListener(avisar),()=>m.removeListener(avisar))},[consulta]),leer=(0,import_react6.useCallback)(()=>typeof window<"u"&&window.matchMedia?window.matchMedia(consulta).matches:!1,[consulta]);return(0,import_react6.useSyncExternalStore)(suscribir,leer,()=>!1)}function EntradaIzquierda({children,retardo,y=16,espera}){return(0,import_framer_motion.useReducedMotion)()?__gh(__gf,null,children):__gh(import_framer_motion.motion.div,{"data-ag-anim":"hero-entrada",initial:{opacity:0,y},animate:espera?{opacity:0,y}:{opacity:1,y:0},transition:{duration:DUR.lenta,ease:T.ease,delay:espera?0:retardo}},children)}function RevelaFachada({children,espera}){return(0,import_framer_motion.useReducedMotion)()?__gh(__gf,null,children):__gh(import_framer_motion.motion.div,{"data-ag-anim":"fachada",style:{willChange:"clip-path, transform",height:"100%"},initial:{clipPath:"inset(16% 0% 0% 0%)",scale:1.05,opacity:0},animate:espera?{clipPath:"inset(16% 0% 0% 0%)",scale:1.05,opacity:0}:{clipPath:"inset(0% 0% 0% 0%)",scale:1,opacity:1},transition:{duration:1.25,ease:T.ease,delay:espera?0:.1}},children)}function FichaFlotante({libres,total,conFechas,entrada,salida,lang:lang2,t}){let hayHueco=libres>0,cifra=conFechas?`${libres}/${total}`:String(total||CASA.unidades);return __gh("div",{style:{background:T.papel,border:`1px solid ${T.linea}`,borderRadius:T.r3,padding:"14px 16px",boxShadow:T.sombra,display:"flex",alignItems:"center",gap:14,minWidth:0},"data-gufi-src":"components/Hero.tsx:239"},__gh("div",{style:{fontFamily:T.mono,fontSize:"clamp(26px, 4.4vw, 34px)",lineHeight:1,letterSpacing:"-0.03em",color:conFechas&&!hayHueco?T.grisTenue:T.azulHondo,flex:"0 0 auto"},"data-gufi-src":"components/Hero.tsx:246"},cifra),__gh("div",{style:{minWidth:0,display:"flex",flexDirection:"column",gap:3},"data-gufi-src":"components/Hero.tsx:253"},__gh("div",{style:{display:"flex",alignItems:"center",gap:7,fontFamily:T.texto,fontSize:12.5,fontWeight:600,lineHeight:1.3,color:T.pizarra},"data-gufi-src":"components/Hero.tsx:254"},conFechas&&hayHueco?__gh("span",{"aria-hidden":"true",style:{position:"relative",width:6,height:6,borderRadius:999,background:T.ok,flex:"0 0 auto"},"data-gufi-src":"components/Hero.tsx:259"},__gh("span",{className:"ag-late",style:{position:"absolute",inset:0,borderRadius:999,background:T.ok},"data-gufi-src":"components/Hero.tsx:263"})):null,__gh("span",{style:{minWidth:0},"data-gufi-src":"components/Hero.tsx:269"},conFechas?t("libres estas noches","free these nights"):t("apartamentos, cinco alturas","apartments, five levels"))),__gh("div",{style:{fontFamily:T.mono,fontSize:11.5,letterSpacing:"0.04em",color:T.grisTenue,whiteSpace:"nowrap"},"data-gufi-src":"components/Hero.tsx:275"},conFechas?`${fechaCorta(entrada,lang2)} \u2192 ${fechaCorta(salida,lang2)}`:t("reformado en 2026","renovated in 2026"))))}function Hero({estancia,setEstancia,minFecha,onBuscar,apartamentos,ocupacion,nochesElegidas,nochesLlenas}){let{t,L,lang:lang2}=useLang(),alto=useAncho("(min-width: 1120px)"),espera=useApertura()==="cortina",refPortada=(0,import_react6.useRef)(null),avance=useAvanceSuave(refPortada,"sale","arrastra"),yFachada=(0,import_framer_motion.useTransform)(avance,[0,1],["0%","7%"]),yTexto=(0,import_framer_motion.useTransform)(avance,[0,1],["0%","-6%"]),yFicha=(0,import_framer_motion.useTransform)(avance,[0,1],["0%","-14%"]),zoomFachada=(0,import_framer_motion.useTransform)(avance,[0,1],[1,1.06]),{px,py}=usePuntero(),aireX=(0,import_framer_motion.useTransform)(px,[-.5,.5],[7,-7]),fachadaX=(0,import_framer_motion.useTransform)(px,[-.5,.5],[16,-16]),fachadaY=(0,import_framer_motion.useTransform)(py,[-.5,.5],[10,-10]),fichaX=(0,import_framer_motion.useTransform)(px,[-.5,.5],[-26,26]),fichaY=(0,import_framer_motion.useTransform)(py,[-.5,.5],[-12,12]),etapa=LUGAR.etapas[0],km2=lang2==="en"?String(etapa.km):String(etapa.km).replace(".",","),entrada=String(estancia?.entrada||""),noches=Math.max(1,Math.round(Number(estancia?.noches)||2)),salida=salidaDe(entrada,noches),lista=Array.isArray(apartamentos)?apartamentos:[],noche=Array.isArray(nochesElegidas)?nochesElegidas:[],conFechas=noche.length>0&&lista.length>0,libres=(0,import_react6.useMemo)(()=>conFechas?lista.filter(a=>estaLibre(ocupacion||{},a.id,noche)).length:lista.length,[conFechas,lista,ocupacion,noche]),ponEstancia=(nuevaEntrada,nuevasNoches)=>{setEstancia(()=>({entrada:nuevaEntrada,noches:Math.max(1,nuevasNoches)}))};return __gh("section",{id:"top",className:"agh-sec",ref:refPortada,"data-gufi-src":"components/Hero.tsx:371"},__gh("style",{dangerouslySetInnerHTML:{__html:CSS2},"data-gufi-src":"components/Hero.tsx:372"}),__gh("div",{className:"agh","data-gufi-src":"components/Hero.tsx:374"},__gh(import_framer_motion.motion.div,{className:"agh-txt",style:{y:yTexto}},__gh(EntradaIzquierda,{retardo:.05,y:10,espera},__gh(Antetitulo,null,__gh("span",{style:{whiteSpace:"nowrap"},"data-gufi-src":"components/Hero.tsx:378"},etapa.desde," \u2192 ",etapa.hasta)," \xB7 ",__gh("span",{style:{whiteSpace:"nowrap"},"data-gufi-src":"components/Hero.tsx:380"},km2," km"))),__gh(RevelaLineas,{as:"h1",className:"ag-h1",arranca:!0,espera,retardo:.12,texto:L(COPY.heroTitulo),style:{fontFamily:T.display,fontWeight:300,color:T.pizarra,margin:"18px 0 0"}}),__gh(EntradaIzquierda,{retardo:.42,espera},__gh("p",{style:{fontFamily:T.texto,fontSize:"clamp(15.5px, 1.5vw, 17.5px)",lineHeight:1.6,color:T.grisTexto,maxWidth:"44ch",margin:"22px 0 0"},"data-gufi-src":"components/Hero.tsx:407"},L(COPY.heroEntradilla))),__gh(EntradaIzquierda,{retardo:.54,espera},__gh("div",{style:{marginTop:"clamp(26px, 3.4vw, 34px)",background:T.papel,border:`1px solid ${T.linea}`,borderRadius:T.r3,padding:14,boxShadow:T.sombra,maxWidth:520,display:"grid",gridTemplateColumns:"minmax(0, 1fr)",gap:12},"data-gufi-src":"components/Hero.tsx:422"},__gh(CampoEstancia,{id:"ag-hero-fechas",entrada,noches,onCambio:ponEstancia,minFecha,maxNoches:MAX_NOCHES,ocupadas:nochesLlenas,notaTope:L(ESTANCIA_LARGA)}),__gh(Boton,{variante:"solido",ancho:!0,onClick:onBuscar},entrada?t("Ver qu\xE9 queda libre","See what is free"):t("Ver los nueve apartamentos","See all nine apartments")))),__gh(EntradaIzquierda,{retardo:.68,espera},__gh("button",{type:"button",className:"agh-baja",onClick:onBuscar,style:{marginTop:"clamp(26px, 4vh, 44px)",alignItems:"center",gap:10,background:"transparent",border:0,padding:"10px 4px",marginLeft:-4,minHeight:44,cursor:"pointer",fontFamily:T.mono,fontSize:11,letterSpacing:"0.2em",textTransform:"uppercase",color:T.grisTexto},"data-gufi-src":"components/Hero.tsx:451"},__gh("span",{className:"ag-flota","aria-hidden":"true",style:{display:"inline-flex"},"data-gufi-src":"components/Hero.tsx:463"},__gh(import_lucide_react3.ArrowDown,{size:14,strokeWidth:1.8,color:T.azulHondo})),t("El edificio","The building")))),__gh("div",{className:"agh-foto","data-gufi-src":"components/Hero.tsx:481"},__gh("div",{className:"agh-marco","data-gufi-src":"components/Hero.tsx:482"},__gh(import_framer_motion.motion.div,{"aria-hidden":"true",style:{position:"absolute",inset:"-6%",x:aireX,background:`radial-gradient(120% 90% at 70% 30%, ${T.niebla} 0%, ${T.nieblaSuave} 55%, ${T.cal} 100%)`}}),__gh(import_framer_motion.motion.div,{style:{position:"absolute",inset:0,y:yFachada,scale:zoomFachada,willChange:"transform"}},__gh(import_framer_motion.motion.div,{style:{position:"absolute",inset:"-4%",x:fachadaX,y:fachadaY}},__gh(RevelaFachada,{espera},__gh(Foto,{src:FACHADA,srcSm:FACHADA_SM,sizes:"(min-width: 1120px) 40vw, 100vw",prioridad:!0,ratio:"auto",style:{width:"100%",height:"100%",background:"transparent"},alt:t("Fachada de \xC1gora Palas, en la R\xFAa Agro do Rolo de Palas de Rei","The \xC1gora Palas building on R\xFAa Agro do Rolo, Palas de Rei")})))),__gh("span",{"aria-hidden":"true",style:{position:"absolute",inset:0,pointerEvents:"none",background:alto?`linear-gradient(90deg, ${T.cal} 0%, rgba(247,247,245,0.55) 7%, rgba(247,247,245,0) 20%), linear-gradient(0deg, ${T.cal} 0%, rgba(247,247,245,0) 16%)`:`linear-gradient(0deg, ${T.cal} 0%, rgba(247,247,245,0) 22%)`},"data-gufi-src":"components/Hero.tsx:519"})),__gh(import_framer_motion.motion.div,{className:"agh-ficha",style:{y:yFicha}},__gh(import_framer_motion.motion.div,{style:{x:fichaX,y:fichaY}},__gh(EntradaIzquierda,{retardo:.78,y:14,espera},__gh(FichaFlotante,{libres,total:lista.length||CASA.unidades,conFechas,entrada,salida,lang:lang2,t})))))))}var import_react7=require("react"),import_lucide_react4=require("lucide-react");var ANCHO_ETIQUETA="16%";var PROPORCION_DIBUJO=1.3,PESO_REMATE=.75,ANCHO_ALZADO=582,TAM_CODIGO="clamp(21px, 4.6vw, 30px)",TAM_DATO="clamp(11px, 1.6vw, 12.5px)";function ratioFila(total,hayRemate,esRemate){let unidades=hayRemate?total-1+PESO_REMATE:total,alturaUnidad=PROPORCION_DIBUJO/Math.max(1,unidades);return 1/(esRemate?alturaUnidad*PESO_REMATE:alturaUnidad)}var SUELO_CELDA=64,DIANA_TEXTO={paddingTop:15,paddingBottom:15,paddingLeft:10,paddingRight:10,marginLeft:-10},PISTA=` .aged-pista{position:relative;} .aged-escena{position:relative;} .aged-rel{display:grid;grid-template-columns:minmax(0,1fr);gap:clamp(26px,4vw,44px);align-items:center;} .aged-voz{display:none;} @media (min-width:992px){ .aged-pista{--sostiene:820px;height:calc(100svh + var(--sostiene));} /* 76 px = la barra. La escena queda bajo ella, no debajo. */ .aged-escena{position:sticky;top:76px;min-height:calc(100svh - 96px);display:flex;align-items:center;} .aged-rel{grid-template-columns:minmax(0,1fr) minmax(0,${ANCHO_ALZADO}px);width:100%; gap:clamp(36px,5vw,72px);} .aged-voz{display:block;} } @media (prefers-reduced-motion: reduce){ /* P\xE1gina entera y quieta: ni pista alta, ni pegado, ni acto. */ .aged-pista{height:auto !important;} .aged-escena{position:static !important;min-height:0 !important;} } `,siglaDe=nivel=>nivel===4?"\xC1T":nivel===0?"B":String(nivel),plazasTxt=(n,lang2)=>lang2==="en"?`${n} ${n===1?"guest":"guests"}`:`${n} ${n===1?"plaza":"plazas"}`,nochesTxt=(n,lang2)=>lang2==="en"?`${n} ${n===1?"night":"nights"}`:`${n} ${n===1?"noche":"noches"}`,conAno=(iso,lang2,mostrar)=>{let base=fechaLarga(iso,lang2);return!mostrar||!base?base:lang2==="en"?`${base} ${iso.slice(0,4)}`:`${base} de ${iso.slice(0,4)}`};function rangoTxt(entrada,salida,lang2,anoHoy){if(!entrada||!salida)return"";let anoE=entrada.slice(0,4),anoS=salida.slice(0,4),fuera=anoE!==anoHoy||anoS!==anoHoy;if(entrada.slice(0,7)===salida.slice(0,7)){let dia=String(Number(entrada.slice(8,10))),fin2=conAno(salida,lang2,fuera);return lang2==="en"?`${dia}\u2013${fin2}`:`del ${dia} al ${fin2}`}let ini=conAno(entrada,lang2,fuera&&anoE!==anoS),fin=conAno(salida,lang2,fuera);return lang2==="en"?`${ini} \u2013 ${fin}`:`del ${ini} al ${fin}`}function useAncho2(min){let[ok,setOk]=(0,import_react7.useState)(!1);return(0,import_react7.useEffect)(()=>{if(typeof window>"u"||typeof window.matchMedia!="function")return;let mq=window.matchMedia(`(min-width: ${min}px)`),aplicar=()=>setOk(!!mq.matches);if(aplicar(),typeof mq.addEventListener=="function")return mq.addEventListener("change",aplicar),()=>mq.removeEventListener("change",aplicar);if(typeof mq.addListener=="function")return mq.addListener(aplicar),()=>mq.removeListener(aplicar)},[min]),ok}function useVistoUnaVez(){let ref=(0,import_react7.useRef)(null),[visto,setVisto]=(0,import_react7.useState)(!1);return(0,import_react7.useEffect)(()=>{let el=ref.current;if(!el||typeof IntersectionObserver>"u"){setVisto(!0);return}let vivo=!0,io=new IntersectionObserver(entradas=>{entradas.some(e=>e.isIntersecting)&&(setVisto(!0),io.disconnect())},{rootMargin:"0px 0px -60px 0px"});io.observe(el);let rescate=window.setTimeout(()=>{vivo&&setVisto(!0)},5e3);return()=>{vivo=!1,window.clearTimeout(rescate),io.disconnect()}},[]),{ref,visto}}function useSinPuntero(){let[sin,setSin]=(0,import_react7.useState)(!1);return(0,import_react7.useEffect)(()=>{if(typeof window>"u"||typeof window.matchMedia!="function")return;let mq=window.matchMedia("(hover: none)"),aplicar=()=>setSin(!!mq.matches);if(aplicar(),typeof mq.addEventListener=="function")return mq.addEventListener("change",aplicar),()=>mq.removeEventListener("change",aplicar);if(typeof mq.addListener=="function")return mq.addListener(aplicar),()=>mq.removeListener(aplicar)},[]),sin}function useCruzaElCentro(activo){let ref=(0,import_react7.useRef)(null),[dentro,setDentro]=(0,import_react7.useState)(!1);return(0,import_react7.useEffect)(()=>{let el=ref.current;if(!activo||!el||typeof IntersectionObserver>"u"){setDentro(!1);return}let io=new IntersectionObserver(entradas=>setDentro(entradas.some(e=>e.isIntersecting)),{rootMargin:"-42% 0px -42% 0px",threshold:0});return io.observe(el),()=>io.disconnect()},[activo]),{ref,dentro}}var ACTO_SUELO=[.02,.14],ACTO_PRIMER_NIVEL=.12,ACTO_PASO=.085,ACTO_DURA=.17,ACTO_CORNISA_DESDE=.6,ventanaNivel=k=>[ACTO_PRIMER_NIVEL+k*ACTO_PASO,ACTO_PRIMER_NIVEL+k*ACTO_PASO+ACTO_DURA];function Celda({a,ocupado,conFechas,unaSola,primera,onAbrir,lang:lang2,L,t,resaltado,sinPuntero}){let[vivo,setVivo]=(0,import_react7.useState)(!1),foto=a.fotosSm&&a.fotosSm[0]||a.fotos&&a.fotos[0]||"",planta=L(a.plantaEtiqueta),encendida=vivo||!!resaltado,lineas=(ocupado?[t("Ocupado","Booked")]:[a.m2>0?`${a.m2} m\xB2`:"",a.capacidad>0?plazasTxt(a.capacidad,lang2):""]).filter(Boolean),aria=[a.codigo,planta,a.m2>0?`${a.m2} m\xB2`:"",a.capacidad>0?plazasTxt(a.capacidad,lang2):"",ocupado?t("ocupado estas fechas","booked for these dates"):conFechas?t("libre","available"):""].filter(Boolean).join(", "),caja={position:"relative",flex:"1 1 0",minWidth:0,overflow:"hidden",display:"flex",flexDirection:unaSola?"row":"column",alignItems:unaSola?"center":"flex-start",justifyContent:"space-between",gap:unaSola?12:6,padding:unaSola?"0 clamp(10px, 1.7vw, 22px)":"clamp(8px, 1.5vw, 17px) clamp(10px, 1.7vw, 22px)",margin:0,width:"100%",textAlign:"left",fontFamily:T.texto,border:"none",borderLeft:primera?"none":`1px solid ${T.linea}`,borderRadius:0,WebkitAppearance:"none",appearance:"none",background:ocupado?T.cal:T.papel,cursor:ocupado?"default":"pointer",transition:"background 200ms ease"},cuerpo=__gh(__gf,null,!ocupado&&foto?__gh(Foto,{src:foto,alt:"",ratio:"auto",style:{position:"absolute",inset:0,background:"transparent",opacity:encendida?.36:sinPuntero?.24:.09,filter:encendida?"grayscale(0)":sinPuntero?"grayscale(0.25)":"grayscale(0.6)",transform:encendida?"scale(1.05)":"scale(1)",transition:"opacity 420ms ease, filter 420ms ease, transform 680ms cubic-bezier(.22,.61,.36,1)",pointerEvents:"none"}}):null,ocupado?__gh("span",{"aria-hidden":"true",style:{position:"absolute",inset:0,pointerEvents:"none",backgroundImage:`repeating-linear-gradient(135deg, ${T.lineaSuave} 0 1px, transparent 1px 7px)`},"data-gufi-src":"components/Edificio.tsx:430"}):null,__gh("span",{style:{position:"relative",fontFamily:T.mono,fontSize:TAM_CODIGO,lineHeight:1,letterSpacing:"-0.02em",whiteSpace:"nowrap",color:ocupado?T.grisTenue:vivo?T.azulHondo:T.pizarra,transition:"color 200ms ease"},"data-gufi-src":"components/Edificio.tsx:438"},a.codigo),__gh("span",{style:{position:"relative",display:"flex",flexDirection:"column",gap:1,maxWidth:"100%",minWidth:0,alignItems:unaSola?"flex-end":"flex-start"},"data-gufi-src":"components/Edificio.tsx:446"},lineas.map(l=>__gh("span",{key:l,style:{fontFamily:T.mono,fontSize:TAM_DATO,lineHeight:1.3,letterSpacing:"0.01em",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",color:ocupado?T.grisTenue:T.grisTexto},"data-gufi-src":"components/Edificio.tsx:451"},l))));return ocupado?__gh("div",{"aria-disabled":"true","aria-label":aria,style:caja,"data-gufi-src":"components/Edificio.tsx:464"},cuerpo):__gh("button",{type:"button",onClick:()=>onAbrir(a),onMouseEnter:()=>setVivo(!0),onMouseLeave:()=>setVivo(!1),onFocus:()=>setVivo(!0),onBlur:()=>setVivo(!1),"aria-label":aria,style:caja,"data-gufi-src":"components/Edificio.tsx:468"},cuerpo)}function NivelScrub({avance,k,children,style}){let[a,b]=ventanaNivel(k),opacidad=(0,import_framer_motion.useTransform)(avance,[a,a+(b-a)*.45],[0,1]),y=(0,import_framer_motion.useTransform)(avance,[a,b],[30,0]),recorte=(0,import_framer_motion.useTransform)(avance,[a,b],["inset(0% 0% 100% 0%)","inset(0% 0% 0% 0%)"]);return __gh(import_framer_motion.motion.div,{style:{...style,opacity:opacidad,y,clipPath:recorte,willChange:"transform, clip-path"}},children)}function NivelObservado({visto,retardo,quieto,children,style}){return quieto?__gh("div",{style,"data-gufi-src":"components/Edificio.tsx:523"},children):__gh(import_framer_motion.motion.div,{style,initial:{opacity:0,y:26,clipPath:"inset(0% 0% 100% 0%)"},animate:visto?{opacity:1,y:0,clipPath:"inset(0% 0% 0% 0%)"}:{opacity:0,y:26,clipPath:"inset(0% 0% 100% 0%)"},transition:{duration:DUR.lenta,ease:T.ease,delay:retardo}},children)}function FilaNivel({f,i,total,hayRemate,ocupacion,nochesElegidas,onAbrir,mostrarPlanta,lang:lang2,L,t,avanceActo,visto,quieto,sinPuntero,fila,hueco}){let unaSola=f.unidades.length===1,esRemate=i===0&&unaSola,conFechas=nochesElegidas.length>0,{ref,dentro}=useCruzaElCentro(sinPuntero),dibujo=__gh("div",{style:{flex:"1 1 0",minWidth:0,display:"flex",alignItems:"stretch",aspectRatio:String(ratioFila(total,hayRemate,esRemate)),minHeight:SUELO_CELDA,borderLeft:`1px solid ${T.linea}`,borderRight:`1px solid ${T.linea}`,borderTop:i===0?"none":`1px solid ${T.linea}`},"data-gufi-src":"components/Edificio.tsx:576"},f.unidades.map((a,j)=>__gh(Celda,{key:a.id,a,ocupado:conFechas&&!estaLibre(ocupacion,a.id,nochesElegidas),conFechas,unaSola,primera:j===0,onAbrir,lang:lang2,L,t,resaltado:dentro,sinPuntero}))),dentroDeLaFila=__gh(__gf,null,__gh("div",{"aria-hidden":"true",style:{...hueco,display:"flex",flexDirection:"column",alignItems:"flex-end",justifyContent:"center",gap:2,paddingRight:"clamp(8px, 1vw, 14px)"},"data-gufi-src":"components/Edificio.tsx:607"},__gh("span",{style:{fontFamily:T.mono,fontSize:"clamp(11px, 1.3vw, 13px)",lineHeight:1,color:T.azulHondo,letterSpacing:"0.04em"},"data-gufi-src":"components/Edificio.tsx:615"},siglaDe(f.nivel)),mostrarPlanta?__gh("span",{style:{fontFamily:T.texto,fontSize:10.5,lineHeight:1.2,color:T.grisTenue,letterSpacing:"0.03em",whiteSpace:"nowrap",textAlign:"right"},"data-gufi-src":"components/Edificio.tsx:619"},L(f.etiqueta)):null),dibujo),k=total-1-i;return __gh("div",{ref,"data-gufi-src":"components/Edificio.tsx:632"},avanceActo?__gh(NivelScrub,{avance:avanceActo,k,style:fila},dentroDeLaFila):__gh(NivelObservado,{visto,quieto,retardo:(total-i)*.085,style:fila},dentroDeLaFila))}function TrazoScrub({avance,desde,hasta,children,style}){let escala=(0,import_framer_motion.useTransform)(avance,[desde,hasta],[0,1]),opacidad=(0,import_framer_motion.useTransform)(avance,[desde,desde+(hasta-desde)*.3],[0,1]);return __gh(import_framer_motion.motion.span,{style:{...style,scaleX:escala,opacity:opacidad,transformOrigin:"left center"}},children)}function Alzado({niveles,ocupacion,nochesElegidas,onAbrir,mostrarPlanta,lang:lang2,L,t,avanceActo}){let quieto=(0,import_framer_motion.useReducedMotion)(),{ref,visto}=useVistoUnaVez(),sinPuntero=useSinPuntero(),total=niveles.length,PASO=.085,hayRemate=total>0&&niveles[0].unidades.length===1,hueco={flex:`0 0 ${ANCHO_ETIQUETA}`,minWidth:0},fila={display:"flex",alignItems:"stretch"},trazoObservado=retardo=>quieto?{}:{initial:{scaleX:0,opacity:0},animate:visto?{scaleX:1,opacity:1}:{scaleX:0,opacity:0},transition:{duration:DUR.lenta,ease:T.ease,delay:retardo}},estiloCornisa={flex:1,minWidth:0,height:2,background:T.azulHondo,borderRadius:T.r1,transformOrigin:"left center"},estiloSuelo={flex:1,minWidth:0,display:"flex",height:3,transformOrigin:"left center"},sueloDentro=__gh(__gf,null,__gh("span",{style:{width:34,background:T.roble},"data-gufi-src":"components/Edificio.tsx:705"}),__gh("span",{style:{flex:1,background:T.azulHondo},"data-gufi-src":"components/Edificio.tsx:706"}));return __gh("div",{role:"group","aria-label":t("Alzado del edificio: elige un apartamento por su planta","Building elevation: pick an apartment by floor"),style:{display:"flex",flexDirection:"column",maxWidth:ANCHO_ALZADO,margin:"0 auto",width:"100%"},"data-gufi-src":"components/Edificio.tsx:711"},__gh("div",{style:fila,"data-gufi-src":"components/Edificio.tsx:718"},__gh("span",{"aria-hidden":"true",style:hueco,"data-gufi-src":"components/Edificio.tsx:719"}),avanceActo?__gh(TrazoScrub,{avance:avanceActo,desde:ACTO_CORNISA_DESDE,hasta:ACTO_CORNISA_DESDE+.12,style:estiloCornisa}):__gh(import_framer_motion.motion.span,{"aria-hidden":"true",...trazoObservado(quieto?0:(total+1)*PASO),style:estiloCornisa})),niveles.map((f,i)=>__gh(FilaNivel,{key:f.nivel,f,i,total,hayRemate,ocupacion,nochesElegidas,onAbrir,mostrarPlanta,lang:lang2,L,t,avanceActo,visto,quieto,sinPuntero,fila,hueco})),__gh("div",{style:fila,"aria-hidden":"true","data-gufi-src":"components/Edificio.tsx:751"},__gh("span",{style:hueco,"data-gufi-src":"components/Edificio.tsx:752"}),avanceActo?__gh(TrazoScrub,{avance:avanceActo,desde:ACTO_SUELO[0],hasta:ACTO_SUELO[1],style:estiloSuelo},sueloDentro):__gh(import_framer_motion.motion.span,{...trazoObservado(0),style:estiloSuelo},sueloDentro)),__gh("span",{ref,"aria-hidden":"true",style:{display:"block",height:1},"data-gufi-src":"components/Edificio.tsx:767"}))}function Voz({avance,alturas,unidades,L}){return __gh("div",{style:{position:"relative",minHeight:230},"data-gufi-src":"components/Edificio.tsx:784"},ACTO.map((paso,i)=>__gh(TiempoDeVoz,{key:paso.clave,avance,i,total:ACTO.length,titulo:String(L(paso.titulo)).replace("{n}",String(i===0?alturas:unidades)),texto:L(paso.texto)})))}function TiempoDeVoz({avance,i,total,titulo,texto}){let ancho=1/total,entra=i===0?-.01:i*ancho-.04,puesto=i===0?0:i*ancho+.04,sale=(i+1)*ancho+.02,ultimo=i===total-1,opacidad=(0,import_framer_motion.useTransform)(avance,ultimo?[entra,puesto,1]:[entra,puesto,sale,sale+.06],ultimo?[0,1,1]:[0,1,1,0]),y=(0,import_framer_motion.useTransform)(avance,ultimo?[entra,puesto,1]:[entra,puesto,sale,sale+.06],ultimo?[22,0,0]:[22,0,0,-18]);return __gh(import_framer_motion.motion.div,{style:{position:i===0?"relative":"absolute",top:0,left:0,right:0,opacity:opacidad,y}},__gh("div",{style:{fontFamily:T.display,fontWeight:300,color:T.pizarra,fontSize:"clamp(30px, 3.6vw, 48px)",lineHeight:1.06,letterSpacing:"-0.022em"},"data-gufi-src":"components/Edificio.tsx:830"},titulo),__gh("p",{style:{margin:"18px 0 0",maxWidth:"34ch",fontFamily:T.texto,fontSize:"clamp(15px, 1.5vw, 17px)",lineHeight:1.65,color:T.grisTexto},"data-gufi-src":"components/Edificio.tsx:836"},texto))}function ReglaDelActo({avance,total}){return __gh("div",{"aria-hidden":"true",style:{display:"flex",flexDirection:"column-reverse",gap:8,alignItems:"center",position:"absolute",left:0,top:"50%",transform:"translateY(-50%)"},"data-gufi-src":"components/Edificio.tsx:851"},Array.from({length:total},(_,k)=>__gh(MarcaDeRegla,{key:k,avance,k})))}function MarcaDeRegla({avance,k}){let[a,b]=ventanaNivel(k),escala=(0,import_framer_motion.useTransform)(avance,[a,b],[.45,1]),color=(0,import_framer_motion.useTransform)(avance,[a,b],[T.linea,T.azulHondo]);return __gh(import_framer_motion.motion.span,{style:{width:14,height:2,borderRadius:T.r1,background:color,scaleX:escala,transformOrigin:"left center"}})}function Esqueleto({t}){let bloque={flex:"1 1 0",minWidth:0,background:T.nieblaSuave},hueco={flex:`0 0 ${ANCHO_ETIQUETA}`,minWidth:0};return __gh("div",{style:{maxWidth:ANCHO_ALZADO,margin:"0 auto"},"data-gufi-src":"components/Edificio.tsx:884"},__gh("div",{"aria-hidden":"true",style:{display:"flex",flexDirection:"column"},"data-gufi-src":"components/Edificio.tsx:885"},__gh("div",{style:{display:"flex"},"data-gufi-src":"components/Edificio.tsx:886"},__gh("span",{style:hueco,"data-gufi-src":"components/Edificio.tsx:887"}),__gh("span",{style:{flex:1,minWidth:0,height:2,background:T.niebla},"data-gufi-src":"components/Edificio.tsx:888"})),[4,3,2,1,0].map((n,i)=>__gh("div",{key:n,style:{display:"flex",alignItems:"stretch"},"data-gufi-src":"components/Edificio.tsx:891"},__gh("span",{style:hueco,"data-gufi-src":"components/Edificio.tsx:892"}),__gh("div",{style:{flex:"1 1 0",minWidth:0,display:"flex",gap:1,aspectRatio:String(ratioFila(5,!0,i===0)),minHeight:SUELO_CELDA,borderLeft:`1px solid ${T.linea}`,borderRight:`1px solid ${T.linea}`,borderTop:i===0?"none":`1px solid ${T.linea}`},"data-gufi-src":"components/Edificio.tsx:893"},(i===0?[0]:[0,1]).map(c=>__gh("span",{key:c,style:bloque,"data-gufi-src":"components/Edificio.tsx:900"}))))),__gh("div",{style:{display:"flex"},"data-gufi-src":"components/Edificio.tsx:904"},__gh("span",{style:hueco,"data-gufi-src":"components/Edificio.tsx:905"}),__gh("span",{style:{flex:1,minWidth:0,height:3,background:T.niebla},"data-gufi-src":"components/Edificio.tsx:906"}))),__gh("p",{role:"status",style:{margin:"18px 0 0",fontFamily:T.mono,fontSize:12,color:T.grisTenue,letterSpacing:"0.04em"},"data-gufi-src":"components/Edificio.tsx:909"},t("Cargando los nueve apartamentos\u2026","Loading the nine apartments\u2026")))}function Aviso({icono:Icono,titulo,texto,rol="status",children,style}){return __gh("div",{role:rol,style:{border:`1px solid ${T.linea}`,borderLeft:`3px solid ${T.roble}`,background:T.papel,borderRadius:T.r2,padding:"clamp(18px, 2.4vw, 26px)",display:"flex",flexWrap:"wrap",gap:"14px 18px",alignItems:"flex-start",...style},"data-gufi-src":"components/Edificio.tsx:926"},__gh(Icono,{size:19,strokeWidth:1.6,color:T.azulHondo,"aria-hidden":"true",style:{flex:"0 0 auto",marginTop:3}}),__gh("div",{style:{flex:"1 1 240px",minWidth:0},"data-gufi-src":"components/Edificio.tsx:939"},__gh("div",{style:{fontFamily:T.display,fontWeight:300,fontSize:"clamp(18px, 2.2vw, 21px)",lineHeight:1.3,color:T.pizarra},"data-gufi-src":"components/Edificio.tsx:940"},titulo),__gh("p",{style:{margin:"8px 0 0",fontFamily:T.texto,fontSize:14.5,lineHeight:1.65,color:T.grisTexto},"data-gufi-src":"components/Edificio.tsx:943"},texto),children?__gh("div",{style:{display:"flex",flexWrap:"wrap",gap:10,marginTop:16},"data-gufi-src":"components/Edificio.tsx:946"},children):null))}function Fila({a,ocupado,conFechas,ancho,onAbrir,lang:lang2,L,t,tarifas:tarifas2}){let[vivo,setVivo]=(0,import_react7.useState)(!1),detalle=[L(a.plantaEtiqueta),a.m2>0?`${a.m2} m\xB2`:"",a.capacidad>0?plazasTxt(a.capacidad,lang2):""].filter(Boolean).join(" \xB7 "),p=precioDe(tarifas2,a.id),precio=p.clase==="cifra"?`${euros(p.porNoche,lang2)}${t("/noche","/night")}`:p.clase==="sinFechas"?t("Elige fechas","Pick your dates"):p.clase==="pidiendo"?t("calculando\u2026","checking\u2026"):p.clase==="ocupado"?t("Ocupado","Taken"):t("Precio a consultar","Price on request"),precioEsCifra=p.clase==="cifra",caja={width:"100%",margin:0,textAlign:"left",fontFamily:T.texto,border:"none",borderRadius:0,WebkitAppearance:"none",appearance:"none",background:vivo&&!ocupado?T.papel:"transparent",cursor:ocupado?"default":"pointer",transition:"background 180ms ease",display:"grid",alignItems:ancho?"center":"baseline",gridTemplateColumns:ancho?"76px minmax(0, 1fr) 130px 92px 18px":"minmax(0, 1fr) auto",columnGap:ancho?16:12,rowGap:5,padding:ancho?"14px 6px":"13px 6px",minHeight:56},codigo=__gh("span",{style:{fontFamily:T.mono,fontSize:15,letterSpacing:"-0.01em",whiteSpace:"nowrap",color:ocupado?T.grisTenue:vivo?T.azulHondo:T.pizarra,transition:"color 180ms ease"},"data-gufi-src":"components/Edificio.tsx:1005"},a.codigo),texto=__gh("span",{style:{fontFamily:T.texto,fontSize:13.5,lineHeight:1.45,color:ocupado?T.grisTenue:T.grisTexto,minWidth:0},"data-gufi-src":"components/Edificio.tsx:1013"},detalle),importe=__gh("span",{style:{fontFamily:precioEsCifra?T.mono:T.texto,fontSize:precioEsCifra?13.5:12.5,whiteSpace:"nowrap",color:ocupado?T.grisTenue:T.pizarra2,textAlign:"right"},"data-gufi-src":"components/Edificio.tsx:1018"},precio),estado=conFechas?__gh("span",{style:{fontFamily:T.mono,fontSize:11.5,letterSpacing:"0.06em",whiteSpace:"nowrap",color:ocupado?T.grisTenue:T.ok,textAlign:"right"},"data-gufi-src":"components/Edificio.tsx:1027"},ocupado?t("Ocupado","Booked"):t("Libre","Free")):__gh("span",{"data-gufi-src":"components/Edificio.tsx:1033"}),cuerpo=ancho?__gh(__gf,null,codigo,texto,importe,estado,ocupado?__gh("span",{"aria-hidden":"true","data-gufi-src":"components/Edificio.tsx:1042"}):__gh(import_lucide_react4.ChevronRight,{size:16,strokeWidth:1.6,color:vivo?T.azulHondo:T.grisTenue,"aria-hidden":"true"})):__gh(__gf,null,codigo,importe,texto,estado);return ocupado?__gh("div",{"aria-disabled":"true",style:caja,"data-gufi-src":"components/Edificio.tsx:1055"},cuerpo):__gh("button",{type:"button",onClick:()=>onAbrir(a),onMouseEnter:()=>setVivo(!0),onMouseLeave:()=>setVivo(!1),onFocus:()=>setVivo(!0),onBlur:()=>setVivo(!1),style:caja,"data-gufi-src":"components/Edificio.tsx:1059"},cuerpo)}function Edificio({apartamentos,ocupacion,nochesElegidas,nochesLlenas,estancia,setEstancia,minFecha,cargando,fallo,onReintentar,onAbrir,tarifas:tarifas2}){let{t,L,lang:lang2}=useLang(),ancho=useAncho2(860),lista=Array.isArray(apartamentos)?apartamentos:[],noches=Array.isArray(nochesElegidas)?nochesElegidas:[],est=estancia&&typeof estancia=="object"?estancia:{entrada:"",noches:2},ocup=ocupacion||{},conFechas=noches.length>0,niveles=(0,import_react7.useMemo)(()=>porAlzado(lista),[lista]),libres=(0,import_react7.useMemo)(()=>conFechas?lista.filter(a=>estaLibre(ocup,a.id,noches)).length:lista.length,[lista,ocup,noches,conFechas]),refPista=(0,import_react7.useRef)(null),avance=useActo(refPista),hayActo=useScrubPermitido()&&!cargando&&!fallo&&niveles.length>0,salida=salidaDe(est.entrada,est.noches),rango=rangoTxt(est.entrada,salida,lang2,String(minFecha||"").slice(0,4)),sinHueco=conFechas&&lista.length>0&&libres===0,ponEstancia=(entrada,n)=>{setEstancia(()=>({entrada,noches:Math.max(1,n)}))},limpiar=()=>setEstancia(p=>({...p,entrada:""})),mensaje=rango?t(`Hola, busco apartamento en ${CASA.nombre} ${rango} (${nochesTxt(est.noches,"es")}). \xBFTen\xE9is algo?`,`Hi, I am looking for an apartment at ${CASA.nombre}, ${rango} (${nochesTxt(est.noches,"en")}). Do you have anything?`):t(`Hola, quer\xEDa preguntar por los apartamentos de ${CASA.nombre}.`,`Hi, I would like to ask about the ${CASA.nombre} apartments.`),elAlzado=__gh(Alzado,{niveles,ocupacion:ocup,nochesElegidas:noches,onAbrir,mostrarPlanta:ancho,lang:lang2,L,t,avanceActo:hayActo?avance:null}),cuerpo=fallo?__gh(Aviso,{rol:"alert",icono:import_lucide_react4.Info,titulo:t("No hemos podido cargar los apartamentos.","We could not load the apartments."),texto:t("Puede ser un corte de un segundo. Vuelve a intentarlo; y si sigue igual, ll\xE1manos y reservamos nosotros por ti.","It may be a one-second glitch. Try again; and if it persists, call us and we will book it for you.")},__gh(Boton,{variante:"solido",onClick:onReintentar},__gh(import_lucide_react4.RotateCcw,{size:16,strokeWidth:1.8,"aria-hidden":"true"}),t("Reintentar","Try again")),__gh(Boton,{variante:"contorno",href:`tel:${CASA.telefonoRaw}`},__gh(import_lucide_react4.Phone,{size:16,strokeWidth:1.8,"aria-hidden":"true"}),CASA.telefono)):cargando?__gh(Esqueleto,{t}):lista.length===0?__gh(Aviso,{icono:import_lucide_react4.Info,titulo:t("Ahora mismo no hay apartamentos publicados.","No apartments are published right now."),texto:t("Es cosa nuestra, no tuya. Escr\xEDbenos o ll\xE1manos y te decimos qu\xE9 hay libre.","That is on us, not on you. Write or call and we will tell you what is free.")},__gh(Boton,{variante:"solido",href:`tel:${CASA.telefonoRaw}`},__gh(import_lucide_react4.Phone,{size:16,strokeWidth:1.8,"aria-hidden":"true"}),CASA.telefono),__gh(Boton,{variante:"contorno",href:`mailto:${CASA.email}`},CASA.email)):__gh(__gf,null,sinHueco?__gh(Aviso,{icono:import_lucide_react4.MessageCircle,titulo:t("Esas noches est\xE1n todas cogidas.","Those nights are all taken."),texto:t("Escr\xEDbenos por WhatsApp: puede que podamos moverte algo, o decirte qu\xE9 d\xEDa cercano s\xED tenemos.","Message us on WhatsApp: we may be able to move something around, or tell you which nearby dates we do have."),style:{marginBottom:"clamp(22px, 3vw, 34px)"}},__gh(Boton,{variante:"solido",href:WHATSAPP(mensaje)},__gh(import_lucide_react4.MessageCircle,{size:16,strokeWidth:1.8,"aria-hidden":"true"}),t("Escribir por WhatsApp","Message on WhatsApp")),__gh(Boton,{variante:"texto",onClick:limpiar,style:DIANA_TEXTO},t("Probar otras fechas","Try other dates"))):null,__gh("div",{className:"aged-pista",ref:refPista,"data-gufi-src":"components/Edificio.tsx:1228"},__gh("div",{className:"aged-escena","data-gufi-src":"components/Edificio.tsx:1229"},__gh("div",{className:"aged-rel","data-gufi-src":"components/Edificio.tsx:1230"},hayActo?__gh("div",{className:"aged-voz",style:{position:"relative",paddingLeft:34},"data-gufi-src":"components/Edificio.tsx:1232"},__gh(ReglaDelActo,{avance,total:niveles.length}),__gh(Voz,{avance,alturas:niveles.length,unidades:lista.length,L})):null,elAlzado))),__gh(FileteVivo,{style:{marginTop:"clamp(30px, 4.5vw, 52px)"}}),__gh("div",{style:{display:"flex",flexWrap:"wrap",alignItems:"baseline",justifyContent:"space-between",gap:"6px 20px",margin:"16px 0 2px"},"data-gufi-src":"components/Edificio.tsx:1243"},__gh("h3",{style:{margin:0},"data-gufi-src":"components/Edificio.tsx:1244"},__gh(Antetitulo,null,t("Los nueve, en lista","All nine, as a list"))),__gh("p",{style:{margin:0,maxWidth:"46ch",fontFamily:T.texto,fontSize:12.5,lineHeight:1.5,color:T.grisTenue},"data-gufi-src":"components/Edificio.tsx:1247"},L(COPY.edificioCierre))),__gh("ul",{style:{listStyle:"none",margin:0,padding:0,borderBottom:`1px solid ${T.lineaSuave}`},"data-gufi-src":"components/Edificio.tsx:1251"},lista.map(a=>__gh("li",{key:a.id,style:{borderTop:`1px solid ${T.lineaSuave}`},"data-gufi-src":"components/Edificio.tsx:1253"},__gh(Fila,{a,ocupado:conFechas&&!estaLibre(ocup,a.id,noches),conFechas,ancho,onAbrir,lang:lang2,L,t,tarifas:tarifas2}))))),hayCabeceraViva=!fallo&&!cargando&&lista.length>0;return __gh(Seccion,{id:"edificio"},__gh("style",{dangerouslySetInnerHTML:{__html:PISTA},"data-gufi-src":"components/Edificio.tsx:1280"}),__gh("div",{style:{display:"flex",flexWrap:"wrap",gap:"clamp(20px, 3vw, 40px)",alignItems:"flex-end",justifyContent:"space-between"},"data-gufi-src":"components/Edificio.tsx:1282"},__gh("div",{style:{flex:"1 1 400px",minWidth:0,maxWidth:580},"data-gufi-src":"components/Edificio.tsx:1286"},__gh(Aparece,{y:12},__gh(Antetitulo,null,t("Elige tu planta","Pick your floor"))),__gh(TitularRevelado,{retardo:.06,style:{marginTop:14}},L(COPY.edificioTitulo)),__gh(Aparece,{retardo:.16,y:14},__gh("p",{style:{margin:"14px 0 0",fontFamily:T.texto,fontSize:"clamp(14.5px, 1.6vw, 16px)",lineHeight:1.7,color:T.grisTexto},"data-gufi-src":"components/Edificio.tsx:1293"},L(COPY.edificioEntradilla)))),hayCabeceraViva?__gh("div",{style:{flex:"1 1 300px",minWidth:0,maxWidth:380},"data-gufi-src":"components/Edificio.tsx:1304"},__gh("div",{"aria-live":"polite","data-gufi-src":"components/Edificio.tsx:1305"},est.entrada?__gh("p",{style:{margin:"0 0 12px",fontFamily:T.mono,fontSize:"clamp(12.5px, 1.5vw, 14px)",lineHeight:1.6,color:T.pizarra},"data-gufi-src":"components/Edificio.tsx:1307"},t(`${libres} de ${lista.length} libres ${rango} \xB7 ${nochesTxt(est.noches,"es")}`,`${libres} of ${lista.length} free, ${rango} \xB7 ${nochesTxt(est.noches,"en")}`)):__gh("p",{style:{margin:"0 0 12px",fontFamily:T.mono,fontSize:"clamp(12.5px, 1.5vw, 14px)",lineHeight:1.6,color:T.grisTexto},"data-gufi-src":"components/Edificio.tsx:1314"},t("Elige tus fechas para ver qu\xE9 queda libre","Pick your dates to see what is free"))),__gh(CampoEstancia,{id:"ag-ed-fechas",entrada:est.entrada,noches:est.noches,onCambio:ponEstancia,minFecha,maxNoches:MAX_NOCHES,ocupadas:nochesLlenas,notaTope:L(ESTANCIA_LARGA)})):null),__gh("div",{style:{marginTop:"clamp(32px, 4.5vw, 54px)"},"data-gufi-src":"components/Edificio.tsx:1334"},cuerpo))}var import_react8=require("react"),import_lucide_react5=require("lucide-react");var SIRVE="https://gufi.dev/api/files/serve?path=",sirve=clave=>SIRVE+clave.replace(/\//g,"%2F"),REPORTAJE=[{g:sirve("company_755/4840baa7-4877-468f-b2c5-c2521eb92e52_edificio-fachada-solo.webp"),sm:sirve("company_755/58cc8b6f-811e-4d00-8aaa-091be708917a_edificio-fachada-solo-sm.webp"),alt:{es:"La fachada de \xC1gora Palas: revoco blanco con las carpinter\xEDas y el z\xF3calo en azul, el r\xF3tulo de la casa y el portal abierto a la R\xFAa Agro do Rolo",en:"The front of \xC1gora Palas: white render with window frames and skirting in blue, the house sign and the entrance opening onto R\xFAa Agro do Rolo"},tam:"grande"},{g:sirve("company_755/1b72cb7e-e383-4a33-af06-297bac43121b_detalle-toallas.webp"),sm:sirve("company_755/3521d434-63cd-40e7-a9f1-0cbe649abca8_detalle-toallas-sm.webp"),alt:{es:"Dos toallas blancas enrolladas sobre la colcha de una cama, a contraluz de la ventana",en:"Two rolled white towels on a bedspread, backlit by the window"},tam:"alta"},{g:sirve("company_755/a4216808-2937-4731-96cf-032c0226017b_cocina-marmol.webp"),sm:sirve("company_755/6e822bfc-6691-4b69-bfd8-79cabb277d0d_cocina-marmol-sm.webp"),alt:{es:"La cocina: muebles en color topo y encimera de m\xE1rmol blanco, placa de inducci\xF3n, microondas, nevera, hervidor y cafetera, con la televisi\xF3n encima",en:"The kitchenette: taupe units and a white marble worktop, induction hob, microwave, fridge, kettle and coffee machine, with the television above"}},{g:sirve("company_755/09521dae-962f-426c-a4aa-021504587237_detalle-calas.webp"),sm:sirve("company_755/308f1847-ceaa-4aaf-ad59-926339899a63_detalle-calas-sm.webp"),alt:{es:"Un ramo de calas sobre la mesilla, con el papel pintado de palmeras detr\xE1s y el sol de la tarde en el suelo de madera",en:"Calla lilies on the bedside unit, palm-leaf wallpaper behind and afternoon sun on the wooden floor"},tam:"alta"},{g:sirve("company_755/d5cf15d0-a53a-4b21-867b-2d856c3d267f_bano-ducha-madera.webp"),sm:sirve("company_755/920e5223-d38b-4540-adce-64a2c8a45cf2_bano-ducha-madera-sm.webp"),alt:{es:"El ba\xF1o: ducha a ras de suelo con mampara de cristal, lavabo sobre encimera de m\xE1rmol oscuro y espejo redondo",en:"The bathroom: walk-in shower with a glass screen, basin on a dark marble shelf and a round mirror"}},{g:sirve("company_755/dda60961-c2fd-4049-96f2-2b3348ff3660_apartamento-salon-dormitorio.webp"),sm:sirve("company_755/69ad7ef0-d555-43fb-8741-42c7a8e89759_apartamento-salon-dormitorio-sm.webp"),alt:{es:"Un apartamento con el sal\xF3n y el dormitorio en la misma pieza: sof\xE1 y mesa baja a un lado, las camas al otro bajo el papel pintado geom\xE9trico",en:"An apartment with sitting room and bedroom in one space: sofa and low table on one side, the beds on the other under geometric wallpaper"},tam:"ancha",pos:"center 58%"},{g:sirve("company_755/979de5d3-815b-478c-9bd6-fc438e48f317_detalle-papel-aplique.webp"),sm:sirve("company_755/9122ed17-b5e6-49f9-8499-edc21fc857d6_detalle-papel-aplique-sm.webp"),alt:{es:"El aplique de lectura encendido sobre el papel pintado de arboleda del cabecero",en:"The reading light switched on against the woodland wallpaper behind the bed"},tam:"alta"},{g:sirve("company_755/45d8d40e-89db-4d67-8963-57aa25fe3cd8_marca-rotulo.webp"),sm:sirve("company_755/75c570f3-ef22-44a4-aa70-35a49b0b2588_marca-rotulo-sm.webp"),alt:{es:"El r\xF3tulo de \xC1gora Palas en la fachada: las letras y el front\xF3n recortados en chapa azul sobre el revoco",en:"The \xC1gora Palas sign on the facade: lettering and pediment cut in blue metal against the white render"}},{g:sirve("company_755/da0a30a2-286d-4589-975b-ab18e9b13f05_detalle-balcon.webp"),sm:sirve("company_755/880f97b4-fb0c-4335-99de-a4eae0d1320a_detalle-balcon-sm.webp"),alt:{es:"La barandilla azul del balc\xF3n vista desde dentro, con la sombra de la tarde sobre el revoco",en:"The blue balcony railing seen from inside, with the afternoon shadow on the render"},tam:"alta"}],MAX_EXTRA=7;function nombreDeFoto(url){let s=String(url||""),i=s.lastIndexOf("_");return(i>=0?s.slice(i+1):s).toLowerCase().replace(/-sm\.webp$/,".webp")}var HOJA2=` /* A SANGRE EN EL M\xD3VIL. Una l\xE1mina de contactos con 20 px de margen a cada lado es una l\xE1mina de contactos con margen; a sangre es una l\xE1mina. Las teselas crecen de 171 a 191 px de lado a 390 y la ret\xEDcula llega a los dos bordes de la pantalla. Los 20 px vuelven a partir de 768, donde la caja de 1.120 ya tiene aire propio alrededor. \u{1F534} Se hace con dos m\xE1rgenes negativos de 20 px y NO con width:100vw: el ancho \xFAtil aqu\xED es exactamente 100vw \u2212 40, as\xED que esto da 100vw clavado sin aritm\xE9tica de barras de scroll (ver la nota de .ag-sangra en page.tsx). \u{1F534} Y este bloque es una plantilla de JS: aqu\xED dentro, ni un acento invertido, que cierra la plantilla y tumba el fichero entero. */ /* El alto de fila sale del ANCHO DE COLUMNA, no de un vw suelto, para que la tesela conserve su proporci\xF3n (\u221A2 tumbada) ahora que la ret\xEDcula es m\xE1s ancha: columna = (100vw \u2212 8 de hueco) / 2 = 50vw \u2212 4, y el alto es eso partido por 1,414. Antes era 31vw a secas y encajaba con los 20 px de margen; sin ellos, el mismo n\xFAmero dejaba las teselas m\xE1s apaisadas. */ .agal{display:grid;grid-template-columns:repeat(2,1fr);grid-auto-rows:calc(35.4vw - 2.8px);gap:8px;grid-auto-flow:row dense; margin-left:-20px;margin-right:-20px} @media(min-width:768px){.agal{margin-left:0;margin-right:0}} /* El position:relative de aqu\xED abajo es LOAD-BEARING: la capa del paralaje va dentro en absoluto y sin esto se ancla al primer ancestro posicionado, que es la secci\xF3n entera, y la foto se ir\xEDa a la esquina de arriba de la p\xE1gina. \u{1F534} Y OJO: este bloque es una plantilla de JS. Un solo acento invertido dentro de un comentario la cierra y tumba el fichero entero. Aqu\xED dentro, ni uno. */ .agal-t{position:relative;display:block;width:100%;height:100%;margin:0;padding:0;border:0;background:${T.nieblaSuave};border-radius:${T.r1}px;overflow:hidden;cursor:zoom-in;-webkit-tap-highlight-color:transparent} .agal-t img{transition:transform 700ms cubic-bezier(.22,.61,.36,1)} .agal-t:hover img{transform:scale(1.04)} .agal-alta{grid-row:span 2} .agal-ancha{grid-column:span 2} .agal-grande{grid-column:span 2;grid-row:span 2} @media(min-width:640px){.agal{grid-template-columns:repeat(3,1fr);grid-auto-rows:22vw;gap:10px}} @media(min-width:960px){.agal{grid-template-columns:repeat(4,1fr);grid-auto-rows:15.6vw}} @media(min-width:1180px){.agal{grid-auto-rows:186px}} .agal-nav{display:none} .agal-pulgar{display:flex} @media(min-width:560px){.agal-nav{display:inline-flex}.agal-pulgar{display:none}} `;function Tesela({f,i,onAbrir,etiqueta,alt,retardo}){let quieto=(0,import_framer_motion.useReducedMotion)(),ref=(0,import_react8.useRef)(null),avance=useAvanceSuave(ref,"cruza","arrastra"),y=(0,import_framer_motion.useTransform)(avance,[0,1],["6%","-6%"]),entrada=quieto?{}:{initial:{opacity:0,y:22},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-8% 0px -6% 0px"},transition:{duration:DUR.lenta,ease:T.ease,delay:retardo}};return __gh(import_framer_motion.motion.button,{ref,id:"agal-b-"+i,type:"button","data-ag-anim":"tesela",className:cx("agal-t",f.tam&&"agal-"+f.tam),onClick:onAbrir,"aria-label":etiqueta,...entrada},__gh(import_framer_motion.motion.span,{style:{display:"block",position:"absolute",left:0,right:0,top:"-9%",height:"118%",y}},__gh(Foto,{src:f.sm,alt,ratio:"auto",objectPosition:f.pos,style:{width:"100%",height:"100%",background:T.nieblaSuave}})))}function BotonEscena({children,onClick,etiqueta,clase,style}){return __gh("button",{type:"button",onClick,"aria-label":etiqueta,title:etiqueta,className:clase,style:{width:48,height:48,borderRadius:999,border:`1px solid ${ESCENA.linea}`,background:ESCENA.boton,color:ESCENA.tinta,cursor:"pointer",alignItems:"center",justifyContent:"center",display:clase?void 0:"inline-flex",padding:0,...style},"data-gufi-src":"components/Galeria.tsx:302"},children)}function Visor({fotos,indice,onIr,onCerrar}){let{t,L}=useLang(),quieto=(0,import_framer_motion.useReducedMotion)(),panel=(0,import_react8.useRef)(null),toque=(0,import_react8.useRef)(null),arrastro=(0,import_react8.useRef)(!1),[estado,setEstado]=(0,import_react8.useState)("cargando"),total=fotos.length,foto=fotos[indice];(0,import_react8.useEffect)(()=>{setEstado("cargando")},[indice]),(0,import_react8.useEffect)(()=>{let onTecla=e=>{if(e.key==="Escape"){e.preventDefault(),onCerrar();return}if(e.key==="ArrowRight"){e.preventDefault(),onIr(1);return}e.key==="ArrowLeft"&&(e.preventDefault(),onIr(-1))};return document.addEventListener("keydown",onTecla),()=>document.removeEventListener("keydown",onTecla)},[onIr,onCerrar]),(0,import_react8.useEffect)(()=>{let previo=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=previo}},[]),(0,import_react8.useEffect)(()=>{panel.current&&panel.current.focus()},[]),(0,import_react8.useEffect)(()=>{typeof Image>"u"||total<2||[(indice+1)%total,(indice-1+total)%total].forEach(i=>{try{let im=new Image;im.src=fotos[i].g}catch{}})},[indice,fotos,total]);let atraparTab=e=>{if(e.key!=="Tab"||!panel.current)return;let nodos=Array.prototype.slice.call(panel.current.querySelectorAll("button")).filter(n=>n.offsetWidth>0||n.offsetHeight>0);if(!nodos.length)return;let primero=nodos[0],ultimo=nodos[nodos.length-1],act=document.activeElement;e.shiftKey&&(act===primero||act===panel.current)?(e.preventDefault(),ultimo.focus()):!e.shiftKey&&act===ultimo&&(e.preventDefault(),primero.focus())},empezarToque=e=>{let p=e.touches[0];toque.current=p?{x:p.clientX,y:p.clientY}:null},acabarToque=e=>{let ini=toque.current;toque.current=null;let p=e.changedTouches[0];if(!ini||!p)return;let dx=p.clientX-ini.x,dy=p.clientY-ini.y;arrastro.current=Math.abs(dx)>10||Math.abs(dy)>10,Math.abs(dx)>48&&Math.abs(dx)>Math.abs(dy)*1.4&&onIr(dx<0?1:-1)},leyenda=L(foto.alt);return __gh(import_framer_motion.motion.div,{ref:panel,role:"dialog","aria-modal":"true","aria-label":t("Fotograf\xEDas de \xC1gora Palas","Photographs of \xC1gora Palas"),tabIndex:-1,onKeyDown:atraparTab,initial:quieto?!1:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:quieto?0:.18,ease:T.ease},style:{position:"fixed",inset:0,zIndex:Z.visor,background:ESCENA.fondo,display:"flex",flexDirection:"column",outline:"none"}},__gh("div",{style:{display:"flex",justifyContent:"flex-end",padding:"calc(10px + env(safe-area-inset-top, 0px)) 12px 0"},"data-gufi-src":"components/Galeria.tsx:423"},__gh(BotonEscena,{onClick:onCerrar,etiqueta:t("Cerrar","Close")},__gh(import_lucide_react5.X,{size:20,strokeWidth:1.5}))),__gh("div",{onTouchStart:empezarToque,onTouchEnd:acabarToque,onClick:e=>{if(arrastro.current){arrastro.current=!1;return}e.target===e.currentTarget&&onCerrar()},style:{flex:1,minHeight:0,position:"relative",display:"flex",alignItems:"center",justifyContent:"center",padding:"10px 10px 0"},"data-gufi-src":"components/Galeria.tsx:429"},estado!=="error"?__gh("img",{key:foto.g,src:foto.g,alt:leyenda,decoding:"async",onLoad:()=>setEstado("listo"),onError:()=>setEstado("error"),style:{maxWidth:"100%",maxHeight:"100%",objectFit:"contain",display:"block",opacity:estado==="listo"?1:0,transition:"opacity 220ms ease"},"data-gufi-src":"components/Galeria.tsx:443"}):null,estado==="cargando"?__gh("div",{style:{position:"absolute",fontFamily:T.mono,fontSize:12,letterSpacing:"0.14em",textTransform:"uppercase",color:ESCENA.tintaTenue},"data-gufi-src":"components/Galeria.tsx:458"},t("Cargando la foto","Loading the photo")):null,estado==="error"?__gh("div",{role:"status",style:{maxWidth:320,textAlign:"center",fontFamily:T.texto,fontSize:14.5,lineHeight:1.6,color:ESCENA.tintaTenue},"data-gufi-src":"components/Galeria.tsx:464"},t("Esta foto no ha llegado. Prueba con la flecha para ver la siguiente, o recarga la p\xE1gina.","This photo did not load. Try the arrow for the next one, or reload the page.")):null,total>1?__gh(BotonEscena,{clase:"agal-nav",onClick:()=>onIr(-1),etiqueta:t("Foto anterior","Previous photo"),style:{position:"absolute",left:12,top:"50%",marginTop:-24}},__gh(import_lucide_react5.ChevronLeft,{size:22,strokeWidth:1.5})):null,total>1?__gh(BotonEscena,{clase:"agal-nav",onClick:()=>onIr(1),etiqueta:t("Foto siguiente","Next photo"),style:{position:"absolute",right:12,top:"50%",marginTop:-24}},__gh(import_lucide_react5.ChevronRight,{size:22,strokeWidth:1.5})):null),__gh("div",{style:{padding:"14px 16px calc(14px + env(safe-area-inset-bottom, 0px))",textAlign:"center"},"data-gufi-src":"components/Galeria.tsx:493"},__gh("div",{"aria-live":"polite",style:{fontFamily:T.mono,fontSize:12.5,letterSpacing:"0.14em",color:ESCENA.tintaTenue},"data-gufi-src":"components/Galeria.tsx:494"},indice+1," / ",total),__gh("p",{"aria-hidden":"true",style:{margin:"7px auto 0",maxWidth:560,fontFamily:T.texto,fontSize:13,lineHeight:1.5,color:ESCENA.tintaTenue},"data-gufi-src":"components/Galeria.tsx:497"},leyenda),total>1?__gh("div",{className:"agal-pulgar",style:{justifyContent:"center",gap:14,marginTop:12},"data-gufi-src":"components/Galeria.tsx:502"},__gh(BotonEscena,{onClick:()=>onIr(-1),etiqueta:t("Foto anterior","Previous photo")},__gh(import_lucide_react5.ChevronLeft,{size:22,strokeWidth:1.5})),__gh(BotonEscena,{onClick:()=>onIr(1),etiqueta:t("Foto siguiente","Next photo")},__gh(import_lucide_react5.ChevronRight,{size:22,strokeWidth:1.5}))):null))}function Galeria({apartamentos}){let{t,L}=useLang(),[indice,setIndice]=(0,import_react8.useState)(-1),ultimo=(0,import_react8.useRef)(-1),fotos=(0,import_react8.useMemo)(()=>{let vistas=new Set(REPORTAJE.map(f=>nombreDeFoto(f.sm))),extra=[];for(let a of apartamentos||[]){if(extra.length>=MAX_EXTRA)break;let sm=a.fotosSm&&a.fotosSm[0]||a.fotos&&a.fotos[0]||"",g=a.fotos&&a.fotos[0]||sm;if(!sm||!g)continue;let clave=nombreDeFoto(sm);vistas.has(clave)||(vistas.add(clave),extra.push({g,sm,alt:{es:`Interior de ${a.nombre}`,en:`Inside ${a.nombreEn}`}}))}return REPORTAJE.concat(extra)},[apartamentos]),total=fotos.length;(0,import_react8.useEffect)(()=>{ultimo.current=indice},[indice]);let ir=(0,import_react8.useCallback)(paso=>{setIndice(i=>i<0?i:(i+paso+total)%total)},[total]),cerrar=(0,import_react8.useCallback)(()=>{let i=ultimo.current;if(setIndice(-1),typeof document>"u")return;let b=document.getElementById("agal-b-"+i);b&&setTimeout(()=>{try{b.focus()}catch{}},0)},[]),abierta=indice>=0&&indice__gh(Tesela,{key:f.sm,f,i,retardo:Math.min(i*.045,.24),alt:L(f.alt),etiqueta:`${L(f.alt)} \u2014 ${t("ver en grande","view larger")}`,onAbrir:()=>setIndice(i)}))),__gh(import_framer_motion.AnimatePresence,null,abierta?__gh(Visor,{key:"visor",fotos,indice,onIr:ir,onCerrar:cerrar}):null))}var import_lucide_react6=require("lucide-react");var ICONOS={Accessibility:import_lucide_react6.Accessibility,Baby:import_lucide_react6.Baby,BedDouble:import_lucide_react6.BedDouble,Bike:import_lucide_react6.Bike,Car:import_lucide_react6.Car,ChefHat:import_lucide_react6.ChefHat,CigaretteOff:import_lucide_react6.CigaretteOff,CreditCard:import_lucide_react6.CreditCard,Dog:import_lucide_react6.Dog,Luggage:import_lucide_react6.Luggage,Map:import_lucide_react6.Map,MoveVertical:import_lucide_react6.MoveVertical,Shirt:import_lucide_react6.Shirt,ShowerHead:import_lucide_react6.ShowerHead,Tv:import_lucide_react6.Tv,WashingMachine:import_lucide_react6.WashingMachine,Wifi:import_lucide_react6.Wifi,Wind:import_lucide_react6.Wind},POR_DEFECTO=import_lucide_react6.Minus,HOJA3=` .ageq{display:grid;grid-template-columns:minmax(0,1fr);gap:clamp(30px,4vw,40px)} @media(min-width:900px){.ageq{grid-template-columns:repeat(3,minmax(0,1fr));gap:36px}} @media(min-width:1000px){.ageq{gap:44px}} /* Las p\xEDldoras. min-width:0 en cada una para que una larga pueda encoger y envolver en vez de empujar la fila; flex:0 1 auto para que las cortas midan lo que miden y no se estiren a partes iguales \u2014 estirarlas las convertir\xEDa otra vez en una rejilla regular, que es lo que no queremos. \u{1F534} Este bloque es una plantilla de JS: ni un acento invertido aqu\xED dentro. */ .ageq-ol{display:flex;flex-wrap:wrap;gap:7px;list-style:none;margin:14px 0 0;padding:0} .ageq-li{flex:0 1 auto;min-width:0;display:flex;align-items:flex-start;gap:8px; padding:8px 12px;border:1px solid ${T.lineaSuave};border-radius:${T.r3}px;background:${T.papel}; transition:border-color 200ms ease,background 200ms ease} .ageq-li:hover{border-color:${T.azulClaro};background:${T.cal}} .ageq-li span{font-family:${T.texto};font-size:14px;line-height:1.45;color:${T.pizarra2}} /* En escritorio las tres columnas son estrechas y las p\xEDldoras casi siempre caben solas: ah\xED el bloque se lee mejor en columna, sin la ret\xEDcula irregular que en el m\xF3vil es justo la que aprovecha el margen. */ @media(min-width:900px){ .ageq-ol{gap:0} .ageq-li{flex:1 1 100%;border:0;border-radius:0;background:transparent;padding:7px 0} .ageq-li:hover{background:transparent} } `;function Equipamiento(){let{t,L}=useLang();return __gh(Seccion,{id:"equipamiento"},__gh("style",{dangerouslySetInnerHTML:{__html:HOJA3},"data-gufi-src":"components/Equipamiento.tsx:90"}),__gh(CabeceraSeccion,{antetitulo:t("En la casa","In the house"),titulo:L(COPY.equipamientoTitulo)}),__gh("div",{className:"ageq",style:{marginTop:"clamp(30px, 4vw, 44px)"},"data-gufi-src":"components/Equipamiento.tsx:97"},EQUIPAMIENTO.map((grupo,g)=>__gh(Aparece,{key:grupo.grupo.es,retardo:.05*g},__gh("h3",{style:{margin:0},"data-gufi-src":"components/Equipamiento.tsx:100"},__gh(Antetitulo,null,L(grupo.grupo))),__gh("ul",{className:"ageq-ol","data-gufi-src":"components/Equipamiento.tsx:104"},grupo.items.map(item=>{let Icono=ICONOS[item.icono]||POR_DEFECTO;return __gh("li",{key:item.es,className:"ageq-li","data-gufi-src":"components/Equipamiento.tsx:108"},__gh(Icono,{size:16,strokeWidth:1.4,color:T.azul,"aria-hidden":"true",style:{flexShrink:0,marginTop:2}}),__gh("span",{"data-gufi-src":"components/Equipamiento.tsx:110"},L(item)))}))))),__gh(Aparece,{retardo:.1},__gh("div",{style:{marginTop:"clamp(32px, 4.4vw, 44px)",paddingTop:16,borderTop:`1px solid ${T.lineaSuave}`,display:"flex",flexWrap:"wrap",alignItems:"baseline",gap:"6px 16px",fontFamily:T.mono,fontSize:12.5,letterSpacing:"0.02em",color:T.grisTenue},"data-gufi-src":"components/Equipamiento.tsx:120"},__gh("span",{"data-gufi-src":"components/Equipamiento.tsx:125"},t("Entrada","Check-in")," ",__gh("span",{style:{color:T.pizarra},"data-gufi-src":"components/Equipamiento.tsx:126"},L(CASA.entrada))),__gh("span",{"aria-hidden":"true",style:{color:T.roble},"data-gufi-src":"components/Equipamiento.tsx:128"},"\xB7"),__gh("span",{"data-gufi-src":"components/Equipamiento.tsx:129"},t("Salida","Check-out")," ",__gh("span",{style:{color:T.pizarra},"data-gufi-src":"components/Equipamiento.tsx:130"},L(CASA.salida))))))}var import_react9=require("react"),import_lucide_react7=require("lucide-react");var servir2=clave=>"https://gufi.dev/api/files/serve?path="+clave.replace(/\//g,"%2F"),CAMINO=[{src:servir2("company_755/0f746438-6b04-4d36-8407-a77d60cc77c7_camino-peregrino-900.webp"),alt:{es:"Un peregrino camina solo por una carretera mojada entre \xE1rboles altos, con niebla al fondo y una concha colgada de la mochila.",en:"A pilgrim walks alone along a wet road between tall trees, mist ahead and a scallop shell hanging from the backpack."}},{src:servir2("company_755/c093d499-9ced-45bc-a724-402896bd4998_camino-hito-900.webp"),alt:{es:"Un hito de granito del Camino, con la concha y la flecha amarilla, marca los kil\xF3metros que quedan hasta Santiago; apoyada en \xE9l, una mochila, y detr\xE1s el campo gallego.",en:"A granite Camino waymarker with the scallop shell and the yellow arrow, marking the kilometres left to Santiago; a backpack leans against it, with the Galician countryside behind."}}];var km=(n,lang2)=>lang2==="en"?String(n):String(n).replace(".",","),DIRECCION=[CASA.calle,`${CASA.cp} ${CASA.municipio}`,CASA.provincia],MAPA="https://maps.google.com/?q="+encodeURIComponent([...DIRECCION,CASA.pais].join(", ")),TARJETA={background:T.papel,border:`1px solid ${T.linea}`,borderRadius:T.r3,padding:"clamp(20px, 3.4vw, 28px)"},VELO_ANCHO="linear-gradient(180deg, rgba(14,17,20,0.10) 0%, rgba(14,17,20,0.55) 46%, rgba(14,17,20,0.90) 100%)",VELO_ALTO="linear-gradient(180deg, rgba(14,17,20,0.06) 0%, rgba(14,17,20,0.30) 22%, rgba(14,17,20,0.74) 48%, rgba(14,17,20,0.93) 100%)",ENCUADRE="center 56%",TINTA="#FFFFFF",TINTA_TENUE="rgba(255,255,255,0.80)",HILO="rgba(255,255,255,0.42)",PISTA2=` .aglu-pista{position:relative;} .aglu-escena{position:relative;} /* \u2500\u2500 LA BANDA, A SANGRE EN EL M\xD3VIL \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 Es la mejor imagen del sitio y en el tel\xE9fono viv\xEDa dentro del ra\xEDl de 20 px, a 350 px de ancho, como una foto m\xE1s. A sangre llena la pantalla y rompe la columna UNA vez en todo el recorrido, que es exactamente lo que se ped\xEDa. El esquinado se va con el margen: una foto que llega al borde no tiene esquinas que redondear. Los 20 px de margen vuelven a partir de 768. */ .aglu-banda{margin-left:-20px;margin-right:-20px;border-radius:0;} @media (min-width:768px){ .aglu-banda{margin-left:0;margin-right:0;border-radius:${T.r3}px;} } @media (min-width:992px){ /* 300 px y no 460: el acto se paga en scroll del visitante, y con 460 la banda se quedaba quieta casi media pantalla de m\xE1s sin que pasara nada nuevo. 300 basta para que la foto derive de forma perceptible por detr\xE1s del trazado, que es lo \xFAnico que este acto tiene que contar. */ .aglu-pista{--sostiene:300px;height:calc(100vh + var(--sostiene));} /* 88px = la barra (76) y un respiro. La banda queda bajo la barra, no debajo. */ .aglu-escena{position:sticky;top:88px;} } @media (prefers-reduced-motion: reduce){ /* P\xE1gina entera y quieta: ni pista alta, ni pegado. */ .aglu-pista{height:auto !important;} .aglu-escena{position:static !important;} } `;function useAncho3(consulta){let suscribir=(0,import_react9.useCallback)(avisar=>{if(typeof window>"u"||!window.matchMedia)return()=>{};let m=window.matchMedia(consulta);return typeof m.addEventListener=="function"?(m.addEventListener("change",avisar),()=>m.removeEventListener("change",avisar)):(m.addListener(avisar),()=>m.removeListener(avisar))},[consulta]),leer=(0,import_react9.useCallback)(()=>typeof window<"u"&&window.matchMedia?window.matchMedia(consulta).matches:!1,[consulta]);return(0,import_react9.useSyncExternalStore)(suscribir,leer,()=>!1)}function Cifra({metros,grande}){return __gh("span",{style:{fontFamily:T.mono,color:TINTA,lineHeight:1,letterSpacing:"-0.02em",whiteSpace:"nowrap",fontSize:grande?"clamp(22px, 2.4vw, 30px)":"clamp(20px, 5.4vw, 25px)"},"data-gufi-src":"components/Lugar.tsx:164"},metros,__gh("span",{style:{fontSize:"0.44em",letterSpacing:"0.04em",color:TINTA_TENUE,marginLeft:6},"data-gufi-src":"components/Lugar.tsx:169"},"km"))}var PUEBLO={fontFamily:T.texto,fontWeight:600,lineHeight:1.4,color:TINTA_TENUE,letterSpacing:"0.01em",whiteSpace:"nowrap"},SENTIDO={fontFamily:T.texto,fontSize:12.5,lineHeight:1.45,color:TINTA_TENUE},punto=aqui=>({width:aqui?11:6,height:aqui?11:6,borderRadius:T.r1,background:aqui?TINTA:HILO,justifySelf:"center"});function TrazadoAncho({nodos,aqui,etapas,nombreAqui,etiquetaAqui,cifras}){let{L}=useLang(),celda=(col,fila,extra)=>({gridColumn:col,gridRow:fila,...extra});return __gh("div",{style:{display:"grid",gridTemplateColumns:"max-content 1fr max-content 1fr max-content",columnGap:18,rowGap:12,alignItems:"center",width:"100%"},"data-gufi-src":"components/Lugar.tsx:202"},__gh("div",{style:celda(2,1,{textAlign:"center"}),"data-gufi-src":"components/Lugar.tsx:208"},__gh(Cifra,{metros:cifras[0],grande:!0})),__gh("div",{style:celda(3,1,{textAlign:"center"}),"data-gufi-src":"components/Lugar.tsx:209"},__gh("span",{style:{fontFamily:T.display,fontWeight:300,color:TINTA,fontSize:"clamp(26px, 2.8vw, 36px)",lineHeight:1.08,letterSpacing:"-0.015em",whiteSpace:"nowrap"},"data-gufi-src":"components/Lugar.tsx:210"},nombreAqui)),__gh("div",{style:celda(4,1,{textAlign:"center"}),"data-gufi-src":"components/Lugar.tsx:217"},__gh(Cifra,{metros:cifras[1],grande:!0})),__gh("span",{"aria-hidden":"true",style:celda("1 / -1",2,{height:1,background:HILO}),"data-gufi-src":"components/Lugar.tsx:220"}),__gh("span",{"aria-hidden":"true",style:celda(1,2,punto(!1)),"data-gufi-src":"components/Lugar.tsx:221"}),__gh("span",{"aria-hidden":"true",style:celda(3,2,punto(!0)),"data-gufi-src":"components/Lugar.tsx:222"}),__gh("span",{"aria-hidden":"true",style:celda(5,2,punto(!1)),"data-gufi-src":"components/Lugar.tsx:223"}),__gh("div",{style:celda(1,3,{...PUEBLO,fontSize:15,textAlign:"center"}),"data-gufi-src":"components/Lugar.tsx:226"},nodos[0]),__gh("div",{style:celda(2,3,{...SENTIDO,textAlign:"center"}),"data-gufi-src":"components/Lugar.tsx:227"},L(etapas[0].sentido)),__gh("div",{style:celda(3,3,{textAlign:"center"}),"data-gufi-src":"components/Lugar.tsx:228"},__gh(Antetitulo,{color:TINTA_TENUE},etiquetaAqui)),__gh("div",{style:celda(4,3,{...SENTIDO,textAlign:"center"}),"data-gufi-src":"components/Lugar.tsx:229"},L(etapas[1].sentido)),__gh("div",{style:celda(5,3,{...PUEBLO,fontSize:15,textAlign:"center"}),"data-gufi-src":"components/Lugar.tsx:230"},nodos[2]))}function TrazadoAlto({nodos,etapas,nombreAqui,etiquetaAqui,cifras}){let{L}=useLang();return __gh("div",{style:{display:"grid",gridTemplateColumns:"12px 1fr",gridTemplateRows:"auto auto auto auto auto",columnGap:14,alignItems:"start"},"data-gufi-src":"components/Lugar.tsx:257"},__gh("span",{"aria-hidden":"true",style:{gridColumn:1,gridRow:"1 / -1",justifySelf:"center",alignSelf:"stretch",width:1,background:HILO},"data-gufi-src":"components/Lugar.tsx:262"}),__gh("span",{"aria-hidden":"true",style:{gridColumn:1,gridRow:1,marginTop:7,...punto(!1)},"data-gufi-src":"components/Lugar.tsx:264"}),__gh("div",{style:{gridColumn:2,gridRow:1,...PUEBLO,fontSize:14.5},"data-gufi-src":"components/Lugar.tsx:265"},nodos[0]),__gh("div",{style:{gridColumn:2,gridRow:2,padding:"9px 0 11px"},"data-gufi-src":"components/Lugar.tsx:267"},__gh(Cifra,{metros:cifras[0],grande:!1}),__gh("div",{style:{...SENTIDO,marginTop:3},"data-gufi-src":"components/Lugar.tsx:269"},L(etapas[0].sentido))),__gh("span",{"aria-hidden":"true",style:{gridColumn:1,gridRow:3,marginTop:10,...punto(!0)},"data-gufi-src":"components/Lugar.tsx:272"}),__gh("div",{style:{gridColumn:2,gridRow:3},"data-gufi-src":"components/Lugar.tsx:273"},__gh("div",{style:{fontFamily:T.display,fontWeight:300,color:TINTA,fontSize:"clamp(23px, 6.6vw, 30px)",lineHeight:1.08,letterSpacing:"-0.015em"},"data-gufi-src":"components/Lugar.tsx:274"},nombreAqui),__gh(Antetitulo,{color:TINTA_TENUE,style:{marginTop:6}},etiquetaAqui)),__gh("div",{style:{gridColumn:2,gridRow:4,padding:"11px 0 9px"},"data-gufi-src":"components/Lugar.tsx:283"},__gh(Cifra,{metros:cifras[1],grande:!1}),__gh("div",{style:{...SENTIDO,marginTop:3},"data-gufi-src":"components/Lugar.tsx:285"},L(etapas[1].sentido))),__gh("span",{"aria-hidden":"true",style:{gridColumn:1,gridRow:5,marginTop:7,...punto(!1)},"data-gufi-src":"components/Lugar.tsx:288"}),__gh("div",{style:{gridColumn:2,gridRow:5,...PUEBLO,fontSize:14.5},"data-gufi-src":"components/Lugar.tsx:289"},nodos[2]))}function Lugar(){let{t,L,lang:lang2}=useLang(),ancho=useAncho3("(min-width: 760px)"),refPista=(0,import_react9.useRef)(null),avance=useAvanceSuave(refPista,"cruza","arrastra"),yFoto=(0,import_framer_motion.useTransform)(avance,[0,1],["7%","-7%"]),mueve=useScrubPermitido(),nodos=[LUGAR.etapas[0].desde,...LUGAR.etapas.map(e=>e.hasta)],aqui=LUGAR.titulo.es,[principal,apoyo]=CAMINO,cifras=LUGAR.etapas.map(e=>km(e.km,lang2)),comun={nodos,etapas:LUGAR.etapas,nombreAqui:L(LUGAR.titulo),etiquetaAqui:t("Est\xE1s aqu\xED","You are here"),cifras};return __gh(Seccion,{id:"lugar"},__gh("style",{dangerouslySetInnerHTML:{__html:PISTA2},"data-gufi-src":"components/Lugar.tsx:330"}),__gh(Aparece,{y:12},__gh(Antetitulo,null,"Camino Franc\xE9s")),__gh(TitularRevelado,{retardo:.06,style:{marginTop:14}},L(LUGAR.titulo)),__gh(FileteVivo,{retardo:.18,style:{margin:"22px 0 20px"}}),__gh(Aparece,{retardo:.24,y:14},__gh("p",{style:{margin:0,maxWidth:"62ch",fontSize:16,lineHeight:1.68,color:T.grisTexto},"data-gufi-src":"components/Lugar.tsx:336"},L(LUGAR.entradilla))),__gh("div",{className:"aglu-pista",ref:refPista,style:{marginTop:"clamp(26px, 3.6vw, 38px)"},"data-gufi-src":"components/Lugar.tsx:342"},__gh("div",{className:"aglu-escena","data-gufi-src":"components/Lugar.tsx:343"},__gh(Aparece,{retardo:.06},__gh("div",{className:"aglu-banda",style:{position:"relative",overflow:"hidden",background:T.pizarra,aspectRatio:ancho?"16 / 9":"3 / 4"},"data-gufi-src":"components/Lugar.tsx:345"},__gh(import_framer_motion.motion.div,{style:{position:"absolute",left:0,right:0,top:"-11%",height:"122%",y:yFoto,willChange:mueve?"transform":void 0}},__gh(Foto,{src:principal.src,srcSm:principal.srcSm,sizes:"(min-width: 1160px) 1120px, 100vw",ratio:"auto",objectPosition:ENCUADRE,alt:L(principal.alt),style:{width:"100%",height:"100%"}})),__gh("span",{"aria-hidden":"true",style:{position:"absolute",inset:0,background:ancho?VELO_ANCHO:VELO_ALTO,pointerEvents:"none"},"data-gufi-src":"components/Lugar.tsx:379"}),__gh("div",{style:{position:"absolute",left:0,right:0,bottom:0,padding:ancho?"clamp(22px, 3vw, 34px)":"20px 18px 22px"},"data-gufi-src":"components/Lugar.tsx:384"},ancho?__gh(TrazadoAncho,{...comun,aqui}):__gh(TrazadoAlto,{...comun})))))),__gh(Aparece,{retardo:.12,style:{marginTop:"clamp(16px, 2.2vw, 22px)"}},__gh("div",{style:{display:"grid",gridTemplateColumns:ancho?"minmax(0, 1.15fr) minmax(0, 0.85fr)":"minmax(0, 1fr)",gap:"clamp(12px, 1.6vw, 18px)"},"data-gufi-src":"components/Lugar.tsx:405"},__gh("div",{style:TARJETA,"data-gufi-src":"components/Lugar.tsx:407"},__gh(Antetitulo,null,t("C\xF3mo llegar","Getting here")),__gh("p",{style:{margin:"12px 0 0",fontSize:15,lineHeight:1.68,color:T.grisTexto},"data-gufi-src":"components/Lugar.tsx:409"},L(LUGAR.comoLlegar)),__gh(Filete,{style:{margin:"24px 0"}}),__gh(Antetitulo,null,t("Direcci\xF3n","Address")),__gh("address",{style:{fontStyle:"normal",fontFamily:T.mono,fontSize:14.5,lineHeight:1.75,color:T.pizarra,margin:"10px 0 0"},"data-gufi-src":"components/Lugar.tsx:416"},DIRECCION.map(linea=>__gh("div",{key:linea,"data-gufi-src":"components/Lugar.tsx:417"},linea))),__gh(Boton,{variante:"contorno",href:MAPA,style:{marginTop:18},ariaLabel:t("Abrir la direcci\xF3n en el mapa","Open the address in maps")},__gh(import_lucide_react7.MapPin,{size:16,strokeWidth:1.7,"aria-hidden":"true"}),t("Abrir en el mapa","Open in maps"))),__gh(Foto,{src:apoyo.src,srcSm:apoyo.srcSm,sizes:"(min-width: 1160px) 460px, 100vw",ratio:"4 / 3",alt:L(apoyo.alt),style:{borderRadius:T.r3,width:"100%",height:ancho?"100%":void 0}}))))}var import_lucide_react8=require("lucide-react");var WEB_TAXI="https://okthewaytaxi.gufi.dev";function aTraslado(p){let oferta=Number(p?.precio_oferta),base=Number(p?.precio);return{id:Number(p?.id)||0,nombre:String(p?.nombre||""),nombreEn:String(p?.nombre_en||p?.nombre||""),resumen:String(p?.resumen||""),resumenEn:String(p?.resumen_en||p?.resumen||""),desde:Number.isFinite(oferta)&&oferta>0?oferta:Number.isFinite(base)?base:0}}var HOJA4=` .agtr-ol{list-style:none;margin:clamp(26px,3.4vw,34px) 0 0;padding:0;display:grid; grid-template-columns:minmax(0,1fr);gap:0} .agtr-li{border-top:1px solid ${T.lineaSuave}} .agtr-li:last-child{border-bottom:1px solid ${T.lineaSuave}} .agtr-a{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:baseline; column-gap:16px;row-gap:4px;padding:16px 4px;min-height:56px;text-decoration:none;color:inherit; transition:background 180ms ease} .agtr-a:hover{background:${T.papel}} /* El resumen ocupa la fila de abajo y las DOS columnas: en movil, puesto al lado del precio, se quedaba en una columna de 150 px y partia en cuatro lineas. Asi respira y el precio sigue a la derecha del nombre. \u{1F534} Este bloque es una plantilla de JS: ni un acento invertido aqui dentro. */ .agtr-res{grid-column:1 / -1} @media(min-width:760px){ .agtr-a{grid-template-columns:minmax(0,22ch) minmax(0,1fr) auto;align-items:center;padding:18px 4px} .agtr-res{grid-column:auto} } `;function Traslados({traslados}){let{t,L,lang:lang2}=useLang(),lista=Array.isArray(traslados)?traslados:[];return lista.length===0?null:__gh(Seccion,{id:"traslados",fondo:T.cal},__gh("style",{"data-gufi-src":"components/Traslados.tsx:97"},HOJA4),__gh(CabeceraSeccion,{antetitulo:t("C\xF3mo llegas","Getting here"),titulo:t("Te recogemos y te llevamos","We pick you up and take you there"),entradilla:t("Casi todo el mundo que duerme aqu\xED empieza en Sarria y llega a Galicia por el aeropuerto de Santiago. Los traslados los hacemos nosotros mismos, con OK The Way: del aeropuerto o del centro de Santiago hasta Sarria, la vuelta cuando acabes, y el salto de una etapa a otra el d\xEDa que las piernas no den m\xE1s.","Almost everyone who sleeps here starts in Sarria and arrives in Galicia through Santiago airport. We run the transfers ourselves, as OK The Way: from the airport or central Santiago to Sarria, the trip back when you finish, and the hop from one stage to the next on the day your legs give up.")}),__gh(Aparece,{retardo:.06},__gh("ul",{className:"agtr-ol","data-gufi-src":"components/Traslados.tsx:109"},lista.map(x=>__gh("li",{key:x.id,className:"agtr-li","data-gufi-src":"components/Traslados.tsx:111"},__gh("a",{className:"agtr-a",href:WEB_TAXI,target:"_blank",rel:"noreferrer","aria-label":`${L(x.nombre,x.nombreEn)} \u2014 ${t("desde","from")} ${euros(x.desde,lang2)} \xB7 ${t("se abre en otra pesta\xF1a","opens in a new tab")}`,"data-gufi-src":"components/Traslados.tsx:115"},__gh("span",{style:{fontFamily:T.texto,fontSize:15.5,fontWeight:500,color:T.pizarra,minWidth:0},"data-gufi-src":"components/Traslados.tsx:122"},L(x.nombre,x.nombreEn)),__gh("span",{className:"agtr-res",style:{fontFamily:T.texto,fontSize:13.5,lineHeight:1.55,color:T.grisTexto,minWidth:0},"data-gufi-src":"components/Traslados.tsx:128"},L(x.resumen,x.resumenEn)),__gh("span",{style:{fontFamily:T.mono,fontSize:13.5,color:T.pizarra2,whiteSpace:"nowrap"},"data-gufi-src":"components/Traslados.tsx:134"},t("desde","from")," ",euros(x.desde,lang2))))))),__gh(Filete,{style:{margin:"clamp(26px, 3.4vw, 34px) 0"}}),__gh("div",{style:{display:"flex",flexWrap:"wrap",alignItems:"center",gap:"14px 20px"},"data-gufi-src":"components/Traslados.tsx:147"},__gh(Boton,{href:WEB_TAXI,variante:"solido"},t("Ver los traslados y reservar","See the transfers and book"),__gh(import_lucide_react8.ArrowUpRight,{size:17,"aria-hidden":"true"})),__gh("p",{style:{fontFamily:T.texto,fontSize:13,lineHeight:1.6,color:T.grisTenue,margin:0,maxWidth:"46ch"},"data-gufi-src":"components/Traslados.tsx:152"},t("Los traslados se reservan en okthewaytaxi.gufi.dev, que es nuestra web de transporte. El precio final depende del veh\xEDculo y del recorrido, y lo ves antes de pagar.","Transfers are booked at okthewaytaxi.gufi.dev, our transport site. The final price depends on the vehicle and the route, and you see it before paying."))))}var import_react10=require("react"),import_lucide_react9=require("lucide-react");var CURVA="cubic-bezier("+T.ease.join(",")+")";function Preguntas(){let{t,L}=useLang(),quieto=(0,import_framer_motion.useReducedMotion)(),[abiertas,setAbiertas]=(0,import_react10.useState)([]),alternar=i=>setAbiertas(a=>a.indexOf(i)>=0?a.filter(x=>x!==i):a.concat(i));return __gh(Seccion,{id:"preguntas",fondo:T.papel,estrecha:!0},__gh(Aparece,null,__gh(Antetitulo,null,t("Antes de reservar","Before you book")),__gh(Titular,{style:{marginTop:14}},L(COPY.preguntasTitulo)),__gh(Filete,{style:{margin:"22px 0 4px"}})),__gh(Aparece,{retardo:.06},__gh("div",{"data-gufi-src":"components/Preguntas.tsx:44"},PREGUNTAS.map((q,i)=>{let abierta=abiertas.indexOf(i)>=0,idPanel="ag-faq-"+i,idBoton=idPanel+"-b";return __gh("div",{key:idPanel,style:{borderBottom:`1px solid ${T.lineaSuave}`},"data-gufi-src":"components/Preguntas.tsx:50"},__gh("button",{type:"button",id:idBoton,"aria-expanded":abierta,"aria-controls":idPanel,onClick:()=>alternar(i),style:{width:"100%",minHeight:56,display:"flex",alignItems:"flex-start",justifyContent:"space-between",gap:18,textAlign:"left",background:"transparent",border:"none",borderRadius:T.r1,padding:"19px 2px",margin:0,cursor:"pointer",fontFamily:T.texto,color:T.pizarra},"data-gufi-src":"components/Preguntas.tsx:51"},__gh("span",{style:{fontSize:16,fontWeight:600,lineHeight:1.45,letterSpacing:"-0.004em"},"data-gufi-src":"components/Preguntas.tsx:75"},L(q.p)),__gh(import_lucide_react9.Plus,{size:18,strokeWidth:1.7,"aria-hidden":"true",style:{flex:"0 0 auto",marginTop:3,color:abierta?T.azulHondo:T.grisTenue,transform:abierta?"rotate(45deg)":"none",transition:"transform 260ms "+CURVA+", color 180ms ease"}})),__gh(import_framer_motion.AnimatePresence,{initial:!1},abierta?__gh(import_framer_motion.motion.div,{id:idPanel,role:"region","aria-labelledby":idBoton,initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:quieto?0:.3,ease:T.ease},style:{overflow:"hidden"}},__gh("p",{style:{margin:0,padding:"0 8px 22px 2px",maxWidth:"68ch",fontSize:15,lineHeight:1.7,color:T.grisTexto},"data-gufi-src":"components/Preguntas.tsx:111"},L(q.r))):null))}))))}var import_lucide_react10=require("lucide-react");var DIRECCION2=[CASA.calle,`${CASA.cp} ${CASA.municipio}`,CASA.provincia],TARJETA2={background:T.papel,border:`1px solid ${T.linea}`,borderRadius:T.r3,padding:"17px 18px 9px",display:"flex",flexDirection:"column",gap:4};function Via({href,separa,children}){let fuera=href.startsWith("http");return __gh("a",{href,target:fuera?"_blank":void 0,rel:fuera?"noreferrer":void 0,style:{display:"flex",alignItems:"center",minHeight:44,minWidth:0,overflowWrap:"anywhere",fontFamily:T.mono,fontSize:15.5,letterSpacing:"-0.01em",color:T.azulHondo,textDecoration:"none",borderTop:separa?`1px solid ${T.lineaSuave}`:void 0,padding:"4px 1px"},"data-gufi-src":"components/Contacto.tsx:44"},children)}function Cabecera({icono,titulo}){return __gh("div",{style:{display:"flex",alignItems:"center",gap:9,color:T.azulHondo},"data-gufi-src":"components/Contacto.tsx:72"},__gh("span",{"aria-hidden":"true",style:{display:"inline-flex",flex:"0 0 auto"},"data-gufi-src":"components/Contacto.tsx:73"},icono),__gh(Antetitulo,null,titulo))}function Contacto(){let{t,L}=useLang(),saludo=t("Hola, escribo por \xC1gora Palas: ","Hello, I am writing about \xC1gora Palas: ");return __gh(Seccion,{id:"contacto"},__gh(Aparece,null,__gh(Antetitulo,null,t("Contacto","Contact")),__gh(Titular,{style:{marginTop:14}},L(COPY.contactoTitulo)),__gh("p",{style:{margin:"18px 0 0",maxWidth:"58ch",fontSize:16,lineHeight:1.68,color:T.grisTexto},"data-gufi-src":"components/Contacto.tsx:89"},L(COPY.contactoEntradilla))),__gh(Aparece,{retardo:.08,style:{marginTop:"clamp(28px, 4vw, 40px)"}},__gh("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(236px, 1fr))",gap:16,alignItems:"start"},"data-gufi-src":"components/Contacto.tsx:99"},__gh("div",{style:TARJETA2,"data-gufi-src":"components/Contacto.tsx:101"},__gh(Cabecera,{icono:__gh(import_lucide_react10.MessageCircle,{size:15,strokeWidth:1.9}),titulo:"WhatsApp"}),__gh(Via,{href:WHATSAPP(saludo)},CASA.telefono)),__gh("div",{style:TARJETA2,"data-gufi-src":"components/Contacto.tsx:106"},__gh(Cabecera,{icono:__gh(import_lucide_react10.Phone,{size:15,strokeWidth:1.9}),titulo:t("Tel\xE9fono","Phone")}),__gh(Via,{href:"tel:+"+CASA.telefonoRaw},CASA.telefono),__gh(Via,{href:"tel:+"+CASA.telefono2Raw,separa:!0},CASA.telefono2)),__gh("div",{style:TARJETA2,"data-gufi-src":"components/Contacto.tsx:112"},__gh(Cabecera,{icono:__gh(import_lucide_react10.Mail,{size:15,strokeWidth:1.9}),titulo:t("Correo","Email")}),__gh(Via,{href:"mailto:"+CASA.email},CASA.email))),__gh("div",{style:{marginTop:"clamp(26px, 3.6vw, 34px)",paddingTop:"clamp(22px, 3vw, 28px)",borderTop:`1px solid ${T.linea}`,display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(250px, 1fr))",gap:24,alignItems:"start"},"data-gufi-src":"components/Contacto.tsx:121"},__gh("div",{style:{display:"flex",gap:12},"data-gufi-src":"components/Contacto.tsx:132"},__gh(import_lucide_react10.MapPin,{size:17,strokeWidth:1.7,"aria-hidden":"true",style:{flex:"0 0 auto",marginTop:2,color:T.grisTenue}}),__gh("address",{style:{fontStyle:"normal",fontFamily:T.mono,fontSize:14,lineHeight:1.7,color:T.pizarra2,margin:0},"data-gufi-src":"components/Contacto.tsx:134"},DIRECCION2.map(linea=>__gh("div",{key:linea,"data-gufi-src":"components/Contacto.tsx:135"},linea)))),__gh("div",{style:{display:"flex",gap:12},"data-gufi-src":"components/Contacto.tsx:139"},__gh(import_lucide_react10.Clock,{size:17,strokeWidth:1.7,"aria-hidden":"true",style:{flex:"0 0 auto",marginTop:2,color:T.grisTenue}}),__gh("div",{style:{display:"flex",gap:28,flexWrap:"wrap"},"data-gufi-src":"components/Contacto.tsx:141"},__gh(Dato,{valor:L(CASA.entrada),etiqueta:t("Entrada","Check-in")}),__gh(Dato,{valor:L(CASA.salida),etiqueta:t("Salida","Check-out")}))))))}var import_react11=require("react"),import_lucide_react11=require("lucide-react");var DIRECCION3=[CASA.calle,`${CASA.cp} ${CASA.municipio}`,CASA.provincia],HILO2="rgba(247,247,245,0.16)";function Cierre({onReserva}){let{t,L}=useLang(),ref=(0,import_react11.useRef)(null),avance=useAvanceSuave(ref,"cruza","planea"),y=(0,import_framer_motion.useTransform)(avance,[0,1],["6%","-6%"]),saludo=t("Hola, escribo por \xC1gora Palas: ","Hello, I am writing about \xC1gora Palas: ");return __gh("section",{ref,"data-ag-oscuro":"1",style:{position:"relative",width:"100%",background:T.pizarra,color:T.cal,overflow:"hidden",padding:"clamp(68px, 11vw, 132px) 20px clamp(56px, 8vw, 92px)"},"data-gufi-src":"components/Cierre.tsx:58"},__gh("span",{"aria-hidden":"true",style:{position:"absolute",inset:0,pointerEvents:"none",backgroundImage:"repeating-linear-gradient(90deg, rgba(168,190,205,0.05) 0 1px, transparent 1px 48px)"},"data-gufi-src":"components/Cierre.tsx:74"}),__gh(import_framer_motion.motion.div,{style:{position:"relative",maxWidth:ANCHO,margin:"0 auto",y}},__gh(Aparece,{y:10},__gh(Antetitulo,{color:T.azulClaro},t("Nos vemos","See you soon"))),__gh(RevelaLineas,{as:"h2",className:"ag-h1",retardo:.06,texto:L(COPY.cierreTitulo),style:{fontFamily:T.display,fontWeight:300,color:T.cal,margin:"18px 0 0"}}),__gh(FileteVivo,{sobreOscuro:!0,retardo:.2,style:{margin:"clamp(26px, 4vw, 40px) 0 0",maxWidth:420}}),__gh("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(min(100%, 260px), 1fr))",gap:"clamp(26px, 4vw, 48px)",alignItems:"start",marginTop:"clamp(26px, 3.6vw, 40px)"},"data-gufi-src":"components/Cierre.tsx:103"},__gh(Aparece,{retardo:.1},__gh("p",{style:{margin:0,maxWidth:"42ch",fontFamily:T.texto,fontSize:"clamp(15px, 1.6vw, 17px)",lineHeight:1.68,color:"rgba(247,247,245,0.78)"},"data-gufi-src":"components/Cierre.tsx:111"},L(COPY.cierreTexto)),__gh("div",{style:{display:"flex",flexWrap:"wrap",gap:10,marginTop:"clamp(22px, 3vw, 30px)"},"data-gufi-src":"components/Cierre.tsx:119"},__gh(Boton,{variante:"solido",onClick:onReserva,ariaLabel:t("Reservar, se abre en otra pesta\xF1a","Book, opens in a new tab"),style:{background:T.cal,borderColor:T.cal,color:T.pizarra}},t("Reservar","Book"),__gh(import_lucide_react11.ArrowUpRight,{size:16,strokeWidth:1.9,"aria-hidden":"true"})),__gh(Boton,{variante:"contorno",href:WHATSAPP(saludo),style:{borderColor:HILO2,color:T.cal}},__gh(import_lucide_react11.MessageCircle,{size:16,strokeWidth:1.8,"aria-hidden":"true"}),"WhatsApp"),__gh(Boton,{variante:"contorno",href:`tel:+${CASA.telefonoRaw}`,style:{borderColor:HILO2,color:T.cal}},__gh(import_lucide_react11.Phone,{size:16,strokeWidth:1.8,"aria-hidden":"true"}),CASA.telefono))),__gh(Aparece,{retardo:.18},__gh("div",{style:{display:"flex",flexWrap:"wrap",gap:"22px 34px"},"data-gufi-src":"components/Cierre.tsx:153"},[{valor:L(CASA.entrada),etiqueta:t("Entrada","Check-in")},{valor:L(CASA.salida),etiqueta:t("Salida","Check-out")}].map(d=>__gh("div",{key:d.etiqueta,"data-gufi-src":"components/Cierre.tsx:161"},__gh("div",{style:{fontFamily:T.mono,fontSize:15,color:T.cal,letterSpacing:"-0.01em"},"data-gufi-src":"components/Cierre.tsx:162"},d.valor),__gh("div",{style:{fontFamily:T.texto,fontSize:11.5,color:T.azulClaro,marginTop:3,letterSpacing:"0.04em"},"data-gufi-src":"components/Cierre.tsx:163"},d.etiqueta)))),__gh("address",{style:{fontStyle:"normal",fontFamily:T.mono,fontSize:14,lineHeight:1.75,color:T.azulClaro,margin:"clamp(22px, 3vw, 30px) 0 0"},"data-gufi-src":"components/Cierre.tsx:170"},DIRECCION3.map(linea=>__gh("div",{key:linea,"data-gufi-src":"components/Cierre.tsx:174"},linea)))))))}var DIRECCION4=[CASA.calle,`${CASA.cp} ${CASA.municipio}`,CASA.provincia],PULSABLE={display:"inline-flex",alignItems:"center",minHeight:44,padding:"2px 0",background:"transparent",border:"none",borderRadius:T.r1,margin:0,textAlign:"left",cursor:"pointer",fontFamily:T.texto,fontSize:14.5,color:T.cal,textDecoration:"none"};function Pie({onIrA,onLegal}){let{t,L}=useLang(),filete=__gh(Filete,{sobreOscuro:!0,style:{margin:"clamp(26px, 3.6vw, 34px) 0"}}),linea=__gh("div",{"aria-hidden":"true",style:{height:1,background:T.pizarra2,margin:"clamp(26px, 3.6vw, 34px) 0"},"data-gufi-src":"components/Pie.tsx:58"});return __gh("footer",{"data-ag-oscuro":"1",style:{background:T.pizarra,color:T.cal,padding:"clamp(44px, 7vw, 72px) 20px clamp(26px, 4vw, 34px)"},"data-gufi-src":"components/Pie.tsx:65"},__gh("div",{style:{maxWidth:ANCHO,margin:"0 auto"},"data-gufi-src":"components/Pie.tsx:66"},__gh("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(240px, 1fr))",gap:"32px 28px"},"data-gufi-src":"components/Pie.tsx:68"},__gh("div",{"data-gufi-src":"components/Pie.tsx:69"},__gh("div",{style:{display:"flex",alignItems:"center",gap:11},"data-gufi-src":"components/Pie.tsx:70"},__gh(Isotipo,{size:30,color:T.azulClaro}),__gh("span",{style:{fontFamily:T.display,fontWeight:300,fontSize:21,letterSpacing:"-0.01em",color:T.cal},"data-gufi-src":"components/Pie.tsx:72"},CASA.nombre)),__gh("address",{style:{fontStyle:"normal",fontFamily:T.mono,fontSize:13,lineHeight:1.75,color:T.azulClaro,margin:"16px 0 0"},"data-gufi-src":"components/Pie.tsx:76"},DIRECCION4.map(linea2=>__gh("div",{key:linea2,"data-gufi-src":"components/Pie.tsx:77"},linea2)))),__gh("div",{"data-gufi-src":"components/Pie.tsx:81"},__gh(Antetitulo,{color:T.grisTenue},t("Contacto","Contact")),__gh("div",{style:{display:"flex",flexDirection:"column",marginTop:6},"data-gufi-src":"components/Pie.tsx:83"},__gh("a",{href:"tel:+"+CASA.telefonoRaw,style:{...PULSABLE,fontFamily:T.mono,fontSize:14},"data-gufi-src":"components/Pie.tsx:84"},CASA.telefono),__gh("a",{href:"tel:+"+CASA.telefono2Raw,style:{...PULSABLE,fontFamily:T.mono,fontSize:14},"data-gufi-src":"components/Pie.tsx:85"},CASA.telefono2),__gh("a",{href:"mailto:"+CASA.email,style:{...PULSABLE,fontFamily:T.mono,fontSize:14},"data-gufi-src":"components/Pie.tsx:86"},CASA.email)))),filete,__gh("nav",{"aria-label":t("Secciones","Sections"),"data-gufi-src":"components/Pie.tsx:93"},__gh(Antetitulo,{color:T.grisTenue},t("Secciones","Sections")),__gh("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(150px, 1fr))",gap:"0 20px",marginTop:6},"data-gufi-src":"components/Pie.tsx:95"},SECCIONES.map(s=>__gh("button",{key:s.id,type:"button",onClick:()=>onIrA(s.id),style:PULSABLE,"data-gufi-src":"components/Pie.tsx:97"},L(s.rotulo))))),linea,__gh("div",{style:{display:"flex",flexWrap:"wrap",alignItems:"center",justifyContent:"space-between",gap:"4px 24px"},"data-gufi-src":"components/Pie.tsx:106"},__gh("span",{style:{fontFamily:T.mono,fontSize:12,letterSpacing:"0.02em",color:T.grisTenue},"data-gufi-src":"components/Pie.tsx:109"},new Date().getFullYear()," \xB7 ",CASA.nombre," \xB7 NIF ",CASA.nif),__gh("div",{style:{display:"flex",flexWrap:"wrap",gap:22},"data-gufi-src":"components/Pie.tsx:112"},__gh("button",{type:"button",onClick:()=>onLegal("privacidad"),style:{...PULSABLE,fontSize:13,color:T.azulClaro},"data-gufi-src":"components/Pie.tsx:113"},t("Privacidad","Privacy")),__gh("button",{type:"button",onClick:()=>onLegal("condiciones"),style:{...PULSABLE,fontSize:13,color:T.azulClaro},"data-gufi-src":"components/Pie.tsx:116"},t("Condiciones","Terms"))))))}var import_react12=__toESM(require("react")),import_lucide_react12=require("lucide-react");var HORIZONTE_SUGERENCIA=60,VACIO2=new Set,SUJETOS=[[/^bano-adaptado/,{es:"ba\xF1o adaptado",en:"accessible bathroom"}],[/^bano/,{es:"ba\xF1o",en:"bathroom"}],[/^dormitorio/,{es:"dormitorio",en:"bedroom"}],[/^cocina/,{es:"cocina",en:"kitchen"}],[/^salon/,{es:"sal\xF3n",en:"living area"}],[/^estudio/,{es:"estudio",en:"studio"}],[/^apartamento/,{es:"sal\xF3n y dormitorio",en:"living area and bedroom"}],[/^detalle-balcon/,{es:"el balc\xF3n",en:"the balcony"}],[/^detalle-toallas/,{es:"las toallas",en:"the towels"}],[/^detalle-papel/,{es:"el papel pintado",en:"the wallpaper"}],[/^detalle/,{es:"un detalle",en:"a detail"}],[/^edificio-portal/,{es:"el portal",en:"the entrance hall"}],[/^edificio/,{es:"la fachada",en:"the fa\xE7ade"}],[/^marca/,{es:"el r\xF3tulo",en:"the sign"}]];function babosaDe(url){let s=String(url||"");try{s=decodeURIComponent(s)}catch{}return(s.split("_").pop()||"").replace(/\.(webp|avif|jpe?g|png)$/i,"").replace(/-sm$/i,"").toLowerCase()}function sujetoDe(url){let babosa=babosaDe(url);if(!babosa)return null;for(let[re,texto]of SUJETOS)if(re.test(babosa))return texto;return null}function tramos(fechas){let out=[];for(let f of[...fechas].sort()){let ult=out[out.length-1];ult&&sumarDias(ult.fin,1)===f?ult.fin=f:out.push({ini:f,fin:f})}return out}var mesDe=iso=>String(iso||"").slice(0,7);function tramoTexto(tr,lang2){return tr.ini===tr.fin?fechaCorta(tr.ini,lang2):mesDe(tr.ini)===mesDe(tr.fin)?`${Number(tr.ini.slice(8,10))}\u2013${fechaCorta(tr.fin,lang2)}`:`${fechaCorta(tr.ini,lang2)}\u2013${fechaCorta(tr.fin,lang2)}`}function sinSolape(texto,prefijo){let a=String(texto||"").trim(),p=String(prefijo||"").trim().replace(/[.,;:]+$/,"");return!a||!p||!a.toLowerCase().startsWith(p.toLowerCase())?a:a.slice(p.length).replace(/^[\s.,;:·—–-]+/,"").trim()}function primeraLibre(tomadas,desde,noches){if(!desde||noches<1)return"";for(let i=0;i<=HORIZONTE_SUGERENCIA;i++){let cand=sumarDias(desde,i);if(!cand)return"";let ns=nochesDe(cand,noches);if(ns.length===noches&&!ns.some(n=>tomadas.has(n)))return cand}return""}function useEscritorio(minimo=860){let consulta=`(min-width: ${minimo}px)`,[esc,setEsc]=(0,import_react12.useState)(()=>typeof window<"u"&&window.matchMedia?window.matchMedia(consulta).matches:!1);return(0,import_react12.useEffect)(()=>{if(typeof window>"u"||!window.matchMedia)return;let mq=window.matchMedia(consulta),alCambiar=()=>setEsc(mq.matches);return alCambiar(),mq.addEventListener?mq.addEventListener("change",alCambiar):mq.addListener(alCambiar),()=>{mq.removeEventListener?mq.removeEventListener("change",alCambiar):mq.removeListener(alCambiar)}},[consulta]),esc}function ApartamentoDialog({gufi,apartamento,ocupacion,estancia,setEstancia,minFecha,onCerrar,onAnadido}){let{t,L,lang:lang2}=useLang(),quieto=(0,import_framer_motion.useReducedMotion)(),escritorio=useEscritorio(),[foto,setFoto]=(0,import_react12.useState)(0),[huespedes,setHuespedes]=(0,import_react12.useState)(1),[bloqueado,setBloqueado]=(0,import_react12.useState)(""),panelRef=(0,import_react12.useRef)(null),focoPrevio=(0,import_react12.useRef)(null),cerrarRef=(0,import_react12.useRef)(onCerrar),nFotosRef=(0,import_react12.useRef)(0),aptoId=apartamento?Number(apartamento.id):0,capacidad=apartamento?Math.max(1,Number(apartamento.capacidad)||1):1,fotos=apartamento&&Array.isArray(apartamento.fotos)?apartamento.fotos.filter(Boolean):[],fotosSm=apartamento&&Array.isArray(apartamento.fotosSm)?apartamento.fotosSm:[];(0,import_react12.useEffect)(()=>{cerrarRef.current=onCerrar,nFotosRef.current=fotos.length}),(0,import_react12.useEffect)(()=>{if(!aptoId)return;setFoto(0),setHuespedes(1),setBloqueado(""),focoPrevio.current=(typeof document<"u"?document.activeElement:null)||null;let raizPrev=document.documentElement.style.overflow;document.documentElement.style.overflow="hidden";let enfocables=()=>{let raiz=panelRef.current;return raiz?Array.from(raiz.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])')).filter(el=>!el.hasAttribute("disabled")&&el.getAttribute("aria-hidden")!=="true"&&el.offsetParent!==null):[]},alPulsar=e=>{if(e.key==="Escape"){e.preventDefault(),cerrarRef.current();return}if(e.key==="Tab"){let nodos=enfocables();if(!nodos.length)return;let primero=nodos[0],ultimo=nodos[nodos.length-1],act=document.activeElement;if(!panelRef.current||!panelRef.current.contains(act)){e.preventDefault(),primero.focus();return}e.shiftKey&&act===primero?(e.preventDefault(),ultimo.focus()):!e.shiftKey&&act===ultimo&&(e.preventDefault(),primero.focus());return}if(e.key!=="ArrowLeft"&&e.key!=="ArrowRight")return;let et=document.activeElement&&document.activeElement.tagName||"";if(et==="INPUT"||et==="SELECT"||et==="TEXTAREA")return;let n=nFotosRef.current;n<2||(e.preventDefault(),setFoto(i=>e.key==="ArrowLeft"?(i-1+n)%n:(i+1)%n))};document.addEventListener("keydown",alPulsar);let reloj=window.setTimeout(()=>{(panelRef.current?.querySelector("[data-autofoco]")||enfocables()[0])?.focus?.()},60);return()=>{document.removeEventListener("keydown",alPulsar),window.clearTimeout(reloj),document.documentElement.style.overflow=raizPrev;try{focoPrevio.current?.focus?.()}catch{}}},[aptoId]);let entrada=String(estancia?.entrada||""),nochesCrudas=Number(estancia?.noches),noches=Number.isFinite(nochesCrudas)&&nochesCrudas>=1?Math.min(60,Math.round(nochesCrudas)):1,nochesSel=(0,import_react12.useMemo)(()=>entrada?nochesDe(entrada,noches):[],[entrada,noches]),tomadas=aptoId&&ocupacion&&ocupacion[aptoId]||VACIO2,choque=(0,import_react12.useMemo)(()=>nochesSel.find(n=>tomadas.has(n))||"",[nochesSel,tomadas]),sugerida=(0,import_react12.useMemo)(()=>{if(!choque)return"";let desde=entrada&&entrada>String(minFecha||"")?entrada:String(minFecha||""),libre=primeraLibre(tomadas,desde,noches);return libre&&libre!==entrada?libre:""},[choque,entrada,minFecha,noches,tomadas]),ocupadasProximas=(0,import_react12.useMemo)(()=>{let suelo=String(minFecha||""),futuras=Array.from(tomadas).filter(d=>!suelo||d>=suelo);return tramos(futuras)},[tomadas,minFecha]),[tarifa,setTarifa]=(0,import_react12.useState)({estado:"sinFechas",apto:null}),idApto=apartamento?apartamento.id:0;if((0,import_react12.useEffect)(()=>{if(!idApto||!entrada||!(noches>0)){setTarifa({estado:"sinFechas",apto:null});return}let vigente=!0;setTarifa({estado:"pidiendo",apto:null});let reloj=window.setTimeout(async()=>{let r=await tarifas(gufi,{entrada,salida:salidaDe(entrada,noches),adultos:huespedes,idioma:lang2});if(!vigente)return;let mio=r.ok&&r.apartamentos.find(a=>a.productoId===idApto)||null;setTarifa(mio?{estado:"ok",apto:mio}:{estado:"falla",apto:null})},300);return()=>{vigente=!1,window.clearTimeout(reloj)}},[gufi,idApto,entrada,noches,huespedes,lang2]),!apartamento)return null;let nombre=L(apartamento.nombre,apartamento.nombreEn),nocheTexto=n=>`${n} ${n===1?t("noche","night"):t("noches","nights")}`,vendido=tarifa.estado==="ok"&&!!tarifa.apto&&!tarifa.apto.disponible,hhmm=v=>{let m=/^(\d{2}):(\d{2})/.exec(String(v||""));return m?`${m[1]}:${m[2]}`:""},entradaApto=hhmm(tarifa.apto&&tarifa.apto.entradaDesde),salidaApto=hhmm(tarifa.apto&&tarifa.apto.salidaHasta),horaEntrada=entradaApto?t(`a partir de las ${entradaApto}`,`from ${entradaApto}`):L(CASA.entrada),horaSalida=salidaApto?t(`hasta las ${salidaApto}`,`by ${salidaApto}`):L(CASA.salida),motivo="";entrada?minFecha&&entrada{if(!puedeAnadir){let el=document.getElementById("ag-campo-entrada");el?.scrollIntoView({behavior:quieto?"auto":"smooth",block:"center"}),el?.querySelector("input,select")?.focus?.();return}let url=enlaceMotor({aviratoId:apartamento.ficha?.aviratoId,entrada,salida:salidaDe(entrada,noches),adultos:huespedes,idioma:lang2}),ventana=null;try{ventana=window.open(url,"_blank","noopener,noreferrer")}catch{ventana=null}if(!ventana){setBloqueado(url);return}setBloqueado(""),onAnadido()},ponEntrada=v=>{setEstancia(prev=>({...prev||{},entrada:v}))},ponEstancia=(nuevaEntrada,nuevasNoches)=>{setEstancia(()=>({entrada:nuevaEntrada,noches:Math.max(1,nuevasNoches)}))},salida=salidaDe(entrada,noches),altDe=i=>{let s=sujetoDe(fotos[i]||"");return s?`${nombre} \u2014 ${L(s)}`:`${nombre} \u2014 ${t("foto","photo")} ${i+1} ${t("de","of")} ${fotos.length}`},iFoto=fotos.length?Math.min(foto,fotos.length-1):0,flecha=lado=>({position:"absolute",top:"50%",transform:"translateY(-50%)",left:lado==="izq"?10:void 0,right:lado==="der"?10:void 0,width:44,height:44,borderRadius:999,display:"grid",placeItems:"center",cursor:"pointer",background:"rgba(255,255,255,0.92)",border:`1px solid ${T.linea}`,color:T.pizarra}),galeria=__gh("div",{style:{background:T.papel},"data-gufi-src":"components/ApartamentoDialog.tsx:455"},__gh("div",{style:{position:"relative"},"data-gufi-src":"components/ApartamentoDialog.tsx:456"},fotos.length>0?__gh(Foto,{src:fotos[iFoto],srcSm:fotosSm[iFoto],sizes:"(min-width: 860px) 46vw, 100vw",alt:altDe(iFoto),ratio:"4 / 3"}):__gh("div",{style:{aspectRatio:"4 / 3",display:"grid",placeItems:"center",padding:20,textAlign:"center",fontFamily:T.texto,fontSize:13.5,color:T.grisTexto,lineHeight:1.6},"data-gufi-src":"components/ApartamentoDialog.tsx:460"},t("Las fotos de este apartamento a\xFAn no est\xE1n publicadas. Escr\xEDbenos y te las mandamos.","The photos of this apartment are not published yet. Write to us and we will send them.")),fotos.length>1?__gh(import_react12.default.Fragment,null,__gh("button",{type:"button",style:flecha("izq"),onClick:()=>setFoto(i=>(i-1+fotos.length)%fotos.length),"aria-label":t("Foto anterior","Previous photo"),"data-gufi-src":"components/ApartamentoDialog.tsx:471"},__gh(import_lucide_react12.ChevronLeft,{size:19})),__gh("button",{type:"button",style:flecha("der"),onClick:()=>setFoto(i=>(i+1)%fotos.length),"aria-label":t("Foto siguiente","Next photo"),"data-gufi-src":"components/ApartamentoDialog.tsx:477"},__gh(import_lucide_react12.ChevronRight,{size:19})),__gh("div",{"aria-live":"polite",style:{position:"absolute",left:12,bottom:12,padding:"4px 9px",borderRadius:T.r1,background:"rgba(34,39,44,0.62)",color:"#FFFFFF",fontFamily:T.mono,fontSize:11.5,letterSpacing:"0.04em"},"data-gufi-src":"components/ApartamentoDialog.tsx:483"},iFoto+1," / ",fotos.length)):null),fotos.length>1?__gh("div",{style:{display:"grid",gridTemplateColumns:"repeat(4, 1fr)",gap:6,padding:8},"data-gufi-src":"components/ApartamentoDialog.tsx:497"},fotos.map((src,i)=>{let activa=i===iFoto,s=sujetoDe(src);return __gh("button",{key:`${src}-${i}`,type:"button",onClick:()=>setFoto(i),"aria-pressed":activa,"aria-label":s?`${t("Ver","View")} ${L(s)}`:`${t("Ver foto","View photo")} ${i+1} ${t("de","of")} ${fotos.length}`,style:{padding:0,border:`1px solid ${activa?T.azulHondo:"transparent"}`,borderRadius:T.r1,overflow:"hidden",cursor:"pointer",background:"transparent",opacity:activa?1:.72,transition:"opacity 160ms ease, border-color 160ms ease",minHeight:44},"data-gufi-src":"components/ApartamentoDialog.tsx:502"},__gh(Foto,{src:fotosSm[i]||src,alt:"",ratio:"4 / 3"}))})):null),dobles=Number(apartamento.camaDoble)||0,indiv=Number(apartamento.camasIndividuales)||0,camas=[dobles>0?`${dobles} ${dobles===1?t("doble","double"):t("dobles","doubles")}`:"",indiv>0?`${indiv} ${indiv===1?t("individual","single"):t("individuales","singles")}`:""].filter(Boolean).join(" + "),caracterEn=apartamento.caracterEn||"",caracter=L(apartamento.caracter,caracterEn||apartamento.caracter),descripcion=sinSolape(L(apartamento.descripcion,apartamento.descripcionEn),caracter),barata=tarifa.apto&&tarifa.apto.disponible&&tarifa.apto.tarifas.length?tarifa.apto.tarifas[0]:null,flexible=barata&&tarifa.apto&&tarifa.apto.tarifas.find(x=>x.reembolsable&&x!==barata)||null,chico={fontFamily:T.texto,fontSize:11.5,lineHeight:1.6,color:T.grisTenue},ficha=__gh("div",{style:{padding:escritorio?"28px 28px 24px":"22px 20px 20px",minWidth:0},"data-gufi-src":"components/ApartamentoDialog.tsx:563"},__gh("div",{style:{fontFamily:T.mono,fontSize:21,lineHeight:1,letterSpacing:"0.04em",color:T.azulHondo},"data-gufi-src":"components/ApartamentoDialog.tsx:564"},apartamento.codigo),__gh("h2",{id:"ag-ficha-titulo",style:{fontFamily:T.display,fontWeight:300,color:T.pizarra,margin:"8px 0 0",fontSize:"clamp(23px, 3.2vw, 31px)",lineHeight:1.16,letterSpacing:"-0.015em",overflowWrap:"anywhere"},"data-gufi-src":"components/ApartamentoDialog.tsx:567"},nombre),caracter?__gh("p",{style:{fontFamily:T.display,fontWeight:300,fontSize:17.5,lineHeight:1.45,color:T.pizarra2,margin:"12px 0 0",overflowWrap:"anywhere"},"data-gufi-src":"components/ApartamentoDialog.tsx:578"},caracter):null,__gh(Filete,{style:{margin:"20px 0 18px"}}),__gh("div",{style:{display:"flex",flexWrap:"wrap",gap:"18px 26px"},"data-gufi-src":"components/ApartamentoDialog.tsx:588"},Number(apartamento.m2)>0?__gh(Dato,{valor:`${apartamento.m2} m\xB2`,etiqueta:t("superficie","floor area")}):null,Number(apartamento.capacidad)>0?__gh(Dato,{valor:String(apartamento.capacidad),etiqueta:t("plazas","sleeps")}):null,__gh(Dato,{valor:L(apartamento.plantaEtiqueta),etiqueta:t("planta","floor")}),camas?__gh(Dato,{valor:camas,etiqueta:t("camas","beds")}):null),descripcion?__gh("p",{style:{fontFamily:T.texto,fontSize:14.5,lineHeight:1.72,color:T.grisTexto,margin:"20px 0 0",overflowWrap:"anywhere"},"data-gufi-src":"components/ApartamentoDialog.tsx:596"},descripcion):null,__gh("div",{style:{display:"flex",alignItems:"flex-start",gap:9,marginTop:18},"data-gufi-src":"components/ApartamentoDialog.tsx:604"},__gh(import_lucide_react12.Clock,{size:15,color:T.azul,style:{flex:"0 0 auto",marginTop:2},"aria-hidden":"true"}),__gh("div",{style:{fontFamily:T.texto,fontSize:13,lineHeight:1.65,color:T.grisTexto,minWidth:0},"data-gufi-src":"components/ApartamentoDialog.tsx:606"},__gh("strong",{style:{fontWeight:600,color:T.pizarra2},"data-gufi-src":"components/ApartamentoDialog.tsx:615"},t("Entrada","Check-in"))," ",horaEntrada,__gh("span",{style:{color:T.grisTenue},"data-gufi-src":"components/ApartamentoDialog.tsx:617"}," \xB7 "),__gh("strong",{style:{fontWeight:600,color:T.pizarra2},"data-gufi-src":"components/ApartamentoDialog.tsx:618"},t("Salida","Check-out"))," ",horaSalida)),__gh("div",{style:{marginTop:24,padding:escritorio?18:15,background:T.cal,border:`1px solid ${T.linea}`,borderRadius:T.r3},"data-gufi-src":"components/ApartamentoDialog.tsx:624"},__gh("div",{style:{fontFamily:T.mono,fontSize:11,letterSpacing:"0.22em",textTransform:"uppercase",color:T.azulHondo},"data-gufi-src":"components/ApartamentoDialog.tsx:628"},t("Tu estancia","Your stay")),__gh("div",{id:"ag-campo-entrada",style:{marginTop:14,minWidth:0},"data-gufi-src":"components/ApartamentoDialog.tsx:642"},__gh(CampoEstancia,{id:"ag-ficha-fechas",entrada,noches,onCambio:ponEstancia,minFecha:String(minFecha||""),maxNoches:MAX_NOCHES,ocupadas:tomadas,notaTope:L(ESTANCIA_LARGA)})),__gh("div",{style:{marginTop:12,maxWidth:200},"data-gufi-src":"components/ApartamentoDialog.tsx:655"},__gh(Etiqueta,{htmlFor:"ag-huespedes"},t("Hu\xE9spedes","Guests")),__gh("select",{id:"ag-huespedes",value:String(huespedes),onChange:e=>setHuespedes(Number(e.target.value)),style:campoBase,"data-gufi-src":"components/ApartamentoDialog.tsx:657"},Array.from({length:capacidad},(_,i)=>i+1).map(n=>__gh("option",{key:n,value:String(n),"data-gufi-src":"components/ApartamentoDialog.tsx:659"},n)))),__gh("div",{"aria-live":"polite",style:{marginTop:10},"data-gufi-src":"components/ApartamentoDialog.tsx:668"},entrada?__gh("p",{style:{margin:0,fontFamily:T.mono,fontSize:12.5,letterSpacing:"0.02em",color:T.grisTexto},"data-gufi-src":"components/ApartamentoDialog.tsx:670"},fechaCorta(entrada,lang2)," \u2192 ",fechaCorta(salida,lang2)," \xB7 ",nocheTexto(noches)):null),choque?__gh("div",{id:"ag-choque",role:"status",style:{marginTop:12,padding:"11px 13px",borderRadius:T.r2,background:"rgba(168,80,60,0.07)",border:"1px solid rgba(168,80,60,0.26)"},"data-gufi-src":"components/ApartamentoDialog.tsx:682"},__gh("div",{style:{display:"flex",alignItems:"flex-start",gap:9},"data-gufi-src":"components/ApartamentoDialog.tsx:690"},__gh(import_lucide_react12.AlertTriangle,{size:15,color:T.alerta,style:{flex:"0 0 auto",marginTop:2},"aria-hidden":"true"}),__gh("div",{style:{fontFamily:T.texto,fontSize:13,lineHeight:1.6,color:T.pizarra,minWidth:0},"data-gufi-src":"components/ApartamentoDialog.tsx:692"},t(`La noche del ${fechaLarga(choque,"es")} ya est\xE1 ocupada en este apartamento.`,`The night of ${fechaLarga(choque,"en")} is already taken in this apartment.`))),sugerida?__gh(Boton,{variante:"contorno",ancho:!0,onClick:()=>ponEntrada(sugerida),style:{marginTop:10}},t(`Entrar el ${fechaLarga(sugerida,"es")}: ${nocheTexto(noches)} libres`,`Arrive on ${fechaLarga(sugerida,"en")}: ${nocheTexto(noches)} free`),__gh(import_lucide_react12.ArrowRight,{size:15,"aria-hidden":"true"})):__gh("div",{style:{...chico,marginTop:8,paddingLeft:24,color:T.grisTexto},"data-gufi-src":"components/ApartamentoDialog.tsx:713"},t("No hay ning\xFAn hueco de estas noches en los dos pr\xF3ximos meses. Prueba con otro apartamento o escr\xEDbenos.","There is no gap for these nights in the next two months. Try another apartment or write to us."))):null,ocupadasProximas.length>0?__gh("div",{style:{marginTop:13},"data-gufi-src":"components/ApartamentoDialog.tsx:722"},__gh("div",{style:{display:"flex",flexWrap:"wrap",alignItems:"baseline",gap:6},"data-gufi-src":"components/ApartamentoDialog.tsx:723"},__gh("span",{style:{...chico,color:T.grisTexto},"data-gufi-src":"components/ApartamentoDialog.tsx:724"},t("ocupado:","booked:")),ocupadasProximas.slice(0,3).map(tr=>__gh("span",{key:tr.ini,style:{fontFamily:T.mono,fontSize:11.5,letterSpacing:"0.02em",color:T.pizarra2,background:T.nieblaSuave,border:`1px solid ${T.lineaSuave}`,borderRadius:T.r1,padding:"2px 7px",whiteSpace:"nowrap"},"data-gufi-src":"components/ApartamentoDialog.tsx:726"},tramoTexto(tr,lang2))),ocupadasProximas.length>3?__gh("span",{style:chico,"data-gufi-src":"components/ApartamentoDialog.tsx:738"},t(`y ${ocupadasProximas.length-3} m\xE1s`,`and ${ocupadasProximas.length-3} more`)):null)):null),barata&&!barata.reembolsable?__gh("div",{style:{...chico,marginTop:16,display:"flex",flexDirection:"column",gap:7},"data-gufi-src":"components/ApartamentoDialog.tsx:762"},__gh("p",{style:{margin:0,color:T.pizarra2},"data-gufi-src":"components/ApartamentoDialog.tsx:763"},t(`La tarifa de ${euros(barata.total,"es")} es la NO REEMBOLSABLE: no admite cancelaci\xF3n.`,`The ${euros(barata.total,"en")} rate is NON-REFUNDABLE: it cannot be cancelled.`)),flexible?__gh("p",{style:{margin:0},"data-gufi-src":"components/ApartamentoDialog.tsx:770"},t(`Con la tarifa flexible (${euros(flexible.total,"es")}) se aplica esto: `,`The flexible rate (${euros(flexible.total,"en")}) comes with this: `),L(CANCELACION)):null,__gh("p",{style:{margin:0},"data-gufi-src":"components/ApartamentoDialog.tsx:778"},t("Las dos se eligen en el motor de reservas.","You pick between the two in the booking engine."))):__gh("p",{style:{...chico,marginTop:16,marginBottom:0},"data-gufi-src":"components/ApartamentoDialog.tsx:783"},L(CANCELACION))),pie=__gh("div",{style:{flex:"0 0 auto",background:T.papel,borderTop:`1px solid ${T.linea}`,padding:escritorio?"14px 28px 16px":"13px 20px calc(env(safe-area-inset-bottom, 0px) + 14px)"},"data-gufi-src":"components/ApartamentoDialog.tsx:792"},__gh("div",{style:{display:"flex",alignItems:"flex-end",justifyContent:"space-between",gap:14,flexWrap:"wrap"},"data-gufi-src":"components/ApartamentoDialog.tsx:799"},__gh("div",{style:{minWidth:0},"data-gufi-src":"components/ApartamentoDialog.tsx:800"},__gh("div",{style:{fontFamily:T.display,fontWeight:300,fontSize:27,lineHeight:1.05,color:T.pizarra},"data-gufi-src":"components/ApartamentoDialog.tsx:801"},barata?euros(barata.total,lang2):tarifa.estado==="pidiendo"?__gh("span",{style:{fontSize:17,color:T.grisTenue},"data-gufi-src":"components/ApartamentoDialog.tsx:805"},t("Calculando el precio\u2026","Checking the price\u2026")):__gh("span",{style:{fontSize:19,color:vendido?T.alerta:T.grisTexto},"data-gufi-src":"components/ApartamentoDialog.tsx:806"},vendido?t("Sin disponibilidad","Not available"):tarifa.estado==="sinFechas"?t("Elige tus fechas","Pick your dates"):t("Precio a consultar","Price on request"))),__gh("div",{style:{...chico,marginTop:4,color:T.grisTexto},"data-gufi-src":"components/ApartamentoDialog.tsx:814"},barata?`${euros(barata.porNoche,lang2)} \xD7 ${nocheTexto(noches)}${barata.reembolsable?"":` \xB7 ${t("no reembolsable","non-refundable")}`}`:vendido?t("El motor da estas noches por vendidas en este apartamento.","The engine has these nights as sold for this apartment."):tarifa.estado==="falla"?t("No hemos podido consultar la tarifa ahora mismo.","We could not check the rate right now."):""),flexible&&__gh("div",{style:{...chico,marginTop:2,color:T.grisTenue},"data-gufi-src":"components/ApartamentoDialog.tsx:824"},t("Con cancelaci\xF3n: ","Refundable: "),euros(flexible.total,lang2))),__gh("div",{style:{...chico,textAlign:"right",maxWidth:260},"data-gufi-src":"components/ApartamentoDialog.tsx:830"},barata?t("Precio del motor de reservas para estas fechas.","Rate from the booking engine for these dates."):t("El precio lo da el motor de reservas.","The rate comes from the booking engine."))),__gh("div",{"aria-live":"polite",style:{fontFamily:T.texto,fontSize:12.5,lineHeight:1.5,color:T.alerta,marginTop:puedeAnadir?0:10,display:"flex",alignItems:"flex-start",gap:7},"data-gufi-src":"components/ApartamentoDialog.tsx:839"},puedeAnadir?null:__gh(import_react12.default.Fragment,null,__gh(import_lucide_react12.AlertTriangle,{size:14,style:{flex:"0 0 auto",marginTop:2},"aria-hidden":"true"}),__gh("span",{style:{minWidth:0},"data-gufi-src":"components/ApartamentoDialog.tsx:849"},motivoPie))),bloqueado?__gh("div",{role:"alert",style:{marginTop:11,padding:"11px 13px",borderRadius:T.r2,background:"rgba(168,80,60,0.07)",border:"1px solid rgba(168,80,60,0.26)"},"data-gufi-src":"components/ApartamentoDialog.tsx:862"},__gh("div",{style:{display:"flex",alignItems:"flex-start",gap:9},"data-gufi-src":"components/ApartamentoDialog.tsx:869"},__gh(import_lucide_react12.AlertTriangle,{size:15,color:T.alerta,style:{flex:"0 0 auto",marginTop:2},"aria-hidden":"true"}),__gh("div",{style:{fontFamily:T.texto,fontSize:13,lineHeight:1.6,color:T.pizarra,minWidth:0},"data-gufi-src":"components/ApartamentoDialog.tsx:871"},t("Tu navegador ha bloqueado la pesta\xF1a del motor de reservas. \xC1brela desde aqu\xED:","Your browser blocked the booking engine tab. Open it from here:"))),__gh(Boton,{variante:"contorno",ancho:!0,href:bloqueado,style:{marginTop:10}},t("Abrir el motor de reservas","Open the booking engine"),__gh(import_lucide_react12.ArrowUpRight,{size:15,"aria-hidden":"true"}))):null,__gh(Boton,{ancho:!0,onClick:irAlMotor,deshabilitado:!puedeAnadir,style:{marginTop:11},ariaLabel:puedeAnadir?void 0:`${t("No se puede reservar","Cannot book")}: ${motivo}`},t("Reservar","Book"),__gh(import_lucide_react12.ArrowUpRight,{size:17,"aria-hidden":"true"})),puedeAnadir&&__gh("p",{style:{fontFamily:T.texto,fontSize:12,lineHeight:1.5,color:T.grisTenue,margin:"8px 0 0",textAlign:"center"},"data-gufi-src":"components/ApartamentoDialog.tsx:900"},t("Terminas en el motor de reservas de OK The Way, con tus fechas ya puestas.","You finish in the OK The Way booking engine, with your dates already filled in."))),scroller={flex:"1 1 auto",minHeight:0,overflowY:"auto",WebkitOverflowScrolling:"touch"};return __gh("div",{role:"dialog","aria-modal":"true","aria-labelledby":"ag-ficha-titulo",style:{position:"fixed",inset:0,zIndex:Z.dialogo,height:escritorio?void 0:"100dvh",display:"flex",alignItems:"center",justifyContent:"center",padding:escritorio?24:0,overflow:"hidden"},"data-gufi-src":"components/ApartamentoDialog.tsx:918"},__gh("div",{onClick:onCerrar,"aria-hidden":"true",style:{position:"absolute",inset:0,background:"rgba(34,39,44,0.52)",WebkitBackdropFilter:"blur(3px)",backdropFilter:"blur(3px)"},"data-gufi-src":"components/ApartamentoDialog.tsx:929"}),__gh(import_framer_motion.motion.div,{ref:panelRef,initial:quieto||!escritorio?{opacity:0}:{opacity:0,y:14},animate:quieto||!escritorio?{opacity:1}:{opacity:1,y:0},transition:{duration:.34,ease:T.ease},style:{position:"relative",width:"100%",maxWidth:escritorio?980:void 0,height:escritorio?void 0:"100%",maxHeight:escritorio?"92vh":void 0,background:T.papel,borderRadius:escritorio?T.r3:0,boxShadow:T.sombraAlta,overflow:"hidden",display:"flex",flexDirection:escritorio?"row":"column",minHeight:0}},__gh("button",{type:"button","data-autofoco":!0,onClick:onCerrar,"aria-label":t("Cerrar la ficha","Close"),style:{position:"absolute",top:10,right:10,zIndex:2,width:44,height:44,borderRadius:999,display:"grid",placeItems:"center",background:T.papel,border:`1px solid ${T.linea}`,color:T.pizarra,cursor:"pointer"},"data-gufi-src":"components/ApartamentoDialog.tsx:959"},__gh(import_lucide_react12.X,{size:19})),escritorio?__gh(import_react12.default.Fragment,null,__gh("div",{style:{flex:"0 0 44%",minWidth:0,overflowY:"auto",background:T.papel,borderRight:`1px solid ${T.linea}`},"data-gufi-src":"components/ApartamentoDialog.tsx:979"},galeria),__gh("div",{style:{flex:"1 1 auto",minWidth:0,display:"flex",flexDirection:"column",minHeight:0},"data-gufi-src":"components/ApartamentoDialog.tsx:982"},__gh("div",{style:scroller,"data-gufi-src":"components/ApartamentoDialog.tsx:983"},ficha),pie)):__gh(import_react12.default.Fragment,null,__gh("div",{style:scroller,"data-gufi-src":"components/ApartamentoDialog.tsx:989"},galeria,ficha),pie)))}var import_react13=require("react"),import_lucide_react13=require("lucide-react");var DIRECCION5=`${CASA.calle}, ${CASA.cp} ${CASA.municipio} (${CASA.provincia})`,PRIVACIDAD={titulo:{es:"Privacidad",en:"Privacy"},entradilla:{es:"Lo m\xE1s corto que podemos escribirlo: en esta web no te pedimos ning\xFAn dato. Tus datos se los das al motor de reservas cuando terminas all\xED, y para eso te avisamos antes.",en:"As short as we can put it: this website does not ask you for any personal data. You give your details to the booking engine when you finish there, and we tell you before you go."},cuerpo:[[{es:"Qui\xE9n responde de esta web",en:"Who is behind this website"},{es:`${CASA.razonSocial}, con NIF ${CASA.nif} y domicilio social en ${CASA.domicilioSocial}, que es la propietaria de \xC1gora Palas, los apartamentos de ${DIRECCION5}. Para cualquier cosa que tenga que ver con tus datos, escribe a ${CASA.email} o llama al ${CASA.telefono}.`,en:`${CASA.razonSocial}, tax ID ${CASA.nif}, registered office at ${CASA.domicilioSocial}, Spain. It owns \xC1gora Palas, the apartments at ${DIRECCION5}, Spain. For anything to do with your data, write to ${CASA.email} or call ${CASA.telefono}.`}],[{es:"Esta web no te pide nada",en:"This website asks you for nothing"},{es:"No hay formulario, ni cuenta, ni carrito. Lo \xFAnico que eliges aqu\xED son fechas, cu\xE1ntos sois y qu\xE9 apartamento te gusta, y nada de eso dice qui\xE9n eres. No se env\xEDa a ning\xFAn sitio ni se guarda en ninguna parte: sirve para ense\xF1arte lo que est\xE1 libre y lo que cuesta.",en:"There is no form, no account and no basket. All you choose here are dates, how many of you there are and which apartment you like, and none of that says who you are. It is not sent anywhere and not stored: it is only used to show you what is free and what it costs."}],[{es:"D\xF3nde se piden tus datos de verdad",en:"Where your details are actually asked for"},{es:"Al pulsar \xABReservar\xBB se abre, en otra pesta\xF1a, el motor de reservas donde se formaliza y se paga la reserva. Ese motor est\xE1 en booking.avirato.com, lo opera Avirato para el grupo OK The Way, y es all\xED donde te pedir\xE1n tu nombre, tu contacto y tu tarjeta. A partir de ese salto rige su propia pol\xEDtica de privacidad, que tienes enlazada en su p\xE1gina. Nosotros recibimos despu\xE9s la reserva ya hecha, con los datos que hagan falta para alojarte.",en:"When you tap \u201CBook\u201D, a new tab opens with the booking engine where the booking is completed and paid for. That engine is at booking.avirato.com, operated by Avirato for the OK The Way group, and that is where you will be asked for your name, your contact details and your card. From that point on their own privacy policy applies, and it is linked on their page. We then receive the completed booking, with the details needed to host you."}],[{es:"Qui\xE9n cobra",en:"Who takes the payment"},{es:"El cobro se hace en ese motor, no aqu\xED. Los datos de tu tarjeta no pasan en ning\xFAn momento por esta web: no los vemos, no los recibimos y no los guardamos.",en:"Payment is taken in that engine, not here. Your card details never pass through this website at any point: we do not see them, receive them or store them."}],[{es:"D\xF3nde se guarda tu reserva",en:"Where your booking is kept"},{es:"En el sistema de gesti\xF3n del alojamiento, que es el propio Avirato, y al que solo accede la propiedad. Avirato trata esos datos como encargado nuestro y bajo contrato. Se conservan el tiempo necesario para la estancia y para cumplir las obligaciones legales y fiscales que nos afectan, que en el caso de las facturas son cuatro a\xF1os.",en:"In the property management system, which is Avirato itself, accessible only to the owners. Avirato processes that data as our processor and under contract. It is kept for as long as the stay requires and for as long as the legal and tax obligations that apply to us require, which for invoices is four years."}],[{es:"Al llegar, el parte de viajeros",en:"On arrival: the traveller report"},{es:"Cuando te alojas, la ley obliga a todos los alojamientos de Espa\xF1a a registrar los datos de los viajeros y comunicarlos al Ministerio del Interior (Real Decreto 933/2021). Por eso en la entrada s\xED te pediremos un documento de identidad. No es una decisi\xF3n nuestra y no podemos salt\xE1rnosla.",en:"When you stay, Spanish law requires every accommodation to register travellers\u2019 details and report them to the Ministry of the Interior (Royal Decree 933/2021). That is why we will ask you for an ID document at check-in. It is not our decision and we cannot skip it."}],[{es:"Tus derechos",en:"Your rights"},{es:`Puedes pedirnos acceso a tus datos, que los corrijamos, que los borremos, que dejemos de usarlos o que te los entreguemos para llev\xE1rtelos a otro sitio. Basta un correo a ${CASA.email}; te contestamos nosotros, no un formulario. Si lo que quieres corregir est\xE1 en el motor de reservas, d\xEDnoslo igual y lo trasladamos. Si crees que no lo hemos hecho bien, puedes reclamar ante la Agencia Espa\xF1ola de Protecci\xF3n de Datos.`,en:`You can ask us for access to your data, to correct it, to delete it, to stop using it, or to hand it over so you can take it elsewhere. An email to ${CASA.email} is enough; a person answers, not a form. If what you want corrected sits in the booking engine, tell us anyway and we will pass it on. If you think we have not done right by you, you can complain to the Spanish Data Protection Agency (AEPD).`}],[{es:"Esta web, por dentro",en:"This website, under the hood"},{es:"No hay anal\xEDtica ni cookies de seguimiento: no sabemos qui\xE9n entra ni de d\xF3nde viene. En tu navegador se guarda UNA sola cosa, el idioma que has elegido, y solo para que la web no te lo vuelva a preguntar. Puedes borrarla vaciando los datos del sitio. Las tipograf\xEDas se cargan desde Google Fonts, que al servirlas recibe la direcci\xF3n IP de tu conexi\xF3n.",en:"There is no analytics and there are no tracking cookies: we do not know who visits or where they come from. ONE thing is stored in your browser, the language you chose, and only so the site does not ask you again. You can clear it by deleting the site data. Typefaces are loaded from Google Fonts, which receives your connection\u2019s IP address when it serves them."}]]},CONDICIONES={titulo:{es:"Condiciones de reserva",en:"Booking terms"},entradilla:{es:"Esta web es el escaparate: aqu\xED eliges. La reserva se formaliza y se paga en nuestro motor de reservas, y es all\xED donde se aceptan las condiciones definitivas.",en:"This website is the shop window: here you choose. The booking is completed and paid for in our booking engine, and that is where the final terms are accepted."},cuerpo:[[{es:"Qu\xE9 reservas, y d\xF3nde",en:"What you book, and where"},{es:`Un apartamento concreto del edificio de ${DIRECCION5}, para las noches que elijas. La noche de salida no se ocupa: ese d\xEDa entra el siguiente hu\xE9sped. Al pulsar \xABReservar\xBB se abre el motor con tu apartamento y tus fechas ya puestas, y la reserva queda hecha all\xED, no aqu\xED. Cada apartamento tiene su capacidad m\xE1xima, la que figura en su ficha.`,en:`A specific apartment in the building at ${DIRECCION5}, Spain, for the nights you choose. The departure night is not occupied: that day the next guest arrives. When you tap \u201CBook\u201D, the engine opens with your apartment and your dates already filled in, and the booking is made there, not here. Each apartment has its own maximum capacity, shown on its page.`}],[{es:"Precio",en:"Price"},{es:"Los precios que ves aqu\xED los consultamos en vivo al motor para TUS fechas y TU n\xFAmero de hu\xE9spedes, as\xED que son los suyos y no una tarifa escrita a mano. Aun as\xED, el importe que manda es el que el motor te muestre al confirmar: si cambiara entre que lo miras aqu\xED y lo confirmas all\xED, vale el de all\xED. El precio sube con el n\xFAmero de hu\xE9spedes y cambia seg\xFAn las fechas.",en:"The prices you see here are queried live from the engine for YOUR dates and YOUR number of guests, so they are its own prices and not a hand-written rate. Even so, the amount that counts is the one the engine shows you on confirmation: if it changed between looking here and confirming there, the one there applies. The price goes up with the number of guests and varies with the dates."}],[{es:"Dos tarifas, y no cancelan igual",en:"Two rates, and they do not cancel alike"},{es:`El motor ofrece dos tarifas por apartamento. La NO REEMBOLSABLE es la m\xE1s barata y es la que ense\xF1amos aqu\xED por defecto, pero una vez pagada no se devuelve el importe si cancelas. La tarifa FLEXIBLE cuesta algo m\xE1s y es la que admite cancelaci\xF3n, con esta condici\xF3n de la propiedad: \xAB${CANCELACION.es}\xBB Mira bien cu\xE1l de las dos eliges al otro lado, porque la diferencia no es el precio, es lo que pasa si no puedes venir.`,en:`The engine offers two rates per apartment. The NON-REFUNDABLE one is the cheaper and the one we show here by default, but once paid it is not refunded if you cancel. The FLEXIBLE rate costs a little more and is the one that allows cancellation, under the owner\u2019s terms: \u201C${CANCELACION.en}\u201D Look carefully at which of the two you pick on the other side, because the difference is not the price, it is what happens if you cannot come.`}],[{es:"Entrada y salida",en:"Check-in and check-out"},{es:`Con car\xE1cter general, la entrada es ${CASA.entrada.es} y la salida, ${CASA.salida.es}. La hora exacta de TU apartamento te la confirma el motor al reservar, porque no todos tienen el mismo horario. Si vas a llegar fuera de ese horario, av\xEDsanos al reservar o escr\xEDbenos a ${CASA.email}: se organiza sin problema, pero hay que decirlo antes.`,en:`As a general rule, check-in is ${CASA.entrada.en} and check-out is ${CASA.salida.en}. The exact time for YOUR apartment is confirmed by the engine when you book, because they do not all keep the same hours. If you are going to arrive outside those hours, tell us when you book or write to ${CASA.email}: it is easily arranged, but we need to know beforehand.`}],[{es:"Cambios",en:"Changes"},{es:`Para cambiar fechas, apartamento o n\xFAmero de hu\xE9spedes, escr\xEDbenos a ${CASA.email} o ll\xE1manos al ${CASA.telefono} cuanto antes. Un cambio no es una cancelaci\xF3n: lo miramos contigo seg\xFAn lo que haya libre.`,en:`To change dates, apartment or number of guests, write to ${CASA.email} or call ${CASA.telefono} as soon as you can. A change is not a cancellation: we will look at it with you depending on what is free.`}],[{es:"La casa",en:"The house"},{es:"El edificio es sin humo. Se admiten mascotas: d\xEDnoslo al reservar para asignarte el apartamento que mejor os venga. Cuna y camas supletorias, bajo petici\xF3n.",en:"The building is non-smoking. Pets are welcome: tell us when you book so we can give you the apartment that suits you both best. Cot and extra beds on request."}]]},FOCUSABLES='a[href],button:not([disabled]),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),[tabindex]:not([tabindex="-1"])';function useDialogo(abierto,onCerrar,caja){(0,import_react13.useEffect)(()=>{if(!abierto)return;let anterior=typeof document<"u"?document.activeElement:null,overflowAntes=document.documentElement.style.overflow;document.documentElement.style.overflow="hidden";let dianas=()=>{let c=caja.current;return c?Array.from(c.querySelectorAll(FOCUSABLES)).filter(n=>n.getClientRects().length>0):[]},reloj=window.setTimeout(()=>{let c=caja.current;if(!c||c.contains(document.activeElement))return;(dianas()[0]||c).focus()},70),alTeclear=e=>{if(e.key==="Escape"){e.stopPropagation(),onCerrar();return}if(e.key!=="Tab")return;let d=dianas();if(!d.length)return;let primero=d[0],ultimo=d[d.length-1],activo=document.activeElement,dentro=!!(caja.current&&activo&&caja.current.contains(activo));e.shiftKey&&(!dentro||activo===primero)?(e.preventDefault(),ultimo.focus()):!e.shiftKey&&(!dentro||activo===ultimo)&&(e.preventDefault(),primero.focus())};return document.addEventListener("keydown",alTeclear,!0),()=>{window.clearTimeout(reloj),document.removeEventListener("keydown",alTeclear,!0),document.documentElement.style.overflow=overflowAntes;try{anterior&&anterior.focus&&anterior.focus()}catch{}}},[abierto,onCerrar,caja])}function Legal({cual,onCerrar}){let{t,L}=useLang(),quieto=(0,import_framer_motion.useReducedMotion)(),caja=(0,import_react13.useRef)(null);useDialogo(!!cual,onCerrar,caja);let doc=cual==="privacidad"?PRIVACIDAD:cual==="condiciones"?CONDICIONES:null;return __gh(import_framer_motion.AnimatePresence,null,cual&&doc&&__gh(import_framer_motion.motion.div,{className:"fixed inset-0 flex items-center justify-center",style:{zIndex:95,padding:16},initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.25}},__gh("div",{className:"absolute inset-0",style:{background:"rgba(34,39,44,0.45)",backdropFilter:"blur(3px)"},onClick:onCerrar,"data-gufi-src":"components/Legal.tsx:235"}),__gh(import_framer_motion.motion.div,{ref:caja,tabIndex:-1,role:"dialog","aria-modal":"true","aria-label":L(doc.titulo),initial:quieto?{opacity:0}:{opacity:0,y:18},animate:{opacity:1,y:0},exit:quieto?{opacity:0}:{opacity:0,y:12},transition:{duration:quieto?.2:.4,ease:T.ease},style:{position:"relative",width:"100%",maxWidth:680,maxHeight:"88dvh",display:"flex",flexDirection:"column",background:T.cal,border:`1px solid ${T.linea}`,borderRadius:T.r3,boxShadow:T.sombraAlta,overflow:"hidden",outline:"none"}},__gh("div",{className:"shrink-0 flex items-start justify-between gap-3",style:{background:T.papel,borderBottom:`1px solid ${T.linea}`,padding:"18px 20px 16px"},"data-gufi-src":"components/Legal.tsx:257"},__gh("div",{style:{minWidth:0},"data-gufi-src":"components/Legal.tsx:258"},__gh(Antetitulo,null,CASA.nombre),__gh("h3",{style:{fontFamily:T.display,fontWeight:300,fontSize:"clamp(21px, 4.5vw, 27px)",lineHeight:1.12,color:T.pizarra,margin:"4px 0 0",letterSpacing:"-0.015em"},"data-gufi-src":"components/Legal.tsx:260"},L(doc.titulo))),__gh("button",{onClick:onCerrar,"aria-label":t("Cerrar","Close"),style:{width:44,height:44,display:"grid",placeItems:"center",border:`1px solid ${T.linea}`,borderRadius:T.r2,background:"transparent",cursor:"pointer",flexShrink:0},"data-gufi-src":"components/Legal.tsx:264"},__gh(import_lucide_react13.X,{size:17,color:T.pizarra2}))),__gh("div",{style:{flex:1,minHeight:0,overflowY:"auto",overscrollBehavior:"contain",WebkitOverflowScrolling:"touch",padding:"20px 20px 26px"},"data-gufi-src":"components/Legal.tsx:273"},__gh("p",{style:{fontFamily:T.texto,fontSize:15,lineHeight:1.65,color:T.pizarra2,margin:0,maxWidth:"58ch"},"data-gufi-src":"components/Legal.tsx:274"},L(doc.entradilla)),__gh(Filete,{style:{margin:"18px 0 22px"}}),doc.cuerpo.map(([encabezado,texto],i)=>__gh("section",{key:i,style:{marginBottom:22},"data-gufi-src":"components/Legal.tsx:280"},__gh(Antetitulo,null,L(encabezado)),__gh("p",{style:{fontFamily:T.texto,fontSize:14.5,lineHeight:1.7,color:T.pizarra2,margin:"8px 0 0",maxWidth:"62ch"},"data-gufi-src":"components/Legal.tsx:282"},L(texto)))),__gh(Filete,{style:{margin:"0 0 14px"}}),__gh("p",{style:{fontFamily:T.texto,fontSize:12.5,lineHeight:1.65,color:T.grisTenue,margin:0},"data-gufi-src":"components/Legal.tsx:289"},t("Si algo de esto no te cuadra, escr\xEDbenos antes de reservar: ","If anything here does not add up, write to us before booking: "),__gh("a",{href:`mailto:${CASA.email}`,style:{color:T.azulHondo,textDecoration:"none"},"data-gufi-src":"components/Legal.tsx:291"},CASA.email)," \xB7 ",__gh("a",{href:`tel:+${CASA.telefonoRaw}`,style:{fontFamily:T.mono,color:T.azulHondo,textDecoration:"none"},"data-gufi-src":"components/Legal.tsx:293"},CASA.telefono))))))}var Barrera=class extends import_react14.default.Component{constructor(p){super(p),this.state={roto:!1}}static getDerivedStateFromError(){return{roto:!0}}componentDidCatch(e){console.error("[agora]",e)}render(){return this.state.roto?__gh("div",{style:{minHeight:"100vh",display:"grid",placeItems:"center",background:T.cal,padding:24,fontFamily:T.texto,color:T.pizarra,textAlign:"center"},"data-gufi-src":"page.tsx:63"},__gh("div",{style:{maxWidth:380},"data-gufi-src":"page.tsx:64"},__gh("div",{style:{fontFamily:T.display,fontWeight:300,fontSize:26},"data-gufi-src":"page.tsx:65"},"Algo no ha cargado bien"),__gh("p",{style:{color:T.grisTexto,fontSize:14.5,lineHeight:1.65,marginTop:10},"data-gufi-src":"page.tsx:66"},"Recarga la p\xE1gina. Si sigue igual, escr\xEDbenos a"," ",__gh("a",{href:`mailto:${CASA.email}`,style:{color:T.azulHondo},"data-gufi-src":"page.tsx:68"},CASA.email)," y reservamos nosotros por ti."))):this.props.children}};function inyectarTipos(){if(typeof document>"u"||document.getElementById("agora-tipos"))return;let pre1=document.createElement("link");pre1.rel="preconnect",pre1.href="https://fonts.googleapis.com";let pre2=document.createElement("link");pre2.rel="preconnect",pre2.href="https://fonts.gstatic.com",pre2.crossOrigin="anonymous";let css=document.createElement("link");css.id="agora-tipos",css.rel="stylesheet",css.href="https://fonts.googleapis.com/css2?family=Spectral:wght@200;300;400;500&family=Hanken+Grotesk:wght@400;500;600;700&family=DM+Mono:wght@300;400;500&display=swap",document.head.append(pre1,pre2,css);let hoja=document.createElement("style");hoja.id="agora-hoja",hoja.textContent=` /* El runtime trae box-sizing por el preflight de Tailwind. Se repite aqu\xED porque, si ese preflight no carga, TODA caja con relleno pasa a content-box y la p\xE1gina se descuadra entera \u2014 y eso se descubrir\xEDa en producci\xF3n, no en el arn\xE9s, que s\xED lo carga. Cuesta una l\xEDnea. \u{1F534} Y OJO: este bloque es una plantilla de JS. Un solo backtick dentro de un comentario CSS la cierra y tumba el fichero entero. Aqu\xED dentro, ni uno. */ .ag-root, .ag-root *, .ag-root *::before, .ag-root *::after { box-sizing: border-box; } .ag-root { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; } .ag-root ::selection { background: ${T.azulVelo}; color: ${T.pizarra}; } section[id] { scroll-margin-top: 76px; } /* El anillo de foco vive AQU\xCD, en la hoja, y no en estilos en l\xEDnea: un boxShadow en l\xEDnea sobre un input lo mata sin avisar. */ .ag-root :focus-visible { outline: 2px solid ${T.azul}; outline-offset: 2px; border-radius: ${T.r1}px; } .ag-root input:focus, .ag-root select:focus, .ag-root textarea:focus { border-color: ${T.azul}; } /* \u2500\u2500 LA ESCALA TIPOGR\xC1FICA, EN DOS TRAMOS \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 Vive en la hoja y no en l\xEDnea, y es la \xFAnica excepci\xF3n a la costumbre de la casa. El motivo est\xE1 medido: con UN solo clamp el t\xE9rmino de en medio se queda por debajo del suelo en todo el rango del tel\xE9fono, as\xED que el h1 val\xEDa 34 px de 360 a 531 y los seis h2 val\xEDan 26 px en cualquier m\xF3vil. La p\xE1gina crec\xEDa un 10 por ciento de 390 a 430 con la tipograf\xEDa congelada, que es exactamente lo contrario de una escala fluida. \u{1F511} LOS DOS COEFICIENTES SALEN DE UNA MEDIDA, NO DE UN GUSTO. El titular de portada son dos l\xEDneas escritas a mano y la primera es \xABNueve apartamentos\xBB: si el cuerpo crece de m\xE1s, esa l\xEDnea PARTE y la composici\xF3n de dos l\xEDneas se convierte en tres. Medido en el navegador con el tipo ya cargado, en once anchos, pintando esa cadena en una probeta oculta: en Spectral 300 ocupa entre 8,34 y 8,67 veces el cuerpo (m\xE1s estrecha en pantallas grandes, por el redondeo del interletraje). De ah\xED los dos tramos, con un 4 por ciento de margen cada uno: \xB7 tel\xE9fono \u2014 el hueco es 100vw menos los 40 px de margen, as\xED que el cuerpo va como (100vw \u2212 40) / 8,9 = 11,24vw \u2212 4,5 px. A 390 da 39,3 donde el m\xE1ximo medido es 40,5, y donde antes daba 34 clavado. \xB7 escritorio \u2014 a partir de 1.120 la fachada se lleva el 38 % de la pantalla y el tope lo pone la columna de texto, que adem\xE1s se ESTRECHA hacia 1.280 (el relleno izquierdo crece m\xE1s r\xE1pido que la columna, que es lo que hace que el sitio no crezca con la ventana). El suelo son 70 px contra los 68 del tope del tel\xE9fono: dos p\xEDxeles de diferencia al cruzar el cambio de maqueta, o sea ninguno a la vista, y en la direcci\xF3n correcta (m\xE1s ancho, m\xE1s grande). Comprobado como se comprueba esto de verdad: contando las cajas de l\xEDnea de cada l\xEDnea ESCRITA del titular en once anchos, de 360 a 1.680. Dos l\xEDneas en los once, ninguna parte. \u{1F534} Y ojo con la medida: un Range sobre el titular entero devuelve el DOBLE de cajas, porque el revelado envuelve cada l\xEDnea en dos spans. Hay que contar por l\xEDnea escrita. */ .ag-h1 { font-size: clamp(36px, calc(11.24vw - 4.5px), 68px); line-height: 0.92; letter-spacing: -0.028em; } .ag-h2 { font-size: clamp(27px, calc(8px + 5.5vw), 42px); line-height: 1.1; letter-spacing: -0.018em; } .ag-h2-grande { font-size: clamp(30px, calc(8px + 6.8vw), 54px); line-height: 1.04; letter-spacing: -0.022em; } @media (min-width: 1120px) { .ag-h1 { font-size: clamp(70px, calc(49px + 1.875vw), 76px); line-height: 0.94; letter-spacing: -0.032em; } } /* \u2500\u2500 LA SANGR\xCDA DEL M\xD3VIL \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 \xABQue aproveche bien el margen, que no sea todo una columna.\xBB Una pieza con esta clase se come los 20 px de margen de la secci\xF3n y llega a los dos bordes de la pantalla. Solo en el tel\xE9fono, y a prop\xF3sito: \u{1F534} NO SE USA EL TRUCO DE width:100vw con margin-left:calc(50% - 50vw). En escritorio, 100vw incluye el ancho de la barra de scroll, as\xED que la pieza mide m\xE1s que el hueco visible y se sale por la derecha: el overflow-x:clip de la ra\xEDz lo tapa, pero la comprobaci\xF3n honesta del m\xF3vil \u2014recorrer los elementos y mirar su borde derecho\u2014 lo caza como un desbordamiento de verdad. Aqu\xED el ancho \xFAtil es exactamente 100vw \u2212 40 px, as\xED que dos m\xE1rgenes negativos de 20 px dan 100vw clavado y no hay aritm\xE9tica de barras de scroll en la que equivocarse. Lo que tenga que sangrar en escritorio va FUERA de la caja de 1.120 px (ANCHO, en lib/ui), no con un margen negativo. \u{1F534} DOS REGLAS PARA ESCRIBIR AQU\xCD DENTRO, y las dos se han pagado hoy: \xB7 ni un acento invertido, ni en los comentarios. Esto es una plantilla de JS: uno solo la cierra y se lleva el fichero por delante \u2014 y si lo que queda detr\xE1s resulta ser JS v\xE1lido, compila, el push dice 200 y la web revienta en vivo con la pantalla en blanco; \xB7 ni una interpolaci\xF3n. No rompe nada, pero se resuelve: un ANCHO con d\xF3lar dentro de este comentario deja un \xAB1120px\xBB literal en la hoja que se le sirve al navegador. Un comentario no se interpola. */ .ag-sangra { margin-left: -20px; margin-right: -20px; } @media (min-width: 768px) { .ag-sangra { margin-left: 0; margin-right: 0; } } /* El punto que late junto a un dato vivo, y la flecha que invita a bajar. Son los dos \xFAnicos bucles de la web; todo lo dem\xE1s se dispara una vez. */ .ag-late { animation: ag-late 2.4s cubic-bezier(.22,.61,.36,1) infinite; } @keyframes ag-late { 0% { transform: scale(1); opacity: .5; } 70%, 100% { transform: scale(2.8); opacity: 0; } } .ag-flota { animation: ag-flota 2.6s cubic-bezier(.22,.61,.36,1) infinite; } @keyframes ag-flota { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } } @media (prefers-reduced-motion: reduce) { .ag-root *, .ag-root *::before, .ag-root *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; } /* Un bucle con duraci\xF3n casi cero se queda congelado en su primer fotograma, y el del punto que late ARRANCA medio transparente: se quedar\xEDa un halo gris pegado para siempre. Se apaga del todo. */ .ag-late { display: none !important; } .ag-flota { animation: none !important; transform: none !important; } } `,document.head.append(hoja);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;let apple=document.createElement("link");apple.rel="apple-touch-icon",apple.href=FAVICON,document.head.append(fav,apple)}catch{}}function AgoraPalas({gufi}){let[aptos,setAptos]=(0,import_react14.useState)([]),[traslados,setTraslados]=(0,import_react14.useState)([]),[ocupacion,setOcupacion]=(0,import_react14.useState)({}),[cargando,setCargando]=(0,import_react14.useState)(!0),[fallo,setFallo]=(0,import_react14.useState)(!1),[estancia,setEstancia]=(0,import_react14.useState)({entrada:"",noches:2}),{lang:lang2}=useLang(),[fichaAbierta,setFichaAbierta]=(0,import_react14.useState)(null),[legalAbierto,setLegalAbierto]=(0,import_react14.useState)(null),[tarifas2,setTarifas]=(0,import_react14.useState)({estado:"sinFechas",porId:{}});(0,import_react14.useEffect)(()=>{inyectarTipos();try{document.title="\xC1gora Palas \xB7 Apartamentos en Palas de Rei, Camino Franc\xE9s"}catch{}},[]);let cargar=(0,import_react14.useCallback)(async()=>{setCargando(!0),setFallo(!1);let pedirCatalogo=async()=>{let filas=[];for(let pagina=1;pagina<=10;pagina++){let r=await gufi.query("ecommerce__productos",{pageSize:100,page:pagina}),tanda=Array.isArray(r?.data)?r.data:[];if(filas.push(...tanda),tanda.length<100)break}let vivas=filas.filter(p=>p?.activo!==!1),porOrden=(a,b)=>Number(a?.orden||0)-Number(b?.orden||0);return{apartamentos:vivas.filter(p=>p?.sitio==="agorapalas").map(aApartamento).sort((a,b)=>Number(a.raw?.orden||0)-Number(b.raw?.orden||0)),traslados:vivas.filter(p=>p?.sitio==="okthewaytaxi").sort(porOrden).map(aTraslado)}},[catalogo,calendario]=await Promise.allSettled([pedirCatalogo(),fetchDisponibilidad(gufi)]);catalogo.status==="fulfilled"?(setAptos(catalogo.value.apartamentos),setTraslados(catalogo.value.traslados)):(console.error("[agora] cat\xE1logo",catalogo.reason),setAptos([]),setTraslados([]),setFallo(!0)),calendario.status==="fulfilled"?setOcupacion(aOcupacion(calendario.value)):(console.error("[agora] disponibilidad",calendario.reason),setOcupacion({})),setCargando(!1)},[gufi]);(0,import_react14.useEffect)(()=>{cargar()},[cargar]);let nochesElegidas=(0,import_react14.useMemo)(()=>estancia.entrada?nochesDe(estancia.entrada,estancia.noches):[],[estancia.entrada,estancia.noches]),nochesLlenas=(0,import_react14.useMemo)(()=>{let llenas=new Set;if(aptos.length===0)return llenas;let candidatas=new Set;for(let a of aptos){let suyas=ocupacion[a.id];suyas&&suyas.forEach(n=>candidatas.add(n))}return candidatas.forEach(noche=>{aptos.some(a=>{let suyas=ocupacion[a.id];return!suyas||!suyas.has(noche)})||llenas.add(noche)}),llenas},[aptos,ocupacion]);(0,import_react14.useEffect)(()=>{if(!estancia.entrada||!(estancia.noches>0)){setTarifas({estado:"sinFechas",porId:{}});return}let vigente=!0;setTarifas(t=>({estado:"pidiendo",porId:t.porId}));let reloj=window.setTimeout(async()=>{let r=await tarifas(gufi,{entrada:estancia.entrada,salida:salidaDe(estancia.entrada,estancia.noches),adultos:2,idioma:lang2});vigente&&setTarifas(r.ok?{estado:"ok",porId:porProducto(r)}:{estado:"falla",porId:{}})},350);return()=>{vigente=!1,window.clearTimeout(reloj)}},[gufi,estancia.entrada,estancia.noches,lang2]);let irA=(0,import_react14.useCallback)(id=>{let el=document.getElementById(id);el&&el.scrollIntoView({behavior:"smooth",block:"start"})},[]),hoy=hoyISO(),alMotor=(0,import_react14.useCallback)(()=>{window.open(enlaceMotor({entrada:estancia.entrada||null,salida:estancia.entrada?salidaDe(estancia.entrada,estancia.noches):null,idioma:lang2}),"_blank","noopener,noreferrer")},[estancia.entrada,estancia.noches,lang2]);return __gh(Barrera,null,__gh("div",{className:"ag-root",style:{background:T.cal,color:T.pizarra,fontFamily:T.texto,minHeight:"100vh",overflowX:"clip"},"data-gufi-src":"page.tsx:426"},__gh(Apertura,null),__gh(Nav,{onIrA:irA,onReserva:alMotor}),__gh("main",{"data-gufi-src":"page.tsx:437"},__gh(Hero,{estancia,setEstancia,minFecha:hoy,onBuscar:()=>irA("edificio"),apartamentos:aptos,ocupacion,nochesElegidas,nochesLlenas}),__gh(Edificio,{apartamentos:aptos,ocupacion,nochesElegidas,nochesLlenas,estancia,setEstancia,minFecha:hoy,cargando,fallo,onReintentar:cargar,onAbrir:a=>setFichaAbierta(a),tarifas:tarifas2}),__gh(Galeria,{apartamentos:aptos}),__gh(Equipamiento,null),__gh(Lugar,null),__gh(Traslados,{traslados}),__gh(Preguntas,null),__gh(Contacto,null)),__gh(Cierre,{onReserva:alMotor}),__gh(Pie,{onIrA:irA,onLegal:k=>setLegalAbierto(k)}),__gh(ApartamentoDialog,{gufi,apartamento:fichaAbierta,ocupacion,estancia,setEstancia,minFecha:hoy,onCerrar:()=>setFichaAbierta(null),onAnadido:()=>setFichaAbierta(null)}),__gh(Legal,{cual:legalAbierto,onCerrar:()=>setLegalAbierto(null)})))}var featureConfig={dataSources,automations,slots,meta:{name:"\xC1gora Palas \u2014 Web",version:"1.0.0"}};var stdin_default=AgoraPalas;