/* ============================================================
   MADRE TIERRA ECO HABITAT — Landing
   Palette: jungle sage, deep moss, warm cedar, sand, cream
   Type: Cormorant Garamond (display, with italic) + Inter (UI)
   ============================================================ */

:root {
  /* Surfaces */
  --cream: #f3ece1;          /* primary background */
  --sand: #e6dcc7;           /* secondary surface */
  --paper: #faf6ef;          /* lightest */
  --bone: #ece4d5;           /* card */
  /* Greens */
  --moss: #3a4a35;           /* deep — primary brand */
  --sage: #6b7f5c;           /* mid */
  --leaf: #4a5e42;           /* hover */
  --olive: #8a9876;          /* muted */
  /* Browns */
  --cedar: #6b4a2b;          /* warm wood */
  --bark:  #3c2a1c;          /* deep wood */
  --clay:  #b07a4b;          /* terracotta accent */
  /* Ink */
  --ink:   #2a2620;          /* primary text */
  --ink-2: #5a544a;          /* secondary text */
  --ink-3: #8a8275;          /* tertiary */
  --line:  rgba(58,74,53,.14);
  --line-2: rgba(58,74,53,.08);
  /* Motion */
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,.84,.36,1);
  /* Type */
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* Layout */
  --pad-x: clamp(1.25rem, 4vw, 3.5rem);
  --max:   76rem;
}

/* -------------------- RESET -------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: 0; background: 0; cursor: pointer; color: inherit; }
input, select, textarea, button { font-family: inherit; }
::selection { background: var(--moss); color: var(--paper); }

.skip-link {
  position: absolute; left: -9999px;
  background: var(--moss); color: var(--paper);
  padding: .75rem 1rem; border-radius: 4px;
}
.skip-link:focus { left: 1rem; top: 1rem; z-index: 1000; }

/* -------------------- TYPOGRAPHY -------------------- */
.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.25rem, 5.4vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.012em;
  color: var(--moss);
  margin: 0 0 1.25rem;
}
.display em {
  font-style: italic;
  font-weight: 400;
  color: var(--cedar);
}
.display--xl {
  font-size: clamp(2.75rem, 7vw, 6.5rem);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .65rem;
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--moss);
  margin: 0 0 1.4rem;
}
.eyebrow--light { color: var(--paper); }
.eyebrow__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cedar);
  display: inline-block;
}
.eyebrow--light .eyebrow__dot { background: var(--clay); }

.lede {
  font-size: 1.075rem;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 42rem;
  margin: 0 0 2rem;
}

.tag {
  display: inline-flex; align-items: center;
  height: 1.6rem;
  padding: 0 .65rem;
  border-radius: 999px;
  background: var(--moss);
  color: var(--paper);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* -------------------- BUTTONS -------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  height: 3rem; padding: 0 1.4rem;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .01em;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
  white-space: nowrap;
  cursor: pointer;
}
.btn:focus-visible {
  outline: 2px solid var(--cedar);
  outline-offset: 3px;
}
.btn--primary {
  background: var(--moss); color: var(--paper);
}
.btn--primary:hover { background: var(--leaf); transform: translateY(-1px); box-shadow: 0 10px 24px -12px rgba(58,74,53,.55); }
.btn--ghost {
  background: transparent; color: var(--moss);
  box-shadow: inset 0 0 0 1px var(--line);
}
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--moss); }
.btn--link {
  background: transparent; color: var(--moss);
  padding: 0; height: auto;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  padding-bottom: .25rem;
}
.btn--link:hover { color: var(--cedar); transform: translateX(2px); }
.btn--sm { font-size: .82rem; }
.btn--lg { height: 3.4rem; padding: 0 1.75rem; font-size: .95rem; }

/* -------------------- NAV -------------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .35s var(--ease), backdrop-filter .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(243,236,225, .78);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border-bottom-color: var(--line);
}
.nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem var(--pad-x);
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  gap: 1rem;
  align-items: center;
}
.brand { display: inline-flex; align-items: center; gap: .75rem; color: var(--paper); transition: color .35s var(--ease); }
.nav.is-scrolled .brand { color: var(--moss); }
.brand__mark { width: 36px; height: 36px; flex: 0 0 auto; }
.brand__mark--lg { width: 56px; height: 56px; }
.brand__word { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: .04em;
}
.brand__tag {
  font-size: .58rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  opacity: .75;
  margin-top: .15rem;
}

.nav__links {
  display: flex; gap: 1.85rem;
  justify-self: center;
}
.nav__links a {
  color: var(--paper);
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 500;
  position: relative;
  padding: .5rem 0;
  transition: color .25s var(--ease);
}
.nav.is-scrolled .nav__links a { color: var(--ink); }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); }

.nav__cta {
  color: var(--paper) !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.4);
}
.nav.is-scrolled .nav__cta { color: var(--moss) !important; box-shadow: inset 0 0 0 1px var(--line); }
.nav__cta:hover { box-shadow: inset 0 0 0 1px rgba(255,255,255,.85); }
.nav.is-scrolled .nav__cta:hover { box-shadow: inset 0 0 0 1px var(--moss); }

/* Language toggle */
.lang-toggle {
  display: inline-flex; align-items: center; gap: .45rem;
  height: 2.4rem; padding: 0 .85rem;
  border-radius: 999px;
  font-size: .72rem; font-weight: 500;
  letter-spacing: .14em;
  color: var(--paper);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.3);
  background: transparent;
  transition: background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
}
.lang-toggle:hover { background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.55); }
.nav.is-scrolled .lang-toggle { color: var(--moss); box-shadow: inset 0 0 0 1px var(--line); }
.nav.is-scrolled .lang-toggle:hover { background: rgba(58,74,53,.05); box-shadow: inset 0 0 0 1px var(--moss); }
.lang-toggle svg { opacity: .75; }
.lang-toggle:focus-visible { outline: 2px solid var(--cedar); outline-offset: 3px; }

.nav__menu {
  display: none;
  width: 44px; height: 44px;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav__menu span {
  display: block; width: 22px; height: 1.5px;
  background: var(--paper); transition: transform .3s var(--ease), opacity .3s var(--ease), background .3s var(--ease);
}
.nav.is-scrolled .nav__menu span { background: var(--ink); }

/* -------------------- HERO -------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  color: var(--paper);
  padding: 0 var(--pad-x) clamp(2.5rem, 7vh, 5rem);
  overflow: hidden;
  isolation: isolate;
}
.hero__media {
  position: absolute; inset: 0; z-index: -1;
}
.hero__img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transform: scale(1.05);
  filter: saturate(.95) brightness(.92);
}
.hero__veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 20% 100%, rgba(42,38,32,.85) 0%, rgba(42,38,32,.2) 60%, transparent 90%),
    linear-gradient(180deg, rgba(42,38,32,.45) 0%, rgba(42,38,32,.15) 30%, rgba(42,38,32,.65) 100%);
}
.hero__grain {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='5'/><feColorMatrix values='0 0 0 0 0.95 0 0 0 0 0.92 0 0 0 0 0.85 0 0 0 .12 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay; opacity: .55; pointer-events: none;
}

.hero__content {
  position: relative;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
}
.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.8rem, 8.5vw, 7.5rem);
  line-height: .98;
  letter-spacing: -0.018em;
  margin: 1rem 0 1.5rem;
  max-width: 22ch;
  color: var(--paper);
}
.hero__title em {
  font-style: italic;
  font-weight: 300;
  color: var(--sand);
}
.hero__sub {
  font-size: clamp(1rem, 1.15vw, 1.1rem);
  line-height: 1.6;
  max-width: 36rem;
  color: rgba(255,255,255,.85);
  margin: 0 0 2.25rem;
}
.hero__actions {
  display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: center;
}
.hero__actions .btn--primary { background: var(--paper); color: var(--moss); }
.hero__actions .btn--primary:hover { background: var(--cream); }
.hero__actions .btn--link { color: var(--paper); }
.hero__actions .btn--link:hover { color: var(--sand); }

.hero__meta {
  display: flex; gap: clamp(1.75rem, 4vw, 3.75rem);
  margin-top: clamp(2.5rem, 6vh, 4.5rem);
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255,255,255,.22);
  max-width: 38rem;
}
.hero__meta > div { display: flex; flex-direction: column; }
.hero__meta-k {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 400; line-height: 1;
  color: var(--paper);
}
.hero__meta-v {
  font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
  margin-top: .55rem; color: rgba(255,255,255,.75);
}

.hero__scroll {
  position: absolute; left: var(--pad-x); bottom: 2.25rem;
  display: inline-flex; flex-direction: column; align-items: center; gap: .65rem;
  color: var(--paper);
  font-size: .65rem; letter-spacing: .26em; text-transform: uppercase;
  opacity: .8;
}
.hero__scroll svg { animation: bob 2.4s var(--ease) infinite; }
@keyframes bob {
  0%, 100% { transform: translateY(0); opacity: .85; }
  50% { transform: translateY(6px); opacity: 1; }
}

/* -------------------- MARQUEE -------------------- */
.marquee {
  background: var(--moss);
  color: var(--cream);
  padding: 1.25rem 0;
  overflow: hidden;
  border-top: 1px solid rgba(243,236,225,.08);
  border-bottom: 1px solid rgba(243,236,225,.08);
}
.marquee__track {
  display: flex; gap: 2.5rem;
  white-space: nowrap;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
  font-weight: 400;
  animation: marquee 22s linear infinite;
}
.marquee__track span:nth-child(odd) { color: var(--cream); }
.marquee__track span:nth-child(even) { color: var(--olive); font-style: normal; }
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* -------------------- SECTION COMMON -------------------- */
section { padding: clamp(4.5rem, 11vw, 9rem) var(--pad-x); position: relative; }
.section-head { max-width: var(--max); margin: 0 auto clamp(2.5rem, 5vw, 4.5rem); }
.section-head--center { text-align: center; }
.section-head--center .eyebrow { display: inline-flex; }
.section-head--center .lede { margin-left: auto; margin-right: auto; }

/* -------------------- ABOUT -------------------- */
.about { background: var(--cream); }
.about__grid {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.about__body p {
  font-size: 1.05rem; line-height: 1.7;
  color: var(--ink-2);
  max-width: 30rem;
  margin: 0 0 1rem;
}
.about__pillars {
  list-style: none; margin: 2.5rem 0 0; padding: 0;
  display: flex; flex-direction: column; gap: 1.25rem;
  border-top: 1px solid var(--line);
  padding-top: 2rem;
}
.about__pillars li {
  display: grid; grid-template-columns: 2rem 1fr; gap: 1rem;
  align-items: start;
  color: var(--moss);
}
.about__pillars div { display: flex; flex-direction: column; gap: .15rem; }
.about__pillars strong {
  font-family: var(--serif);
  font-size: 1.25rem; font-weight: 500;
  color: var(--moss);
}
.about__pillars span { font-size: .92rem; color: var(--ink-2); line-height: 1.55; }

.about__media {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1rem;
  position: relative;
}
.about__photo {
  margin: 0; border-radius: 4px; overflow: hidden;
  position: relative;
  background: var(--sand);
  aspect-ratio: 1/1;
}
.about__photo img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 1.4s var(--ease-out);
}
.about__photo:hover img { transform: scale(1.04); }
.about__photo figcaption {
  position: absolute; left: 0; bottom: 0; right: 0;
  padding: .85rem 1rem;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.55));
  color: var(--paper);
  font-family: var(--serif); font-style: italic; font-size: .95rem;
}

/* -------------------- STAY -------------------- */
.stay { background: var(--paper); }
.stay__grid {
  max-width: var(--max); margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 1.25rem;
}
.stay__card {
  background: var(--bone);
  border-radius: 6px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.stay__card:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -28px rgba(58,74,53,.35); }
.stay__card--lg { grid-row: span 2; }
.stay__img { aspect-ratio: 4/3; overflow: hidden; background: var(--sand); }
.stay__card--lg .stay__img { aspect-ratio: 4/3.6; }
.stay__img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.4s var(--ease-out);
}
.stay__card:hover .stay__img img { transform: scale(1.05); }
.stay__body { padding: 1.5rem 1.4rem 1.6rem; display: flex; flex-direction: column; gap: .65rem; flex: 1; }
.stay__card--lg .stay__body { padding: 2rem 1.75rem 2rem; gap: .85rem; }
.stay__body h3 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.4rem, 2vw, 1.85rem);
  color: var(--moss);
  margin: 0; line-height: 1.1;
}
.stay__body p { font-size: .94rem; color: var(--ink-2); margin: 0; line-height: 1.55; }
.stay__meta {
  display: flex; flex-wrap: wrap; gap: 1rem;
  margin: .25rem 0 .5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line-2);
}
.stay__meta span {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .8rem; color: var(--ink-2); letter-spacing: .02em;
}
.stay__body .btn--link { margin-top: auto; align-self: flex-start; }

/* -------------------- EXPERIENCES -------------------- */
.experiences { background: var(--cream); }
.exp__list {
  max-width: var(--max); margin: 0 auto;
  border-top: 1px solid var(--line);
}
.exp__row {
  display: grid;
  grid-template-columns: 5rem 1fr 14rem auto;
  gap: clamp(1.25rem, 3vw, 2.25rem);
  align-items: center;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
  transition: padding .4s var(--ease), color .4s var(--ease);
  position: relative;
  isolation: isolate;
}
.exp__row::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--moss);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .55s var(--ease-out);
}
.exp__row:hover::before { transform: scaleY(1); }
.exp__row:hover { padding-left: 1.5rem; padding-right: 1.5rem; color: var(--paper); }
.exp__row:hover .exp__num,
.exp__row:hover .exp__head h3 { color: var(--paper); }
.exp__row:hover .exp__head p { color: rgba(255,255,255,.75); }
.exp__row:hover .exp__media { transform: scale(1.02); }
.exp__row:hover .exp__cta { color: var(--paper); }

.exp__num {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  font-style: italic;
  color: var(--cedar);
  font-weight: 400;
  transition: color .35s var(--ease);
}
.exp__head h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  color: var(--moss);
  margin: 0; line-height: 1.05;
  transition: color .35s var(--ease);
}
.exp__head p {
  font-size: .95rem;
  color: var(--ink-2);
  margin: .35rem 0 0;
  max-width: 32rem;
  line-height: 1.5;
  transition: color .35s var(--ease);
}
.exp__media {
  width: 14rem; height: 8rem;
  border-radius: 4px;
  overflow: hidden;
  background: var(--sand);
  transition: transform .55s var(--ease-out);
}
.exp__media img {
  width: 100%; height: 100%; object-fit: cover;
}
.exp__cta {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .8rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--moss); font-weight: 500;
  transition: color .35s var(--ease);
}

/* -------------------- WELLNESS -------------------- */
.wellness {
  background: var(--bark);
  color: var(--cream);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  max-width: 100%;
  align-items: center;
}
.wellness__media {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 4px;
  overflow: hidden;
}
.wellness__media img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.85); }
.wellness__arch {
  position: absolute; inset: 8% 12% 32%;
  border: 1px solid rgba(243,236,225,.55);
  border-radius: 100% 100% 0 0 / 65% 65% 0 0;
  border-bottom: 0;
  pointer-events: none;
}
.wellness__caption {
  position: absolute; left: 0; right: 0; top: 38%;
  text-align: center;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  color: var(--cream);
  letter-spacing: .02em;
  font-weight: 400;
  text-shadow: 0 2px 14px rgba(0,0,0,.5);
}
.wellness__caption em { font-style: italic; font-weight: 400; color: var(--sand); }

.wellness__copy { color: var(--cream); }
.wellness .eyebrow { color: var(--clay); }
.wellness .eyebrow__dot { background: var(--clay); }
.wellness .display { color: var(--cream); }
.wellness .display em { color: var(--clay); }
.wellness .lede { color: rgba(243,236,225,.78); }

.wellness__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(243,236,225,.15);
}
.wellness__card {
  display: flex; flex-direction: column; gap: .35rem;
  padding: .25rem 0;
}
.wellness__index {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--clay);
  margin-bottom: .3rem;
  letter-spacing: .15em;
  text-transform: lowercase;
}
.wellness__card h4 {
  font-family: var(--serif); font-weight: 500;
  font-size: 1.35rem; color: var(--cream);
  margin: 0; line-height: 1.1;
}
.wellness__card p {
  font-size: .9rem; color: rgba(243,236,225,.72);
  margin: 0; line-height: 1.5;
}

/* -------------------- GALLERY -------------------- */
.gallery { background: var(--cream); }
.gallery__grid {
  max-width: var(--max); margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.g {
  margin: 0; overflow: hidden;
  border-radius: 4px;
  background: var(--sand);
  position: relative;
  aspect-ratio: 4/3;
}
.g img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.4s var(--ease-out), filter .8s var(--ease-out);
  filter: saturate(.95);
}
.g:hover img { transform: scale(1.06); filter: saturate(1.05); }

/* -------------------- WORK -------------------- */
.work {
  background: var(--sand);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.work__media {
  aspect-ratio: 4/5;
  border-radius: 4px;
  overflow: hidden;
  background: var(--bone);
}
.work__media img { width: 100%; height: 100%; object-fit: cover; }
.work__copy { max-width: 32rem; }
.work__feat {
  list-style: none; padding: 0; margin: 0 0 2rem;
  border-top: 1px solid var(--line);
}
.work__feat li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  display: flex; gap: .85rem; align-items: center;
  color: var(--ink);
  font-size: .98rem;
}
.work__feat li::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cedar); flex: 0 0 auto;
}

/* -------------------- QUOTES -------------------- */
.quotes {
  background: var(--moss);
  color: var(--cream);
}
.quotes__inner { max-width: var(--max); margin: 0 auto; }
.quote {
  margin: 0 0 3rem;
  text-align: center;
}
.quote blockquote {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.35;
  color: var(--cream);
  margin: 0 auto 1.5rem;
  max-width: 42rem;
}
.quote blockquote em { color: var(--sand); }
.quote figcaption {
  font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(243,236,225,.7);
  display: flex; justify-content: center; gap: .65rem;
}
.quote__sep { opacity: .5; }

.quote--sm blockquote { font-size: 1.2rem; line-height: 1.5; }
.quotes__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(243,236,225,.18);
}
.quote--sm { text-align: left; margin: 0; }
.quote--sm figcaption { justify-content: flex-start; }

/* -------------------- CTA -------------------- */
.cta {
  position: relative;
  color: var(--paper);
  text-align: center;
  isolation: isolate;
}
.cta__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.45) saturate(.85); }
.cta__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(42,38,32,.4), rgba(42,38,32,.7));
}
.cta__inner { max-width: 56rem; margin: 0 auto; }
.cta .display { color: var(--paper); }
.cta .display em { color: var(--sand); }
.cta__sub {
  color: rgba(255,255,255,.82);
  font-size: 1.05rem;
  max-width: 38rem;
  margin: 0 auto 2.5rem;
}
.cta__form {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  max-width: 44rem; margin: 0 auto;
  text-align: left;
}
.field { display: flex; flex-direction: column; gap: .4rem; }
.field--wide { grid-column: 1 / -1; }
.field span {
  font-size: .68rem; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(255,255,255,.7); font-weight: 500;
}
.field input, .field select {
  height: 3.2rem;
  padding: 0 1rem;
  background: rgba(255,255,255,.08);
  color: var(--paper);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 4px;
  font-size: .95rem;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.field input::placeholder { color: rgba(255,255,255,.5); }
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--sand);
  background: rgba(255,255,255,.12);
}
.field select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%23f3ece1' stroke-width='1.5'><path d='M1 1l5 5 5-5'/></svg>"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.cta__form button {
  grid-column: 1 / -1;
  justify-self: center;
  margin-top: .5rem;
  background: var(--paper); color: var(--moss);
}
.cta__form button:hover { background: var(--cream); }

/* -------------------- FOOTER -------------------- */
.foot {
  background: var(--bark);
  color: var(--cream);
  padding: clamp(4rem, 8vw, 6rem) var(--pad-x) 2rem;
}
.foot__top {
  max-width: var(--max); margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(243,236,225,.15);
}
.foot__brand { color: var(--cream); display: flex; flex-direction: column; gap: 1.25rem; }
.foot__tag {
  font-family: var(--serif); font-style: italic;
  font-size: 1.25rem; line-height: 1.4;
  color: var(--cream);
  margin: 0;
}
.foot__col h5 {
  font-size: .68rem; letter-spacing: .26em; text-transform: uppercase;
  color: var(--clay); font-weight: 500;
  margin: 0 0 1rem;
}
.foot__col p {
  font-size: .95rem; line-height: 1.65;
  color: rgba(243,236,225,.75);
  margin: 0;
}
.foot__col a { color: rgba(243,236,225,.85); transition: color .2s var(--ease); }
.foot__col a:hover { color: var(--sand); }

.foot__news { display: flex; gap: .5rem; margin-top: 1rem; }
.foot__news input {
  flex: 1;
  height: 2.6rem; padding: 0 .85rem;
  background: rgba(243,236,225,.08); color: var(--cream);
  border: 1px solid rgba(243,236,225,.2);
  border-radius: 999px;
  font-size: .88rem;
}
.foot__news input::placeholder { color: rgba(243,236,225,.45); }
.foot__news input:focus { outline: none; border-color: var(--sand); }
.foot__news button {
  width: 2.6rem; height: 2.6rem;
  border-radius: 50%;
  background: var(--cream); color: var(--moss);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .25s var(--ease);
}
.foot__news button:hover { background: var(--sand); }

.foot__bottom {
  max-width: var(--max); margin: 0 auto;
  padding-top: 2rem;
  display: flex; justify-content: space-between;
  font-size: .78rem; letter-spacing: .04em;
  color: rgba(243,236,225,.55);
}

/* -------------------- REVEAL -------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-in {
  opacity: 1;
  transform: translateY(0);
}

/* -------------------- RESPONSIVE -------------------- */
@media (max-width: 1024px) {
  .nav__inner { grid-template-columns: 1fr auto auto; }
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    padding: .25rem var(--pad-x) 1.5rem;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 26px 44px -26px rgba(58,74,53,.5);
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .26s var(--ease), transform .26s var(--ease), visibility .26s;
  }
  .nav__links a {
    color: var(--ink); padding: 1.05rem .25rem;
    font-size: .95rem;
    border-bottom: 1px solid var(--line-2);
  }
  .nav__links a:last-child { border-bottom: 0; }
  .nav__links a::after { display: none; }
  .nav__cta { display: none; }
  .nav__menu { display: flex; }
  .lang-toggle { height: 2.2rem; padding: 0 .7rem; font-size: .68rem; }

  .about__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 32rem; margin: 0 auto; }

  .stay__grid { grid-template-columns: 1fr 1fr; }
  .stay__card--lg { grid-row: span 1; grid-column: span 2; }
  .stay__card--lg .stay__img { aspect-ratio: 16/8; }

  .exp__row { grid-template-columns: 3rem 1fr 8rem; }
  .exp__cta { display: none; }
  .exp__media { width: 8rem; height: 5.5rem; }

  .wellness { grid-template-columns: 1fr; }
  .wellness__media { max-width: 28rem; margin: 0 auto; }

  .work { grid-template-columns: 1fr; }

  .quotes__row { grid-template-columns: 1fr; gap: 2rem; }

  .foot__top { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

@media (max-width: 640px) {
  .hero { min-height: 92svh; padding-bottom: 2.5rem; }
  .hero__meta { flex-wrap: wrap; gap: 1.5rem 2.5rem; }
  .hero__scroll { display: none; }

  .stay__grid { grid-template-columns: 1fr; }
  .stay__card--lg { grid-column: span 1; }

  .exp__row {
    grid-template-columns: 2.5rem 1fr;
    gap: 1rem;
    padding: 1.5rem 0;
  }
  .exp__row:hover { padding-left: 1rem; padding-right: 1rem; }
  .exp__media { display: none; }

  .wellness__grid { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }

  .cta__form { grid-template-columns: 1fr; }

  .foot__top { grid-template-columns: 1fr; gap: 2rem; padding-bottom: 2rem; }
  .foot__bottom { flex-direction: column; gap: .5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
}

/* -------------------- BRAND LOGO (real lockup) -------------------- */
.brand__logo {
  height: 52px;
  width: auto;
}
.nav.is-scrolled .brand__logo {
  /* logo is cream artwork; on the light scrolled bar, tint it dark for contrast */
  filter: brightness(0) saturate(100%) invert(22%) sepia(11%) saturate(900%) hue-rotate(60deg) brightness(94%);
}
@media (max-width: 640px) { .brand__logo { height: 42px; } }
.hero__meta-k small { font-size: .42em; letter-spacing: .04em; margin-left: .15em; }

/* -------------------- ÁREAS COMUNES -------------------- */
.areas { background: var(--paper); }
.areas__grid {
  max-width: var(--max); margin: 0 auto;
  list-style: none; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem;
}
.areas__item {
  background: var(--bone);
  border-radius: 6px;
  padding: 1.6rem 1.4rem;
  border: 1px solid var(--line-2);
}
.areas__item h3 {
  font-family: var(--serif); font-weight: 500;
  font-size: 1.3rem; color: var(--moss);
  margin: 0 0 .5rem;
}
.areas__item p { font-size: .9rem; color: var(--ink-2); margin: 0; line-height: 1.55; }
@media (max-width: 1024px) { .areas__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .areas__grid { grid-template-columns: 1fr; } }

/* -------------------- CABAÑAS (7-card uniform grid) -------------------- */
.stay__grid--cabanas { grid-template-columns: repeat(3, 1fr); }
.stay__grid--cabanas .stay__card { grid-row: auto; grid-column: auto; }
.stay__grid--cabanas .stay__body { gap: .55rem; }
@media (max-width: 1024px) { .stay__grid--cabanas { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .stay__grid--cabanas { grid-template-columns: 1fr; } }
.wellness__media video { width: 100%; height: 100%; object-fit: cover; filter: brightness(.85); }

/* -------------------- EL ENTORNO -------------------- */
.entorno { background: var(--sand); }
.entorno__grid {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem); align-items: center;
}
.entorno__media { aspect-ratio: 4/3; border-radius: 4px; overflow: hidden; background: var(--bone); }
.entorno__media img { width: 100%; height: 100%; object-fit: cover; }
.entorno__notes { list-style: none; padding: 1.75rem 0 0; margin: 1.5rem 0 0; border-top: 1px solid var(--line); }
.entorno__notes li { padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: .96rem; color: var(--ink-2); line-height: 1.55; }
.entorno__notes strong { color: var(--moss); }
.entorno__strip {
  max-width: var(--max); margin: clamp(2rem, 5vw, 3.5rem) auto 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
.entorno__strip figure { margin: 0; aspect-ratio: 1/1; border-radius: 4px; overflow: hidden; background: var(--bone); }
.entorno__strip img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.entorno__strip figure:hover img { transform: scale(1.06); }
@media (max-width: 1024px) { .entorno__grid { grid-template-columns: 1fr; } .entorno__strip { grid-template-columns: repeat(2, 1fr); } }

/* -------------------- RESERVA (form additions) -------------------- */
.cta__form textarea {
  padding: .85rem 1rem;
  background: rgba(255,255,255,.08);
  color: var(--paper);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 4px;
  font-size: .95rem;
  resize: vertical;
}
.cta__form textarea::placeholder { color: rgba(255,255,255,.5); }
.cta__form textarea:focus { outline: none; border-color: var(--sand); background: rgba(255,255,255,.12); }
.cta__note {
  grid-column: 1 / -1; margin: .25rem 0 0;
  color: var(--sand); font-size: .95rem; text-align: center;
}
.cta__alt { grid-column: 1 / -1; margin: 0; text-align: center; }
.cta__alt a {
  color: rgba(255,255,255,.7); font-size: .85rem;
  border-bottom: 1px solid rgba(255,255,255,.3); padding-bottom: 2px;
}
.cta__alt a:hover { color: var(--paper); }

/* -------------------- FOOTER (logo + IG) -------------------- */
.foot__logo { height: 84px; width: auto; align-self: flex-start; }
.foot__ig {
  display: inline-block; margin-top: .75rem;
  font-size: .95rem; color: var(--sand);
  border-bottom: 1px solid rgba(243,236,225,.3); padding-bottom: 2px;
}
.foot__ig:hover { color: var(--paper); }

/* -------------------- EVENTOS PAGE -------------------- */
.hero--page { min-height: 78svh; }
.evt-policies { list-style: none; padding: 1.75rem 0 0; margin: 1.5rem 0 0; border-top: 1px solid var(--line); }
.evt-policies li {
  padding: .85rem 0 .85rem 1.5rem; position: relative;
  border-bottom: 1px solid var(--line);
  font-size: .96rem; color: var(--ink-2); line-height: 1.5;
}
.evt-policies li::before {
  content: ""; position: absolute; left: 0; top: 1.15rem;
  width: 6px; height: 6px; border-radius: 50%; background: var(--cedar);
}

/* -------------------- MOBILE MENU (open state) -------------------- */
@media (max-width: 1024px) {
  .nav.is-menu-open {
    background: rgba(243,236,225,.98);
    backdrop-filter: blur(14px) saturate(1.1);
    -webkit-backdrop-filter: blur(14px) saturate(1.1);
    border-bottom-color: var(--line);
  }
  .nav.is-menu-open .brand { color: var(--moss); }
  .nav.is-menu-open .brand__logo {
    filter: brightness(0) saturate(100%) invert(22%) sepia(11%) saturate(900%) hue-rotate(60deg) brightness(94%);
  }
  .nav.is-menu-open .lang-toggle { color: var(--moss); box-shadow: inset 0 0 0 1px var(--line); }
  .nav.is-menu-open .nav__menu span { background: var(--ink); }
  .nav.is-menu-open .nav__links {
    opacity: 1; visibility: visible; transform: translateY(0);
  }
  .nav.is-menu-open .nav__menu span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav.is-menu-open .nav__menu span:nth-child(2) { opacity: 0; }
  .nav.is-menu-open .nav__menu span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
}

/* -------------------- CAROUSEL (Concepto) -------------------- */
.carousel {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  background: var(--sand);
  aspect-ratio: 4 / 4.4;
}
.carousel__track {
  display: flex;
  height: 100%;
  transition: transform .6s var(--ease);
}
.carousel__slide {
  flex: 0 0 100%;
  height: 100%;
  margin: 0;
  position: relative;
}
.carousel__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.carousel__slide figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: .85rem 1rem;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.55));
  color: var(--paper);
  font-family: var(--serif); font-style: italic; font-size: .95rem;
}
.carousel__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 2.6rem; height: 2.6rem;
  border-radius: 50%;
  background: rgba(243,236,225,.82);
  color: var(--moss);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px -6px rgba(42,38,32,.5);
  transition: background .2s var(--ease);
}
.carousel__nav:hover { background: var(--paper); }
.carousel__nav:focus-visible { outline: 2px solid var(--cedar); outline-offset: 2px; }
.carousel__nav--prev { left: .85rem; }
.carousel__nav--next { right: .85rem; }
.carousel__dots {
  position: absolute; left: 0; right: 0; bottom: .9rem;
  display: flex; justify-content: center; gap: .5rem;
}
.carousel__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(243,236,225,.55);
  box-shadow: 0 1px 3px rgba(0,0,0,.35);
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.carousel__dot.is-active { background: var(--paper); transform: scale(1.35); }
@media (max-width: 1024px) { .carousel { max-width: 32rem; margin-inline: auto; } }
@media (max-width: 640px)  { .carousel { aspect-ratio: 4 / 3.6; } }

/* -------------------- WHATSAPP FLOATING BUTTON -------------------- */
.wa-float {
  position: fixed;
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 3vw, 1.75rem);
  z-index: 60;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px -8px rgba(37,211,102,.55), 0 4px 14px -6px rgba(0,0,0,.3);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}
.wa-float:hover {
  background: #1ebe5d;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 16px 30px -8px rgba(37,211,102,.6), 0 6px 18px -8px rgba(0,0,0,.35);
}
.wa-float:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; }
.wa-float svg { width: 30px; height: 30px; display: block; }
@media (max-width: 640px) {
  .wa-float { width: 52px; height: 52px; }
  .wa-float svg { width: 28px; height: 28px; }
}
@media print { .wa-float { display: none; } }
