/* =========================================================================
   La Posada City — Zámbiza, Quito
   Hoja de estilos principal
   Paleta extraída de la fotografía real del edificio (ver _scratch/palette.py)
   ========================================================================= */

/* ---------------------------------------------------------------- tokens */
:root {
  /* color — pulled from the building itself */
  --ink:        #12170f;   /* near-black green, dusk sky */
  --ink-2:      #1a2016;
  --moss:       #2c3218;
  --paper:      #f5f1e7;   /* warm cream */
  --paper-2:    #eae4d6;
  --lime:       #c9c255;   /* the signature wall */
  --lime-soft:  #e3dc94;
  --terra:      #bd6c41;   /* clay roof tiles — >=4.5:1 con tinta casi negra */
  --clay:       #8a5e3b;
  --gold:       #c2a058;
  --sky:        #4a95ce;

  /* semantic */
  --bg:         var(--ink);
  --fg:         var(--paper);
  --fg-muted:   #a8b0a2;
  --line:       rgba(245, 241, 231, .14);
  --line-dark:  rgba(18, 23, 15, .16);

  /* type */
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans:  "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* fluid scale */
  --step--1: clamp(.78rem, .76rem + .12vw, .86rem);
  --step-0:  clamp(.95rem, .92rem + .16vw, 1.06rem);
  --step-1:  clamp(1.1rem, 1.04rem + .3vw, 1.3rem);
  --step-2:  clamp(1.45rem, 1.3rem + .7vw, 2rem);
  --step-3:  clamp(2rem, 1.6rem + 1.9vw, 3.4rem);
  --step-4:  clamp(2.6rem, 1.8rem + 3.6vw, 5.4rem);
  --step-5:  clamp(3.2rem, 1.6rem + 6.4vw, 8.4rem);

  /* space */
  --gutter: clamp(1.25rem, 5vw, 6rem);
  --section: clamp(4.5rem, 9vw, 10rem);
  --maxw: 1320px;

  /* motion */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --slow: .7s var(--ease);
}

/* ---------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--clay) var(--ink);
}

body {
  background: var(--ink);
  color: var(--fg);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.62;
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; }
/* <picture> no debe crear caja: si no, rompe la cadena de height:100%
   y las imágenes caen a su altura natural en vez de llenar su contenedor. */
picture { display: contents; }
img { height: auto; background: var(--moss); }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; padding: 0; }
/* los `[hidden]` que pone el JS (WhatsApp sin número, precios sin definir)
   deben ganarle a los display de los componentes */
[hidden] { display: none !important; }

::selection { background: var(--lime); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ------------------------------------------------------------ utilities */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: -100px; left: var(--gutter); z-index: 200;
  background: var(--lime); color: var(--ink); padding: .8rem 1.3rem;
  font-size: var(--step--1); letter-spacing: .1em; text-transform: uppercase;
  transition: top .25s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* shared editorial bits ------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .75rem;
  font-size: .7rem; letter-spacing: .26em; text-transform: uppercase;
  color: var(--gold); font-weight: 400;
}
.eyebrow::before {
  content: ""; width: 30px; height: 1px; background: currentColor; opacity: .55;
}
.eyebrow--plain::before { display: none; }

.display {
  font-family: var(--serif);
  font-weight: 300;
  font-size: var(--step-4);
  line-height: .92;
  letter-spacing: -.035em;
  font-variation-settings: "SOFT" 30, "WONK" 1;
  text-wrap: balance;
}
.display em {
  font-style: italic;
  color: var(--lime);
  font-variation-settings: "SOFT" 60, "WONK" 1;
}
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--fg-muted); max-width: 46ch; }

.idx {
  font-family: var(--sans);
  font-size: .7rem; letter-spacing: .22em;
  color: currentColor; opacity: .68;
}

/* buttons ---------------------------------------------------------------- */
.btn {
  --btn-bg: var(--lime);
  --btn-fg: var(--ink);
  position: relative;
  display: inline-flex; align-items: center; gap: .8em;
  padding: 1rem 1.6rem;
  background: var(--btn-bg); color: var(--btn-fg);
  font-size: .74rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  border: 1px solid var(--btn-bg);
  overflow: hidden; isolation: isolate;
  transition: color .4s var(--ease), border-color .4s var(--ease), transform .3s var(--ease);
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--ink);
  transform: translateY(101%);
  transition: transform .45s var(--ease);
}
.btn:hover { color: var(--paper); }
.btn:hover::after { transform: translateY(0); }
.btn .arw { transition: transform .35s var(--ease); }
.btn:hover .arw { transform: translate(4px, -4px); }

.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--fg);
  border-color: var(--line);
}
.btn--ghost:hover { color: var(--paper); border-color: var(--paper); }

.btn--sm {
  padding: .8rem 1.2rem;
  font-size: .7rem;
  /* 44 px es el mínimo que la guía de accesibilidad pide para pulsar con el
     dedo. Antes se quedaba en ~38 y fallaba en pantallas táctiles. */
  min-height: 44px;
}

.link-u {
  position: relative; display: inline-block;
  font-size: .76rem; letter-spacing: .14em; text-transform: uppercase;
  padding-bottom: 3px;
}
.link-u::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: currentColor; transform-origin: right;
  transition: transform .4s var(--ease);
}
.link-u:hover::after { transform: scaleX(0); transform-origin: left; }

/* grain overlay ---------------------------------------------------------- */
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: .32; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

/* scroll progress */
.progress {
  position: fixed; top: 0; left: 0; z-index: 120;
  height: 2px; width: 100%; transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--lime), var(--gold));
}

/* ============================================================ HEADER */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 100;
  transition: background .45s var(--ease), border-color .45s var(--ease), backdrop-filter .45s;
  border-bottom: 1px solid transparent;
}
.hdr__in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding: 1.15rem var(--gutter);
  transition: padding .45s var(--ease);
}
.hdr.is-stuck {
  background: rgba(18, 23, 15, .88);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.hdr.is-stuck .hdr__in { padding-block: .7rem; }

/* wordmark */
.brand { display: flex; align-items: center; gap: .7rem; flex: none; }
.brand__mark {
  width: 34px; height: 34px; flex: none;
  border: 1px solid var(--line); border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: .95rem; color: var(--lime);
  transition: border-color .4s, transform .5s var(--ease);
}
.brand:hover .brand__mark { border-color: var(--lime); transform: rotate(-12deg); }
.brand__txt { line-height: 1; }
.brand__name {
  font-family: var(--serif); font-size: 1.22rem; letter-spacing: -.01em; display: block;
}
.brand__sub {
  display: block; margin-top: .3em;
  font-size: .625rem;          /* era .56rem = 9 px: ilegible */
  letter-spacing: .3em; text-transform: uppercase; color: var(--gold);
}

/* nav */
.nav { display: flex; align-items: center; gap: clamp(1.1rem, 2.4vw, 2.4rem); }
.nav__links { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); }
.nav__links a {
  position: relative;
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--fg); opacity: .72;
  transition: opacity .3s, color .3s;
  padding-block: .3rem;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: var(--lime); transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.nav__links a:hover { opacity: 1; }
.nav__links a:hover::after,
.nav__links a.is-active::after { transform: scaleX(1); }
.nav__links a.is-active { opacity: 1; color: var(--lime); }

/* language switch */
.lang {
  display: flex; align-items: center;
  border: 1px solid var(--line); border-radius: 999px; padding: 2px;
}
.lang button {
  padding: .34rem .62rem; border-radius: 999px;
  font-size: .62rem; letter-spacing: .12em; font-weight: 400;
  color: var(--fg-muted); transition: background .3s, color .3s;
  position: relative;
}
/* El botón se ve pequeño (y queda bien así en la barra), pero se puede pulsar
   en 44 px de alto: el pseudoelemento amplía el área sensible sin ensancharla,
   para que EN y ES no se pisen. */
.lang button::after {
  content: ""; position: absolute; left: 0; right: 0;
  top: 50%; height: 44px; transform: translateY(-50%);
}
.lang button[aria-pressed="true"] { background: var(--lime); color: var(--ink); }

/* burger */
.burger {
  display: none; width: 42px; height: 42px; position: relative;
  border: 1px solid var(--line); border-radius: 50%;
}
.burger span {
  position: absolute; left: 50%; width: 16px; height: 1px; background: var(--fg);
  transition: transform .35s var(--ease), opacity .25s;
}
.burger span:nth-child(1) { transform: translate(-50%, -4px); }
.burger span:nth-child(2) { transform: translate(-50%, 0); }
.burger span:nth-child(3) { transform: translate(-50%, 4px); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translate(-50%, 0) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translate(-50%, 0) rotate(-45deg); }

/* mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 99;
  background: var(--ink);
  display: flex; flex-direction: column; justify-content: center;
  padding: 6rem var(--gutter) 3rem;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .7s var(--ease);
  visibility: hidden;
}
.drawer.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
.drawer > a {
  font-family: var(--serif); font-size: var(--step-3); line-height: 1.15;
  padding-block: .55rem; border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: baseline;
  opacity: 0; transform: translateY(20px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.drawer.is-open > a { opacity: 1; transform: none; }
.drawer.is-open > a:nth-child(1) { transition-delay: .12s; }
.drawer.is-open > a:nth-child(2) { transition-delay: .18s; }
.drawer.is-open > a:nth-child(3) { transition-delay: .24s; }
.drawer.is-open > a:nth-child(4) { transition-delay: .30s; }
.drawer.is-open > a:nth-child(5) { transition-delay: .36s; }
.drawer.is-open > a:nth-child(6) { transition-delay: .42s; }
.drawer.is-open > a:nth-child(7) { transition-delay: .48s; }
.drawer.is-open > a:nth-child(8) { transition-delay: .54s; }
.drawer > a small { font-family: var(--sans); font-size: .6rem; letter-spacing: .2em; color: var(--gold); }
/* enlace a OTRA página dentro del menú: sin número, con flecha */
.drawer__ext { color: var(--lime); }
.drawer__ext .arw { display: inline-block; transition: transform .35s var(--ease); }
.drawer__ext:hover .arw { transform: translate(3px, -3px); }
.drawer__foot { margin-top: 2.5rem; display: flex; flex-direction: column; align-items: flex-start; gap: 1.1rem; }
.drawer__foot .btn { align-self: stretch; justify-content: center; }
.drawer__foot .link-u { font-size: .72rem; }

/* ============================================================== HERO */
.hero {
  position: relative; min-height: 100svh;
  display: grid; align-items: end;
  overflow: hidden; isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover;
  animation: kenburns 26s var(--ease) infinite alternate;
}
@keyframes kenburns {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to   { transform: scale(1.14) translate3d(-1.2%, -1.4%, 0); }
}
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(10,14,9,.72) 0%, rgba(10,14,9,.15) 20%, transparent 34%),
    linear-gradient(to top, rgba(10,14,9,.93) 0%, rgba(10,14,9,.5) 38%, rgba(10,14,9,.12) 72%),
    linear-gradient(to right, rgba(10,14,9,.72) 0%, rgba(10,14,9,.12) 60%, transparent 100%);
}
.hero__body { padding-block: 8rem 3.2rem; }
.hero__title { font-size: var(--step-5); margin: 1.4rem 0 1.6rem; }
.hero__text { max-width: 42ch; color: #dfe3d8; font-size: var(--step-1); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }

.hero__scroll {
  position: absolute; right: var(--gutter); bottom: 3.2rem; z-index: 3;
  writing-mode: vertical-rl;
  font-size: .62rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--fg-muted);
  display: flex; align-items: center; gap: 1rem;
}
.hero__scroll::after {
  content: ""; width: 1px; height: 54px;
  background: linear-gradient(var(--lime), transparent);
  animation: drop 2.4s var(--ease) infinite;
}
@keyframes drop {
  0%, 100% { transform: scaleY(.3); transform-origin: top; opacity: .3; }
  50%      { transform: scaleY(1);  transform-origin: top; opacity: 1; }
}

/* facts ribbon under hero */
.ribbon {
  background: var(--ink-2);
  border-top: 1px solid var(--line);
  position: relative; z-index: 4;
}
.ribbon__in {
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding-block: 0;
}
.ribbon__cell {
  padding: 1.6rem 1.2rem;
  border-left: 1px solid var(--line);
  display: flex; flex-direction: column; gap: .3rem;
}
.ribbon__cell:first-child { border-left: 0; padding-left: 0; }
.ribbon__cell b {
  font-family: var(--serif); font-weight: 300; font-size: var(--step-2);
  line-height: 1; color: var(--lime);
}
.ribbon__cell span { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-muted); }

/* ============================================================= INTRO */
.intro { background: var(--paper); color: var(--ink); }
.intro__grid {
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 6vw, 6rem); align-items: start;
}
.intro .display { font-size: var(--step-4); }
.intro .display em { color: var(--terra); }
.intro__body > * + * { margin-top: 1.3rem; }
.intro__body p { color: #414a3c; font-size: var(--step-1); line-height: 1.5; max-width: 48ch; }
.intro__fig { margin-top: 2.4rem; }
.intro__fig figure { position: relative; }
.intro__fig img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.intro__fig figcaption {
  font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  color: #58614f; margin-top: .8rem;
}
.intro__sign {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .68rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--clay);
}
.intro__sign::before { content: ""; width: 26px; height: 1px; background: currentColor; }

.pillars {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0; margin-top: clamp(3rem, 6vw, 5.5rem);
  border-top: 1px solid var(--line-dark);
}
.pillar { padding: 1.8rem 1.6rem 0 0; }
.pillar + .pillar { border-left: 1px solid var(--line-dark); padding-left: 1.6rem; }
.pillar b {
  display: block; font-family: var(--serif); font-weight: 400;
  font-size: var(--step-2); line-height: 1.05; margin-bottom: .6rem;
}
.pillar p { font-size: .92rem; color: #5a6357; }

/* marquee */
.marquee {
  overflow: hidden; white-space: nowrap;
  background: var(--lime); color: var(--ink);
  padding-block: .85rem; user-select: none;
}
.marquee__track { display: inline-flex; gap: 3rem; animation: slide 34s linear infinite; }
.marquee span {
  font-family: var(--serif); font-size: var(--step-2); line-height: 1;
  display: inline-flex; align-items: center; gap: 3rem;
}
.marquee span::after { content: "✦"; font-size: .5em; opacity: .5; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ============================================================= ROOMS */
.rooms { background: var(--paper); color: var(--ink); }
.sec-head {
  display: grid; grid-template-columns: 1fr minmax(0, 30ch);
  gap: clamp(1.5rem, 4vw, 4rem); align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.sec-head p { color: var(--fg-muted); }
/* en las secciones claras el texto secundario va en tinta, no en gris sobre oscuro */
.rooms .sec-head p,
.explorer .sec-head p { color: #5a6357; }
.sec-head--split { align-items: end; }
.sec-head__n { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.1rem; }
.sec-head__n .idx::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .3; }

.room-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.2rem, 2.4vw, 2.2rem);
}
.room {
  background: #fffdf8; display: flex; flex-direction: column;
  border: 1px solid rgba(18,23,15,.09);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.room:nth-child(even) { transform: translateY(clamp(0px, 3vw, 2.4rem)); }
.room:hover { transform: translateY(-6px) !important; box-shadow: 0 26px 60px -28px rgba(18,23,15,.4); }
.room__media { position: relative; overflow: hidden; aspect-ratio: 4/3; }
.room__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.room:hover .room__media img { transform: scale(1.06); }
.room__tagtop {
  position: absolute; top: 1rem; left: 1rem;
  background: rgba(18,23,15,.72); backdrop-filter: blur(6px);
  color: var(--paper); padding: .38rem .7rem;
  font-size: .6rem; letter-spacing: .16em; text-transform: uppercase;
}
.room__body { padding: 1.5rem 1.6rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
.room__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.room h3 { font-family: var(--serif); font-weight: 400; font-size: var(--step-2); line-height: 1.1; }
.room__from { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--clay); white-space: nowrap; }
.room__body > p { color: #4e5749; font-size: .95rem; margin-top: .7rem; }
.room__amen {
  margin-top: auto; padding-top: 1.3rem;
  display: flex; flex-wrap: wrap; gap: .45rem;
}
.room__amen li {
  font-size: .66rem; letter-spacing: .1em; text-transform: uppercase;
  color: #5a6357; border: 1px solid var(--line-dark);
  padding: .3rem .6rem;
}
.room__cta { margin-top: 1.4rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.room__cta .arw { color: var(--terra); transition: transform .35s var(--ease); }
.room:hover .room__cta .arw { transform: translate(4px, -4px); }

/* ======================================================= GALLERY / CASA */
.house { background: var(--moss); }
.house__grid {
  display: grid; grid-template-columns: repeat(12, 1fr);
  gap: clamp(.8rem, 1.6vw, 1.4rem);
  grid-auto-rows: minmax(0, auto);
}
.shot {
  position: relative; overflow: hidden; display: block;
  background: var(--ink-2);
}
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .6s; }
.shot:hover img { transform: scale(1.05); }
.shot__cap {
  position: absolute; inset: auto 0 0; z-index: 2;
  padding: 1.2rem;
  background: linear-gradient(to top, rgba(10,14,9,.9), transparent);
  transform: translateY(.4rem); opacity: 0;
  transition: transform .5s var(--ease), opacity .5s var(--ease);
}
.shot:hover .shot__cap, .shot:focus-visible .shot__cap { transform: none; opacity: 1; }
.shot__cap small { display: block; font-size: .58rem; letter-spacing: .2em; text-transform: uppercase; color: var(--lime); margin-bottom: .35rem; }
.shot__cap b { font-family: var(--serif); font-weight: 400; font-size: var(--step-1); }

.shot--a { grid-column: span 7; aspect-ratio: 4/3; }
.shot--b { grid-column: span 5; aspect-ratio: 3/4; }
.shot--c { grid-column: span 5; aspect-ratio: 3/4; }
.shot--d { grid-column: span 7; aspect-ratio: 4/3; }
.shot--e { grid-column: span 4; aspect-ratio: 1/1; }
.shot--f { grid-column: span 4; aspect-ratio: 1/1; }
.shot--g { grid-column: span 4; aspect-ratio: 1/1; }

/* ============================================================= LIGHTBOX */
.lb {
  position: fixed; inset: 0; z-index: 200;
  background: #080b08;
  /* minmax(0,1fr): sin esto la fila crece y la foto se sale por debajo del pie */
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  opacity: 0; visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s;
}
.lb.is-open { opacity: 1; visibility: visible; }
.lb__bar, .vlb__bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.2rem var(--gutter);
  color: var(--fg-muted); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase;
}
.lb__close, .vlb__close { font-size: 1.4rem; line-height: 1; padding: .4rem .8rem; color: var(--fg); }
.lb__stage {
  display: grid; place-items: center; padding: 0 clamp(.8rem, 4vw, 4rem);
  min-height: 0;
}
.lb__stage img {
  max-width: 100%; max-height: 100%;
  /* grid item: su min-height:auto por defecto (tamaño intrínseco) le gana
     a max-height y la foto se sale de la pantalla. Hay que anularlo. */
  min-width: 0; min-height: 0;
  width: auto; height: auto;
  object-fit: contain;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.9);
}
.lb__cap, .vlb__cap { text-align: center; padding: 1.2rem var(--gutter) 1.8rem; }
.lb__cap b, .vlb__cap b { font-family: var(--serif); font-weight: 400; font-size: var(--step-2); display: block; }
.lb__cap span, .vlb__cap span { font-size: .8rem; color: var(--fg-muted); }
.lb__nav, .vlb__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%;
  background: rgba(18,23,15,.5); color: var(--fg); font-size: 1.1rem;
  transition: background .3s, border-color .3s;
}
.lb__nav:hover, .vlb__nav:hover { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.lb__nav--prev, .vlb__nav--prev { left: clamp(.5rem, 2vw, 2rem); }
.lb__nav--next, .vlb__nav--next { right: clamp(.5rem, 2vw, 2rem); }

/* el lightbox de video reutiliza la barra, el pie y las flechas de la galería */
.vlb {
  position: fixed; inset: 0; z-index: 210;
  background: #080b08;
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  opacity: 0; visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s;
}
.vlb.is-open { opacity: 1; visibility: visible; }
.vlb__stage { display: grid; place-items: center; padding: 0 clamp(.8rem, 4vw, 4rem); min-height: 0; }
.vlb__stage video {
  max-width: 100%; max-height: 100%;
  /* igual que en .lb__stage img: sin min-height:0 el grid item se sale de pantalla */
  min-width: 0; min-height: 0;
  width: auto; height: auto;
  background: #000;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.9);
}

/* ============================================================== FEATURE */
.feature {
  position: relative; overflow: hidden;
  background: var(--ink);
}
.feature__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 100svh; align-items: stretch;
}
.feature__txt {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(3rem, 7vw, 7rem) clamp(1.5rem, 5vw, 5rem) clamp(3rem, 7vw, 7rem) var(--gutter);
}
.feature__txt .display { font-size: var(--step-3); margin: 1.2rem 0 1.4rem; }
.feature__txt p { color: var(--fg-muted); max-width: 40ch; }
.feature__list { margin-top: 2rem; display: flex; flex-direction: column; gap: .1rem; }
.feature__list li {
  display: flex; gap: 1rem; align-items: baseline;
  padding: .85rem 0; border-top: 1px solid var(--line);
  font-size: .88rem;
}
.feature__list li::before { content: "—"; color: var(--lime); flex: none; }
.feature__media { position: relative; overflow: hidden; }
.feature__media img { width: 100%; height: 100%; object-fit: cover; }
.feature__quote {
  position: absolute; left: clamp(1rem, 3vw, 3rem); bottom: clamp(1.5rem, 4vw, 3rem);
  max-width: 26ch;
  font-family: var(--serif); font-size: var(--step-2); line-height: 1.2;
  color: var(--paper); text-shadow: 0 2px 20px rgba(0,0,0,.7);
}
.feature__quote span { display: block; margin-top: .7rem; font-family: var(--sans); font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--lime-soft); }

/* ============================================================== EVENTOS */
.events { background: var(--ink-2); }

.events__facts {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 3vw, 3rem);
  margin-bottom: clamp(3rem, 7vw, 5.5rem);
}
.events__facts li { padding-top: 1.1rem; border-top: 1px solid var(--line); }
.events__facts b { font-family: var(--serif); font-weight: 400; font-size: var(--step-1); display: block; }
.events__facts p { color: var(--fg-muted); font-size: .9rem; margin-top: .55rem; }

/* ---- La casa en movimiento ---- */
.vmotion { margin-bottom: clamp(3rem, 6vw, 5rem); }
.vmotion__head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: .5rem 1.5rem;
  margin-bottom: clamp(1.2rem, 2.5vw, 2rem);
}
.vmotion__title { font-family: var(--serif); font-weight: 300; font-size: var(--step-3); line-height: 1; }
.vmotion__hint { color: var(--fg-muted); font-size: .85rem; }

.vmotion__grid {
  display: grid; grid-template-columns: repeat(12, 1fr);
  gap: clamp(.8rem, 1.6vw, 1.4rem);
}
.vshot {
  position: relative; overflow: hidden; display: block; width: 100%;
  background: var(--ink);
  text-align: left;
}
.vshot img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.vshot:hover img { transform: scale(1.05); }
/* sin la capa oscura el pie de la foto no se lee en los clips claros */
.vshot::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(10,14,9,.72), transparent 45%);
  transition: opacity .5s var(--ease);
}
.vshot--salon  { grid-column: span 12; aspect-ratio: 2/1; }
.vshot--port   { grid-column: span 6;  aspect-ratio: 4/5; }

.vshot__cap {
  position: absolute; inset: auto 0 0; z-index: 2;
  padding: 1.2rem;
  transform: translateY(.4rem); opacity: 0;
  transition: transform .5s var(--ease), opacity .5s var(--ease);
}
.vshot:hover .vshot__cap, .vshot:focus-visible .vshot__cap { transform: none; opacity: 1; }
.vshot__cap small { display: block; font-size: .58rem; letter-spacing: .2em; text-transform: uppercase; color: var(--lime); margin-bottom: .35rem; }
.vshot__cap b { font-family: var(--serif); font-weight: 400; font-size: var(--step-1); }

/* botón de play dibujado con bordes: no depende de una fuente de iconos */
.vshot__play {
  position: absolute; z-index: 3; top: 50%; left: 50%;
  width: clamp(46px, 5vw, 64px); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%;
  background: rgba(18,23,15,.55);
  transition: transform .45s var(--ease), opacity .35s var(--ease), background .35s, border-color .35s;
}
.vshot__play::before {
  content: ""; width: 0; height: 0; margin-left: 3px;
  border-left: 12px solid var(--paper);
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  transition: border-left-color .35s;
}
.vshot:hover .vshot__play, .vshot:focus-visible .vshot__play {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--lime); border-color: var(--lime);
}
.vshot:hover .vshot__play::before, .vshot:focus-visible .vshot__play::before { border-left-color: var(--ink); }

/* duración del clip, leída del propio botón */
/* vista previa al pasar el ratón: el <video> lo crea y destruye
   initHoverPreview(). Queda entre el póster y el degradado, así que los
   rótulos y el botón de play se siguen leyendo encima. */
.vshot__vid {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; object-fit: cover;
  pointer-events: none;
}
/* mientras se reproduce, el botón de play estorba */
.vshot.is-playing .vshot__play { opacity: 0; }

.vshot__dur {
  position: absolute; z-index: 3; top: 1rem; right: 1rem;
  padding: .28rem .55rem;
  background: rgba(10,14,9,.72); color: var(--fg);
  font-size: .62rem; letter-spacing: .12em;
}
.vshot__dur::before { content: attr(data-dur); }

/* La casa de noche: una sola foto en vertical, con el texto al lado.
   El original es de 624×780, así que se mantiene esa proporción en vez de
   estirarlo a una banda panorámica que no existe en el material original. */
.evfig {
  display: grid; grid-template-columns: minmax(0, 26rem) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
  margin: 0 0 clamp(2.5rem, 5vw, 4rem);
}
.evfig img { display: block; width: 100%; height: auto; background: var(--ink); }
.evfig figcaption small {
  display: block; font-size: .58rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--lime); margin-bottom: .6rem;
}
.evfig figcaption b {
  display: block; font-family: var(--serif); font-weight: 400;
  font-size: var(--step-2); line-height: 1.15; margin-bottom: .9rem;
}
.evfig figcaption p { color: var(--fg-muted); max-width: 40ch; }

.events__cta {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: clamp(1.8rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.2rem 2rem;
}
.events__cta p { color: var(--fg-muted); max-width: 42ch; }

/* volver a las habitaciones, al pie de la página de eventos */
.events__back { margin-top: clamp(1.8rem, 3vw, 2.6rem); }
.events__back .link-u { color: var(--fg-muted); }
.events__back .link-u:hover { color: var(--fg); }
.events__back .arw { display: inline-block; transition: transform .35s var(--ease); }
.events__back .link-u:hover .arw { transform: translate(3px, -3px); }

/* encabezado de página: a una columna, con el h1 al tamaño del hero.
   Tamaño propio fluido: --step-5 es demasiado grande para un móvil de 320 px
   con una línea como "Tu celebración". */
.sec-head--page { grid-template-columns: 1fr; }
.sec-head--page .display { font-size: clamp(2.3rem, 9.5vw, 5rem); margin: 1.1rem 0 1.5rem; }
.sec-head--page .lede { max-width: 62ch; }
.crumb { display: flex; align-items: baseline; gap: .6rem; margin-bottom: clamp(1.6rem, 3vw, 2.6rem); }
.crumb > span { color: var(--lime); }
.crumb .link-u { color: var(--fg-muted); }
.crumb .link-u:hover { color: var(--fg); }

/* ---------------------------------------------------- eventos · banda
   Aviso en la home: la sección completa vive en eventos.html. No lleva
   número de sección — es una banda, no un capítulo. */
.evtease {
  position: relative; overflow: hidden;
  background: var(--moss);
  border-block: 1px solid var(--line);
}
.evtease__in {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(1.8rem, 5vw, 4.5rem); align-items: center;
  padding-block: clamp(3rem, 6.5vw, 6rem);
}
.evtease .eyebrow { color: var(--lime-soft); }
.evtease .display { font-size: var(--step-3); margin: 1rem 0 1.1rem; max-width: 22ch; }
.evtease p { color: var(--fg-muted); max-width: 48ch; }
.evtease__cta { display: flex; flex-direction: column; gap: .8rem; }
.evtease__cta .btn { justify-content: center; }

/* ============================================================ EXPLORER */
.explorer { background: var(--paper); color: var(--ink); }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.4rem; }
.filters button {
  border: 1px solid var(--line-dark);
  padding: .6rem 1.05rem;
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  color: #4a5348;
  transition: background .3s, color .3s, border-color .3s;
}
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.ex-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1px; background: var(--line-dark);
  border: 1px solid var(--line-dark);
}
.ex-card {
  background: var(--paper); padding: 1.8rem 1.6rem 1.6rem;
  display: flex; flex-direction: column; gap: .8rem; min-height: 15rem;
  transition: background .4s var(--ease);
}
.ex-card:hover { background: #fffdf8; }
.ex-card.is-hidden { display: none; }
.ex-card__top { display: flex; align-items: center; justify-content: space-between; }
.ex-card__ico { width: 34px; height: 34px; color: var(--terra); }
.ex-card__dist { font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: #5c6557; }
.ex-card h3 { font-family: var(--serif); font-weight: 400; font-size: var(--step-2); line-height: 1.1; }
.ex-card p { font-size: .9rem; color: #4e5749; }
.ex-card__foot { margin-top: auto; padding-top: 1rem; display: flex; justify-content: space-between; align-items: center; }
.ex-card__tag { font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--clay); }

/* ================================================================= MAP
   Google My Maps embebido. Va sobre tinta para que la UI clara del mapa se
   lea como un panel iluminado dentro de la página, no como un hueco blanco. */
.mapframe { margin: 0; }
.mapframe__box {
  position: relative;
  height: clamp(340px, 56vh, 620px);
  overflow: hidden;
  background: var(--ink-2);
  border: 1px solid var(--line);
  box-shadow: 0 40px 90px -40px rgba(0,0,0,.9);
}
.mapframe iframe { display: block; width: 100%; height: 100%; border: 0; }
/* halo del color de la casa: devuelve el marco a la paleta sin tocar los
   controles del mapa, que deben seguir siendo los de Google */
.mapframe__box::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(245,241,231,.05), inset 0 0 70px rgba(18,23,15,.22);
}
.mapframe__cap {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: .7rem 2rem; margin-top: 1.1rem;
  font-size: .76rem; color: var(--fg-muted);
}
.mapframe__cap .link-u { color: var(--lime); }
.mapframe__cap .arw { display: inline-block; transition: transform .35s var(--ease); }
.mapframe__cap .link-u:hover .arw { transform: translate(3px, -3px); }

/* ============================================================ CURSOR
   Puntero propio: un anillo dorado que va con inercia y un punto que va
   justo detrás del ratón. El anillo crece sobre lo pulsable y se encoge al
   clicar. Solo con ratón de verdad (main.js lo decide) y nunca si el
   visitante pidió menos movimiento. */
.cursor, .cursor-dot {
  position: fixed; top: 0; left: 0;
  /* 150: por encima del contenido, la cabecera y el botón de subir, pero por
     debajo de los lightboxes (200/210) para no tapar los controles de vídeo */
  z-index: 150;
  pointer-events: none; opacity: 0;
  border-radius: 50%;
  transition: opacity .28s var(--ease);
  will-change: transform;
}
.cursor {
  width: 36px; height: 36px; margin: -18px 0 0 -18px;
  border: 1px solid rgba(201,194,85,.8);
  background: rgba(201,194,85,.05);
}
.cursor-dot {
  width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px;
  background: var(--lime);
}
/* La clase la pone main.js al confirmar que hay ratón: si el JS no carga, el
   cursor del sistema se queda y la navegación no se pierde. `cursor` se
   hereda, así que basta con el body. */
body.has-cursor { cursor: none; }
/* sobre texto se deja el cursor de texto del sistema: elegir una palabra
   tiene que seguir viéndose */
body.has-cursor p,
body.has-cursor li,
body.has-cursor h1, body.has-cursor h2,
body.has-cursor h3, body.has-cursor h4,
body.has-cursor figcaption,
body.has-cursor input, body.has-cursor textarea { cursor: text; }
/* los controles nativos del vídeo necesitan el puntero de verdad */
body.has-cursor .lb,  body.has-cursor .lb *,
body.has-cursor .vlb, body.has-cursor .vlb * { cursor: auto; }

/* ============================================================ LOCATION */
.loc { background: var(--terra); color: #1d1009; }
/* el eyebrow iba en crema (2.99:1 sobre terracota: no pasa AA). Sobre este
   tono medio solo hayAa para texto pequeño en marrón oscuro. */
.loc .eyebrow { color: #1e0d05; }
.loc .idx { opacity: 1; }
/* el mapa de Google ahora vive aquí, dentro de una sección clara */
.loc .mapframe__box { height: clamp(300px, 44vh, 460px); }
.loc .mapframe__cap { color: #1e0d05; }
.loc .mapframe__cap .link-u { color: #1e0d05; font-weight: 500; }
.loc__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.loc h2 { font-size: var(--step-4); margin-bottom: .35em; }
.loc p { max-width: 44ch; color: #1e0d05; font-size: var(--step-1); }
.loc__facts { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: 2.4rem; border-top: 1px solid rgba(29,16,9,.28); }
.loc__facts div { padding: 1.1rem 0; border-bottom: 1px solid rgba(29,16,9,.28); }
.loc__facts div:nth-child(odd) { padding-right: 1rem; }
.loc__facts div:nth-child(even) { padding-left: 1rem; border-left: 1px solid rgba(29,16,9,.28); }
.loc__facts b { display: block; font-family: var(--serif); font-weight: 400; font-size: var(--step-2); line-height: 1.1; }
.loc__facts span { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; opacity: .95; }

/* ================================================================= RESEÑAS
   Las tarjetas las inserta main.js desde CONFIG.reviews. Con la lista vacía no
   se pinta ninguna y solo queda el bloque de "déjanos tu reseña". */
.revs { background: var(--moss); }
.revs .sec-head { max-width: 62ch; }
.revs__intro { max-width: 54ch; font-size: 1rem; line-height: 1.65; }

.revs__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: clamp(1.1rem, 2.2vw, 1.8rem);
}
.revs__grid:empty { display: none; }

/* Estrellas: se pintan por Caracteres, no con una fuente de iconos, para que no
   dependa de que haya cargado ningún archivo. */
.rev { display: flex; flex-direction: column; gap: .9rem; }
.rev__stars { color: var(--gold); font-size: 1rem; letter-spacing: .18em; line-height: 1; }
.rev__stars .off { color: rgba(245,241,231,.28); }
.rev__text {
  font-family: var(--serif);
  font-size: 1.06rem;
  line-height: 1.55;
  color: var(--paper);
  margin: 0;
  text-wrap: pretty;
  /* Las reseñas largas traen saltos de párrafo. Sin esto, todo saldría en un
     bloque corrido y perderían los "\n\n" con los que el huésped escribió. */
  white-space: pre-line;
  /* Recorte: una reseña larga se corta a unas líneas y sale un "ver más".
     Sin esto, una reseña de 700 caracteres junto a otra de 8 descuadra la
     rejilla entera y la sección parece rota. */
  display: -webkit-box;
  -webkit-line-clamp: var(--rev-clamp, 5);
  line-clamp: var(--rev-clamp, 5);
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rev--open .rev__text {
  -webkit-line-clamp: unset;
  line-clamp: unset;
  overflow: visible;
}
.rev__more {
  align-self: flex-start;
  font: inherit;
  font-size: .8rem;
  font-weight: 600;
  color: var(--lime);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: .25em;
}
.rev__more:hover { color: var(--lime-soft); }
.rev__more:focus-visible { outline: 2px solid var(--lime-soft); outline-offset: 3px; }
.rev__more[hidden] { display: none; }
.rev__text::before { content: "\201C"; }
.rev__text::after  { content: "\201D"; }
.rev__foot {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .35rem .7rem;
  padding-top: .9rem;
  border-top: 1px solid var(--line);
  font-size: .8rem;
  color: var(--fg-muted);
}
.rev__who  { color: var(--paper); font-weight: 600; }
.rev__src  { display: inline-flex; align-items: center; gap: .3rem; }
.rev__src a { color: var(--lime); text-decoration: underline; text-underline-offset: .2em; }
.rev__src a:hover { color: var(--lime-soft); }
.rev__date { opacity: .75; }
.rev__date time { font-variant-numeric: tabular-nums; }

/* Resumen de la media, solo si hay reseñas. */
.revs__score {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .5rem .9rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
}
.revs__score b {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--step-3);
  line-height: 1;
  color: var(--paper);
  font-variant-numeric: tabular-nums;
}
.revs__score .rev__stars { font-size: 1.15rem; }
.revs__score span { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-muted); }

/* Bloque para dejar reseña */
.revs__cta { margin-top: clamp(2rem, 4vw, 3.25rem); }
.revs__hint { max-width: 58ch; color: var(--fg-muted); font-size: .95rem; line-height: 1.6; margin: 0 0 1.4rem; }
.revs__btns { display: flex; flex-wrap: wrap; gap: .7rem; }

@media print { .revs__cta { display: none; } }

/* ================================================================= FAQ */
.faq { background: var(--ink); }
.faq__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.faq__list { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa button {
  width: 100%; display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1.5rem; text-align: left;
  padding: 1.4rem 0;
  font-family: var(--serif); font-weight: 400; font-size: var(--step-1); line-height: 1.25;
  transition: color .3s;
}
.qa button:hover { color: var(--lime); }
.qa__sign { position: relative; flex: none; width: 16px; height: 16px; margin-top: .45rem; }
.qa__sign::before, .qa__sign::after {
  content: ""; position: absolute; inset: 50% 0 auto; height: 1px; background: currentColor;
  transition: transform .4s var(--ease);
}
.qa__sign::after { transform: rotate(90deg); }
.qa button[aria-expanded="true"] .qa__sign::after { transform: rotate(0deg); }
.qa__panel { overflow: hidden; height: 0; transition: height .45s var(--ease); }
.qa__panel p { color: var(--fg-muted); padding-bottom: 1.5rem; max-width: 56ch; font-size: .95rem; }

/* =============================================================== CTA */
.cta {
  position: relative; overflow: hidden; text-align: center;
  background: var(--ink-2);
  border-top: 1px solid var(--line);
}
.cta__in { padding-block: clamp(4rem, 8vw, 8rem); display: grid; justify-items: center; gap: 1.6rem; }
.cta h2 { font-size: var(--step-4); }
.cta p { color: var(--fg-muted); max-width: 46ch; }
.cta__actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }
.cta__note { font-size: .72rem; color: var(--fg-muted); letter-spacing: .06em; }
.cta::before {
  content: ""; position: absolute; inset: -30% -10% auto; height: 120%;
  background: radial-gradient(ellipse at 50% 0%, rgba(201,194,85,.18), transparent 62%);
  pointer-events: none;
}

/* ============================================================ FOOTER */
.foot { background: #0b0f09; padding: clamp(3rem, 6vw, 5rem) 0 2rem; }
.foot__top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(1.5rem, 4vw, 3rem); padding-bottom: 3rem;
  border-bottom: 1px solid var(--line);
}
.foot__brand .brand__name { font-size: 1.5rem; }
.foot__brand p { color: var(--fg-muted); font-size: .88rem; margin-top: 1rem; max-width: 30ch; }
.foot h4 {
  font-family: var(--sans); font-size: .66rem; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 1.1rem;
}
.foot__col li + li { margin-top: .55rem; }
.foot__col a, .foot__col span { font-size: .88rem; color: var(--fg-muted); transition: color .3s; }
.foot__col a:hover { color: var(--lime); }
.foot__bar {
  padding-top: 1.8rem; display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: space-between; align-items: center;
  font-size: .74rem; color: #99a294;
}
.foot__bar nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.foot__bar a:hover { color: var(--lime); }

/* to top */
.totop {
  position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); z-index: 90;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(18,23,15,.75);
  backdrop-filter: blur(8px);
  display: grid; place-items: center; color: var(--fg);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .35s, visibility .35s, transform .35s var(--ease), background .3s, color .3s;
}
.totop.is-on { opacity: 1; visibility: visible; transform: none; }
.totop:hover { background: var(--lime); color: var(--ink); border-color: var(--lime); }

/* ======================================================= reveal motion */
.rv { opacity: 0; transform: translateY(26px); }
.rv.in { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv[data-d="1"].in { transition-delay: .08s; }
.rv[data-d="2"].in { transition-delay: .16s; }
.rv[data-d="3"].in { transition-delay: .24s; }
.rv[data-d="4"].in { transition-delay: .32s; }
.rv[data-d="5"].in { transition-delay: .4s; }

/* =========================================================== RESPONSIVE */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .burger { display: block; }
  .nav { gap: .8rem; }
  .loc__grid, .feature__grid { grid-template-columns: 1fr; }
  .feature__media { min-height: 60svh; }
  .foot__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  :root { --step-5: clamp(2.9rem, 12vw, 5rem); }
  .hero__scroll { display: none; }
  /* en vertical el degradado de escritorio se comía media foto */
  .hero__media::after {
    background:
      linear-gradient(to bottom, rgba(10,14,9,.78) 0%, rgba(10,14,9,.3) 18%, rgba(10,14,9,.05) 34%),
      linear-gradient(to top, rgba(10,14,9,.93) 0%, rgba(10,14,9,.58) 34%, rgba(10,14,9,.1) 62%, rgba(10,14,9,0) 80%);
  }
  .hero__body { padding-block: 6rem 2.6rem; }
  .ribbon__in { grid-template-columns: repeat(2, 1fr); }
  .ribbon__cell { padding-left: 0; border-left: 0; }
  .ribbon__cell:nth-child(even) { border-left: 1px solid var(--line); padding-left: 1rem; }
  .intro__grid, .sec-head, .faq__grid, .room-grid { grid-template-columns: 1fr; }
  .intro__fig { display: none; }
  .room:nth-child(even) { transform: none; }
  .pillars { grid-template-columns: 1fr; }
  .pillar + .pillar { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-dark); }
  .shot--a, .shot--b, .shot--c, .shot--d, .shot--e, .shot--f, .shot--g {
    grid-column: span 12; aspect-ratio: 4/3;
  }
  .shot--b, .shot--c { aspect-ratio: 1/1; }
  .shot__cap { transform: none; opacity: 1; }
  .events__facts { grid-template-columns: 1fr; }
  .events__facts li + li { margin-top: 1.1rem; }
  .evfig { grid-template-columns: 1fr; }
  .evfig img { max-width: 26rem; }
  .vshot--salon { grid-column: span 12; aspect-ratio: 4/3; }
  .vshot--port { grid-column: span 12; aspect-ratio: 4/5; }
  .vshot__cap { transform: none; opacity: 1; }
  .vlb__nav { width: 42px; height: 42px; font-size: 1rem; }
  .vlb__stage { padding: 0 .6rem; }
  .evtease__in { grid-template-columns: 1fr; }
  .evtease__cta { flex-direction: row; flex-wrap: wrap; }
  .mapframe__box { height: clamp(300px, 62vh, 460px); }
}

@media (max-width: 560px) {
  /* el botón "Reservar" vive también en el menú: fuera de la barra */
  .hdr__in .btn--sm { display: none; }
  .hdr__in { gap: .7rem; }
  .brand__mark { width: 30px; height: 30px; font-size: .82rem; }
  .brand__name { font-size: 1.05rem; }
  /* El selector de idioma sigue en la barra en móvil, así que se agranda un poco
     para que se lea; el ::after de arriba le da los 44 px de zona pulsable. */
  .lang button { padding: 0 .75rem; font-size: .68rem; min-height: 40px; }
  .burger { width: 44px; height: 44px; }

  .foot__top { grid-template-columns: 1fr; }
  .loc__facts { grid-template-columns: 1fr; }
  .loc__facts div:nth-child(even) { border-left: 0; padding-left: 0; }

  /* Botones a ancho completo en pantallas estrechas. Sin esto, con el WhatsApp
     ya configurado el CTA tiene tres botones y se parten 2+1 descentrados; los
     rótulos en mayúsculas con espaciado amplio se parten además en dos líneas. */
  .cta__actions, .evtease__cta, .events__cta {
    flex-direction: column; align-items: stretch; width: 100%;
  }
  .cta__actions .btn,
  .evtease__cta .btn,
  .events__cta .btn { justify-content: center; width: 100%; }
}

/* ------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .rv { opacity: 1; transform: none; }
  .hero__media img { animation: none; }
  .marquee__track { animation: none; }
  .vshot__play { transition: none; }
  .vshot:hover img, .vshot:hover .vshot__play { transform: none; }
  .vshot:hover .vshot__play { transform: translate(-50%, -50%); }
}

/* ------------------------------------------- aviso de cookies (GA4) */
.cookie {
  position: fixed;
  left: 1rem; right: 1rem; bottom: 1rem;
  z-index: 160;                       /* por encima del puntero propio (150) */
  max-width: 34rem;
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1.25rem;
  padding: 1rem 1.15rem;
  background: #1b2113;                /* un punto más claro que --ink */
  color: var(--paper);
  border: 1px solid rgba(194,160,88,.38);
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(0,0,0,.5);
  font-size: .875rem;
  line-height: 1.5;
}
.cookie__txt { flex: 1 1 17rem; margin: 0; color: #dddccf; }
.cookie__txt b { display: block; color: var(--gold); font-weight: 600; }
.cookie__actions { display: flex; gap: .5rem; margin-left: auto; }
.cookie__btn {
  font: inherit;
  font-weight: 600;
  padding: .7rem 1.2rem;
  /* el aviso de cookies es lo primero que hay que pulsar en un móvil */
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(245,241,231,.35);
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.cookie__btn:hover { border-color: var(--paper); }
.cookie__btn--yes {
  background: var(--gold);
  border-color: var(--gold);
  color: #1b2113;
}
.cookie__btn--yes:hover { background: #d3b16a; border-color: #d3b16a; }
.cookie__btn:focus-visible { outline: 2px solid var(--lime-soft); outline-offset: 2px; }

@media (max-width: 480px) {
  .cookie { left: .75rem; right: .75rem; bottom: .75rem; }
  .cookie__actions { width: 100%; margin-left: 0; }
  .cookie__btn { flex: 1; }
}

/* ------------------------------------------------------------- print */
@media print {
  /* los iframes de Google salen en blanco al imprimir: mejor ocultarlos.
     El puntero propio tampoco tiene nada que ver en papel. */
  .hdr, .totop, .marquee, .progress, .grain, .lb, .vlb, .mapframe,
  .cursor, .cursor-dot, .cookie { display: none !important; }
  body { background: #fff; color: #000; }
}
