/* =========================================================
   Adquintue Cabañas — styles.css
   Paleta oficial de marca: #B18032 · #3F2710 · #201312 + blanco
   ========================================================= */

:root {
  --white: #ffffff;
  --paper: #faf6f0;
  --sand: #f1e8dc;
  --brown-900: #201312;
  --brown-800: #3f2710;
  --brown-700: #53341a;
  --brown-500: #8f6425;
  --caramel: #b18032;
  --caramel-soft: #d2a55e;
  --ink: var(--brown-900);
  --ink-soft: #5b4a3e;
  --ink-mute: #8a7a6d;
  --line: rgba(32, 19, 18, 0.12);
  --line-light: rgba(255, 255, 255, 0.28);
  --whatsapp: #25d366;

  --f-display: "Cormorant Garamond", "Georgia", serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 14px;
  --radius-lg: 22px;
  --nav-h: 76px;
  --gutter: clamp(1.1rem, 4vw, 3rem);
  --shadow: 0 1px 2px rgba(32, 19, 18, 0.05), 0 18px 40px -18px rgba(32, 19, 18, 0.28);
}

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

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--white);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
html.is-locked, html.is-locked body { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
:focus-visible { outline: 2px solid var(--caramel); outline-offset: 3px; border-radius: 4px; }

.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(5rem, 11vw, 9rem); position: relative; }

.eyebrow {
  font-family: var(--f-body);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--caramel);
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(3rem, 6vw, 4.5rem); }
.section-head .eyebrow { margin-bottom: 1.2rem; }
.section-head-left { text-align: left; margin-inline: 0; }

.section-title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(2.3rem, 5.2vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--brown-900);
  text-wrap: balance;
}
.section-title em { font-style: italic; color: var(--brown-500); }
.section-lead {
  margin-top: 1.3rem;
  color: var(--ink-soft);
  font-size: 1.06rem;
  max-width: 54ch;
  margin-inline: auto;
}
.section-head-left .section-lead { margin-inline: 0; }
.section-lead a { color: var(--brown-500); text-underline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 50px;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.35s var(--ease-out), background-color 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.35s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); }
.btn-solid { background: var(--brown-800); color: var(--white); }
.btn-solid:hover { background: var(--brown-500); box-shadow: 0 12px 26px -12px rgba(63, 39, 16, 0.6); }
.btn-light { background: var(--white); color: var(--brown-900); }
.btn-light:hover { background: var(--sand); }
.btn-ghost-light { border: 1px solid var(--line-light); color: var(--white); background: rgba(255, 255, 255, 0.06); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.6); }
.btn-whatsapp { background: var(--brown-800); color: var(--white); padding-left: 1.3rem; }
.btn-whatsapp .i-wa { color: var(--whatsapp); }
.btn-whatsapp:hover { background: var(--brown-500); box-shadow: 0 14px 30px -14px rgba(63, 39, 16, 0.7); }
.i-wa { width: 20px; height: 20px; fill: currentColor; flex: none; }

/* ---------- Logo ---------- */
.logo-icon {
  width: 38px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linejoin: round;
  stroke-linecap: round;
  flex: none;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}
.nav-logo-img { height: 44px; width: auto; }
/* Arriba de todo el logo grande está en la portada: el de la barra aparece al bajar */
.nav .nav-logo { transition: opacity 0.4s var(--ease-out), visibility 0.4s; }
.nav:not(.is-solid):not(.menu-open) .nav-logo { opacity: 0; visibility: hidden; }
.logo-word {
  font-family: var(--f-display);
  font-size: 1.65rem;
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: 0.01em;
  display: flex;
  flex-direction: column;
}
.logo-word small {
  font-family: var(--f-body);
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  margin-top: 0.3rem;
  opacity: 0.8;
}

/* ---------- Splash ---------- */
.splash {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  background: var(--white);
  color: var(--brown-800);
  transition: opacity 0.7s var(--ease-out), visibility 0.7s;
  animation: splashSafety 0.01s 4.5s forwards;
}
.splash.is-out { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes splashSafety { to { opacity: 0; visibility: hidden; pointer-events: none; } }
.splash-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--f-display);
  font-size: 1.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.splash-mark img { width: clamp(180px, 40vw, 240px); height: auto; opacity: 0; animation: fadeUp 0.9s var(--ease-out) 0.1s forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: var(--gutter);
  color: var(--white);
  transition: background-color 0.4s, color 0.4s, box-shadow 0.4s, height 0.4s var(--ease-out);
}
.nav.is-solid {
  background: rgba(255, 255, 255, 0.94);
  color: var(--brown-900);
  box-shadow: 0 1px 0 var(--line);
  --nav-h: 66px;
}
@supports (backdrop-filter: blur(10px)) {
  .nav.is-solid { background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); }
}
.nav-links { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.2rem); }
.nav-links a:not(.btn) {
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-decoration: none;
  position: relative;
  padding-block: 0.3rem;
}
.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.nav-links a:not(.btn):hover::after,
.nav-links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { min-height: 42px; padding: 0.6rem 1.35rem; }
.nav:not(.is-solid) .nav-cta { background: var(--white); color: var(--brown-900); }
.nav:not(.is-solid) .nav-cta:hover { background: var(--sand); }

.nav-toggle { display: none; width: 44px; height: 44px; position: relative; z-index: 2; }
.nav-toggle span {
  position: absolute;
  left: 11px; right: 11px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.4s var(--ease-out), top 0.4s var(--ease-out);
}
.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 26px; }
.nav.menu-open .nav-toggle span:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.nav.menu-open .nav-toggle span:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 1.6rem;
    background: var(--white);
    color: var(--brown-900);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.4s var(--ease-out), transform 0.5s var(--ease-out), visibility 0.4s;
  }
  .nav-links a:not(.btn) { font-family: var(--f-display); font-size: 2.1rem; font-weight: 500; letter-spacing: 0; }
  .nav-links .nav-cta { margin-top: 1rem; min-height: 50px; padding-inline: 2rem; background: var(--brown-800) !important; color: var(--white) !important; }
  /* backdrop-filter convierte al header en el contenedor de los position:fixed y el menú quedaría recortado a su altura */
  .nav.menu-open { color: var(--brown-900); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav.menu-open .nav-links { opacity: 1; visibility: visible; transform: none; }
  .nav.menu-open .nav-logo { position: relative; z-index: 2; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-img {
  width: 100%;
  height: calc(100% + 12vh);
  margin-top: -12vh;
  object-fit: cover;
  object-position: 50% 55%;
  transform: scale(1.1);
  animation: heroZoom 2.8s var(--ease-out) 0.2s forwards;
  will-change: transform;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(32, 19, 18, 0.55) 0%, rgba(32, 19, 18, 0.05) 30%, rgba(32, 19, 18, 0.1) 55%, rgba(32, 19, 18, 0.78) 100%),
    linear-gradient(90deg, rgba(32, 19, 18, 0.45) 0%, rgba(32, 19, 18, 0) 60%);
}
.hero-content {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding: calc(var(--nav-h) + 3rem) var(--gutter) clamp(2rem, 5vw, 3rem);
}
.hero-logo {
  display: block;
  width: clamp(170px, 17vw, 250px);
  height: auto;
  margin-bottom: clamp(1.4rem, 3vw, 2.2rem);
  filter: drop-shadow(0 2px 14px rgba(32, 19, 18, 0.45));
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 0.8s forwards;
}
.hero-title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(3rem, 8.6vw, 7.4rem);
  line-height: 0.95;
  letter-spacing: -0.015em;
  max-width: 13ch;
  text-wrap: balance;
}
.hero-title em { font-style: italic; font-weight: 400; color: #f3e3cf; }
/* padding extra para que no se corten los descendentes (j, q) de la cursiva */
.hero-title .line { display: block; overflow: hidden; padding: 0 0.12em 0.22em 0; margin-bottom: -0.14em; }
.hero-title .line > span { display: inline-block; transform: translateY(105%); animation: lineUp 1.2s var(--ease-out) forwards; }
.hero-title .line:nth-child(1) > span { animation-delay: 1s; }
.hero-title .line:nth-child(2) > span { animation-delay: 1.15s; }
@keyframes lineUp { to { transform: none; } }
.hero-sub {
  margin-top: 1.6rem;
  max-width: 44ch;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: rgba(255, 255, 255, 0.86);
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 1.45s forwards;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2.2rem; opacity: 0; animation: fadeUp 1s var(--ease-out) 1.6s forwards; }

.hero-facts {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 1.4rem var(--gutter) 2rem;
  display: flex;
  gap: clamp(1.5rem, 5vw, 4rem);
  border-top: 1px solid var(--line-light);
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 1.8s forwards;
}
.hero-facts li { display: flex; align-items: baseline; gap: 0.55rem; }
.hero-facts strong { font-variant-numeric: lining-nums; font-family: var(--f-display); font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 500; }
.hero-facts span { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255, 255, 255, 0.72); }

.hero-scroll {
  position: absolute;
  right: var(--gutter);
  bottom: 2rem;
  width: 28px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 20px;
  display: flex;
  justify-content: center;
}
.hero-scroll span { width: 3px; height: 8px; margin-top: 8px; border-radius: 2px; background: var(--white); animation: scrollDot 2s ease-in-out infinite; }
@keyframes scrollDot { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hero-scroll span { animation: none; } }

@media (max-width: 640px) {
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-facts { justify-content: space-between; gap: 1rem; }
  .hero-facts li { flex-direction: column; gap: 0; }
  .hero-scroll { display: none; }
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--d, 0s); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Cabins ---------- */
.cabins { background: var(--white); }
.cabin-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 2.4vw, 2rem); }
.cabin-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  background: var(--paper);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out), border-color 0.4s;
}
.cabin-card-link:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; }
.cabin-card-media { position: relative; aspect-ratio: 4 / 3.3; overflow: hidden; }
.cabin-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out), filter 0.6s; }
.cabin-card-link:hover .cabin-card-media img { transform: scale(1.07); filter: saturate(1.08); }
.cabin-badge {
  position: absolute;
  top: 1rem; left: 1rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--brown-800);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cabin-card-body { padding: 1.6rem 1.6rem 1.8rem; display: flex; flex-direction: column; flex: 1; }
.cabin-kicker { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--caramel); }
.cabin-name { font-family: var(--f-display); font-weight: 500; font-size: 2.5rem; line-height: 1.05; margin-top: 0.3rem; color: var(--brown-900); }
.cabin-text { color: var(--ink-soft); margin-top: 0.7rem; font-size: 0.96rem; }
.cabin-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1.2rem; }
.cabin-tags li { font-size: 0.74rem; padding: 0.3rem 0.7rem; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); background: var(--white); }
.cabin-more {
  margin-top: auto;
  padding-top: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brown-800);
}
.cabin-more svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform 0.45s var(--ease-out); }
.cabin-card-link:hover .cabin-more svg { transform: translateX(6px); }
.cabin-grid .cabin-card:nth-child(2) { --d: 0.12s; }
.cabin-grid .cabin-card:nth-child(3) { --d: 0.24s; }

@media (max-width: 960px) {
  .cabin-grid { grid-template-columns: 1fr 1fr; }
  .cabin-grid .cabin-card:nth-child(3) { grid-column: 1 / -1; }
  .cabin-grid .cabin-card:nth-child(3) .cabin-card-link { flex-direction: row; }
  .cabin-grid .cabin-card:nth-child(3) .cabin-card-media { flex: 1 1 50%; aspect-ratio: auto; min-height: 320px; }
  .cabin-grid .cabin-card:nth-child(3) .cabin-card-body { flex: 1 1 50%; }
}
@media (max-width: 640px) {
  .cabin-grid { grid-template-columns: 1fr; }
  .cabin-grid .cabin-card:nth-child(3) .cabin-card-link { flex-direction: column; }
  .cabin-grid .cabin-card:nth-child(3) .cabin-card-media { aspect-ratio: 4 / 3.3; min-height: 0; }
  .cabin-grid .cabin-card { --d: 0s !important; }
}

/* ---------- Services ---------- */
.services { background: var(--paper); }
.services-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.services-media { position: sticky; top: calc(var(--nav-h) + 1.5rem); }
.services-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); }
.services-caption { margin-top: 0.9rem; font-family: var(--f-display); font-style: italic; font-size: 1.1rem; color: var(--ink-mute); }
.service-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line); }
.service {
  display: flex;
  gap: 1.1rem;
  padding: 1.7rem 1.2rem 1.7rem 0;
  border-bottom: 1px solid var(--line);
}
.service:nth-child(even) { padding-left: 1.4rem; border-left: 1px solid var(--line); }
.service svg {
  width: 42px; height: 42px;
  flex: none;
  fill: none;
  stroke: var(--brown-500);
  stroke-width: 1.4;
  stroke-linejoin: round;
  stroke-linecap: round;
  transition: transform 0.6s var(--ease-out), stroke 0.3s;
}
.service:hover svg { transform: translateY(-3px) rotate(-4deg); stroke: var(--caramel); }
.service h3 { font-family: var(--f-display); font-size: 1.45rem; font-weight: 600; line-height: 1.15; color: var(--brown-900); }
.service p { margin-top: 0.35rem; font-size: 0.92rem; color: var(--ink-soft); }
.service:nth-child(even) { --d: 0.1s; }

@media (max-width: 960px) {
  .services-layout { grid-template-columns: 1fr; }
  .services-media { position: relative; top: 0; order: 2; }
  .services-media img { aspect-ratio: 16 / 10; }
}
@media (max-width: 600px) {
  .service-list { grid-template-columns: 1fr; }
  .service, .service:nth-child(even) { padding: 1.4rem 0; border-left: 0; }
}

/* ---------- About ---------- */
.about { background: var(--white); }
.about-layout { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.about-text .eyebrow { margin-bottom: 1.2rem; }
.about-text .section-title { font-size: clamp(2.4rem, 5vw, 4.2rem); max-width: 17ch; }
.about-copy { margin-top: 1.8rem; display: grid; gap: 1rem; color: var(--ink-soft); font-size: 1.06rem; max-width: 50ch; }
.about-copy p:first-child::first-letter {
  font-family: var(--f-display);
  float: left;
  font-size: 4.2rem;
  line-height: 0.8;
  padding: 0.35rem 0.6rem 0 0;
  color: var(--brown-500);
}
.about-text .btn { margin-top: 2.2rem; }
.about-figure { position: relative; }
.about-figure img { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; border-radius: 200px 200px var(--radius-lg) var(--radius-lg); }
.about-figure::after {
  content: "";
  position: absolute;
  inset: 1.2rem -1.2rem -1.2rem 1.2rem;
  border: 1px solid var(--caramel-soft);
  border-radius: 200px 200px var(--radius-lg) var(--radius-lg);
  z-index: -1;
}

.seasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.6rem); margin-top: clamp(4rem, 9vw, 7rem); }
.season { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.season img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.season:hover img { transform: scale(1.06); }
.season figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 3rem 1.3rem 1.2rem;
  color: var(--white);
  font-size: 0.92rem;
  background: linear-gradient(180deg, transparent, rgba(32, 19, 18, 0.75));
}
.season figcaption span { display: block; font-family: var(--f-display); font-size: 1.8rem; font-weight: 500; font-style: italic; line-height: 1.1; }
.seasons .season:nth-child(2) { --d: 0.12s; }
.seasons .season:nth-child(3) { --d: 0.24s; }

@media (max-width: 900px) {
  .about-layout { grid-template-columns: 1fr; }
  .about-figure { max-width: 520px; margin-inline: auto 1.2rem; }
}
@media (max-width: 700px) {
  .seasons { grid-template-columns: 1fr; }
  .season { aspect-ratio: 16 / 10; }
  .seasons .season { --d: 0s; }
}

/* ---------- Contact ---------- */
.contact { background: var(--brown-900); color: var(--white); }
.contact .section-title { color: var(--white); }
.contact .section-title em { color: var(--caramel-soft); }
.contact .section-lead { color: rgba(255, 255, 255, 0.72); }
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: stretch; }
.contact .section-head { margin-bottom: 2.2rem; }
.contact .btn-whatsapp { background: var(--white); color: var(--brown-900); min-height: 56px; padding-inline: 1.5rem 1.9rem; font-size: 0.92rem; }
.contact .btn-whatsapp .i-wa { width: 24px; height: 24px; }
.contact .btn-whatsapp:hover { background: var(--sand); }
.contact-list { margin-top: 2.8rem; display: grid; gap: 0; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.contact-list li { display: flex; gap: 1.1rem; align-items: flex-start; padding: 1.25rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.contact-list svg { width: 24px; height: 24px; flex: none; fill: none; stroke: var(--caramel-soft); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-top: 0.2rem; }
.contact-list span { display: block; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); margin-bottom: 0.15rem; }
.contact-list a { text-decoration: none; font-size: 1.08rem; line-height: 1.5; transition: color 0.3s; }
.contact-list a:hover { color: var(--caramel-soft); }
.contact-map { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 420px; background: var(--brown-800); }
.contact-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: sepia(0.25) saturate(0.85); }
.map-open {
  position: absolute;
  left: 1rem; bottom: 1rem;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: var(--white);
  color: var(--brown-900);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}
@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; }
  .contact-map { min-height: 340px; }
}
@media (max-width: 480px) {
  .contact .btn-whatsapp { width: 100%; }
}

/* ---------- FAQ ---------- */
.faq { background: var(--paper); }
.faq-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.faq .section-head { position: sticky; top: calc(var(--nav-h) + 2rem); }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 0;
  font-family: var(--f-display);
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-weight: 500;
  line-height: 1.25;
  color: var(--brown-900);
  transition: color 0.3s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  flex: none;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background:
    linear-gradient(var(--brown-700), var(--brown-700)) center / 12px 1.5px no-repeat,
    linear-gradient(var(--brown-700), var(--brown-700)) center / 1.5px 12px no-repeat;
  transition: transform 0.45s var(--ease-out), background-color 0.3s, border-color 0.3s;
}
.faq-item summary:hover { color: var(--brown-500); }
.faq-item[open] summary::after { transform: rotate(45deg); background-color: var(--sand); border-color: transparent; }
.faq-answer { padding: 0 3.5rem 1.6rem 0; color: var(--ink-soft); }
.faq-answer strong { color: var(--brown-800); font-weight: 600; }
.faq-item[open] .faq-answer { animation: fadeUp 0.5s var(--ease-out); }
@media (max-width: 900px) {
  .faq-layout { grid-template-columns: 1fr; }
  .faq .section-head { position: static; margin-bottom: 1rem; }
  .faq-answer { padding-right: 0; }
}

/* ---------- Footer ---------- */
.footer { background: var(--white); padding-top: clamp(3.5rem, 7vw, 5rem); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer-logo-img { width: 190px; height: auto; }
.footer-brand p { margin-top: 1.1rem; max-width: 36ch; color: var(--ink-soft); font-size: 0.94rem; }
.footer-col { display: flex; flex-direction: column; gap: 0.55rem; font-size: 0.94rem; color: var(--ink-soft); }
.footer-col h4 { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--caramel); margin-bottom: 0.4rem; }
.footer-col a { text-decoration: none; transition: color 0.3s; }
.footer-col a:hover { color: var(--brown-900); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; padding-block: 1.4rem 1.6rem; border-top: 1px solid var(--line); font-size: 0.82rem; color: var(--ink-mute); }
.footer-bottom a { text-decoration: none; }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: clamp(1rem, 2.5vw, 1.8rem);
  bottom: clamp(1rem, 2.5vw, 1.8rem);
  z-index: 40;
  width: 58px; height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--whatsapp);
  color: var(--white);
  box-shadow: 0 10px 28px -8px rgba(0, 0, 0, 0.35);
  transform: translateY(120px);
  transition: transform 0.6s var(--ease-out), box-shadow 0.3s;
}
.wa-float.is-visible { transform: none; }
.wa-float:hover { transform: scale(1.07); }
.wa-float .i-wa { width: 30px; height: 30px; }

/* =========================================================
   Cabin detail panel
   ========================================================= */
.cabin-detail {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--white);
  -webkit-overflow-scrolling: touch;
}
.no-js .cabin-detail:target,
.cabin-detail.is-open { display: block; }
.cabin-detail.is-open { animation: panelIn 0.7s var(--ease-out); }
.cabin-detail.is-closing { display: block; animation: panelOut 0.45s var(--ease-out) forwards; }
@keyframes panelIn { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes panelOut { to { opacity: 0; transform: translateY(30px); } }

.detail-bar {
  position: sticky;
  top: 0;
  z-index: 3;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: var(--gutter);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(10px)) {
  .detail-bar { background: rgba(255, 255, 255, 0.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
}
.detail-back { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.84rem; font-weight: 600; letter-spacing: 0.05em; text-decoration: none; color: var(--brown-800); }
.detail-back svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform 0.4s var(--ease-out); }
.detail-back:hover svg { transform: translateX(-4px); }
.detail-bar-brand { display: inline-flex; align-items: center; gap: 0.75rem; }
.detail-bar-logo { height: 42px; width: auto; }
.detail-bar-name { font-family: var(--f-display); font-size: 1.3rem; font-weight: 600; color: var(--brown-900); }
.detail-close { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); position: relative; transition: background-color 0.3s, transform 0.4s var(--ease-out); }
.detail-close:hover { background: var(--sand); transform: rotate(90deg); }
.detail-close span, .lb-close span { position: absolute; left: 50%; top: 50%; width: 16px; height: 1.5px; background: currentColor; }
.detail-close span:nth-child(1), .lb-close span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.detail-close span:nth-child(2), .lb-close span:nth-child(2) { transform: translate(-50%, -50%) rotate(-45deg); }
.detail-close { color: var(--brown-800); }

.detail-hero { position: relative; height: min(72vh, 680px); min-height: 380px; overflow: hidden; color: var(--white); }
.detail-hero > img { width: 100%; height: 100%; object-fit: cover; }
.cabin-detail.is-open .detail-hero > img { animation: heroZoom 2s var(--ease-out); }
.detail-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(32, 19, 18, 0) 40%, rgba(32, 19, 18, 0.7)); }
.detail-hero-text { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; max-width: 1240px; margin-inline: auto; padding: 0 var(--gutter) clamp(2rem, 5vw, 3.5rem); }
.detail-hero-text .eyebrow { color: var(--caramel-soft); }
.detail-hero h2 { font-family: var(--f-display); font-weight: 500; font-size: clamp(3.6rem, 11vw, 8.5rem); line-height: 0.9; letter-spacing: -0.02em; margin-top: 0.6rem; }
/* Foto aérea: centrar en la casa */
.img-aerial { object-position: 50% 42%; }
.cabin-card-media .img-aerial { object-position: 66% 45%; }

.detail-body { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3rem, 7vw, 5rem); }
.detail-intro { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; margin-bottom: clamp(3rem, 7vw, 5rem); }
.detail-lead { font-family: var(--f-display); font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.3; color: var(--brown-900); margin-bottom: 2rem; text-wrap: pretty; }
.detail-facts { border-top: 1px solid var(--line); }
.detail-facts > div { display: grid; grid-template-columns: 110px 1fr; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.detail-facts dt { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--caramel); padding-top: 0.25rem; }
.detail-facts dd { color: var(--ink-soft); line-height: 1.8; }

/* Grilla pareja: 12 fotos por cabaña = filas completas en 3 y en 2 columnas */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(0.5rem, 1vw, 0.9rem); }
.g-item { position: relative; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 10px; display: block; background: var(--sand); cursor: zoom-in; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out), filter 0.5s; }
.g-item:hover img { transform: scale(1.06); filter: brightness(1.05); }
@media (max-width: 760px) {
  .detail-intro { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .detail-bar-name { display: none; }
}

.detail-next { display: flex; justify-content: space-between; gap: 1rem; margin-top: clamp(3rem, 6vw, 4.5rem); padding-top: 2rem; border-top: 1px solid var(--line); }
.detail-next a { margin-left: auto; text-align: right; text-decoration: none; font-family: var(--f-display); font-size: clamp(1.8rem, 3.4vw, 2.8rem); font-weight: 500; color: var(--brown-900); transition: color 0.3s; }
.detail-next a.is-prev { margin-left: 0; margin-right: auto; text-align: left; }
.detail-next a:hover { color: var(--brown-500); }
.detail-next span { display: block; font-family: var(--f-body); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--caramel); margin-bottom: 0.2rem; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: clamp(1rem, 3vw, 2.5rem);
  background: rgba(32, 19, 18, 0.94);
  color: var(--white);
  opacity: 0;
  transition: opacity 0.35s var(--ease-out);
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lb-figure { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; min-width: 0; }
.lb-figure img { max-width: 100%; max-height: calc(100vh - 7rem); max-height: calc(100svh - 7rem); object-fit: contain; border-radius: 6px; transition: opacity 0.3s; }
.lb-figure img.is-loading { opacity: 0.2; }
.lb-figure figcaption { margin-top: 0.9rem; font-size: 0.88rem; color: rgba(255, 255, 255, 0.72); text-align: center; }
.lb-nav { width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.3); display: grid; place-items: center; transition: background-color 0.3s; }
.lb-nav:hover { background: rgba(255, 255, 255, 0.12); }
.lb-nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.lb-close { position: absolute; top: 1rem; right: 1rem; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.3); }
.lb-close:hover { background: rgba(255, 255, 255, 0.12); }
@media (max-width: 640px) {
  .lightbox { grid-template-columns: 1fr; padding: 4.5rem 0.8rem 5.5rem; }
  .lb-nav { position: absolute; bottom: 1.2rem; }
  .lb-prev { left: calc(50% - 64px); }
  .lb-next { right: calc(50% - 64px); }
}

/* Encuadre de las fotos de temporada */
.season img[src*="temporada-otono"] { object-position: 70% 50%; }
.about-img-fogon { object-position: 50% 62%; }

/* ---------- Detalles de la casa ---------- */
.house-details { margin-top: clamp(4.5rem, 9vw, 7rem); }
.details-title { font-size: clamp(2rem, 4vw, 3.2rem); }
.details-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(0.5rem, 1vw, 0.9rem); }
.details-strip .detail-shot { aspect-ratio: 1 / 1; }
.details-strip .detail-shot:nth-child(2) { --d: 0.06s; }
.details-strip .detail-shot:nth-child(3) { --d: 0.12s; }
.details-strip .detail-shot:nth-child(4) { --d: 0.18s; }
.details-strip .detail-shot:nth-child(5) { --d: 0.24s; }
.details-strip .detail-shot:nth-child(6) { --d: 0.3s; }
@media (max-width: 960px) { .details-strip { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .details-strip { grid-template-columns: repeat(2, 1fr); } .details-strip .detail-shot { --d: 0s; } }
.hero-sub { font-family: var(--f-display); font-style: italic; font-size: clamp(1.3rem, 2vw, 1.7rem); color: rgba(255, 255, 255, 0.92); }

/* ---------- Qué hay cerca ---------- */
.nearby { background: var(--paper); }
.nearby-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.nearby-item { padding: 2rem 1.6rem 2.2rem; border-bottom: 1px solid var(--line); }
.nearby-item + .nearby-item { border-left: 1px solid var(--line); }
.nearby-dist { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--caramel); }
.nearby-dist strong { font-family: var(--f-display); font-size: clamp(3rem, 5vw, 4.2rem); font-weight: 500; letter-spacing: -0.02em; text-transform: none; font-variant-numeric: lining-nums; line-height: 1; color: var(--brown-800); }
.nearby-item h3 { font-family: var(--f-display); font-size: 1.55rem; font-weight: 600; line-height: 1.15; margin-top: 0.9rem; color: var(--brown-900); }
.nearby-item h3 + p { margin-top: 0.5rem; font-size: 0.94rem; color: var(--ink-soft); }
@media (max-width: 960px) {
  .nearby-list { grid-template-columns: repeat(2, 1fr); }
  .nearby-item:nth-child(3) { border-left: 0; }
}
@media (max-width: 560px) {
  .nearby-list { grid-template-columns: 1fr; }
  .nearby-item, .nearby-item + .nearby-item { border-left: 0; padding-inline: 0; --d: 0s !important; }
}
.nearby-media { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); margin-bottom: 1.4rem; }
.nearby-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.nearby-item:hover .nearby-media img { transform: scale(1.06); }
.nearby-media img[src*="cerca-02"] { object-position: 50% 62%; }
