/* =========================================================
   Apart Hotel AMTER — estilos
   ========================================================= */

:root {
  --verde-950: #142019;
  --verde-900: #1b2c22;
  --verde-800: #233a2c;
  --verde-700: #2c4a37;
  --verde-500: #47704c;
  --salvia-300: #a9bba0;
  --salvia-100: #e4eadf;

  --crema: #f7f3ea;
  --crema-2: #efe8da;
  --arena: #e3d7c1;
  --oro: #c79b5b;
  --oro-claro: #e6c995;
  --corten: #9a4a24;

  --tinta: #18201b;
  --texto: #3c4640;
  --suave: #6a736d;
  --linea: rgba(24, 32, 27, 0.12);
  --blanco: #fff;

  --f-display: "Fraunces", Georgia, "Times New Roman", serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 30px 60px -30px rgba(20, 32, 25, 0.45);
  --shadow-sm: 0 10px 30px -15px rgba(20, 32, 25, 0.35);

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(80px, 11vw, 150px);
  --header-h: 86px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--texto);
  background: var(--crema);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
ul { list-style: none; margin: 0; padding: 0; }
figure { margin: 0; }
h1, h2, h3, h4 { margin: 0; color: var(--tinta); font-weight: 400; }
p { margin: 0 0 1.1em; }

::selection { background: var(--verde-500); color: #fff; }

:focus-visible { outline: 2px solid var(--oro); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--verde-800); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 16px; }

.icon {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Tipografía ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  margin: 0 0 22px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--verde-500);
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; opacity: 0.6; }
.eyebrow--light { color: rgba(255, 255, 255, 0.85); }
.eyebrow--gold { color: var(--oro-claro); }

.h2 {
  font-family: var(--f-display);
  font-size: clamp(2.15rem, 4.3vw, 3.6rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
  font-weight: 350;
  font-variation-settings: "opsz" 120;
  margin-bottom: 28px;
}
.h2 em, .hero__title em { font-style: italic; font-weight: 300; color: var(--verde-500); }

.lead { font-size: clamp(1.15rem, 1.6vw, 1.3rem); line-height: 1.6; color: var(--tinta); }

.section { padding: var(--section) 0; }

.section-head { max-width: 760px; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head__text { color: var(--suave); font-size: 1.1rem; max-width: 560px; }
.section-head--split {
  max-width: none; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: end;
}
.section-head--split .h2 { margin-bottom: 0; }
.section-head--split .section-head__text { margin: 0; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  border-radius: 999px;
  font-size: 0.95rem; font-weight: 600; letter-spacing: 0.01em; white-space: nowrap;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.btn .icon { width: 1.15em; height: 1.15em; transition: transform 0.3s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover > .icon:last-child { transform: translateX(3px); }
.btn:active { transform: translateY(0); }
.btn--sm { min-height: 42px; padding: 0 22px; font-size: 0.88rem; }

.btn--primary { background: var(--verde-700); color: #fff; box-shadow: 0 12px 24px -14px rgba(44, 74, 55, 0.9); }
.btn--primary:hover { background: var(--verde-800); }
.btn--light { background: #fff; color: var(--verde-800); }
.btn--light:hover { background: var(--crema); }
.btn--ghost-light { border: 1px solid rgba(255, 255, 255, 0.55); color: #fff; backdrop-filter: blur(6px); background: rgba(255, 255, 255, 0.06); }
.btn--ghost-light:hover { background: rgba(255, 255, 255, 0.16); border-color: #fff; }
.btn--outline { border: 1px solid var(--linea); color: var(--tinta); background: transparent; }
.btn--outline:hover { border-color: var(--verde-700); color: var(--verde-700); }
.btn--gold { background: var(--oro); color: var(--verde-950); }
.btn--gold:hover { background: var(--oro-claro); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 10px; font-weight: 600; color: var(--verde-700);
  border-bottom: 1px solid currentColor; padding-bottom: 4px;
}
.link-arrow .icon { transition: transform 0.3s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center;
  color: #fff;
  transition: background 0.45s var(--ease), height 0.45s var(--ease), box-shadow 0.45s var(--ease), color 0.45s var(--ease);
}
.header::before {
  content: ""; position: absolute; inset: 0 0 -40px; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 18, 13, 0.45), transparent);
  transition: opacity 0.45s var(--ease);
}
.header.is-scrolled {
  height: 72px;
  background: rgba(247, 243, 234, 0.9);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  backdrop-filter: saturate(1.4) blur(16px);
  box-shadow: 0 1px 0 var(--linea);
  color: var(--tinta);
}
.header.is-scrolled::before { opacity: 0; }

.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { position: relative; display: block; flex: none; }
.logo__img { height: 46px; width: auto; transition: opacity 0.4s var(--ease), height 0.45s var(--ease); }
.logo__img--dark { position: absolute; inset: 0; opacity: 0; }
.is-scrolled .logo__img { height: 40px; }
.is-scrolled .logo__img--light { opacity: 0; }
.is-scrolled .logo__img--dark { opacity: 1; }

.nav__list { display: flex; gap: clamp(18px, 2.6vw, 38px); }
.nav__list a {
  position: relative; font-size: 0.93rem; font-weight: 500; letter-spacing: 0.01em; padding: 6px 0;
}
.nav__list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease);
}
.nav__list a:hover::after,
.nav__list a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__mobile-extra { display: none; }

.header__actions { display: flex; align-items: center; gap: 18px; }
.header__wa {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 32px; padding: 0 12px 0 9px; border-radius: 999px;
  font-size: 0.76rem; font-weight: 600; letter-spacing: 0.01em; white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.45); background: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.header__wa:hover { background: rgba(255, 255, 255, 0.18); border-color: #fff; }
.header__wa .icon { width: 15px; height: 15px; color: #25d366; }
.is-scrolled .header__wa { border-color: var(--linea); background: transparent; }
.is-scrolled .header__wa:hover { border-color: #25d366; }
.is-scrolled .header__cta { background: var(--verde-700); color: #fff; }
.is-scrolled .header__cta:hover { background: var(--verde-800); }

.burger { display: none; width: 44px; height: 44px; position: relative; border-radius: 50%; }
.burger span {
  position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor; border-radius: 2px;
  transition: transform 0.4s var(--ease), top 0.4s var(--ease);
}
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 26px; }
.menu-open .burger span:first-child { top: 21.5px; transform: rotate(45deg); }
.menu-open .burger span:last-child { top: 21.5px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  color: #fff; background: var(--verde-950); overflow: hidden;
}
.hero__slides { position: absolute; inset: 0; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.8s var(--ease); }
.hero__slide.is-active { opacity: 1; }
.hero__slide img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.12); transition: transform 9s linear;
}
.hero__slide.is-active img { transform: scale(1.02); }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(12, 20, 15, 0.4) 0%, rgba(12, 20, 15, 0) 28%, rgba(12, 20, 15, 0.2) 55%, rgba(12, 20, 15, 0.85) 100%),
    linear-gradient(90deg, rgba(12, 20, 15, 0.62) 0%, rgba(12, 20, 15, 0.25) 45%, rgba(12, 20, 15, 0) 70%);
}

.hero__content { position: relative; z-index: 2; padding-top: 140px; padding-bottom: clamp(150px, 20vh, 210px); }
.hero__title {
  font-family: var(--f-display);
  font-size: clamp(3rem, 7.4vw, 6.6rem);
  line-height: 0.98; letter-spacing: -0.025em; font-weight: 300;
  font-variation-settings: "opsz" 144;
  color: #fff; margin-bottom: 28px;
}
.hero__title em { color: var(--oro-claro); }
.hero__title, .hero__lead { text-shadow: 0 2px 30px rgba(0, 0, 0, 0.25); }
.hero__lead { max-width: 520px; font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: rgba(255, 255, 255, 0.88); margin-bottom: 38px; }
.hero__buttons { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Reserva ---------- */
.booking { position: relative; z-index: 6; margin-top: -84px; }
.booking__card {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  align-items: stretch;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 12px;
}
.field { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 12px 22px; border-right: 1px solid var(--linea); }
.field:nth-child(4) { border-right: 0; }
.field label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--suave); }
.field input,
.field select {
  width: 100%; border: 0; background: transparent; padding: 4px 0;
  font: 600 1rem var(--f-body); color: var(--tinta);
  outline: none; appearance: none; -webkit-appearance: none; cursor: pointer;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2347704c' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right center; padding-right: 20px;
}
.field input::-webkit-calendar-picker-indicator { opacity: 0.55; cursor: pointer; }
.field.is-invalid label { color: #b4472f; }
.booking__submit { min-height: 64px; border-radius: 14px; padding: 0 30px; }
.booking__note { grid-column: 1 / -1; margin: 10px 22px 4px; font-size: 0.85rem; color: var(--suave); }

/* ---------- Intro ---------- */
.intro { padding-top: clamp(90px, 10vw, 140px); }
.intro__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.intro__text p:not(.lead):not(.eyebrow) { color: var(--texto); }

.intro__media { position: relative; padding: 0 0 70px 0; }
.intro__img { position: relative; isolation: isolate; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--verde-900); }
.intro__img img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.06);
  transition: opacity 1s var(--ease), transform 4.5s ease-out;
}
.intro__img img.is-active { opacity: 1; transform: none; }
.intro__nav { position: absolute; z-index: 2; top: 16px; right: 16px; display: flex; gap: 8px; }
.intro__btn {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.92); color: var(--tinta); box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), background 0.3s;
}
.intro__btn:hover { background: #fff; transform: scale(1.06); }
.intro__btn .icon { width: 20px; height: 20px; }
.intro__img--main { width: 78%; margin-left: auto; aspect-ratio: 4 / 5; }
.intro__img--second {
  position: absolute; left: 0; bottom: 0; width: 46%; aspect-ratio: 4 / 5;
  border: 8px solid var(--crema);
}
.intro__badge {
  position: absolute; right: -14px; bottom: 120px;
  display: flex; align-items: center; gap: 14px;
  background: var(--verde-800); color: #fff; border-radius: 16px; padding: 16px 20px;
  font-size: 0.85rem; line-height: 1.35; box-shadow: var(--shadow-sm);
}
.intro__badge .icon { width: 30px; height: 30px; color: var(--oro-claro); }
.intro__badge strong { font-family: var(--f-display); font-weight: 400; font-size: 1.15rem; }

/* Barra de servicios: las líneas entre celdas son el fondo que asoma por el gap */
.features {
  display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 1px; padding: 1px;
  margin-top: clamp(48px, 6vw, 80px);
  background: var(--linea); border-radius: 16px; overflow: hidden;
}
.feature {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 18px 8px; text-align: center; background: #fbf9f5;
  font-size: 0.82rem; font-weight: 600; line-height: 1.3; color: var(--tinta);
}
.feature .icon { width: 22px; height: 22px; color: var(--verde-500); }

/* ---------- Cafetería museo ---------- */
.museum { background: var(--crema-2); }
.museum__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.museum__media { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 16px; align-items: end; }
.museum__img {
  position: relative; display: block; aspect-ratio: 3 / 4;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--verde-900);
}
.museum__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.museum__img:hover img { transform: scale(1.04); }
.museum__img--sign { aspect-ratio: 4 / 5; margin-bottom: clamp(36px, 6vw, 80px); }
.museum .eyebrow { color: var(--corten); }
.museum .h2 em { color: var(--corten); }
.museum .chips .icon { color: var(--corten); }

/* ---------- Banda ---------- */
.band { position: relative; color: #fff; padding: clamp(120px, 16vw, 220px) 0; overflow: hidden; isolation: isolate; }
.band__bg {
  position: absolute; inset: -12% 0; z-index: -2;
  background-size: cover; background-position: center 60%;
  will-change: transform;
}
.band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(16, 27, 20, 0.9) 0%, rgba(16, 27, 20, 0.65) 50%, rgba(16, 27, 20, 0.3) 100%);
}
.band__inner { max-width: calc(var(--container) + var(--gutter) * 2); }
.band__title { color: #fff; max-width: 640px; }
.band__title em { color: var(--oro-claro); }
.band__text { max-width: 560px; font-size: 1.15rem; color: rgba(255, 255, 255, 0.86); margin: 0; }

/* ---------- Habitaciones ---------- */
.rooms { background: var(--crema); }
.room {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(36px, 6vw, 90px); align-items: center;
}
.room + .room { margin-top: clamp(80px, 10vw, 140px); }
.room--reverse { grid-template-columns: 0.8fr 1.2fr; }
.room--reverse .room__media { order: 2; }

.carousel { position: relative; }
.carousel__track {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; border-radius: var(--radius);
  overscroll-behavior-x: contain;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__slide {
  flex: 0 0 calc(50% - 7px); aspect-ratio: 4 / 5; scroll-snap-align: start;
  border-radius: var(--radius); overflow: hidden; position: relative; background: var(--arena);
}
.carousel__slide img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.carousel__slide:hover img { transform: scale(1.04); }
.carousel__btn {
  position: absolute; top: 50%; translate: 0 -50%;
  width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.92); color: var(--tinta); box-shadow: var(--shadow-sm);
  transition: opacity 0.3s, transform 0.3s var(--ease), background 0.3s;
}
.carousel__btn:hover { background: #fff; transform: scale(1.06); }
.carousel__btn[disabled] { opacity: 0; pointer-events: none; }
.carousel__btn--prev { left: 16px; }
.carousel__btn--next { right: 16px; }
.carousel__count {
  position: absolute; left: 18px; bottom: 18px;
  background: rgba(20, 32, 25, 0.65); color: #fff; backdrop-filter: blur(6px);
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; padding: 6px 12px; border-radius: 999px;
  pointer-events: none;
}

.room__tag {
  display: inline-block; margin-bottom: 18px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--verde-700); background: var(--salvia-100); padding: 7px 14px; border-radius: 999px;
}
.room__title { font-family: var(--f-display); font-size: clamp(2.6rem, 4.5vw, 3.8rem); font-weight: 300; line-height: 1; margin-bottom: 18px; letter-spacing: -0.02em; }
.room__desc { font-size: 1.12rem; color: var(--texto); }
.room__facts { display: flex; flex-wrap: wrap; gap: 10px 26px; padding: 18px 0; margin: 8px 0 22px; border-top: 1px solid var(--linea); border-bottom: 1px solid var(--linea); }
.room__facts span { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--tinta); font-size: 0.95rem; }
.room__facts .icon { color: var(--verde-500); }
.amenities { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; margin-bottom: 34px; }
.amenities li { display: flex; align-items: center; gap: 12px; font-size: 0.95rem; }
.amenities .icon { color: var(--verde-500); width: 20px; height: 20px; }
.room__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Piscina y jardines ---------- */
.gardens { background: var(--crema-2); }
.bento {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(150px, 15vw, 210px);
  gap: 14px;
}
.bento__item { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--arena); }
.bento__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.bento__item::after {
  content: attr(data-caption);
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 18px;
  color: #fff; font-size: 0.9rem; font-weight: 600;
  background: linear-gradient(transparent, rgba(12, 20, 15, 0.7));
  opacity: 0; transform: translateY(8px); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.bento__item:hover img { transform: scale(1.05); }
.bento__item:hover::after { opacity: 1; transform: none; }
.bento__item--tall { grid-row: span 2; }
.bento__item--wide { grid-column: span 2; grid-row: span 2; }

/* ---------- Gastronomía ---------- */
.food__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.food__media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 3 / 2; }
.food__media img { width: 100%; height: 100%; object-fit: cover; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.chips span {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--linea);
  font-size: 0.9rem; font-weight: 600; color: var(--tinta);
}
.chips .icon { color: var(--oro); }

/* ---------- Eventos ---------- */
.events {
  position: relative; color: rgba(255, 255, 255, 0.82);
  background:
    radial-gradient(1200px 500px at 85% 0%, rgba(199, 155, 91, 0.14), transparent 60%),
    var(--verde-950);
  padding-bottom: clamp(70px, 8vw, 110px);
}
.events .h2 { color: #fff; }
.events .h2 em { color: var(--oro-claro); }
.events .lead { color: rgba(255, 255, 255, 0.88); }
.events__top { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: clamp(40px, 6vw, 100px); align-items: end; }
.events__intro { max-width: 680px; }
.events__buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; }
.events__stats { display: grid; gap: 34px; }
.stat { border-left: 1px solid rgba(230, 201, 149, 0.4); padding-left: 26px; }
.stat__num {
  display: block; font-family: var(--f-display); font-weight: 300; line-height: 1;
  font-size: clamp(3.6rem, 7vw, 5.6rem); color: var(--oro-claro); letter-spacing: -0.03em;
}
.stat__num small { font-size: 0.45em; margin-left: 4px; }
.stat__label { display: block; margin-top: 8px; font-size: 0.95rem; }

.events__features {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  margin-top: clamp(60px, 7vw, 96px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.events__features li {
  display: flex; align-items: center; gap: 14px;
  padding: 24px 20px 24px 0; font-size: 0.97rem; color: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.events__features .icon { width: 24px; height: 24px; color: var(--oro-claro); }

.strip { margin-top: clamp(50px, 6vw, 80px); }
.strip__track {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x proximity;
  padding: 0 var(--gutter); scrollbar-width: none; cursor: grab;
  scroll-padding: 0 var(--gutter);
}
@media (min-width: 1321px) {
  .strip__track { padding-left: calc((100vw - var(--container)) / 2); scroll-padding-left: calc((100vw - var(--container)) / 2); }
}
.strip__track::-webkit-scrollbar { display: none; }
.strip__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.strip__track.is-dragging a { pointer-events: none; }
.strip__track a {
  flex: 0 0 auto; height: clamp(320px, 38vw, 500px); aspect-ratio: 4 / 5;
  border-radius: var(--radius); overflow: hidden; scroll-snap-align: start; position: relative;
}
.strip__track img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter 0.6s; user-select: none; -webkit-user-drag: none; }
.strip__track a:hover img { transform: scale(1.05); }
.strip__nav { display: flex; justify-content: flex-end; gap: 10px; margin-top: 26px; }
.strip__btn {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3); color: #fff; transition: background 0.3s, border-color 0.3s;
}
.strip__btn:hover { background: var(--oro); border-color: var(--oro); color: var(--verde-950); }

/* ---------- Ubicación ---------- */
.location__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.location__list { display: grid; gap: 22px; margin: 34px 0 40px; }
.location__list li { display: flex; gap: 18px; align-items: flex-start; }
.location__list .icon {
  width: 46px; height: 46px; padding: 11px; border-radius: 50%; flex: none;
  background: var(--salvia-100); color: var(--verde-700);
}
.location__list strong { display: block; color: var(--tinta); font-weight: 700; }
.location__list span { color: var(--suave); font-size: 0.97rem; }
.location__map {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  aspect-ratio: 5 / 4; background: var(--arena);
}
.location__map iframe { width: 100%; height: 100%; border: 0; display: block; filter: saturate(0.85); }

/* ---------- Novedades ---------- */
.news { background: var(--crema-2); }
.news__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post__link {
  display: flex; flex-direction: column; width: 100%; height: 100%; text-align: left;
  background: #fff; border-radius: var(--radius); overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.post__link:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.post__img { aspect-ratio: 16 / 10; overflow: hidden; }
.post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.post__link:hover .post__img img { transform: scale(1.05); }
.post__body { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.post__cat { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--verde-500); margin-bottom: 12px; }
.post__title { font-family: var(--f-display); font-size: 1.35rem; line-height: 1.25; margin-bottom: 22px; }
.post__more { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.92rem; color: var(--verde-700); }
.post__more .icon { transition: transform 0.3s var(--ease); }
.post__link:hover .post__more .icon { transform: translateX(4px); }

/* ---------- Contacto ---------- */
.contact { padding-top: var(--section); }
.contact__card {
  display: grid; grid-template-columns: 0.9fr 1.1fr;
  background: var(--verde-800); border-radius: calc(var(--radius) + 8px); overflow: hidden;
  box-shadow: var(--shadow);
}
.contact__info {
  padding: clamp(36px, 5vw, 70px); color: rgba(255, 255, 255, 0.8);
  background:
    linear-gradient(160deg, rgba(20, 32, 25, 0.82), rgba(20, 32, 25, 0.95)),
    url("../img/sm/piscina-03.jpg") center / cover;
}
.contact__info .h2 { color: #fff; }
.contact__list { display: grid; gap: 14px; margin-top: 34px; }
.contact__list a {
  display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff; font-weight: 600; transition: background 0.3s, border-color 0.3s;
  backdrop-filter: blur(6px);
}
.contact__list a:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.25); }
.contact__list small { display: block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); }
.contact__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--oro); color: var(--verde-950); flex: none; }
.contact__icon .icon { width: 20px; height: 20px; }

.contact__form { background: #fff; padding: clamp(36px, 5vw, 70px); }
.contact__form h3 { font-family: var(--f-display); font-size: 1.8rem; margin-bottom: 26px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.form-field label { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; color: var(--tinta); }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--linea);
  background: var(--crema); font: 500 1rem var(--f-body); color: var(--tinta);
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s; outline: none;
}
.form-field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2347704c' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-color: var(--verde-500); background: #fff; box-shadow: 0 0 0 4px rgba(71, 112, 76, 0.12); }
.form-field.is-invalid input,
.form-field.is-invalid textarea { border-color: #b4472f; }
.form-error { color: #b4472f; font-size: 0.9rem; font-weight: 600; }
.contact__buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

/* ---------- Footer ---------- */
.footer { background: var(--verde-950); color: rgba(255, 255, 255, 0.65); padding: clamp(70px, 8vw, 100px) 0 30px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 0.8fr; gap: 40px; }
.footer__brand img { width: 140px; margin-bottom: 22px; }
.footer__brand p { max-width: 280px; font-size: 0.95rem; }
.footer h4 { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: #fff; margin-bottom: 20px; }
.footer li { margin-bottom: 10px; font-size: 0.95rem; line-height: 1.5; }
.footer a:hover { color: #fff; }
.footer__social {
  display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2); margin-right: 8px; color: #fff; transition: background 0.3s, border-color 0.3s;
}
.footer__social:hover { background: var(--oro); border-color: var(--oro); color: var(--verde-950) !important; }
.footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  margin-top: 60px; padding-top: 26px; padding-right: 80px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.85rem;
}

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 40;
  display: flex; align-items: center; gap: 12px;
}
.wa-float__btn {
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; color: #fff; box-shadow: 0 14px 30px -10px rgba(37, 211, 102, 0.7);
  transition: transform 0.3s var(--ease);
}
.wa-float__btn .icon { width: 30px; height: 30px; }
.wa-float:hover .wa-float__btn { transform: scale(1.08); }
.wa-float__bubble {
  background: #fff; color: var(--tinta); font-size: 0.88rem; font-weight: 600;
  padding: 10px 16px; border-radius: 14px 14px 4px 14px; box-shadow: var(--shadow-sm);
  opacity: 0; transform: translateX(10px); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  pointer-events: none; white-space: nowrap;
}
.wa-float.show-bubble .wa-float__bubble,
.wa-float:hover .wa-float__bubble { opacity: 1; transform: none; }

/* ---------- Lightbox ---------- */
dialog { padding: 0; border: 0; }
.lightbox {
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0;
  background: rgba(10, 16, 12, 0.96); color: #fff;
}
.lightbox[open] { display: grid; grid-template-columns: 80px 1fr 80px; align-items: center; animation: fade 0.35s var(--ease); }
.lightbox::backdrop { background: transparent; }
.lightbox__figure { height: 100vh; height: 100dvh; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 70px 0 30px; min-width: 0; }
.lightbox__img { width: auto; height: auto; max-width: 100%; max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); object-fit: contain; border-radius: 10px; animation: zoomIn 0.4s var(--ease); }
.lightbox__caption { display: flex; justify-content: space-between; gap: 20px; width: 100%; max-width: 900px; margin-top: 18px; font-size: 0.92rem; color: rgba(255, 255, 255, 0.8); }
.lightbox__count { color: rgba(255, 255, 255, 0.5); font-variant-numeric: tabular-nums; }
.lightbox__nav, .lightbox__close {
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2); color: #fff; justify-self: center; transition: background 0.3s;
}
.lightbox__nav:hover, .lightbox__close:hover { background: rgba(255, 255, 255, 0.12); }
.lightbox__close { position: absolute; top: 18px; right: 18px; z-index: 2; }

/* ---------- Artículos ---------- */
.article {
  width: min(760px, calc(100vw - 32px)); max-height: calc(100dvh - 48px);
  border-radius: var(--radius); background: var(--crema); color: var(--texto);
  overflow: auto; overscroll-behavior: contain;
}
.article[open] { animation: rise 0.45s var(--ease); }
.article::backdrop { background: rgba(10, 16, 12, 0.7); backdrop-filter: blur(4px); }
.article__img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.article__body { padding: clamp(28px, 5vw, 56px); }
.article__body h2 { font-family: var(--f-display); font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.15; margin: 4px 0 26px; }
.article__body h3 { font-family: var(--f-display); font-size: 1.4rem; margin: 30px 0 14px; }
.article__body ul { list-style: disc; padding-left: 22px; margin-bottom: 1.1em; }
.article__body blockquote {
  margin: 30px 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--oro);
  font-family: var(--f-display); font-style: italic; font-size: 1.35rem; line-height: 1.4; color: var(--tinta);
}
.article__close {
  position: sticky; top: 14px; float: right; margin: 14px 14px -68px 0; z-index: 2;
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.92); color: var(--tinta); box-shadow: var(--shadow-sm);
}

/* ---------- Animaciones ---------- */
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes zoomIn { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero__slide img, .hero__slide.is-active img { transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1180px) {
  .booking__card { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field { border-bottom: 1px solid var(--linea); }
  .field:nth-child(2n) { border-right: 0; }
  .booking__submit { grid-column: 1 / -1; margin-top: 12px; }
  .events__features { grid-template-columns: repeat(2, 1fr); column-gap: 30px; }
}

@media (max-width: 980px) {
  :root { --header-h: 74px; }
  .burger { display: block; z-index: 2; }
  .header__cta { display: none; }
  .header__wa { display: none; }

  .nav {
    position: fixed; inset: 0; z-index: 1;
    display: flex; flex-direction: column; justify-content: center; gap: 40px;
    padding: 100px var(--gutter) 40px;
    background: var(--verde-950); color: #fff;
    opacity: 0; visibility: hidden; transition: opacity 0.45s var(--ease), visibility 0.45s;
  }
  .menu-open .nav { opacity: 1; visibility: visible; }
  .menu-open.header { color: #fff; background: transparent; box-shadow: none; backdrop-filter: none; }
  .menu-open .logo__img--light { opacity: 1; }
  .menu-open .logo__img--dark { opacity: 0; }
  .logo { z-index: 2; }
  .nav__list { flex-direction: column; gap: 6px; }
  .nav__list a { font-family: var(--f-display); font-size: clamp(2rem, 8vw, 2.8rem); font-weight: 300; }
  .nav__list a::after { display: none; }
  .nav__list li { opacity: 0; transform: translateY(16px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
  .menu-open .nav__list li { opacity: 1; transform: none; }
  .menu-open .nav__list li:nth-child(2) { transition-delay: 0.05s; }
  .menu-open .nav__list li:nth-child(3) { transition-delay: 0.1s; }
  .menu-open .nav__list li:nth-child(4) { transition-delay: 0.15s; }
  .menu-open .nav__list li:nth-child(5) { transition-delay: 0.2s; }
  .nav__mobile-extra { display: grid; gap: 14px; padding-top: 30px; border-top: 1px solid rgba(255, 255, 255, 0.15); }
  .nav__extra { display: inline-flex; align-items: center; gap: 12px; color: rgba(255, 255, 255, 0.8); }

  .intro__grid,
  .museum__grid,
  .food__grid,
  .location__grid,
  .events__top { grid-template-columns: 1fr; }
  .intro__media,
  .museum__media { max-width: 560px; }
  .features { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .section-head--split { grid-template-columns: 1fr; gap: 0; }
  .section-head--split .h2 { margin-bottom: 24px; }

  .room,
  .room--reverse { grid-template-columns: 1fr; }
  .room--reverse .room__media { order: 0; }

  .events__stats { grid-template-columns: 1fr 1fr; }
  .news__grid { grid-template-columns: 1fr 1fr; }
  .contact__card { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: clamp(140px, 30vw, 220px); }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .hero__content { padding-bottom: 130px; }
  .hero__buttons .btn { flex: 1 1 auto; }
  .booking { margin-top: -70px; }
  .booking__card { padding: 8px; }
  .field { padding: 12px 14px; }
  .booking__note { margin: 10px 8px 4px; }

  .intro__img--main { width: 82%; }
  .intro__badge { right: 0; bottom: 30px; padding: 12px 14px; }
  .intro__badge strong { font-size: 1rem; }

  .feature { padding: 14px 4px; gap: 6px; font-size: 0.76rem; }
  .feature .icon { width: 20px; height: 20px; }
  .museum__media { gap: 12px; }

  .carousel__slide { flex-basis: 84%; }
  .carousel__btn { display: none; }
  .amenities { grid-template-columns: 1fr 1fr; gap: 10px 14px; }
  .amenities li { font-size: 0.9rem; }
  .room__actions .btn { flex: 1 1 auto; }

  .bento__item--wide { grid-column: span 2; }
  .events__features { grid-template-columns: 1fr; }
  .events__stats { gap: 20px; }
  .stat { padding-left: 18px; }
  .news__grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact__buttons .btn { flex: 1 1 100%; }
  .footer__grid { grid-template-columns: 1fr; }

  .lightbox[open] { grid-template-columns: 1fr; }
  .lightbox__nav { position: absolute; bottom: 24px; z-index: 2; }
  .lightbox__nav--prev { left: calc(50% - 64px); }
  .lightbox__nav--next { right: calc(50% - 64px); }
  .lightbox__figure { padding: 70px 12px 100px; }
  .lightbox__img { max-height: calc(100dvh - 230px); }

  .wa-float { right: 16px; bottom: 16px; }
  .wa-float__btn { width: 56px; height: 56px; }
  .wa-float__bubble { display: none; }
}
