/* ==========================================================
   XANTHE BY ATRIO — Hotel, Restaurante y Spa
   Paleta y tipografía basadas en el sitio original
   ========================================================== */
:root {
  --gold: #b99d75;
  --gold-dark: #9e8360;
  --olive: #53624e;
  --sand: #f3f3f0;
  --ink: #1a1b1a;
  --muted: #5d605c;
  --dark: #111111;
  --white: #ffffff;
  --line: rgba(26, 27, 26, .12);
  --serif: "Marcellus", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 96px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1.1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Etiquetas y botones ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 14px;
}
.eyebrow.light { color: rgba(255, 255, 255, .85); font-size: 12px; letter-spacing: 1.6px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 30px;
  font-family: var(--serif); font-size: 16px;
  background: var(--gold); color: var(--white);
  border: 1px solid var(--gold);
  transition: background .3s, color .3s, border-color .3s;
  cursor: pointer;
}
.btn:hover { background: var(--gold-dark); border-color: var(--gold-dark); }
.btn.outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.outline:hover { background: var(--ink); color: var(--white); }
.btn.outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.7); }
.btn.outline-light:hover { background: var(--white); color: var(--ink); }
.btn.wa { background: #25d366; border-color: #25d366; font-family: var(--sans); font-weight: 500; }
.btn.wa:hover { background: #1eb457; border-color: #1eb457; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-size: 16px; padding: 7px 0;
  border-bottom: 1px solid currentColor;
}
.link-arrow::after { content: "→"; transition: transform .3s; }
.link-arrow:hover::after { transform: translateX(5px); }

/* ---------- Encabezado ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, .25);
  transition: background .35s, height .35s, border-color .35s;
}
.site-header.scrolled {
  background: rgba(17, 17, 17, .94);
  border-color: transparent;
  height: 76px;
  backdrop-filter: blur(6px);
}
.header-inner {
  height: 100%;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
}
.menu-toggle {
  justify-self: start;
  background: none; border: 0; color: inherit; cursor: pointer;
  display: flex; align-items: center; gap: 14px; padding: 10px 0;
  font-family: var(--sans); font-size: 15px;
}
.menu-toggle .bars { width: 34px; height: 12px; position: relative; }
.menu-toggle .bars::before, .menu-toggle .bars::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor;
}
.menu-toggle .bars::before { top: 0; }
.menu-toggle .bars::after { bottom: 0; }
.header-contact { justify-self: end; font-size: 15px; display: flex; gap: 18px; align-items: center; }
.header-contact a:hover { color: var(--gold); }
.header-contact .tel-ico { display: inline-flex; align-items: center; gap: 10px; }
/* Selector de idioma ES | EN */
.lang-switch { display: inline-flex; align-items: center; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; padding: 2px; font-size: 12.5px; letter-spacing: 1px; }
.lang-switch a { padding: 4px 10px; border-radius: 999px; line-height: 1.2; opacity: .8; transition: background .25s, color .25s, opacity .25s; }
.lang-switch a:hover { opacity: 1; color: inherit; }
.lang-switch a[aria-current="true"] { background: var(--white); color: var(--ink); opacity: 1; font-weight: 500; }
.header-contact .lang-switch a:hover { color: inherit; }
.header-contact .lang-switch a[aria-current="true"]:hover { color: var(--ink); }
.header-contact .tel-ico svg { width: 18px; height: 18px; }
/* Portada: el logo del encabezado aparece al bajar (el hero ya lo muestra) */
.home .site-header .brand { transition: opacity .35s; }
.home .site-header:not(.scrolled) .brand { opacity: 0; pointer-events: none; }

/* Logotipo (texto temporal hasta recibir el logo oficial) */
.brand { display: flex; align-items: center; justify-content: center; color: inherit; }
.brand img { height: 62px; width: auto; transition: height .35s; }
.site-header.scrolled .brand img { height: 50px; }
.wordmark { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.wordmark .wm-main { font-family: var(--serif); font-size: 30px; letter-spacing: 9px; padding-left: 9px; }
.wordmark .wm-sub {
  font-family: var(--sans); font-size: 10px; letter-spacing: 5px; text-transform: uppercase;
  margin-top: 7px; padding-left: 5px; opacity: .85;
}

/* ---------- Menú lateral ---------- */
.offcanvas {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(17, 17, 17, .97);
  color: var(--white);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 90px var(--gutter) 40px;
  opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
}
.offcanvas.open { opacity: 1; visibility: visible; }
.offcanvas nav ul { list-style: none; margin: 0; padding: 0; text-align: center; }
.offcanvas nav a {
  display: inline-block; font-family: var(--serif);
  font-size: clamp(24px, 4.2vw, 38px); letter-spacing: 1px; padding: 5px 0;
  transition: color .25s;
}
.offcanvas nav a:hover, .offcanvas nav a[aria-current="page"] { color: var(--gold); }
.offcanvas .close {
  position: absolute; top: 26px; left: var(--gutter);
  background: none; border: 0; color: var(--white); font-size: 15px; cursor: pointer;
  display: flex; align-items: center; gap: 12px; font-family: var(--sans);
}
.offcanvas .close span { font-size: 30px; line-height: 1; font-weight: 300; }
.offcanvas .oc-foot { margin-top: 40px; text-align: center; font-size: 14px; opacity: .8; }
.social { display: flex; gap: 22px; justify-content: center; margin-bottom: 10px; }
.social a:hover { color: var(--gold); }
body.menu-open { overflow: hidden; }

/* ---------- Hero portada ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: var(--white); background: #000; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: heroZoom 14s ease-out forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.25) 45%, rgba(0,0,0,.5) 100%); }
.hero-content { position: relative; z-index: 2; padding: calc(var(--header-h) + 40px) var(--gutter) 80px; max-width: 980px; }
/* Espacio reservado para el logotipo oficial */
.hero-logo { margin: 0 auto 34px; display: flex; justify-content: center; }
.hero-logo img { height: clamp(150px, 26vh, 240px); max-width: 82vw; width: auto; object-fit: contain; filter: drop-shadow(0 4px 24px rgba(0,0,0,.35)); }
.hero-logo .wordmark .wm-main { font-size: clamp(46px, 8vw, 92px); letter-spacing: .22em; padding-left: .22em; }
.hero-logo .wordmark .wm-sub { font-size: clamp(12px, 1.4vw, 16px); letter-spacing: .6em; margin-top: 16px; padding-left: .6em; }
.hero .tagline { font-size: clamp(34px, 5vw, 52px); margin-bottom: .2em; }
.hero h1 { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: .6em; }
.hero .place { font-size: clamp(16px, 1.6vw, 19px); margin-bottom: 34px; opacity: .95; }
.scroll-cue {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 2;
  width: 1px; height: 54px; background: rgba(255,255,255,.4); overflow: hidden;
}
.scroll-cue::after { content: ""; position: absolute; left: 0; top: -54px; width: 1px; height: 54px; background: var(--white); animation: cue 2.2s infinite; }
@keyframes cue { to { top: 54px; } }

/* ---------- Hero de páginas internas ---------- */
.page-hero {
  position: relative; min-height: 62vh; display: flex; align-items: flex-end;
  color: var(--white); background: #000; overflow: hidden;
}
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.15) 40%, rgba(0,0,0,.6)); }
.page-hero .wrap { position: relative; z-index: 2; padding-top: calc(var(--header-h) + 40px); padding-bottom: 64px; }
.page-hero h1 { font-size: clamp(38px, 6vw, 68px); margin: 0; }
.crumbs { font-size: 14px; letter-spacing: 1px; opacity: .85; margin-bottom: 10px; }
.crumbs a:hover { color: var(--gold); }

/* ---------- Secciones ---------- */
.section { padding: clamp(70px, 10vw, 120px) 0; }
.section.sand { background: var(--sand); }
.section.dark { background: var(--dark); color: var(--white); }
.section-head { max-width: 760px; margin: 0 auto clamp(40px, 6vw, 60px); text-align: center; }
.section-head h2 { font-size: clamp(30px, 4vw, 42px); }
.section-head h3 { font-size: clamp(28px, 3.4vw, 34px); }
.lead { font-size: 17px; color: var(--muted); }
.dark .lead { color: rgba(255,255,255,.8); }

/* Bienvenida */
.welcome { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.welcome h2 { font-size: clamp(30px, 3.6vw, 38px); }
.welcome .stack { position: relative; }
.welcome .stack img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.welcome .stack .badge {
  position: absolute; left: -24px; bottom: 34px; background: var(--white);
  padding: 22px 26px; box-shadow: 0 18px 40px rgba(0,0,0,.12); max-width: 230px;
}
.badge strong { display: block; font-family: var(--serif); font-size: 40px; font-weight: 400; color: var(--gold); line-height: 1; }
.badge span { font-size: 14px; color: var(--muted); }
.facts { display: flex; flex-wrap: wrap; gap: 28px 40px; margin: 28px 0 34px; padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts div { font-size: 14px; color: var(--muted); }
.facts b { display: block; font-family: var(--serif); font-weight: 400; font-size: 26px; color: var(--ink); }

/* Banda de imagen con parallax */
.band { position: relative; height: clamp(320px, 60vh, 620px); overflow: hidden; background: #000; }
.band img { position: absolute; left: 0; width: 100%; height: 130%; top: -15%; object-fit: cover; will-change: transform; }

/* Franja con video */
.video-band::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.12); pointer-events: none; }
.video-play {
  position: absolute; inset: 0; z-index: 2; width: 100%; border: 0; background: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; color: var(--white);
}
.play-ring {
  width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center;
  background: transparent; border: 1.5px solid rgba(255,255,255,.9);
  filter: drop-shadow(0 2px 12px rgba(0,0,0,.35));
  transition: transform .4s cubic-bezier(.2,.7,.2,1), border-color .3s; position: relative;
}
.play-ring::before { content: ""; position: absolute; inset: -12px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); animation: ring 2.4s ease-out infinite; }
@keyframes ring { from { transform: scale(.85); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.play-ring svg { width: 34px; height: 34px; margin-left: 5px; }
.video-play:hover .play-ring, .video-play:focus-visible .play-ring { transform: scale(1.1); border-color: #fff; }
.play-text { font-family: var(--serif); font-size: clamp(24px, 3.4vw, 36px); text-shadow: 0 2px 20px rgba(0,0,0,.4); text-align: center; }
.play-text small { display: block; font-family: var(--sans); font-size: 12px; letter-spacing: 3px; text-transform: uppercase; opacity: .9; margin-bottom: 6px; }
.video-modal {
  position: fixed; inset: 0; z-index: 110; background: rgba(8,8,8,.92); display: flex; align-items: center; justify-content: center;
  padding: 60px clamp(12px, 4vw, 60px); opacity: 0; transition: opacity .3s;
}
.video-modal.open { opacity: 1; }
.video-modal .vm-box { width: 100%; max-width: 1100px; aspect-ratio: 16/9; background: #000; box-shadow: 0 30px 80px rgba(0,0,0,.6); transform: scale(.96); transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.video-modal.open .vm-box { transform: none; }
.video-modal iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-modal .vm-close { position: absolute; top: 14px; right: 16px; background: none; border: 0; color: #fff; font-size: 40px; line-height: 1; cursor: pointer; padding: 6px 12px; }
@media (prefers-reduced-motion: reduce) { .play-ring::before { animation: none; } }

/* Carrusel de habitaciones */
.rooms-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.rooms-top h3 { font-size: clamp(28px, 3.4vw, 34px); margin: 0; }
.slider-nav { display: flex; gap: 10px; }
.slider-nav button {
  width: 52px; height: 52px; border: 1px solid var(--line); background: var(--white);
  font-size: 20px; cursor: pointer; transition: background .25s, color .25s, border-color .25s;
}
.slider-nav button:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.rooms-slider {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 60px) / 3);
  gap: 30px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding-bottom: 6px;
}
.rooms-slider::-webkit-scrollbar { display: none; }
.room-card { scroll-snap-align: start; display: block; }
.room-card .ph { position: relative; overflow: hidden; aspect-ratio: 4/5; background: var(--sand); }
.room-card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s cubic-bezier(.2,.7,.2,1); }
.room-card:hover .ph img { transform: scale(1.06); }
.room-card .price-tag {
  position: absolute; top: 18px; left: 18px; background: var(--white); color: var(--ink);
  font-size: 13px; padding: 6px 12px; letter-spacing: .5px;
}
.room-card h2, .room-card h3 { font-size: 24px; margin: 20px 0 6px; }
.room-card .meta { font-size: 14px; color: var(--muted); display: flex; gap: 16px; flex-wrap: wrap; }
.rooms-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px 30px; }
.rooms-grid .excerpt { font-size: 15px; color: var(--muted); margin: 8px 0 14px; }

/* Experiencia con imagen de fondo */
.feature-bg { position: relative; color: var(--white); background: #000; overflow: hidden; }
.feature-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.feature-bg .wrap { position: relative; z-index: 2; }
.quote-block { max-width: 820px; margin: 0 auto; text-align: center; }
.quote-block h2 { font-size: clamp(30px, 4.4vw, 48px); }
.quote-block p { font-size: 17px; color: rgba(255,255,255,.88); }

/* Portada fija (Experiencia Inolvidable): --p va de 0 a 1 según el scroll */
.pin { position: relative; height: 240vh; background: #000; --p: 0; }
.pin-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; align-items: center; color: var(--white); }
.pin-sticky img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.12 - var(--p) * .12)); }
/* En celular, encuadrar la palapa (lado izquierdo-centro de la foto) */
@media (max-width: 860px) { .pin-sticky img { object-position: 40% 50%; } }
.pin-shade { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(0,0,0,.75), rgba(0,0,0,.45)); opacity: var(--s, 0); }
.pin-text h2, .pin-text p { text-shadow: 0 2px 18px rgba(0,0,0,.45); }
.pin-text { position: relative; z-index: 2; opacity: var(--t, 0); transform: translateY(calc((1 - var(--t, 0)) * 40px)); }
.pin-text .eyebrow { opacity: var(--t1, 0); }
@media (prefers-reduced-motion: reduce) {
  .pin { height: auto; }
  .pin-sticky { position: relative; min-height: 80vh; padding: 120px 0; }
  .pin-sticky img { transform: none; }
  .pin-shade { opacity: .5; }
  .pin-text, .pin-text .eyebrow { opacity: 1; transform: none; }
}

.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.trio-card { display: flex; flex-direction: column; }
.trio-card .link-arrow { margin-top: auto; align-self: flex-start; }
.trio-card .ph { overflow: hidden; aspect-ratio: 3/4; }
.trio-card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s cubic-bezier(.2,.7,.2,1); }
.trio-card:hover .ph img { transform: scale(1.05); }
.trio-card h3 { font-size: 28px; margin: 26px 0 12px; }
.trio-card p { color: var(--muted); font-size: 15.5px; }

/* Bodas: bloque dividido */
.split { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 640px; background: var(--dark); color: var(--white); }
.split .media { position: relative; overflow: hidden; }
.split .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split .copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(50px, 7vw, 100px); }
.split .copy h2 { font-size: clamp(30px, 3.6vw, 42px); }
.split .copy p { color: rgba(255,255,255,.82); }
.stars { color: var(--gold); letter-spacing: 3px; font-size: 18px; margin: 10px 0 30px; }
.stars span { color: rgba(255,255,255,.75); letter-spacing: 0; font-size: 14px; margin-left: 10px; }
.split.reverse { grid-template-columns: 1fr 1.1fr; }
.split.reverse .media { order: 2; }
.split.light { background: var(--sand); color: var(--ink); }
.split.light .copy p { color: var(--muted); }

/* Experiencias */
.exp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.exp-card { position: relative; overflow: hidden; aspect-ratio: 3/4.2; color: var(--white); display: block; }
.exp-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s cubic-bezier(.2,.7,.2,1); }
.exp-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.72)); }
.exp-card .cap { position: absolute; left: 26px; right: 26px; bottom: 24px; z-index: 2; }
.exp-card h4 { font-size: 28px; margin: 0 0 6px; }
.exp-card .link-arrow { font-size: 15px; }
.exp-card:hover img { transform: scale(1.07); }

/* ---------- Detalle de habitación ---------- */
.room-layout { display: grid; grid-template-columns: 1fr 360px; gap: clamp(40px, 6vw, 80px); align-items: start; }
.room-intro { font-size: 19px; font-family: var(--serif); line-height: 1.5; margin-bottom: 30px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.chips span { border: 1px solid var(--line); padding: 6px 14px; font-size: 14px; }
.amenities { display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px 40px; margin: 10px 0 50px; }
.amenity { display: grid; grid-template-columns: 44px 1fr; gap: 16px; }
.amenity .ico { width: 44px; height: 44px; border-radius: 50%; background: var(--sand); color: var(--olive); display: grid; place-items: center; }
.amenity .ico svg { width: 20px; height: 20px; }
.amenity h4 { font-size: 19px; margin: 6px 0 4px; }
.amenity p { font-size: 15px; color: var(--muted); margin: 0; }
.book-box { position: sticky; top: 100px; background: var(--sand); padding: 36px 32px; }
.book-box .rate { font-family: var(--serif); font-size: 32px; line-height: 1.15; margin: 6px 0 22px; }
.book-box .rate small { font-family: var(--sans); font-size: 15px; color: var(--muted); }
.book-box .note { font-size: 14px; color: var(--muted); margin: 18px 0 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.book-box .btn { width: 100%; margin-bottom: 12px; }

/* Galerías */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery a { display: block; overflow: hidden; aspect-ratio: 4/3; background: var(--sand); cursor: zoom-in; }
.gallery a img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2,.7,.2,1), opacity .3s; }
.gallery a:hover img { transform: scale(1.05); }
.gallery.big a:nth-child(6n+1) { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.room-gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 220px; gap: 12px; margin-bottom: clamp(50px, 7vw, 80px); }
.room-gallery a { overflow: hidden; display: block; cursor: zoom-in; background: var(--sand); }
.room-gallery a:first-child { grid-row: span 2; }
.room-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s; }
.room-gallery a:hover img { transform: scale(1.05); }
.room-gallery a { position: relative; }
.room-gallery a[hidden] { display: none; }
.room-gallery .more {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(17,17,17,.5); color: var(--white); font-family: var(--serif); font-size: 22px;
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(10,10,10,.95);
  display: none; align-items: center; justify-content: center; padding: 60px 70px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 34px; cursor: pointer; padding: 12px 18px; line-height: 1; }
.lightbox .lb-close { top: 10px; right: 10px; }
.lightbox .lb-prev { left: 6px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 6px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.7); font-size: 14px; }

/* Restaurante / Spa */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.two-col img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.two-col h2 { font-size: clamp(30px, 3.6vw, 40px); }
.call-box { margin-top: 30px; padding: 26px 28px; border: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.call-box .lbl { flex-basis: 100%; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--olive); font-weight: 500; }
.call-box a.tel { font-family: var(--serif); font-size: 22px; }
.call-box a.tel:hover { color: var(--gold); }
.chef { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.chef h4 { font-size: 26px; }
.chef p { color: rgba(255,255,255,.82); }

.menu-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 70px; }
.menu-item { padding: 22px 0; border-bottom: 1px solid var(--line); }
.menu-item .row { display: flex; align-items: baseline; gap: 12px; }
.menu-item h4 { font-size: 21px; margin: 0; }
.menu-item .dots { flex: 1; border-bottom: 1px dotted rgba(26,27,26,.35); transform: translateY(-4px); }
.menu-item .pr { font-family: var(--serif); font-size: 19px; color: var(--gold-dark); white-space: nowrap; }
.menu-item p { font-size: 15px; color: var(--muted); margin: 6px 0 0; }
.menu-item .dur { font-size: 13px; color: var(--olive); letter-spacing: 1px; text-transform: uppercase; }
.sub-title { font-size: clamp(26px, 3vw, 32px); margin: 0 0 10px; }
.spa-pk { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.spa-pk .card { background: var(--white); padding: 40px; border-top: 3px solid var(--gold); }
.spa-pk .card h4 { font-size: 26px; }
.spa-pk ul { list-style: none; padding: 0; margin: 0 0 22px; }
.spa-pk li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.spa-pk .pr { font-family: var(--serif); font-size: 24px; color: var(--gold-dark); }

/* Paquetes */
.packages { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.package { background: var(--white); display: grid; grid-template-rows: auto 1fr; box-shadow: 0 1px 0 var(--line); }
.package .ph { aspect-ratio: 16/10; overflow: hidden; }
.package .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s; }
.package:hover .ph img { transform: scale(1.05); }
.package .body { padding: 36px 36px 40px; display: flex; flex-direction: column; }
.package h3 { font-size: 30px; margin-bottom: 18px; }
.package ul { list-style: none; padding: 0; margin: 0 0 24px; }
.package li { padding: 12px 0 12px 30px; border-bottom: 1px solid var(--line); position: relative; }
.package li::before { content: ""; position: absolute; left: 4px; top: 21px; width: 10px; height: 6px; border-left: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold); transform: rotate(-45deg); }
.package li b { display: block; font-weight: 500; }
.package li span { font-size: 14.5px; color: var(--muted); }
.package .cost { font-family: var(--serif); font-size: 22px; margin: auto 0 22px; color: var(--ink); }
.package .cost small { display: block; font-family: var(--sans); font-size: 14px; color: var(--muted); }
.package .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.package .actions .btn { flex: 1 1 180px; }

/* Ubicación */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.tabs button { padding: 12px 22px; border: 1px solid var(--line); background: var(--white); font-family: var(--serif); font-size: 16px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.map { width: 100%; height: 480px; border: 0; display: block; filter: grayscale(.2); }
.contact-list { list-style: none; padding: 0; margin: 24px 0; }
.contact-list li { padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 110px 1fr; gap: 10px; }
.contact-list li span { font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--olive); font-weight: 500; padding-top: 3px; }

/* ---------- Formulario de solicitud ---------- */
.reserve-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.reserve-grid h2 { font-size: clamp(30px, 3.6vw, 40px); }
.lead-form { background: var(--white); padding: clamp(26px, 4vw, 44px); box-shadow: 0 20px 50px rgba(0,0,0,.06); display: grid; gap: 18px; }
.f-row { display: grid; gap: 18px; }
.f-row.two { grid-template-columns: 1fr 1fr; }
.f-row.three { grid-template-columns: 1fr 1fr .7fr; }
.f { display: grid; gap: 7px; font-size: 13px; letter-spacing: .5px; color: var(--muted); }
.f input, .f select, .f textarea {
  font: 16px var(--sans); color: var(--ink); background: var(--white);
  border: 0; border-bottom: 1px solid rgba(26,27,26,.25); padding: 10px 2px; border-radius: 0; width: 100%;
  transition: border-color .25s;
}
.f textarea { border: 1px solid rgba(26,27,26,.2); padding: 12px; resize: vertical; }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: var(--gold); }
.f.bad input, .f.bad select { border-color: #b3402a; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check { display: grid; grid-template-columns: 20px 1fr; gap: 12px; font-size: 14px; color: var(--muted); align-items: start; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--gold); }
.check a { color: var(--gold-dark); text-decoration: underline; }
.check.bad span { color: #b3402a; }
.f-error { background: #f9e7e2; color: #b3402a; padding: 12px 14px; font-size: 14px; margin: 0; }
.f-ok { background: #eef4ec; border-left: 3px solid var(--olive); padding: 18px 20px; }
.f-ok strong { font-family: var(--serif); font-weight: 400; font-size: 22px; display: block; margin-bottom: 4px; }
.f-ok p { margin: 0; color: var(--muted); }
.f-ok a { color: var(--olive); text-decoration: underline; }
.lead-form .btn[disabled] { opacity: .6; cursor: wait; }

/* ---------- Aviso de privacidad ---------- */
.legal { max-width: 860px; }
.legal h2 { font-size: clamp(22px, 2.6vw, 28px); margin: 44px 0 14px; }
.legal h2:first-of-type { margin-top: 20px; }
.legal h3 { font-family: var(--sans); font-weight: 500; font-size: 16px; margin: 22px 0 6px; }
.legal p, .legal li { color: #3d3f3b; }
.legal ul { padding-left: 20px; margin: 0 0 1.1em; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--gold-dark); text-decoration: underline; }
.legal-meta { font-size: 14px; color: var(--muted); border-left: 2px solid var(--gold); padding-left: 14px; }
.site-footer .footer-bottom a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- CTA y pie ---------- */
.cta { text-align: center; }
.cta h2 { font-size: clamp(30px, 4vw, 44px); }
.cta .btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
/* Reservaciones con mapa */
.cta-map { text-align: left; }
.cta-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.cta-map .btns { justify-content: flex-start; }
.cta-map .contact-list { margin: 20px 0 6px; }
.cta-map-box { display: flex; flex-direction: column; }
.cta-map-box .map { height: 420px; background: #e6e6e1; }
.map-btn { margin-top: 16px; align-self: stretch; }
.map-btn svg { width: 18px; height: 18px; }
@media (max-width: 860px) {
  .reserve-grid { grid-template-columns: 1fr; }
  .cta-grid { grid-template-columns: 1fr; }
  .cta-map-box .map { height: 340px; }
}
.site-footer { background: var(--dark); color: rgba(255,255,255,.82); padding: 90px 0 0; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 70px; }
.site-footer .brand { justify-content: flex-start; color: var(--white); margin-bottom: 22px; }
.site-footer .wordmark { align-items: flex-start; }
.site-footer h5 { font-family: var(--sans); font-weight: 500; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--white); margin: 0 0 18px; }
.site-footer a:hover { color: var(--gold); }
/* "Text fill on scroll" del nombre en el pie: contorno que se llena de blanco al bajar (--fill lo mueve main.js) */
.fill-text { --fill: 0%; }
.fill-text .wordmark .wm-main, .fill-text .wordmark .wm-sub {
  color: transparent;
  background-image: linear-gradient(90deg, #fff 0, #fff var(--fill), rgba(255,255,255,.12) var(--fill), rgba(255,255,255,.12) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-stroke: 1px rgba(255,255,255,.9);
}
.fill-text .wordmark .wm-sub { -webkit-text-stroke: .5px rgba(255,255,255,.9); }
@media (prefers-reduced-motion: reduce) { .fill-text { --fill: 100%; } }
.site-footer .social { justify-content: flex-start; flex-direction: column; gap: 6px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 26px; padding-bottom: 26px; font-size: 13px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

/* WhatsApp flotante */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 60; display: flex; align-items: center; gap: 12px; }
.wa-float .tip {
  background: var(--white); color: var(--ink); padding: 10px 16px; font-size: 13.5px; line-height: 1.35;
  box-shadow: 0 8px 30px rgba(0,0,0,.18); border-left: 4px solid var(--gold);
  opacity: 0; transform: translateX(8px); transition: opacity .3s, transform .3s; pointer-events: none;
}
.wa-float .tip b { display: block; font-weight: 600; }
.wa-float:hover .tip, .wa-float.show-tip .tip { opacity: 1; transform: none; }
.wa-float .bubble { width: 60px; height: 60px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 10px 28px rgba(37,211,102,.45); }
.wa-float .bubble svg { width: 30px; height: 30px; fill: #fff; }

/* Animación al hacer scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .12s; } .reveal.d2 { transition-delay: .24s; } .reveal.d3 { transition-delay: .36s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg img { animation: none; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .rooms-slider { grid-auto-columns: calc((100% - 30px) / 2); }
  .exp-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .room-layout { grid-template-columns: 1fr; }
  .book-box { position: static; }
  .rooms-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  :root { --header-h: 76px; }
  .header-contact .hide-sm, .menu-toggle .lbl { display: none; }
  .wordmark .wm-main { font-size: 24px; letter-spacing: 7px; padding-left: 7px; }
  .wordmark .wm-sub { font-size: 9px; letter-spacing: 4px; }
  .welcome, .two-col, .chef, .split, .split.reverse, .menu-list, .spa-pk, .packages { grid-template-columns: 1fr; }
  .split .media { min-height: 380px; order: 0 !important; }
  .welcome .stack .badge { left: 16px; }
  .trio { grid-template-columns: 1fr; gap: 50px; }
  .trio-card .ph { aspect-ratio: 4/3; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .room-gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
  .room-gallery a:first-child { grid-column: span 2; grid-row: span 2; }
  .amenities { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .rooms-slider { grid-auto-columns: 84%; gap: 16px; }
  .rooms-grid, .exp-grid, .footer-grid { grid-template-columns: 1fr; }
  .exp-card { aspect-ratio: 4/3.4; }
  .gallery.big a:nth-child(6n+1) { grid-column: span 2; grid-row: auto; aspect-ratio: 4/3; }
  .header-contact .num { display: none; }
  .header-contact { gap: 12px; }
  .lang-switch { font-size: 11px; letter-spacing: .5px; }
  .lang-switch a { padding: 3px 7px; }
  .wordmark .wm-main { font-size: 21px; letter-spacing: 5px; padding-left: 5px; }
  .wordmark .wm-sub { font-size: 8px; letter-spacing: 3px; }
  .header-contact .tel-ico svg { width: 22px; height: 22px; }
  .package .body, .spa-pk .card { padding: 28px 22px 30px; }
  .lightbox { padding: 50px 10px; }
  .wa-float .tip { display: none; }
  .map { height: 380px; }
  .contact-list li { grid-template-columns: 1fr; gap: 2px; }
  .f-row.two, .f-row.three { grid-template-columns: 1fr; }
}

/* Fotos en WebP: <picture> no altera el diseño (la foto se acomoda igual que antes) */
picture { display: contents; }

/* Logo oficial en el pie: se "llena" de blanco al bajar (usa el logo como máscara; --fill lo mueve main.js) */
.logo-fill {
  display: block; width: 220px; max-width: 100%; aspect-ratio: 900 / 578; --fill: 0%;
  -webkit-mask: var(--logo, url(../img/logo.png)) left center / contain no-repeat; mask: var(--logo, url(../img/logo.png)) left center / contain no-repeat;
  background: linear-gradient(90deg, #fff 0, #fff var(--fill), rgba(255,255,255,.35) var(--fill), rgba(255,255,255,.35) 100%);
}
.fill-text { --fill: 0%; }
.fill-text .logo-fill { --fill: inherit; }
@media (prefers-reduced-motion: reduce) { .logo-fill { --fill: 100% !important; } }
@media (max-width: 860px) {
  .brand img { height: 48px; }
  .site-header.scrolled .brand img { height: 42px; }
}

/* Carrusel "Habitaciones / Rooms" al final de cada habitación: fotos más bajas para no alargar la página */
.section.sand [data-slider] .room-card .ph { aspect-ratio: 4 / 3; }
.section.sand [data-slider] .room-card .excerpt { font-size: 14.5px; }

/* Carruseles: solo se mueven a los lados (nunca hacia arriba/abajo por dentro) */
.rooms-slider { overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; touch-action: pan-x pan-y; scroll-snap-type: x proximity; }
.rooms-slider.dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.rooms-slider.dragging a { pointer-events: none; }
@media (hover: hover) and (pointer: fine) { .rooms-slider { cursor: grab; } }

/* ---------- Experiencia Inolvidable + tres tarjetas montadas sobre la foto (como el sitio original) ---------- */
.exp-block { position: relative; padding-top: clamp(110px, 13vw, 170px); color: var(--white); background: var(--white); overflow: hidden;
  /* ancho de una tarjeta: sirve para que el fondo oscuro termine a media foto */
  --card-w: calc((min(var(--wrap), 100vw) - 2 * var(--gutter) - 60px) / 3); }
.exp-bg { position: absolute; inset: 0; background: #000; }
.exp-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.exp-block .wrap { position: relative; z-index: 1; }
.exp-block .quote-block { margin-bottom: clamp(50px, 7vw, 80px); }
.exp-block .quote-block p { color: rgba(255,255,255,.9); }
.trio-framed { position: relative; align-items: start; gap: 30px; padding-bottom: clamp(80px, 10vw, 120px); }
/* parte blanca: empieza a la mitad de las fotos y llega hasta el final de la sección */
.trio-framed::before { content: ""; position: absolute; z-index: -1; left: calc(50% - 50vw); width: 100vw;
  top: calc(var(--card-w) * 4 / 3 * .52); bottom: 0; background: var(--white); }
.trio-framed .trio-card { text-align: center; color: var(--ink); }
.trio-framed .trio-card:nth-child(2) { margin-top: 70px; }
.trio-framed .ph-wrap { position: relative; margin: 14px 0 0 14px; }
.trio-framed .ph-wrap::after { content: ""; position: absolute; inset: 0; transform: translate(-14px, -14px);
  border: 1px solid var(--gold); pointer-events: none; z-index: 2; }
.trio-framed .trio-card h3 { font-size: clamp(30px, 3.2vw, 44px); margin: 46px 0 18px; }
.trio-framed .trio-card p { color: #3d3f3b; font-size: 16px; }
.trio-framed .link-arrow { align-self: center; }
.trio-framed .link-arrow::after { content: none; }
@media (max-width: 860px) {
  .exp-block { --card-w: calc(100vw - 2 * var(--gutter)); }
  .trio-framed { grid-template-columns: 1fr; gap: 60px; }
  .trio-framed .trio-card:nth-child(2) { margin-top: 0; }
  .trio-framed .ph { aspect-ratio: 4 / 5; }
  .trio-framed::before { top: calc(var(--card-w) * 5 / 4 * .5); }
}

/* Instagram con su ícono (pie de página y menú) */
.ig-link { display: inline-flex; align-items: center; gap: 10px; }
.ig-link .ig-ico { width: 22px; height: 22px; flex: none; }
.offcanvas .ig-link .ig-ico { width: 24px; height: 24px; }
