/* ==========================================================================
   REFUGIO · Cabañas frente al lago
   Light, airy, cold-nature-luxury. Vanilla CSS, no frameworks.
   ========================================================================== */

:root {
  /* Palette, snow / lake / pine / wood */
  --snow:        #f7f9f8;
  --paper:       #fdfdfc;
  --mist:        #e8eeec;
  --ink:         #1c2624;      /* deep pine-charcoal text */
  --ink-soft:    #4c5a56;
  --pine:        #14201d;      /* dark sections */
  --pine-2:      #1b2b27;
  --lake:        #2f9e9e;      /* turquoise accent */
  --lake-deep:   #217d7f;
  --lake-ice:    #d8ecea;
  --wood:        #b08a63;      /* warm timber accent */
  --line:        rgba(28, 38, 36, .12);

  --font: "Helvetica Neue", "Segoe UI", ui-sans-serif, system-ui, -apple-system, Arial, sans-serif;

  --wrap: 76rem;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --sect: clamp(5rem, 11vw, 9.5rem);

  --ease: cubic-bezier(.22, .61, .21, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

section[id] { scroll-margin-top: 4.5rem; }

body {
  font-family: var(--font);
  font-weight: 300;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.wrap--narrow { max-width: 56rem; }

/* ---------- Type helpers ---------- */
.eyebrow {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--lake-deep);
  margin-bottom: 1.4rem;
}
.eyebrow--center { text-align: center; }
.eyebrow--light { color: #7fc6c2; }

.section-title {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  font-weight: 200;
  line-height: 1.12;
  letter-spacing: -.015em;
  margin-bottom: 1.6rem;
}
.section-title--center { text-align: center; margin-inline: auto; }

.body-text {
  font-size: clamp(1rem, 1.35vw, 1.125rem);
  color: var(--ink-soft);
  max-width: 34em;
  margin-bottom: 1.25rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 1rem 2.4rem;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: background-color .35s var(--ease), color .35s var(--ease),
              border-color .35s var(--ease), transform .35s var(--ease);
}
.btn:hover { transform: translateY(-2px); }

.btn--hero {
  background: rgba(253, 253, 252, .92);
  color: var(--ink);
}
.btn--hero:hover { background: var(--paper); }

.btn--light { background: var(--paper); color: var(--pine); }
.btn--light:hover { background: var(--lake-ice); }

.btn--ghost {
  border-color: rgba(255, 255, 255, .35);
  color: #eef4f2;
}
.btn--ghost:hover { border-color: #eef4f2; }

.link-arrow {
  display: inline-block;
  margin-top: 2rem;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--lake-deep);
  border-bottom: 1px solid var(--lake-ice);
  padding-bottom: .35rem;
  transition: border-color .3s var(--ease);
}
.link-arrow:hover { border-color: var(--lake-deep); }

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  color: #fff;
  transition: background-color .4s var(--ease), color .4s var(--ease),
              box-shadow .4s var(--ease);
}
.nav__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 1.1rem var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 500;
  letter-spacing: .38em;
  font-size: .95rem;
}
.nav__mark { width: 1.25rem; height: 1.25rem; flex: none; }

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 3vw, 2.4rem);
  font-size: .78rem;
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.nav__links a { opacity: .88; transition: opacity .3s; }
.nav__links a:hover { opacity: 1; }

.nav__cta {
  padding: .55rem 1.4rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  opacity: 1 !important;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}

/* solid state after scroll */
.nav.is-solid {
  background: rgba(253, 253, 252, .92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}
.nav.is-solid .nav__cta:hover { background: var(--pine); color: var(--paper); border-color: var(--pine); }
.nav:not(.is-solid) .nav__cta:hover { background: rgba(255, 255, 255, .18); }

/* burger */
.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 2.6rem;
  height: 2.6rem;
  background: none;
  border: 0;
  cursor: pointer;
  color: inherit;
}
.nav__burger span {
  display: block;
  height: 1.5px;
  width: 24px;
  margin-inline: auto;
  background: currentColor;
  transition: transform .35s var(--ease), opacity .35s;
}

@media (max-width: 760px) {
  .nav__burger { display: flex; }
  .nav__links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 2.2rem;
    background: var(--paper);
    color: var(--ink);
    font-size: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s var(--ease), visibility 0s linear .4s;
  }
  .nav.menu-open .nav__links {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
  }
  .nav.menu-open { color: var(--ink); }
  .nav.menu-open .nav__burger { position: relative; z-index: 10; }
  .nav.menu-open .nav__burger span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav.menu-open .nav__burger span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .nav.menu-open .nav__brand { position: relative; z-index: 10; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background: var(--pine);
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* subtle dark veil, masks the AI cabin-morph on close approach and carries text */
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(10, 18, 16, .38) 0%,
      rgba(10, 18, 16, .18) 35%,
      rgba(10, 18, 16, .22) 70%,
      rgba(10, 18, 16, .52) 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-inline: var(--pad);
  max-width: 60rem;
}
.hero__kicker {
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: #cfe7e3;
  margin-bottom: 1.6rem;
}
.hero__title {
  font-size: clamp(2.6rem, 7.5vw, 5.6rem);
  font-weight: 200;
  line-height: 1.06;
  letter-spacing: -.02em;
  text-shadow: 0 2px 30px rgba(6, 12, 11, .35);
  margin-bottom: 1.4rem;
}
.hero__sub {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 300;
  color: rgba(255, 255, 255, .88);
  max-width: 34em;
  margin: 0 auto 2.6rem;
}
.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .7rem;
  color: rgba(255, 255, 255, .75);
}
.hero__scroll-text {
  font-size: .66rem;
  letter-spacing: .34em;
  text-transform: uppercase;
}
.hero__scroll-line {
  width: 1px;
  height: 3rem;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, .8));
  animation: scrollPulse 2.4s var(--ease) infinite;
  transform-origin: top;
}
@keyframes scrollPulse {
  0%   { transform: scaleY(0); opacity: 0; }
  40%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1) translateY(1rem); opacity: 0; }
}

/* ==========================================================================
   INTRO + STATS
   ========================================================================== */
.intro {
  background: var(--snow);
  padding-block: var(--sect);
  text-align: center;
}
.intro__statement {
  font-size: clamp(1.4rem, 2.8vw, 2.2rem);
  font-weight: 200;
  line-height: 1.42;
  letter-spacing: -.01em;
}
.intro__statement em {
  font-style: normal;
  color: var(--lake-deep);
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: clamp(3.5rem, 7vw, 5.5rem);
  padding-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
}
.stats__item { display: flex; flex-direction: column; gap: .4rem; }
.stats__num {
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 100;
  line-height: 1;
  color: var(--ink);
}
.stats__unit { font-size: .45em; font-weight: 300; color: var(--ink-soft); }
.stats__label {
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
@media (max-width: 640px) {
  .stats { grid-template-columns: 1fr; gap: 2.4rem; }
}

/* ==========================================================================
   LAS CABAÑAS
   ========================================================================== */
.cabanas {
  background: var(--paper);
  padding-block: var(--sect);
}
.cabanas__grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.cabanas__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 4px;
}
.media-caption {
  margin-top: .9rem;
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.ticks {
  margin-top: 2rem;
  display: grid;
  gap: .85rem;
}
.ticks li {
  position: relative;
  padding-left: 2rem;
  font-size: .95rem;
  color: var(--ink-soft);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .32em;
  width: .85em;
  height: .45em;
  border-left: 1.5px solid var(--lake);
  border-bottom: 1.5px solid var(--lake);
  transform: rotate(-45deg);
}
@media (max-width: 860px) {
  .cabanas__grid { grid-template-columns: 1fr; }
  .cabanas__media img { aspect-ratio: 4 / 3; }
}

/* ==========================================================================
   PARALLAX BAND
   ========================================================================== */
.band {
  position: relative;
  height: clamp(24rem, 62vh, 36rem);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.band__img {
  position: absolute;
  inset: -18% 0;
  background-size: cover;
  background-position: center;
  will-change: transform;
}
.band__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(12, 22, 20, .42), rgba(12, 22, 20, .28));
}
.band__quote {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding-inline: var(--pad);
  max-width: 46rem;
}
.band__quote p {
  font-size: clamp(1.4rem, 3vw, 2.3rem);
  font-weight: 200;
  line-height: 1.35;
  letter-spacing: -.01em;
  text-shadow: 0 2px 24px rgba(6, 12, 11, .4);
}
.band__quote cite {
  display: block;
  margin-top: 1.4rem;
  font-style: normal;
  font-size: .72rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .75);
}

/* ==========================================================================
   EL RITUAL
   ========================================================================== */
.ritual {
  background: var(--snow);
  padding-block: var(--sect);
}
.ritual__grid {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.ritual__media img {
  width: 100%;
  aspect-ratio: 3 / 4.4;      /* tall column, vertical bosque.jpg */
  object-fit: cover;
  border-radius: 4px;
}
.ritual__list {
  margin-top: 2.2rem;
  border-top: 1px solid var(--line);
}
.ritual__list li {
  display: flex;
  gap: 1.6rem;
  align-items: baseline;
  padding-block: 1rem;
  border-bottom: 1px solid var(--line);
  font-size: .95rem;
  color: var(--ink-soft);
}
.ritual__list li span {
  flex: none;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .14em;
  color: var(--lake-deep);
  font-variant-numeric: tabular-nums;
}
@media (max-width: 860px) {
  .ritual__grid { grid-template-columns: 1fr; }
  .ritual__media img { aspect-ratio: 3 / 3.6; }
}

/* ==========================================================================
   EXPERIENCIAS
   ========================================================================== */
.exp {
  background: var(--paper);
  padding-block: var(--sect);
}
.exp__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.4rem, 3vw, 2.4rem);
  margin-top: clamp(3rem, 6vw, 4.5rem);
}
.card {
  background: var(--snow);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -24px rgba(20, 32, 29, .28);
}
.card__media {
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.card__media img,
.card__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: 1.8rem 1.7rem 2rem; }
.card__title {
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: -.01em;
  margin-bottom: .7rem;
}
.card__text {
  font-size: .92rem;
  color: var(--ink-soft);
  margin-bottom: 1.2rem;
}
.card__tag {
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--lake-deep);
}
@media (max-width: 860px) {
  .exp__grid { grid-template-columns: 1fr; max-width: 30rem; margin-inline: auto; }
}

/* ==========================================================================
   BOOKING CTA
   ========================================================================== */
.book {
  background:
    radial-gradient(90rem 40rem at 70% -20%, rgba(47, 158, 158, .16), transparent 60%),
    var(--pine);
  color: #eef4f2;
  padding-block: var(--sect);
  text-align: center;
}
.book__title {
  font-size: clamp(2.2rem, 5.4vw, 4rem);
  font-weight: 200;
  line-height: 1.1;
  letter-spacing: -.015em;
  margin-bottom: 1.6rem;
}
.book__text {
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  color: rgba(238, 244, 242, .78);
  max-width: 36em;
  margin: 0 auto 2.6rem;
}
.book__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.book__fine {
  margin-top: 3rem;
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(238, 244, 242, .5);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: var(--pine-2);
  color: rgba(238, 244, 242, .78);
  padding-top: clamp(3.5rem, 7vw, 5.5rem);
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.4fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3.5rem;
}
.footer__brand {
  display: grid;
  gap: .8rem;
  justify-items: start;
  letter-spacing: .38em;
  font-weight: 500;
  color: #eef4f2;
}
.footer__brand p {
  letter-spacing: normal;
  font-weight: 300;
  font-size: .88rem;
  color: rgba(238, 244, 242, .6);
}
.footer__col { display: grid; gap: .7rem; align-content: start; font-size: .9rem; }
.footer__col h4 {
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: #7fc6c2;
  margin-bottom: .4rem;
}
.footer__col a { opacity: .8; transition: opacity .3s; }
.footer__col a:hover { opacity: 1; }
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.6rem;
  border-top: 1px solid rgba(238, 244, 242, .12);
  font-size: .78rem;
  color: rgba(238, 244, 242, .45);
}
@media (max-width: 860px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   REVEALS
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal[data-delay="1"] { transition-delay: .12s; }
.reveal[data-delay="2"] { transition-delay: .24s; }
.reveal[data-delay="3"] { transition-delay: .36s; }
.reveal[data-delay="4"] { transition-delay: .48s; }
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero__scroll-line { animation: none; }
  .band__img { inset: 0; transform: none !important; }
  .card, .card__media img, .btn { transition: none; }
  .card:hover { transform: none; }
}
