/* ============================================
   MBATOVÍ ECO LODGE — Estilos
   ============================================ */

html { scroll-behavior: auto; } /* Lenis maneja el scroll */

body {
  font-family: var(--texto);
  font-size: var(--fs-body);
  font-weight: 300;
  line-height: 1.75;
  color: var(--hueso);
  background: var(--selva);
  overflow-x: hidden;
}

.wrap { width: 100%; max-width: var(--ancho); margin-inline: auto; padding-inline: var(--canto); }
.wrap--fino { max-width: 800px; }

.seccion { padding-block: var(--xxl); position: relative; }
.seccion--hondo { background: var(--selva-hondo); }

h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: -0.01em; }
h2 { font-size: var(--fs-h2); line-height: 1.1; }
em { font-style: italic; color: var(--oro); }

.tag {
  display: block;
  font-size: var(--fs-tag);
  font-weight: 500;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--oro);
  margin-bottom: var(--md);
}

.intro { color: var(--hueso-tenue); max-width: 56ch; }
.centro { text-align: center; }
.centro .intro { margin-inline: auto; }
.cabeza { margin-bottom: var(--xl); }

.saltar { position: absolute; left: -9999px; }
.saltar:focus { left: var(--canto); top: 1rem; z-index: 300; padding: .8rem 1.2rem; background: var(--oro); color: var(--selva); }

/* ============================================
   GRANO DE PELÍCULA — sello del portafolio
   ============================================ */
.grano {
  position: fixed;
  inset: -150%;
  z-index: 300;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: granear .6s steps(3) infinite;
}
@keyframes granear {
  0%   { transform: translate(0, 0); }
  33%  { transform: translate(-3%, -2%); }
  66%  { transform: translate(2%, 3%); }
  100% { transform: translate(0, 0); }
}
@media (prefers-reduced-motion: reduce) { .grano { animation: none; } }

/* ============================================
   NAVEGACIÓN
   ============================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding-block: 1.4rem;
  transition: background .6s var(--curva), padding .6s var(--curva), border-color .6s;
  border-bottom: 1px solid transparent;
}
.nav.fija {
  background: rgba(8, 17, 12, .82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: rgba(201, 169, 97, .18);
  padding-block: .8rem;
}
.nav__int { display: flex; align-items: center; justify-content: space-between; gap: var(--md); }
.nav__logo img { height: 52px; width: auto; transition: height .5s var(--curva); }
.nav.fija .nav__logo img { height: 40px; }

.nav__links { display: flex; gap: var(--md); }
.nav__links a {
  font-size: .74rem;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding-block: .3rem;
  color: var(--hueso-tenue);
  border-bottom: 1px solid transparent;
  transition: color .4s, border-color .4s var(--curva);
}
.nav__links a:hover { color: var(--hueso); border-bottom-color: var(--oro); }

.hamb { display: none; width: 42px; height: 42px; align-items: center; justify-content: center; }
.hamb span { display: block; width: 24px; height: 1px; background: var(--hueso); position: relative; transition: background .2s; }
.hamb span::before, .hamb span::after { content: ""; position: absolute; left: 0; width: 24px; height: 1px; background: var(--hueso); transition: transform .5s var(--curva); }
.hamb span::before { top: -7px; }
.hamb span::after { top: 7px; }
.hamb[aria-expanded="true"] span { background: transparent; }
.hamb[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.hamb[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

.menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--selva-hondo);
  padding: 7rem var(--canto) var(--xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .6s var(--curva), visibility .6s;
}
.menu.abierto { opacity: 1; visibility: visible; }
.menu a { font-family: var(--display); font-size: 2rem; padding-block: .5rem; color: var(--hueso); }
.menu a:hover { color: var(--oro); }
.menu .btn { margin-top: var(--lg); align-self: flex-start; }

/* ============================================
   HERO — imagen en alta con paralaje
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding-block: calc(var(--xxl) + 3rem) var(--xxl);
  text-align: center;
}
.hero__fondo { position: absolute; inset: -8% 0; z-index: 0; }
.hero__fondo img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.hero__velo {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(8,17,12,.78) 0%, rgba(8,17,12,.34) 32%, rgba(8,17,12,.62) 72%, var(--selva) 100%);
}
.hero__int { position: relative; z-index: 2; max-width: 940px; }
.hero h1 {
  font-size: var(--fs-h1);
  line-height: .98;
  margin-bottom: var(--md);
  text-shadow: 0 4px 46px rgba(8, 17, 12, .8);
}
.hero__texto {
  max-width: 52ch;
  margin: 0 auto var(--sm);
  color: var(--hueso);
  text-shadow: 0 2px 22px rgba(8, 17, 12, .9);
}
.hero__texto--dos { color: var(--hueso-tenue); margin-bottom: var(--lg); }
.hero__acciones { display: flex; justify-content: center; flex-wrap: wrap; gap: var(--sm); }

.hero__baja {
  position: absolute;
  left: 50%;
  bottom: 2.2rem;
  z-index: 2;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .7rem;
  font-size: .6rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--hueso-tenue);
}
.hero__baja i {
  display: block;
  width: 1px;
  height: 42px;
  background: linear-gradient(180deg, var(--oro), transparent);
  animation: bajar 2.4s var(--curva) infinite;
}
@keyframes bajar {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================
   CIFRAS
   ============================================ */
.cifras { border-block: 1px solid var(--musgo); }
.cifras ul { display: grid; grid-template-columns: repeat(4, 1fr); }
.cifras li { padding: var(--md) var(--sm); text-align: center; border-left: 1px solid var(--musgo); }
.cifras li:first-child { border-left: 0; }
.cifras strong { display: block; font-family: var(--display); font-size: 2.2rem; font-weight: 400; color: var(--oro); line-height: 1; }
.cifras small { display: block; font-size: .6rem; letter-spacing: .22em; text-transform: uppercase; color: var(--salvia); margin-top: .5rem; }

/* ============================================
   REFUGIOS
   ============================================ */
.refugios { display: grid; gap: var(--xl); }
.refugio {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--lg);
  align-items: center;
}
.refugio:nth-child(even) .refugio__media { order: 2; }
.refugio__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--musgo);
}
.refugio__media img {
  width: 100%;
  height: 118%;
  object-fit: cover;
  will-change: transform;
}
.refugio__n {
  font-family: var(--display);
  font-size: 3.4rem;
  color: var(--musgo);
  line-height: 1;
  margin-bottom: .5rem;
}
.refugio h3 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: .15rem; }
.refugio__sub {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--oro) !important;
  margin-bottom: var(--md) !important;
}
.refugio p { color: var(--hueso-tenue); font-size: var(--fs-small); max-width: 48ch; margin-bottom: .8rem; }
.refugio__datos {
  display: flex;
  flex-wrap: wrap;
  gap: var(--md);
  margin-top: var(--md);
  padding-top: var(--md);
  border-top: 1px solid var(--musgo);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--salvia);
}

/* ============================================
   EXPERIENCIAS
   ============================================ */
.exp { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--musgo); border: 1px solid var(--musgo); }
.exp__c { background: var(--selva); padding: var(--lg) var(--md); transition: background .6s var(--curva); }
.exp__c:hover { background: var(--selva-hondo); }
.exp__c b { display: block; font-family: var(--display); font-size: 1.5rem; font-weight: 400; color: var(--oro); margin-bottom: .5rem; }
.exp__c h3 { font-family: var(--texto); font-size: 1rem; font-weight: 500; margin-bottom: .4rem; }
.exp__c p { font-size: var(--fs-small); color: var(--hueso-tenue); line-height: 1.65; margin-bottom: .7rem; }
.exp__c p:last-child { margin-bottom: 0; }

/* ============================================
   CITA con paralaje de fondo
   ============================================ */
.cita { position: relative; overflow: hidden; text-align: center; }
.cita__fondo { position: absolute; inset: -15% 0; }
.cita__fondo img { width: 100%; height: 100%; object-fit: cover; opacity: .3; will-change: transform; }
.cita::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(8,17,12,.5) 0%, var(--selva-hondo) 78%); }
.cita__int { position: relative; z-index: 2; max-width: 820px; margin-inline: auto; }
.cita blockquote {
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-style: italic;
  line-height: 1.28;
  color: var(--oro-claro);
  margin-bottom: var(--md);
}
.cita cite { display: block; font-style: normal; font-size: .66rem; letter-spacing: .28em; text-transform: uppercase; color: var(--salvia); }

/* ============================================
   GALERÍA
   ============================================ */
.galeria { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sm); }
.galeria figure { position: relative; overflow: hidden; background: var(--musgo); }
.galeria img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--curva); }
.galeria figure:hover img { transform: scale(1.06); }
.g-alta { grid-row: span 2; aspect-ratio: 3 / 4.2; }
.g-baja { aspect-ratio: 3 / 2; }

/* ============================================
   VOCES
   ============================================ */
.voces { display: grid; grid-template-columns: 1fr 1fr; gap: var(--xl); }
.voz { border-top: 1px solid var(--musgo); padding-top: var(--md); }
.voz blockquote { font-family: var(--display); font-size: 1.45rem; font-style: italic; line-height: 1.45; margin-bottom: var(--md); }
.voz figcaption { display: flex; align-items: center; gap: .9rem; }
.voz img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: var(--musgo); }
.voz b { display: block; font-weight: 500; font-size: .95rem; }
.voz span { font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; color: var(--salvia); }

/* ============================================
   PREGUNTAS
   ============================================ */
.preg { border-top: 1px solid var(--musgo); }
.preg__it { border-bottom: 1px solid var(--musgo); }
.preg__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: var(--md); padding-block: 1.6rem; text-align: left;
  font-family: var(--display); font-size: 1.25rem; color: var(--hueso);
  transition: color .3s;
}
.preg__q:hover { color: var(--oro); }
.preg__mas { position: relative; width: 14px; height: 14px; flex-shrink: 0; }
.preg__mas::before, .preg__mas::after { content: ""; position: absolute; background: var(--oro); transition: transform .5s var(--curva), opacity .3s; }
.preg__mas::before { top: 6.5px; left: 0; width: 14px; height: 1px; }
.preg__mas::after { left: 6.5px; top: 0; width: 1px; height: 14px; }
.preg__q[aria-expanded="true"] .preg__mas::after { transform: rotate(90deg); opacity: 0; }
.preg__a { overflow: hidden; max-height: 0; transition: max-height .6s var(--curva); }
.preg__a p { color: var(--hueso-tenue); font-size: var(--fs-small); max-width: 64ch; margin-bottom: .8rem; }
.preg__a p:last-child { padding-bottom: 1.6rem; margin-bottom: 0; }

/* ============================================
   RESERVA
   ============================================ */
.reserva { display: grid; grid-template-columns: 1fr 1.05fr; gap: var(--xl); align-items: start; }
.panel { background: var(--selva); border: 1px solid var(--musgo); padding: var(--lg); }
.datos { display: grid; gap: var(--md); margin-top: var(--lg); }
.datos li { display: grid; grid-template-columns: auto 1fr; gap: var(--md); align-items: center; }
.datos svg { width: 19px; height: 19px; color: var(--oro); }
.datos b { display: block; font-size: .6rem; letter-spacing: .22em; text-transform: uppercase; color: var(--salvia); }
.datos span { font-size: .98rem; }
.datos a { border-bottom: 1px solid rgba(201,169,97,.3); transition: color .3s, border-color .3s; }
.datos a:hover { color: var(--oro); border-color: var(--oro); }

/* ============================================
   WHATSAPP
   ============================================ */
.wa {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 90;
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--oro); color: var(--selva);
  box-shadow: 0 18px 40px -12px rgba(0,0,0,.6);
  transform: scale(0);
  transition: transform .6s var(--curva), background .3s;
}
.wa.visible { transform: scale(1); }
.wa:hover { background: var(--oro-claro); }
.wa svg { width: 26px; height: 26px; }

/* ============================================
   PIE
   ============================================ */
.pie { background: var(--selva-hondo); border-top: 1px solid var(--musgo); padding-block: var(--xl) var(--lg); color: var(--hueso-tenue); }
.pie__grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: var(--lg); padding-bottom: var(--lg); border-bottom: 1px solid var(--musgo); }
.pie__logo img { height: 72px; width: auto; margin-bottom: var(--md); }
.pie p { font-size: var(--fs-small); max-width: 36ch; margin-bottom: .6rem; }
.pie__lema { font-family: var(--display); font-style: italic; color: var(--oro); }
.pie h4 { font-size: .62rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--oro); margin-bottom: var(--md); }
.pie ul { display: grid; gap: .6rem; }
.pie ul a { font-size: .92rem; transition: color .3s; }
.pie ul a:hover { color: var(--hueso); }
.pie__bajo { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sm); padding-top: var(--lg); font-size: .78rem; }
.pie__bajo a { color: var(--oro); }

/* ============================================
   REVELADO DE TEXTO — palabra por palabra
   ============================================ */
.palabra {
  display: inline-block;
  opacity: 0;
  transform: translateY(28px) rotate(2deg);
  transition: opacity .9s var(--curva), transform .9s var(--curva);
}
.palabra.dentro { opacity: 1; transform: none; }

.sube { opacity: 0; transform: translateY(34px); transition: opacity 1.1s var(--curva), transform 1.1s var(--curva); }
.sube.dentro { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .palabra, .sube { opacity: 1; transform: none; }
}

/* ============================================
   EL LUGAR — texto de cierre
   ============================================ */
.lugar__texto { margin-top: 1.2rem; }
.lugar__texto .intro { margin-bottom: .9rem; }
.lugar__cierre {
  font-family: var(--display);
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  line-height: 1.35;
  color: var(--hueso);
  margin-top: var(--md);
  padding-top: var(--md);
  border-top: 1px solid var(--musgo);
  max-width: 30ch;
}
.lugar__cierre em { color: var(--oro); }
.galeria { margin-top: var(--xl); }
