/* Horizon Realty · capa visual «Liquid Glass» (Fase A)
   Se carga después de public.css. Solo estilos: no cambia estructura de reservas.
   Clases nuevas con prefijo hr-; las clases existentes que se ajustan están marcadas «compartido». */
:root{
  --hr-yellow:#FFD52A; --hr-black:#222223; --hr-off:#F7F7F5; --hr-charcoal:#333334; --hr-gold:#C9A817; --hr-light:#E8E8E5;
  --hr-glass-light:rgba(255,255,255,.16);
  --hr-glass-dark:rgba(34,34,35,.42);
  --hr-glass-white:rgba(255,255,255,.64);
  --hr-glass-border:rgba(255,255,255,.40);
  --hr-blur:16px; --hr-radius-pill:999px; --hr-radius-card:22px; --hr-motion:200ms;
  --hr-shadow-soft:0 18px 40px -20px rgba(34,34,35,.35);
  --hr-shadow-cta:0 10px 24px -8px rgba(201,168,23,.55), inset 0 1px 0 rgba(255,255,255,.55);
  --hr-focus:0 0 0 2px var(--hr-black), 0 0 0 5px var(--hr-yellow);
}
@media (max-width:760px){ :root{ --hr-blur:10px; } }

/* evita el desplazamiento horizontal en móvil (la banda 3D usa 100vw) */
html,body{ overflow-x:hidden; }
@supports (overflow:clip){ html,body{ overflow-x:clip; } }
.footer-cta .services{ display:flex; flex-wrap:wrap; justify-content:center; row-gap:6px; }

/* ---------- íconos ---------- */
.hr-i{ display:inline-grid; place-items:center; flex:none; }
.hr-i svg,.hr-card svg{ width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.hr-i-circle{ width:40px; height:40px; border-radius:50%; background:rgba(255,255,255,.18); border:1px solid rgba(255,255,255,.32); }
.hr-i-light{ background:#fff; border-color:var(--hr-light); color:var(--hr-black); }
.hr-arrow{ margin-left:auto; padding-left:6px; }

/* ---------- botones ---------- */
.hr-btn{ display:inline-flex; align-items:center; gap:12px; min-height:52px; padding:14px 28px; border-radius:var(--hr-radius-pill); font:700 15px/1.2 'Inter',Arial,sans-serif; text-decoration:none; cursor:pointer; border:1px solid transparent; white-space:nowrap;
  transition:transform var(--hr-motion) ease, box-shadow var(--hr-motion) ease, filter var(--hr-motion) ease, background-color var(--hr-motion) ease; }
.hr-btn:focus-visible,.hr-search-btn:focus-visible,.hr-fav:focus-visible,.hr-menu:focus-visible,.hr-card-link:focus-visible,.hr-nav a:focus-visible{ outline:none; box-shadow:var(--hr-focus); }
.hr-btn-primary{ background:var(--hr-yellow); color:var(--hr-black); box-shadow:var(--hr-shadow-cta); }
.hr-btn-primary:hover{ transform:translateY(-1px); filter:brightness(1.04); box-shadow:0 14px 28px -8px rgba(201,168,23,.6), inset 0 1px 0 rgba(255,255,255,.6); }
.hr-btn-primary:active{ transform:translateY(0); }
.hr-btn-glass{ background:var(--hr-glass-light); border-color:var(--hr-glass-border); color:#fff; min-height:48px; padding:6px 24px 6px 6px;
  -webkit-backdrop-filter:blur(var(--hr-blur)) saturate(140%); backdrop-filter:blur(var(--hr-blur)) saturate(140%); }
.hr-btn-glass:hover{ background:rgba(255,255,255,.24); transform:translateY(-1px); }
.hr-btn-sm{ min-height:44px; padding:10px 20px; font-size:14px; gap:8px; }
.hr-btn-sm .hr-i svg{ width:18px; height:18px; }

/* ---------- header flotante ---------- */
#screen-home{ position:relative; }
.hr-header{ position:absolute; z-index:40; top:16px; left:50%; transform:translateX(-50%); width:min(1232px, calc(100% - 32px));
  display:flex; align-items:center; gap:20px; padding:10px 10px 10px 22px; border-radius:26px;
  background:var(--hr-glass-dark); border:1px solid rgba(255,255,255,.18);
  -webkit-backdrop-filter:blur(20px) saturate(140%); backdrop-filter:blur(20px) saturate(140%); }
.hr-logo{ display:flex; align-items:center; }
.hr-logo img{ height:38px; width:auto; display:block; }
.hr-nav{ display:flex; gap:6px; margin-left:auto; }
.hr-nav a{ color:#fff; text-decoration:none; font:500 14px 'Inter',Arial,sans-serif; padding:10px 14px; border-radius:var(--hr-radius-pill); transition:background-color var(--hr-motion), color var(--hr-motion); }
.hr-nav a:hover{ background:rgba(255,255,255,.12); color:var(--hr-yellow); }
.hr-header-cta{ margin-left:8px; }
.hr-menu{ display:none; width:44px; height:44px; border-radius:50%; border:1px solid rgba(255,255,255,.3); background:rgba(255,255,255,.12); color:#fff; cursor:pointer; place-items:center; margin-left:auto; }
.hr-menu svg{ width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; }

/* ---------- hero (compartido: .hero) ---------- */
.hero.hr-hero{ aspect-ratio:auto; min-height:clamp(640px, 88vh, 820px); display:flex; flex-direction:column; justify-content:flex-end; background:var(--hr-black); overflow:hidden; }
.hr-hero video{ opacity:1; object-fit:cover; }
.hr-hero .hr-shade{ background:linear-gradient(90deg, rgba(34,34,35,.78) 0%, rgba(34,34,35,.45) 42%, rgba(34,34,35,0) 72%), linear-gradient(0deg, rgba(34,34,35,.7) 0%, rgba(34,34,35,0) 38%); }
.hr-hero-inner{ position:relative; z-index:2; height:auto; width:min(1232px, calc(100% - 32px)); max-width:none; margin:0 auto; padding:150px 22px 40px; display:flex; flex-direction:column; align-items:flex-start; justify-content:flex-end; }
.hr-hero .eyebrow{ color:var(--hr-yellow); letter-spacing:.16em; font-size:12px; font-weight:600; margin-bottom:14px; }
.hr-hero h1{ font-family:'Poppins',Arial,sans-serif; font-weight:700; font-size:clamp(32px, 4.2vw, 44px); line-height:1.08; max-width:12.5em; color:#fff; text-wrap:balance; margin:0; }
.hr-tagline{ display:flex; align-items:center; gap:12px; margin:14px 0 0; font:600 15px 'Poppins',Arial,sans-serif; color:rgba(255,255,255,.9); }
.hr-tagline::before{ content:""; width:28px; height:2px; border-radius:2px; background:var(--hr-gold); }
.hr-hero .sub{ color:rgba(255,255,255,.86); font-size:16px; line-height:1.55; max-width:34em; margin-top:12px; }
.hr-cta-row{ display:flex; flex-wrap:wrap; gap:14px; margin-top:28px; }

/* barra de beneficios */
.hr-benefits{ position:relative; z-index:2; list-style:none; margin:0 auto 28px; padding:12px; width:min(1232px, calc(100% - 32px));
  display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); border-radius:28px;
  background:rgba(34,34,35,.34); border:1px solid rgba(255,255,255,.26); color:#fff;
  -webkit-backdrop-filter:blur(18px) saturate(140%); backdrop-filter:blur(18px) saturate(140%); }
.hr-benefits li{ display:flex; align-items:center; gap:14px; padding:8px 18px; font:600 14px/1.3 'Inter',Arial,sans-serif; }
.hr-benefits li+li{ border-left:1px solid rgba(255,255,255,.22); }

/* ---------- buscador visual ---------- */
.hr-section{ padding-top:44px; }
.hr-search{ display:flex; align-items:center; gap:8px; padding:8px; border-radius:var(--hr-radius-pill); background:var(--hr-glass-white); border:1px solid var(--hr-light);
  box-shadow:var(--hr-shadow-soft); -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px); max-width:760px; }
.hr-field{ flex:1; min-width:0; display:flex; align-items:center; gap:12px; padding:6px 16px 6px 6px; border-radius:var(--hr-radius-pill); background:rgba(255,255,255,.7); border:1px solid var(--hr-light); }
.hr-field-txt{ display:flex; flex-direction:column; min-width:0; flex:1; }
.hr-field-lbl{ font:600 13px 'Inter',Arial,sans-serif; color:var(--hr-black); }
.hr-field input,.hr-field select{ border:0; background:transparent; font:500 13px 'Inter',Arial,sans-serif; color:var(--hr-charcoal); padding:2px 0; min-width:0; width:100%; outline:none; }
.hr-field:focus-within{ border-color:var(--hr-black); }
.hr-dates{ display:flex; align-items:center; gap:6px; color:var(--hr-charcoal); }
.hr-dates input{ width:auto; flex:1; }
.hr-search-btn{ width:52px; height:52px; flex:none; border-radius:50%; border:0; background:var(--hr-yellow); color:var(--hr-black); cursor:pointer; display:grid; place-items:center; box-shadow:var(--hr-shadow-cta); transition:transform var(--hr-motion), filter var(--hr-motion); }
.hr-search-btn:hover{ transform:translateY(-1px); filter:brightness(1.04); }
.hr-search-btn svg{ width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; }
.hr-search-note{ font-size:13px; color:var(--hr-charcoal); margin:12px 4px 0; }
.hr-search-note.warn{ color:#8a2a1c; }
.hr-link{ background:none; border:0; padding:0; font:600 13px 'Inter',Arial,sans-serif; color:var(--hr-black); text-decoration:underline; cursor:pointer; }

/* pestañas (compartido: .tab-switch / .tab-btn) */
.hr-toolbar{ display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; margin:36px 0 8px; }
.tab-switch.hr-tabs{ margin:0; max-width:none; background:var(--hr-glass-white); border:1px solid var(--hr-light); border-radius:var(--hr-radius-pill); padding:5px; box-shadow:none;
  -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px); }
.hr-tabs .tab-btn{ border-radius:var(--hr-radius-pill); padding:10px 20px; font-weight:600; }
.hr-toolbar .count{ font-size:13px; color:var(--hr-charcoal); }

/* ---------- tarjetas ---------- */
.grid.hr-grid{ grid-template-columns:repeat(auto-fill, minmax(260px, 1fr)); gap:24px; }
.hr-card{ position:relative; aspect-ratio:4/5; border-radius:var(--hr-radius-card); overflow:hidden; background:var(--hr-black); box-shadow:var(--hr-shadow-soft); color:#fff; isolation:isolate;
  transition:transform var(--hr-motion) ease, box-shadow var(--hr-motion) ease; }
.hr-card-link{ cursor:pointer; }
.hr-card-link:hover{ transform:translateY(-3px); box-shadow:0 26px 48px -22px rgba(34,34,35,.5); }
.hr-card-img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:-1; }
.hr-card-ph{ display:grid; place-items:center; background:radial-gradient(120% 90% at 30% 20%, #3a3a3b 0%, var(--hr-black) 70%); color:rgba(255,213,42,.6); }
.hr-card-ph svg{ width:56px; height:56px; stroke-width:1.4; }
.hr-card-top{ display:flex; justify-content:space-between; align-items:flex-start; padding:14px; }
.hr-chip{ display:inline-flex; align-items:center; gap:7px; padding:7px 14px 7px 10px; border-radius:var(--hr-radius-pill); font:600 13px 'Inter',Arial,sans-serif; color:#fff;
  background:var(--hr-glass-dark); border:1px solid rgba(255,255,255,.28); -webkit-backdrop-filter:blur(14px); backdrop-filter:blur(14px); }
.hr-chip svg{ width:16px; height:16px; }
.hr-fav{ width:42px; height:42px; border-radius:50%; display:grid; place-items:center; cursor:pointer; color:#fff; background:rgba(255,255,255,.2); border:1px solid rgba(255,255,255,.4);
  -webkit-backdrop-filter:blur(14px); backdrop-filter:blur(14px); transition:background-color var(--hr-motion), color var(--hr-motion); }
.hr-fav:hover{ background:rgba(255,255,255,.32); }
.hr-fav.on{ color:var(--hr-yellow); }
.hr-fav.on svg{ fill:var(--hr-yellow); }
.hr-card-info{ position:absolute; left:0; right:0; bottom:0; padding:44px 18px 18px; display:flex; flex-direction:column; gap:8px;
  background:linear-gradient(180deg, rgba(34,34,35,0) 0%, rgba(34,34,35,.62) 34%, rgba(34,34,35,.82) 100%);
  -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px);
  -webkit-mask-image:linear-gradient(180deg, transparent 0, #000 40px); mask-image:linear-gradient(180deg, transparent 0, #000 40px); }
.hr-loc{ display:flex; align-items:center; gap:6px; font:500 13px 'Inter',Arial,sans-serif; color:rgba(255,255,255,.88); }
.hr-loc svg{ width:16px; height:16px; }
.hr-card h3{ font:700 20px/1.2 'Poppins',Arial,sans-serif; margin:0; color:#fff; text-wrap:balance; }
.hr-specs{ display:flex; flex-wrap:wrap; gap:6px 14px; font:500 13px 'Inter',Arial,sans-serif; color:rgba(255,255,255,.9); }
.hr-specs span{ display:inline-flex; align-items:center; gap:6px; }
.hr-specs svg{ width:16px; height:16px; }
.hr-price-row{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:4px; }
.hr-price{ font:500 14px 'Inter',Arial,sans-serif; color:rgba(255,255,255,.9); }
.hr-price b{ font:700 20px 'Poppins',Arial,sans-serif; color:#fff; }
.hr-price-tbc{ font:600 14px 'Inter',Arial,sans-serif; color:#fff; padding:6px 12px; border-radius:var(--hr-radius-pill); background:rgba(255,255,255,.14); border:1px solid rgba(255,255,255,.28); }
.hr-go{ width:48px; height:48px; border-radius:50%; background:var(--hr-yellow); color:var(--hr-black); display:grid; place-items:center; flex:none; box-shadow:var(--hr-shadow-cta); transition:transform var(--hr-motion); }
.hr-card-link:hover .hr-go{ transform:translateX(2px); }
.hr-empty{ color:var(--hr-charcoal); }

/* ---------- página del apartamento: solo estilos compartidos ---------- */
.apt-hero-inner{ position:absolute; left:0; right:0; bottom:0; padding:28px 240px 30px 44px; }
.apt-hero-inner h1{ text-wrap:balance; text-shadow:0 2px 18px rgba(0,0,0,.35); }
.apt-hero .overlay{ background:linear-gradient(0deg, rgba(34,34,35,.72) 0%, rgba(34,34,35,.25) 38%, transparent 60%); }
.apt-hero .mini-logo{ padding:7px 14px; border-radius:var(--hr-radius-pill); background:rgba(255,255,255,.78); border:1px solid rgba(255,255,255,.6);
  -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px); }
.apt-hero .mini-logo img{ mix-blend-mode:multiply; }
.back-bar button{ border-radius:var(--hr-radius-pill); padding:9px 18px; background:var(--hr-glass-white); border:1px solid var(--hr-light); color:var(--hr-black);
  -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px); transition:background-color var(--hr-motion); }
.back-bar button:hover{ background:#fff; }
.anchor-bar{ background:rgba(247,247,245,.78); -webkit-backdrop-filter:blur(16px) saturate(140%); backdrop-filter:blur(16px) saturate(140%); }
.apt-hero .all-photos{ border-radius:var(--hr-radius-pill); padding:12px 20px; color:#fff; background:var(--hr-glass-dark); border:1px solid rgba(255,255,255,.35);
  -webkit-backdrop-filter:blur(14px); backdrop-filter:blur(14px); transition:background-color var(--hr-motion); }
.apt-hero .all-photos:hover{ background:rgba(34,34,35,.6); }
.gal-more,.show-all{ border-radius:var(--hr-radius-pill); padding:12px 22px; background:var(--hr-glass-white); border:1px solid var(--hr-light); color:var(--hr-black); transition:background-color var(--hr-motion); }
.gal-more:hover,.show-all:hover{ background:#fff; }
.booking{ border-radius:var(--hr-radius-card); border:1px solid var(--hr-light); background:#fff; box-shadow:var(--hr-shadow-soft); }
.booking .hr-tbc{ font:700 18px 'Poppins',Arial,sans-serif; }
.cta-book{ min-height:52px; border-radius:var(--hr-radius-pill); background:var(--hr-yellow); color:var(--hr-black); font-weight:700; box-shadow:var(--hr-shadow-cta);
  transition:transform var(--hr-motion), filter var(--hr-motion); }
.cta-book:hover:not([disabled]){ transform:translateY(-1px); filter:brightness(1.04); background:var(--hr-yellow); }
.cta-book[disabled]{ box-shadow:none; opacity:.5; }
.band-cta button,.tour-frame .poster button{ border-radius:var(--hr-radius-pill); min-height:48px; padding:12px 26px; box-shadow:var(--hr-shadow-cta); }
.band .band-chip{ background:var(--hr-glass-dark); color:#fff; border:1px solid rgba(255,255,255,.3); -webkit-backdrop-filter:blur(14px); backdrop-filter:blur(14px); }
.band .band-full{ border-radius:var(--hr-radius-pill); background:var(--hr-glass-white); -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px); }
.md .box{ border-radius:var(--hr-radius-card); }
.md .go{ border-radius:var(--hr-radius-pill); min-height:52px; }
.md .go:not(.alt):not(.bad){ box-shadow:var(--hr-shadow-cta); }
.lb .close,.lb .arrow{ border-radius:50%; background:var(--hr-glass-dark); border:1px solid rgba(255,255,255,.3); color:#fff; -webkit-backdrop-filter:blur(14px); backdrop-filter:blur(14px); }
.footer-cta{ border-radius:28px; margin:0 16px 16px; }

/* ---------- tablet y celular ---------- */
@media (max-width:980px){
  .hr-nav{ position:absolute; top:calc(100% + 8px); left:0; right:0; flex-direction:column; gap:2px; padding:10px; border-radius:22px;
    background:rgba(34,34,35,.95); border:1px solid rgba(255,255,255,.18); -webkit-backdrop-filter:blur(20px); backdrop-filter:blur(20px);
    opacity:0; visibility:hidden; transform:translateY(-6px); transition:opacity var(--hr-motion), transform var(--hr-motion), visibility var(--hr-motion); }
  .hr-header.open .hr-nav{ opacity:1; visibility:visible; transform:none; }
  .hr-nav a{ padding:14px 16px; font-size:15px; }
  .hr-menu{ display:grid; margin-left:0; }
  .hr-header-cta{ margin-left:auto; }
  .hr-benefits{ grid-template-columns:repeat(2, minmax(0,1fr)); row-gap:6px; }
  .hr-benefits li:nth-child(3){ border-left:0; }
}
@media (max-width:640px){
  .hr-header{ top:12px; padding:8px 8px 8px 16px; gap:10px; }
  .hr-logo img{ height:32px; }
  .hr-header-cta{ display:none; }
  .hr-menu{ margin-left:auto; }
  .hero.hr-hero{ min-height:auto; }
  .hr-hero-inner{ padding:118px 18px 24px; }
  .hr-hero .sub{ font-size:15px; }
  .hr-cta-row{ width:100%; }
  .hr-cta-row .hr-btn{ width:100%; }
  .hr-benefits{ grid-template-columns:1fr; padding:8px; margin-bottom:18px; border-radius:22px; }
  .hr-benefits li{ padding:8px 10px; }
  .hr-benefits li+li{ border-left:0; border-top:1px solid rgba(255,255,255,.18); }
  .hr-search{ flex-direction:column; align-items:stretch; border-radius:24px; }
  .hr-field{ border-radius:18px; }
  .hr-search-btn{ width:100%; border-radius:var(--hr-radius-pill); height:52px; }
  .hr-toolbar{ margin-top:28px; }
  .tab-switch.hr-tabs{ width:100%; overflow-x:auto; }
  .hr-tabs .tab-btn{ padding:10px 14px; flex:1; }
  .grid.hr-grid{ grid-template-columns:1fr; }
  .footer-cta{ margin:0 8px 8px; border-radius:22px; }
  .apt-hero{ aspect-ratio:auto; min-height:0; height:clamp(300px, 62vw, 420px); }
  .apt-hero .all-photos{ right:16px; top:16px; bottom:auto; padding:9px 14px; font-size:.78rem; }
  .apt-hero-inner{ padding:18px; }
  .apt-hero .mini-logo{ top:16px; left:16px; }
}

/* ---------- sin desenfoque disponible: superficies sólidas ---------- */
@supports not ((-webkit-backdrop-filter:blur(1px)) or (backdrop-filter:blur(1px))){
  .hr-header{ background:rgba(34,34,35,.92); }
  .hr-btn-glass{ background:rgba(34,34,35,.62); }
  .hr-benefits{ background:rgba(34,34,35,.8); }
  .hr-search,.tab-switch.hr-tabs,.back-bar button,.gal-more,.show-all{ background:#fff; }
  .hr-chip,.apt-hero .all-photos,.lb .close,.lb .arrow,.band .band-chip{ background:rgba(34,34,35,.82); }
  .hr-fav{ background:rgba(34,34,35,.6); }
  .hr-card-info{ background:linear-gradient(180deg, rgba(34,34,35,0) 0%, rgba(34,34,35,.86) 30%, rgba(34,34,35,.94) 100%); }
  .anchor-bar{ background:var(--hr-off); }
  .hr-nav{ background:rgba(34,34,35,.96); }
}
/* clase manual para probar el respaldo sin desenfoque: <html class="hr-noblur"> */
.hr-noblur *{ -webkit-backdrop-filter:none!important; backdrop-filter:none!important; }
.hr-noblur .hr-header{ background:rgba(34,34,35,.92); }
.hr-noblur .hr-benefits{ background:rgba(34,34,35,.8); }
.hr-noblur .hr-btn-glass{ background:rgba(34,34,35,.62); }
.hr-noblur .hr-chip{ background:rgba(34,34,35,.82); }

@media (prefers-reduced-motion:reduce){
  .hr-btn,.hr-card,.hr-go,.hr-search-btn,.hr-nav,.cta-book{ transition:none; }
  .hr-btn:hover,.hr-card-link:hover,.cta-book:hover{ transform:none; }
}

/* Portada del Apto 2604: carrusel de fundido sobre el mismo contenedor original (sin cambiar tamaño ni capas) */
.apt-hero .hr-slide{ opacity:0; transition:opacity .4s ease; }
.apt-hero .hr-slide.on{ opacity:1; }
@media (prefers-reduced-motion:reduce){ .apt-hero .hr-slide{ transition:none; } }
