/* =========================================================
   RILÁN — hoja de estilos
   Tokens: brand/palette.md · brand/typography.md · brand/art-direction.md
   ========================================================= */

@font-face { font-family: "Marcellus"; src: url("../assets/fonts/marcellus-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../assets/fonts/newsreader-latin-300-normal.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../assets/fonts/newsreader-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../assets/fonts/newsreader-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../assets/fonts/newsreader-latin-300-italic.woff2") format("woff2"); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../assets/fonts/newsreader-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  /* marca */
  --niebla: #EAE9E3;
  --piedra: #544F4C;
  --ceniza: #847F7B;
  --bruma: #CCCBC4;
  /* territorio */
  --noche: #121311;
  --bosque: #2C362F;
  --madera: #644B34;
  --fuego: #B07436;
  --mar: #A6B6C4;

  --f-display: "Marcellus", "Optima", serif;
  --f-text: "Newsreader", "Iowan Old Style", Georgia, serif;

  --fs-mega: clamp(3.2rem, 10.5vw, 10.5rem);
  --fs-h1: clamp(2.1rem, 4.6vw, 4.6rem);
  --fs-h2: clamp(1.6rem, 2.8vw, 2.7rem);
  --fs-lead: clamp(1.25rem, 1.7vw, 1.65rem);
  --fs-body: clamp(1.06rem, 1.15vw, 1.25rem);
  --fs-label: .72rem;

  --gut: clamp(20px, 5vw, 88px);
  --sec: clamp(120px, 18vh, 240px);

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-rendering: optimizeLegibility; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; background: var(--noche); color: var(--niebla);
  font-family: var(--f-text); font-weight: 400; font-size: var(--fs-body); line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; background-size: cover; background-position: center; }
h1, h2, h3, p, figure, blockquote, dl, dd, ul { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
b { font-weight: inherit; }
::selection { background: var(--fuego); color: var(--niebla); }
:focus-visible { outline: 1px solid currentColor; outline-offset: 6px; }
html { overflow-x: clip; }
html { scrollbar-color: var(--piedra) var(--noche); scrollbar-width: thin; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--niebla); color: var(--noche); padding: 10px 16px; font-family: var(--f-display); font-size: var(--fs-label); letter-spacing: .2em; text-transform: uppercase; }
.skip:focus { top: 12px; }

/* idiomas */
html[data-lang="es"] [data-l="en"], html[data-lang="en"] [data-l="es"] { display: none !important; }

/* ---------- tipografía ---------- */
.t-label { font-family: var(--f-display); font-size: var(--fs-label); letter-spacing: .28em; text-transform: uppercase; line-height: 1.5; font-weight: 400; }
.t-display { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; letter-spacing: .08em; line-height: 1.05; }
.line { display: block; overflow: hidden; padding: .16em 0 .1em; margin: -.16em 0 -.1em; }
.line > span { display: block; will-change: transform; }

.u-link { position: relative; display: inline-block; padding-bottom: 4px; }
.u-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-out); }
.u-link:hover::after, .u-link:focus-visible::after { transform: scaleX(1); transform-origin: left; }

.mark { width: clamp(30px, 3.2vw, 46px); height: auto; fill: currentColor; }
.mark--sm { width: 26px; }

.frame { overflow: hidden; height: 100%; }
.frame img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- botones ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6em; height: 52px; padding: 0 30px; white-space: nowrap; overflow: hidden; isolation: isolate; transition: color .5s var(--ease-out), border-color .5s var(--ease-out); }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: translateY(101%); transition: transform .55s var(--ease-out); }
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn:active { transform: scale(.98); }
.btn--ghost { border: 1px solid color-mix(in srgb, currentColor 45%, transparent); }
.btn--ghost::before { background: var(--niebla); }
.btn--ghost:hover { color: var(--noche); border-color: var(--niebla); }
.btn--light { background: var(--niebla); color: var(--noche); }
.btn--light::before { background: var(--fuego); }
.btn--light:hover { color: var(--niebla); }
.btn > span { position: relative; }

/* ---------- precarga ---------- */
.loader { position: fixed; inset: 0; z-index: 90; background: var(--noche); color: var(--niebla); display: grid; place-items: center; align-content: center; gap: 34px; }
.loader__mark { width: 54px; fill: transparent; stroke: var(--niebla); stroke-width: 6; }
.loader__mark rect { fill: var(--niebla); stroke: none; opacity: 0; animation: loader-fade .3s ease-out .85s forwards; }
.loader__mark path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: loader-draw .95s cubic-bezier(.65,0,.35,1) forwards, loader-fill .5s ease-out .7s forwards; }
@keyframes loader-draw { to { stroke-dashoffset: 0; } }
@keyframes loader-fill { to { fill: var(--niebla); } }
@keyframes loader-fade { to { opacity: 1; } }
@keyframes loader-pct { to { opacity: .85; } }
.loader__meta { display: grid; justify-items: center; }
.loader__meta > * { grid-area: 1 / 1; }
.loader__coords { opacity: 0; }
.loader__pct { opacity: 0; animation: loader-pct .5s ease-out .2s forwards; display: inline-flex; align-items: baseline; gap: .35em; font-variant-numeric: tabular-nums; }
.loader__pct [data-pct] { display: inline-block; min-width: 3ch; text-align: right; }
.loader__sym { opacity: .6; }
html:not(.js) .loader { display: none; }

/* ---------- navegación ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: 76px; padding: 0 var(--gut); display: flex; align-items: center; justify-content: space-between; color: var(--niebla); transition: transform .6s var(--ease-out), color .4s ease; mix-blend-mode: normal; }
.nav.is-hidden { transform: translateY(-100%); }
.nav.on-light { color: var(--piedra); }
.nav::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, rgba(18,19,17,.45), transparent); opacity: 1; transition: opacity .4s; pointer-events: none; }
.nav.on-light::before { opacity: 0; }
.nav__brand { display: flex; align-items: center; gap: 14px; }
.nav__brand svg { width: 20px; fill: currentColor; }
.nav__links { display: flex; gap: clamp(20px, 2.6vw, 44px); }
.nav__end { display: flex; align-items: center; gap: 22px; }
.nav .btn { height: 42px; padding: 0 20px; }
.nav.on-light .btn--ghost::before { background: var(--piedra); }
.nav.on-light .btn--ghost:hover { color: var(--niebla); border-color: var(--piedra); }
.lang { display: flex; gap: 6px; opacity: .9; }
.lang span { transition: opacity .3s; }
html[data-lang="es"] .lang__en, html[data-lang="en"] .lang__es { opacity: .62; }
.lang__sep { opacity: .4; }
.burger { display: none; width: 34px; height: 34px; position: relative; }
.burger i { position: absolute; left: 6px; right: 6px; height: 1px; background: currentColor; transition: transform .4s var(--ease-out); }
.burger i:first-of-type { top: 13px; } .burger i:last-of-type { top: 20px; }

/* menú */
.menu { position: fixed; inset: 0; z-index: 70; background: var(--noche); color: var(--niebla); display: grid; grid-template-columns: 1fr 1fr; clip-path: inset(0 0 100% 0); }
.menu[hidden] { display: none; }
.menu__media { position: relative; overflow: hidden; }
.menu__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity .8s var(--ease-out), transform 1.4s var(--ease-out); }
.menu__media img.is-on { opacity: .9; transform: scale(1); }
.menu__list { align-self: center; padding: 0 var(--gut); display: flex; flex-direction: column; gap: 4px; }
.menu__list a { font-family: var(--f-display); text-transform: uppercase; letter-spacing: .06em; font-size: clamp(2.2rem, 5vw, 4.6rem); line-height: 1.08; overflow: hidden; display: block; color: var(--ceniza); transition: color .4s var(--ease-out); }
.menu__list a:hover, .menu__list a:focus-visible { color: var(--niebla); }
.menu__w { display: inline-block; }
.menu__coords { position: absolute; left: calc(50% + var(--gut)); bottom: 36px; opacity: .6; }
.menu__close { position: absolute; right: var(--gut); top: 28px; }

.progress { position: fixed; left: 0; right: 0; top: 0; z-index: 60; height: 2px; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--fuego); transform-origin: left; transform: scaleX(0); }

/* ---------- 1 · hero ---------- */
.hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; display: grid; justify-items: center; align-content: start; padding-top: clamp(76px, 10vh, 140px); text-align: center; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.hero__veil { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(18,19,17,.45), rgba(18,19,17,.1) 45%, transparent 62%, rgba(18,19,17,.65)); }
.hero__content { position: relative; display: grid; justify-items: center; gap: clamp(10px, 2vh, 22px); padding: 0 var(--gut); }
.hero__title { font-family: var(--f-display); font-weight: 400; font-size: clamp(3.4rem, min(15vw, 20vh), 15rem); line-height: .9; letter-spacing: .14em; margin-right: -.14em; }
.hero__letters { display: inline-flex; overflow: hidden; padding: .06em 0; }
.hero__letters span { display: inline-block; }
.hero__lead { font-size: var(--fs-lead); font-weight: 300; font-style: italic; max-width: 30ch; text-shadow: 0 1px 18px rgba(18,19,17,.9), 0 0 2px rgba(18,19,17,.6); }
.hero__bio { position: absolute; left: var(--gut); bottom: 40px; text-align: left; opacity: .85; }
.hero__coords { position: absolute; right: var(--gut); bottom: 40px; opacity: .85; }
.hero__scroll { position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); display: grid; justify-items: center; gap: 12px; }
.hero__scroll i { width: 1px; height: 46px; background: linear-gradient(var(--niebla), transparent); transform-origin: top; animation: drip 2.2s var(--ease-io) infinite; }
@keyframes drip { 0% { transform: scaleY(0); } 45% { transform: scaleY(1); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- 2 · ventana Λ ---------- */
.portal { position: relative; height: 340vh; background: var(--niebla); }
.portal__stage { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.portal__window { position: absolute; inset: 0; clip-path: polygon(50% 26%, 50% 26%, 63% 76%, 37% 76%); will-change: clip-path; background: var(--noche); }
.portal__video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.25); }
.portal__shade { position: absolute; inset: 0; background: rgba(18,19,17,.42); opacity: 0; }
.portal__dot { position: absolute; left: 50%; top: 71%; width: 14px; height: 14px; margin-left: -7px; background: var(--piedra); }
.portal__intro { position: absolute; left: var(--gut); top: 50%; transform: translateY(-50%); max-width: 19ch; color: var(--piedra); font-size: var(--fs-h2); font-weight: 300; line-height: 1.2; }
.portal__words { position: absolute; inset: auto var(--gut) 14vh; text-align: center; color: var(--niebla); font-family: var(--f-display); text-transform: uppercase; letter-spacing: .1em; font-size: clamp(1.7rem, 4.4vw, 4.2rem); line-height: 1.15; }
.portal__words b { display: inline-block; opacity: 0; transform: translateY(30px); filter: blur(8px); }

/* ---------- bienvenida ---------- */
.welcome { background: var(--niebla); color: var(--piedra); padding: var(--sec) var(--gut); }
.welcome__inner { max-width: 980px; margin: 0 auto; display: grid; justify-items: center; text-align: center; gap: clamp(40px, 7vh, 80px); }
.welcome__text { font-size: var(--fs-h2); font-weight: 300; line-height: 1.3; max-width: 30ch; }
.welcome__title { font-size: var(--fs-h1); }

/* ---------- portadas de capítulo ---------- */
.cover { position: relative; height: 100svh; min-height: 560px; overflow: hidden; display: grid; place-items: center; text-align: center; color: var(--niebla); }
.cover__media { position: absolute; inset: -8% 0; }
.cover__media img { width: 100%; height: 100%; object-fit: cover; }
.cover__veil { position: absolute; inset: 0; background: rgba(18,19,17,.32); }
.cover__center { position: relative; display: grid; justify-items: center; gap: clamp(22px, 3.4vh, 36px); padding: 0 var(--gut); }
.cover__word { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: var(--fs-mega); letter-spacing: .12em; margin-right: -.12em; line-height: 1; white-space: nowrap; }
.cover__desc { max-width: 46ch; font-size: var(--fs-body); line-height: 1.6; opacity: .92; }
.cover__coords { position: absolute; bottom: 40px; left: 0; right: 0; opacity: .85; }

/* ---------- capítulo de texto (territory) ---------- */
.chapter { background: var(--niebla); color: var(--piedra); padding: var(--sec) var(--gut); }
.chapter__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 24px; align-items: end; }
.chapter__title { grid-column: 1 / span 7; font-size: var(--fs-h1); font-weight: 300; line-height: 1.08; letter-spacing: -.01em; }
.chapter__body { grid-column: 2 / span 4; margin-top: clamp(40px, 8vh, 90px); max-width: 36ch; font-size: clamp(1.1rem, 1.3vw, 1.35rem); line-height: 1.55; }
.chapter__fig { grid-column: 8 / span 5; grid-row: 1 / span 2; aspect-ratio: 4 / 5; }

/* ---------- galería horizontal ---------- */
.hscroll { position: relative; background: var(--bosque); overflow: clip; }
.hscroll__sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.hscroll__track { display: flex; align-items: center; gap: clamp(28px, 4vw, 70px); height: 100svh; padding: 0 var(--gut); width: max-content; }
.hscroll__intro { width: min(34vw, 460px); flex: none; display: grid; gap: 28px; }
.hscroll__lead { font-size: var(--fs-h2); font-weight: 300; line-height: 1.2; }
.hscroll__body { color: color-mix(in srgb, var(--niebla) 80%, transparent); max-width: 36ch; }
.hint { display: flex; align-items: center; gap: 14px; opacity: .7; }
.hint i { width: 40px; height: 1px; background: currentColor; }
.hs { flex: none; }
.hs--tall { height: 72vh; aspect-ratio: 3 / 4; }
.hs--wide { height: 54vh; aspect-ratio: 16 / 10; }
.hs--mid { height: 62vh; aspect-ratio: 4 / 5; }
.hs--low { align-self: flex-end; margin-bottom: 8vh; }
.hs .frame img { transform: scale(1.12); }
.hs-quote { flex: none; width: min(30vw, 420px); display: grid; gap: 22px; padding: 0 2vw; }
.hs-quote__t { font-family: var(--f-display); text-transform: uppercase; letter-spacing: .08em; font-size: clamp(1.5rem, 2.4vw, 2.3rem); line-height: 1.15; }
.hs-quote__b { color: color-mix(in srgb, var(--niebla) 80%, transparent); }

/* ---------- silencio ---------- */
.silence { background: var(--niebla); color: var(--piedra); padding: var(--sec) var(--gut); display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: center; }
.silence__fig { grid-column: 1 / span 5; aspect-ratio: 3 / 4; }
.silence__text { grid-column: 7 / span 6; display: grid; gap: clamp(28px, 5vh, 48px); }
.silence__title { font-size: var(--fs-h1); font-weight: 300; line-height: 1.08; }
.silence__layers { font-family: var(--f-display); text-transform: uppercase; letter-spacing: .14em; font-size: clamp(.95rem, 1.3vw, 1.2rem); line-height: 2.2; display: grid; }
.silence__layers > span { display: flex; flex-direction: column; }
.silence__layers b { display: block; }
.silence__body { max-width: 38ch; }

/* ---------- escuchar ---------- */
.listen { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden; }
.listen__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.listen__veil { position: absolute; inset: 0; background: linear-gradient(to top, rgba(18,19,17,.85), rgba(18,19,17,.2) 60%); }
.listen__content { position: relative; padding: clamp(96px, 14vh, 160px) var(--gut) clamp(60px, 10vh, 110px); display: grid; gap: 28px; max-width: 760px; }
.listen__title { font-size: var(--fs-h1); font-weight: 300; line-height: 1.08; }
.listen__body { max-width: 52ch; color: color-mix(in srgb, var(--niebla) 86%, transparent); }
.listen__credit { opacity: .6; }
.sound { display: inline-flex; align-items: center; gap: 16px; justify-self: start; height: 52px; padding: 0 26px 0 22px; border: 1px solid color-mix(in srgb, var(--niebla) 45%, transparent); transition: background .4s var(--ease-out), color .4s var(--ease-out); }
.sound:hover { background: var(--niebla); color: var(--noche); }
.sound__bars { display: flex; align-items: flex-end; gap: 3px; height: 14px; }
.sound__bars i { width: 2px; height: 30%; background: currentColor; transition: height .3s var(--ease-out); }
.sound[aria-pressed="true"] .sound__bars i { animation: bars 1s var(--ease-io) infinite alternate; }
.sound[aria-pressed="true"] .sound__bars i:nth-child(2) { animation-delay: -.4s; }
.sound[aria-pressed="true"] .sound__bars i:nth-child(3) { animation-delay: -.7s; }
.sound[aria-pressed="true"] .sound__bars i:nth-child(4) { animation-delay: -.2s; }
@keyframes bars { from { height: 20%; } to { height: 100%; } }

/* ---------- refuge ---------- */
.refuge { background: var(--niebla); color: var(--piedra); padding: var(--sec) var(--gut); }
.refuge__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.refuge__title { grid-column: 1 / span 8; font-size: var(--fs-h1); font-weight: 300; line-height: 1.08; }
.refuge__sub { grid-column: 6 / span 5; max-width: 40ch; margin-top: clamp(20px, 4vh, 40px); }
.refuge__a { grid-column: 1 / span 7; aspect-ratio: 16 / 11; margin-top: clamp(60px, 12vh, 140px); }
.refuge__b { grid-column: 9 / span 3; aspect-ratio: 3 / 4; align-self: end; margin-bottom: -10vh; }
.refuge__wood { grid-column: 2 / span 5; max-width: 40ch; margin-top: clamp(50px, 9vh, 100px); }

/* ---------- habitaciones ---------- */
.rooms { background: var(--noche); padding: var(--sec) 0; overflow: hidden; }
.rooms__head { padding: 0 var(--gut); display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: end; margin-bottom: clamp(50px, 9vh, 100px); }
.rooms__title { grid-column: 1 / span 6; font-size: var(--fs-h2); font-weight: 300; line-height: 1.2; }
.facts { grid-column: 8 / span 5; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; }
.facts dt { color: var(--ceniza); margin-bottom: 6px; }
.facts dd { font-size: var(--fs-lead); font-weight: 300; line-height: 1.25; }
.rooms__slider { padding: 0 var(--gut) !important; overflow: visible !important; }
.room { width: min(56vw, 900px) !important; height: min(64vh, 620px) !important; }
.room--p { width: min(28vw, 440px) !important; }
.room .frame { height: 100%; }
.room img { transform: scale(1.06); transition: transform 1.2s var(--ease-out); }
.room.swiper-slide-active img { transform: scale(1); }
.rooms__ui, .hosts__ui { display: flex; align-items: center; gap: 30px; margin-top: 36px; }
.rooms__bar { flex: 1; height: 1px; background: color-mix(in srgb, var(--niebla) 20%, transparent); position: relative; overflow: hidden; }
.rooms__bar i { position: absolute; inset: 0; background: var(--niebla); transform-origin: left; transform: scaleX(.11); transition: transform .7s var(--ease-out); }
.arrows { display: flex; gap: 10px; }
.arrow { width: 52px; height: 52px; border: 1px solid color-mix(in srgb, currentColor 35%, transparent); display: grid; place-items: center; transition: background .35s var(--ease-out), color .35s var(--ease-out), border-color .35s; }
.arrow svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.2; }
.arrow:hover { background: var(--niebla); color: var(--noche); border-color: var(--niebla); }
.arrow:disabled { opacity: .3; cursor: default; }
.count { font-variant-numeric: tabular-nums; min-width: 6em; }

/* swiper: reglas mínimas para que el layout no salte antes de que cargue su CSS */
.swiper { position: relative; overflow: hidden; }
.swiper-wrapper { position: relative; display: flex; box-sizing: content-box; width: 100%; height: 100%; }
.swiper-slide { flex-shrink: 0; position: relative; }

/* ---------- fuego ---------- */
.fire { position: relative; height: 100svh; min-height: 560px; overflow: hidden; display: grid; place-items: center; }
.fire__media { position: absolute; inset: -12% 0; }
.fire__media img { width: 100%; height: 100%; object-fit: cover; }
.fire__veil { position: absolute; inset: 0; background: rgba(18,19,17,.5); }
.fire__quote { position: relative; max-width: 980px; padding: 0 var(--gut); text-align: center; display: grid; gap: 34px; justify-items: center; }
.fire__t { font-family: var(--f-display); text-transform: uppercase; letter-spacing: .08em; font-size: var(--fs-h1); line-height: 1.1; }
.fire__b { font-size: var(--fs-lead); font-weight: 300; font-style: italic; max-width: 38ch; line-height: 1.45; }

/* ---------- cocina ---------- */
.kitchen { background: var(--noche); padding: var(--sec) var(--gut); display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: start; overflow: clip; }
.kitchen__text { grid-column: 1 / span 5; position: sticky; top: 18vh; display: grid; gap: 30px; }
.kitchen__title { font-size: var(--fs-h1); }
.kitchen__lead { font-size: var(--fs-lead); font-weight: 300; line-height: 1.4; max-width: 30ch; }
.kitchen__body { max-width: 40ch; color: color-mix(in srgb, var(--niebla) 78%, transparent); }
.note { color: var(--fuego); font-size: .78rem; }
.mass { grid-column: 7 / span 6; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; min-width: 0; }
.mass__col { display: grid; gap: 16px; }
.mass__col:nth-child(2) { margin-top: 18vh; }
.mass__col:nth-child(3) { margin-top: 8vh; }
.mass figure { aspect-ratio: 3 / 4; }

/* ---------- coctelería ---------- */
.cocktail { background: var(--niebla); color: var(--piedra); padding: var(--sec) var(--gut); display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: center; }
.cocktail__fig { grid-column: 1 / span 4; aspect-ratio: 3 / 4; }
.cocktail__text { grid-column: 6 / span 4; display: grid; gap: 30px; }
.cocktail__title { font-size: var(--fs-h2); font-weight: 300; line-height: 1.2; }
.cocktail__fig2 { grid-column: 11 / span 2; aspect-ratio: 3 / 4; align-self: end; }

/* ---------- cava ---------- */
.cava { position: relative; min-height: 100svh; display: grid; align-items: center; overflow: hidden; }
.cava__media { position: absolute; inset: 0; }
.cava__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.2); }
.cava__veil { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(18,19,17,.45), rgba(18,19,17,.8)); }
.cava__content { position: relative; padding: 0 var(--gut); display: grid; gap: clamp(40px, 8vh, 80px); justify-items: center; text-align: center; }
.cava__title { font-size: var(--fs-mega); }
.cava__quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px clamp(32px, 5vw, 90px); max-width: 1240px; }
.cava__quotes p { font-size: var(--fs-lead); font-style: italic; font-weight: 300; line-height: 1.35; margin-bottom: 14px; }
.cava__quotes footer { opacity: .95; font-size: .76rem; }
.cava__quotes blockquote { text-shadow: 0 1px 16px rgba(18,19,17,.95), 0 0 3px rgba(18,19,17,.8); }

/* ---------- the long table ---------- */
.table { background: var(--piedra); color: var(--niebla); padding: var(--sec) var(--gut); overflow: hidden; display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: center; }
.table[hidden] { display: none; }
.table__card { grid-column: 1 / span 5; display: grid; gap: 26px; }
.table__title { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; letter-spacing: .06em; font-size: var(--fs-h1); line-height: 1.05; }
.table__lead { font-size: var(--fs-lead); font-weight: 300; line-height: 1.4; max-width: 34ch; }
.table__sub { font-style: italic; opacity: .8; }
.table__rows { border-top: 1px solid color-mix(in srgb, var(--niebla) 30%, transparent); margin: 6px 0 10px; }
.table__rows li { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 16px 0; border-bottom: 1px solid color-mix(in srgb, var(--niebla) 30%, transparent); }
.table__rows small { display: block; width: 100%; font-family: var(--f-text); text-transform: none; letter-spacing: 0; font-size: .95rem; opacity: .75; margin-top: 4px; }
.table .btn { justify-self: start; }
.table__gallery { grid-column: 7 / span 6; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; min-width: 0; }
.table__gallery figure { aspect-ratio: 3 / 4; }
.table__gallery figure:last-child { margin-top: 14vh; }

/* ---------- heritage ---------- */
.heritage { background: var(--niebla); color: var(--piedra); padding: var(--sec) var(--gut); }
.heritage__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.heritage__lead { grid-column: 1 / span 9; font-size: var(--fs-h2); font-weight: 300; line-height: 1.25; max-width: 34ch; margin-bottom: clamp(60px, 12vh, 140px); }
.heritage__a { grid-column: 1 / span 4; aspect-ratio: 3 / 4; }
.heritage__b { grid-column: 6 / span 4; aspect-ratio: 4 / 3; margin-top: 22vh; }
.heritage__c { grid-column: 11 / span 2; aspect-ratio: 2 / 3; margin-top: 6vh; }
.heritage__text { grid-column: 6 / span 5; display: grid; gap: 28px; margin-top: clamp(50px, 9vh, 100px); }
.heritage__title { font-size: var(--fs-h2); font-weight: 300; line-height: 1.2; }

/* ---------- arquitectura (cinta) ---------- */
.arch { background: var(--noche); padding: clamp(60px, 10vh, 120px) 0; overflow: hidden; }
.arch__row { display: flex; gap: 16px; width: max-content; }
.arch__row figure { height: clamp(220px, 38vh, 420px); flex: none; overflow: hidden; }
.arch__row img { height: 100%; width: auto; object-fit: cover; }

/* ---------- anfitriones ---------- */
.hosts { background: var(--niebla); color: var(--piedra); padding: var(--sec) var(--gut); overflow: hidden; }
.hosts__head { display: flex; justify-content: space-between; align-items: end; gap: 40px; flex-wrap: wrap; margin-bottom: clamp(50px, 9vh, 100px); }
.hosts__title { font-size: var(--fs-h1); }
.score { display: flex; align-items: center; gap: 18px; }
.score__n { font-family: var(--f-display); font-size: clamp(2.4rem, 4vw, 3.6rem); line-height: 1; }
.score__l { max-width: 18em; color: var(--piedra); }
.hosts__slider { overflow: visible !important; }
.review { width: min(46vw, 620px) !important; padding-right: clamp(30px, 5vw, 80px); border-left: 1px solid var(--bruma); padding-left: clamp(22px, 2.6vw, 40px); }
.review p { font-size: var(--fs-lead); font-weight: 300; line-height: 1.4; margin-bottom: 26px; }
.review footer { color: var(--piedra); }
.hosts .arrow:hover { background: var(--piedra); color: var(--niebla); border-color: var(--piedra); }
.hosts__src { margin-top: 30px; color: var(--piedra); }

/* ---------- cómo llegar ---------- */
.arrive { background: var(--noche); display: grid; grid-template-columns: 1.15fr 1fr; min-height: 100svh; }
.arrive__map { position: relative; overflow: hidden; background: var(--niebla); }
.arrive__leaflet { position: absolute; inset: 0; z-index: 1; background: transparent; font-family: var(--f-display); }
.arrive__leaflet .leaflet-tile-pane { filter: grayscale(1) contrast(.95) brightness(.85); }
.arrive__leaflet.is-failed { display: grid; place-items: center; color: var(--piedra); }
.arrive__leaflet.leaflet-container { background: transparent; outline-offset: -6px; }
/* marcador: el cuadrado pulsante va anclado a las coordenadas del hotel */
.rilan-pin { position: relative; }
.rilan-pin i { position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; background: var(--fuego); }
.rilan-pin i::after { content: ""; position: absolute; inset: -14px; border: 1px solid var(--fuego); animation: ping 2.4s var(--ease-out) infinite; }
/* controles con la estética de la marca */
.arrive__leaflet .leaflet-bar { border: 0; border-radius: 0; box-shadow: none; display: grid; gap: 6px; background: none; }
.arrive__leaflet .leaflet-bar a, .arrive__leaflet .leaflet-bar a:hover { width: 44px; height: 44px; line-height: 42px; border-radius: 0 !important; border: 1px solid color-mix(in srgb, var(--niebla) 45%, transparent); background: rgba(18,19,17,.78); color: var(--niebla); font: 300 1.4rem/42px var(--f-text); transition: background .3s var(--ease-out), color .3s var(--ease-out); }
.arrive__leaflet .leaflet-bar a:hover { background: var(--niebla); color: var(--noche); }
.arrive__leaflet .leaflet-bar a.leaflet-disabled { opacity: .35; }
.arrive__leaflet .leaflet-control-zoom { margin: 20px 0 0 20px; }
.map-home { margin: 0 20px 20px 0 !important; }
.map-home button { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px; background: rgba(18,19,17,.78); color: var(--niebla); border: 1px solid color-mix(in srgb, var(--niebla) 45%, transparent); font-family: var(--f-display); font-size: var(--fs-label); letter-spacing: .24em; text-transform: uppercase; transition: background .3s var(--ease-out), color .3s var(--ease-out); }
.map-home button:hover, .map-home button:focus-visible { background: var(--niebla); color: var(--noche); }
.map-home i { width: 8px; height: 8px; background: var(--fuego); }
.arrive__leaflet .leaflet-control-attribution { background: rgba(18,19,17,.7); color: var(--bruma); font-family: var(--f-text); font-size: 10px; }
.arrive__leaflet .leaflet-control-attribution a { color: var(--niebla); }
/* aviso al intentar zoom con la rueda o mover con un dedo */
.arrive__hint { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; text-align: center; padding: 24px; color: var(--niebla); background: rgba(18,19,17,.55); pointer-events: none; opacity: 0; transition: opacity .35s var(--ease-out); }
.arrive__hint.is-on { opacity: 1; }
.arrive__hint [data-hint] { display: none; }
.arrive__hint[data-show="wheel"] [data-hint="wheel"], .arrive__hint[data-show="touch"] [data-hint="touch"] { display: inline; }
@keyframes ping { from { transform: scale(.4); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }
.arrive__text { padding: clamp(96px, 12vh, 160px) var(--gut); display: grid; align-content: center; gap: 26px; }
.arrive__title { font-size: var(--fs-h1); }
.arrive__addr { font-size: var(--fs-lead); font-weight: 300; line-height: 1.4; }
.dist { display: grid; border-top: 1px solid color-mix(in srgb, var(--niebla) 20%, transparent); max-width: 460px; }
.dist div { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid color-mix(in srgb, var(--niebla) 20%, transparent); }
.dist dd { font-variant-numeric: tabular-nums; }
.arrive__note { max-width: 40ch; color: color-mix(in srgb, var(--niebla) 80%, transparent); }

/* ---------- reservar ---------- */
.book { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; text-align: center; }
.book__media { position: absolute; inset: -12% 0; }
.book__media img { width: 100%; height: 100%; object-fit: cover; }
.book__veil { position: absolute; inset: 0; background: rgba(18,19,17,.62); }
.book__content { position: relative; padding: clamp(96px, 12vh, 150px) var(--gut) clamp(56px, 8vh, 96px); display: grid; justify-items: center; gap: clamp(36px, 6vh, 60px); }
.book__title { font-size: var(--fs-h1); font-weight: 300; line-height: 1.1; max-width: 20ch; }
.book__ctas { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.rules { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; max-width: 1100px; text-align: left; border-top: 1px solid color-mix(in srgb, var(--niebla) 25%, transparent); padding-top: 28px; }
.rules dt { color: var(--bruma); margin-bottom: 8px; }
.rules dd { font-size: 1rem; line-height: 1.45; }

/* ---------- pie ---------- */
.foot { background: var(--noche); padding: var(--sec) var(--gut) 40px; overflow: hidden; }
.foot__line { font-size: var(--fs-h2); font-weight: 300; font-style: italic; max-width: 24ch; }
.foot__word { font-family: var(--f-display); font-size: clamp(5rem, 24vw, 26rem); letter-spacing: .1em; line-height: .85; margin: clamp(60px, 12vh, 140px) 0 50px -.04em; white-space: nowrap; color: var(--niebla); }
.foot__row { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; color: var(--bruma); border-top: 1px solid color-mix(in srgb, var(--niebla) 18%, transparent); padding-top: 26px; }

/* ---------- micro-interacciones de imágenes ---------- */
@media (hover: hover) {
  .mass figure .frame img, .table__gallery .frame img, .arch__row img { transition: transform 1.1s var(--ease-out), filter .6s var(--ease-out); }
  .mass figure:hover .frame img, .table__gallery figure:hover .frame img { transform: scale(1.06); }
  .arch__row figure:hover img { transform: scale(1.04); filter: brightness(1.08); }
  .mass:hover figure:not(:hover) .frame img { filter: brightness(.6) saturate(.8); }
}

/* ---------- cursor de arrastre ---------- */
.drag { position: fixed; left: 0; top: 0; z-index: 80; pointer-events: none; width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%; background: var(--niebla); color: var(--noche); display: grid; place-items: center; font-family: var(--f-display); font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; transform: scale(0); opacity: 0; }
.hosts .drag { background: var(--piedra); }

/* ---------- grano ---------- */
.grain { position: fixed; inset: -50%; z-index: 85; pointer-events: none; opacity: .055; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------- estado inicial de animaciones (solo con JS y movimiento) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-clip]:not(.is-in) { clip-path: inset(100% 0 0 0); }
  .js [data-clip]:not(.is-in) img { transform: scale(1.18); }
}

/* sin animación (movimiento reducido o GSAP no disponible): todo visible y navegable */
.no-motion .portal { height: auto; }
.no-motion .portal__stage { position: relative; }
.no-motion .portal__words b { opacity: 1; transform: none; filter: none; }
.no-motion .portal__dot, .no-motion .portal__intro { display: none; }
.no-motion .hscroll { height: auto !important; }
.no-motion .hscroll__sticky { position: static; height: auto; overflow: visible; }
.no-motion .hscroll__track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-top: var(--sec); padding-bottom: var(--sec); height: auto; }
.no-motion .hs, .no-motion .hs-quote { scroll-snap-align: center; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .nav__links { display: none; }
  .burger { display: block; }
  .rules { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 899px) {
  :root { --sec: clamp(96px, 14vh, 150px); }
  .nav { height: 64px; }
  .nav .btn { display: none; }
  .hero__bio { display: none; }
  .hero__coords { right: auto; left: 0; width: 100%; text-align: center; bottom: 96px; }
  .hero__scroll { bottom: 22px; }

  .portal { height: 260vh; }
  .portal__window { clip-path: polygon(50% 30%, 50% 30%, 68% 72%, 32% 72%); }
  .portal__intro { top: 14vh; transform: none; left: var(--gut); right: var(--gut); max-width: none; text-align: center; font-size: 1.5rem; }
  .portal__dot { top: 67.5%; width: 10px; height: 10px; margin-left: -5px; }
  .portal__video { transform: none; }

  .chapter__grid, .silence, .refuge__grid, .rooms__head, .kitchen, .cocktail, .table, .heritage__grid { grid-template-columns: 1fr; }
  .chapter__grid > *, .silence > *, .refuge__grid > *, .rooms__head > *, .kitchen > *, .cocktail > *, .table > *, .heritage__grid > * { grid-column: 1 / -1 !important; grid-row: auto !important; }
  .chapter__fig { margin-top: 56px; aspect-ratio: 4 / 5; }
  .chapter__body { margin-top: 32px; }

  .hscroll { overflow: visible; height: auto !important; }
  .hscroll__sticky { position: static; height: auto; overflow: visible; }
  .hscroll__track { height: auto; width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding: var(--sec) var(--gut); gap: 16px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .hscroll__track::-webkit-scrollbar { display: none; }
  .hscroll__intro { width: 82vw; scroll-snap-align: start; }
  .hs, .hs-quote { scroll-snap-align: center; }
  .hs--tall, .hs--mid { height: 62vh; }
  .hs--wide { height: 40vh; }
  .hs--low { margin-bottom: 0; align-self: center; }
  .hs-quote { width: 78vw; }

  .silence__fig { aspect-ratio: 4 / 5; }
  .refuge__b { width: 62%; justify-self: end; margin: -18vh 0 0 !important; position: relative; }
  .refuge__a { margin-top: 48px; }
  .facts { margin-top: 40px; }
  .room { width: 84vw !important; height: 58vh !important; }
  .room--p { width: 64vw !important; }

  .kitchen__text { position: relative; top: 0; margin-bottom: 60px; }
  .mass { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mass__col:nth-child(3) { display: none; }
  .cocktail__fig2 { width: 46%; justify-self: end; margin-top: 8px; }

  .cava__quotes { grid-template-columns: 1fr; }
  .table__gallery { margin-top: 60px; }
  .heritage__b, .heritage__c { margin-top: 0; }
  .heritage__c { width: 60%; }

  .review { width: 84vw !important; }
  .arrive { grid-template-columns: 1fr; }
  .arrive__map { min-height: 60vh; }
  .rules { grid-template-columns: 1fr; }
  .menu { grid-template-columns: 1fr; }
  .menu__media { display: none; }
  .menu__coords { left: var(--gut); }
  .drag { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .portal { height: auto; }
  .portal__stage { position: relative; }
  .portal__window { clip-path: none !important; }
  .portal__words b { opacity: 1; transform: none; filter: none; }
  .portal__dot, .portal__intro { display: none; }
  .hs .frame img, .room img, .cava__media img { transform: none; }
}
