/* ==========================================================
   COTA 70 · demo Lacustre Digital
   Estructura tomada de DESIGN.md (bandas a sangre, pills fantasma,
   microtexto en mayúsculas). Paleta y tipografía propias:
   noche de lago + corteza de arrayán.
   ========================================================== */
:root {
  --noche: #081113;
  --noche-2: #0d1a1d;
  --noche-3: #12242a;
  --linea: #23363b;
  --hueso: #ece6da;
  --hueso-2: #b3bcb8;
  --hueso-3: #7d8a87;
  --arrayan: #e0703a;
  --arrayan-2: #f08a55;
  --musgo: #a3b57e;

  --f-display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --f-body: "Barlow", Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --r-xs: 4px;
  --r-sm: 8px;
  --r-pill: 32px;

  --gutter: 20px;
  --max: 1280px;
  --nav-h: 64px;
}
@media (min-width: 768px) { :root { --gutter: 40px; --nav-h: 76px; } }
@media (min-width: 1200px) { :root { --gutter: 64px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--noche);
  color: var(--hueso);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: .01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; }
p { margin: 0; }
[hidden] { display: none !important; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--hueso); color: var(--noche); padding: 8px 14px; border-radius: var(--r-xs); }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--arrayan); outline-offset: 3px; }

/* ---------- tipografía ---------- */
.eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  line-height: 2;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--arrayan-2);
  display: flex; align-items: center; gap: 10px;
}
.display {
  font-family: var(--f-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(40px, 9vw, 84px);
  line-height: .95;
  letter-spacing: .02em;
  text-wrap: balance;
}

/* ---------- botones (pill fantasma de DESIGN.md) ---------- */
.btn {
  --b: var(--hueso);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px;
  padding: 16px 26px;
  border: 1.5px solid var(--b);
  border-radius: var(--r-pill);
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
  color: var(--hueso);
  background: transparent;
  transition: background .25s, color .25s, border-color .25s;
  white-space: nowrap;
}
.btn:hover { background: var(--hueso); color: var(--noche); }
.btn--solid { --b: var(--arrayan); background: var(--arrayan); color: #140a05; font-weight: 600; }
.btn--solid:hover { background: var(--arrayan-2); border-color: var(--arrayan-2); color: #140a05; }
.btn--sm { min-height: 40px; padding: 11px 18px; font-size: 12px; }
.btn--block { width: 100%; }
.btn--xl { min-height: 64px; padding: 22px 36px; font-size: 14px; }
.btn__arrow { transition: transform .25s; }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 var(--gutter);
  transition: background .35s, border-color .35s;
  border-bottom: 1px solid transparent;
}
.nav.is-solid { background: rgba(8, 17, 19, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom-color: var(--linea); }
.nav__logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--f-display); font-size: 24px; letter-spacing: .08em; font-weight: 600; }
.nav__logo b { color: var(--arrayan); font-weight: 700; }
.nav__logo svg { width: 34px; height: 17px; fill: none; stroke: var(--arrayan); stroke-width: 2.2; }
.nav__logo .nav__logo-2 { stroke: var(--hueso); opacity: .55; stroke-width: 1.6; }
.nav__links { display: none; gap: 34px; }
.nav__links a { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: var(--hueso-2); transition: color .2s; }
.nav__links a:hover { color: var(--hueso); }
@media (min-width: 900px) { .nav__links { display: flex; } }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: calc(var(--nav-h) + 40px) var(--gutter) 96px;
  overflow: hidden;
  isolation: isolate;
}
.hero__fallback {
  position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(180deg, rgba(8,17,19,.35), rgba(8,17,19,.9) 85%), url("../img/atardecer-1600.webp") center 60% / cover;
}
.hero__canvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.2s; }
.hero.has-webgl .hero__canvas { opacity: 1; }
.hero.has-webgl .hero__fallback { opacity: 0; }
.hero::after { /* velo inferior para que el texto asiente sobre el agua */
  content: ""; position: absolute; inset: auto 0 0 0; height: 55%; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(8,17,19,.72));
}
.hero__inner { width: 100%; max-width: var(--max); margin: 0 auto; }
.hero__title {
  font-family: var(--f-display);
  text-transform: uppercase;
  font-weight: 700;
  font-size: clamp(54px, min(15.5vw, 15vh), 150px);
  line-height: .9;
  letter-spacing: .01em;
  margin: 14px 0 24px;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero__title .line > span { display: inline-block; }
.hero__title em { font-style: normal; color: var(--arrayan); }
.hero__lead { max-width: 34ch; color: var(--hueso-2); font-size: 17px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (max-width: 420px) { .hero__ctas .btn { width: 100%; } }
@media (min-width: 768px) { .hero__lead { font-size: 19px; max-width: 44ch; } }

.hero__hud {
  position: absolute; z-index: 1;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--hueso-2);
  display: flex; flex-direction: column; gap: 2px;
}
.hero__hud--tl { top: calc(var(--nav-h) + 14px); left: var(--gutter); }
@media (min-width: 900px) { .hero__hud--tl { left: auto; right: var(--gutter); text-align: right; } }
.hero__hud--br {
  right: var(--gutter); left: var(--gutter); bottom: 28px;
  flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 10px;
}
.hero__hud b { color: var(--hueso); font-weight: 500; }
.hero__hud-note { color: var(--hueso-3); width: 100%; padding-left: 18px; }
@media (min-width: 900px) {
  .hero__hud--br { left: auto; bottom: 40px; max-width: 360px; justify-content: flex-end; text-align: right; }
  .hero__hud-note { padding-left: 0; }
  .hero { padding-bottom: 120px; }
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--musgo); box-shadow: 0 0 0 0 rgba(163,181,126,.6); animation: pulse 2s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(163,181,126,0); } 100% { box-shadow: 0 0 0 0 rgba(163,181,126,0); } }

.hero__scroll { position: absolute; left: 50%; bottom: 0; width: 1px; height: 56px; background: var(--linea); overflow: hidden; display: none; }
.hero__scroll span { position: absolute; inset: 0; background: var(--arrayan); transform: translateY(-100%); animation: drip 2.2s cubic-bezier(.6,0,.3,1) infinite; }
@keyframes drip { to { transform: translateY(100%); } }
@media (min-width: 900px) { .hero__scroll { display: block; } }

/* ---------- banda foto ---------- */
.band { position: relative; min-height: 92svh; display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.band__img { position: absolute; inset: -8% 0; z-index: -2; }
.band__img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) brightness(.62); }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8,17,19,.85), rgba(8,17,19,.25) 70%); }
.band__inner { width: 100%; max-width: var(--max); margin: 0 auto; padding: 96px var(--gutter); }
.band .display { max-width: 12ch; margin: 12px 0 24px; }
.band__text { max-width: 42ch; color: var(--hueso-2); }
.reveal-words .w { display: inline-block; }

/* ---------- secciones ---------- */
.section { padding: 104px var(--gutter); max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; }
.section--soft { max-width: none; background: var(--noche-2); border-block: 1px solid var(--linea); }
.section--soft > * { max-width: var(--max); margin-inline: auto; }
.section__head { margin-bottom: 56px; }
.section__head .display { margin-top: 10px; }
.section__sub { margin-top: 18px; max-width: 46ch; color: var(--hueso-2); }
@media (min-width: 900px) { .section { padding-block: 140px; } }

/* ---------- cabañas (grilla asimétrica, no tarjetas gemelas) ---------- */
.cabins { display: grid; gap: 56px; }
.cabin { display: grid; gap: 22px; }
.cabin__media { position: relative; margin: 0; overflow: hidden; border-radius: var(--r-xs); aspect-ratio: 4 / 3; background: var(--noche-3); }
.cabin__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.cabin:hover .cabin__media img { transform: scale(1.0); }
.cabin__code {
  position: absolute; left: 14px; top: 12px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em;
  background: rgba(8,17,19,.72); padding: 4px 9px; border-radius: var(--r-xs);
}
.cabin__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--linea); padding-bottom: 12px; margin-bottom: 14px; }
.cabin__head h3 { font-family: var(--f-display); text-transform: uppercase; font-size: 40px; line-height: 1; letter-spacing: .03em; }
.cabin__cap { font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--hueso-2); white-space: nowrap; }
.cabin__cap b { font-family: var(--f-display); font-size: 30px; color: var(--arrayan); font-weight: 700; margin-right: 4px; }
.cabin__body > p { color: var(--hueso-2); max-width: 46ch; }
.cabin__amen { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 18px 0 24px; font-size: 13px; color: var(--hueso-2); letter-spacing: .04em; }
.cabin__amen li { display: flex; align-items: center; gap: 7px; }
.cabin__amen svg { width: 20px; height: 20px; fill: none; stroke: var(--musgo); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

@media (min-width: 768px) {
  .cabins { grid-template-columns: repeat(12, 1fr); gap: 80px 32px; }
  .cabin--a { grid-column: 1 / span 5; }
  .cabin--b { grid-column: 7 / span 6; margin-top: 120px; }
  .cabin--c { grid-column: 1 / span 7; }
  .cabin--d { grid-column: 8 / span 5; margin-top: 160px; }
  .cabin--a .cabin__media, .cabin--d .cabin__media { aspect-ratio: 4 / 5; }
  .cabin--b .cabin__media, .cabin--c .cabin__media { aspect-ratio: 3 / 2; }
  .btn--block { width: auto; }
}
@media (min-width: 1200px) {
  .cabin--d { margin-top: 80px; }
  .cabin--d .cabin__media { aspect-ratio: 1 / 1; }
}

/* ---------- qué incluye ---------- */
.split { display: grid; gap: 48px; }
.split__photo { margin: 36px 0 0; border-radius: var(--r-xs); overflow: hidden; aspect-ratio: 3 / 2; }
.split__photo img { width: 100%; height: 100%; object-fit: cover; }
.feats { list-style: none; margin: 0; padding: 0; counter-reset: f; }
.feat { display: grid; grid-template-columns: 44px 40px 1fr; gap: 16px; align-items: start; padding: 28px 0; border-top: 1px solid var(--linea); }
.feat:last-child { border-bottom: 1px solid var(--linea); }
.feat__n { font-family: var(--f-mono); font-size: 13px; color: var(--arrayan-2); padding-top: 6px; }
.feat__icon { width: 36px; height: 36px; fill: none; stroke: var(--hueso); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.feat h3 { font-family: var(--f-display); text-transform: uppercase; font-size: 30px; line-height: 1.1; letter-spacing: .04em; margin-bottom: 6px; }
.feat p { color: var(--hueso-2); max-width: 44ch; }
@media (min-width: 900px) {
  .split { grid-template-columns: 5fr 7fr; gap: 80px; align-items: start; }
  .split__side { position: sticky; top: calc(var(--nav-h) + 40px); }
  .feat { grid-template-columns: 64px 56px 1fr; padding: 40px 0; }
  .feat__icon { width: 44px; height: 44px; }
  .feat h3 { font-size: 38px; }
}

/* ---------- en vivo ---------- */
.live__grid { display: grid; gap: 40px; }
.live__compass { max-width: 280px; margin: 0 auto; width: 100%; }
.live__compass svg { width: 100%; height: auto; overflow: visible; }
.live__compass .ring { fill: none; stroke: var(--linea); stroke-width: 1; }
.live__compass .ring--in { stroke-dasharray: 2 5; }
.live__compass .ticks line { stroke: var(--hueso-3); stroke-width: 1; }
.live__compass .ticks line.major { stroke: var(--hueso); stroke-width: 1.5; }
.live__compass .card { font-family: var(--f-mono); font-size: 11px; fill: var(--hueso-2); text-anchor: middle; }
.live__compass .needle__head { fill: var(--arrayan); }
.live__compass .needle__tail { fill: var(--hueso-3); }
.live__compass .hub { fill: var(--hueso); }
.live__compass-lbl { text-align: center; margin-top: 12px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--hueso-2); }
.live__compass-lbl b { color: var(--hueso); font-weight: 500; }

.live__stats { display: grid; grid-template-columns: 1fr 1fr; margin: 0; border-top: 1px solid var(--linea); }
.live__stats > div { padding: 20px 0 22px; border-bottom: 1px solid var(--linea); }
.live__stats > div:nth-child(odd) { padding-right: 16px; border-right: 1px solid var(--linea); }
.live__stats > div:nth-child(even) { padding-left: 16px; }
.live__stats dt { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--hueso-3); min-height: 2.6em; }
.live__stats dd { margin: 6px 0 0; display: flex; align-items: baseline; gap: 6px; }
.live__stats b { font-family: var(--f-display); font-size: clamp(44px, 12vw, 72px); line-height: 1; font-weight: 600; font-variant-numeric: tabular-nums; }
.live__stats small { font-family: var(--f-mono); font-size: 12px; color: var(--hueso-2); }

.live__week-lbl { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--hueso-3); margin-bottom: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.k { display: inline-block; width: 12px; height: 8px; border-radius: 1px; }
.k--avg { background: var(--arrayan); }
.k--gust { width: 12px; height: 1px; background: var(--hueso-2); position: relative; }
.k--gust::after { content: ""; position: absolute; left: 5px; top: 0; width: 1px; height: 8px; background: var(--hueso-2); }
.bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; align-items: end; height: 170px; }
.bar { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.bar__gust { position: absolute; bottom: 22px; left: 50%; width: 1px; background: var(--hueso-3); }
.bar__gust::before { content: ""; position: absolute; top: 0; left: -7px; width: 15px; height: 1px; background: var(--hueso-2); }
.bar__avg { position: relative; z-index: 1; width: 40%; max-width: 48px; background: var(--arrayan); border-radius: 2px 2px 0 0; margin-bottom: 22px; transform-origin: bottom; }
.bar__lbl { position: absolute; bottom: 0; font-family: var(--f-mono); font-size: 10px; color: var(--hueso-3); letter-spacing: .04em; }
.bar__val { position: absolute; left: 0; right: 0; top: -20px; width: max-content; margin: auto; padding: 0 4px; background: var(--noche); font-family: var(--f-mono); font-size: 11px; color: var(--hueso); }

.live__level { border: 1px solid var(--linea); border-radius: var(--r-xs); padding: 20px; }
.live__level-v b { font-family: var(--f-display); font-size: 64px; font-weight: 600; }
.live__foot { margin-top: 44px; font-size: 13px; line-height: 1.6; color: var(--hueso-3); max-width: 80ch; }
@media (min-width: 900px) {
  .live__grid { grid-template-columns: 300px 1fr; gap: 56px 72px; align-items: center; }
  .live__compass { margin: 0; }
  .live__week, .live__level { grid-column: 1 / -1; }
  .live__stats { grid-template-columns: repeat(4, 1fr); }
  .live__stats > div { padding: 22px 20px !important; border-right: 1px solid var(--linea); }
  .live__stats > div:last-child { border-right: 0; }
  .bars { height: 200px; gap: 16px; }
}

/* ---------- franja galería ---------- */
.strip { overflow: hidden; padding: 24px 0 8px; }
.strip__track { display: flex; gap: 14px; width: max-content; padding-left: var(--gutter); }
.strip figure { margin: 0; width: 72vw; max-width: 460px; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r-xs); flex: none; }
.strip figure:nth-child(even) { aspect-ratio: 4 / 3; align-self: center; }
.strip img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9); }
@media (min-width: 900px) { .strip figure { width: 30vw; } .strip__track { gap: 24px; } }

/* ---------- reservar ---------- */
.reserve { text-align: left; }
.reserve .display { margin: 10px 0 48px; max-width: 14ch; }
.steps { list-style: none; margin: 0 0 56px; padding: 0; display: grid; gap: 0; }
.steps li { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 22px 0; border-top: 1px solid var(--linea); }
.steps li:last-child { border-bottom: 1px solid var(--linea); }
.steps span { font-family: var(--f-display); font-size: 34px; color: var(--arrayan); line-height: 1; font-weight: 600; }
.steps p { color: var(--hueso-2); }
.steps b { color: var(--hueso); font-weight: 500; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .steps li { grid-template-columns: 1fr; border-bottom: 1px solid var(--linea); }
  .steps span { font-size: 56px; }
}
@media (max-width: 420px) { .btn--xl { width: 100%; white-space: normal; } }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--linea); padding: 48px var(--gutter) 120px; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; }
.foot__row { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline; color: var(--hueso-2); font-size: 14px; }
.foot__logo { font-family: var(--f-display); font-size: 26px; letter-spacing: .08em; color: var(--hueso); font-weight: 600; }
.foot__logo b { color: var(--arrayan); }
.foot__demo { margin-top: 28px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--arrayan-2); }
.foot__small { margin-top: 6px; font-size: 13px; color: var(--hueso-3); }
@media (min-width: 900px) { .foot { padding-bottom: 56px; } }

/* ---------- CTA fija móvil ---------- */
.mobile-cta {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; border-radius: var(--r-pill);
  background: var(--arrayan); color: #140a05; text-decoration: none;
  font-weight: 600; font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
  transform: translateY(140%); transition: transform .4s cubic-bezier(.2,.7,.2,1);
}
.mobile-cta.is-on { transform: none; }
.mobile-cta svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }
@media (min-width: 900px) { .mobile-cta { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .cabin__media img { transform: none; }
}
