/* =============================================================
   HOTEL HABITAT SAN ANTONIO — Stylesheet
   Palette: taupe-gris claro · carbón cálido · bronce
   Type: Cormorant Garamond (display) · Jost (text)
   ============================================================= */

:root {
  --bg: #dcd7d0;
  --bg-2: #e8e4de;
  --bg-3: #cfc9c1;
  --ink: #1f1d1a;
  --ink-2: rgba(31, 29, 26, .64);
  --ink-3: rgba(31, 29, 26, .42);
  --line: rgba(31, 29, 26, .14);
  --bronze: #a8895c;
  --bronze-2: #c4a77a;
  --cream: #f3f0ea;
  --dark: #181715;
  --dark-2: #23211e;
  --wa: #25d366;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-inout: cubic-bezier(0.87, 0, 0.13, 1);
  --ease-quart: cubic-bezier(0.25, 1, 0.5, 1);

  --container: 1400px;
  --gutter: clamp(20px, 4vw, 64px);
}

*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; }

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; background: none; border: 0; color: inherit; cursor: pointer; }
address { font-style: normal; }

::selection { background: var(--bronze); color: var(--cream); }

:focus-visible { outline: 2px solid var(--bronze); outline-offset: 4px; border-radius: 2px; }

.container {
  width: min(100% - var(--gutter) * 2, var(--container));
  margin-inline: auto;
}

.section { padding-block: clamp(96px, 12vw, 180px); position: relative; }
.section--dark { background: var(--dark); color: var(--cream); }

/* ---------- Typography ---------- */
.eyebrow {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--bronze);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
.eyebrow::before { content: ""; width: 36px; height: 1px; background: var(--bronze); }
.eyebrow--light { color: var(--bronze-2); }

.h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(38px, 5.2vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  max-width: 14ch;
  text-wrap: balance;
  margin-bottom: 32px;
}
.h2--xl { font-size: clamp(52px, 8.5vw, 132px); max-width: none; }

.lead {
  font-family: var(--serif);
  font-size: clamp(20px, 1.7vw, 25px);
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 20px;
}
p + p { margin-top: 14px; }

.section__head { margin-bottom: clamp(48px, 6vw, 96px); }
.section__head--row {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: end;
}
.section__note { max-width: 46ch; color: var(--ink-2); }

/* Split text (word reveal) */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w > span { display: inline-block; transform: translateY(110%); will-change: transform; }
.split.is-in .w > span { transform: translateY(0); transition: transform 1.1s var(--ease-out); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }

.reveal-img { overflow: hidden; }
.reveal-img img { transform: scale(1.15); transition: transform 1.6s var(--ease-out); }
.reveal-img::after {
  content: ""; position: absolute; inset: 0; background: var(--bg-3);
  transform: scaleY(1); transform-origin: top; transition: transform 1.2s var(--ease-inout);
}
.reveal-img.is-in img { transform: scale(1); }
.reveal-img.is-in::after { transform: scaleY(0); }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 17px 30px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  border-radius: 999px;
  overflow: hidden;
  isolation: isolate;
  transition: color .5s var(--ease-out), border-color .5s var(--ease-out), transform .6s var(--ease-out);
  will-change: transform;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: inherit;
  transform: scaleX(0); transform-origin: right;
  transition: transform .6s var(--ease-inout);
}
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn span { position: relative; }

.btn--primary { background: var(--ink); color: var(--cream); }
.btn--primary::before { background: var(--bronze); }

.btn--dark { border: 1px solid var(--ink); color: var(--ink); }
.btn--dark::before { background: var(--ink); }
.btn--dark:hover { color: var(--cream); }

.btn--ghost { border: 1px solid rgba(243, 240, 234, .5); color: var(--cream); backdrop-filter: blur(6px); }
.btn--ghost::before { background: var(--cream); }
.btn--ghost:hover { color: var(--ink); border-color: var(--cream); }

.btn--light { background: var(--cream); color: var(--ink); }
.btn--light::before { background: var(--bronze); }
.btn--light:hover { color: var(--cream); }

.btn--nav { padding: 12px 22px; font-size: 11px; background: var(--ink); color: var(--cream); }
.btn--nav::before { background: var(--bronze); }
.btn--lg { padding: 22px 40px; font-size: 13px; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--dark);
  color: var(--cream);
  display: grid; place-items: center;
  transition: transform 1.1s var(--ease-inout);
}
.preloader.is-done { transform: translateY(-100%); pointer-events: none; }
.preloader__inner { display: grid; justify-items: center; gap: 22px; transition: opacity .5s var(--ease-out); }
.preloader.is-done .preloader__inner { opacity: 0; }
.preloader__mark { width: 84px; filter: invert(1) brightness(1.2); opacity: 0; animation: fadeUp 1s var(--ease-out) .1s forwards; }
.preloader__line { width: 160px; height: 1px; background: rgba(243,240,234,.15); overflow: hidden; }
.preloader__line span { display: block; height: 100%; width: 100%; background: var(--bronze-2); transform: scaleX(0); transform-origin: left; animation: load 1.5s var(--ease-inout) .3s forwards; }
.preloader__text { font-size: 10px; letter-spacing: .4em; text-transform: uppercase; color: rgba(243,240,234,.55); opacity: 0; animation: fadeUp 1s var(--ease-out) .5s forwards; }
@keyframes load { to { transform: scaleX(1); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 22px 0;
  color: var(--cream);
  transition: padding .6s var(--ease-out), background .6s var(--ease-out), color .6s var(--ease-out), transform .6s var(--ease-out);
  transform: translateY(-20px); opacity: 0;
}
.nav.is-visible { transform: none; opacity: 1; }
.nav.is-scrolled { padding: 12px 0; background: rgba(220, 215, 208, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: var(--ink); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner { width: min(100% - var(--gutter) * 2, var(--container)); margin-inline: auto; display: flex; align-items: center; gap: 40px; }
.nav__logo { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.nav__mark { width: 40px; height: 40px; filter: invert(1); transition: filter .6s var(--ease-out); }
.nav.is-scrolled .nav__mark { filter: none; }
.nav__wordmark { font-family: var(--serif); font-size: 19px; line-height: 1; letter-spacing: .04em; text-transform: uppercase; display: flex; flex-direction: column; gap: 3px; }
.nav__wordmark strong { font-weight: 500; }
.nav__wordmark small { font-family: var(--sans); font-size: 8.5px; letter-spacing: .34em; font-weight: 400; opacity: .7; }
.nav__links { display: flex; gap: 32px; }
.nav__links a { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 400; position: relative; padding: 6px 0; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-inout); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav.is-scrolled .btn--nav { background: var(--ink); color: var(--cream); }

.nav__burger { display: none; width: 44px; height: 44px; position: relative; z-index: 300; }
.nav__burger span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor; transition: transform .6s var(--ease-inout), top .6s var(--ease-inout); }
.nav__burger span:nth-child(1) { top: 17px; }
.nav__burger span:nth-child(2) { top: 26px; }
.nav__burger.is-open { color: var(--cream); }
.nav__burger.is-open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* ---------- Mobile menu ---------- */
.menu { position: fixed; inset: 0; z-index: 200; pointer-events: none; }
.menu__bg { position: absolute; inset: 0; background: var(--dark); transform: translateY(-100%); transition: transform .9s var(--ease-inout); }
.menu.is-open { pointer-events: auto; }
.menu.is-open .menu__bg { transform: none; }
.menu__inner { position: relative; height: 100%; padding: 110px var(--gutter) 40px; display: flex; flex-direction: column; justify-content: space-between; color: var(--cream); }
.menu__links { display: flex; flex-direction: column; gap: 6px; }
.menu__links a { font-family: var(--serif); font-size: clamp(38px, 9vw, 64px); line-height: 1.1; display: flex; align-items: baseline; gap: 18px; opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease-out), transform .9s var(--ease-out); }
.menu__links a small { font-family: var(--sans); font-size: 11px; letter-spacing: .3em; color: var(--bronze-2); }
.menu.is-open .menu__links a { opacity: 1; transform: none; }
.menu.is-open .menu__links a:nth-child(1) { transition-delay: .35s; }
.menu.is-open .menu__links a:nth-child(2) { transition-delay: .42s; }
.menu.is-open .menu__links a:nth-child(3) { transition-delay: .49s; }
.menu.is-open .menu__links a:nth-child(4) { transition-delay: .56s; }
.menu.is-open .menu__links a:nth-child(5) { transition-delay: .63s; }
.menu.is-open .menu__links a:nth-child(6) { transition-delay: .70s; }
.menu__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; font-size: 13px; color: rgba(243,240,234,.6); opacity: 0; transition: opacity .8s var(--ease-out) .8s; }
.menu.is-open .menu__foot { opacity: 1; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--cream);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; transform: scale(1.18); will-change: transform; }
.hero.is-ready .hero__img { animation: heroZoom 2.4s var(--ease-out) forwards; }
@keyframes heroZoom { to { transform: scale(1.02); } }
.hero__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(24,23,21,.35) 0%, rgba(24,23,21,.05) 35%, rgba(24,23,21,.55) 75%, rgba(24,23,21,.85) 100%),
    linear-gradient(90deg, rgba(24,23,21,.35) 0%, rgba(24,23,21,0) 60%);
}
.hero__content {
  position: relative; z-index: 2;
  width: min(100% - var(--gutter) * 2, var(--container));
  margin: 0 auto;
  padding: 140px 0 clamp(64px, 9vh, 120px);
}
.hero__eyebrow {
  font-size: 11px; letter-spacing: .34em; text-transform: uppercase; font-weight: 400;
  display: flex; align-items: center; gap: 16px; margin-bottom: 30px;
  opacity: 0; transform: translateY(16px);
}
.hero__eyebrow .line { width: 0; height: 1px; background: var(--bronze-2); transition: width 1.2s var(--ease-out) .9s; }
.hero.is-ready .hero__eyebrow { animation: fadeUp 1.1s var(--ease-out) .7s forwards; }
.hero.is-ready .hero__eyebrow .line { width: 48px; }

.hero__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(60px, 11.5vw, 190px);
  line-height: .92;
  letter-spacing: -0.02em;
  max-width: 9.5ch;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.hero__word { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .06em .1em 0; margin-bottom: -.1em; }
.hero__word--i { font-style: italic; font-weight: 300; color: var(--bronze-2); }
.hero__word { opacity: 0; transform: translateY(60%) rotate(2deg); transform-origin: left bottom; }
.hero.is-ready .hero__word { animation: wordIn 1.3s var(--ease-out) forwards; animation-delay: calc(.55s + var(--i) * .11s); }
.hero__title .hero__word:nth-child(1) { --i: 0; }
.hero__title .hero__word:nth-child(2) { --i: 1; }
.hero__title .hero__word:nth-child(3) { --i: 2; }
.hero__title .hero__word:nth-child(4) { --i: 3; }
.hero__title .hero__word:nth-child(5) { --i: 4; }
.hero__title .hero__word:nth-child(6) { --i: 5; }
@keyframes wordIn { to { opacity: 1; transform: none; } }

.hero__bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.hero__lead { font-size: clamp(16px, 1.3vw, 19px); max-width: 40ch; color: rgba(243,240,234,.82); opacity: 0; }
.hero.is-ready .hero__lead { animation: fadeUp 1.1s var(--ease-out) 1.3s forwards; }
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; opacity: 0; }
.hero.is-ready .hero__ctas { animation: fadeUp 1.1s var(--ease-out) 1.5s forwards; }

.hero__scroll {
  position: absolute; left: var(--gutter); bottom: 28px; z-index: 2;
  display: flex; align-items: center; gap: 14px;
  font-size: 10px; letter-spacing: .34em; text-transform: uppercase; color: rgba(243,240,234,.6);
  opacity: 0;
}
.hero.is-ready .hero__scroll { animation: fadeUp 1s var(--ease-out) 2s forwards; }
.hero__scroll i { width: 48px; height: 1px; background: rgba(243,240,234,.35); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; inset: 0; background: var(--cream); transform: translateX(-100%); animation: slideLine 2.2s var(--ease-inout) infinite; }
@keyframes slideLine { 0% { transform: translateX(-100%); } 50% { transform: translateX(0); } 100% { transform: translateX(100%); } }
.hero__coords { position: absolute; right: var(--gutter); bottom: 28px; z-index: 2; font-size: 10px; letter-spacing: .3em; color: rgba(243,240,234,.5); opacity: 0; }
.hero.is-ready .hero__coords { animation: fadeUp 1s var(--ease-out) 2.1s forwards; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 20px 0; background: var(--bg-2); }
.marquee__track { display: flex; align-items: center; gap: 44px; width: max-content; animation: marquee 38s linear infinite; }
.marquee__track span { font-family: var(--serif); font-size: clamp(20px, 2vw, 28px); font-weight: 300; letter-spacing: .02em; white-space: nowrap; color: var(--ink-2); }
.marquee__track i { width: 5px; height: 5px; border-radius: 50%; background: var(--bronze); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 8vw, 140px); align-items: center; }
.about__text { max-width: 560px; }
.about__facts { display: flex; gap: 40px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.about__facts li { display: flex; flex-direction: column; gap: 4px; }
.about__facts strong { font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1; }
.about__facts span { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }

.about__media { position: relative; height: clamp(520px, 60vw, 760px); }
.about__img { position: absolute; overflow: hidden; background: var(--bg-3); }
.about__img img { width: 100%; height: 100%; object-fit: cover; }
.about__img--a { left: 0; top: 0; width: 66%; height: 68%; }
.about__img--b { right: 0; top: 16%; width: 40%; aspect-ratio: 1; height: auto; box-shadow: 0 40px 80px -30px rgba(31,29,26,.4); }
.about__img--c { left: 16%; bottom: 0; width: 42%; height: 42%; box-shadow: 0 40px 80px -30px rgba(31,29,26,.4); }

/* ---------- Rooms ---------- */
.rooms { background: var(--bg-2); }
.rooms__list { display: flex; flex-direction: column; gap: clamp(72px, 9vw, 140px); }
.room {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(32px, 5vw, 96px);
  align-items: center;
}
.room--flip .room__media { order: 2; }
.room__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-3); }
.room__imgwrap { position: absolute; inset: 0; overflow: hidden; }
.room__imgwrap img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.4s var(--ease-out), opacity .9s var(--ease-out); }
.room__imgwrap--alt { opacity: 0; }
.room__media:hover .room__imgwrap--alt { opacity: 1; }
.room__media:hover img { transform: scale(1); }
.room__media::after {
  content: "Pasa el cursor";
  position: absolute; right: 16px; bottom: 16px;
  font-size: 9px; letter-spacing: .3em; text-transform: uppercase; color: var(--cream);
  background: rgba(24,23,21,.5); padding: 8px 12px; backdrop-filter: blur(6px);
  opacity: .8; transition: opacity .4s;
}
.room__media:hover::after { opacity: 0; }

.room__body { position: relative; }
.room__num { font-family: var(--serif); font-size: 15px; letter-spacing: .2em; color: var(--bronze); display: block; margin-bottom: 20px; }
.room__tag { position: absolute; right: 0; top: 0; font-size: 10px; letter-spacing: .28em; text-transform: uppercase; color: var(--bronze); border: 1px solid var(--bronze); padding: 8px 14px; border-radius: 999px; }
.room__title { font-family: var(--serif); font-weight: 300; font-size: clamp(34px, 3.6vw, 54px); line-height: 1.05; margin-bottom: 20px; letter-spacing: -.01em; }
.room__desc { color: var(--ink-2); max-width: 46ch; margin-bottom: 28px; }
.room__specs { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-bottom: 36px; padding-top: 22px; border-top: 1px solid var(--line); }
.room__specs li { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); position: relative; padding-left: 14px; }
.room__specs li::before { content: ""; position: absolute; left: 0; top: 50%; width: 4px; height: 4px; border-radius: 50%; background: var(--bronze); transform: translateY(-50%); }

.reveal-block .room__media { clip-path: inset(0 100% 0 0); transition: clip-path 1.4s var(--ease-inout); }
.reveal-block.room--flip .room__media { clip-path: inset(0 0 0 100%); }
.reveal-block.is-in .room__media { clip-path: inset(0 0 0 0); }
.reveal-block .room__body > * { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease-out), transform 1s var(--ease-out); }
.reveal-block.is-in .room__body > * { opacity: 1; transform: none; }
.reveal-block.is-in .room__body > *:nth-child(1) { transition-delay: .3s; }
.reveal-block.is-in .room__body > *:nth-child(2) { transition-delay: .38s; }
.reveal-block.is-in .room__body > *:nth-child(3) { transition-delay: .46s; }
.reveal-block.is-in .room__body > *:nth-child(4) { transition-delay: .54s; }
.reveal-block.is-in .room__body > *:nth-child(5) { transition-delay: .62s; }
.reveal-block.is-in .room__body > *:nth-child(6) { transition-delay: .70s; }

/* ---------- Services ---------- */
.services { overflow: hidden; }
.services::before {
  content: "H"; position: absolute; right: -4vw; top: -6vw;
  font-family: var(--serif); font-size: 46vw; line-height: 1; font-weight: 300;
  color: rgba(243,240,234,.025); pointer-events: none; user-select: none;
}
.services__head { margin-bottom: clamp(48px, 6vw, 96px); }
.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(243,240,234,.12);
  border-left: 1px solid rgba(243,240,234,.12);
}
.service {
  padding: clamp(28px, 3vw, 44px);
  border-right: 1px solid rgba(243,240,234,.12);
  border-bottom: 1px solid rgba(243,240,234,.12);
  min-height: 250px;
  display: flex; flex-direction: column;
  transition: background .6s var(--ease-out);
}
.service:hover { background: rgba(243,240,234,.04); }
.service svg { width: 34px; height: 34px; color: var(--bronze-2); margin-bottom: auto; transition: transform .7s var(--ease-out); }
.service:hover svg { transform: translateY(-4px); }
.service h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; margin: 28px 0 8px; line-height: 1.15; }
.service p { font-size: 14px; color: rgba(243,240,234,.55); }

/* ---------- Cali ---------- */
.cali { background: var(--bg); overflow: hidden; }
.cali__scroller { width: 100%; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; cursor: grab; padding-block: 8px; }
.cali__scroller::-webkit-scrollbar { display: none; }
.cali__scroller.is-dragging { cursor: grabbing; }
.cali__track {
  display: flex; gap: clamp(14px, 1.6vw, 24px); align-items: flex-end;
  padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2));
  width: max-content;
}
.cali__card { position: relative; flex: none; width: clamp(260px, 26vw, 400px); aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-3); }
.cali__card--tall { aspect-ratio: 3 / 4; width: clamp(240px, 22vw, 340px); }
.cali__card img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.4s var(--ease-out); }
.cali__card:hover img { transform: scale(1); }
.cali__card figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px;
  background: linear-gradient(0deg, rgba(24,23,21,.8), rgba(24,23,21,0));
  color: var(--cream); display: flex; flex-direction: column; gap: 4px;
}
.cali__card figcaption span { font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--bronze-2); }
.cali__card figcaption strong { font-family: var(--serif); font-weight: 400; font-size: 21px; line-height: 1.15; }

.cali__list { margin-top: clamp(48px, 6vw, 96px); display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px; }
.cali__list li { display: flex; justify-content: space-between; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.cali__list em { font-style: normal; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--bronze); white-space: nowrap; }

/* ---------- Gallery ---------- */
.gallery { background: var(--bg-2); }
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: clamp(90px, 9vw, 150px);
  gap: clamp(10px, 1.4vw, 20px);
}
.gallery__item { position: relative; overflow: hidden; background: var(--bg-3); cursor: zoom-in; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; }
.gallery__item::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: rgba(24,23,21,0); transition: background .6s var(--ease-out);
}
.gallery__item:hover::before { background: rgba(24,23,21,.18); }
.gallery__item.is-in:hover img { transform: scale(1.05); transition: transform 1.2s var(--ease-out); }
.g-1 { grid-column: 1 / 8; grid-row: span 4; }
.g-2 { grid-column: 8 / 13; grid-row: span 2; }
.g-3 { grid-column: 8 / 13; grid-row: span 2; }
.g-4 { grid-column: 1 / 4; grid-row: span 3; }
.g-5 { grid-column: 4 / 8; grid-row: span 3; }
.g-6 { grid-column: 8 / 13; grid-row: span 5; }
.g-7 { grid-column: 1 / 5; grid-row: span 3; }
.g-8 { grid-column: 5 / 8; grid-row: span 3; }
.g-9 { grid-column: 8 / 11; grid-row: span 3; }
.g-10 { grid-column: 11 / 13; grid-row: span 3; }

/* ---------- Book ---------- */
.book { overflow: hidden; }
.book__bg { position: absolute; inset: -10% 0; z-index: 0; opacity: .22; }
.book__bg img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.4) contrast(1.1); }
.book::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--dark) 0%, rgba(24,23,21,.55) 50%, var(--dark) 100%); z-index: 0; }
.book__inner { position: relative; z-index: 1; }
.book__steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin: clamp(40px, 5vw, 72px) 0; max-width: 1100px; }
.book__steps li { border-top: 1px solid rgba(243,240,234,.18); padding-top: 24px; }
.book__steps span { font-family: var(--serif); font-size: 15px; letter-spacing: .2em; color: var(--bronze-2); display: block; margin-bottom: 14px; }
.book__steps h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; margin-bottom: 8px; }
.book__steps p { font-size: 14px; color: rgba(243,240,234,.6); max-width: 32ch; }
.book__cta { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.book__cta .btn--primary { background: var(--wa); color: #0b1a10; }
.book__cta .btn--primary::before { background: var(--cream); }
.book__phone { font-family: var(--serif); font-size: 26px; letter-spacing: .04em; color: rgba(243,240,234,.75); }

/* ---------- Location ---------- */
.location__grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(48px, 7vw, 120px); align-items: center; }
.location__text address { font-family: var(--serif); font-size: 21px; line-height: 1.45; margin-bottom: 32px; }
.location__text address strong { font-weight: 500; }
.location__info { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 32px; margin-bottom: 36px; }
.location__info dt { font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.location__info dd { font-size: 15px; }
.location__info a { border-bottom: 1px solid var(--line); transition: border-color .4s; }
.location__info a:hover { border-color: var(--ink); }
.location__map { position: relative; aspect-ratio: 4 / 3; background: var(--bg-3); }
.location__map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(1) contrast(1.05) sepia(.18); }

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: var(--cream); padding: 80px 0 32px; overflow: hidden; }
.footer__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 48px; border-bottom: 1px solid rgba(243,240,234,.12); }
.footer__logo { width: 130px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer__links a { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: rgba(243,240,234,.6); transition: color .4s; }
.footer__links a:hover { color: var(--cream); }
.footer__social { display: flex; gap: 10px; }
.footer__social a { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(243,240,234,.18); border-radius: 50%; transition: background .5s var(--ease-out), border-color .5s var(--ease-out), color .5s; }
.footer__social a:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.footer__social svg { width: 18px; height: 18px; }
.footer__big {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(90px, 22vw, 360px); line-height: .85; letter-spacing: -.03em;
  color: transparent; -webkit-text-stroke: 1px rgba(243,240,234,.16);
  text-align: center; margin: 48px 0 24px; user-select: none;
}
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 12px; color: rgba(243,240,234,.45); letter-spacing: .04em; }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  display: flex; align-items: center; gap: 0;
  height: 58px; padding: 0 16px;
  background: var(--wa); color: #0b1a10;
  border-radius: 999px;
  box-shadow: 0 16px 40px -12px rgba(37,211,102,.6);
  transform: translateY(120px);
  transition: transform .9s var(--ease-out), gap .5s var(--ease-out), padding .5s var(--ease-out);
}
.wa-float.is-visible { transform: none; }
.wa-float__pulse { position: absolute; inset: 0; border-radius: inherit; border: 1px solid var(--wa); animation: pulse 2.4s var(--ease-out) infinite; pointer-events: none; }
@keyframes pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.5); opacity: 0; } }
.wa-float__label { max-width: 0; overflow: hidden; white-space: nowrap; font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; transition: max-width .5s var(--ease-out); }
.wa-float:hover { gap: 12px; padding-right: 24px; }
.wa-float:hover .wa-float__label { max-width: 120px; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 400; background: rgba(24,23,21,.96); display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .6s var(--ease-out); color: var(--cream); }
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox__fig { max-width: min(92vw, 1300px); max-height: 86vh; display: grid; gap: 14px; justify-items: center; }
.lightbox__fig img { max-height: 78vh; max-width: 100%; object-fit: contain; transform: scale(.96); opacity: 0; transition: transform .8s var(--ease-out), opacity .6s var(--ease-out); }
.lightbox.is-open .lightbox__fig img { transform: none; opacity: 1; }
.lightbox__fig figcaption { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: rgba(243,240,234,.6); }
.lightbox__close { position: absolute; top: 22px; right: 22px; width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid rgba(243,240,234,.25); border-radius: 50%; transition: background .4s, color .4s; }
.lightbox__close:hover { background: var(--cream); color: var(--ink); }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; display: grid; place-items: center; border: 1px solid rgba(243,240,234,.25); border-radius: 50%; transition: background .4s, color .4s; }
.lightbox__nav:hover { background: var(--cream); color: var(--ink); }
.lightbox__nav--prev { left: 22px; }
.lightbox__nav--next { right: 22px; }
.lightbox__count { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); font-family: var(--serif); font-size: 16px; letter-spacing: .2em; color: rgba(243,240,234,.6); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .service { min-height: 200px; }
}

@media (max-width: 900px) {
  .nav__links, .btn--nav { display: none; }
  .nav__burger { display: block; }
  .nav__inner { gap: 16px; }
  .section__head--row { grid-template-columns: 1fr; gap: 16px; align-items: start; }
  .about__grid { grid-template-columns: 1fr; gap: 56px; }
  .about__media { height: clamp(380px, 80vw, 560px); }
  .room { grid-template-columns: 1fr; gap: 28px; }
  .room--flip .room__media { order: 0; }
  .room__media::after { content: "Toca la imagen"; }
  .book__steps { grid-template-columns: 1fr; gap: 28px; }
  .location__grid { grid-template-columns: 1fr; gap: 40px; }
  .cali__list { grid-template-columns: 1fr; }
  .gallery__grid { grid-auto-rows: clamp(70px, 11vw, 120px); }
  .footer__top { flex-direction: column; }
}

@media (max-width: 600px) {
  body { font-size: 15px; }
  .hero { align-items: flex-end; }
  .hero__content { padding-top: 120px; }
  .hero__title { font-size: clamp(54px, 15.5vw, 90px); }
  .hero__coords { display: none; }
  .hero__bottom { gap: 24px; }
  .hero__ctas .btn { width: 100%; justify-content: center; }
  .about__facts { gap: 24px; }
  .about__facts strong { font-size: 32px; }
  .gallery__grid { grid-template-columns: repeat(6, 1fr); grid-auto-rows: clamp(60px, 14vw, 100px); }
  .g-1 { grid-column: 1 / 7; grid-row: span 4; }
  .g-2 { grid-column: 1 / 4; grid-row: span 3; }
  .g-3 { grid-column: 4 / 7; grid-row: span 3; }
  .g-4 { grid-column: 1 / 4; grid-row: span 4; }
  .g-5 { grid-column: 4 / 7; grid-row: span 4; }
  .g-6 { grid-column: 1 / 7; grid-row: span 5; }
  .g-7 { grid-column: 1 / 4; grid-row: span 3; }
  .g-8 { grid-column: 4 / 7; grid-row: span 3; }
  .g-9 { grid-column: 1 / 4; grid-row: span 3; }
  .g-10 { grid-column: 4 / 7; grid-row: span 3; }
  .lightbox__nav { width: 44px; height: 44px; }
  .lightbox__nav--prev { left: 10px; }
  .lightbox__nav--next { right: 10px; }
  .wa-float { right: 16px; bottom: 16px; }
  .footer__bottom { flex-direction: column; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal, .reveal-block .room__body > *, .hero__word, .hero__eyebrow, .hero__lead, .hero__ctas, .hero__scroll, .hero__coords { opacity: 1 !important; transform: none !important; }
  .split .w > span { transform: none !important; }
  .reveal-img::after { display: none; }
  .reveal-img img { transform: none; }
  .reveal-block .room__media { clip-path: none !important; }
  .preloader { display: none; }
  .nav { opacity: 1; transform: none; }
}
