/* Valle Petra — estilos de la landing.
   Requiere fuentes.css y tokens.css (colores de modo claro/oscuro).
   Orden: base, tipografía, logo, cielo y adornos, secciones en el orden de la página,
   animaciones, visor de galería, fotos provisorias y áreas táctiles.
   Regla de la casa: nada de desenfoque de fondo (ver CLAUDE.md). */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.005em;
  transition: background-color .5s ease, color .5s ease;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 400; font-style: normal; letter-spacing: -0.02em; line-height: 1.05; margin: 0; text-wrap: balance; }
/* Fraunces con los ejes SOFT y WONK, como en el logo */
h1, h2, h3, h4, .hero-quote {
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
  font-optical-sizing: auto;
}
h1 { font-size: clamp(48px, 9vw, 132px); }
h2 { font-size: clamp(36px, 5.5vw, 68px); line-height: 1.04; }
h3 { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.18; }
p  { margin: 0; text-wrap: pretty; }
.eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-soft);
  font-weight: 500;
}
.lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--fg-soft); line-height: 1.55; max-width: 56ch; }
.section-head .lead { margin-top: 24px; }
#experiencia .section-head .lead { margin-top: 28px; }

/* ---------- Logo ----------
   Trazos vectoriales de brand/svg (nunca reescribirlo con la fuente).
   Las letras usan currentColor; la estrella, --vp-star. El horizontal es un <symbol>
   que se reutiliza en el menú y el pie con <use>. */
.vp-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.vp-logo { display: block; --vp-star: var(--logo-star); }
.vp-logo-ink { fill: currentColor; }
.vp-logo-star { fill: var(--vp-star); }
.brand .vp-logo { height: 24px; width: auto; }
@media (max-width: 480px) { .brand .vp-logo { height: 20px; } }
header.site .brand { color: var(--cream); }
header.site .brand .vp-logo { --vp-star: var(--gold-bright); }
header.site.scrolled .brand,
header.site.menu-abierto .brand { color: var(--logo-ink); }
header.site.scrolled .brand .vp-logo,
header.site.menu-abierto .brand .vp-logo { --vp-star: var(--logo-star); }
.hero h1.hero-logo { display: flex; justify-content: center; line-height: 0; }
/* margen interno para que la sombra del logo no quede recortada por la máscara de la animación */
.hero h1.hero-logo > span:first-child { padding: 24px; margin: -24px; }
.hero h1.hero-logo .vp-logo {
  width: clamp(230px, 30vw, 440px); height: auto;
  color: var(--cream); --vp-star: var(--gold-bright);
  filter: drop-shadow(0 2px 12px rgba(20,12,8,.45));
}
.foot .foot-mark .vp-logo { height: 20px; width: auto; color: var(--logo-ink); }
/* Texto solo para lectores de pantalla */
.vp-sr {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding-inline: clamp(20px, 4vw, 56px); }
section { padding-block: clamp(80px, 11vw, 160px); position: relative; }

/* ---------- Starfield (dark mode only) ----------
   Cielo nocturno procedural: 3 capas de estrellas a distintas escalas
   + 2 nebulosas muy tenues evocando la Vía Láctea. Fixed para
   persistir entre secciones, opacidad baja para no distraer. */
html[data-theme="dark"] body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    /* Vignette atmosférico: glow muy sutil arriba y profundidad abajo */
    radial-gradient(ellipse 110% 60% at 50% -10%, rgba(120,145,210,0.10), transparent 70%),
    radial-gradient(ellipse 100% 60% at 50% 110%, rgba(28,36,71,0.45), transparent 70%),
    /* Campo de estrellas — múltiples capas tileadas a distintas escalas
       para evitar repetición visible */
    radial-gradient(1.6px 1.6px at 47px 23px, #ffffff, transparent 60%),
    radial-gradient(1.4px 1.4px at 173px 81px, rgba(235,242,255,0.95), transparent 60%),
    radial-gradient(1.4px 1.4px at 89px 137px, rgba(255,245,225,0.9), transparent 60%),
    radial-gradient(1.1px 1.1px at 218px 41px, rgba(255,255,255,0.85), transparent 55%),
    radial-gradient(1.1px 1.1px at 11px 109px, rgba(220,230,255,0.85), transparent 55%),
    radial-gradient(0.9px 0.9px at 134px 19px, rgba(255,255,255,0.75), transparent 50%),
    radial-gradient(0.9px 0.9px at 67px 71px, rgba(245,235,255,0.7), transparent 50%),
    radial-gradient(0.7px 0.7px at 198px 113px, rgba(255,255,255,0.6), transparent 50%),
    radial-gradient(0.7px 0.7px at 38px 159px, rgba(225,235,255,0.55), transparent 50%),
    radial-gradient(0.6px 0.6px at 152px 95px, rgba(255,255,255,0.5), transparent 50%);
  background-size:
    100% 100%, 100% 100%,
    340px 220px, 380px 240px, 320px 200px,
    260px 180px, 280px 200px,
    220px 160px, 240px 170px,
    180px 140px, 200px 150px, 160px 130px;
  background-repeat:
    no-repeat, no-repeat,
    repeat, repeat, repeat,
    repeat, repeat,
    repeat, repeat,
    repeat, repeat, repeat;
}
/* Estrellas ancla con halo — Sirius, Canopus, Alpha Centauri, Antares y más
   (constelaciones del hemisferio sur, visibles desde el Valle del Elqui).
   Una sola .star-anchor con múltiples box-shadow simula varios puntos brillantes. */
html[data-theme="dark"] body::after {
  content: "";
  position: fixed;
  top: 18%;
  right: 22%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ffffff;
  /* La sombra principal del propio elemento + ancla blanca */
  box-shadow:
    /* Sirius — la estrella ancla original (más brillante) */
    0 0 8px 1px rgba(255,255,255,0.6),
    0 0 24px 6px rgba(180,200,255,0.18),
    /* Canopus — abajo izquierda, blanco-amarillo */
    32vw 58vh 0 -1px rgba(255,250,235,0.95),
    32vw 58vh 6px 0 rgba(255,245,220,0.4),
    32vw 58vh 18px 4px rgba(255,235,200,0.15),
    /* Alpha Centauri — arriba izquierda, blanco cálido */
    -42vw -34vh 0 -1px rgba(255,255,245,0.9),
    -42vw -34vh 5px 0 rgba(255,250,230,0.35),
    -42vw -34vh 16px 3px rgba(245,230,210,0.12),
    /* Antares — derecha media, tinte rojizo (gigante roja) */
    28vw -8vh 0 -1px rgba(255,210,195,0.92),
    28vw -8vh 6px 0 rgba(255,180,160,0.32),
    28vw -8vh 18px 4px rgba(255,150,140,0.12),
    /* Vega — arriba derecha, azul-blanco */
    24vw -36vh 0 -1.2px rgba(225,235,255,0.85),
    24vw -36vh 4px 0 rgba(200,220,255,0.3),
    /* Rigel — abajo derecha, azul */
    -18vw 38vh 0 -1.2px rgba(210,225,255,0.82),
    -18vw 38vh 4px 0 rgba(180,210,255,0.28),
    /* Pequeña azul-verde tenue */
    -8vw 12vh 0 -1.6px rgba(200,235,225,0.7);
  z-index: -1;
  pointer-events: none;
}
html[data-theme="light"] body::before,
html[data-theme="light"] body::after { content: none; }
/* Secciones con fondo de superficie (Alojamientos y Entorno) */
.section-surface {
  background: var(--surface);
  border-top: 1px solid var(--line-c);
  border-bottom: 1px solid var(--line-c);
}
/* En oscuro, fondos semitransparentes para que el cielo respire detrás.
   Sin desenfoque de fondo: en Mac (Chrome y Safari) causaba parpadeos al bajar. */
html[data-theme="dark"] .section-surface,
html[data-theme="dark"] .contact { background: rgba(22, 30, 59, 0.86); }
html[data-theme="dark"] footer.site { background: rgba(17, 24, 50, 0.94); }

/* ---------- Folk diaguita decorations (light mode only) ----------
   Iconografía diaguita en color adobe, planos (sin animación), distribuidos
   como acentos estáticos en los márgenes/blancos de las secciones cream.
   Mantienen el toque premium/minimalista: pocos elementos, escalas grandes,
   siempre fuera de la columna de lectura. */
.diaguita-bg { position: relative; }

/* Halo crema sutil detrás del texto por si un ícono cae cerca del contenido */
html[data-theme="light"] .diaguita-bg h2,
html[data-theme="light"] .diaguita-bg h3,
html[data-theme="light"] .diaguita-bg h4,
html[data-theme="light"] .diaguita-bg .lead,
html[data-theme="light"] .diaguita-bg .eyebrow,
html[data-theme="light"] .diaguita-bg p {
  text-shadow:
    0 0 12px var(--cream),
    0 0 4px rgba(253, 238, 221, 0.85);
}

/* Cada folk-mark se ancla a la sección padre (.diaguita-bg) y vive en margen */
.folk-mark {
  position: absolute;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  pointer-events: none;
  z-index: 0;
  opacity: 0.13;
}
/* Por encima del fondo, pero detrás de las cards: cards quedan en z-index: 1 implícito */
.diaguita-bg .wrap { position: relative; z-index: 1; }

html[data-theme="dark"] .folk-mark { display: none; }

/* ----- EXPERIENCIA: ave grande abajo izquierda, ave-espiral derecha, diamante izquierda ----- */
.folk-experiencia-sun {
  background-image: url("../img/deco/experiencia-ave.webp");
  width: 280px; height: 280px;
  bottom: 8%; left: 4%;
  opacity: 0.10;
}
.folk-experiencia-diamond {
  background-image: url("../img/deco/experiencia-diamante.webp");
  width: 180px; height: 270px;
  top: 8%; left: 4%;
  opacity: 0.11;
}
.folk-experiencia-spiral {
  background-image: url("../img/deco/experiencia-espiral.webp");
  width: 280px; height: 280px;
  top: 8%; right: 4%;
  opacity: 0.11;
}

/* ----- ESPACIOS COMUNES: ave-check arriba derecha, ave-cross abajo izquierda ----- */
.folk-espacios-check {
  background-image: url("../img/deco/espacios-ave.webp");
  width: 300px; height: 270px;
  top: 9%; right: 2vw;
  opacity: 0.12;
  transform: scaleX(-1);
}
.folk-espacios-cross {
  background-image: url("../img/deco/ave-cruz.webp");
  width: 240px; height: 250px;
  bottom: 10%; left: 2vw;
  opacity: 0.11;
}
.folk-espacios-diamond {
  background-image: url("../img/deco/espacios-diamante.webp");
  width: 220px; height: 260px;
  top: 8%; left: 4%;
  opacity: 0.11;
}

/* ----- RESERVAS: ave-espiral arriba derecha + ave-anillada abajo derecha + ave-cruz abajo izquierda ----- */
.folk-reservas-big {
  background-image: url("../img/deco/reservas-ave-espiral.webp");
  width: 300px; height: 300px;
  top: 6%; right: 4%;
  opacity: 0.10;
  transform: scaleX(-1);
}
.folk-reservas-ringed {
  background-image: url("../img/deco/reservas-ave-anillada.webp");
  width: 280px; height: 250px;
  bottom: 8%; right: 4%;
  opacity: 0.11;
  transform: scaleX(-1);
}
.folk-reservas-cross {
  background-image: url("../img/deco/ave-cruz.webp");
  width: 260px; height: 270px;
  bottom: 22%; left: 4%;
  opacity: 0.10;
  transform: scaleX(-1);
}

/* En pantallas chicas reducimos a 1 ícono por sección, más pequeño */
@media (max-width: 900px) {
  .folk-mark { display: none; }
}

  .section-head { display: grid; grid-template-columns: 1fr; gap: 24px; margin-bottom: clamp(48px, 6vw, 88px); max-width: 880px; }
@media (min-width: 900px) {
  .section-head { grid-template-columns: 1fr 1.6fr; gap: 80px; align-items: end; }
}
.section-num { display: inline-flex; align-items: center; gap: 14px; }
.section-num::before {
  content: ""; width: 28px; height: 1px; background: var(--accent); opacity: .6;
}

/* ---------- Header ---------- */
header.site {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding-block: 18px;
  background: transparent;
  transition: background-color .35s ease, padding .35s ease, border-color .35s ease, color .35s ease;
  border-bottom: 1px solid transparent;
  color: var(--on-photo); /* texto claro sobre la foto (ambos modos) */
}
header.site .nav-links a,
header.site .menu-btn span { color: inherit; }
header.site .menu-btn span { background: currentColor; }
header.site .nav-links a { color: rgba(251,238,217,.9); }
header.site .nav-links a:hover { color: #fff; }
header.site .theme-toggle {
  color: var(--on-photo);
  background: rgba(251,238,217,.08);
  border-color: rgba(251,238,217,.5);
}
header.site .theme-toggle .icon-track { color: rgba(251,238,217,.7); }
header.site .theme-toggle .icon-moon-bg { color: rgba(251,238,217,.9); }

header.site.scrolled {
  background: var(--header-bg);
  border-bottom: 1px solid var(--line-c);
  padding-block: 12px;
  color: var(--fg);
}
/* Con el menú de celular abierto (fondo crema o noche), el menú superior toma los
   colores de "al bajar": si no, el logo y la X de cerrar quedaban invisibles. */
header.site.menu-abierto { color: var(--fg); }
header.site.scrolled .nav-links a { color: var(--fg); opacity: .82; }
header.site.scrolled .nav-links a:hover { opacity: 1; color: var(--accent); }
header.site.scrolled .theme-toggle,
header.site.menu-abierto .theme-toggle {
  background: var(--surface);
  border-color: var(--accent);
  color: var(--fg);
}
header.site.scrolled .theme-toggle .icon-track,
header.site.menu-abierto .theme-toggle .icon-track { color: var(--fg-soft); }
header.site.scrolled .theme-toggle .icon-moon-bg,
header.site.menu-abierto .theme-toggle .icon-moon-bg { color: var(--accent); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
/* Separación de 36 px en escritorio grande; se achica en pantallas angostas para que quepan los 6 ítems */
.nav-links { display: none; align-items: center; gap: clamp(20px, 2.6vw, 36px); }
.nav-links a {
  font-size: 14px; color: var(--fg); opacity: .82;
  position: relative; padding-block: 6px;
  white-space: nowrap; /* "El valle" no se parte en dos líneas */
  transition: opacity .25s ease;
}
.nav-links a:hover { opacity: 1; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: var(--accent);
  transition: width .35s cubic-bezier(.2,.8,.2,1);
}
.nav-links a:hover::after { width: 100%; }
.nav-right { display: flex; align-items: center; gap: 16px; }
/* Theme toggle — switch-style, more discoverable */
.theme-toggle {
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  width: 78px; height: 38px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--surface);
  color: var(--fg);
  overflow: hidden;
  transition: background-color .35s ease, border-color .35s ease, box-shadow .35s ease;
  box-shadow: 0 1px 2px rgba(42,31,26,.06);
}
.theme-toggle:hover { box-shadow: 0 6px 18px rgba(170,69,41,.18); }
html[data-theme="dark"] .theme-toggle { border-color: var(--gold-soft); background: rgba(238,237,240,.06); }
html[data-theme="dark"] .theme-toggle:hover { box-shadow: 0 6px 18px rgba(214,185,139,.22); }

.theme-toggle .thumb {
  position: absolute; top: 3px; left: 3px;
  width: 30px; height: 30px;
  border-radius: 999px;
  background: var(--accent);
  transition: transform .45s cubic-bezier(.5,1.6,.4,1), background-color .35s ease;
  display: flex; align-items: center; justify-content: center;
  color: var(--cream);
  box-shadow: 0 2px 6px rgba(0,0,0,.18);
  z-index: 2;
}
html[data-theme="dark"] .theme-toggle .thumb {
  transform: translateX(40px);
  background: var(--gold-bright);
  color: var(--night);
}
.theme-toggle .thumb svg { width: 14px; height: 14px; }
.theme-toggle .icon-track {
  position: relative; z-index: 1;
  flex: 1;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 9px;
  color: var(--fg-soft);
}
.theme-toggle .icon-track svg { width: 13px; height: 13px; }
.theme-toggle .icon-sun-bg { opacity: .4; }
.theme-toggle .icon-moon-bg { opacity: .9; color: var(--accent); }
html[data-theme="dark"] .theme-toggle .icon-sun-bg { opacity: .9; color: var(--gold-bright); }
html[data-theme="dark"] .theme-toggle .icon-moon-bg { opacity: .4; }

.theme-toggle .thumb .icon-sun { display: none; }
.theme-toggle .thumb .icon-moon { display: block; }
html[data-theme="dark"] .theme-toggle .thumb .icon-sun { display: block; }
html[data-theme="dark"] .theme-toggle .thumb .icon-moon { display: none; }

/* First-time hint pulse on theme toggle */
.theme-toggle.hint::after {
  content: "";
  position: absolute; inset: -2px;
  border-radius: 999px;
  border: 2px solid var(--accent);
  animation: ringPulse 2.2s ease-out infinite;
  pointer-events: none;
}
html[data-theme="dark"] .theme-toggle.hint::after { border-color: var(--gold-bright); }
@keyframes ringPulse {
  0% { opacity: .9; transform: scale(1); }
  80% { opacity: 0; transform: scale(1.25); }
  100% { opacity: 0; transform: scale(1.25); }
}

.menu-btn { display: inline-flex; flex-direction: column; gap: 5px; padding: 10px; }
.menu-btn span { width: 22px; height: 1px; background: var(--fg); display: block; transition: transform .3s ease, opacity .3s ease; }
.menu-btn.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (min-width: 880px) {
  .nav-links { display: flex; }
  .menu-btn { display: none; }
}

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--bg);
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  padding: 100px clamp(20px, 5vw, 56px) 60px;
  transform: translateY(-100%);
  transition: transform .55s cubic-bezier(.7,0,.2,1);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a { font-family: var(--font-serif); font-size: clamp(36px, 8vw, 56px); padding-block: 8px; }
.mobile-menu a + a { border-top: 1px solid var(--line-c); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 26px;
  font-size: 14px; font-weight: 500;
  border-radius: 999px;
  transition: background-color .35s cubic-bezier(.2,.8,.2,1), color .35s cubic-bezier(.2,.8,.2,1), border-color .35s cubic-bezier(.2,.8,.2,1), transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s cubic-bezier(.2,.8,.2,1), letter-spacing .35s ease;
  will-change: transform;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(80% 120% at 50% 100%, rgba(255,255,255,.18), transparent 60%);
  opacity: 0;
  transition: opacity .4s ease;
  z-index: -1;
}
.btn:hover { transform: translateY(-2px) scale(1.02); letter-spacing: 0.005em; }
.btn:hover::before { opacity: 1; }
.btn:active { transform: translateY(0) scale(.98); }
.btn .arrow {
  width: 14px; height: 14px;
  transition: transform .45s cubic-bezier(.2,.8,.2,1);
}
.btn:hover .arrow { transform: translateX(6px); }
.btn-outline {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--fg);
}
.btn-outline:hover { background: var(--fg); color: var(--bg); box-shadow: 0 12px 30px rgba(42,31,26,.18); }
html[data-theme="dark"] .btn-outline { border-color: rgba(238,237,240,.4); }
html[data-theme="dark"] .btn-outline:hover { background: var(--ivory); color: var(--night); }


/* ---------- Hero ---------- */
.hero {
  min-height: 100vh; min-height: 100svh;
  position: relative; overflow: hidden;
  display: flex; align-items: center;
  padding-block: 110px 200px;
  color: var(--on-photo);
}
/* Difuminado inferior: la foto se disuelve hacia el color de la página */
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 40%; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, var(--bg) 100%);
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  will-change: transform;
  -webkit-mask-image: linear-gradient(180deg, #000 76%, transparent 99%);
          mask-image: linear-gradient(180deg, #000 76%, transparent 99%);
}
/* Foto del encabezado: dos recortes con <picture> (ancho y vertical 9:16) */
.hero-bg picture,
.hero-bg img { display: block; width: 100%; height: 100%; }
.hero-bg img { object-fit: cover; object-position: center 60%; }
/* Oscurecimiento al centro, detrás del logo y los textos, para dar contraste */
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 62% 70% at 50% 52%, rgba(20,12,8,.5) 0%, rgba(20,12,8,.14) 60%, rgba(20,12,8,0) 100%),
    linear-gradient(180deg, rgba(20,12,8,.35) 0%, rgba(20,12,8,.10) 35%, rgba(20,12,8,.65) 100%);
}
html[data-theme="dark"] .hero-bg::after {
  background:
    radial-gradient(ellipse 62% 70% at 50% 52%, rgba(8,10,22,.66) 0%, rgba(8,10,22,.24) 60%, rgba(8,10,22,0) 100%),
    linear-gradient(180deg, rgba(8,10,22,.55) 0%, rgba(8,10,22,.15) 35%, rgba(8,10,22,.8) 100%);
}
.hero .wrap {
  position: relative; z-index: 2; width: 100%;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.hero-eyebrow {
  color: rgba(251,238,217,.92);
  margin-bottom: 28px;
  text-shadow: 0 1px 12px rgba(20,12,8,.5);
}
.hero h1 {
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: var(--on-photo);
  text-shadow: 0 2px 24px rgba(20,12,8,.55), 0 1px 2px rgba(20,12,8,.4);
}
.hero-sub {
  margin-top: 28px; margin-inline: auto;
  font-size: clamp(18px, 1.6vw, 22px);
  color: rgba(251,238,217,.92);
  max-width: 36ch;
  text-shadow: 0 1px 14px rgba(20,12,8,.55);
}
.hero-quote {
  margin-top: 14px; margin-inline: auto;
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(18px, 1.6vw, 22px);
  color: rgba(251,238,217,.85);
  font-weight: 300;
  text-shadow: 0 1px 12px rgba(20,12,8,.5);
}
.hero-ctas { margin-top: 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px; }

/* Hero primary — enlarged, glowing, magnetic */
.hero .btn-reservar {
  position: relative;
  display: inline-flex; align-items: center; gap: 16px;
  padding: 22px 36px 22px 32px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(18px, 1.6vw, 22px);
  letter-spacing: -0.01em;
  background: var(--accent);
  color: var(--on-photo);
  border: 1px solid var(--accent);
  border-radius: 999px;
  box-shadow: 0 12px 36px rgba(170, 69, 41, 0.45), 0 1px 0 rgba(255,255,255,.18) inset;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, background-color .3s ease;
  overflow: hidden;
  isolation: isolate;
}
.hero .btn-reservar::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(120% 140% at 0% 0%, rgba(255,238,217,.35), transparent 55%);
  opacity: .8;
  z-index: -1;
  transition: opacity .35s ease;
}
.hero .btn-reservar::after {
  content: "";
  position: absolute; inset: -2px;
  border-radius: 999px;
  box-shadow: 0 0 0 0 rgba(224, 175, 127, 0.55);
  animation: ctaPulse 2.6s ease-out infinite;
  pointer-events: none;
  z-index: -1;
}
@keyframes ctaPulse {
  0% { box-shadow: 0 0 0 0 rgba(224, 175, 127, 0.55); }
  70% { box-shadow: 0 0 0 22px rgba(224, 175, 127, 0); }
  100% { box-shadow: 0 0 0 0 rgba(224, 175, 127, 0); }
}
.hero .btn-reservar:hover {
  transform: translateY(-2px);
  background: var(--accent-hover);
  box-shadow: 0 18px 48px rgba(170, 69, 41, 0.55);
}
.hero .btn-reservar:hover::before { opacity: 1; }
.hero .btn-reservar .arrow {
  width: 18px; height: 18px;
  transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.hero .btn-reservar:hover .arrow { transform: translateX(6px); }
.hero .btn-reservar .pin {
  width: 28px; height: 28px;
  border-radius: 999px;
  background: rgba(251,238,217,.18);
  display: inline-flex; align-items: center; justify-content: center;
  margin-right: 4px;
}
.hero .btn-reservar .pin svg { width: 14px; height: 14px; }

html[data-theme="dark"] .hero .btn-reservar {
  background: var(--gold-soft); color: var(--night); border-color: var(--gold-soft);
  box-shadow: 0 12px 36px rgba(214, 185, 139, 0.35), 0 1px 0 rgba(255,255,255,.25) inset;
}
html[data-theme="dark"] .hero .btn-reservar:hover {
  background: var(--gold-bright); border-color: var(--gold-bright);
  box-shadow: 0 18px 48px rgba(233, 202, 148, 0.45);
}
html[data-theme="dark"] .hero .btn-reservar .pin { background: rgba(17, 24, 50, .12); }

.hero-cta-hint {
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(251,238,217,.78);
  text-shadow: 0 1px 10px rgba(20,12,8,.55);
  flex-basis: 100%;
}
/* En claro el aviso cae sobre el difuminado crema: texto oscuro y sin sombra */
html[data-theme="light"] .hero-cta-hint { color: var(--ink); text-shadow: none; }
.hero .btn-outline {
  color: var(--on-photo);
  border-color: rgba(251,238,217,.55);
  background: rgba(20,12,8,.34);
}
.hero .btn-outline:hover { background: var(--on-photo); color: var(--ink); border-color: var(--on-photo); }


/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: 1fr; gap: 56px; margin-top: 32px; }
@media (min-width: 760px) {
  .pillars { grid-template-columns: repeat(3, 1fr); gap: 56px; }
}
.pillar { padding-top: 36px; position: relative; }
/* Acento adobe: barra corta + escalón diaguita — coherente con el patrón de fondo,
   más evidente que un border-top hairline */
.pillar::before {
  content: "";
  position: absolute; top: 0; left: 0;
  width: 44px; height: 3px;
  background: var(--accent);
  border-radius: 1px;
}
.pillar-icon {
  width: 36px; height: 36px;
  color: var(--accent);
  margin-bottom: 24px;
  stroke-width: 1.4;
  transition: transform .5s cubic-bezier(.2,.8,.2,1), color .3s ease;
}
.pillar:hover .pillar-icon { transform: scale(1.15) rotate(-6deg); }
.pillar h3 { font-size: clamp(28px, 3vw, 36px); margin-bottom: 14px; }
.pillar p { color: var(--fg-soft); }

/* ---------- Lodgings ---------- */
.lodgings { display: grid; grid-template-columns: 1fr; gap: clamp(28px, 3vw, 40px); }
@media (min-width: 720px) { .lodgings { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .lodgings { grid-template-columns: repeat(3, 1fr); } }

.lodge {
  background: var(--surface);
  border: 1px solid var(--line-c);
  border-radius: 14px;
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 6px 20px rgba(42,31,26,.06), 0 2px 6px rgba(42,31,26,.04);
  transition: transform .5s cubic-bezier(.2,.8,.2,1), border-color .3s ease, background-color .3s ease, box-shadow .5s cubic-bezier(.2,.8,.2,1);
}
html[data-theme="dark"] .lodge { box-shadow: 0 8px 24px rgba(0,0,0,.28), 0 2px 6px rgba(0,0,0,.18); }
.lodge:hover { transform: translateY(-8px); border-color: var(--accent); box-shadow: 0 28px 64px rgba(42,31,26,.18), 0 4px 12px rgba(42,31,26,.08); }
html[data-theme="dark"] .lodge:hover { box-shadow: 0 28px 64px rgba(0,0,0,.5), 0 4px 12px rgba(0,0,0,.3); }
.lodge-img {
  aspect-ratio: 4/3;
  overflow: hidden; position: relative;
  background: var(--surface-2);
}
.lodge-img .lodge-track {
  position: absolute; inset: 0;
  display: flex;
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
  will-change: transform;
}
.lodge-img .lodge-track img {
  flex: 0 0 100%;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.4s cubic-bezier(.2,.8,.2,1);
}
.lodge:hover .lodge-img .lodge-track img { transform: scale(1.04); }

.lodge-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px;
  border-radius: 999px;
  background: rgba(20,12,8,.55);
  color: var(--on-photo);
  display: inline-flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .25s ease, background-color .25s ease;
  z-index: 3;
}
.lodge-img:hover .lodge-nav,
.lodge-nav:focus-visible { opacity: 1; }
.lodge-nav:hover { background: rgba(20,12,8,.75); }
.lodge-nav.prev { left: 12px; }
.lodge-nav.next { right: 12px; }
.lodge-nav svg { width: 14px; height: 14px; }

.lodge-dots {
  position: absolute; bottom: 12px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
  z-index: 3;
}
.lodge-dots button {
  width: 6px; height: 6px; border-radius: 999px;
  background: rgba(251,238,217,.5);
  transition: width .3s ease, background-color .3s ease;
  padding: 0; border: 0; cursor: pointer;
}
.lodge-dots button.active { width: 18px; background: var(--on-photo); }

.lodge-counter {
  position: absolute; bottom: 12px; right: 14px;
  background: rgba(20,12,8,.5);
  color: var(--on-photo);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.05em;
  z-index: 3;
  font-variant-numeric: tabular-nums;
}
.lodge-tag {
  position: absolute; top: 14px; left: 14px;
  background: rgba(20,12,8,.66);
  color: var(--on-photo);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
}
.lodge-body { padding: 28px; display: flex; flex-direction: column; gap: 18px; flex: 1; }
.lodge-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.lodge-head h3 { font-size: clamp(28px, 2.6vw, 34px); }
.lodge-price { font-family: var(--font-serif); color: var(--accent); font-size: 18px; white-space: nowrap; }
.lodge-price small { font-family: var(--font-sans); color: var(--fg-soft); font-size: 11px; display: block; letter-spacing: 0.08em; }
.lodge-meta {
  display: flex; flex-wrap: wrap; gap: 8px 14px;
  font-size: 13px; color: var(--fg-soft);
}
.lodge-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--fg-soft); display: inline-block; align-self: center; }
.lodge-features {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 8px;
  font-size: 14px; color: var(--fg-soft);
  padding-top: 16px; border-top: 1px solid var(--line-c);
}
.lodge-features li { display: flex; align-items: center; gap: 10px; }
.lodge-features li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); display: inline-block; flex-shrink: 0; }
.lodge-cta { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.lodge-cta a {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--fg); font-size: 14px;
  border-bottom: 1px solid var(--line-c);
  padding-block: 6px;
  transition: color .25s ease, border-color .25s ease;
}
.lodge-cta a:hover { color: var(--accent); border-color: var(--accent); }
.lodge-gallery-btn {
  background: transparent;
  color: var(--fg-soft);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 0;
  transition: color .25s ease, transform .35s cubic-bezier(.2,.8,.2,1);
  border: 0;
  cursor: pointer;
}
.lodge-gallery-btn svg { width: 14px; height: 14px; transition: transform .35s ease; }
.lodge-gallery-btn:hover { color: var(--accent); }
.lodge-gallery-btn:hover svg { transform: scale(1.15); }
.lodge-img.clickable { cursor: zoom-in; }
.lodge-img.clickable::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(20,12,8,0);
  transition: background-color .35s ease;
  pointer-events: none;
}
.lodge-img.clickable:hover::after { background: rgba(20,12,8,.08); }

.lodge-note {
  margin-top: 32px;
  padding: 24px clamp(20px, 3vw, 32px);
  background: var(--surface);
  border-radius: 12px;
  border: 1px solid var(--line-c);
  color: var(--fg-soft);
  font-size: 14px;
  display: flex; flex-direction: column; gap: 6px;
  box-shadow: 0 4px 14px rgba(42,31,26,.05), 0 1px 3px rgba(42,31,26,.03);
}
html[data-theme="dark"] .lodge-note { box-shadow: 0 6px 18px rgba(0,0,0,.22), 0 1px 3px rgba(0,0,0,.14); }
@media (min-width: 700px) {
  .lodge-note { flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; }
}
.lodge-note-rate { color: var(--accent); font-family: var(--font-serif); }

/* ---------- Mosaico de espacios ---------- */
.mosaic {
  display: grid; gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .mosaic {
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 220px;
    gap: 20px;
  }
  .m-1 { grid-column: span 4; grid-row: span 2; }
  .m-2 { grid-column: span 2; grid-row: span 1; }
  .m-3 { grid-column: span 2; grid-row: span 1; }
  .m-4 { grid-column: span 3; grid-row: span 1; }
  .m-5 { grid-column: span 3; grid-row: span 1; }
}
.m-block {
  position: relative; overflow: hidden;
  border-radius: 14px;
  display: block;
  width: 100%;
  padding: 0;
  text-align: left;
  box-shadow: 0 8px 24px rgba(42,31,26,.10), 0 2px 6px rgba(42,31,26,.05);
}
html[data-theme="dark"] .m-block { box-shadow: 0 10px 28px rgba(0,0,0,.35), 0 3px 8px rgba(0,0,0,.22); }
/* En celular, proporción 4:3; desde 720 px manda la altura de fila de la grilla */
.m-block { background: var(--surface-2); aspect-ratio: 4/3; }
@media (min-width: 720px) { .m-block { aspect-ratio: auto; } }
.m-block img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s cubic-bezier(.2,.8,.2,1); }
.m-block { transition: transform .55s cubic-bezier(.2,.8,.2,1), box-shadow .55s ease; }
.m-block:hover { transform: translateY(-4px); box-shadow: 0 28px 64px rgba(42,31,26,.22), 0 4px 12px rgba(42,31,26,.10); }
html[data-theme="dark"] .m-block:hover { box-shadow: 0 28px 64px rgba(0,0,0,.55), 0 4px 12px rgba(0,0,0,.32); }
.m-block:hover img { transform: scale(1.07); }
.m-block::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,12,8,0) 50%, rgba(20,12,8,.7) 100%);
}
.m-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 24px;
  color: var(--on-photo);
  z-index: 2;
}
.m-caption h3 { font-size: clamp(22px, 2vw, 28px); color: var(--on-photo); margin-bottom: 6px; }
.m-caption p { font-size: 13px; color: rgba(251,238,217,.78); }
.m-badge {
  position: absolute; top: 14px; right: 14px;
  z-index: 3;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(20,12,8,.66);
  color: var(--on-photo);
  font-size: 11px; letter-spacing: 0.1em;
  border: 1px solid rgba(251,238,217,.18);
  transition: background-color .35s ease, color .35s ease, transform .35s cubic-bezier(.2,.8,.2,1);
  font-variant-numeric: tabular-nums;
}
.m-badge svg { width: 13px; height: 13px; }
.m-block:hover .m-badge { background: var(--accent); color: var(--night); transform: translateY(-2px); }

/* ---------- Location ---------- */
.loc-grid { display: grid; gap: 40px; grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 900px) { .loc-grid { grid-template-columns: 1fr 1.1fr; gap: 56px; } }
.loc-text { display: flex; flex-direction: column; gap: 24px; }
.loc-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.loc-list > div {
  display: grid; grid-template-columns: 140px 1fr; gap: 16px;
  padding-block: 18px;
  border-top: 1px solid var(--line-c);
  font-size: 15px;
}
.loc-list > div:last-child { border-bottom: 1px solid var(--line-c); }
.loc-list dt { color: var(--fg-soft); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; padding-top: 3px; }
.loc-list dd { margin: 0; color: var(--fg); }
.map-wrap {
  border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line-c);
  min-height: 380px;
  background: var(--surface-2);
  position: relative;
}
.map-wrap iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; filter: var(--map-filter, none); }
html[data-theme="dark"] .map-wrap { --map-filter: invert(0.92) hue-rotate(180deg) saturate(0.7) brightness(0.95); }

/* Editorial strip: una tira unificada con divisores sutiles, sin fondos individuales */
.nearby {
  margin-top: clamp(56px, 7vw, 96px);
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line-c);
  border-bottom: 1px solid var(--line-c);
  background: transparent;
}
@media (min-width: 700px) { .nearby { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .nearby { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .nearby { grid-template-columns: repeat(5, 1fr); } }
.nearby-cell {
  background: transparent;
  padding: 32px 26px;
  display: flex; flex-direction: column; gap: 14px;
  position: relative;
  transition: background-color .4s ease, transform .5s cubic-bezier(.2,.8,.2,1);
}
/* Divisor entre celdas — sutil línea adobe a baja opacidad */
.nearby-cell + .nearby-cell { border-top: 1px solid var(--line-c); }
@media (min-width: 700px) {
  .nearby-cell + .nearby-cell { border-top: none; }
  /* línea vertical entre columnas; se desactiva en la primera de cada fila vía nth-child */
  .nearby-cell::before {
    content: ""; position: absolute; top: 22px; bottom: 22px; left: 0;
    width: 1px; background: var(--line-c);
  }
  .nearby-cell:nth-child(2n+1)::before { display: none; }
}
@media (min-width: 900px) {
  .nearby-cell:nth-child(2n+1)::before { display: block; }
  .nearby-cell:nth-child(3n+1)::before { display: none; }
}
@media (min-width: 1100px) {
  .nearby-cell:nth-child(3n+1)::before { display: block; }
  .nearby-cell:nth-child(5n+1)::before { display: none; }
}
.nearby-cell:hover { background: color-mix(in oklch, var(--accent) 5%, transparent); }
html[data-theme="dark"] .nearby-cell:hover { background: color-mix(in oklch, var(--accent) 8%, transparent); }
.nearby-cell svg { width: 22px; height: 22px; color: var(--accent); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.nearby-cell:hover svg { transform: scale(1.15) rotate(-6deg); }
.nearby-cell h4 { font-family: var(--font-serif); font-size: 22px; }
.nearby-cell p { font-size: 13px; color: var(--fg-soft); line-height: 1.5; }

/* ---------- Reservas ---------- */
.resv-cards {
  display: grid; gap: clamp(20px, 2.4vw, 28px);
  grid-template-columns: 1fr;
}
@media (min-width: 760px) { .resv-cards { grid-template-columns: repeat(3, 1fr); } }
.resv-card {
  background: var(--surface);
  border: 1px solid var(--line-c);
  border-radius: 14px;
  padding: 36px 32px;
  display: flex; flex-direction: column; gap: 18px;
  box-shadow: 0 6px 20px rgba(42,31,26,.06), 0 2px 6px rgba(42,31,26,.04);
  transition: border-color .3s ease, transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .5s cubic-bezier(.2,.8,.2,1);
}
html[data-theme="dark"] .resv-card { box-shadow: 0 8px 24px rgba(0,0,0,.28), 0 2px 6px rgba(0,0,0,.18); }
.resv-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 22px 50px rgba(42,31,26,.14), 0 3px 10px rgba(42,31,26,.06); }
html[data-theme="dark"] .resv-card:hover { box-shadow: 0 22px 50px rgba(0,0,0,.45), 0 3px 10px rgba(0,0,0,.25); }
.resv-num {
  display: block;
  width: 44px;
  height: 3px;
  background: var(--accent);
  border-radius: 1px;
  font-size: 0;
  color: transparent;
}
.resv-card h3 { font-size: 26px; }
.resv-card p, .resv-card ul { color: var(--fg-soft); font-size: 14px; line-height: 1.6; }
.resv-card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.resv-card ul li { display: flex; align-items: flex-start; gap: 10px; }
.resv-card ul li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); margin-top: 9px; flex-shrink: 0; }

.practical {
  margin: 80px 0 1em;
  display: grid; gap: 0;
  grid-template-columns: 1fr;
  background: var(--bg);
  border: 1px solid var(--line-c);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(42,31,26,.07), 0 2px 6px rgba(42,31,26,.04);
}
html[data-theme="dark"] .practical { box-shadow: 0 10px 28px rgba(0,0,0,.28), 0 2px 6px rgba(0,0,0,.18); }
@media (min-width: 540px) { .practical { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .practical { grid-template-columns: repeat(4, 1fr); } }
.practical-item {
  padding: 32px 28px;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 20px;
  align-items: start;
  position: relative;
  transition: background-color .35s ease;
}
.practical-item:hover { background: var(--surface); }
/* Vertical separators */
@media (min-width: 540px) {
  .practical-item:nth-child(2n) { border-left: 1px solid var(--line-c); }
}
@media (min-width: 1080px) {
  .practical-item:nth-child(2n) { border-left: 0; }
  .practical-item:not(:nth-child(4n+1)) { border-left: 1px solid var(--line-c); }
}
/* Horizontal separators */
@media (min-width: 540px) and (max-width: 1079px) {
  .practical-item:nth-last-child(n+3) { border-bottom: 1px solid var(--line-c); }
}
@media (min-width: 1080px) {
  .practical-item:nth-last-child(n+5) { border-bottom: 1px solid var(--line-c); }
}
@media (max-width: 539px) {
  .practical-item:not(:last-child) { border-bottom: 1px solid var(--line-c); }
}
.practical-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background-color .35s ease, transform .35s ease;
}
.practical-icon svg { width: 18px; height: 18px; }
.practical-item:hover .practical-icon { background: var(--accent); color: var(--cream); transform: rotate(-4deg); }
html[data-theme="dark"] .practical-item:hover .practical-icon { color: var(--night); }
/* cada dato es un <dl> pequeño (título + valor); el ícono queda fuera */
.practical-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; margin: 0; }
.practical-item dt { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-soft); font-weight: 500; }
.practical-item dd { margin: 0; font-family: var(--font-serif); font-size: clamp(19px, 1.5vw, 22px); line-height: 1.25; letter-spacing: -0.01em; }

/* ---------- Contact ---------- */
.contact {
  background: var(--surface);
  border-top: 1px solid var(--line-c);
}
.contact-grid { display: grid; gap: 56px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.2fr 1fr; gap: 80px; } }
.contact h2 { font-size: clamp(48px, 7vw, 96px); margin-top: 24px; }
.contact-lead { margin-top: 24px; font-size: clamp(18px, 1.5vw, 22px); color: var(--fg-soft); max-width: 38ch; }
.contact-cta { margin-top: 40px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.wa-btn {
  background: var(--accent); color: var(--cream);
  padding: 22px 32px;
  font-size: 18px;
  border-radius: 999px;
  display: inline-flex; align-items: center; gap: 14px;
  border: 1px solid var(--accent);
  font-family: var(--font-serif); font-weight: 400;
  transition: background-color .3s ease, transform .3s ease;
}
html[data-theme="dark"] .wa-btn { color: var(--night); }
.wa-btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.wa-btn svg { width: 22px; height: 22px; }

.wa-secondary {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--fg-soft);
  font-size: 14px;
  margin-left: 20px;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color .25s ease, border-color .25s ease;
}
.wa-secondary svg { width: 16px; height: 16px; }
.wa-secondary:hover { color: var(--accent); border-color: var(--accent); }

.contact-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.contact-list > div {
  display: grid; grid-template-columns: 110px 1fr;
  gap: 16px;
  padding-block: 22px;
  border-top: 1px solid var(--line-c);
  font-size: 16px;
}
.contact-list > div:last-child { border-bottom: 1px solid var(--line-c); }
.contact-list dt { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-soft); padding-top: 4px; }
.contact-list dd { margin: 0; }
.contact-list a { border-bottom: 1px solid transparent; transition: border-color .3s ease, color .3s ease; }
.contact-list a:hover { color: var(--accent); border-color: var(--accent); }
.soon { color: var(--fg-soft); font-style: italic; }

/* ---------- Footer ---------- */
footer.site {
  padding-block: 56px 40px;
  border-top: 1px solid var(--line-c);
  background: var(--bg);
}
.foot {
  display: flex; flex-wrap: wrap; gap: 24px;
  align-items: center; justify-content: space-between;
  color: var(--fg-soft);
  font-size: 13px;
}

/* ---------- Reveal animations ---------- */
.js .reveal {
  opacity: 0;
  transform: translate3d(0, 32px, 0);
  transition: opacity 1.1s cubic-bezier(.16,.84,.27,1), transform 1.1s cubic-bezier(.16,.84,.27,1);
  will-change: opacity, transform;
}
.js .reveal.in { opacity: 1; transform: translate3d(0, 0, 0); }
.reveal.delay-1 { transition-delay: .08s; }
.reveal.delay-2 { transition-delay: .16s; }
.reveal.delay-3 { transition-delay: .24s; }
.reveal.delay-4 { transition-delay: .32s; }

/* Escalonado de grillas: el JS fija --rd (ms) en cada hijo */
.js .stagger > * {
  opacity: 0;
  transform: translate3d(0, 30px, 0);
  transition: opacity 1s cubic-bezier(.16,.84,.27,1), transform 1s cubic-bezier(.16,.84,.27,1);
  transition-delay: var(--rd, 0ms);
  will-change: opacity, transform;
}
.js .stagger.in > * { opacity: 1; transform: translate3d(0, 0, 0); }

/* Título que sube desde una máscara */
.title-rise > span {
  display: inline-block; overflow: hidden;
}
.js .title-rise .inner {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1.1s cubic-bezier(.2,.8,.2,1);
}
.js .title-rise.in .inner { transform: translateY(0); }
.title-rise .delay-2 .inner { transition-delay: .08s; }
.title-rise .delay-3 .inner { transition-delay: .16s; }

/* Botón flotante de WhatsApp */
.wa-float {
  position: fixed; bottom: 24px; right: 24px;
  z-index: 80;
  background: var(--accent);
  color: var(--cream);
  width: 56px; height: 56px;
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px rgba(170, 69, 41, 0.35);
  transition: transform .3s ease, background-color .3s ease, width .35s ease;
  overflow: hidden; white-space: nowrap;
}
html[data-theme="dark"] .wa-float { color: var(--night); box-shadow: 0 12px 30px rgba(214, 185, 139, 0.25); }
.wa-float:hover { background: var(--accent-hover); }
.wa-float svg { width: 22px; height: 22px; flex-shrink: 0; }
.wa-float .label {
  font-size: 14px; font-weight: 500; max-width: 0; opacity: 0;
  transition: max-width .35s ease, opacity .25s ease, margin-left .35s ease;
}
.wa-float:hover { width: auto; padding: 0 20px 0 16px; gap: 10px; }
.wa-float:hover .label { max-width: 200px; opacity: 1; margin-left: 4px; }
@media (max-width: 600px) {
  .wa-float { bottom: 16px; right: 16px; }
}

/* Movimiento reducido: transiciones instantáneas */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0;
  z-index: 1000;
  background: rgba(17, 24, 50, 0); /* night */
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease, background-color .25s ease, visibility 0s linear .25s;
}
/* Sin desenfoque: un fondo noche casi opaco cumple la misma función */
.lightbox[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  background: rgba(17, 24, 50, 0.94);
  transition: opacity .25s ease, background-color .25s ease, visibility 0s;
}
.lightbox-stage {
  position: relative;
  max-width: 90vw;
  max-height: calc(90vh - 80px);
  display: flex;
  align-items: center; justify-content: center;
  transform: scale(.95);
  transition: transform .25s cubic-bezier(.2,.8,.2,1);
}
.lightbox[aria-hidden="false"] .lightbox-stage { transform: scale(1); }
.lightbox-img {
  max-width: 90vw;
  max-height: calc(90vh - 80px);
  width: auto; height: auto;
  object-fit: contain;
  border-radius: 8px;
  background: #111832;
  transition: opacity .2s ease;
  user-select: none;
  -webkit-user-drag: none;
}
.lightbox-img.swapping { opacity: 0; }

.lightbox-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 44px; height: 44px;
  border-radius: 999px;
  background: rgba(238, 237, 240, 0.08);
  color: #EEEDF0;
  border: 1px solid rgba(238, 237, 240, 0.2);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .35s cubic-bezier(.2,.8,.2,1);
  z-index: 2;
}
.lightbox-close:hover { color: #D6B98B; border-color: #D6B98B; background: rgba(214, 185, 139, 0.12); transform: rotate(90deg); }
.lightbox-close svg { width: 18px; height: 18px; }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px; height: 56px;
  border-radius: 999px;
  background: rgba(238, 237, 240, 0.08);
  color: #EEEDF0;
  border: 1px solid rgba(238, 237, 240, 0.2);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, opacity .25s ease;
  z-index: 2;
  opacity: 0;
}
.lightbox:hover .lightbox-nav,
.lightbox-nav:focus-visible { opacity: 1; }
.lightbox-nav:hover { color: #D6B98B; border-color: #D6B98B; background: rgba(214, 185, 139, 0.12); }
.lightbox-nav.prev { left: 24px; }
.lightbox-nav.next { right: 24px; }
.lightbox-nav svg { width: 22px; height: 22px; }
@media (max-width: 720px) {
  .lightbox-nav { opacity: 1; width: 44px; height: 44px; }
  .lightbox-nav.prev { left: 12px; }
  .lightbox-nav.next { right: 12px; }
}

.lightbox-meta {
  position: absolute;
  bottom: 24px;
  left: 0; right: 0;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding-inline: 16px;
  text-align: center;
  color: #EEEDF0;
  pointer-events: none;
}
.lightbox-title {
  font-family: var(--font-serif);
  font-size: 18px;
  letter-spacing: -0.01em;
  color: rgba(238,237,240,.85);
}
.lightbox-counter {
  font-family: var(--font-serif);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: rgba(238,237,240,.7);
  font-variant-numeric: tabular-nums;
}
.lightbox-dots {
  display: flex; gap: 6px;
  pointer-events: auto;
}
.lightbox-dots button {
  width: 6px; height: 6px;
  border-radius: 999px;
  background: rgba(238,237,240,.4);
  border: 0; padding: 0;
  cursor: pointer;
  transition: width .3s ease, background-color .3s ease;
}
.lightbox-dots button.active { width: 22px; background: #D6B98B; }

body.lb-open { overflow: hidden; }

/* ---------- Mosaico: un botón cubre toda la tarjeta ----------
   Así el título sigue siendo un <h3> (un <button> no puede contener títulos). */
.m-open {
  position: absolute; inset: 0; z-index: 4;
  border-radius: inherit;
  cursor: zoom-in;
}
.m-open:focus-visible { outline: 2px solid var(--on-photo); outline-offset: -4px; }

/* ---------- Fotos provisorias ----------
   Fotos de stock del diseño que todavía no son de Valle Petra (frontis, piscina,
   quincho, fogón, tinas y parte de los jardines). En el HTML llevan data-provisoria
   y se muestran con la etiqueta "Imagen referencial" hasta reemplazarlas. */
.ref-tag {
  position: absolute; z-index: 3;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(20,12,8,.66);
  color: var(--on-photo);
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  pointer-events: none;
}
.lodge-img .ref-tag { top: 14px; right: 14px; opacity: 0; transition: opacity .25s ease; }
.lodge-img.es-provisoria .ref-tag { opacity: 1; }
.m-block .ref-tag { top: 14px; left: 14px; }
.lightbox-ref { position: static; align-self: center; }
.lightbox-ref[hidden] { display: none; }

/* ---------- Rendimiento ----------
   Las tarjetas mantienen su capa (sin promoverla y degradarla al pasar el mouse)
   y se libera memoria de GPU cuando termina la animación de entrada. */
.lodge, .m-block, .resv-card { will-change: transform; }
.lodge-img, .m-block { isolation: isolate; }
.js .reveal.in, .js .stagger.in > * { will-change: auto; }

/* ---------- Áreas táctiles de al menos 44 px de alto, sin cambiar el aspecto ---------- */
.menu-btn, .lodge-nav, .lodge-dots button, .lightbox-dots button,
.lodge-gallery-btn, .lodge-cta a, .wa-secondary { position: relative; }
.menu-btn::before, .lodge-nav::before, .lodge-dots button::before, .lightbox-dots button::before,
.lodge-gallery-btn::before, .lodge-cta a::before, .wa-secondary::before {
  content: ""; position: absolute;
}
.menu-btn::before { inset: -6px 0; }
.lodge-nav::before { inset: -4px; border-radius: 999px; }
/* los puntos están a 12 px del borde inferior de la foto, que recorta: el área crece hacia arriba */
.lodge-dots button::before { inset: -26px -3px -12px; }
.lightbox-dots button::before { inset: -19px -3px; }
.lodge-gallery-btn::before { inset: -8px 0; }
.lodge-cta a::before, .wa-secondary::before { inset: -5px 0; }
