/* La Rivera Club Campestre: styles. Brand palette and illustrations from the 2026 brand manual. */

@font-face {
  font-family: "Unbounded";
  src: url("../assets/fonts/unbounded-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Unbounded";
  src: url("../assets/fonts/unbounded-latin-ext.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Brand manual */
  --cafe: #57321f;
  --cafe-deep: #3b2114;
  --cafe-night: #2a170d;
  --tierra: #825a36;
  --tierra-ink: #6b4529;
  --palma: #c69c6d;
  --arena: #d2b293;
  --crema: #eed5bf;
  --hueso: #f9f1e8;
  --line-light: rgba(130, 90, 54, 0.26);
  --line-dark: rgba(210, 178, 147, 0.28);

  --font: "Unbounded", "Segoe UI", system-ui, sans-serif;
  --step--1: 0.8125rem;
  --step-0: 0.9375rem;
  --step-1: 1.125rem;
  --step-2: clamp(1.35rem, 3.6vw, 1.875rem);
  --step-3: clamp(1.8rem, 5.4vw, 3.4rem);
  --display-max: 6rem;
  --adv: 0.84;
  --gutter: clamp(1.25rem, 4.5vw, 3rem);
  --top-h: 4.25rem;
  --hud-h: 4.5rem;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --hud: var(--hueso);
  --hud-shadow: 0 1px 10px rgba(30, 14, 6, 0.5);
  --top-bg: transparent;
}

html[data-tone="dark"] { --hud: var(--hueso); --hud-shadow: none; --top-bg: var(--cafe); }
html[data-tone="light"] { --hud: var(--cafe); --hud-shadow: none; --top-bg: var(--hueso); }

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

html {
  background: var(--cafe);
  color: var(--hueso);
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--palma) var(--cafe-deep);
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  font-size: var(--step-0);
  line-height: 1.6;
  background: var(--cafe);
  caret-color: var(--palma);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, picture, svg, iframe { display: block; max-width: 100%; }
h1, h2, h3, p, dl, dd { margin: 0; }
a { color: inherit; }

::selection { background: var(--palma); color: var(--cafe-night); }

:focus-visible {
  outline: 2px solid var(--palma);
  outline-offset: 3px;
  border-radius: 4px;
}
/* On paper and crema grounds the ring turns tierra so it stays visible */
.info :focus-visible,
[data-ground="crema"] :focus-visible,
html[data-tone="light"] .top :focus-visible { outline-color: var(--tierra); }

.skip {
  position: fixed;
  top: 0.75rem;
  left: 50%;
  z-index: 60;
  translate: -50% -160%;
  padding: 0.7em 1.25em;
  border-radius: 999px;
  background: var(--hueso);
  color: var(--cafe);
  font-weight: 500;
  text-decoration: none;
  transition: translate 0.3s var(--ease-out);
}
.skip:focus-visible { translate: -50% 0; }

/* ---------- Pill: the one action shape ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  min-height: 2.75rem;
  padding: 0.7em 1.3em;
  border-radius: 999px;
  background: var(--cafe);
  color: var(--hueso);
  font-family: var(--font);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 8px 22px -12px rgba(30, 14, 6, 0.75);
  transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out), translate 0.25s var(--ease-out);
}
.pill:hover { background: var(--tierra); translate: 0 -1px; }
.pill:active { translate: 0 0; }
.pill__icon { width: 1.25em; height: 1.25em; flex: none; }
.pill--light { background: var(--hueso); color: var(--cafe); }
.pill--light:hover { background: var(--crema); }
.pill--big { min-height: 3.25rem; padding: 0.95em 1.6em; font-size: var(--step-0); }
.pill__short { display: none; }

.link-cta {
  display: inline-block;
  color: var(--hueso);
  font-weight: 500;
  font-size: var(--step--1);
  text-decoration: underline;
  text-decoration-color: var(--palma);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.45em;
  transition: color 0.25s var(--ease-out);
}
.link-cta:hover { color: var(--palma); }
.link-cta--dark { color: var(--cafe); text-decoration-color: var(--tierra); }
.link-cta--dark:hover { color: var(--tierra); }

/* ---------- Header ---------- */

.top {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: max(0.9rem, env(safe-area-inset-top)) var(--gutter) 0.9rem;
  pointer-events: none;
  background-color: var(--top-bg);
  transition: background-color 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), padding 0.35s var(--ease-out);
}
.top > * { pointer-events: auto; }
html.past-reel .top { box-shadow: 0 1px 0 var(--line-light), 0 12px 24px -20px rgba(30, 14, 6, 0.6); padding-block: 0.65rem; }
html.past-reel[data-tone="dark"] .top { box-shadow: 0 1px 0 var(--line-dark), 0 12px 24px -20px rgba(0, 0, 0, 0.8); }
html:not(.past-reel) .top { --top-bg: transparent; }

.top__brand {
  position: relative;
  display: block;
  width: clamp(6.75rem, 22vw, 8.75rem);
  aspect-ratio: 480 / 162;
  transition: opacity 0.45s var(--ease-out), translate 0.45s var(--ease-out);
}
.top__logo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: auto;
  transition: opacity 0.35s var(--ease-out);
  filter: drop-shadow(0 1px 10px rgba(30, 14, 6, 0.6));
}
.top__logo--cafe { opacity: 0; filter: none; }
html[data-tone="light"] .top__logo--crema { opacity: 0; }
html[data-tone="light"] .top__logo--cafe { opacity: 1; }
html[data-tone="dark"] .top__logo--crema { filter: none; }
html.at-hero .top__brand { opacity: 0; translate: 0 -6px; pointer-events: none; }

html[data-tone="dark"] .pill--top { background: var(--hueso); color: var(--cafe); }
html[data-tone="dark"] .pill--top:hover { background: var(--crema); }

/* ---------- Reel ---------- */

.reel { position: relative; background: var(--cafe-night); }
.reel__stage { position: relative; }

.slide {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: var(--cafe-night);
  color: var(--hueso);
}
.reel-on .reel__stage { height: 100vh; height: 100svh; overflow: hidden; }
.reel-on .slide { position: absolute; inset: 0; }

.slide__media { position: absolute; inset: 0; overflow: hidden; will-change: transform; }
.slide__media picture, .slide__media img { width: 100%; height: 100%; }
.slide__media img {
  object-fit: cover;
  object-position: var(--pos-l, 50% 50%);
  filter: saturate(0.96);
  animation: drift 16s ease-in-out infinite alternate;
  transform-origin: 50% 60%;
}
@media (orientation: portrait) {
  .slide__media img { object-position: var(--pos-p, 50% 50%); }
}

/* Living photo: the waterfall falls and the pool ripples, drawn over the same photo */
.water {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos-l, 50% 50%);
  opacity: 0;
  transition: opacity 0.8s var(--ease-out);
  animation: drift 16s ease-in-out infinite alternate;
  transform-origin: 50% 60%;
}
.water.is-live { opacity: 1; }
@media (orientation: portrait) {
  .water { object-position: var(--pos-p, 50% 50%); }
}
@keyframes drift { from { scale: 1; } to { scale: 1.07; } }

/* Legibility scrim for full-bleed photos: warm café, never a box behind the words. */
.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(42, 23, 13, 0.58) 0%, rgba(42, 23, 13, 0) 28%),
    linear-gradient(0deg, rgba(42, 23, 13, 0.62) 0%, rgba(42, 23, 13, 0) 30%),
    radial-gradient(ellipse 72% 40% at 50% 50%, rgba(42, 23, 13, 0.6) 0%, rgba(42, 23, 13, 0.24) 55%, rgba(42, 23, 13, 0) 82%);
}
[data-orient="p"] .slide--top::after {
  background:
    linear-gradient(180deg, rgba(42, 23, 13, 0.66) 0%, rgba(42, 23, 13, 0.3) 26%, rgba(42, 23, 13, 0) 40%),
    linear-gradient(0deg, rgba(42, 23, 13, 0.7) 0%, rgba(42, 23, 13, 0) 34%);
}

.slide__text {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: calc(var(--top-h) + 1rem) var(--gutter) calc(var(--hud-h) + 1rem);
  text-align: center;
}

.slide__word {
  --measure: calc(100vw - 2 * var(--gutter));
  font-weight: 400;
  font-size: min(var(--display-max), calc(var(--measure) / (var(--chars, 8) * var(--adv))));
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
  text-shadow: 0 2px 30px rgba(30, 14, 6, 0.3);
}
.slide__line {
  max-width: 30ch;
  font-size: var(--step-1);
  font-weight: 400;
  line-height: 1.45;
  text-wrap: balance;
  text-shadow: 0 1px 2px rgba(30, 14, 6, 0.55), 0 2px 18px rgba(30, 14, 6, 0.55);
}
.slide__cta { margin-top: 0.75rem; }

/* A soft local shade under the subline on busy photos; it fades to nothing, never a box */
.slide__line { position: relative; }
.slide__line::before {
  content: "";
  position: absolute;
  inset: -1.1em -2.2em;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(42, 23, 13, 0.62), rgba(42, 23, 13, 0.32) 55%, rgba(42, 23, 13, 0));
  pointer-events: none;
}
:is([data-orient="p"] .slide[data-p="frame"], [data-orient="l"] .slide[data-l="frame"]) .slide__line::before { display: none; }

/* Masked letters for the page word */
.slide__word .w {
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  vertical-align: top;
  padding: 0.08em 0.03em 0.16em;
  margin: -0.08em -0.03em -0.16em;
}
.slide__word .c { display: inline-block; will-change: transform; }

/* ---------- Hero: the real logo, assembled piece by piece ---------- */

.hero-logo, .foot-logo {
  position: relative;
  width: var(--logo-w);
  aspect-ratio: 1200 / 405;
  margin: 0;
  font-size: 0;
}
.hero-logo {
  --logo-w: min(84vw, 40rem, 92svh);
  filter: drop-shadow(0 4px 28px rgba(30, 14, 6, 0.35));
}
.lp { position: absolute; inset: 0; }
.lp img { width: 100%; height: 100%; }
/* Slices follow the real gaps between letters (measured from the logo file); V and E touch, so they move as one */
.lp--r { clip-path: inset(0 78.92% 17.53% 0); }
.lp--i { clip-path: inset(26.67% 74.17% 17.53% 21.08%); }
.lp--ve { clip-path: inset(26.67% 41% 17.53% 25.83%); }
.lp--r2 { clip-path: inset(26.67% 19.63% 17.53% 59%); }
.lp--a { clip-path: inset(26.67% 0 17.53% 80.38%); }
.lp--la { clip-path: inset(0 45% 73.33% 44.17%); }
.lp--club { clip-path: inset(82.47% 0 0 53.33%); }
.slide__line--hero { max-width: 24ch; font-size: clamp(1.05rem, 3.4vw, 1.375rem); }

.hero-palms { position: absolute; inset: 0; z-index: 1; pointer-events: none; }

/* Brand palms and waves, drawn from the manual's own vectors */
.palm, .wave {
  display: block;
  position: absolute;
  pointer-events: none;
  background: var(--palma);
  -webkit-mask: url("../assets/svg/palmas.svg") center / contain no-repeat;
  mask: url("../assets/svg/palmas.svg") center / contain no-repeat;
}
.palm {
  height: 54svh;
  aspect-ratio: 595 / 857;
  transform-origin: 50% 100%;
  animation: sway 7s ease-in-out infinite alternate;
}
@keyframes sway { from { rotate: -2.2deg; } to { rotate: 2.2deg; } }

.palm--hero-l, .palm--hero-r { background: var(--cafe-night); bottom: -4svh; }
.palm--hero-l { height: 40svh; left: max(-24vw, -13rem); }
.palm--hero-r { height: 33svh; right: max(-21vw, -11rem); scale: -1 1; animation-delay: -3.5s; }
@media (orientation: landscape) {
  .palm--hero-l { height: 58svh; left: -3vw; }
  .palm--hero-r { height: 48svh; right: -3vw; }
}

.wave {
  width: clamp(5rem, 16vw, 8.5rem);
  aspect-ratio: 1;
  -webkit-mask-image: url("../assets/svg/ola-curva.svg");
  mask-image: url("../assets/svg/ola-curva.svg");
  animation: bob 9s ease-in-out infinite alternate;
}
.wave--lineas { -webkit-mask-image: url("../assets/svg/ola-lineas.svg"); mask-image: url("../assets/svg/ola-lineas.svg"); }
@keyframes bob { from { translate: 0 -6px; rotate: -4deg; } to { translate: 0 8px; rotate: 4deg; } }

.cut {
  position: absolute;
  width: clamp(4.75rem, 17vw, 8.5rem);
  height: auto;
  pointer-events: none;
  animation: bob 11s ease-in-out infinite alternate;
}

/* Decorations only show on framed pages */
.deco { display: none; }

/* ---------- Framed pages: the photo held in an arch or a rounded frame ---------- */

:is([data-orient="p"] .slide[data-p="frame"], [data-orient="l"] .slide[data-l="frame"]) {
  display: grid;
  grid-template-rows: 1fr auto auto auto auto 1fr;
  justify-items: center;
  align-items: center;
  row-gap: clamp(0.9rem, 2.6svh, 1.6rem);
  padding: calc(var(--top-h) + 0.5rem) var(--gutter) calc(var(--hud-h) + 0.5rem);
  background: var(--cafe);
  text-align: center;
}
:is([data-orient="p"] .slide[data-p="frame"], [data-orient="l"] .slide[data-l="frame"])[data-ground="crema"] {
  background: var(--crema);
  color: var(--cafe);
}
:is([data-orient="p"] .slide[data-p="frame"], [data-orient="l"] .slide[data-l="frame"])::after { display: none; }
:is([data-orient="p"] .slide[data-p="frame"], [data-orient="l"] .slide[data-l="frame"]) .slide__text { display: contents; }
:is([data-orient="p"] .slide[data-p="frame"], [data-orient="l"] .slide[data-l="frame"]) .slide__word { grid-row: 2; text-shadow: none; position: relative; z-index: 2; }
:is([data-orient="p"] .slide[data-p="frame"], [data-orient="l"] .slide[data-l="frame"]) .slide__media { grid-row: 3; }
:is([data-orient="p"] .slide[data-p="frame"], [data-orient="l"] .slide[data-l="frame"]) .slide__line { grid-row: 4; text-shadow: none; color: var(--hueso); position: relative; z-index: 2; }
:is([data-orient="p"] .slide[data-p="frame"], [data-orient="l"] .slide[data-l="frame"]) :is(.slide__cta, .link-cta) { grid-row: 5; position: relative; z-index: 2; }
:is([data-orient="p"] .slide[data-p="frame"], [data-orient="l"] .slide[data-l="frame"])[data-ground="crema"] .slide__line { color: var(--tierra-ink); }
:is([data-orient="p"] .slide[data-p="frame"], [data-orient="l"] .slide[data-l="frame"])[data-ground="cafe"] .slide__cta { background: var(--hueso); color: var(--cafe); }
:is([data-orient="p"] .slide[data-p="frame"], [data-orient="l"] .slide[data-l="frame"])[data-ground="cafe"] .slide__cta:hover { background: var(--crema); }
:is([data-orient="p"] .slide[data-p="frame"], [data-orient="l"] .slide[data-l="frame"]) .deco { display: block; position: absolute; inset: 0; z-index: 1; pointer-events: none; }

:is([data-orient="p"] .slide[data-p="frame"], [data-orient="l"] .slide[data-l="frame"]) .frame {
  position: relative;
  inset: auto;
  z-index: 2;
  box-shadow: 0 30px 60px -30px rgba(20, 10, 4, 0.75), 0 2px 6px rgba(20, 10, 4, 0.18);
  background: var(--cafe-deep);
}
:is([data-orient="p"] .slide[data-p="frame"], [data-orient="l"] .slide[data-l="frame"]) .frame img { animation-duration: 20s; }
:is([data-orient="p"] .slide[data-p="frame"], [data-orient="l"] .slide[data-l="frame"]) .frame--h {
  width: min(100%, 34rem, 62svh);
  aspect-ratio: 4 / 3;
  border-radius: 1.5rem;
}
:is([data-orient="p"] .slide[data-p="frame"], [data-orient="l"] .slide[data-l="frame"]) .frame--v {
  width: min(72vw, 22rem, 36svh);
  aspect-ratio: 3 / 4;
  border-radius: 50% 50% 1.25rem 1.25rem / 37.5% 37.5% 1.25rem 1.25rem;
}

/* Deco placement */
.palm--br { right: -12vw; bottom: -4svh; opacity: 0.3; }
.palm--bl { left: -12vw; bottom: -4svh; opacity: 0.3; scale: -1 1; animation-delay: -2s; }
[data-ground="crema"] .palm { background: var(--tierra); opacity: 0.14; }
.cut--tl { top: calc(var(--top-h) + 1.5svh); left: 4vw; }
.cut--tr { top: calc(var(--top-h) + 1.5svh); right: 4vw; animation-delay: -4s; }
.cut--bl { bottom: calc(var(--hud-h) + 1svh); left: 3vw; animation-delay: -6s; width: clamp(3.75rem, 13vw, 6.5rem); }
.wave--tr { top: calc(var(--top-h) + 2svh); right: 4vw; }
.wave--br { bottom: calc(var(--hud-h) + 2svh); right: 4vw; }
.wave--bl { bottom: calc(var(--hud-h) + 2svh); left: 4vw; }
[data-ground="crema"] .wave { background: var(--tierra); }

/* Framed pages on a landscape screen: words left, photo right */
[data-orient="l"] .slide[data-l="frame"] {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: 1fr auto auto auto 1fr;
  justify-items: start;
  column-gap: clamp(2rem, 6vw, 6rem);
  padding-inline: clamp(2rem, 9vw, 10rem);
  text-align: left;
}
[data-orient="l"] .slide[data-l="frame"] .slide__text { text-align: left; }
[data-orient="l"] .slide[data-l="frame"] .slide__word { --measure: 36vw; grid-column: 1; grid-row: 2; }
[data-orient="l"] .slide--fh[data-l="frame"] .slide__word { --measure: 26vw; }
[data-orient="l"] .slide--wide-word[data-l="frame"] .slide__word { --measure: 34vw; }
[data-orient="l"] .slide--wide-word[data-l="frame"] .frame--h { width: min(40vw, 48rem); }
[data-orient="l"] .slide[data-l="frame"] .cut--tl { top: calc(var(--top-h) + 8svh); }
[data-orient="l"] .slide[data-l="frame"] .slide__line { grid-column: 1; grid-row: 3; }
[data-orient="l"] .slide[data-l="frame"] :is(.slide__cta, .link-cta) { grid-column: 1; grid-row: 4; }
[data-orient="l"] .slide[data-l="frame"] .slide__media { grid-column: 2; grid-row: 1 / -1; }
[data-orient="l"] .slide[data-l="frame"] .frame--v { width: auto; height: min(74svh, 48rem); }
[data-orient="l"] .slide[data-l="frame"] .frame--h { width: min(46vw, 56rem); aspect-ratio: 16 / 10; }

/* Flipped framed page on landscape: photo left, words right */
[data-orient="l"] .slide--flip[data-l="frame"] { grid-template-columns: auto minmax(0, 1fr); }
[data-orient="l"] .slide--flip[data-l="frame"] .slide__media { grid-column: 1; }
[data-orient="l"] .slide--flip[data-l="frame"] :is(.slide__word, .slide__line, .slide__cta, .link-cta) { grid-column: 2; }

/* Framed pages on phones: a bigger frame fills the page; palms stay clear of the caption */
[data-orient="p"] .slide[data-p="frame"] .frame--h { aspect-ratio: 1; width: min(100%, 26rem, 46svh); }
[data-orient="p"] .slide[data-p="frame"] .frame--v { width: min(78vw, 24rem, 40svh); }
[data-orient="p"] .deco .palm { height: 38svh; bottom: -6svh; }
[data-orient="p"] .deco .palm--br { right: -20vw; }
[data-orient="p"] .deco .palm--bl { left: -20vw; }

/* The last page keeps the La Rivera sign in the photo clear on phones: word above it, line and action below */
[data-orient="p"] .slide--top .slide__text { justify-content: flex-start; padding-top: calc(var(--top-h) + 3svh); }
[data-orient="p"] .slide--top .slide__line { margin-top: auto; }
[data-orient="l"] .slide[data-l="frame"] .palm { height: 70svh; }

/* ---------- HUD ---------- */

.hud {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 1rem;
  padding: 0 var(--gutter) max(1.25rem, env(safe-area-inset-bottom));
  color: var(--hud);
  text-shadow: var(--hud-shadow);
  pointer-events: none;
  transition: color 0.35s var(--ease-out);
}
.hud a { pointer-events: auto; }
.hud__count { display: flex; align-items: baseline; font-variant-numeric: tabular-nums; }
.hud__now {
  display: inline-block;
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}
.hud__total { font-size: var(--step--1); font-weight: 400; opacity: 0.8; }
.hud__cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  transition: opacity 0.4s var(--ease-out);
}
.hud__cue i {
  position: relative;
  display: block;
  width: 1px;
  height: 2.5rem;
  overflow: hidden;
  background: currentColor;
  opacity: 0.45;
}
.hud__cue i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: currentColor;
  animation: fall 2.2s var(--ease-out) infinite;
}
@keyframes fall { from { translate: 0 -100%; } to { translate: 0 100%; } }
.hud__cue.is-hidden { opacity: 0; }
.hud__nav {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  font-size: var(--step--1);
  font-weight: 400;
}
.hud__nav a { text-decoration: none; }
.hud__nav a:hover { text-decoration: underline; text-underline-offset: 0.3em; }
html:not(.reel-on) .hud { display: none; }

/* ---------- Info on hueso paper ---------- */

.wrap { width: 100%; max-width: 74rem; margin-inline: auto; }

.info {
  position: relative;
  overflow: hidden;
  background: var(--hueso);
  color: var(--cafe);
  padding-block: var(--top-h) clamp(4.5rem, 10vw, 8rem);
  padding-inline: var(--gutter);
}

.banda {
  --bh: clamp(4.5rem, 10vw, 6.5rem);
  position: relative;
  height: var(--bh);
  margin-inline: calc(var(--gutter) * -1);
  margin-bottom: clamp(3.5rem, 9vw, 7rem);
  overflow: hidden;
  background: var(--crema);
}
.banda__track {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(100% + var(--bh) * 6);
  background: url("../assets/img/patron-banda.webp") 0 0 / auto 100% repeat-x;
  animation: slide-band 36s linear infinite;
}
@keyframes slide-band { to { transform: translateX(calc(var(--bh) * -6)); } }

.palm--info { right: -14vw; top: 18%; height: min(110svh, 60rem); opacity: 0.2; animation-duration: 9s; }
.cut--info { left: -1.5rem; bottom: 6%; width: clamp(5rem, 16vw, 9rem); opacity: 0.9; }

.info__grid { position: relative; z-index: 1; display: grid; gap: clamp(2.5rem, 6vw, 4rem); }

.title {
  font-size: var(--step-3);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
  max-width: 18ch;
}
.title .w { display: inline-block; white-space: nowrap; overflow: hidden; vertical-align: top; padding: 0.06em 0.02em 0.14em; margin: -0.06em -0.02em -0.14em; }
.title .c { display: inline-block; }

.lead { margin-top: 1.25rem; max-width: 40ch; font-size: var(--step-1); font-weight: 300; line-height: 1.55; color: var(--tierra-ink); }

.offer { border-top: 1px solid var(--line-light); }
.offer > div { padding: 1.15rem 0; border-bottom: 1px solid var(--line-light); }
.offer dt { font-size: var(--step-1); font-weight: 500; letter-spacing: -0.01em; line-height: 1.3; }
.offer dd { margin-top: 0.3rem; color: var(--tierra-ink); max-width: 46ch; }
.info__body .link-cta { margin-top: 2rem; }

/* ---------- Map on café ---------- */

.map {
  position: relative;
  overflow: hidden;
  background: var(--cafe);
  color: var(--hueso);
  padding-block: clamp(4.5rem, 10vw, 8rem);
  padding-inline: var(--gutter);
}
.wave--map { top: 2.5rem; right: var(--gutter); opacity: 0.85; }
.map__grid { position: relative; z-index: 1; display: grid; gap: 2.5rem; align-items: center; }
.map__address { margin-top: 1.5rem; font-size: var(--step-2); font-weight: 400; line-height: 1.3; letter-spacing: -0.01em; }
.map__town { margin-top: 0.75rem; color: var(--arena); }
.map__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2rem; }
.map__frame {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 1.5rem;
  background: var(--cafe-deep);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
}
.map__frame iframe { width: 100%; height: 100%; border: 0; filter: sepia(0.3) saturate(0.85) contrast(1.02); }

/* ---------- Footer ---------- */

.foot {
  position: relative;
  overflow: hidden;
  background: var(--cafe-deep);
  color: var(--hueso);
  padding: clamp(4.5rem, 11vw, 8rem) var(--gutter) max(1.5rem, env(safe-area-inset-bottom));
  text-align: center;
}
.palm--foot-l, .palm--foot-r { bottom: -6svh; height: min(70svh, 34rem); opacity: 0.16; }
.palm--foot-l { left: -10vw; }
.palm--foot-r { right: -10vw; scale: -1 1; animation-delay: -3s; }
.foot__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.foot-logo { --logo-w: min(86vw, 40rem); }
.foot__ask { margin: clamp(2.5rem, 6vw, 3.5rem) 0 1.5rem; font-size: var(--step-2); font-weight: 400; letter-spacing: -0.01em; }
.foot__facts {
  display: grid;
  gap: 1.5rem;
  margin-top: clamp(3rem, 7vw, 4.5rem);
  padding-top: 2rem;
  width: 100%;
  border-top: 1px solid var(--line-dark);
  color: var(--arena);
  font-size: var(--step--1);
  line-height: 1.7;
}
.foot__facts a { color: var(--hueso); font-size: var(--step-0); font-weight: 400; text-decoration-color: var(--palma); text-underline-offset: 0.3em; }
.foot__facts a:hover { color: var(--palma); }
.foot__base { margin-top: 2.5rem; color: var(--arena); font-size: 0.75rem; opacity: 0.85; }

/* ---------- Responsive ---------- */

@media (max-width: 40rem) {
  .cut--info { left: auto; right: -1.25rem; bottom: 1.25rem; width: 4.5rem; }
  .pill--top .pill__long { display: none; }
  .pill--top .pill__short { display: inline; }
  .hud__nav a:not([href="#como-llegar"]) { display: none; }
  .hud__cue i { height: 1.75rem; }
  .slide__line { font-size: var(--step-0); }
  .slide__line--hero { font-size: 1.0625rem; }
}

@media (min-width: 48rem) {
  .info__grid { grid-template-columns: 5fr 7fr; gap: clamp(3rem, 6vw, 6rem); align-items: start; }
  .info__head { position: sticky; top: 7rem; }
  .offer > div { display: grid; grid-template-columns: 13rem 1fr; gap: 1.5rem; align-items: baseline; }
  .offer dd { margin-top: 0; }
  .map__grid { grid-template-columns: 5fr 7fr; gap: clamp(3rem, 6vw, 6rem); }
  .foot__facts { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
