/* ==========================================================================
   Cabaña Arai — hoja de estilos única (sin build, sin dependencias)
   ========================================================================== */

:root {
  --color-forest: #1e352f;
  --color-forest-light: #2a4a40;
  --color-linen: #f5f2eb;
  --color-linen-dark: #ece6d8;
  --color-gold: #c5a059;
  --color-gold-bright: #d4af37;
  --color-graphite: #222222;

  --font-display: "Fraunces", "Georgia", serif;
  --font-sans: "Jost", "Helvetica Neue", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--color-linen);
  color: var(--color-graphite);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  background: none;
  border: none;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background-color: var(--color-gold);
  color: var(--color-forest);
}

::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--color-linen);
}
::-webkit-scrollbar-thumb {
  background: var(--color-gold);
  border-radius: 8px;
  border: 2px solid var(--color-linen);
}

.font-display {
  font-family: var(--font-display);
}

.reveal-line {
  overflow: hidden;
  display: block;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 768px) {
  .container {
    padding: 0 2.5rem;
  }
}

.eyebrow {
  color: var(--color-gold);
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: block;
}

.section-heading {
  max-width: 42rem;
  margin-bottom: 3.5rem;
}
@media (min-width: 768px) {
  .section-heading {
    margin-bottom: 5rem;
  }
}
.section-heading h2 {
  font-family: var(--font-display);
  color: var(--color-forest);
  font-size: 2.25rem;
  line-height: 1.15;
  margin: 0;
}
@media (min-width: 768px) {
  .section-heading h2 {
    font-size: 3.5rem;
  }
}

/* Botón con relleno dorado deslizante */
.btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-gold);
  padding: 0.9rem 2.2rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-forest);
  transition: color 0.4s ease;
  white-space: nowrap;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-gold);
  transform: translateX(-101%);
  transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
  z-index: -1;
}
.btn:hover::before {
  transform: translateX(0);
}
.btn-solid {
  background: var(--color-gold);
}
.btn-outline-light {
  border-color: rgba(245, 242, 235, 0.5);
  color: var(--color-linen);
}
.btn-outline-light:hover {
  border-color: var(--color-linen);
  background: rgba(245, 242, 235, 0.08);
}
.btn-outline-light::before {
  display: none;
}
.btn:disabled {
  opacity: 0.4;
  pointer-events: none;
}

.grain {
  position: relative;
}
.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Preloader ---------- */
.is-loading {
  overflow: hidden;
  height: 100%;
}
.preloader {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-forest);
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
.preloader-bg {
  position: absolute;
  inset: -10%;
  background-image: url("../images/foto_2.jpg");
  background-size: cover;
  background-position: center;
  filter: blur(28px) brightness(0.45) saturate(1.15);
  transform: scale(1.15);
}
.preloader-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 45%, rgba(30, 53, 47, 0.35), rgba(30, 53, 47, 0.85) 75%);
}
.preloader-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.preloader-logo {
  width: 5.5rem;
  height: 5.5rem;
  object-fit: contain;
  border-radius: 50%;
  padding: 1.1rem;
  background: rgba(245, 242, 235, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.35), 0 0 40px rgba(212, 175, 55, 0.25);
  animation: preloaderPulse 2s ease-in-out infinite;
}
@media (min-width: 768px) {
  .preloader-logo {
    width: 7rem;
    height: 7rem;
  }
}
@keyframes preloaderPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.35), 0 0 40px rgba(212, 175, 55, 0.25);
  }
  50% {
    transform: scale(1.06);
    box-shadow: 0 0 0 14px rgba(212, 175, 55, 0), 0 0 55px rgba(212, 175, 55, 0.35);
  }
}
.preloader-bar {
  width: 9rem;
  height: 1px;
  background: rgba(245, 242, 235, 0.2);
  overflow: hidden;
}
.preloader-bar span {
  display: block;
  height: 100%;
  width: 40%;
  background: var(--color-gold);
  animation: preloaderBar 1.3s ease-in-out infinite;
}
@keyframes preloaderBar {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}
.preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .preloader-logo,
  .preloader-bar span {
    animation: none;
  }
}

/* ---------- Barra de progreso de scroll ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2.5px;
  width: 0%;
  z-index: 70;
  background: linear-gradient(90deg, var(--color-gold), #f1dfa8, var(--color-gold));
  background-size: 200% 100%;
  animation: scrollProgressShimmer 4s linear infinite;
  pointer-events: none;
}
@keyframes scrollProgressShimmer {
  0% { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-progress {
    animation: none;
  }
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 1.5rem 0;
  transition: all 0.5s ease;
}
.site-header.is-scrolled,
.site-header.is-menu-open {
  background: rgba(245, 242, 235, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(30, 53, 47, 0.08);
  padding: 0.75rem 0;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.brand img {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
  border-radius: 50%;
}
.brand span {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--color-linen);
  transition: color 0.4s ease;
}
.site-header.is-scrolled .brand span,
.site-header.is-menu-open .brand span {
  color: var(--color-forest);
}

.main-nav {
  display: none;
  align-items: center;
  gap: 1.75rem;
}
@media (min-width: 1024px) {
  .main-nav {
    display: flex;
  }
}
@media (min-width: 1180px) {
  .main-nav {
    gap: 2.5rem;
  }
}
.main-nav button {
  position: relative;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--color-linen);
  transition: color 0.3s ease;
  padding-bottom: 0.35rem;
}
.site-header.is-scrolled .main-nav button {
  color: var(--color-forest);
}
.main-nav button:hover {
  color: var(--color-gold);
}
.main-nav button::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-gold-bright));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s cubic-bezier(0.65, 0, 0.35, 1);
}
.main-nav button:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.header-actions .btn {
  display: none;
}
@media (min-width: 768px) {
  .header-actions .btn {
    display: inline-flex;
  }
}
.site-header:not(.is-scrolled) .header-actions .btn {
  border-color: var(--color-linen);
  color: var(--color-linen);
}

.burger {
  position: relative;
  z-index: 60;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
@media (min-width: 1024px) {
  .burger {
    display: none;
  }
}
.burger span {
  display: block;
  width: 1.75rem;
  height: 1.5px;
  background: var(--color-linen);
  transition: all 0.3s ease;
}
.site-header.is-scrolled .burger span {
  background: var(--color-forest);
}
.site-header.is-menu-open .burger span {
  background: var(--color-linen);
}
.site-header.is-menu-open .burger span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.site-header.is-menu-open .burger span:nth-child(2) {
  transform: translateY(-7.5px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  height: 100dvh;
  z-index: 40;
  background: var(--color-forest);
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(0.4rem, 2vh, 0.75rem);
  clip-path: circle(0% at 100% 0%);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: max(6.5rem, calc(env(safe-area-inset-top, 0px) + 5.5rem)) 1.5rem
    max(2.5rem, calc(env(safe-area-inset-bottom, 0px) + 2rem));
}
.mobile-menu.is-open {
  display: flex;
}
.mobile-menu .menu-link-wrap {
  overflow: hidden;
  flex: none;
}
.mobile-menu button.menu-link {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 8vh, 2.5rem);
  color: var(--color-linen);
  padding: 0.25rem 0;
  transform: translateY(100%);
  opacity: 0;
}
@media (min-width: 768px) {
  .mobile-menu button.menu-link {
    font-size: clamp(2.5rem, 8vh, 3.75rem);
  }
}
.mobile-menu button.menu-link:hover {
  color: var(--color-gold);
}
.mobile-menu .btn {
  flex: none;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  border-color: var(--color-gold);
  color: var(--color-gold);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100svh;
  width: 100%;
  overflow: hidden;
  background: var(--color-forest);
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
  transform: scale(1.25);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(30, 53, 47, 0.6),
    rgba(30, 53, 47, 0.2),
    rgba(30, 53, 47, 0.7)
  );
}
.hero-content {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1.5rem;
}
.hero-content .eyebrow {
  color: var(--color-linen);
}
.hero-content h1 {
  font-family: var(--font-display);
  color: var(--color-linen);
  line-height: 0.95;
  margin: 0;
}
@keyframes heroLineReveal {
  from {
    transform: translateY(120%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.hero-line {
  display: inline-block;
  opacity: 0;
  animation: heroLineReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}
.hero-tagline.hero-line {
  animation-delay: 0.65s;
}
.hero-title-line {
  font-size: clamp(2.25rem, 11vw, 6.5rem);
}
.hero-tagline {
  font-size: clamp(1.1rem, 4.5vw, 2.1rem);
  font-style: italic;
  font-weight: 300;
  margin-top: 0.5rem;
  display: inline-block;
}
@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero-sub {
  margin-top: 1.75rem;
  max-width: 34rem;
  color: rgba(245, 242, 235, 0.85);
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0;
  animation: heroFadeUp 0.9s ease-out 1.1s both;
}
.hero-ctas {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  opacity: 0;
  animation: heroFadeUp 0.9s ease-out 1.3s both;
}
@media (min-width: 640px) {
  .hero-ctas {
    flex-direction: row;
  }
}
.is-loading .hero-line,
.is-loading .hero-sub,
.is-loading .hero-ctas {
  animation-play-state: paused;
}
.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(245, 242, 235, 0.8);
}
.scroll-cue span {
  font-size: 0.625rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.scroll-cue-track {
  width: 1px;
  height: 3.5rem;
  background: rgba(245, 242, 235, 0.4);
  position: relative;
  overflow: hidden;
}
.scroll-cue-track::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: var(--color-gold);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(200%); }
}

/* ---------- Fireflies (ambiente hero) ---------- */
.firefly-field {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  overflow: hidden;
  mix-blend-mode: screen;
}
.firefly {
  position: absolute;
  left: var(--fx, 50%);
  top: var(--fy, 50%);
  width: var(--fs, 4px);
  height: var(--fs, 4px);
  border-radius: 50%;
  background: var(--color-gold-bright);
  box-shadow: 0 0 8px 2px rgba(212, 175, 55, 0.8), 0 0 18px 6px rgba(212, 175, 55, 0.3);
  opacity: 0;
  animation: fireflyFloat var(--fd, 14s) ease-in-out infinite, fireflyTwinkle var(--ftd, 5s) ease-in-out infinite;
  animation-delay: var(--fdelay, 0s), var(--fdelay, 0s);
}
@keyframes fireflyFloat {
  0% { transform: translate(0, 0); }
  25% { transform: translate(var(--fmx, 24px), calc(var(--fmy, -18px) * -1)); }
  50% { transform: translate(calc(var(--fmx, 24px) * -0.6), var(--fmy, -18px)); }
  75% { transform: translate(var(--fmx, 24px), var(--fmy, -18px)); }
  100% { transform: translate(0, 0); }
}
@keyframes fireflyTwinkle {
  0%, 100% { opacity: 0; }
  50% { opacity: var(--fo, 0.75); }
}
@media (prefers-reduced-motion: reduce) {
  .firefly-field {
    display: none;
  }
}

/* ---------- Interacciones premium: magnetismo e inclinación ---------- */
.btn {
  transform: translate3d(0, 0, 0);
}
.tilt-card {
  transform-style: preserve-3d;
  will-change: transform;
}

/* ---------- Intro ---------- */
.intro {
  background: var(--color-linen);
  padding: 7rem 0 10rem;
  text-align: center;
}
@media (min-width: 768px) {
  .intro {
    padding: 10rem 0;
  }
}
.intro-text {
  max-width: 56rem;
  margin: 0 auto;
  font-family: var(--font-display);
  color: var(--color-forest);
  font-size: 1.75rem;
  line-height: 1.3;
}
@media (min-width: 768px) {
  .intro-text {
    font-size: 3rem;
  }
}
.intro-text em {
  color: var(--color-gold-bright);
  font-style: italic;
}

/* ---------- Spaces (grid asimétrica) ---------- */
.spaces {
  background: var(--color-linen);
  padding: 6rem 0 8rem;
}
.spaces-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 768px) {
  .spaces-grid {
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
  }
}
.space-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
@media (min-width: 768px) {
  .space-card {
    aspect-ratio: 4 / 3;
  }
  .space-card.span-lg {
    grid-column: span 7;
  }
  .space-card.span-sm {
    grid-column: span 5;
  }
}
.space-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s ease;
}
.space-card:hover img {
  transform: scale(1.08);
}
.space-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30, 53, 47, 0.85), rgba(30, 53, 47, 0.1) 60%, transparent);
}
.space-card-body {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem;
}
@media (min-width: 768px) {
  .space-card-body {
    padding: 2.25rem;
  }
}
.space-card-rule {
  width: 2rem;
  height: 2px;
  background: var(--color-gold);
  margin-bottom: 1rem;
  transition: width 0.5s ease;
}
.space-card:hover .space-card-rule {
  width: 3.5rem;
}
.space-card-body h3 {
  font-family: var(--font-display);
  color: var(--color-linen);
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
}
@media (min-width: 768px) {
  .space-card-body h3 {
    font-size: 1.85rem;
  }
}
.space-card-body p {
  color: rgba(245, 242, 235, 0.8);
  font-size: 0.875rem;
  line-height: 1.5;
  max-width: 24rem;
  margin: 0 0 1.25rem;
}
.space-card-body .btn {
  align-self: flex-start;
  border-color: rgba(245, 242, 235, 0.6);
  color: var(--color-linen);
  padding: 0.6rem 1.5rem;
  font-size: 0.7rem;
}

/* ---------- Comodidades ---------- */
.amenities {
  background: var(--color-linen);
  padding: 0 0 8rem;
}
.amenities-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .amenities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .amenities-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.amenity-card {
  background: var(--color-linen-dark);
  padding: 2rem 1.75rem;
}
.amenity-icon {
  display: block;
  font-size: 2rem;
  margin-bottom: 1rem;
}
.amenity-card h3 {
  font-family: var(--font-display);
  color: var(--color-forest);
  font-size: 1.2rem;
  margin: 0 0 0.35rem;
}
.amenity-card p {
  color: rgba(30, 53, 47, 0.65);
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0;
}
.amenities-note {
  margin: 2.5rem 0 0;
  color: rgba(30, 53, 47, 0.6);
  font-size: 0.9rem;
  max-width: 40rem;
}

/* ---------- Experiencias (bento) ---------- */
.experiences {
  background: var(--color-linen-dark);
  padding: 6rem 0 8rem;
}
.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: 220px;
  gap: 1rem;
}
@media (min-width: 768px) {
  .bento-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 240px;
    gap: 1.25rem;
  }
  .tile-2x2 { grid-column: span 2; grid-row: span 2; }
  .tile-1x2 { grid-column: span 1; grid-row: span 2; }
  .tile-2x1 { grid-column: span 2; grid-row: span 1; }
  .tile-1x1 { grid-column: span 1; grid-row: span 1; }
}
.bento-tile {
  position: relative;
  overflow: hidden;
}
.bento-tile.photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s ease;
}
.bento-tile.photo:hover img {
  transform: scale(1.1);
}
.bento-tile.photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30, 53, 47, 0.9), rgba(30, 53, 47, 0.2) 60%, transparent);
}
.bento-tile-body {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
}
.bento-tile-body h3 {
  font-family: var(--font-display);
  color: var(--color-linen);
  font-size: 1.35rem;
  margin: 0 0 0.25rem;
}
.bento-tile-body p {
  color: rgba(245, 242, 235, 0.75);
  font-size: 0.8rem;
  line-height: 1.5;
  margin: 0;
}
.bento-tile.icon {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--color-linen-dark);
  color: var(--color-forest);
}
.bento-tile.icon.dark {
  background: var(--color-forest);
  color: var(--color-linen);
}
.bento-tile.icon .tile-icon {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
}
.bento-tile.icon h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.25rem;
}
.bento-tile.icon p {
  font-size: 0.8rem;
  line-height: 1.5;
  margin: 0;
  opacity: 0.7;
}

/* ---------- Galería (scroll horizontal) ---------- */
.gallery-section {
  position: relative;
  background: var(--color-forest);
  overflow: hidden;
  height: 100svh;
  display: flex;
  flex-direction: column;
}
.gallery-heading {
  flex: none;
  z-index: 10;
  padding: 4rem 1.5rem 1.5rem;
}
@media (min-width: 768px) {
  .gallery-heading {
    padding: 5rem 2.5rem 2rem;
  }
}
.gallery-heading h2 {
  font-family: var(--font-display);
  color: var(--color-linen);
  font-size: 1.9rem;
  max-width: 34rem;
  margin: 0;
}
@media (min-width: 768px) {
  .gallery-heading h2 {
    font-size: 3rem;
  }
}
.gallery-track-wrap {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.gallery-track {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 2rem;
  padding: 0 10vw 0 1.5rem;
  will-change: transform;
}
@media (min-width: 768px) {
  .gallery-track {
    padding-left: 2.5rem;
    gap: 2rem;
  }
}
.gallery-item {
  position: relative;
  flex-shrink: 0;
  width: 78vw;
  height: 100%;
  overflow: hidden;
}
@media (min-width: 640px) {
  .gallery-item {
    width: 46vw;
  }
}
@media (min-width: 768px) {
  .gallery-item {
    width: 30vw;
  }
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30, 53, 47, 0.7), transparent 60%);
}
.gallery-caption {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  z-index: 2;
  color: rgba(245, 242, 235, 0.9);
  font-size: 0.9rem;
  font-family: var(--font-display);
  font-style: italic;
}

/* ---------- Booking CTA ---------- */
.booking-cta {
  position: relative;
  background: var(--color-forest);
  padding: 6rem 0 8rem;
  overflow: hidden;
  text-align: center;
}
.booking-cta-bg {
  position: absolute;
  inset: 0;
  opacity: 0.25;
  overflow: hidden;
}
.booking-cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.15);
}
.booking-cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--color-forest), rgba(30, 53, 47, 0.85), var(--color-forest));
}
.booking-cta-content {
  position: relative;
  z-index: 2;
  max-width: 48rem;
  margin: 0 auto;
}
.booking-cta-content h2 {
  font-family: var(--font-display);
  color: var(--color-linen);
  font-size: 2.25rem;
  line-height: 1.15;
  margin: 0 0 1.5rem;
}
@media (min-width: 768px) {
  .booking-cta-content h2 {
    font-size: 3.5rem;
  }
}
.booking-cta-content > p {
  color: rgba(245, 242, 235, 0.7);
  max-width: 32rem;
  margin: 0 auto 2.5rem;
}
.booking-cta-content .btn {
  padding: 1rem 3rem;
}

/* ---------- Ubicación ---------- */
.location {
  background: var(--color-linen);
  padding: 6rem 0;
}
.location-address {
  color: rgba(30, 53, 47, 0.6);
  font-size: 0.95rem;
  margin: -0.5rem 0 0;
  max-width: 34rem;
}
.location-map {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(30, 53, 47, 0.15);
  overflow: hidden;
}
@media (min-width: 768px) {
  .location-map {
    aspect-ratio: 21 / 8;
  }
}
.location-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(20%) contrast(1.05);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-forest);
  color: var(--color-linen);
  padding: 5rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
  .footer-grid .footer-brand {
    grid-column: span 2;
  }
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.footer-brand img {
  flex: none;
  height: 4.5rem;
  width: 4.5rem;
  object-fit: contain;
  border-radius: 50%;
}
.footer-brand p {
  color: rgba(245, 242, 235, 0.6);
  max-width: 24rem;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}
.footer-col p.eyebrow {
  margin-bottom: 1rem;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: rgba(245, 242, 235, 0.7);
}
.footer-col ul a:hover {
  color: var(--color-gold);
}
.footer-bottom {
  border-top: 1px solid rgba(245, 242, 235, 0.1);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(245, 242, 235, 0.4);
}
@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ---------- WhatsApp flotante ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 45;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
}
.whatsapp-float:hover {
  transform: scale(1.05);
}
.whatsapp-float svg {
  width: 1.75rem;
  height: 1.75rem;
  fill: currentColor;
}

/* ---------- Modal de reserva ---------- */
.booking-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(30, 53, 47, 0.7);
  backdrop-filter: blur(4px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  opacity: 0;
}
.booking-overlay.is-open {
  display: flex;
}
@media (min-width: 768px) {
  .booking-overlay {
    align-items: center;
    padding: 1.5rem;
  }
}
.booking-panel {
  position: relative;
  background: var(--color-linen);
  width: 100%;
  min-height: 100svh;
  overflow-y: auto;
}
@media (min-width: 768px) {
  .booking-panel {
    max-width: 56rem;
    min-height: 0;
    max-height: 90vh;
    margin: 2.5rem 0;
  }
}
.booking-close {
  position: sticky;
  top: 1rem;
  float: right;
  margin-right: 1rem;
  z-index: 20;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--color-forest);
  color: var(--color-linen);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.booking-close:hover {
  background: var(--color-gold);
  color: var(--color-forest);
}
.booking-body {
  padding: 1.5rem;
  clear: both;
}
@media (min-width: 768px) {
  .booking-body {
    padding: 2.5rem;
  }
}
.booking-body > .eyebrow {
  margin-bottom: 0.5rem;
}
.booking-title {
  font-family: var(--font-display);
  color: var(--color-forest);
  font-size: 1.85rem;
  margin: 0 0 2rem;
}
@media (min-width: 768px) {
  .booking-title {
    font-size: 2.25rem;
  }
}
.booking-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 768px) {
  .booking-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}
.booking-col-right {
  display: flex;
  flex-direction: column;
}
@media (min-width: 768px) {
  .booking-col-right {
    position: sticky;
    top: 0;
  }
}
.field-label {
  color: var(--color-forest);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

/* Selector de plan */
.plan-toggle-group {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.plan-toggle {
  flex: 1;
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid rgba(30, 53, 47, 0.3);
  color: rgba(30, 53, 47, 0.6);
  transition: all 0.2s ease;
}
.plan-toggle.active {
  background: var(--color-forest);
  color: var(--color-linen);
  border-color: var(--color-forest);
}
.plan-info {
  color: rgba(30, 53, 47, 0.5);
  font-size: 0.75rem;
  line-height: 1.5;
  margin: 0 0 2rem;
}

/* Calendario propio */
.arai-calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.arai-calendar-nav button {
  width: 2rem;
  height: 2rem;
  color: var(--color-gold);
  font-size: 1.1rem;
}
.arai-calendar-nav h4 {
  font-family: var(--font-display);
  color: var(--color-forest);
  font-size: 1.1rem;
  margin: 0;
  text-transform: capitalize;
}
.arai-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  text-align: center;
}
.arai-calendar-grid .dow {
  font-size: 0.7rem;
  color: rgba(30, 53, 47, 0.45);
  padding: 0.4rem 0;
  text-transform: uppercase;
}
.arai-calendar-grid .day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--color-forest);
  border-radius: 999px;
  cursor: pointer;
}
.arai-calendar-grid .day.empty {
  cursor: default;
}
.arai-calendar-grid .day.disabled {
  color: rgba(30, 53, 47, 0.25);
  cursor: not-allowed;
}
.arai-calendar-grid .day:not(.disabled):not(.empty):hover {
  background: rgba(197, 160, 89, 0.2);
}
.arai-calendar-grid .day.today {
  color: var(--color-gold);
  font-weight: 600;
}
.arai-calendar-grid .day.in-range {
  background: rgba(30, 53, 47, 0.1);
  border-radius: 0;
}
.arai-calendar-grid .day.range-start,
.arai-calendar-grid .day.range-end {
  background: var(--color-forest);
  color: var(--color-linen);
}
.arai-calendar-grid .day.range-start {
  border-radius: 999px 0 0 999px;
}
.arai-calendar-grid .day.range-end {
  border-radius: 0 999px 999px 0;
}
.arai-calendar-month {
  margin-bottom: 1.5rem;
}

/* Contadores de huéspedes */
.guest-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(30, 53, 47, 0.1);
}
.guest-row .label {
  color: var(--color-forest);
  font-size: 0.9rem;
  font-weight: 500;
}
.guest-row .sublabel {
  color: rgba(30, 53, 47, 0.5);
  font-size: 0.75rem;
}
.stepper {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.stepper button {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1px solid rgba(30, 53, 47, 0.3);
  color: var(--color-forest);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.stepper button:hover:not(:disabled) {
  border-color: var(--color-gold);
  color: var(--color-gold);
}
.stepper button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.stepper .value {
  width: 1.25rem;
  text-align: center;
  color: var(--color-forest);
  font-weight: 500;
}

/* Adicionales (karaoke, etc.) */
.addon-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(30, 53, 47, 0.1);
  gap: 1rem;
}
.addon-toggle {
  flex: none;
  padding: 0.5rem 1.25rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid rgba(30, 53, 47, 0.3);
  color: rgba(30, 53, 47, 0.6);
  transition: all 0.2s ease;
  white-space: nowrap;
}
.addon-toggle.active {
  background: var(--color-gold);
  color: var(--color-forest);
  border-color: var(--color-gold);
}

/* Mascota */
.pet-row {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(30, 53, 47, 0.1);
}
.pet-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}
.pet-toggle-group {
  display: flex;
  gap: 0.5rem;
}
.pet-toggle-group button {
  padding: 0.35rem 1rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid rgba(30, 53, 47, 0.3);
  color: rgba(30, 53, 47, 0.6);
}
.pet-toggle-group button.active-no {
  background: var(--color-forest);
  color: var(--color-linen);
  border-color: var(--color-forest);
}
.pet-toggle-group button.active-yes {
  background: var(--color-gold);
  color: var(--color-forest);
  border-color: var(--color-gold);
}
.pet-note {
  color: rgba(30, 53, 47, 0.5);
  font-size: 0.75rem;
  margin: 0;
}

/* Método de pago */
.payment-section {
  padding: 1rem 0;
}
.payment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.payment-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0.5rem;
  border: 1px solid rgba(30, 53, 47, 0.2);
  color: rgba(30, 53, 47, 0.6);
  text-align: center;
}
.payment-option .icon {
  font-size: 1.5rem;
}
.payment-option span.txt {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.2;
}
.payment-option.active {
  border-color: var(--color-gold);
  background: rgba(197, 160, 89, 0.1);
  color: var(--color-forest);
}

/* Resumen de precio */
.price-summary {
  background: var(--color-forest);
  color: var(--color-linen);
  padding: 1.5rem;
  margin-top: 0.5rem;
}
.price-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(245, 242, 235, 0.7);
  margin-bottom: 0.5rem;
}
.price-rule {
  height: 1px;
  background: rgba(245, 242, 235, 0.2);
  margin: 1rem 0;
}
.price-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.price-total-row .label {
  font-family: var(--font-display);
  font-size: 1.1rem;
}
.price-total-row .value {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--color-gold);
}
@media (min-width: 768px) {
  .price-total-row .value {
    font-size: 1.9rem;
  }
}
.booking-submit {
  margin-top: 1.25rem;
  width: 100%;
}
.booking-hint {
  color: rgba(30, 53, 47, 0.4);
  font-size: 0.75rem;
  text-align: center;
  margin-top: 0.5rem;
}

/* Ticket */
.ticket-wrap {
  padding: 0.5rem 0;
}
.ticket {
  position: relative;
  background: var(--color-linen);
  color: var(--color-forest);
  margin: 0 auto;
  max-width: 28rem;
  box-shadow: 0 20px 50px -15px rgba(30, 53, 47, 0.4);
  clip-path: polygon(
    0% 4px, 2% 0%, 4% 4px, 6% 0%, 8% 4px, 10% 0%, 12% 4px, 14% 0%, 16% 4px, 18% 0%,
    20% 4px, 22% 0%, 24% 4px, 26% 0%, 28% 4px, 30% 0%, 32% 4px, 34% 0%, 36% 4px, 38% 0%,
    40% 4px, 42% 0%, 44% 4px, 46% 0%, 48% 4px, 50% 0%, 52% 4px, 54% 0%, 56% 4px, 58% 0%,
    60% 4px, 62% 0%, 64% 4px, 66% 0%, 68% 4px, 70% 0%, 72% 4px, 74% 0%, 76% 4px, 78% 0%,
    80% 4px, 82% 0%, 84% 4px, 86% 0%, 88% 4px, 90% 0%, 92% 4px, 94% 0%, 96% 4px, 98% 0%,
    100% 4px, 100% 100%, 0% 100%
  );
}
.ticket-inner {
  border: 2px dashed rgba(30, 53, 47, 0.25);
  margin: 0.75rem;
}
.ticket-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.5rem 0;
}
.ticket-head .brand-mini {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.ticket-head .brand-mini img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
}
.ticket-head .brand-mini p {
  margin: 0;
}
.ticket-head .brand-mini .name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  line-height: 1;
}
.ticket-head .brand-mini .sub {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(30, 53, 47, 0.5);
}
.ticket-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.75rem;
  background: var(--color-forest);
  color: var(--color-linen);
  padding: 0.35rem 0.6rem;
}
.ticket-divider {
  margin: 1.25rem 1.5rem;
  border-top: 1px dashed rgba(30, 53, 47, 0.25);
}
.ticket-data {
  padding: 0 1.5rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8rem;
}
.ticket-data-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.ticket-data-grid .col-2 {
  grid-column: span 2;
}
.ticket-data-grid .k {
  color: rgba(30, 53, 47, 0.5);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.15rem;
}
.ticket-data-grid p {
  margin: 0;
}
.ticket-fares {
  border-top: 1px dashed rgba(30, 53, 47, 0.25);
  padding-top: 0.75rem;
}
.ticket-fares .row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}
.ticket-fares .row .k {
  color: rgba(30, 53, 47, 0.6);
}
.ticket-total {
  border-top: 2px solid rgba(30, 53, 47, 0.25);
  padding-top: 0.75rem;
  margin-top: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.ticket-total .k {
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
}
.ticket-total .v {
  font-size: 1.25rem;
  color: var(--color-gold-bright);
  font-weight: 600;
}
.ticket-actions {
  padding: 1.25rem 1.5rem 1.5rem;
}
.ticket-whatsapp-btn {
  width: 100%;
  background: #25d366;
  color: #fff;
  padding: 0.9rem;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: filter 0.2s ease;
}
.ticket-whatsapp-btn:hover {
  filter: brightness(0.95);
}
.ticket-back-btn {
  width: 100%;
  margin-top: 0.75rem;
  color: rgba(30, 53, 47, 0.5);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.ticket-back-btn:hover {
  color: var(--color-forest);
}

.hidden {
  display: none !important;
}
