/* =========================================================================
   DONDE ALICIA — Casa rural en Asturias
   Sistema de diseño · estático · sin build
   ========================================================================= */

/* ---------- Fuentes auto-alojadas (RGPD: sin peticiones a terceros) -------- */
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-italic.woff2') format('woff2');
  font-weight: 100 900; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Paleta — modo claro */
  --bg:          #FAF7F1;
  --bg-2:        #F2ECE1;
  --surface:     #FFFFFF;
  --ink:         #2B2724;
  --muted:       #6F675E;
  --line:        #E4DBCD;
  --brand:       #A8341F;
  --brand-deep:  #7C2517;
  --forest:      #3C4A36;
  --gold:        #B68C4C;
  --gold-soft:   #C2A36B;
  --glass:       rgba(255, 255, 255, 0.62);
  --glass-brd:   rgba(255, 255, 255, 0.55);
  --shadow:      0 18px 50px -22px rgba(43, 39, 36, 0.45);
  --shadow-sm:   0 8px 24px -16px rgba(43, 39, 36, 0.5);

  /* Tipografía */
  --serif: 'Fraunces', 'Georgia', serif;
  --sans:  'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Medidas */
  --container: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 26px;

  /* Movimiento */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.7s;

  color-scheme: light;
}

[data-theme="dark"] {
  --bg:          #15120F;
  --bg-2:        #1E1A16;
  --surface:     #211C18;
  --ink:         #F2ECE3;
  --muted:       #B6ABA0;
  --line:        #352D26;
  --brand:       #E0613F;
  --brand-deep:  #C24A2C;
  --forest:      #8FA383;
  --gold:        #CBA968;
  --gold-soft:   #D8BC84;
  --glass:       rgba(33, 28, 24, 0.55);
  --glass-brd:   rgba(255, 255, 255, 0.12);
  --shadow:      0 22px 60px -24px rgba(0, 0, 0, 0.75);
  --shadow-sm:   0 10px 28px -18px rgba(0, 0, 0, 0.8);
  color-scheme: dark;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, picture, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

/* ---------- Tipografía ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.08; letter-spacing: -0.01em; }
.eyebrow {
  font-family: var(--sans); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--brand);
  display: inline-flex; align-items: center; gap: 0.7rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold); display: inline-block; }
.section-title { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem); margin: 0.6rem 0 0; }
.lead { font-size: clamp(1.08rem, 1rem + 0.5vw, 1.3rem); color: var(--muted); }
.serif-em { font-style: italic; color: var(--brand); }

/* ---------- Layout ---------- */
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { padding: clamp(4.5rem, 3rem + 8vw, 9rem) 0; }
.section--tint { background: var(--bg-2); }
.section-head { max-width: 62ch; }
.section-head.center { margin-inline: auto; text-align: center; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.95rem 1.7rem; border-radius: 999px; font-weight: 600; font-size: 0.98rem;
  letter-spacing: 0.01em; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s, color 0.3s;
  will-change: transform; text-align: center; line-height: 1.1;
}
.btn--primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--brand-deep); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--ghost { border: 1px solid var(--line); color: var(--ink); background: var(--surface); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.btn--light { background: rgba(255,255,255,0.16); color: #fff; border: 1px solid rgba(255,255,255,0.5); backdrop-filter: blur(6px); }
.btn--light:hover { background: rgba(255,255,255,0.28); transform: translateY(-2px); }
.btn--lg { padding: 1.05rem 2rem; font-size: 1.02rem; }

/* ---------- Reveal (IntersectionObserver / GSAP fallback) ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* =========================================================================
   HEADER / NAV
   ========================================================================= */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  transition: background 0.4s var(--ease), box-shadow 0.4s, padding 0.4s, border-color 0.4s;
  padding: 1.1rem 0; border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line);
  padding: 0.7rem 0;
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; font-family: var(--serif); font-size: 1.4rem; letter-spacing: -0.01em; color: #fff; transition: color 0.4s; }
.header.scrolled .brand, .nav-light .brand { color: var(--ink); }
.brand__mark {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand); color: #fff; font-family: var(--serif); font-size: 1.15rem;
  flex: none; box-shadow: var(--shadow-sm);
}
.brand small { display:block; font-family: var(--sans); font-size: 0.6rem; letter-spacing: 0.24em; text-transform: uppercase; opacity: 0.75; font-weight: 600; margin-top: 2px;}
.nav__links { display: flex; align-items: center; gap: 1.9rem; }
.nav__links a { font-size: 0.92rem; font-weight: 500; color: rgba(255,255,255,0.92); position: relative; transition: color 0.3s; }
.header.scrolled .nav__links a { color: var(--muted); }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0; background: var(--gold); transition: width 0.35s var(--ease); }
.nav__links a:hover { color: var(--brand); }
.nav__links a:hover::after { width: 100%; }
.nav__tools { display: flex; align-items: center; gap: 0.8rem; }
.lang-switch { display: flex; align-items: center; gap: 0.2rem; font-size: 0.82rem; font-weight: 600; color: #fff; }
.header.scrolled .lang-switch { color: var(--muted); }
.lang-switch a { padding: 0.2rem 0.45rem; border-radius: 7px; opacity: 0.6; transition: opacity 0.3s, color 0.3s; }
.lang-switch a.active { opacity: 1; color: var(--brand); }
.lang-switch span { opacity: 0.4; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,0.4); color: #fff; transition: all 0.3s;
}
.header.scrolled .icon-btn { border-color: var(--line); color: var(--ink); }
.icon-btn:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.nav__cta { display: inline-flex; }
.nav__burger { display: none; }

/* Menú móvil */
.mobile-menu {
  position: fixed; inset: 0; z-index: 70; background: var(--bg);
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 1.5rem;
  transform: translateY(-100%); transition: transform 0.55s var(--ease); padding: 2rem;
}
.mobile-menu.open { transform: none; }
.mobile-menu a { font-family: var(--serif); font-size: 1.8rem; color: var(--ink); }
.mobile-menu .close { position: absolute; top: 1.5rem; right: 1.5rem; font-size: 1.6rem; }
.mobile-menu__foot { position: absolute; bottom: 2.5rem; display: flex; gap: 1.5rem; align-items: center; }

/* =========================================================================
   HERO
   ========================================================================= */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-start; isolation: isolate; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 120%; object-fit: cover; will-change: transform; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,16,12,0.55) 0%, rgba(20,16,12,0.15) 35%, rgba(20,16,12,0.35) 70%, rgba(20,16,12,0.82) 100%);
}
.hero__inner { width: 100%; padding-top: clamp(7rem, 13vh, 10rem); padding-bottom: clamp(3.5rem, 9vh, 6rem); }
.hero__content { max-width: 840px; margin-inline: auto; text-align: center; color: #fff; }
.hero h1 { font-size: clamp(2.8rem, 1.6rem + 6vw, 6rem); font-weight: 400; text-shadow: 0 2px 30px rgba(0,0,0,0.35); }
.hero h1 .serif-em { color: var(--gold-soft); }
.hero__tagline { font-size: clamp(1.1rem, 1rem + 0.7vw, 1.45rem); margin: 1.2rem auto 0; max-width: 46ch; color: rgba(255,255,255,0.92); text-shadow: 0 2px 16px rgba(0,0,0,0.4); }
.hero__eyebrow { color: #fff; }
.hero__eyebrow::before { background: var(--gold-soft); }
.hero__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.4rem; margin-top: 1.6rem; color: rgba(255,255,255,0.9); font-size: 0.92rem; }
.hero__meta span { display: inline-flex; align-items: center; gap: 0.5rem; }

/* Tarjeta de reserva (glass) */
.booking {
  margin: 2.4rem auto 0; background: var(--glass); backdrop-filter: blur(20px) saturate(1.3);
  border: 1px solid var(--glass-brd); border-radius: var(--radius-lg); padding: 1.4rem;
  box-shadow: var(--shadow); max-width: 760px; color: var(--ink); text-align: left;
}
.booking__label { display: flex; align-items: center; justify-content: center; gap: 0.6rem; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand); margin-bottom: 0.9rem; padding-inline: 0.3rem; }
.booking__widget { min-height: 64px; }
/* Contenedor del widget Guesty — se estiliza lo embebible vía variable color */
#guesty-search, .booking__widget iframe { width: 100% !important; }
.booking__fallback { display: none; }
.booking__fallback.show { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }
.booking__loading { display: flex; align-items: center; gap: 0.7rem; color: var(--muted); font-size: 0.95rem; padding: 0.6rem 0.3rem; }
.spinner { width: 18px; height: 18px; border: 2px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Widget de reservas a medida ---- */
.bw__fields { display: grid; grid-template-columns: 1fr 1fr auto; gap: 0.6rem; }
.bw__field { display: flex; flex-direction: column; align-items: flex-start; gap: 0.15rem; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.7rem 1rem; transition: border-color 0.25s; min-height: 58px; justify-content: center; }
button.bw__field:hover { border-color: var(--brand); }
.bw__field-l { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.bw__field-v { font-size: 1rem; font-weight: 600; color: var(--ink); }
.bw__guests { gap: 0.35rem; }
.bw__step { display: flex; align-items: center; gap: 0.7rem; }
.bw__step-b { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 1.1rem; line-height: 1; color: var(--brand); transition: all 0.2s; }
.bw__step-b:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.bw__step span[data-gv] { min-width: 1.2ch; text-align: center; font-weight: 700; }

.bw__cal { margin-top: 0.9rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.1rem 1.1rem; position: relative; }
.bw__cal-head { display: flex; justify-content: space-between; position: absolute; top: 1rem; left: 1.1rem; right: 1.1rem; pointer-events: none; }
.bw__nav { pointer-events: auto; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); color: var(--ink); font-size: 1.1rem; line-height: 1; transition: all 0.2s; }
.bw__nav:hover { background: var(--bg-2); border-color: var(--brand); color: var(--brand); }
.bw__months { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.bw__mname { text-align: center; font-family: var(--serif); font-size: 1.05rem; margin-bottom: 0.7rem; }
.bw__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.bw__dow { text-align: center; font-size: 0.7rem; color: var(--muted); font-weight: 600; padding-bottom: 0.3rem; }
.bw__day { aspect-ratio: 1; border-radius: 8px; font-size: 0.85rem; color: var(--ink); transition: background 0.15s, color 0.15s; }
.bw__day:hover:not(:disabled) { background: var(--bg-2); }
.bw__day.is-off { color: var(--line); text-decoration: line-through; cursor: not-allowed; }
.bw__day.is-in { background: color-mix(in srgb, var(--brand) 14%, transparent); border-radius: 0; }
.bw__day.is-ci, .bw__day.is-co { background: var(--brand); color: #fff; }
.bw__day.is-ci { border-radius: 8px 0 0 8px; } .bw__day.is-co { border-radius: 0 8px 8px 0; }
.bw__cal-foot { margin-top: 0.7rem; text-align: right; }
.bw__clear { font-size: 0.82rem; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

.bw__summary { margin-top: 0.9rem; min-height: 1.2rem; }
.bw__from { font-size: 1rem; color: var(--muted); }
.bw__from strong { font-family: var(--serif); font-size: 1.3rem; color: var(--ink); }
.bw__hint { color: var(--muted); font-size: 0.92rem; }
.bw__lines { display: grid; gap: 0.4rem; }
.bw__line { display: flex; justify-content: space-between; font-size: 0.92rem; color: var(--muted); }
.bw__total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 0.7rem; padding-top: 0.7rem; border-top: 1px solid var(--line); }
.bw__total strong { font-family: var(--serif); font-size: 1.5rem; color: var(--ink); }
.bw__cta { width: 100%; margin-top: 1rem; }
.bw__cta.is-disabled { opacity: 0.55; pointer-events: none; }
@media (max-width: 760px) { .bw__fields { grid-template-columns: 1fr 1fr; } .bw__guests { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; } .bw__months { grid-template-columns: 1fr; } }

.scroll-cue { position: absolute; left: 50%; bottom: 1.5rem; transform: translateX(-50%); z-index: 2; color: rgba(255,255,255,0.8); display: grid; place-items: center; gap: 0.4rem; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; }
.scroll-cue__line { width: 1px; height: 38px; background: linear-gradient(rgba(255,255,255,0.8), transparent); animation: cue 2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0%,100%{ transform: scaleY(0.4); opacity: 0.4;} 50%{ transform: scaleY(1); opacity: 1;} }
/* Ocultar el indicador de scroll donde podría solaparse con la tarjeta de reserva */
@media (max-width: 1024px), (max-height: 860px) { .scroll-cue { display: none; } }

/* =========================================================================
   STORY / BIENVENIDA
   ========================================================================= */
.story__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.story__text p + p { margin-top: 1.1rem; color: var(--muted); }
.story__media { position: relative; }
.story__media img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.story__badge {
  position: absolute; bottom: -26px; left: -26px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 1rem 1.3rem; box-shadow: var(--shadow); text-align: center;
}
.story__badge strong { font-family: var(--serif); font-size: 2rem; color: var(--brand); display: block; line-height: 1; }
.story__badge span { font-size: 0.78rem; color: var(--muted); letter-spacing: 0.05em; }
.stats { display: flex; gap: 2.4rem; margin-top: 2rem; flex-wrap: wrap; }
.stats div strong { font-family: var(--serif); font-size: 1.9rem; color: var(--ink); display: block; line-height: 1; }
.stats div span { font-size: 0.85rem; color: var(--muted); }

/* =========================================================================
   GALERÍA
   ========================================================================= */
.gallery__filters { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.8rem 0 2.4rem; }
.filter {
  padding: 0.55rem 1.15rem; border-radius: 999px; border: 1px solid var(--line);
  font-size: 0.88rem; font-weight: 500; color: var(--muted); transition: all 0.3s var(--ease);
}
.filter:hover { border-color: var(--brand); color: var(--brand); }
.filter.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.gallery__grid { columns: 3; column-gap: 14px; }
.gallery__grid figure { break-inside: avoid; margin: 0 0 14px; position: relative; border-radius: var(--radius-sm); overflow: hidden; cursor: zoom-in; box-shadow: var(--shadow-sm); }
.gallery__grid img { width: 100%; transition: transform 0.7s var(--ease), filter 0.5s; background: var(--bg-2); }
.gallery__grid figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(20,16,12,0.55)); opacity: 0; transition: opacity 0.4s; }
.gallery__grid figcaption { position: absolute; left: 14px; bottom: 12px; z-index: 2; color: #fff; font-size: 0.82rem; opacity: 0; transform: translateY(8px); transition: all 0.4s var(--ease); text-shadow: 0 1px 8px rgba(0,0,0,0.6); }
.gallery__grid figure:hover img { transform: scale(1.06); }
.gallery__grid figure:hover::after, .gallery__grid figure:hover figcaption { opacity: 1; transform: none; }
.gallery__grid figure.hide { display: none; }
.gallery__more { text-align: center; margin-top: 2rem; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(16,12,9,0.94); backdrop-filter: blur(8px); display: none; place-items: center; opacity: 0; transition: opacity 0.35s; }
.lightbox.open { display: grid; opacity: 1; }
.lightbox__img { max-width: min(94vw, 1300px); max-height: 84vh; border-radius: 8px; box-shadow: 0 30px 80px rgba(0,0,0,0.6); }
.lightbox__cap { color: rgba(255,255,255,0.85); text-align: center; margin-top: 1rem; font-size: 0.92rem; }
.lightbox__count { color: rgba(255,255,255,0.5); font-size: 0.8rem; letter-spacing: 0.1em; margin-top: 0.3rem; }
.lb-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 54px; height: 54px; border-radius: 50%; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.25); color: #fff; display: grid; place-items: center; font-size: 1.4rem; transition: background 0.3s; }
.lb-btn:hover { background: rgba(255,255,255,0.25); }
.lb-prev { left: 2vw; } .lb-next { right: 2vw; }
.lb-close { position: absolute; top: 1.5rem; right: 1.8rem; width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.25); color: #fff; font-size: 1.3rem; transition: background 0.3s; }
.lb-close:hover { background: rgba(255,255,255,0.25); }

/* =========================================================================
   AMENITIES / ESPACIOS
   ========================================================================= */
.amenities__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 3rem; }
.amenity { background: var(--surface); padding: 2rem 1.8rem; transition: background 0.4s; }
.amenity:hover { background: var(--bg-2); }
.amenity__icon { width: 44px; height: 44px; color: var(--brand); margin-bottom: 1rem; }
.amenity__icon svg { width: 100%; height: 100%; stroke-width: 1.4; }
.amenity h3 { font-size: 1.15rem; margin-bottom: 0.35rem; }
.amenity p { font-size: 0.92rem; color: var(--muted); }
.amenities__split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem,5vw,4.5rem); align-items: center; }
.amenities__media img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 3/4; object-fit: cover; width: 100%; }

/* =========================================================================
   ENTORNO + MAPA
   ========================================================================= */
.surround__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem); align-items: stretch; }
.surround__list { margin-top: 2rem; display: grid; gap: 1.3rem; }
.surround__item { display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: start; padding-bottom: 1.3rem; border-bottom: 1px solid var(--line); }
.surround__item:last-child { border-bottom: 0; }
.surround__num { font-family: var(--serif); font-size: 1.3rem; color: var(--gold); line-height: 1; }
.surround__item h3 { font-size: 1.1rem; }
.surround__item p { font-size: 0.92rem; color: var(--muted); }
.map-card { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 380px; background: var(--bg-2); display: grid; }
.map-card iframe { width: 100%; height: 100%; min-height: 380px; border: 0; filter: saturate(0.9); }
.map-consent { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 2rem; background: var(--bg-2); }
.map-consent p { color: var(--muted); margin-bottom: 1rem; max-width: 34ch; }
.map-place {
  display: grid; place-items: center; text-align: center; gap: 0.6rem; padding: 2.5rem 2rem;
  background:
    radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--forest) 14%, transparent), transparent 60%),
    var(--bg-2);
}
.map-place h3 { font-size: 1.5rem; }
.map-place p { color: var(--muted); max-width: 36ch; margin-bottom: 0.6rem; }
.map-pin { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--brand); box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.map-pin svg { width: 28px; height: 28px; }

/* =========================================================================
   RESEÑAS
   ========================================================================= */
.reviews__head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 1.5rem; }
.rating-badge { display: inline-flex; align-items: center; gap: 0.7rem; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 0.6rem 1.1rem; box-shadow: var(--shadow-sm); }
.rating-badge strong { font-family: var(--serif); font-size: 1.3rem; }
.stars { color: var(--gold); letter-spacing: 1px; }
.reviews__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.4rem; margin-top: 3rem; }
.review { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 1rem; }
.review__quote { font-family: var(--serif); font-size: 1.08rem; line-height: 1.5; }
.review__quote::before { content: "“"; font-size: 2.4rem; color: var(--gold); line-height: 0; vertical-align: -0.4em; margin-right: 0.1em; }
.review__foot { display: flex; align-items: center; gap: 0.8rem; margin-top: auto; }
.review__avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-family: var(--serif); }
.review__name { font-weight: 600; font-size: 0.92rem; }
.review__meta { font-size: 0.8rem; color: var(--muted); }

/* =========================================================================
   INSTAGRAM
   ========================================================================= */
.insta { text-align: center; }
.insta__strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 2.5rem; }
.insta__strip a { position: relative; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1; box-shadow: var(--shadow-sm); }
.insta__strip img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.insta__strip a::after { content: ""; position: absolute; inset: 0; background: rgba(168,52,31,0); transition: background 0.4s; }
.insta__strip a:hover img { transform: scale(1.1); }
.insta__strip a:hover::after { background: rgba(168,52,31,0.25); }

/* =========================================================================
   RESERVA CTA
   ========================================================================= */
.cta { position: relative; isolation: isolate; color: #fff; text-align: center; overflow: hidden; }
.cta__bg { position: absolute; inset: 0; z-index: -2; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,16,12,0.78), rgba(20,16,12,0.6)); }
.cta h2 { font-size: clamp(2rem, 1.4rem + 3vw, 3.6rem); }
.cta p { max-width: 50ch; margin: 1.1rem auto 2rem; color: rgba(255,255,255,0.9); }
.cta__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* =========================================================================
   CONTACTO + FAQ
   ========================================================================= */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4.5rem); }
.contact__methods { display: grid; gap: 1rem; margin-top: 2rem; }
.contact__method { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.3rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); transition: transform 0.3s var(--ease), border-color 0.3s; }
.contact__method:hover { transform: translateX(5px); border-color: var(--brand); }
.contact__method .ic { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); color: var(--brand); flex: none; }
.contact__method .ic svg { width: 20px; height: 20px; }
.contact__method strong { display: block; font-size: 0.95rem; }
.contact__method span { font-size: 0.85rem; color: var(--muted); }

.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.3rem 0; text-align: left; font-family: var(--serif); font-size: 1.12rem; }
.faq__q .plus { flex: none; width: 26px; height: 26px; position: relative; transition: transform 0.4s var(--ease); }
.faq__q .plus::before, .faq__q .plus::after { content: ""; position: absolute; background: var(--brand); border-radius: 2px; }
.faq__q .plus::before { top: 50%; left: 4px; right: 4px; height: 2px; transform: translateY(-50%); }
.faq__q .plus::after { left: 50%; top: 4px; bottom: 4px; width: 2px; transform: translateX(-50%); transition: opacity 0.3s; }
.faq__item.open .plus::after { opacity: 0; }
.faq__a { max-height: 0; overflow: hidden; transition: max-height 0.45s var(--ease); }
.faq__a p { padding: 0 0 1.3rem; color: var(--muted); max-width: 60ch; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.footer { background: var(--ink); color: rgba(255,255,255,0.7); padding: clamp(3.5rem,6vw,5.5rem) 0 2.5rem; }
[data-theme="dark"] .footer { background: #100D0B; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.footer__grid .brand { color: #fff; margin-bottom: 1rem; }
.footer h4 { color: #fff; font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 1.1rem; font-weight: 600; }
.footer a:hover { color: var(--gold-soft); }
.footer__links { display: grid; gap: 0.6rem; font-size: 0.92rem; }
.footer__social { display: flex; gap: 0.8rem; margin-top: 1.2rem; }
.footer__social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); display: grid; place-items: center; transition: all 0.3s; }
.footer__social a:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.82rem; color: rgba(255,255,255,0.5); }
.footer__bottom a { text-decoration: underline; text-underline-offset: 3px; }

/* =========================================================================
   COOKIE BANNER
   ========================================================================= */
.cookies {
  position: fixed; bottom: 1.2rem; left: 50%; transform: translateX(-50%) translateY(150%);
  z-index: 80; width: min(100% - 2rem, 680px); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.3rem 1.5rem;
  display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; transition: transform 0.6s var(--ease);
}
.cookies.show { transform: translateX(-50%) translateY(0); }
.cookies p { font-size: 0.88rem; color: var(--muted); flex: 1 1 260px; }
.cookies a { color: var(--brand); text-decoration: underline; }
.cookies__actions { display: flex; gap: 0.6rem; }
.cookies .btn { padding: 0.6rem 1.1rem; font-size: 0.85rem; }

/* =========================================================================
   PÁGINAS LEGALES
   ========================================================================= */
.legal { padding-top: 9rem; }
.legal__body { max-width: 76ch; }
.legal__body h2 { font-size: 1.4rem; margin: 2.2rem 0 0.6rem; }
.legal__body p, .legal__body li { color: var(--muted); margin-bottom: 0.8rem; }
.legal__body ul { list-style: disc; padding-left: 1.3rem; }
.note { background: var(--bg-2); border-left: 3px solid var(--gold); padding: 1rem 1.2rem; border-radius: 8px; font-size: 0.9rem; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1024px) {
  .gallery__grid { columns: 2; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .insta__strip { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: grid; }
  /* Hero: fluye desde arriba en móvil (sin recortar contenido alto) */
  .hero { align-items: flex-start; }
  .hero__inner { padding-top: 7.5rem; padding-bottom: 3rem; }
  .story__grid, .amenities__split, .surround__grid, .contact__grid { grid-template-columns: 1fr; }
  .story__media { order: -1; }
  .story__badge { left: 1rem; bottom: -20px; }
  .amenities__media { display: none; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom { flex-direction: column; gap: 0.6rem; }
}
@media (max-width: 560px) {
  /* Galería como rejilla uniforme de 2 columnas (sin huecos) en móvil */
  .gallery__grid { columns: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .gallery__grid figure { margin: 0; aspect-ratio: 1; }
  .gallery__grid img { width: 100%; height: 100%; object-fit: cover; }
  .insta__strip { grid-template-columns: repeat(2, 1fr); }
  .booking { padding: 1rem; }
  .lb-prev { left: 0.5rem; } .lb-next { right: 0.5rem; }
  .stats { gap: 1.5rem; justify-content: center; }
  .hero__meta { gap: 0.5rem 1rem; font-size: 0.85rem; }
  .hero__inner { padding-top: 6rem; }
  /* Zonas de toque más cómodas en móvil */
  .bw__step-b { width: 36px; height: 36px; font-size: 1.2rem; }
  .bw__day { font-size: 0.95rem; }
  .filter { padding: 0.6rem 1.15rem; }
  .contact__method { padding: 1rem 1.1rem; }
  .btn { padding: 0.95rem 1.5rem; }
  .section { padding: clamp(3.5rem, 2rem + 8vw, 5rem) 0; }
}

/* ---- Estados del widget de reserva ---- */
.bw__msg { margin-top: 0.5rem; font-size: 0.88rem; color: var(--brand); font-weight: 600; }
.bw__spin { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; border: 2px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; margin-right: 0.3rem; }

/* ---- Barra fija de reserva (solo móvil) ---- */
.mobile-cta { display: none; }
@media (max-width: 860px) {
  .mobile-cta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom, 0px));
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    backdrop-filter: blur(14px) saturate(1.2);
    border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -18px rgba(0,0,0,.5);
    transition: transform .45s var(--ease);
  }
  .mobile-cta__info { display: flex; flex-direction: column; line-height: 1.25; }
  .mobile-cta__price { font-size: 0.95rem; color: var(--muted); }
  .mobile-cta__price strong { font-family: var(--serif); font-size: 1.35rem; color: var(--ink); }
  .mobile-cta__price small { font-size: 0.8rem; }
  .mobile-cta__sub { font-size: 0.72rem; color: var(--muted); }
  .mobile-cta .btn { padding: 0.85rem 1.6rem; white-space: nowrap; }
  body { padding-bottom: 82px; }
  body.cookies-visible .mobile-cta { transform: translateY(130%); }   /* cede sitio al aviso de cookies */
}
@media (prefers-reduced-motion: reduce) { .mobile-cta { transition: none; } }

/* Anclas con offset por el header fijo */
section[id], [data-anchor], #reservar-hero { scroll-margin-top: 90px; }

/* Utilidades */
.center { text-align: center; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.skip-link { position: absolute; left: 50%; top: -60px; transform: translateX(-50%); z-index: 100; background: var(--brand); color: #fff; padding: 0.7rem 1.2rem; border-radius: 0 0 12px 12px; transition: top 0.25s var(--ease); }
.skip-link:focus { top: 0; }
