/* =========================================================
   Duna Azul — estilos
   ========================================================= */

:root {
  --blanco-cal: #F5F2EB;
  --azul-noche: #1D3250;
  --azul-piscina: #1E8FCB;
  --arena: #D9C3A0;
  --teca: #A85D2B;
  --noche: #070D17;

  --arena-claro: #EBE0CC;
  --linea: rgba(29, 50, 80, .14);
  --glass: rgba(255, 255, 255, .16);
  --grid-line: rgba(255, 255, 255, .14);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);

  --gx: clamp(16px, 2.2vw, 40px);
  --sec-y: clamp(64px, 8vw, 140px);
}

*, *::before, *::after { box-sizing: border-box; }

/* Safari 26 (iOS/macOS) ignora <meta theme-color> y tiñe el notch/barras
   con el fondo de html/body: lo dejamos en azul noche y el crema vive en <main>. */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--noche); scrollbar-width: none; }
/* Barra de desplazamiento de la página oculta (se sigue pudiendo hacer scroll) */
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; width: 0; height: 0; }

body {
  margin: 0;
  background: var(--noche);
  color: var(--azul-noche);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }

main { display: block; background: var(--blanco-cal); }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure { margin: 0; }

.ic { display: inline-block; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
symbol { overflow: visible; }

:focus-visible { outline: 2px solid var(--azul-piscina); outline-offset: 3px; border-radius: 6px; }
.hero :focus-visible, .site-header :focus-visible, .tour :focus-visible, .price :focus-visible, .site-footer :focus-visible, .lb :focus-visible { outline-color: #fff; }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: #fff; color: var(--azul-noche); padding: 10px 16px; border-radius: 999px; font-weight: 500; transition: top .2s; }
.skip:focus { top: 12px; }

[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 70px); }
.wrap--narrow { max-width: 900px; }

section[id] { scroll-margin-top: 72px; }

/* =========================================================
   Animaciones base
   ========================================================= */
@keyframes fadeDown { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@keyframes heroIn {
  0%   { opacity: 0; transform: translateY(8%) scale(1.12); }
  25%  { opacity: 1; }
  100% { opacity: 1; transform: translateY(0) scale(1.02); }
}
@keyframes lineGrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes wordIn {
  from { opacity: 0; transform: translateY(.45em); filter: blur(10px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes cardIn { from { opacity: 0; transform: translateY(30px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes barsIn { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.06); } }

/* Palabra por palabra: el JS envuelve cada palabra en .w */
.w { display: inline-block; text-indent: 0; }
.js .w { opacity: 0; transform: translateY(.45em); filter: blur(10px); }
.js .go .w, .js .go-now .w {
  animation: wordIn var(--dur, .9s) var(--ease) var(--delay, 0s) both;
}
.js .w.st { opacity: 1; transform: none; filter: none; animation: none; }

/* Revelado de bloques al hacer scroll */
.js .rv { opacity: 0; transition: opacity 1.1s var(--ease) var(--d, 0s), transform 1.1s var(--ease) var(--d, 0s), filter 1s var(--ease) var(--d, 0s); }
.js .rv-up { transform: translateY(30px); }
.js .rv-card { transform: translateY(30px) scale(.97); }
.js .rv-wi { transform: translateY(.45em); filter: blur(10px); transition-duration: .9s; }
.js .go .rv { opacity: 1; transform: none; filter: none; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center;
  padding: 24px var(--gx) 0;
  color: #fff;
  transition: background-color .4s, backdrop-filter .4s, padding .4s;
}
.site-header.is-solid {
  background: rgba(7, 13, 23, .72);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  padding-top: 12px; padding-bottom: 12px;
}
.hd-i { animation: fadeDown .8s var(--ease) var(--d, 0s) both; }

.logo { display: inline-flex; align-items: center; justify-self: start; color: #fff; }
.logo svg { width: clamp(140px, 12vw, 172px); height: auto; }

.nav-pills { display: flex; gap: 1px; }
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  height: 40px; padding: 0 18px; border-radius: 999px;
  font-size: 13px; font-weight: 500; letter-spacing: -.035em; text-transform: uppercase;
  background: var(--glass);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background-color .25s;
  white-space: nowrap;
}
.pill:hover { background: rgba(255, 255, 255, .3); }
/* La pastilla blanca sigue a la sección visible (scroll-spy en main.js) */
.pill { transition: background-color .25s, color .25s; }
.pill.is-active, .pill.is-active:hover { background: #fff; color: var(--azul-noche); }

.hd-right { grid-column: 3; display: flex; align-items: center; justify-content: flex-end; gap: 10px; }

.lang {
  display: inline-flex; align-items: center; height: 40px; padding: 4px; border-radius: 999px;
  background: var(--glass); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.lang button {
  height: 32px; min-width: 38px; padding: 0 10px; border-radius: 999px;
  font-size: 13px; font-weight: 500; letter-spacing: .02em; color: #fff;
  transition: background-color .25s, color .25s;
}
.lang button[aria-pressed="true"] { background: #fff; color: var(--azul-noche); }

.btn-reserve {
  display: inline-flex; align-items: center; height: 41px; padding: 0 19px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .9);
  font-size: 13px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap;
  transition: background-color .25s, color .25s;
}
.btn-reserve:hover { background: var(--blanco-cal); color: var(--azul-noche); }

.burger {
  display: none; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--glass); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.burger .ic-close { display: none; }
.burger[aria-expanded="true"] .ic-open { display: none; }
.burger[aria-expanded="true"] .ic-close { display: block; }

.mnav {
  position: absolute; top: 78px; left: var(--gx); right: var(--gx);
  display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 24px;
  background: rgba(255, 255, 255, .18);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, .3);
  box-shadow: 0 20px 50px rgba(7, 13, 23, .35);
}
.site-header.is-solid .mnav { top: 70px; background: rgba(7, 13, 23, .82); }
.mnav a {
  display: flex; align-items: center; height: 48px; padding: 0 20px; border-radius: 999px;
  background: rgba(255, 255, 255, .12); font-size: 14px; font-weight: 500; text-transform: uppercase; letter-spacing: -.02em;
}
.mnav a:hover { background: rgba(255, 255, 255, .26); }
.lang--menu { display: none; align-self: flex-start; margin-top: 4px; }

@media (min-width: 861px) and (max-width: 1100px) {
  .pill { padding: 0 13px; }
  .pill--home { gap: 7px; }
  .btn-reserve { padding: 0 15px; }
}
@media (max-width: 860px) {
  .nav-pills { display: none; }
  .burger { display: grid; }
  .btn-reserve { height: 40px; padding: 0 14px; font-size: 12px; }
}
@media (max-width: 560px) {
  .site-header { padding-top: 16px; gap: 8px; }
  .hd-right { gap: 8px; }
  .hd-right .lang { display: none; }
  .lang--menu { display: inline-flex; }
  .mnav { top: 70px; }
}
@media (min-width: 861px) { .mnav { display: none !important; } }

/* =========================================================
   Líneas de cuadrícula
   ========================================================= */
.grid-lines { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.grid-lines span { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--grid-line); transform-origin: top; }
.grid-lines span:nth-child(1) { left: 4.8%; }
.grid-lines span:nth-child(2) { left: 35.45%; }
.grid-lines span:nth-child(3) { left: 64.7%; }
.grid-lines span:nth-child(4) { left: 95.2%; }
.grid-lines--anim span { animation: lineGrow 1.6s cubic-bezier(.65, 0, .35, 1) both; }
.grid-lines--anim span:nth-child(2) { animation-delay: .1s; }
.grid-lines--anim span:nth-child(3) { animation-delay: .2s; }
.grid-lines--anim span:nth-child(4) { animation-delay: .3s; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh;
  min-height: max(100svh, clamp(680px, 62vw, 1100px));
  display: flex; flex-direction: column;
  background: var(--noche); color: #fff;
}
.hero-media { position: absolute; inset: 0; z-index: 0; will-change: transform; }
.hero-img {
  width: 100%; height: 100%; object-fit: cover; object-position: 55% 78%;
  transform: scale(1.02);
  animation: heroIn 4.2s cubic-bezier(.22, .61, .24, 1) .2s both;
}

.hero-overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(7,13,23,.35) 0%, rgba(7,13,23,0) 30%, rgba(7,13,23,0) 62%, rgba(7,13,23,.8) 100%);
}
@media (max-width: 767px) {
  /* Foto vertical: un poco a la derecha para no cortar la casa */
  .hero-img { object-position: 60% 50%; }
  /* Oscurecido inferior más suave para que la piscina se vea */
  .hero-overlay { background: linear-gradient(180deg, rgba(7,13,23,.35) 0%, rgba(7,13,23,0) 30%, rgba(7,13,23,0) 75%, rgba(7,13,23,.55) 100%); }
}
.hero-head, .hero-trust { text-shadow: 0 1px 14px rgba(7,13,23,.35); }

.hero-head {
  position: relative; z-index: 3;
  display: flex; flex-wrap: wrap; column-gap: 24px; align-items: flex-start;
  padding: clamp(110px, 9vw, 150px) var(--gx) 0;
}
.eyebrow {
  font-weight: 500; font-size: clamp(12px, 1vw, 14px); letter-spacing: .2em; text-transform: uppercase;
  opacity: .8; margin-bottom: clamp(10px, 1.2vw, 18px);
}
.h1 {
  font-family: var(--serif); font-weight: 400; font-optical-sizing: auto;
  text-transform: uppercase;
  font-size: clamp(56px, calc(40px + 7vw), 190px);
  line-height: .87; letter-spacing: -.01em;
}
.h1 > span { display: block; }
.h1 .l1 { padding-left: .92em; }
.tagline {
  margin: clamp(24px, 4.3vw, 80px) 0 0 auto;
  font-size: clamp(13px, 1.5vw, 24px); line-height: 1.05; letter-spacing: -.03em; text-transform: uppercase;
  text-indent: 3.6em;
  max-width: 24em;
}

.hero-trust {
  position: relative; z-index: 3;
  display: flex; flex-direction: column; align-items: flex-start; gap: clamp(18px, 2.4vw, 34px);
  padding: clamp(28px, 4vw, 72px) var(--gx) 0;
}
.trust-pill {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 36px; padding: 6px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: 13px; font-weight: 500; line-height: 1.3;
  animation: wordIn .8s var(--ease) 1.7s both;
}
.see-house {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: clamp(13px, 1.3vw, 20px); font-weight: 500; letter-spacing: -.02em; text-transform: uppercase;
  transition: opacity .25s;
  animation: wordIn .8s var(--ease) 1.85s both;
}
.see-house:hover { opacity: .8; }

/* Tarjeta: house tour en miniatura */
.tour-card {
  position: absolute; z-index: 3;
  left: var(--gx); bottom: clamp(28px, 6vw, 110px);
  width: clamp(160px, 17vw, 290px);
  animation: cardIn 1s var(--ease) 2s both;
}
.tc-link { display: block; }
.tc-box {
  position: relative; aspect-ratio: 1.7; overflow: hidden;
  border-radius: clamp(8px, .9vw, 14px);
  background: rgba(255, 255, 255, .2);
}
.tc-box img, .tc-box video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tc-slide { opacity: 0; transition: opacity 1.2s ease; }
.tc-slide.on { opacity: 1; }
.tc-slide.zoom { animation: kenburns 5.4s linear both; }
.tc-cap { margin-top: 8px; font-size: clamp(13px, 1.3vw, 20px); line-height: 1.05; font-weight: 500; letter-spacing: -.02em; }
.tc-bars {
  display: flex; gap: 5px; margin-top: 12px;
  transform-origin: left; animation: barsIn .9s var(--ease) 2.55s both;
}
.tc-bars button { flex: 1; height: 14px; display: flex; align-items: center; transition: flex .6s var(--ease); }
.tc-bars button::before { content: ""; width: 100%; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .4); transition: background-color .6s; }
.tc-bars button.on { flex: 1.7; }
.tc-bars button.on::before { background: #fff; }

@media (max-width: 860px) {
  .hero-img { object-position: 68% 70%; }
}
@media (max-width: 700px) {
  .tagline { margin-left: 0; flex-basis: 100%; }
}
@media (max-width: 560px) {
  .tour-card { width: 44vw; bottom: 20px; }
}

/* =========================================================
   FRANJA DE DATOS
   ========================================================= */
.facts {
  position: relative; overflow: hidden;
  min-height: clamp(320px, 31vw, 480px);
  background: linear-gradient(180deg, #070D17 0%, #1D3250 30%, #2E6A98 55%, #8DB8D8 75%, #F5F2EB 100%);
  color: #fff;
  padding: clamp(40px, 5vw, 80px) var(--gx) 0;
}
.facts-list {
  position: relative; z-index: 3;
  display: flex; justify-content: space-between;
  max-width: 1440px; margin: 0 auto;
  padding: 0 calc(4.8% + 4px);
}
.facts-list li {
  flex: 1; display: flex; flex-direction: column; gap: 6px;
  padding: 4px clamp(12px, 2vw, 32px);
  border-left: 1px solid rgba(255, 255, 255, .22);
}
.facts-list li:first-child { border-left: 0; padding-left: 0; }
.facts-list strong { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4vw, 64px); line-height: 1; letter-spacing: -.01em; }
.facts-list span { font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; opacity: .85; line-height: 1.3; }

@media (max-width: 860px) {
  .facts-list { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 16px; padding: 0 0 0 calc(4.8% + 4px); }
  .facts-list li, .facts-list li:first-child { border-left: 1px solid rgba(255, 255, 255, .22); padding: 2px 0 2px 14px; }
  .facts-list li:last-child { grid-column: 1 / -1; }
}

/* =========================================================
   LA CASA
   ========================================================= */
.casa {
  display: flex; flex-wrap: wrap; row-gap: 32px; column-gap: clamp(16px, 2.5vw, 40px);
  padding: clamp(56px, 9.9vw, 170px) clamp(16px, 4vw, 70px) clamp(40px, 4.4vw, 80px) clamp(16px, 2.8vw, 48px);
  max-width: 1600px; margin: 0 auto;
}
.casa-text { flex: 1 1 max(200px, 24.5vw); }
.casa-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(40px, 4.6vw, 80px); line-height: 1.2; color: var(--azul-noche);
}
.casa-title .ln { display: block; }
.casa-title .w { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .06em; }
.casa-lead { margin-top: clamp(20px, 2vw, 32px); max-width: 34ch; font-size: clamp(16px, 1.15vw, 18px); }

.casa-cards {
  flex: 999 1 540px;
  display: grid; grid-template-columns: repeat(3, minmax(170px, 1fr)); gap: clamp(10px, 1.25vw, 20px);
  align-self: flex-start;
}
.hcard { position: relative; aspect-ratio: .79; border-radius: clamp(6px, .8vw, 12px); overflow: hidden; background: var(--arena); }
.hcard img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.hcard:hover img { transform: scale(1.05); }
.hcard figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; gap: 4px;
  padding: 56px 16px 16px; color: #fff;
  background: linear-gradient(180deg, rgba(7,13,23,0), rgba(7,13,23,.78));
}
.hcard figcaption strong { font-family: var(--serif); font-weight: 400; font-size: 20px; line-height: 1.15; }
.hcard figcaption span { font-size: 14px; line-height: 1.35; opacity: .9; }

@media (max-width: 860px) {
  .casa-cards {
    flex-basis: 100%;
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(240px, 72vw);
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    scrollbar-width: none; padding-bottom: 4px;
    margin-right: calc(-1 * clamp(16px, 4vw, 70px)); padding-right: clamp(16px, 4vw, 70px);
  }
  .casa-cards::-webkit-scrollbar { display: none; }
  .hcard { scroll-snap-align: start; }
}

/* =========================================================
   Encabezados de sección
   ========================================================= */
.sec-head { margin-bottom: clamp(28px, 3.5vw, 56px); }
.sec-head--row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.h2 { text-wrap: balance; font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 4.4vw, 72px); line-height: 1.05; letter-spacing: -.01em; }
.sec-sub { margin-top: 14px; font-size: clamp(16px, 1.2vw, 19px); max-width: 46ch; opacity: .85; }
.sec-head--light { color: #fff; }

/* =========================================================
   HOUSE TOUR
   ========================================================= */
.tour { background: var(--azul-noche); color: #fff; padding: var(--sec-y) 0; }
.player {
  position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden;
  background: var(--noche);
}
.player.is-vertical { aspect-ratio: 16 / 9; }
@media (max-width: 860px) { .player.is-vertical { aspect-ratio: 9 / 16; max-width: 420px; margin: 0 auto; } }
.player video, .player iframe, .player > img, .player .poster img {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover;
}
.poster { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.poster::after { content: ""; position: absolute; inset: 0; background: rgba(7, 13, 23, .45); transition: background-color .3s; }
.poster:hover::after { background: rgba(7, 13, 23, .3); }
.play {
  position: absolute; left: 50%; top: 50%; z-index: 2; transform: translate(-50%, -50%);
  display: grid; place-items: center; width: clamp(64px, 7vw, 96px); aspect-ratio: 1; border-radius: 50%;
  background: var(--blanco-cal); color: var(--azul-noche);
  box-shadow: 0 10px 40px rgba(7, 13, 23, .4);
  transition: transform .3s var(--ease);
}
.poster:hover .play { transform: translate(-50%, -50%) scale(1.06); }
.play .ic { fill: currentColor; width: 34%; height: 34%; margin-left: 6%; }
.soon {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; padding: 20px;
}
.player .soon-shade { position: absolute; inset: 0; z-index: 1; background: rgba(7, 13, 23, .55); }
.chip-soon {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .3);
  color: #fff; font-size: 14px; font-weight: 500; letter-spacing: .02em;
}
.chip-soon .dot { width: 8px; height: 8px; border-radius: 50%; background: #E5484D; animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 999px;
  background: #fff; color: var(--azul-noche); font-size: 15px; font-weight: 500;
}

/* =========================================================
   TOUR 360
   ========================================================= */
.t360 { padding: var(--sec-y) 0 calc(var(--sec-y) * .6); }
.tabs {
  display: flex; gap: 8px; margin-bottom: 20px;
  overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
  padding: 2px;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; scroll-snap-align: start;
  height: 44px; padding: 0 18px; border-radius: 999px;
  background: var(--arena-claro); color: var(--azul-noche);
  font-size: 14px; font-weight: 500; white-space: nowrap;
  transition: background-color .25s, color .25s;
}
.tab:hover { background: var(--arena); }
.tab[aria-selected="true"] { background: var(--azul-noche); color: #fff; }
.viewer {
  position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: var(--arena);
}
.viewer > img, .viewer iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.viewer .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,13,23,.05), rgba(7,13,23,.45)); }
.viewer .v-center { position: absolute; inset: 0; display: grid; place-items: center; z-index: 2; }
/* Botón "Ver en 360°": cristal oscuro sobre la foto, el globo gira una vuelta al pasar/tocar */
.btn-360 {
  display: inline-flex; align-items: center; gap: 12px; height: 54px; padding: 0 22px 0 9px; border-radius: 999px;
  background: rgba(7, 13, 23, .4); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid rgba(245, 242, 235, .55);
  color: var(--blanco-cal); font-size: 17px; font-weight: 500; letter-spacing: .01em;
  box-shadow: 0 12px 36px rgba(7, 13, 23, .28);
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn-360 .ic-wrap {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--blanco-cal); color: var(--azul-noche);
  transition: background-color .35s var(--ease), color .35s var(--ease);
}
.btn-360 .ic { transition: transform .9s var(--ease); }
.btn-360:hover, .btn-360:focus-visible { background: var(--blanco-cal); color: var(--azul-noche); border-color: var(--blanco-cal); }
.btn-360:hover .ic-wrap, .btn-360:focus-visible .ic-wrap { background: var(--azul-noche); color: var(--blanco-cal); }
.btn-360:hover .ic, .btn-360:focus-visible .ic { transform: rotate(360deg); }
.btn-360:active { transform: scale(.98); }
.viewer-desc { margin-top: 16px; max-width: 60ch; font-size: 16px; }
.viewer-desc strong { font-weight: 700; }
@media (max-width: 860px) { .viewer { aspect-ratio: 4 / 5; } }

/* =========================================================
   GALERÍA
   ========================================================= */
.gallery { padding: calc(var(--sec-y) * .6) 0 var(--sec-y); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--linea); background: transparent;
  font-size: 14px; font-weight: 500; color: var(--azul-noche);
  transition: background-color .25s, color .25s, border-color .25s;
}
.chip:hover { border-color: var(--azul-noche); }
.chip[aria-pressed="true"] { background: var(--azul-noche); border-color: var(--azul-noche); color: #fff; }

.gal-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(150px, 15vw, 270px); grid-auto-flow: dense;
  gap: clamp(8px, 1vw, 16px);
}
.gal-grid li { min-width: 0; }
.gal-grid li.big { grid-column: span 2; grid-row: span 2; }
.gal-grid li.tall { grid-row: span 2; }
.gal-grid.is-filtered li.big, .gal-grid.is-filtered li.tall { grid-column: auto; grid-row: auto; }
.gal-item {
  position: relative; display: block; width: 100%; height: 100%;
  border-radius: 12px; overflow: hidden; background: var(--arena);
}
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.gal-item:hover img { transform: scale(1.04); }
.gal-grid li { animation: cardIn .7s var(--ease) both; }
@media (max-width: 1024px) {
  .gal-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: clamp(140px, 30vw, 300px); }
}
@media (max-width: 420px) {
  .gal-grid { grid-auto-rows: 44vw; }
}

/* Lightbox */
.lb {
  position: fixed; inset: 0; z-index: 50;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px;
  padding: 64px clamp(8px, 2vw, 24px) 24px;
  background: rgba(7, 13, 23, .94); color: #fff;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  touch-action: pan-y;
}
.lb-fig { display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 0; height: 100%; justify-content: center; }
.lb-fig img { max-width: 100%; max-height: calc(100svh - 150px); width: auto; height: auto; object-fit: contain; border-radius: 10px; }
.lb-fig figcaption { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; font-size: 14px; text-align: center; opacity: .9; }
.lb-count { font-variant-numeric: tabular-nums; opacity: .75; }
.lb-btn {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255, 255, 255, .12); transition: background-color .2s;
}
.lb-btn:hover { background: rgba(255, 255, 255, .25); }
.lb-close { position: absolute; top: 12px; right: 12px; }
@media (max-width: 600px) {
  .lb { grid-template-columns: 1fr; padding: 64px 8px 84px; }
  .lb-prev, .lb-next { position: absolute; bottom: 20px; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
}
body.no-scroll { overflow: hidden; }

/* =========================================================
   DORMITORIOS
   ========================================================= */
.dorms { padding: 0 0 var(--sec-y); }
.dorm-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.5vw, 24px); }
.dorm { background: #fff; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.dorm img, .dorm-illus { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.dorm-illus { display: grid; place-items: center; background: var(--arena); color: var(--azul-noche); }
.dorm-illus svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.dorm-body { padding: 18px 20px 22px; }
.dorm-body h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(20px, 1.6vw, 24px); line-height: 1.2; }
.dorm-body p { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 15px; }
.dorm-foot { display: flex; align-items: center; gap: 10px; margin-top: 24px; font-size: 16px; font-weight: 500; }
@media (max-width: 860px) {
  .dorm-list { grid-template-columns: 1fr; }
  .dorm { flex-direction: row; }
  .dorm img, .dorm-illus { width: 42%; aspect-ratio: auto; min-height: 140px; }
  .dorm-body { align-self: center; }
}

/* =========================================================
   QUÉ INCLUYE
   ========================================================= */
.inc { padding: var(--sec-y) 0; background: var(--arena-claro); }
.inc-cols { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(24px, 4vw, 72px); align-items: start; }
.inc-col:first-child { columns: 2; column-gap: clamp(20px, 3vw, 48px); }
.inc-h { column-span: all; font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2vw, 32px); margin-bottom: 18px; }
.inc-group { break-inside: avoid; margin-bottom: 24px; }
.acc summary { list-style: none; cursor: pointer; }
.acc summary::-webkit-details-marker { display: none; }
.inc-group summary { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; padding: 4px 0 10px; }
.inc-group summary .chev { margin-left: auto; transition: transform .3s var(--ease); }
.acc[open] summary .chev { transform: rotate(180deg); }
.ticks li, .nolist li { position: relative; display: flex; align-items: flex-start; gap: 10px; padding: 5px 0; font-size: 15px; line-height: 1.45; }
.ticks li { padding-left: 30px; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 8px; width: 16px; height: 16px;
  background: var(--azul-noche);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ticks li.has-tip { display: block; }
.tip-btn {
  display: inline-grid; place-items: center; flex: none;
  width: 22px; height: 22px; margin-left: 2px; vertical-align: -5px; border-radius: 50%;
  color: var(--azul-piscina); opacity: .8; transition: opacity .2s, background-color .2s;
  position: relative;
}
.tip-btn::after { content: ""; position: absolute; inset: -11px; } /* área táctil de 44px */
.tip-btn:hover, .tip-btn[aria-expanded="true"] { opacity: 1; background: rgba(30, 143, 203, .12); }
.tip {
  margin-top: 8px; padding: 10px 14px; border-radius: 10px;
  background: var(--blanco-cal); border: 1px solid var(--linea);
  font-size: 14px; line-height: 1.45; color: var(--azul-noche);
  animation: tipIn .25s var(--ease) both;
}
@keyframes tipIn { from { opacity: 0; transform: translateY(-4px); } }
.inc-col--no { background: var(--blanco-cal); border-radius: 16px; padding: clamp(18px, 2vw, 28px); }
.inc-no summary { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2vw, 32px); padding-bottom: 14px; }
.nolist li .ic { color: var(--teca); margin-top: 1px; }

/* En desktop los grupos quedan abiertos y el summary no colapsa */
@media (min-width: 861px) {
  .inc-group summary { cursor: default; }
  .inc-group summary .chev { display: none; }
}
@media (max-width: 860px) {
  .inc-cols { grid-template-columns: 1fr; }
  .inc-col:first-child { columns: 1; }
  .inc-group { margin: 0; border-bottom: 1px solid var(--linea); }
  .inc-group summary { min-height: 56px; padding: 8px 0; }
  .inc-group ul { padding-bottom: 14px; }
  .inc-col--no { padding: 4px 18px; }
  .inc-no { border-bottom: 0; }
  .inc-no summary { font-family: var(--sans); font-weight: 700; font-size: 16px; }
}

/* =========================================================
   REGLAS
   ========================================================= */
.rules { padding: var(--sec-y) 0; }
.rule-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: clamp(10px, 1.2vw, 16px); }
.rule {
  display: flex; flex-direction: column; gap: 14px;
  padding: 20px; border-radius: 16px; background: #fff;
  font-size: 15px; line-height: 1.5;
}
.rule .ic { color: var(--teca); }
.rule strong { font-weight: 700; }

/* =========================================================
   RESEÑAS
   ========================================================= */
.reviews { padding: var(--sec-y) 0; background: var(--arena-claro); overflow: hidden; }
.rev-head { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 6vw, 120px); align-items: center; margin-bottom: clamp(32px, 4vw, 56px); }
.rev-score { display: flex; align-items: center; gap: 20px; }
.rev-big { font-family: var(--serif); font-weight: 400; font-size: clamp(72px, 9vw, 150px); line-height: .9; letter-spacing: -.02em; }
.stars { color: var(--teca); font-size: 22px; letter-spacing: .08em; }
.rev-meta { font-size: 15px; font-weight: 500; }
.rev-bars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px clamp(16px, 2.5vw, 40px); }
.rev-bars li { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; font-size: 14px; }
.rev-bars i { grid-column: 1 / -1; grid-row: 2; height: 3px; border-radius: 2px; background: rgba(29, 50, 80, .15); position: relative; overflow: hidden; }
.rev-bars i::after { content: ""; position: absolute; inset: 0; background: var(--azul-noche); transform-origin: left; transform: scaleX(var(--v)); }
.rev-bars b { font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 860px) {
  .rev-head { grid-template-columns: 1fr; }
  .rev-bars { grid-template-columns: 1fr 1fr; }
}

.carousel { position: relative; }
.rev-track {
  display: flex; gap: clamp(12px, 1.5vw, 20px);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain;
  scrollbar-width: none; padding: 4px 2px 8px;
}
.rev-track::-webkit-scrollbar { display: none; }
.rev-card {
  flex: 0 0 clamp(280px, 30vw, 420px); scroll-snap-align: start;
  position: relative; display: flex; flex-direction: column; gap: 14px;
  background: #fff; border-radius: 16px; padding: 28px 24px 22px;
}
.rev-card::before {
  content: "\201C"; position: absolute; top: -6px; right: 18px;
  font-family: var(--serif); font-size: 120px; line-height: 1; color: var(--arena);
}
.rev-card .stars { font-size: 16px; }
.rev-text { font-size: 16px; line-height: 1.55; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; line-clamp: 5; overflow: hidden; position: relative; }
.rev-card.open .rev-text { -webkit-line-clamp: unset; line-clamp: unset; display: block; }
.rev-more { align-self: flex-start; font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.rev-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--linea); font-size: 13px; line-height: 1.4; }
.rev-foot b { display: block; font-weight: 700; }
.car-btn {
  position: absolute; top: 50%; z-index: 2; transform: translateY(-50%);
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--azul-noche); color: #fff; box-shadow: 0 8px 24px rgba(7, 13, 23, .2);
  transition: opacity .25s;
}
.car-btn[disabled] { opacity: 0; pointer-events: none; }
.car-prev { left: -14px; }
.car-next { right: -14px; }
@media (max-width: 860px) { .car-btn { display: none; } }
.rev-all { margin-top: 28px; }
.rev-all a { font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }

/* =========================================================
   ANFITRIÓN
   ========================================================= */
.host { padding: var(--sec-y) 0; }
.host-card {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 4vw, 64px); align-items: start;
  background: var(--arena-claro); border-radius: 24px; padding: clamp(24px, 4vw, 64px);
}
.host-photo {
  width: 160px; height: 160px; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center; background: var(--azul-noche); color: #fff;
  font-family: var(--serif); font-size: 72px; line-height: 1;
}
.host-photo img { width: 100%; height: 100%; object-fit: cover; }
.kicker { font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: .14em; opacity: .75; }
.host-name { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 6px; font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 3.4vw, 52px); line-height: 1.1; }
.badge { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--azul-noche); color: #fff; font-family: var(--sans); font-size: 13px; font-weight: 500; }
.host-text { margin-top: 16px; max-width: 60ch; font-size: clamp(16px, 1.2vw, 18px); }
.host-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.host-stats li { padding: 8px 14px; border-radius: 999px; background: var(--blanco-cal); font-size: 14px; font-weight: 500; }
.host-note { display: flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 15px; }
@media (max-width: 640px) {
  .host-card { grid-template-columns: 1fr; }
  .host-photo { width: 120px; height: 120px; font-size: 54px; }
}

/* =========================================================
   UBICACIÓN
   ========================================================= */
.loc { padding: 0 0 var(--sec-y); }
.loc-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(20px, 4vw, 64px); align-items: center; }
.map { border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--arena-claro); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.85) contrast(.95); transition: filter .5s; }
.map:hover iframe, .map:focus-within iframe { filter: none; }
.loc-list { display: flex; flex-direction: column; gap: 18px; }
.loc-list li { display: flex; gap: 14px; align-items: flex-start; font-size: clamp(15px, 1.15vw, 18px); }
.loc-list .ic { color: var(--teca); margin-top: 2px; }
.bay { margin-top: clamp(24px, 3vw, 48px); }
.bay img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: 16px; }
.bay figcaption { margin-top: 10px; font-size: 14px; opacity: .8; }
@media (max-width: 860px) {
  .loc-grid { grid-template-columns: 1fr; }
  .bay img { aspect-ratio: 4 / 3; }
}

/* =========================================================
   PRECIO
   ========================================================= */
.price {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--azul-noche); color: #fff;
  padding: calc(var(--sec-y) * 1.1) var(--gx);
  text-align: center;
}
.price-bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; opacity: .25; }
.price .grid-lines { z-index: 0; }
.price-inner { position: relative; z-index: 3; max-width: 980px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.price-big { text-wrap: balance; font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 5.4vw, 88px); line-height: 1.05; letter-spacing: -.01em; }
.price-small { margin-top: 20px; max-width: 56ch; font-size: clamp(14px, 1.1vw, 16px); opacity: .85; }
.btn-main {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 32px;
  min-height: 60px; padding: 14px 30px; border-radius: 999px;
  background: var(--blanco-cal); color: var(--azul-noche);
  font-size: 19px; font-weight: 700; letter-spacing: -.01em;
  box-shadow: 0 14px 40px rgba(7, 13, 23, .35);
  transition: transform .3s var(--ease), box-shadow .3s, background-color .3s;
}
.btn-main:hover { transform: translateY(-2px); background: #fff; box-shadow: 0 18px 50px rgba(7, 13, 23, .45); }
.price-trust { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 14px; opacity: .85; }

/* =========================================================
   FAQ
   ========================================================= */
.faq { padding: var(--sec-y) 0; }
.faq-list { border-top: 1px solid var(--linea); }
.faq-list .acc { border-bottom: 1px solid var(--linea); }
.faq-list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px; padding: 14px 0; font-size: clamp(16px, 1.3vw, 20px); font-weight: 500;
}
.faq-list summary .chev { transition: transform .3s var(--ease); }
.faq-list p { padding: 0 40px 20px 0; font-size: 16px; max-width: 64ch; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--noche); color: rgba(255, 255, 255, .7); padding: 56px 0 calc(40px + env(safe-area-inset-bottom)); font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: auto 1fr auto auto; gap: 16px 40px; align-items: center; }
.site-footer .logo { color: #fff; }
.foot-links { display: flex; gap: 20px; }
.foot-links a:hover { color: #fff; }
@media (max-width: 860px) {
  .foot-grid { grid-template-columns: 1fr; }
  .site-footer { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
}

/* =========================================================
   CTA fijo en móvil
   ========================================================= */
.mcta { display: none; }
@media (max-width: 860px) {
  .mcta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 9;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px var(--gx) calc(12px + env(safe-area-inset-bottom));
    background: rgba(245, 242, 235, .94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-top: 1px solid var(--linea);
    transform: translateY(110%); transition: transform .45s var(--ease);
  }
  .mcta.show { transform: none; }
  .mcta p { font-size: 15px; font-weight: 500; line-height: 1.2; }
  .mcta-btn {
    display: inline-flex; align-items: center; height: 48px; padding: 0 24px; border-radius: 999px;
    background: var(--azul-noche); color: var(--blanco-cal); font-size: 18px; font-weight: 700;
  }
  /* Botón 360 más compacto en celular */
  .btn-360 { height: 44px; gap: 10px; padding: 0 18px 0 6px; font-size: 15px; }
  .btn-360 .ic-wrap { width: 32px; height: 32px; }
  .btn-360 .ic { width: 17px; height: 17px; }
}

/* =========================================================
   Movimiento reducido
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .w, .js .rv { opacity: 1 !important; transform: none !important; filter: none !important; }
  .hero-media { transform: none !important; }
  .btn-360 .ic { transform: none !important; }
}
