/* ========== HERO SECTION ========== */
.hero {
  position: relative; width: 100%; height: 100vh;
  overflow: hidden; background: #060e09;
}
.hero-slides { position: absolute; inset: 0; }

.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease;
  will-change: transform, opacity;
}
/* Cinematic Ken Burns: zoom muy sutil + drift mínimo, con cap de escala */
.hero-slide.active {
  opacity: 1;
  animation: kenBurns 12s ease-out forwards;
}
.hero-slide {
  /* Cap absoluto de transformación para evitar zoom excesivo si algo se acumula */
  transform-origin: center center;
  max-width: 100%;
}
@keyframes kenBurns {
  0%   { transform: scale(1.0)   translateX(0); }
  100% { transform: scale(1.045) translateX(-0.6%); }
}
/* Si la slide no está activa, reset duro de transform (evita estados zumbidos al re-entrar a home) */
.hero-slide:not(.active) {
  transform: scale(1) translateX(0) !important;
  animation: none !important;
}
/* Soft cinematic gradient overlay */
.hero-slide::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.20) 0%,
    rgba(0,0,0,0.15) 45%,
    rgba(0,0,0,0.55) 100%
  );
}

/* Hero content — reduced overlay area, more photo visible */
.hero-content {
  position: absolute; top: 50%; left: 52px;
  transform: translateY(-45%);
  z-index: 10; max-width: 580px;
}
.hero-subtitle {
  font-size: 10px; letter-spacing: 0.38em;
  color: rgba(245,240,220,0.75);
  text-transform: uppercase; margin-bottom: 18px;
  font-weight: 400; font-family: 'Jost', sans-serif;
}
.hero-title {
  font-family: 'Playfair Display', serif;
  /* 25-30% smaller than before (was clamp 54-92px) */
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 600; line-height: 1.0;
  color: #f5f0dc;
  margin-bottom: 32px;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  text-shadow: 0 2px 18px rgba(0,0,0,0.35);
}
.hero-title span { display: block; }

/* Hero tagline — italic, elegant */
.hero-tagline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(14px, 1.8vw, 18px);
  font-style: italic;
  font-weight: 400;
  color: rgba(245,240,220,0.7);
  margin-bottom: 32px;
  letter-spacing: 0.02em;
}

/* RESERVAR button — transparent default, green hover */
.hero-btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 14px 28px;
  border: 1px solid rgba(245,240,220,0.65);
  color: #f5f0dc;
  font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase; font-weight: 500;
  font-family: 'Jost', sans-serif;
  background: transparent;
  cursor: pointer;
  transition: background 0.45s ease, border-color 0.45s ease, color 0.45s ease;
  text-decoration: none;
}
.hero-btn:hover {
  background: #1a3326;
  border-color: #1a3326;
  color: #f5f0dc;
}
.hero-btn-arrow {
  font-size: 15px;
  display: inline-block;
  transform: rotate(-45deg);
  transition: transform 0.3s ease;
}
.hero-btn:hover .hero-btn-arrow { transform: rotate(-45deg) translate(2px, -2px); }

/* Slide counter */
.hero-counter {
  position: absolute; right: 52px; top: 50%;
  transform: translateY(-50%);
  z-index: 10; display: flex; align-items: baseline; gap: 3px;
}
.hero-counter-current {
  font-size: 38px; font-weight: 200; color: #f5f0dc;
  font-family: 'Jost', sans-serif; line-height: 1;
}
.hero-counter-sep {
  font-size: 13px; color: rgba(245,240,220,0.4);
  font-family: 'Jost', sans-serif; margin: 0 2px;
}
.hero-counter-total {
  font-size: 13px; color: rgba(245,240,220,0.4);
  font-family: 'Jost', sans-serif;
}

/* Dot indicators */
.hero-dots {
  position: absolute; bottom: 44px; left: 50%;
  transform: translateX(-50%);
  z-index: 10; display: flex; align-items: center; gap: 14px;
}
.hero-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(245,240,220,0.3);
  cursor: pointer; transition: all 0.4s ease;
  border: 1.5px solid transparent;
}
.hero-dot.active {
  background: transparent;
  border-color: rgba(245,240,220,0.8);
  width: 11px; height: 11px;
}



/* ========== HOME SECTIONS ========== */
/* (kemay-section removed in Mejora 6 — suites go directly after hero) */

/* Inline RESERVAR link */
.section-link {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: 28px; padding: 14px 28px;
  border: 1px solid rgba(26,51,38,0.4);
  color: #1a3326; font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase; font-weight: 500;
  font-family: 'Jost', sans-serif;
  background: transparent; cursor: pointer;
  transition: background 0.4s, color 0.4s, border-color 0.4s;
  text-decoration: none;
}
.section-link:hover { background: #1a3326; color: #f5f0dc; border-color: #1a3326; }



/* ========== AMENITIES EDITORIAL SPLIT ========== */
.amenities-editorial {
  background: #f5f0dc;
}

/* Header con el título "AMENITIES" */
.amenities-editorial-header {
  padding: 72px 64px 52px;
  border-bottom: 1px solid rgba(26,51,38,0.1);
}
.am-header-tag {
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: rgba(26,51,38,0.42);
  font-weight: 400;
}

/* ——— CADA FILA EDITORIAL ——— */
.am-row {
  display: flex;
  align-items: stretch;
  min-height: 56vh;
  cursor: pointer;
  overflow: hidden;
  background: #f5f0dc;
  border-bottom: 1px solid rgba(26,51,38,0.08);
  position: relative;
}
.am-row--dark {
  background: #1a3326;
  border-bottom-color: rgba(245,240,220,0.08);
}
/* Fila inversa: texto izquierda, imagen derecha */
.am-row--reverse {
  flex-direction: row-reverse;
}

/* ——— IMAGEN ——— */
.am-img-wrap {
  flex: 0 0 62%;
  position: relative;
  overflow: hidden;
  /* Wipe desde el exterior hacia el centro */
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.05s cubic-bezier(0.76, 0, 0.24, 1);
}
.am-row--reverse .am-img-wrap {
  clip-path: inset(0 0 0 100%);
}
.am-row.am-in .am-img-wrap {
  clip-path: inset(0 0% 0 0);
}
.am-img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transform: scale(1.06);
  transition: transform 1.4s cubic-bezier(0.215, 0.61, 0.355, 1);
}
.am-row.am-in .am-img      { transform: scale(1.0); }
.am-row:hover .am-img      { transform: scale(1.04); }

/* ——— TEXTO ——— */
.am-text-wrap {
  flex: 0 0 38%;
  display: flex;
  align-items: center;
  padding: 56px 64px;
}
.am-inner { width: 100%; }

/* Número grande y fantasmal */
.am-num {
  font-family: 'Jost', sans-serif;
  font-size: clamp(52px, 6vw, 88px);
  font-weight: 100;
  line-height: 1;
  display: block;
  margin-bottom: 22px;
  color: rgba(26,51,38,0.10);
  /* Reveal animation */
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s ease 0.05s, transform 0.75s ease 0.05s;
}
.am-row--dark .am-num { color: rgba(245,240,220,0.10); }
.am-row.am-in .am-num { opacity: 1; transform: translateY(0); }

/* Línea dorada que crece */
.am-divider {
  width: 0;
  height: 1px;
  background: #c9a96e;
  margin-bottom: 26px;
  transition: width 0.75s cubic-bezier(0.215, 0.61, 0.355, 1) 0.22s;
}
.am-row.am-in .am-divider { width: 44px; }

/* Nombre en Playfair */
.am-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(30px, 3.5vw, 52px);
  font-weight: 500;
  color: #1a3326;
  line-height: 1.1;
  margin-bottom: 14px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease 0.32s, transform 0.65s ease 0.32s;
}
.am-row--dark .am-name { color: #f5f0dc; }
.am-row.am-in .am-name { opacity: 1; transform: translateY(0); }

/* Tag (arriba del nombre) */
.am-sub {
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(26,51,38,0.55);
  margin-bottom: 14px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease 0.18s, transform 0.6s ease 0.18s;
}
.am-row--dark .am-sub { color: rgba(245,240,220,0.55); }
.am-row.am-in .am-sub { opacity: 1; transform: translateY(0); }

/* Descripción */
.am-desc {
  font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  font-size: clamp(16px, 1.35vw, 19px);
  font-style: italic;
  line-height: 1.6;
  color: rgba(26,51,38,0.72);
  max-width: 440px;
  margin: 0 0 36px 0;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.65s ease 0.46s, transform 0.65s ease 0.46s;
}
.am-row--dark .am-desc { color: rgba(245,240,220,0.78); }
.am-row.am-in .am-desc { opacity: 1; transform: translateY(0); }

/* CTA tipo "Descubrí ↗" */
.am-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #1a3326;
  border-bottom: 1px solid rgba(26,51,38,0.28);
  padding-bottom: 5px;
  cursor: pointer;
  /* Reveal */
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease 0.52s, transform 0.6s ease 0.52s,
              border-color 0.32s ease, color 0.32s ease;
}
.am-row--dark .am-cta {
  color: #f5f0dc;
  border-bottom-color: rgba(245,240,220,0.28);
}
.am-row.am-in .am-cta { opacity: 1; transform: translateY(0); }
.am-row:hover .am-cta { border-color: #c9a96e; color: #c9a96e; }

.am-cta-arrow {
  display: inline-block;
  transform: rotate(-45deg);
  font-size: 15px;
  transition: transform 0.3s ease;
}
.am-row:hover .am-cta-arrow {
  transform: rotate(-45deg) translate(3px,-3px);
}

/* ——— RESPONSIVE ——— */
@media (max-width: 960px) {
  .am-row, .am-row--reverse {
    flex-direction: column;
    min-height: auto;
  }
  .am-img-wrap {
    flex: none;
    height: 54vw;
    min-height: 260px;
    clip-path: inset(0 0 100% 0);
  }
  .am-row--reverse .am-img-wrap {
    clip-path: inset(0 0 100% 0);
    order: -1;
  }
  .am-row.am-in .am-img-wrap {
    clip-path: inset(0 0 0% 0);
  }
  .am-text-wrap { flex: none; padding: 40px 36px; }
  .amenities-editorial-header { padding: 52px 36px 40px; }
}
@media (max-width: 600px) {
  .am-img-wrap { height: 66vw; min-height: 220px; }
  .am-text-wrap { padding: 32px 24px; }
  .amenities-editorial-header { padding: 44px 24px 32px; }
}




/* ========== VIDEO BAND (Home: Suites → Amenities) ========== */
.video-band {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  height: 65vh;
  min-height: 420px;
  max-height: 780px;
  overflow: hidden;
  background: #22372B;
}
.video-band-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
@media (max-width: 768px) {
  .video-band { height: 52vh; min-height: 320px; }
}

/* ==========================================================================
   AMENITIES — HERO NOCTURNO (foto vertical pileta + texto editorial)
   ========================================================================== */
.am-hero-night {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: #22372B;
  color: #FFFFE3;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  min-height: 88vh;
  overflow: hidden;
}
.am-hero-night-text {
  padding: 96px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #1a2c22;
}
.am-hero-night-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 5px;
  font-weight: 600;
  color: rgba(255,255,227,0.55);
  text-transform: uppercase;
  margin: 0 0 28px 0;
}
.am-hero-night-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 4.4vw, 60px);
  line-height: 1.08;
  font-weight: 400;
  color: #FFFFE3;
  letter-spacing: -0.5px;
  margin: 0 0 36px 0;
}
.am-hero-night-divider {
  width: 48px;
  height: 1px;
  background: rgba(255,255,227,0.4);
  margin: 0 0 32px 0;
}
.am-hero-night-body {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255,255,227,0.85);
  max-width: 460px;
  margin: 0 0 36px 0;
  font-weight: 400;
}
.am-hero-night-tag {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 2.5px;
  font-weight: 500;
  color: rgba(255,255,227,0.5);
  text-transform: uppercase;
  margin: 0;
}
.am-hero-night-img {
  position: relative;
  overflow: hidden;
}
.am-hero-night-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 6s cubic-bezier(.2,.6,.2,1);
  transform: scale(1.02);
}
.am-hero-night:hover .am-hero-night-img img { transform: scale(1.06); }
.am-hero-night-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(34,55,43,0.25) 0%, transparent 30%);
  pointer-events: none;
}

/* Reveal sutil cuando entra en viewport */
.am-hero-night-text > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(.2,.6,.2,1), transform 0.9s cubic-bezier(.2,.6,.2,1);
}
.am-hero-night.is-visible .am-hero-night-text > *:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.05s; }
.am-hero-night.is-visible .am-hero-night-text > *:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.20s; }
.am-hero-night.is-visible .am-hero-night-text > *:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.35s; }
.am-hero-night.is-visible .am-hero-night-text > *:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.45s; }
.am-hero-night.is-visible .am-hero-night-text > *:nth-child(5) { opacity: 1; transform: translateY(0); transition-delay: 0.55s; }

@media (max-width: 960px) {
  .am-hero-night { grid-template-columns: 1fr; min-height: auto; }
  .am-hero-night-img { order: -1; aspect-ratio: 3 / 4; }
  .am-hero-night-text { padding: 56px 28px; }
  .am-hero-night-body { font-size: 15px; }
}
