/* ============================================================
   Zubeltzu Torre — base styles (full)
   ============================================================ */

:root {
  /* default palette: Musgo & Piedra — editorial rustic-elegant */
  --c-bg: #f4efe6;
  --c-bg-2: #ffffff;
  --c-ink: #1a1a17;
  --c-ink-soft: #45433d;
  --c-mute: #8a8276;
  --c-stone: #a89f8e;
  --c-line: rgba(26,26,23,0.10);
  --c-accent: #4e7a28;
  --c-accent-2: #b85c43;

  /* typography */
  --f-display: "Cormorant","Cormorant Garamond","EB Garamond",Georgia,serif;
  --f-body: "Inter Tight","Inter",system-ui,sans-serif;
  --f-mono: "Inter Tight",system-ui,sans-serif;

  /* motion */
  --parallax: 1;
  --ease: cubic-bezier(.22,.61,.36,1);

  /* metrics */
  --gutter: clamp(20px, 4vw, 56px);
  --maxw: 1480px;
  --section-y: clamp(5rem, 12vh, 11rem);
}

html, body {
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--f-body);
  font-feature-settings: "ss01","cv11";
  -webkit-font-smoothing: antialiased;
  font-smooth: always;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  scroll-behavior: smooth;
}
* { box-sizing: border-box; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--c-ink); color: var(--c-bg); }

/* typography utilities */
.display {
  font-family: var(--f-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.95;
}
.mono, .label {
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-mute);
}
.eyebrow {
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--c-accent);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: currentColor;
}
.eyebrow.on-photo { color: rgba(255,255,255,0.92); }

.shell {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 18px 28px;
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  text-decoration: none;
}
.btn .arrow { transition: transform 0.3s ease; display: inline-block; }
.btn:hover .arrow { transform: translateX(6px); }
.btn-primary { background: var(--c-accent); color: #f4efe6; border-color: var(--c-accent); }
.btn-primary:hover { background: var(--c-ink); color: #f4efe6; border-color: var(--c-ink); }
.btn-secondary { background: transparent; color: var(--c-ink); border-color: var(--c-ink); }
.btn-secondary:hover { background: var(--c-ink); color: var(--c-bg); }
.btn-ghost {
  background: transparent;
  color: currentColor;
  border: 0;
  padding: 8px 0;
  border-bottom: 1px solid currentColor;
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: gap .3s ease, letter-spacing .3s ease;
}
.btn-ghost:hover { letter-spacing: 0.26em; }
.cta-group { display: flex; gap: 14px; flex-wrap: wrap; }

.on-dark .btn-secondary { color: #fff; border-color: rgba(255,255,255,0.6); }
.on-dark .btn-secondary:hover { background: #fff; color: var(--c-ink); border-color: #fff; }
.on-dark .btn-primary { background: #fff; color: var(--c-ink); border-color: #fff; }
.on-dark .btn-primary:hover { background: var(--c-accent); color: #fff; border-color: var(--c-accent); }
.on-dark .eyebrow { color: rgba(255,255,255,0.85); }

/* ============================================================
   OVERLAY
   ============================================================ */
.overlay { position: relative; isolation: isolate; }
.overlay::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 55%, rgba(0,0,0,0.55) 100%);
  pointer-events: none; z-index: 1;
}
.overlay > * { position: relative; z-index: 2; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 6px var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: center;
  pointer-events: none;
  background: rgba(15,22,12,0.78);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: #f4efe6;
  transition: background .4s var(--ease), padding .3s var(--ease), transform .45s var(--ease), opacity .35s var(--ease);
}
.nav.is-hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}
.nav > * { pointer-events: auto; }

.nav-center {
  display: flex;
  align-items: center;
  gap: 48px;
  justify-self: center;
}
.nav-left { justify-self: start; }
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.nav-logo-bg {
  display: flex; align-items: center; justify-content: center;
  width: 60px; height: 60px;
  background: rgba(255,255,255,0.92);
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.nav-logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.1));
  transition: transform .3s var(--ease);
}
.nav-brand:hover .nav-logo-img { transform: scale(1.05); }

.nav-links {
  display: flex;
  gap: 40px;
  font-family: "Outfit", "Inter Tight", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.nav-links button { white-space: nowrap; }
.nav-links button {
  padding: 6px 0;
  opacity: .7;
  transition: opacity .25s var(--ease), color .25s var(--ease);
  position: relative;
  color: inherit;
}
.nav-links button:hover { opacity: 1; color: var(--c-accent-2); }
.nav-links button.active { opacity: 1; }
.nav-links button.active::after {
  content: ""; position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: var(--c-accent-2);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
  justify-self: end;
}
.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  background: none; border: 0; cursor: pointer;
  padding: 6px 4px;
  transition: color .25s var(--ease);
}
.nav-phone:hover, .nav-phone.active { color: #fff; }
.nav-phone svg { opacity: 0.85; }

/* MOBILE NAV — hamburger + drawer */
.nav-burger {
  display: none;
  position: relative; z-index: 2;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 10px;
  cursor: pointer;
  padding: 0 11px;
}
.nav-burger span {
  display: block; height: 1.5px; width: 100%;
  background: #f4efe6; border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav-burger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-mobile {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh; height: 100dvh;
  z-index: 1;
  background: rgba(13,19,11,0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(88px, 14vh, 120px) var(--gutter) calc(var(--gutter) + env(safe-area-inset-bottom));
  opacity: 0; visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
}
.nav-mobile.is-open { opacity: 1; visibility: visible; transform: none; }
.nav-mobile-links { display: flex; flex-direction: column; gap: 4px; }
.nav-mobile-links button {
  display: flex; align-items: baseline; gap: 16px;
  font-family: var(--f-display); font-weight: 300;
  font-size: clamp(30px, 8vw, 48px); line-height: 1.18;
  color: #f4efe6; background: none; border: none; text-align: left;
  padding: 8px 0; cursor: pointer; opacity: 0.85;
  border-bottom: 1px solid rgba(244,239,230,0.08);
  transition: color .25s var(--ease), opacity .25s var(--ease), padding-left .25s var(--ease);
}
.nav-mobile-links button:hover,
.nav-mobile-links button.active { opacity: 1; color: var(--c-accent-2); padding-left: 8px; }
.nav-mobile-links .nm-no {
  font-family: var(--f-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.1em; color: var(--c-accent-2); opacity: 0.8;
  flex-shrink: 0;
}
.nav-mobile-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
/* En el cajón móvil el selector está abajo del todo: el menú debe abrirse HACIA
   ARRIBA (si no, cae fuera de pantalla y no se ve). */
.nav-mobile-foot .lang-dd-menu {
  top: auto;
  bottom: calc(100% + 8px);
  left: 0; right: auto;
}
.nav-mobile-book {
  flex: 1; min-width: 160px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--f-body); font-size: 12px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  padding: 16px 22px; border-radius: 999px;
  background: var(--c-accent); color: #f4efe6; border: 1px solid var(--c-accent);
  cursor: pointer; transition: all .3s var(--ease);
}
.nav-mobile-book .arrow { transition: transform .3s ease; }
.nav-mobile-book:hover { background: var(--c-accent-2); border-color: var(--c-accent-2); }
.nav-mobile-book:hover .arrow { transform: translateX(4px); }

/* ============================================================
   LANG DROPDOWN with flags
   ============================================================ */
.lang-dd {
  position: relative;
  font-family: "Outfit", "Inter Tight", system-ui, sans-serif;
}
.lang-dd-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  color: #f4efe6;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .25s var(--ease);
}
.lang-dd-trigger:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.3); }
.lang-dd-trigger .flag { font-size: 16px; line-height: 1; }
.lang-dd-trigger .arrow { font-size: 8px; opacity: .6; margin-left: 2px; transition: transform .3s; }
.lang-dd.is-open .lang-dd-trigger .arrow { transform: rotate(180deg); }

.lang-dd-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 180px;
  background: rgba(15,22,12,0.96);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all .25s var(--ease);
  z-index: 60;
}
.lang-dd.is-open .lang-dd-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lang-dd-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 12px 16px;
  text-align: left;
  color: rgba(244,239,230,0.7);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all .2s var(--ease);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.lang-dd-item:last-child { border-bottom: 0; }
.lang-dd-item:hover { background: rgba(184,92,67,0.12); color: #f4efe6; padding-left: 22px; }
.lang-dd-item.is-active { color: #f4efe6; background: rgba(184,92,67,0.08); }
.lang-dd-item .flag { font-size: 18px; line-height: 1; flex-shrink: 0; }
.lang-dd-item .lang-name { flex: 1; }
.lang-dd-item .lang-code {
  font-size: 10px;
  opacity: .5;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* contacto button inside nav-right — same style as nav-links buttons */
.nav-contact-btn {
  font-family: "Outfit", "Inter Tight", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 6px 0;
  opacity: .7;
  transition: opacity .25s var(--ease), color .25s var(--ease);
  position: relative;
  color: inherit;
}
.nav-contact-btn:hover { opacity: 1; color: var(--c-accent-2); }
.nav-contact-btn.active { opacity: 1; }
.nav-contact-btn.active::after {
  content: ""; position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: var(--c-accent-2);
}

/* nav book button */
.nav-book {
  font-family: "Outfit", "Inter Tight", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: var(--c-accent);
  border: 1px solid var(--c-accent);
  color: #f4efe6;
  padding: 11px 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all .3s var(--ease);
}
.nav-book:hover {
  background: var(--c-accent-2);
  border-color: var(--c-accent-2);
}

@media (max-width: 1024px) {
  .nav {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px;
    padding: 12px var(--gutter);
  }
  .nav-left { display: none; }
  .nav-center { gap: 0; position: relative; z-index: 2; }
  .nav-links, .nav-contact-btn { display: none; }
  .nav-right { display: none; }
  .nav-burger { display: flex; }
  .nav-logo-img { height: 56px; }
}
@media (max-width: 640px) {
  .nav-book span:not(.arrow) { display: none; }
  .nav-book { padding: 11px 14px; }
}

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
.cursor {
  position: fixed; top: 0; left: 0;
  width: 48px; height: 48px;
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 50%;
  pointer-events: none;
  z-index: 200;
  transform: translate(-50%,-50%);
  mix-blend-mode: difference;
  transition: width .25s var(--ease), height .25s var(--ease), background .25s;
  font-family: var(--f-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.cursor.is-hover { width: 84px; height: 84px; background: rgba(255,255,255,0.06); }
.cursor.is-drag { width: 92px; height: 92px; background: rgba(255,255,255,0.1); }
@media (max-width: 760px) { .cursor { display: none; } }

/* ============================================================
   BOOK PILL — floating CTA
   ============================================================ */
/* ============================================================
   CHATBOT — floating assistant
   ============================================================ */
.chat-launch {
  position: fixed;
  right: var(--gutter);
  bottom: 28px;
  z-index: 56;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--c-accent);
  color: #f4efe6;
  border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 18px 40px -16px rgba(0,0,0,0.55);
  transition: transform 0.3s var(--ease), background 0.3s ease;
}
.chat-launch:hover { transform: translateY(-2px) scale(1.04); background: var(--c-ink); }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(200,215,176,0.6); }
  70%  { box-shadow: 0 0 0 10px rgba(200,215,176,0); }
  100% { box-shadow: 0 0 0 0 rgba(200,215,176,0); }
}
.chat-launch-icon { display: flex; align-items: center; justify-content: center; font-size: 26px; line-height: 1; }
.chat.is-open .chat-launch { background: var(--c-ink); }
.chat-launch-dot {
  position: absolute; top: 12px; right: 12px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--c-accent-2);
  border: 2px solid var(--c-bg);
  animation: pulse 2.2s infinite;
}

.chat-panel {
  position: fixed;
  right: var(--gutter);
  bottom: 100px;
  z-index: 56;
  width: min(380px, calc(100vw - 2 * var(--gutter)));
  height: min(560px, calc(100vh - 140px));
  background: var(--c-bg-2);
  border: 1px solid var(--c-line);
  border-radius: 20px;
  display: flex; flex-direction: column;
  overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,0.5);
  transform-origin: bottom right;
  opacity: 0; transform: translateY(16px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.32s var(--ease), transform 0.32s var(--ease);
}
.chat.is-open .chat-panel { opacity: 1; transform: none; pointer-events: auto; }

.chat-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 16px 18px;
  background: var(--c-accent);
  color: #f4efe6;
}
.chat-head-brand { display: flex; align-items: center; gap: 12px; }
.chat-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(244,239,230,0.14);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
/* Foto de la casa como avatar: rellena el círculo completo (sin filtro de logo) */
.chat-avatar img { width: 100%; height: 100%; object-fit: cover; }
.chat-head-text { display: flex; flex-direction: column; gap: 3px; }
.chat-head-title { font-family: var(--f-body); font-size: 14px; font-weight: 600; letter-spacing: 0.01em; }
.chat-head-sub {
  font-family: var(--f-body); font-size: 11px; font-weight: 400;
  letter-spacing: 0.02em; color: rgba(244,239,230,0.78);
  display: flex; align-items: center; gap: 6px;
}
.chat-online { width: 7px; height: 7px; border-radius: 50%; background: #b6d49a; box-shadow: 0 0 0 0 rgba(182,212,154,0.6); animation: pulse 2.2s infinite; }
.chat-close {
  background: rgba(244,239,230,0.12); border: none; color: #f4efe6;
  width: 30px; height: 30px; border-radius: 50%; font-size: 22px; line-height: 1;
  cursor: pointer; transition: background 0.25s ease; flex-shrink: 0;
}
.chat-close:hover { background: rgba(244,239,230,0.25); }

.chat-body {
  flex: 1; overflow-y: auto;
  padding: 20px 16px;
  display: flex; flex-direction: column; gap: 14px;
  background:
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--c-accent) 5%, transparent), transparent 60%),
    var(--c-bg-2);
  scrollbar-width: thin;
}
.chat-msg { display: flex; align-items: flex-end; gap: 8px; max-width: 90%; }
.chat-msg.user { align-self: flex-end; flex-direction: row-reverse; }
.chat-msg-tag {
  flex-shrink: 0;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--c-accent); color: #f4efe6;
  font-family: var(--f-display); font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.chat-bubble {
  font-family: var(--f-body); font-size: 14px; line-height: 1.5;
  padding: 11px 15px; border-radius: 16px;
  background: var(--c-bg); color: var(--c-ink);
  border: 1px solid var(--c-line);
  border-bottom-left-radius: 5px;
  white-space: pre-wrap;
}
.chat-msg.user .chat-bubble {
  background: var(--c-accent); color: #f4efe6; border-color: var(--c-accent);
  border-bottom-left-radius: 16px; border-bottom-right-radius: 5px;
}
/* enlaces dentro de la conversación */
.chat-link {
  color: var(--c-accent);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.chat-link-wa {
  display: inline-flex; align-items: center; gap: 6px;
  background: #25D366;
  color: #fff !important;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  margin: 2px 0;
  transition: background .2s var(--ease);
}
.chat-link-wa:hover { background: #1ebe5a; }
.chat-typing { display: inline-flex; gap: 4px; align-items: center; padding: 14px 15px; }
.chat-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--c-stone); animation: chat-bounce 1.2s infinite; }
.chat-typing i:nth-child(2) { animation-delay: 0.15s; }
.chat-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes chat-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-4px); opacity: 1; } }

.chat-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chat-chip {
  font-family: var(--f-body); font-size: 12px;
  padding: 8px 13px; border-radius: 999px;
  border: 1px solid var(--c-line); background: var(--c-bg-2);
  color: var(--c-accent); cursor: pointer; transition: all 0.25s ease;
}
.chat-chip:hover { border-color: var(--c-accent); background: color-mix(in srgb, var(--c-accent) 8%, var(--c-bg-2)); }

.chat-foot { padding: 12px 14px 14px; border-top: 1px solid var(--c-line); background: var(--c-bg-2); display: flex; flex-direction: column; gap: 10px; }
.chat-book {
  width: 100%;
  font-family: var(--f-body); font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 11px; border-radius: 12px;
  background: transparent; border: 1px solid var(--c-accent); color: var(--c-accent);
  cursor: pointer; transition: all 0.25s ease;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.chat-book .arrow { transition: transform 0.3s ease; }
.chat-book:hover { background: var(--c-accent); color: #f4efe6; }
.chat-book:hover .arrow { transform: translateX(4px); }
.chat-input-row { display: flex; align-items: center; gap: 8px; }
.chat-input {
  flex: 1;
  font-family: var(--f-body); font-size: 14px;
  padding: 11px 14px; border-radius: 12px;
  border: 1px solid var(--c-line); background: var(--c-bg); color: var(--c-ink);
  outline: none; transition: border-color 0.25s ease;
}
.chat-input:focus { border-color: var(--c-accent); }
.chat-send {
  flex-shrink: 0;
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--c-accent); color: #f4efe6; border: none;
  font-size: 18px; cursor: pointer; transition: all 0.25s ease;
  display: flex; align-items: center; justify-content: center;
}
.chat-send:hover:not(:disabled) { background: var(--c-ink); }
.chat-send:disabled { opacity: 0.4; cursor: default; }

@media (max-width: 600px) {
  .chat-panel { bottom: 96px; height: min(520px, calc(100vh - 130px)); }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 720px;
  overflow: hidden;
  color: #fff;
}
.hero-stage {
  position: absolute; inset: 0;
  background: #1a1a17;
}
.hero-img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.05);
  transition-property: opacity, transform;
  transition-duration: 1.4s, 8s;
  transition-timing-function: var(--ease);
}
.hero-img.is-active { opacity: 1; transform: scale(1); }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.32) 35%, rgba(0,0,0,0.4) 65%, rgba(0,0,0,0.82) 100%),
    linear-gradient(90deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.15) 45%, rgba(0,0,0,0) 70%);
}
.hero-grain {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .25 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
  opacity: 0.16;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.hero-content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  justify-content: space-between;
  padding: 130px var(--gutter) 48px;
}
.hero-meta {
  display: flex; justify-content: space-between; align-items: flex-start;
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.85;
}
.hero-meta .stack > div + div { margin-top: 4px; }
.hero-title {
  font-family: var(--f-display);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 0.92;
  font-size: clamp(56px, 10vw, 168px);
  margin: 0;
}
.hero-title em { font-style: italic; font-weight: 300; }
.hero-foot {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 40px;
}
.hero-lede {
  max-width: 460px;
  font-size: 15px;
  line-height: 1.65;
  opacity: 0.9;
  margin: 0 0 22px;
}
.hero-lede-b { font-weight: 600; opacity: 1; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-actions .btn-primary {
  background: #f4efe6; color: var(--c-ink); border-color: #f4efe6;
}
.hero-actions .btn-primary:hover { background: var(--c-accent); color: #f4efe6; border-color: var(--c-accent); }
.hero-actions .btn-secondary { color: #fff; border-color: rgba(255,255,255,0.6); }
.hero-actions .btn-secondary:hover { background: #fff; color: var(--c-ink); border-color: #fff; }

.hero-trust {
  display: flex; align-items: center; gap: 20px;
  margin-top: 32px;
  padding: 14px 22px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.18);
  font-family: var(--f-body);
  font-size: 12px;
  color: rgba(255,255,255,0.88);
  width: fit-content;
}
.hero-trust-item { display: flex; align-items: center; gap: 8px; }
.hero-trust-item strong { font-family: var(--f-display); font-weight: 600; font-size: 16px; color: #fff; }
.hero-trust-sep { width: 1px; height: 22px; background: rgba(255,255,255,0.22); }
.hero-trust .trust-star { color: #f5c842; }

.hero-dots { display: flex; gap: 6px; align-items: center; }
.hero-dots button {
  width: 42px; height: 1px;
  background: rgba(255,255,255,0.35);
  position: relative; overflow: hidden;
}
.hero-dots button::after {
  content: ""; position: absolute; inset: 0;
  background: #fff;
  transform-origin: left;
  transform: scaleX(0);
}
.hero-dots button.active::after {
  transform: scaleX(1);
  transition: transform 6s linear;
}

.scroll-hint {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--f-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: .75;
  color: #fff;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.scroll-hint::after {
  content: ""; width: 1px; height: 40px;
  background: linear-gradient(180deg, currentColor, transparent);
  animation: drop 2s var(--ease) infinite;
}
@keyframes drop {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* hero variants */
.hero[data-variant="split"] .hero-content { padding-right: 0; }
.hero[data-variant="split"] .hero-stage { right: 32%; }
.hero[data-variant="split"] .hero-title { font-size: clamp(48px, 8vw, 120px); }

/* ============================================================
   TICKER
   ============================================================ */
.ticker {
  background: var(--c-bg-2);
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  overflow: hidden;
  padding: 0;
}
.ticker-inner {
  display: flex; white-space: nowrap;
  animation: ticker 38s linear infinite;
  width: max-content;
}
.ticker-item {
  font-family: var(--f-display);
  font-size: 18px; font-weight: 400;
  font-style: italic;
  color: var(--c-mute);
  padding: 18px 48px;
  border-right: 1px solid var(--c-line);
  flex-shrink: 0;
}
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================
   INTRO (home)
   ============================================================ */
.intro {
  padding: var(--section-y) 0;
  background: #ffffff;
}
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.intro-h2 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(44px, 5.5vw, 84px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin: 22px 0 28px;
}
.intro-body {
  font-size: 16px;
  line-height: 1.85;
  color: var(--c-ink-soft);
  max-width: 50ch;
  margin: 0 0 40px;
}
.intro-feats {
  display: flex; gap: 36px;
  border-top: 1px solid var(--c-line);
  padding-top: 28px;
}
.intro-feat {
  flex: 1;
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
}
.intro-feat-dot {
  width: 10px; height: 10px;
  background: var(--c-accent);
  border-radius: 50%;
}
.intro-feat-label {
  font-family: var(--f-body);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--c-ink);
}

.intro-imgs {
  position: relative;
  height: 540px;
}
.intro-img-main {
  position: absolute; top: 0; left: 0;
  width: 76%; height: 78%;
  object-fit: cover;
  box-shadow: 0 24px 60px rgba(0,0,0,0.18);
}
.intro-img-sec {
  position: absolute; bottom: 0; right: 0;
  width: 56%; height: 52%;
  object-fit: cover;
  border: 8px solid var(--c-bg);
  box-shadow: 0 16px 40px rgba(0,0,0,0.18);
}
.intro-badge {
  position: absolute;
  top: 32px; right: -10px;
  background: var(--c-ink);
  color: var(--c-bg);
  padding: 14px 20px;
  font-family: var(--f-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-left: 2px solid var(--c-accent);
  z-index: 3;
  box-shadow: 0 8px 28px rgba(0,0,0,0.25);
}

/* ============================================================
   HOST — Ainara (home, debajo de El Caserío)
   Espejo de .intro: la imagen va a la izquierda para alternar el ritmo.
   ============================================================ */
.host {
  padding: var(--section-y) 0;
  background: #f4efe6;
}
.host-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.host-h2 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(38px, 4.4vw, 66px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 22px 0 28px;
}
.host-h2 em { color: var(--c-accent); font-style: italic; }
.host-body {
  font-size: 16px;
  line-height: 1.85;
  color: var(--c-ink-soft);
  max-width: 50ch;
  margin: 0 0 22px;
}
.host-facts {
  display: flex; gap: 36px; flex-wrap: wrap;
  border-top: 1px solid var(--c-line);
  padding-top: 28px;
  margin-top: 18px;
}
.host-fact {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--f-body);
  font-size: 13px; font-weight: 500;
  color: var(--c-ink);
}
.host-fact-dot {
  width: 10px; height: 10px;
  background: var(--c-accent);
  border-radius: 50%;
  flex-shrink: 0;
}
.host-imgs {
  position: relative;
  height: 500px;
}
.host-img-main {
  position: absolute; top: 0; right: 0;
  width: 76%; height: 78%;
  object-fit: cover;
  box-shadow: 0 24px 60px rgba(0,0,0,0.18);
}
.host-img-sec {
  position: absolute; bottom: 0; left: 0;
  width: 54%; height: 50%;
  object-fit: cover;
  border: 8px solid var(--c-bg-2);
  box-shadow: 0 16px 40px rgba(0,0,0,0.18);
}
.host-badge {
  position: absolute;
  top: 32px; left: -10px;
  background: var(--c-ink);
  color: var(--c-bg);
  padding: 14px 20px;
  font-family: var(--f-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-left: 2px solid var(--c-accent);
  z-index: 3;
  box-shadow: 0 8px 28px rgba(0,0,0,0.25);
}

/* ============================================================
   LODGING TEASER (home)
   ============================================================ */
.lodging-teaser {
  padding: var(--section-y) 0;
  background: #FFFEF5;
  border-top: 1px solid var(--c-line);
}
.lt-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 60px;
  border-bottom: 1px solid var(--c-line);
  padding-bottom: 40px;
  margin-bottom: 50px;
}
.lt-title {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(36px, 4.5vw, 70px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 20px 0 0;
  max-width: 18ch;
}
.lt-title em { font-style: italic; }
.lt-sub {
  font-size: 14px;
  line-height: 1.85;
  color: var(--c-ink-soft);
  max-width: 32ch;
}
.lt-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.lt-card {
  position: relative;
  overflow: hidden;
  height: 460px;
  cursor: pointer;
}
.lt-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.lt-card:hover img { transform: scale(1.06); }
.lt-card-tint {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,0.7) 100%);
}
.lt-card-body {
  position: absolute; left: 28px; right: 28px; bottom: 28px;
  color: #fff;
  z-index: 2;
}
.lt-card-num {
  font-family: var(--f-display);
  font-size: 56px;
  font-weight: 600;
  line-height: 1;
  color: var(--c-bg);
  margin-bottom: 6px;
}
.lt-card-title {
  font-family: var(--f-display);
  font-size: 24px;
  font-weight: 400;
}

/* ============================================================
   ALOJAMIENTO PAGE
   ============================================================ */
/* Alojamiento en blanco para diferenciarse del intro (crema) */
.aloj-page {
  padding-bottom: var(--section-y);
  background: #ffffff;
  border-top: 1px solid var(--c-line);
}
.aloj-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding-top: 60px;
  padding-bottom: 60px;
}
.aloj-h1 {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(50px, 6vw, 100px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 22px 0 28px;
}
.aloj-h1 em { font-style: italic; }
.aloj-intro {
  font-size: 16px;
  line-height: 1.85;
  color: var(--c-ink-soft);
  max-width: 52ch;
  margin: 0;
}
.aloj-hero-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/5;
}
.aloj-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.aloj-hero-badge {
  position: absolute;
  bottom: 24px; left: 24px;
  background: rgba(26,26,23,0.85);
  backdrop-filter: blur(12px);
  padding: 14px 20px;
  border-left: 2px solid var(--c-accent);
  color: #f4efe6;
  z-index: 2;
}
.aloj-hero-badge strong {
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 500;
  color: #f4efe6;
  display: block;
}
.aloj-hero-badge span {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.7;
}

.aloj-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: var(--maxw);
  margin: 60px auto 0;
  padding: 0 var(--gutter);
}
.aloj-card {
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  display: flex; flex-direction: column;
  transition: all .3s ease;
}
.aloj-card:hover { transform: translateY(-4px); box-shadow: 0 24px 60px rgba(0,0,0,0.08); }
.aloj-card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
}
.aloj-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.aloj-card:hover .aloj-card-img img { transform: scale(1.04); }
.aloj-card-body { padding: 36px 32px 40px; }
.aloj-card-num {
  font-family: var(--f-display);
  font-size: 56px;
  font-weight: 600;
  color: var(--c-accent) !important;
  line-height: 1;
  margin-bottom: 6px;
}
.aloj-card-title {
  font-family: var(--f-display);
  font-size: 28px;
  font-weight: 400;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}
.aloj-card-text {
  font-size: 14px;
  line-height: 1.75;
  color: var(--c-ink-soft);
  margin: 0;
}
.aloj-card-text em { color: var(--c-accent); font-style: italic; }

/* Tarjeta clicable: abre la galería ya filtrada por esa categoría */
.aloj-card.is-clickable { cursor: pointer; }
.aloj-card.is-clickable:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }
.aloj-card-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 20px;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--c-accent);
}
.aloj-card-link .arrow { transition: transform .3s var(--ease); }
.aloj-card:hover .aloj-card-link .arrow { transform: translateX(5px); }

.aloj-body {
  background: var(--c-bg);
  padding: var(--section-y) var(--gutter);
  text-align: center;
  max-width: var(--maxw);
  margin: var(--section-y) auto 0;
  /* todo el bloque (texto + servicios + CTA) centrado verticalmente
     en un área mínima generosa */
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.aloj-body-text {
  position: relative;
  font-size: clamp(26px, 2.6vw, 36px);
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  line-height: 1.45;
  color: var(--c-ink);
  max-width: 64ch;
  margin: 0 auto 56px;
  text-align: center;
  text-wrap: balance;
  padding-top: 36px;
}
.aloj-body-text::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 56px; height: 1px;
  background: var(--c-accent);
}
/* Servicios: sin cajas — iconos pequeños + texto, en fila fluida centrada */
.aloj-amenities {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 22px 44px;
  margin-bottom: 16px;
  max-width: 880px;
  margin-left: auto; margin-right: auto;
}
.aloj-amenity {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-ink-soft);
  transition: color .3s ease;
}
.aloj-amenity-ic {
  display: inline-flex;
  flex-shrink: 0;
  color: var(--c-accent);
}
.aloj-amenity-ic svg { width: 19px; height: 19px; }
.aloj-amenity:hover { color: var(--c-accent); }

/* ============================================================
   ENTORNO PAGE
   ============================================================ */
.env-page { padding-bottom: 0; }
/* En Entorno el hero sube hasta el borde superior (bajo la nav fija):
   elimina la franja crema entre la nav y la imagen */
.page-wrap:has(> .env-page) { padding-top: 0; }
/* la galería también arranca con hero a sangre: sin franja crema arriba */
.page-wrap:has(> .gal-page) { padding-top: 0; }
.env-hero {
  position: relative;
  height: 100svh;
  min-height: 680px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: #1a1f1a;
}
.env-hero img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  /* la imagen debe quedar DEBAJO de la capa negra (::after, z-index 1);
     la regla genérica .overlay > * la subía a z-index 2 y tapaba el oscurecido */
  z-index: 0;
}
/* capa negra semitransparente sobre TODA la imagen del hero */
.env-hero.overlay::after {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  pointer-events: none;
  background: rgba(0,0,0,0.60);
}
.env-hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: var(--maxw);
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
  text-shadow: 0 2px 32px rgba(0,0,0,0.65), 0 1px 8px rgba(0,0,0,0.4);
}
.env-h1 {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(50px, 7vw, 120px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin: 22px 0 22px;
  color: #fff;
}
.env-h1 em { font-style: italic; opacity: 0.85; }
.env-hero-sub {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(255,255,255,0.92);
  max-width: 52ch;
  margin: 0;
}
/* En móvil el alto lo manda el contenido: un min-height fijo se pasaría de
   pantalla en teléfonos pequeños y escondería el texto del hero. */
@media (max-width: 760px) {
  .env-hero { height: auto; min-height: 88svh; padding: 120px 0 60px; }
  .env-h1 { font-size: clamp(44px, 12vw, 72px); margin: 16px 0 16px; }
  .env-hero-sub { font-size: 14px; padding: 0 var(--gutter); }
}

/* Hero de Galería — mismo lenguaje visual que el de Entorno */
.gal-hero {
  position: relative;
  height: 100svh;
  min-height: 680px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: #1a1f1a;
}
.gal-hero img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  z-index: 0;
}
.gal-hero.overlay::after {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  pointer-events: none;
  background: rgba(0,0,0,0.55);
}
.gal-hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: var(--maxw);
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
  text-shadow: 0 2px 32px rgba(0,0,0,0.65), 0 1px 8px rgba(0,0,0,0.4);
}
.gal-hero-h1 {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(48px, 7vw, 116px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin: 22px 0 22px;
  color: #fff;
}
.gal-hero-h1 em { font-style: italic; opacity: 0.85; }
.gal-hero-sub {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(255,255,255,0.92);
  max-width: 52ch;
  margin: 0;
}
@media (max-width: 760px) {
  .gal-hero { height: auto; min-height: 88svh; padding: 120px 0 60px; }
  .gal-hero-h1 { font-size: clamp(40px, 11vw, 64px); margin: 16px 0 16px; }
  .gal-hero-sub { font-size: 14px; padding: 0 var(--gutter); }
}

.env-distances {
  background: #6b8c4a;
  color: #f4efe6;
  border-top: 1px solid rgba(255,255,255,0.12);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.env-distances-inner {
  display: flex; justify-content: center; flex-wrap: wrap;
  padding: 36px 0;
  gap: 0;
  align-items: center;
}
.env-distance {
  display: flex; flex-direction: column; align-items: center;
  padding: 0 44px;
  text-align: center;
  gap: 6px;
}
.env-distance-n {
  font-family: var(--f-display);
  font-size: 40px;
  font-weight: 600;
  color: #f4efe6;
  line-height: 1;
}
.env-distance-l {
  font-family: var(--f-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}
.env-distance-sep {
  width: 1px; height: 36px;
  background: rgba(255,255,255,0.22);
}

/* ---- Bidegorri section: el propio carril rojo, en planta ---- */
.env-bidegorri {
  position: relative;
  overflow: hidden;
  /* rojo bidegorri — color plano para que las máscaras del texto no se noten */
  background: #db554d;
  /* hairlines blancas en los bordes del carril */
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.14),
    inset 0 -1px 0 rgba(255,255,255,0.14);
  padding: clamp(0.85rem, 1.8vw, 1.3rem) 0;
  display: flex;
  align-items: center;
  isolation: isolate;
}
/* Grano sutil, en sintonía con el resto de la web */
.env-bidegorri::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.05;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 0;
}
/* Línea central discontinua de la calzada — fina y espaciada */
.env-bidegorri-line {
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  height: 3px;
  transform: translateY(-50%);
  background: repeating-linear-gradient(to right,
    rgba(255,255,255,0.88) 0 36px,
    transparent 36px 84px);
  z-index: 1;
}
/* Capa de ciclistas que cruzan */
.env-bidegorri-riders {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
/* Máscara derecha a toda la altura: los ciclistas desaparecen al llegar al indicador */
.env-bidegorri-rmask {
  position: absolute;
  top: 0; bottom: 0; right: 0;
  width: clamp(300px, 34vw, 540px);
  background: linear-gradient(270deg, #db554d 0, #db554d 62%, rgba(219,85,77,0) 100%);
  z-index: 1;
  pointer-events: none;
}
.bg-rider {
  position: absolute;
  left: 0;
  margin-top: -11px; /* centra la figura en su carril */
  transform: translateX(-180px);
  will-change: transform;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  opacity: 0.62;
}
.bg-rider--r { animation-name: bg-ride-r; }
.bg-rider--l { animation-name: bg-ride-l; }
.bg-rider--l .bg-rider-fig { transform: scaleX(-1); }
.bg-rider-fig { display: block; }

/* Cruza de izquierda a derecha (lento) y luego espera fuera de pantalla */
@keyframes bg-ride-r {
  0%   { transform: translateX(-180px); }
  58%  { transform: translateX(calc(100vw + 180px)); }
  100% { transform: translateX(calc(100vw + 180px)); }
}
/* Cruza de derecha a izquierda */
@keyframes bg-ride-l {
  0%   { transform: translateX(calc(100vw + 180px)); }
  58%  { transform: translateX(-180px); }
  100% { transform: translateX(-180px); }
}
@media (prefers-reduced-motion: reduce) {
  .bg-rider { display: none; }
}

/* Texto sobre el camino */
.env-bidegorri-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(2rem, 6vw, 5rem);
}
.env-bidegorri-text {
  max-width: 44ch;
  position: relative;
  z-index: 2;
}
/* Tapa la línea discontinua por detrás del texto (se queda solo en la calzada abierta) */
.env-bidegorri-text::before {
  content: "";
  position: absolute;
  top: -12px; bottom: -12px;
  left: -100vw; right: -20px;
  background: #db554d;
  z-index: -1;
}
.env-bidegorri-eyebrow {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.92);
  margin-bottom: .35rem;
}
.env-bidegorri-pill {
  display: inline-block;
  width: 22px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.85);
  flex-shrink: 0;
}
.env-bidegorri-h2 {
  font-family: var(--f-display);
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  font-weight: 300;
  line-height: 1.04;
  color: #fff;
  margin: 0 0 .45rem;
  letter-spacing: -.005em;
}
.env-bidegorri-h2 em {
  font-style: italic;
  color: #fff;
  opacity: .88;
}
.env-bidegorri-body {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255,255,255,0.82);
  margin: 0 0 .7rem;
  max-width: 58ch;
}
/* Indicador grande a la derecha */
.env-bidegorri-aside {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .5rem;
  text-align: right;
  position: relative;
  z-index: 2;
}
/* Tapa la línea por detrás del indicador de la derecha */
.env-bidegorri-aside::before {
  content: "";
  position: absolute;
  top: -12px; bottom: -12px;
  right: -100vw; left: -20px;
  background: #db554d;
  z-index: -1;
}
.env-bidegorri-km {
  font-family: var(--f-display);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 200;
  color: #fff;
  line-height: .9;
  letter-spacing: -.03em;
}
.env-bidegorri-km sup {
  font-size: .22em;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  vertical-align: super;
  margin-left: .35rem;
  font-family: var(--f-body);
}
.env-bidegorri-route {
  font-size: 11px;
  color: rgba(255,255,255,0.72);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.env-bidegorri-cta {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: #fff;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.45);
  padding-bottom: 2px;
  transition: border-color .2s, opacity .2s;
}
.env-bidegorri-cta:hover {
  border-color: #fff;
  opacity: .8;
}
@media (max-width: 900px) {
  .env-bidegorri { padding: clamp(2.75rem, 8vw, 4rem) 0; }
  .env-bidegorri-rmask { display: none; }
  .env-bidegorri-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
  }
  .env-bidegorri-text { max-width: none; }
  .env-bidegorri-aside {
    align-items: flex-start;
    text-align: left;
    flex-direction: row;
    align-items: baseline;
    gap: 1rem;
  }
}

.env-natura {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
  background: var(--c-bg);
}
.env-natura-h2 {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(40px, 5vw, 76px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin: 22px 0 32px;
}
.env-natura-h2 em { font-style: italic; }
.env-natura-p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--c-ink-soft);
  margin: 0 0 20px;
  max-width: 56ch;
}
.env-list {
  list-style: none; padding: 0; margin: 32px 0 0;
  display: flex; flex-direction: column; gap: 12px;
}
.env-list li {
  display: flex; align-items: center; gap: 12px;
  font-size: 14px; font-weight: 500;
  color: var(--c-ink);
}
.env-list .check {
  width: 22px; height: 22px;
  background: var(--c-accent);
  color: #f4efe6;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px;
  border-radius: 50%;
}

.env-natura-imgs {
  display: flex; flex-direction: column; gap: 4px;
}
.env-natura-imgs .env-img-main {
  width: 100%; height: 380px;
  object-fit: cover;
}
.env-natura-imgs .env-img-sec {
  width: 100%; height: 240px;
  object-fit: cover;
}

.env-grid-section {
  background: var(--c-bg-2);
  border-top: 1px solid var(--c-line);
  padding: var(--section-y) 0;
}
.env-grid-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 60px;
  border-bottom: 1px solid var(--c-line);
  padding-bottom: 36px;
  margin-bottom: 48px;
}
.env-grid-h2 {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(40px, 5vw, 76px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin: 20px 0 0;
}
.env-grid-h2 em { font-style: italic; }
.env-grid-lede {
  font-size: 14px;
  line-height: 1.75;
  color: var(--c-ink-soft);
  max-width: 32ch;
  margin: 0;
  text-align: right;
}
.env-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.env-card {
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: 18px;
  overflow: hidden;
  transition: all .3s ease;
}
.env-card:hover { transform: translateY(-4px); box-shadow: 0 24px 60px rgba(0,0,0,0.08); }
.env-card-img {
  aspect-ratio: 5/3;
  overflow: hidden;
}
.env-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.env-card:hover .env-card-img img { transform: scale(1.04); }
.env-card-body { padding: 28px 26px 32px; }
.env-card-title {
  font-family: var(--f-display);
  font-size: 24px;
  font-weight: 400;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.env-card-text {
  font-size: 14px;
  line-height: 1.75;
  color: var(--c-ink-soft);
  margin: 0;
}

/* search-nearby button (shared by place & activity cards) */
.env-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 20px;
  padding: 10px 18px 10px 14px;
  background: transparent;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  font-family: var(--f-display);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--c-ink);
  cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.env-search-btn svg { width: 15px; height: 15px; }
.env-search-btn:hover,
.env-search-btn:focus-visible {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: #f4efe6;
  outline: none;
}
.env-maps-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--c-accent);
  text-decoration: none;
  opacity: 0.75;
  transition: opacity .25s var(--ease);
}
.env-maps-btn svg { width: 14px !important; height: 14px !important; max-width: 14px; max-height: 14px; flex-shrink: 0; }
.env-maps-btn:hover { opacity: 1; }

/* ── EXPERIENCIAS / ACTIVIDADES (moved into Lugares & experiencias) ── */
.env-act-block { margin-top: 88px; }
.env-act-head {
  border-top: 1px solid var(--c-line);
  padding-top: 48px;
  margin-bottom: 44px;
  max-width: 46ch;
}
.env-act-h3 {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(34px, 4vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 16px 0 18px;
}
.env-act-h3 em { font-style: italic; color: var(--c-mute); }
.env-act-lede {
  font-size: 14px;
  line-height: 1.8;
  color: var(--c-ink-soft);
  margin: 0;
}
.env-act-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.env-act-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  box-sizing: border-box;
  padding: 30px 26px 28px;
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: 18px;
  transition: transform .3s ease, box-shadow .3s ease, background .3s ease;
}
.env-act-card:hover { transform: translateY(-4px); background: var(--c-bg-2); box-shadow: 0 18px 48px rgba(0,0,0,0.07); }
.env-act-num {
  font-family: var(--f-display);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--c-accent);
}
.env-act-title {
  font-family: var(--f-display);
  font-size: 21px;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 14px 0 10px;
}
.env-act-body {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--c-ink-soft);
  margin: 0 0 20px;
}
.env-act-card .env-search-btn { margin-top: auto; }

@media (max-width: 1100px) {
  .env-act-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .env-act-grid { grid-template-columns: 1fr; }
  .env-act-block { margin-top: 56px; }
}

/* ============================================================
   ENV ACTIVITIES LIST (clean two-column list with km + arrow)
   ============================================================ */
.env-acts-list {
  padding: clamp(56px, 9vh, 110px) var(--gutter);
  background: var(--c-bg);
}
.env-acts-list-head { text-align: center; margin-bottom: 56px; }
.env-acts-list-h2 {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.05;
  margin: 14px 0 18px;
  letter-spacing: -0.01em;
}
.env-acts-list-h2 em { font-style: italic; color: var(--c-mute); }
.env-acts-list-lede {
  font-size: 15px;
  line-height: 1.75;
  color: var(--c-ink-soft);
  margin: 0 auto;
  max-width: 56ch;
}
.env-acts-list-grid {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-width: 1000px; margin: 0 auto;
  border-top: 1px solid var(--c-line);
}
.env-acts-list-grid > li {
  border-bottom: 1px solid var(--c-line);
}
.env-acts-list-grid > li:nth-child(odd) { border-right: 1px solid var(--c-line); }
.env-acts-list-row {
  display: grid;
  grid-template-columns: 36px 1fr auto auto;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding: 18px 24px;
  background: transparent; border: 0; cursor: pointer;
  font-family: var(--f-body);
  font-size: 15px;
  color: var(--c-ink);
  text-align: left;
  transition: background .25s var(--ease), padding .25s var(--ease);
}
.env-acts-list-row:hover {
  background: color-mix(in srgb, var(--c-accent) 7%, var(--c-bg));
  padding-left: 30px;
}
.env-acts-list-ic {
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--c-accent);
}
.env-acts-list-ic svg { width: 24px; height: 24px; }
.env-acts-list-name { font-weight: 500; }
.env-acts-list-km {
  font-family: var(--f-mono, monospace);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--c-mute);
}
.env-acts-list-arrow {
  color: var(--c-mute);
  transition: transform .25s var(--ease), color .25s var(--ease);
}
.env-acts-list-row:hover .env-acts-list-arrow {
  color: var(--c-accent);
  transform: translateX(4px);
}
@media (max-width: 760px) {
  .env-acts-list-grid { grid-template-columns: 1fr; }
  .env-acts-list-grid > li:nth-child(odd) { border-right: 0; }
}

/* ============================================================
   ENV FARM (agroturismo — ganadería) → clic lleva a galería
   ============================================================ */
.env-farm {
  padding: clamp(56px, 9vh, 110px) var(--gutter);
  background: #ffffff;
  border-top: 1px solid var(--c-line);
}
.env-farm-head { text-align: center; margin-bottom: 56px; max-width: 760px; margin-left: auto; margin-right: auto; }
.env-farm-h2 {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.05;
  margin: 14px 0 18px;
  letter-spacing: -0.01em;
}
.env-farm-h2 em { font-style: italic; color: var(--c-mute); }
.env-farm-lede {
  font-size: 15px;
  line-height: 1.8;
  color: var(--c-ink-soft);
  margin: 0;
}
.env-farm-cats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1100px; margin: 0 auto;
}
.env-farm-cat {
  padding: 0;
  border-left: 1px solid var(--c-accent);
  padding-left: 26px;
}
.env-farm-cat-title {
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin: 0 0 16px;
}
.env-farm-cat-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.env-farm-item {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  background: transparent; border: 0; cursor: pointer;
  padding: 8px 4px;
  font-family: var(--f-body);
  font-size: 15px;
  color: var(--c-ink);
  text-align: left;
  transition: color .25s var(--ease), padding-left .25s var(--ease);
}
.env-farm-item:hover {
  color: var(--c-accent);
  padding-left: 8px;
}
.env-farm-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--c-mute);
  flex-shrink: 0;
  transition: background .25s var(--ease);
}
.env-farm-item:hover .env-farm-dot { background: var(--c-accent); }
.env-farm-item-arrow {
  margin-left: auto;
  opacity: 0; color: var(--c-accent);
  transform: translateX(-6px);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.env-farm-item:hover .env-farm-item-arrow { opacity: 1; transform: none; }
.env-farm-cta { text-align: center; margin-top: 56px; }
@media (max-width: 900px) {
  .env-farm-cats { grid-template-columns: 1fr; gap: 32px; }
}

.env-cta {
  background: var(--c-accent);
  color: #f4efe6;
  padding: clamp(56px, 10vh, 120px) 0;
}
.env-cta-inner {
  display: flex; justify-content: space-between; align-items: center;
  gap: 36px;
  flex-wrap: wrap;
}
.env-cta-h2 {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(34px, 5vw, 74px);
  line-height: 1;
  margin: 0;
}
.env-cta .eyebrow { display: none; }
.env-cta-h2 em { font-style: italic; color: #f4efe6; opacity: 0.88; }
.env-cta .eyebrow { color: rgba(255,255,255,0.75); }
.env-cta .eyebrow::before { background: rgba(255,255,255,0.75); }
.env-cta .btn-primary { background: #f4efe6; color: #1a1a17; border-color: #f4efe6; }
.env-cta .btn-primary:hover { background: #ffffff; color: #1a1a17; border-color: #ffffff; }

/* En la página entorno, el page-footer hereda el color del env-cta
   para eliminar el hueco blanco/beige antes del footer */
/* Footer de Entorno: idéntico al de Galería — fondo crema neutro y texto
   legible (usa el estilo base .page-footer). Sin verde ni texto blanco. */
.page-footer.page-footer--entorno {
  margin-top: 0;
  margin-bottom: 0;
}

/* ============================================================
   ACTIVIDADES PAGE
   ============================================================ */
.act-page { padding-bottom: 0; }
.act-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 60px;
  padding-top: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--c-line);
}
.act-h1 {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(46px, 6vw, 96px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin: 22px 0 0;
}
.act-h1 em { font-style: italic; color: var(--c-mute); }
.act-lede {
  font-size: 14px;
  line-height: 1.85;
  color: var(--c-ink-soft);
  max-width: 38ch;
  margin: 0;
}

.act-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.act-card {
  position: relative;
  border: 1px solid var(--c-line);
  margin-left: -1px;
  margin-top: -1px;
  padding: 40px 32px;
  background: var(--c-bg);
  transition: all .3s ease;
  height: 100%;
  box-sizing: border-box;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.act-grid .tilt { height: 100%; }
.act-card:hover {
  background: var(--c-bg-2);
  box-shadow: 0 8px 30px rgba(0,0,0,0.05);
}
.act-card-go {
  margin-top: auto;
  padding-top: 22px;
  font-family: var(--f-display);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--c-accent);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .3s ease, transform .3s ease;
}
.act-card:hover .act-card-go,
.act-card:focus-visible .act-card-go { opacity: 1; transform: translateY(0); }
.act-card:focus-visible { outline: 2px solid var(--c-accent); outline-offset: -2px; }
.act-card::after {
  content: ""; position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--c-accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.act-card:hover::after { transform: scaleX(1); }

/* Icono de actividad */
.act-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--c-accent) 10%, transparent);
  color: var(--c-accent);
  margin-bottom: 20px;
  flex-shrink: 0;
  transition: background .35s var(--ease), color .35s var(--ease), transform .35s var(--ease);
}
.act-card-icon svg { width: 26px !important; height: 26px !important; max-width: 26px; max-height: 26px; }
.act-card:hover .act-card-icon,
.env-act-card:hover .act-card-icon {
  background: var(--c-accent);
  color: #f4efe6;
  transform: scale(1.08);
}

.act-card-num {
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--c-accent);
  letter-spacing: 0.04em;
}
.act-card-title {
  font-family: var(--f-display);
  font-size: 24px;
  font-weight: 400;
  margin: 18px 0 12px;
  letter-spacing: -0.01em;
}
.act-card-body {
  font-size: 14px;
  line-height: 1.75;
  color: var(--c-ink-soft);
  margin: 0;
}

/* ============================================================
   OPINIONES PAGE
   ============================================================ */
.reviews-page { padding-bottom: var(--section-y); background: color-mix(in srgb, var(--c-accent) 16%, var(--c-bg)); border-top: 1px solid var(--c-line); }
.reviews-page.is-compact { background: color-mix(in srgb, var(--c-accent) 9%, var(--c-bg)); border-top: 1px solid var(--c-line); }
.reviews-page.is-compact .reviews-h1 { font-size: clamp(36px, 4.5vw, 70px); }
.reviews-page.is-compact .reviews-head { padding-top: var(--section-y); }
.reviews-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 60px;
  padding-top: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--c-line);
  flex-wrap: wrap;
}
.reviews-h1 {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(44px, 5.5vw, 84px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin: 22px 0 0;
}
.reviews-h1 em { font-style: italic; color: var(--c-mute); }
.reviews-score {
  display: flex; align-items: center; gap: 22px;
  padding: 20px 28px;
  background: var(--c-bg-2);
  border: 1px solid var(--c-line);
}
.reviews-score-n {
  font-family: var(--f-display);
  font-size: 56px;
  font-weight: 600;
  line-height: 1;
  color: var(--c-accent);
}
.reviews-score-meta { display: flex; flex-direction: column; gap: 4px; }
.reviews-score-max { font-family: var(--f-body); font-size: 18px; font-weight: 500; color: var(--c-mute); letter-spacing: 0; margin-left: 2px; }
.reviews-score-stars { color: #f5c842; font-size: 14px; letter-spacing: 2px; }
.reviews-score-label {
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-mute);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 60px;
  padding-bottom: 60px;
}
.review-card {
  background: #ffffff;
  border: 1px solid var(--c-line);
  padding: 44px 36px;
  display: flex; flex-direction: column; gap: 24px;
  position: relative;
  transition: all .3s ease;
}
.review-card:hover { transform: translateY(-4px); box-shadow: 0 24px 60px rgba(0,0,0,0.08); }
.review-mark {
  font-family: var(--f-display);
  font-size: 80px;
  line-height: 0.6;
  color: var(--c-accent);
  opacity: 0.4;
  margin-bottom: -10px;
}
.review-quote {
  font-family: var(--f-display);
  font-size: 19px;
  font-weight: 400;
  font-style: italic;
  line-height: 1.55;
  color: var(--c-ink);
  margin: 0;
}
.review-foot {
  margin-top: auto;
  display: flex; align-items: center; gap: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--c-line);
}
.review-stars { color: #f5c842; font-size: 12px; letter-spacing: 1px; }
.review-author {
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--c-ink-soft);
}
.review-source {
  font-family: var(--f-body);
  font-size: 11px;
  color: var(--c-mute);
}

.reviews-cta {
  display: flex; justify-content: space-between; align-items: center;
  gap: 40px;
  padding-top: 60px;
  border-top: 1px solid var(--c-line);
  flex-wrap: wrap;
}
.reviews-cta p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--c-ink-soft);
  margin: 0;
  max-width: 50ch;
}

/* ============================================================
   CONTACTO PAGE
   ============================================================ */
.contact-page { padding-bottom: var(--section-y); }
/* La página de contacto sube hasta el borde superior (bajo la nav fija):
   la foto llena todo, sin franja crema arriba */
.page-wrap:has(> .contact-page) { padding-top: 0; }
/* Bloque de info centrado, en tarjeta blanca sobre la foto.
   El padding-top extra deja sitio a la nav fija. */
.contact-grid {
  display: flex;
  justify-content: center;
  padding-top: 150px;
  padding-bottom: 60px;
}
.contact-grid .contact-info {
  max-width: 640px;
  background: #ffffff;
  padding: 56px 52px;
  box-shadow: 0 30px 80px -30px rgba(26,26,23,0.45);
}
.contact-h1 {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(44px, 5.5vw, 84px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin: 22px 0 24px;
}
.contact-h1 em { font-style: italic; color: var(--c-mute); }
.contact-lede {
  font-size: 16px;
  line-height: 1.75;
  color: var(--c-ink-soft);
  margin: 0 0 40px;
  max-width: 44ch;
}
.contact-items {
  display: flex; flex-direction: column; gap: 22px;
  border-top: 1px solid var(--c-line);
  padding-top: 28px;
}
.contact-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  align-items: start;
}
.contact-item-label {
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-mute);
  padding-top: 4px;
}
.contact-item-value {
  font-size: 16px;
  color: var(--c-ink);
  line-height: 1.5;
}
.contact-item-value:hover { color: var(--c-accent); }

.contact-note {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 18px 22px;
  margin-top: 36px;
  border: 1px solid var(--c-line);
  border-left: 2px solid var(--c-accent);
  background: rgba(45,74,62,0.04);
}
.note-mark {
  flex-shrink: 0;
  width: 18px; height: 18px;
  background: var(--c-accent);
  color: #f4efe6;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-display);
  font-size: 12px;
  border-radius: 50%;
  margin-top: 2px;
}
.contact-note p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--c-ink-soft);
  margin: 0;
}

.contact-form {
  position: relative;
  background: var(--c-bg-2);
  padding: 48px 44px;
  border: 1px solid var(--c-line);
  box-shadow: 0 30px 70px -40px rgba(26,26,23,0.35);
}
/* Imagen del arco como fondo de la mitad derecha (vertical) de la página de contacto */
.contact-page {
  position: relative;
}
/* Imagen del arco a ANCHO COMPLETO, con overlay para legibilidad del lado derecho (info). */
.contact-page::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: -1px; bottom: 0;
  background: url("uploads/contact-bg.jpg") center center / cover no-repeat;
  z-index: 0;
  pointer-events: none;
}
/* Velo crema muy ligero y uniforme: la foto se ve bien y la tarjeta
   blanca central se encarga de la legibilidad del texto */
.contact-page::after {
  content: '';
  position: absolute;
  left: 0; right: 0; top: -1px; bottom: 0;
  background: rgba(244,239,230,0.18);
  z-index: 0;
  pointer-events: none;
}
.contact-page > .shell {
  position: relative;
  z-index: 1;
}

/* ── Contacto en móvil: misma estética (foto + tarjeta blanca),
      tarjeta casi a sangre, etiquetas encima del valor ── */
@media (max-width: 760px) {
  .contact-grid {
    padding-top: 96px;
    padding-bottom: 40px;
    padding-left: 14px;
    padding-right: 14px;
  }
  .contact-grid .contact-info {
    max-width: none;
    width: 100%;
    padding: 34px 24px 30px;
    box-shadow: 0 22px 60px -24px rgba(26,26,23,0.5);
  }
  .contact-h1 { font-size: clamp(36px, 11vw, 48px); margin: 16px 0 18px; }
  .contact-lede { font-size: 14px; margin-bottom: 28px; max-width: none; }
  .contact-items { gap: 18px; padding-top: 22px; }
  /* etiqueta arriba, valor debajo: la columna de 160px no cabe */
  .contact-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .contact-item-label { padding-top: 0; }
  .contact-item-value { font-size: 15px; word-break: break-word; }
  .contact-note { margin-top: 28px; padding: 14px 16px; }
  /* en pantallas estrechas la foto luce mejor algo más velada para
     que la tarjeta no "flote" sobre zonas muy cargadas */
  .contact-page::after { background: rgba(244,239,230,0.28); }
}
.contact-form .form-title {
  font-family: var(--f-display);
  font-size: 30px;
  font-weight: 400;
  margin: 0 0 8px;
}
.contact-form .form-sub {
  font-size: 14px;
  color: var(--c-mute);
  margin: 0 0 32px;
  line-height: 1.6;
}
.contact-form label {
  display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 16px;
}
.contact-form label > span {
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-mute);
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  color: var(--c-ink);
  padding: 13px 16px;
  font-family: var(--f-body);
  font-size: 14px;
  outline: none;
  transition: border-color .2s;
  width: 100%;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus { border-color: var(--c-accent); }
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form .form-submit { width: 100%; margin-top: 12px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--c-ink);
  color: var(--c-bg);
  padding: 80px 0 36px;
  margin-top: var(--section-y);
}
/* Sin espacio entre page-footer verde, env-cta verde y footer oscuro */
.env-cta + .site-footer { margin-top: 0; }
/* El footer oscuro pega directamente con el page-footer (prev/next), sin hueco crema */
.page-footer + .site-footer { margin-top: 0; }
/* En home, las reseñas son la última sección: el footer pega sin hueco */
.site-footer--home { margin-top: 0; }
.page-footer--entorno + .env-cta { border-top: none; padding-top: 0; }
.env-cta { margin-bottom: 0; }
/* Galería: collapse the empty beige margins around the prev/next nav so the
   dark gallery CTA flows into the dark footer */
.page-footer.page-footer--galeria { margin-top: 0; }
.site-footer--galeria { margin-top: 0; }
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand .nav-brand { color: #f4efe6; }
.footer-logo-bg {
  display: flex; align-items: center; justify-content: center;
  width: 132px; height: 132px;
  background: rgba(255,255,255,0.94);
  border-radius: 50%;
  margin-bottom: 24px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.32);
}
.footer-logo {
  height: 92px; width: auto;
}
.footer-tagline {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.75;
  color: rgba(255,255,255,0.65);
  margin: 24px 0 24px;
}
.footer-socials {
  display: flex; flex-wrap: wrap; gap: 14px;
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.footer-socials a {
  color: rgba(255,255,255,0.7);
  border-bottom: 1px solid rgba(255,255,255,0.18);
  padding-bottom: 2px;
  transition: all .3s ease;
}
.footer-socials a:hover { color: var(--c-accent-2); border-color: var(--c-accent-2); }

.footer-col h4 {
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--c-accent-2);
  margin: 0 0 22px;
}
.footer-col { display: flex; flex-direction: column; gap: 14px; }
.footer-col button, .footer-col a {
  font-family: var(--f-body);
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  text-align: left;
  padding: 0;
  background: none;
  border: 0;
  transition: color .3s ease;
}
.footer-col button:hover, .footer-col a:hover { color: #fff; }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 32px;
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  flex-wrap: wrap; gap: 16px;
}
.footer-bottom strong { color: #fff; font-weight: 500; }
.footer-bottom .legal { display: flex; gap: 22px; }
.footer-bottom .legal a:hover { color: #fff; }

/* ============================================================
   BOOKING MODAL — Nekatur iframe
   ============================================================ */
.booking-modal {
  position: fixed; inset: 0;
  z-index: 150;
  background: rgba(7,16,6,0.88);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  animation: modalIn .3s var(--ease);
}
@keyframes modalIn { from { opacity: 0; } to { opacity: 1; } }
.booking-modal-inner {
  background: var(--c-bg);
  width: 100%;
  max-width: 1060px;
  height: 90vh;
  max-height: 880px;
  display: flex; flex-direction: column;
  border: 1px solid var(--c-line);
  box-shadow: 0 40px 80px rgba(0,0,0,0.5);
  overflow: hidden;
  animation: modalUp .4s var(--ease);
}
@keyframes modalUp {
  from { opacity: 0; transform: translateY(20px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
.booking-modal-header {
  background: var(--c-ink);
  padding: 0 24px;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.booking-modal-brand {
  display: flex; align-items: center; gap: 14px;
  color: #f4efe6;
}
.booking-modal-brand img {
  height: 44px; width: auto;
  filter: brightness(1.1) drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}
.booking-modal-title-line {
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
}
.booking-modal-title-line span {
  color: var(--c-accent-2);
  font-style: italic;
}
.booking-modal-close {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(244,239,230,0.65);
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; line-height: 1;
  cursor: pointer;
  transition: all .25s var(--ease);
}
.booking-modal-close:hover {
  background: rgba(184,92,67,0.18);
  color: var(--c-accent-2);
  border-color: rgba(184,92,67,0.35);
}

.booking-modal-iframe-wrap {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: var(--c-bg);
}
.booking-modal-iframe-wrap iframe {
  width: 100%; height: 100%;
  border: 0;
  display: block;
}
.booking-modal-loading {
  position: absolute; inset: 0;
  background: var(--c-bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px;
  z-index: 2;
  pointer-events: none;
}
.booking-modal-loading p {
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-mute);
  margin: 0;
}
.booking-modal-spinner {
  width: 42px; height: 42px;
  border: 2px solid rgba(45,74,62,0.18);
  border-top-color: var(--c-accent);
  border-radius: 50%;
  animation: bm-spin .8s linear infinite;
}
@keyframes bm-spin { to { transform: rotate(360deg); } }

.booking-modal-foot {
  display: flex; justify-content: center;
  gap: 28px;
  padding: 18px 24px;
  background: var(--c-bg-2);
  border-top: 1px solid var(--c-line);
  flex-wrap: wrap;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .booking-modal { padding: 0; }
  .booking-modal-inner { height: 100vh; max-height: none; border: 0; }
  .booking-modal-foot { gap: 14px; padding: 14px; font-size: 10px; }
  .booking-modal-title-line { font-size: 16px; }
  .booking-modal-brand img { height: 38px; }
}

/* ============================================================
   BOOKING — STEP INDICATOR
   ============================================================ */
.booking-steps {
  display: flex; align-items: center; gap: 14px;
  margin-left: auto; margin-right: 18px;
}
.booking-step {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--f-body); font-size: 11px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(244,239,230,0.42);
  white-space: nowrap;
}
.booking-step i {
  display: flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%;
  font-style: normal; font-size: 11px;
  border: 1px solid rgba(244,239,230,0.22);
}
.booking-step.is-active { color: #f4efe6; }
.booking-step.is-active i { background: var(--c-accent-2); border-color: var(--c-accent-2); color: #fff; }
.booking-step.is-done { color: rgba(244,239,230,0.6); }
.booking-step.is-done i { border-color: rgba(244,239,230,0.4); }
.booking-step-sep { width: 26px; height: 1px; background: rgba(244,239,230,0.18); }
@media (max-width: 720px) { .booking-steps { display: none; } }

/* ============================================================
   BOOKING — PLAN (calendar + guests)
   ============================================================ */
.booking-plan {
  flex: 1; min-height: 0;
  display: grid; grid-template-columns: minmax(0, 1fr) 300px;
  overflow-x: hidden; overflow-y: auto;
}
.bp-cal-side {
  padding: clamp(20px, 3vw, 34px);
  border-right: 1px solid var(--c-line);
  display: flex; flex-direction: column; min-width: 0;
}
.bp-cal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 22px; }
.bp-eyebrow {
  font-family: var(--f-body); font-size: 10px; font-weight: 600;
  letter-spacing: 0.26em; text-transform: uppercase; color: var(--c-accent);
  margin-bottom: 8px;
}
.bp-cal-title { font-family: var(--f-display); font-weight: 300; font-size: clamp(22px, 3vw, 30px); line-height: 1; margin: 0; }
.bp-cal-nav { display: flex; gap: 8px; }
.bp-nav-btn {
  width: 36px; height: 36px; border: 1px solid var(--c-line);
  background: var(--c-bg-2); color: var(--c-ink-soft);
  font-size: 15px; cursor: pointer; transition: all .2s var(--ease);
}
.bp-nav-btn:hover:not(:disabled) { border-color: var(--c-accent); color: var(--c-accent); }
.bp-nav-btn:disabled { opacity: 0.3; cursor: default; }

.bp-months { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.4vw, 30px); }
.bp-month { min-width: 0; }
.bp-month-name {
  font-family: var(--f-display); font-size: 17px; font-weight: 500;
  text-transform: capitalize; margin-bottom: 12px; color: var(--c-ink);
}
.bp-month-name span { color: var(--c-mute); font-weight: 300; }
.bp-weekdays, .bp-days { display: grid; grid-template-columns: repeat(7, 1fr); }
.bp-weekdays { margin-bottom: 6px; }
.bp-weekdays span {
  text-align: center; font-family: var(--f-body); font-size: 10px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--c-mute);
  padding-bottom: 4px;
}
.bp-days { gap: 2px; }
.bp-day {
  position: relative; aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center;
  border: 0; background: transparent;
  font-family: var(--f-body); font-size: 13px; color: var(--c-ink-soft);
  cursor: pointer; transition: background .15s var(--ease), color .15s var(--ease);
}
.bp-day.is-empty { pointer-events: none; }
.bp-day span { position: relative; z-index: 2; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.bp-day.is-pick:hover span { background: color-mix(in srgb, var(--c-accent) 14%, transparent); }
.bp-day.is-past { color: var(--c-line); cursor: default; }
.bp-day.is-past span { text-decoration: line-through; opacity: 0.5; }
.bp-day.is-full { color: var(--c-mute); cursor: not-allowed; }
.bp-day.is-full span { opacity: 0.6; }
/* availability bar under each day number */
.bp-avail {
  position: absolute; bottom: 3px; left: 50%; transform: translateX(-50%);
  width: 13px; height: 2px; border-radius: 2px; z-index: 1; pointer-events: none;
}
.bp-avail.free { background: var(--c-accent); opacity: 0.8; }
.bp-avail.some { background: #cf9a3a; }
.bp-avail.full { background: var(--c-accent-2); opacity: 0.5; }
.bp-day.is-in .bp-avail, .bp-day.is-out .bp-avail { display: none; }
.bp-day.is-today span { box-shadow: inset 0 0 0 1px var(--c-stone); }
.bp-day.is-range { background: color-mix(in srgb, var(--c-accent) 12%, transparent); }
.bp-day.is-in { background: linear-gradient(90deg, transparent 50%, color-mix(in srgb, var(--c-accent) 12%, transparent) 50%); }
.bp-day.is-out { background: linear-gradient(90deg, color-mix(in srgb, var(--c-accent) 12%, transparent) 50%, transparent 50%); }
.bp-day.is-in span, .bp-day.is-out span { background: var(--c-accent); color: #f4efe6; }
.bp-day.is-in:hover span, .bp-day.is-out:hover span { background: var(--c-accent); }

.bp-legend-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 14px; flex-wrap: wrap; }
.bp-legend { display: flex; gap: 16px; flex-wrap: wrap; }
.bp-leg { display: flex; align-items: center; gap: 7px; font-family: var(--f-body); font-size: 11px; color: var(--c-ink-soft); }
.bp-dot { width: 9px; height: 9px; border-radius: 50%; }
.bp-dot.free { background: var(--c-accent); }
.bp-dot.some { background: #cf9a3a; }
.bp-dot.full { background: var(--c-accent-2); opacity: 0.6; }
.bp-clear { background: none; border: 0; font-family: var(--f-body); font-size: 11px; color: var(--c-mute); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.bp-clear:hover { color: var(--c-accent-2); }
.bp-legend-note { font-family: var(--f-body); font-size: 11px; color: var(--c-mute); margin: 10px 0 0; line-height: 1.5; }
.bp-legend-note.is-clamp { color: var(--c-accent-2); }

/* live availability status bar (hover / selection feedback) */
.bp-status {
  display: flex; align-items: center; gap: 9px;
  margin-top: 20px; padding: 12px 15px; min-height: 46px;
  border: 1px solid var(--c-line); background: var(--c-bg-2);
  transition: border-color .2s var(--ease);
}
.bp-status-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.bp-status-dot.free { background: var(--c-accent); }
.bp-status-dot.some { background: #cf9a3a; }
.bp-status-dot.full { background: var(--c-accent-2); }
.bp-status-day { font-family: var(--f-display); font-size: 17px; color: var(--c-ink); text-transform: capitalize; }
.bp-status-sep { color: var(--c-stone); }
.bp-status-state { font-family: var(--f-body); font-size: 13px; color: var(--c-ink-soft); }
.bp-status-idle { font-family: var(--f-body); font-size: 13px; color: var(--c-mute); }
.bp-status.is-free, .bp-status.is-range { border-color: color-mix(in srgb, var(--c-accent) 42%, var(--c-line)); }
.bp-status.is-some { border-color: color-mix(in srgb, #cf9a3a 50%, var(--c-line)); }
.bp-status.is-full { border-color: color-mix(in srgb, var(--c-accent-2) 45%, var(--c-line)); }

/* aside */
.bp-aside {
  padding: clamp(20px, 3vw, 32px);
  background: var(--c-bg-2);
  display: flex; flex-direction: column; gap: 20px;
}
.bp-range { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding: 16px; border: 1px solid var(--c-line); background: var(--c-bg); }
.bp-range-cell { display: flex; flex-direction: column; gap: 4px; }
.bp-range-lbl { font-family: var(--f-body); font-size: 9px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--c-mute); }
.bp-range-val { font-family: var(--f-display); font-size: 20px; color: var(--c-ink); }
.bp-range-arrow { color: var(--c-stone); }
.bp-range-nights { position: absolute; top: -9px; right: 14px; background: var(--c-accent); color: #f4efe6; font-family: var(--f-body); font-size: 10px; font-weight: 600; letter-spacing: 0.08em; padding: 2px 9px; }

.bp-guests-h { font-family: var(--f-body); font-size: 10px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--c-mute); margin-bottom: 12px; }
.bp-step { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--c-line); }
.bp-step:last-child { border-bottom: 0; }
.bp-step-txt { display: flex; flex-direction: column; gap: 2px; }
.bp-step-label { font-family: var(--f-body); font-size: 14px; color: var(--c-ink); }
.bp-step-sub { font-family: var(--f-body); font-size: 11px; color: var(--c-mute); }
.bp-step-ctrl { display: flex; align-items: center; gap: 12px; }
.bp-step-btn {
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--c-line);
  background: var(--c-bg); color: var(--c-ink-soft); font-size: 15px; line-height: 1;
  display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all .2s var(--ease);
}
.bp-step-btn:hover:not(:disabled) { border-color: var(--c-accent); color: var(--c-accent); }
.bp-step-btn:disabled { opacity: 0.28; cursor: default; }
.bp-step-val { font-family: var(--f-display); font-size: 18px; min-width: 18px; text-align: center; color: var(--c-ink); }

.bp-cap-hint { display: flex; align-items: center; gap: 9px; font-family: var(--f-body); font-size: 12px; color: var(--c-ink-soft); padding: 11px 14px; background: color-mix(in srgb, var(--c-accent) 8%, transparent); border-left: 2px solid var(--c-accent); }
.bp-cap-icon { font-size: 14px; color: var(--c-accent); }
.bp-warn { font-family: var(--f-body); font-size: 12px; color: var(--c-accent-2); padding: 8px 0 0; }
.bp-hint { font-family: var(--f-body); font-size: 12px; color: var(--c-mute); text-align: center; }
.bp-continue { width: 100%; justify-content: center; margin-top: auto; white-space: normal; text-align: center; line-height: 1.35; letter-spacing: 0.1em; font-size: 11px; padding-top: 15px; padding-bottom: 15px; }

/* confirm step */
.booking-confirm { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.bp-confirm-bar { display: flex; align-items: center; gap: 16px; padding: 12px 22px; background: var(--c-bg-2); border-bottom: 1px solid var(--c-line); flex-wrap: wrap; }
.bp-back { background: none; border: 1px solid var(--c-line); padding: 7px 13px; font-family: var(--f-body); font-size: 12px; color: var(--c-ink-soft); cursor: pointer; transition: all .2s var(--ease); }
.bp-back:hover { border-color: var(--c-accent); color: var(--c-accent); }
.bp-confirm-summary { display: flex; align-items: center; gap: 7px; font-family: var(--f-body); font-size: 13px; color: var(--c-ink-soft); }
.bp-confirm-summary strong { font-family: var(--f-display); font-weight: 500; color: var(--c-ink); }
.bp-confirm-note { margin-left: auto; font-family: var(--f-body); font-size: 11px; color: var(--c-mute); max-width: 320px; line-height: 1.4; }

@media (max-width: 820px) {
  .booking-plan { grid-template-columns: 1fr; }
  .bp-cal-side { border-right: 0; border-bottom: 1px solid var(--c-line); }
}
@media (max-width: 540px) {
  .bp-months { grid-template-columns: 1fr; gap: 22px; }
  .bp-confirm-note { display: none; }
}

/* ============================================================
   GOOGLE BADGE (reviews)
   ============================================================ */
.g-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--c-accent); color: #f4efe6;
  font-family: var(--f-body); font-weight: 700; font-size: 11px;
  margin-right: 4px; vertical-align: -3px;
}
.g-badge.sm { width: 15px; height: 15px; font-size: 9px; vertical-align: -2px; }
.reviews-score-src { display: flex; align-items: center; font-family: var(--f-body); font-size: 11px; color: var(--c-mute); margin-top: 2px; }
.review-source { display: flex; align-items: center; }
.review-avatar {
  flex-shrink: 0;
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-body); font-weight: 600; font-size: 14px;
  color: #f4efe6; letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.review-id { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.review-foot .review-stars { margin-left: auto; flex-shrink: 0; }
.review-source .g-badge { flex-shrink: 0; }

/* ============================================================
   GALLERY — PLACEHOLDER FRAMES (animales)
   ============================================================ */
.gal-frame-img.is-ph, .gal-tile-img.is-ph, .gal-lb-ph.is-ph, .gal-farm-img.is-ph {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background-color: #1d1810;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.035) 0 9px, transparent 9px 18px);
  color: rgba(244,239,230,0.5); text-align: center; padding: 14px;
}
.gal-ph-plus { font-size: 22px; color: rgba(244,239,230,0.4); line-height: 1; }
.gal-ph-label { font-family: var(--f-display); font-size: 15px; font-style: italic; color: rgba(244,239,230,0.78); }
.gal-ph-drop { font-family: var(--f-mono); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(244,239,230,0.4); }
.gal-lb-ph.is-ph { width: 100%; height: 100%; min-height: 50vh; }
.gal-lb-ph .gal-ph-plus { font-size: 40px; }
.gal-lb-ph .gal-ph-label { font-size: 26px; }

/* ============================================================
   GALLERY — LA GRANJA (farm band)
   ============================================================ */
.gal-farm { margin-bottom: clamp(56px, 10vh, 120px); }
.gal-farm-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 30px; }
.gal-farm-lede { max-width: 420px; font-family: var(--f-body); font-size: 14px; line-height: 1.65; color: var(--c-ink-soft); margin: 0; }
.gal-farm-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gal-farm-frame { display: flex; flex-direction: column; gap: 10px; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.gal-farm-img { aspect-ratio: 4 / 5; border: 1px solid var(--c-line); transition: transform .35s var(--ease); background-size: cover; background-position: center; }
.gal-farm-frame:hover .gal-farm-img { transform: translateY(-4px); }
/* letter-spacing: a 12px Inter Tight funde "rn" en "m" (Terneros → Temeros) */
.gal-farm-cap { display: flex; flex-direction: column; gap: 3px; font-family: var(--f-body); font-size: 12px; letter-spacing: 0.03em; color: var(--c-ink-soft); }
.gal-farm-no { font-family: var(--f-mono); font-size: 9px; letter-spacing: 0.12em; color: var(--c-mute); }
.gal-farm-note { margin: 22px 0 0; font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-mute); }
@media (max-width: 700px) { .gal-farm-row { grid-template-columns: 1fr 1fr; } }

/* ============================================================
   PAGE TRANSITIONS & WRAP
   ============================================================ */
.page-stage { opacity: 1; transition: opacity .35s var(--ease), transform .45s var(--ease); }
.page-stage.is-transitioning { opacity: 0; transform: translateY(12px); }
.page-wrap { padding-top: 100px; min-height: 70vh; }
.page-wrap > * .shell:first-child { /* keep */ }

/* page-wrap padding handled in main nav rules */

/* ============================================================
   PAGE FOOTER (prev/next)
   ============================================================ */
.page-footer {
  padding: 50px 0;
  background: var(--c-bg);
  border-top: 1px solid var(--c-line);
  margin-top: var(--section-y);
}
.page-footer-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px; align-items: center;
}
.page-foot-link {
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-mute);
  transition: all .3s var(--ease);
  padding: 8px 0;
}
.page-foot-link:hover { color: var(--c-ink); }
.page-foot-link.prev { text-align: left; }
.page-foot-link.next { text-align: right; }
.page-foot-link.prev:hover { transform: translateX(-6px); }
.page-foot-link.next:hover { transform: translateX(6px); }
.page-foot-mark {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-mute);
}
.page-foot-mark .mark-circle {
  width: 8px; height: 8px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

/* ============================================================
   ENV MAP — real Leaflet map with overlay card
   ============================================================ */
.env-map-section {
  position: relative;
  height: 78vh;
  min-height: 620px;
  background: #0a0f08;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
}
.env-map-real {
  position: absolute; inset: 0;
  z-index: 1;
  background: #0a0f08;
}
.env-map-overlay {
  position: absolute; inset: 0;
  z-index: 2;
  background: linear-gradient(90deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0) 35%, rgba(0,0,0,0) 55%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}
.env-map-card {
  position: absolute;
  right: var(--gutter);
  top: 50%; transform: translateY(-50%);
  z-index: 3;
  width: clamp(340px, 28vw, 420px);
  max-height: calc(100% - 48px);
  display: flex; flex-direction: column;
  background: rgba(107,140,74,0.92);
  backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 40px 80px rgba(0,0,0,0.45);
  color: #f4efe6;
  overflow: hidden;
}

.env-map-photo {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #14140f;
  flex-shrink: 0;
}
.env-map-photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .8s var(--ease);
}
.env-map-photo img.is-active { opacity: 1; }
.env-map-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.7));
  pointer-events: none;
}
.env-map-photo figcaption {
  position: absolute;
  left: 22px; right: 22px; bottom: 18px;
  z-index: 2;
  color: #fff;
  display: flex; flex-direction: column; gap: 6px;
}
.env-map-photo figcaption strong {
  font-family: var(--f-display);
  font-size: 26px;
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.01em;
}
.env-map-photos {
  display: inline-flex; align-items: center; gap: 7px; align-self: flex-start;
  margin-top: 8px; padding: 7px 13px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.24);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  color: #fff; font-family: var(--f-body); font-size: 10px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  transition: all .25s var(--ease);
}
.env-map-photos:hover { background: var(--c-accent); border-color: var(--c-accent); transform: translateY(-1px); }
.env-map-photos-ic { font-size: 12px; color: #c8e0c8; }
.env-map-directions {
  display: inline-flex; align-items: center; gap: 7px; align-self: flex-start;
  margin-top: 6px; padding: 7px 13px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  color: #fff; font-family: var(--f-body); font-size: 10px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  transition: all .25s var(--ease);
}
.env-map-directions:hover { background: var(--c-accent); border-color: var(--c-accent); transform: translateY(-1px); }

/* greener map tone */
.env-map-real .leaflet-tile-pane {
  filter: saturate(1.3) brightness(0.92) contrast(1.06);
}
.env-map-real { background: #16241a; }

.env-map-chapters {
  display: flex; flex-direction: column;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.18) transparent;
  flex: 1;
  min-height: 0;
}
.env-map-chapters::-webkit-scrollbar { width: 6px; }
.env-map-chapters::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.16); border-radius: 3px; }

.env-map-chapter {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 14px;
  align-items: baseline;
  padding: 14px 22px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-align: left;
  background: transparent;
  cursor: pointer;
  transition: background .25s var(--ease), padding .25s var(--ease);
  color: inherit;
}
.env-map-chapter:last-child { border-bottom: 0; }
.env-map-chapter .num {
  font-family: var(--f-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.42);
}
.env-map-chapter .title {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: #f4efe6;
}
.env-map-chapter .dist {
  font-family: var(--f-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.env-map-chapter:hover,
.env-map-chapter.is-active {
  background: rgba(184,92,67,0.10);
  padding-left: 30px;
}
.env-map-chapter:hover .title,
.env-map-chapter.is-active .title {
  color: var(--c-accent-2);
  font-style: italic;
}
.env-map-chapter.is-here .title { color: #fff; font-weight: 500; font-style: normal; }
.env-map-chapter.is-here .num { color: var(--c-accent-2); }
.env-map-chapter.is-here.is-active .title { font-style: italic; }

/* Leaflet marker styling */
.env-marker {
  position: relative;
  pointer-events: auto;
}
.env-marker-dot {
  position: absolute;
  top: 0; left: 0;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.85);
  transition: all .3s var(--ease);
}
.env-marker:hover .env-marker-dot,
.env-marker.is-active .env-marker-dot {
  background: var(--c-accent-2);
  border-color: var(--c-accent-2);
  transform: scale(1.5);
  box-shadow: 0 0 0 6px rgba(184,92,67,0.18);
}
.env-marker.is-here .env-marker-dot {
  background: #fff;
  border-color: #fff;
  width: 16px; height: 16px;
  box-shadow: 0 0 0 6px rgba(255,255,255,0.18), 0 0 0 12px rgba(255,255,255,0.08);
}
.env-marker.is-here.is-active .env-marker-dot {
  background: #fff;
  border-color: #fff;
}
.env-marker-lbl {
  position: absolute;
  left: 22px; top: 0;
  white-space: nowrap;
  font-family: var(--f-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
  pointer-events: none;
}
.env-marker.is-here .env-marker-lbl { color: #fff; font-weight: 600; }
.env-marker:hover .env-marker-lbl,
.env-marker.is-active .env-marker-lbl { color: #fff; }

/* hide leaflet defaults that conflict */
.leaflet-container { background: #0a0f08 !important; }
.leaflet-control-attribution { display: none !important; }

@media (max-width: 1024px) {
  .env-map-section { height: auto; min-height: 0; }
  .env-map-real { position: relative; height: 60vh; min-height: 380px; }
  .env-map-overlay { display: none; }
  .env-map-card {
    position: relative;
    right: auto; top: auto; transform: none;
    width: 100%; max-height: none;
    margin-top: -1px;
  }
  .env-map-chapters { max-height: 360px; }
}
.parallax-y { will-change: transform; }
.tilt { transform-style: preserve-3d; }
/* Sin transition en transform: el JS de Tilt ya hace su propio easing por frames.
   Tenerla aquí hacía que CSS y JS pelearan por la misma propiedad → repintado
   continuo y parpadeo del cursor. El tilt sigue siendo suave (lo suaviza el JS). */
.tilt-inner { transform-style: preserve-3d; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .intro-grid, .host-grid, .lt-head, .aloj-hero, .env-natura, .env-grid-head, .env-cta-inner, .contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .lt-cards, .env-grid { grid-template-columns: 1fr 1fr; }
  .act-grid { grid-template-columns: 1fr 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
  .env-grid-lede { text-align: left; }
  .booking-modal-form .bf-row { grid-template-columns: 1fr; }
  .contact-form .form-row { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 760px) {
  .lt-cards, .env-grid, .act-grid { grid-template-columns: 1fr; }
  /* Alojamiento: las 3 tarjetas a la vez en móvil (3 columnas compactas) */
  .aloj-cards-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 36px;
  }
  .aloj-card-body { padding: 12px 9px 14px; }
  .aloj-card-num { font-size: 26px; margin-bottom: 2px; }
  .aloj-card-title { font-size: 13px; line-height: 1.15; margin: 0 0 6px; }
  .aloj-card-text { font-size: 10px; line-height: 1.5; }
  .intro-imgs { height: 420px; }
  .host-imgs { height: 380px; }
  .host-facts { gap: 20px; }
  .hero-trust { flex-direction: column; align-items: flex-start; gap: 8px; }
  .hero-trust-sep { display: none; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .reviews-cta { flex-direction: column; align-items: flex-start; }
  /* hero stacks */
  .hero { height: auto; min-height: 100svh; }
  .hero-content { padding: 96px var(--gutter) 40px; gap: 24px; }
  /* eyebrow pinned arriba; bloque derecho (desde 2008 · google) es redundante
     con la caja de stats de abajo → se oculta para descongestionar */
  .hero-meta { font-size: 10px; letter-spacing: 0.16em; gap: 16px; }
  .hero-meta .stack:nth-child(2) { display: none; }
  .hero-title { font-size: clamp(44px, 12.5vw, 72px); line-height: 0.98; }
  .hero-foot { flex-direction: column; align-items: flex-start; gap: 22px; }
  .hero-dots { display: none; }
  .hero-lede { max-width: none; margin-bottom: 18px; }
  .hero-trust { margin-top: 4px; }
  /* el indicador "Descubrir" se solapaba con la caja de stats → fuera en móvil */
  .scroll-hint { display: none; }
  /* con el chat abierto, la burbuja flotante se solapaba con el botón
     "Reservar ahora" del panel → la ocultamos (se cierra con la × de la cabecera) */
  .chat.is-open .chat-launch { display: none; }
  /* reviews + contact heads stack */
  .reviews-head { flex-direction: column; align-items: flex-start; gap: 24px; }
  .gal-cta-inner { flex-direction: column; align-items: flex-start; }
  .env-distance { padding: 0 22px; }
}
@media (max-width: 560px) {
  :root { --section-y: clamp(3.5rem, 9vh, 6rem); }
  .page-wrap { padding-top: 76px; }
  /* distances become a 2-col grid instead of a cramped row */
  .env-distances-inner { gap: 0; padding: 28px 0; }
  .env-distance { flex: 1 1 40%; padding: 14px 10px; }
  .env-distance-sep { display: none; }
  /* booking modal already full-screen; chat panel full width */
  .chat-launch { width: 54px; height: 54px; bottom: 20px; }
  .chat-panel { right: 12px; left: 12px; width: auto; bottom: 86px; }
  /* tap targets */
  .btn { padding: 14px 22px; }
}

/* ============================================================
   GALERÍA — "El carrete"
   ============================================================ */
.gal-page { background: var(--c-bg); color: var(--c-ink); overflow: hidden; }

/* shared film grain */
.gal-frame-grain, .gal-tile-grain, .gal-lb-grain {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .25 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
  pointer-events: none;
}

/* INTRO */
.gal-intro {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
  padding-bottom: clamp(36px, 6vh, 64px);
}
/* tras el hero, el bloque queda solo con el contador, alineado a la derecha */
.gal-intro-after-hero {
  grid-template-columns: 1fr;
  padding-top: clamp(40px, 6vh, 72px);
  padding-bottom: clamp(20px, 3vh, 36px);
}
.gal-intro-side-only { flex-direction: row; justify-content: flex-end; }
.gal-h1 {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(46px, 7vw, 120px);
  line-height: 0.96;
  letter-spacing: -0.02em;
  margin: 18px 0 0;
}
.gal-h1 em { font-style: italic; color: var(--c-accent); }
.gal-intro-side { display: flex; flex-direction: column; gap: 26px; align-items: flex-start; padding-bottom: 8px; }
.gal-intro-lede { font-size: 16px; line-height: 1.72; color: var(--c-ink-soft); max-width: 40ch; margin: 0; }
.gal-count { display: flex; align-items: baseline; gap: 12px; }
.gal-count-n { font-family: var(--f-display); font-weight: 400; font-size: 60px; line-height: 1; color: var(--c-accent); }
.gal-count-l { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--c-mute); }

/* FILMSTRIP */
.gal-reel-wrap { margin: clamp(16px, 3vh, 36px) 0 clamp(56px, 9vh, 110px); }
.gal-reel-meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--c-mute);
}
.gal-reel-label { color: var(--c-accent); }
.gal-reel-drag { animation: gal-nudge 2.4s ease-in-out infinite; }
@keyframes gal-nudge { 0%,100% { opacity: .55; } 50% { opacity: 1; transform: translateX(4px); } }

.gal-reel {
  position: relative;
  background: #141009;
  padding: 14px 0;
  box-shadow: inset 0 1px 0 rgba(244,239,230,0.06), inset 0 -1px 0 rgba(244,239,230,0.06);
}
.gal-sprockets {
  height: 16px;
  margin: 0 0;
  background-image: repeating-linear-gradient(90deg, transparent 0 18px, rgba(244,239,230,0.62) 18px 32px);
  background-size: auto 9px;
  background-repeat: repeat-x;
  background-position: center;
}
.gal-sprockets-top { margin-bottom: 12px; }
.gal-sprockets-bot { margin-top: 12px; }
.gal-reel-track {
  display: flex; gap: 12px;
  padding: 0 clamp(20px, 4vw, 56px);
  overflow-x: auto;
  scrollbar-width: none;
  cursor: grab;
}
.gal-reel-track::-webkit-scrollbar { display: none; }
.gal-reel-track.is-dragging { cursor: grabbing; }

.gal-frame {
  position: relative; flex: 0 0 auto;
  width: clamp(210px, 23vw, 330px);
  aspect-ratio: 4 / 5;
  background: #1c1813;
  border: 0; padding: 0; cursor: pointer;
  overflow: hidden;
  outline: 1px solid rgba(244,239,230,0.08);
}
.gal-frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 50%, rgba(0,0,0,0.75) 100%);
  z-index: 2; pointer-events: none;
}
.gal-frame-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 1s var(--ease);
  filter: saturate(0.96);
}
.gal-frame:hover .gal-frame-img { transform: scale(1.06); }
.gal-frame-grain { position: absolute; inset: 0; opacity: 0.22; mix-blend-mode: overlay; z-index: 3; }
.gal-frame-tag {
  position: absolute; top: 11px; left: 12px; right: 12px; z-index: 4;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(244,239,230,0.92);
}
.gal-frame-cat { color: var(--c-accent-2); }
.gal-frame-cap {
  position: absolute; left: 13px; right: 13px; bottom: 13px; z-index: 4;
  font-family: var(--f-body); font-size: 13px; line-height: 1.4; letter-spacing: 0.03em; color: #fff;
  opacity: 0; transform: translateY(8px); transition: 0.45s var(--ease);
}
.gal-frame:hover .gal-frame-cap { opacity: 1; transform: none; }

/* WALL */
.gal-wall-section { margin-bottom: clamp(56px, 10vh, 120px); }
.gal-wall-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 24px; flex-wrap: wrap; margin-bottom: 34px;
}
.gal-wall-h2 {
  font-family: var(--f-display); font-weight: 300;
  font-size: clamp(30px, 4vw, 58px); line-height: 1; margin: 10px 0 0;
}
.gal-wall-h2 em { font-style: italic; color: var(--c-accent); }
.gal-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.gal-filter {
  position: relative;
  font-family: var(--f-body); font-size: 11px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 9px 17px; border: 1px solid var(--c-line); background: transparent;
  color: var(--c-ink-soft); cursor: pointer; border-radius: 999px;
  transition: all 0.3s var(--ease);
}
.gal-filter:hover { border-color: var(--c-accent); color: var(--c-accent); }
.gal-filter.is-active { background: var(--c-accent); border-color: var(--c-accent); color: #f4efe6; }
.gal-filter-dot { display: none; }

.gal-wall {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: clamp(200px, 20vw, 260px);
  gap: 12px;
  grid-auto-flow: dense;
}
.gal-tile { position: relative; min-height: 0; }
/* Formas de baldosa; la secuencia la decide wallShape() en sections.jsx
   para que cada fila de 3 columnas quede completa. */
.gal-tile-big  { grid-column: span 2; grid-row: span 2; }
.gal-tile-sq, .gal-tile-sqw { grid-column: span 1; grid-row: span 1; }
.gal-tile-tall { grid-column: span 1; grid-row: span 2; }
.gal-tile-wide { grid-column: span 2; grid-row: span 1; }
.gal-tile-w3   { grid-column: span 3; grid-row: span 1; }
.gal-tile-btn {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: 0; padding: 0; cursor: pointer; overflow: hidden;
  background: #1c1813;
}
.gal-tile-btn::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,0.72) 100%);
  opacity: 0; transition: opacity 0.4s var(--ease);
}
.gal-tile-btn:hover::after { opacity: 1; }
.gal-tile-img {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  transition: transform 1.1s var(--ease); filter: saturate(0.96);
}
.gal-tile-btn:hover .gal-tile-img { transform: scale(1.07); }
.gal-tile-grain { position: absolute; inset: 0; opacity: 0.16; mix-blend-mode: overlay; z-index: 3; }
.gal-tile-meta {
  position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 4;
  display: flex; flex-direction: column; gap: 4px;
  opacity: 0; transform: translateY(10px); transition: 0.45s var(--ease);
}
.gal-tile-btn:hover .gal-tile-meta { opacity: 1; transform: none; }
.gal-tile-no { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-accent-2); }
.gal-tile-cap { font-family: var(--f-display); font-style: italic; font-size: clamp(16px, 1.6vw, 22px); color: #fff; line-height: 1.2; }
.gal-tile-plus {
  position: absolute; top: 14px; right: 14px; z-index: 4;
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: #fff;
  background: rgba(20,16,9,0.4); border: 1px solid rgba(244,239,230,0.3);
  opacity: 0; transform: scale(0.7); transition: 0.4s var(--ease);
}
.gal-tile-btn:hover .gal-tile-plus { opacity: 1; transform: none; }
.gal-empty {
  grid-column: 1 / -1; text-align: center; padding: 60px 0;
  font-family: var(--f-body); color: var(--c-mute); font-size: 15px;
}

/* CTA */
.gal-cta { background: var(--c-accent); color: #f4efe6; padding: clamp(56px, 10vh, 120px) 0; }
.gal-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 36px; flex-wrap: wrap; }
.gal-cta-h2 { font-family: var(--f-display); font-weight: 300; font-size: clamp(34px, 5vw, 74px); line-height: 1; margin: 0; }
.gal-cta-h2 em { font-style: italic; color: #f4efe6; opacity: 0.85; }
.gal-cta .btn-primary { background: #f4efe6; color: #1a1a17; border-color: #f4efe6; }
.gal-cta .btn-primary:hover { background: #ffffff; color: #1a1a17; border-color: #ffffff; }
.gal-cta .btn-primary { background: #f4efe6; color: var(--c-ink); border-color: #f4efe6; }
.gal-cta .btn-primary:hover { background: var(--c-accent-2); color: #fff; border-color: var(--c-accent-2); }

/* LIGHTBOX */
.gal-lb {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(15,13,9,0.96);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  animation: gal-fade 0.35s ease;
}
@keyframes gal-fade { from { opacity: 0; } to { opacity: 1; } }
.gal-lb-grain { position: absolute; inset: 0; opacity: 0.08; mix-blend-mode: overlay; }
.gal-lb-top {
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 22px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(244,239,230,0.65);
}
.gal-lb-no { color: var(--c-accent-2); }
/* La X va en flujo dentro de .gal-lb-top: con absolute se montaba sobre el
   contador, que el space-between empujaba al mismo borde derecho. */
.gal-lb-close {
  font-size: 32px; line-height: 1; background: none; border: 0;
  padding: 0 0 0 28px; margin-top: -6px;
  color: rgba(244,239,230,0.65); cursor: pointer; transition: color 0.3s;
}
.gal-lb-close:hover { color: #fff; }
.gal-lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 56px; height: 56px; border-radius: 50%;
  border: 1px solid rgba(244,239,230,0.2); background: rgba(244,239,230,0.04);
  color: #f4efe6; font-size: 22px; cursor: pointer; transition: all 0.3s var(--ease);
}
.gal-lb-nav.prev { left: clamp(12px, 3vw, 44px); }
.gal-lb-nav.next { right: clamp(12px, 3vw, 44px); }
.gal-lb-nav:hover { background: var(--c-accent); border-color: var(--c-accent); transform: translateY(-50%) scale(1.08); }
.gal-lb-stage { display: flex; flex-direction: column; align-items: center; gap: 22px; max-width: min(1100px, 84vw); position: relative; z-index: 1; }
.gal-lb-frame { background: #141009; padding: 10px; box-shadow: 0 40px 110px rgba(0,0,0,0.6); }
.gal-lb-frame img { display: block; max-width: 100%; max-height: 70vh; object-fit: cover; background: #1c1813; }
.gal-lb-cap { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.gal-lb-cat { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--c-accent-2); }
.gal-lb-cap-text { font-family: var(--f-display); font-style: italic; font-size: clamp(20px, 3vw, 34px); color: #f4efe6; }
.gal-lb-hint {
  position: absolute; bottom: 22px; left: 0; right: 0; text-align: center;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(244,239,230,0.38);
}

@media (max-width: 920px) {
  .gal-intro { grid-template-columns: 1fr; align-items: start; }
  .gal-intro-side { flex-direction: row; align-items: flex-end; justify-content: space-between; width: 100%; }
  /* 2 columnas: el ciclo de 6 pasa a 10 celdas = 5 filas completas
     (big 2×2, sq+sq, tall a ancho completo, wide+wide como 1×1) */
  .gal-wall { grid-template-columns: repeat(2, 1fr); grid-auto-rows: clamp(160px, 22vw, 220px); }
  .gal-tile-big  { grid-column: span 2; grid-row: span 2; }
  .gal-tile-sq, .gal-tile-wide { grid-column: span 1; grid-row: span 1; }
  .gal-tile-tall, .gal-tile-w3, .gal-tile-sqw { grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 600px) {
  .gal-intro-side { flex-direction: column; align-items: flex-start; gap: 18px; }
  .gal-wall { grid-auto-rows: clamp(140px, 40vw, 190px); }
  .gal-lb-nav { width: 46px; height: 46px; }
}

/* ============================================================
   BOOKING — botón alternativo Booking.com
   ============================================================ */
.bp-confirm-actions {
  display: flex; flex-direction: column; gap: 8px; align-items: flex-end;
}
.bp-confirm-note { text-align: right; }
.bp-booking-alt {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--f-body); font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: #003580;          /* azul Booking.com corporativo */
  background: #f0f4ff;
  border: 1px solid #c8d8f5;
  padding: 7px 13px;
  border-radius: 6px;
  text-decoration: none;
  transition: background .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.bp-booking-alt:hover { background: #dce8ff; border-color: #7baae8; }
.bp-booking-alt svg { flex-shrink: 0; }
/* Botón Booking en el footer del modal */
.booking-booking-btn { color: #003580 !important; }
.booking-booking-btn:hover { color: #0052b4 !important; }

/* ── Alternativa Booking.com en paso 1 (aside del calendario) ── */
.bp-booking-alt-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}
.bp-alt-or {
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-mute);
  flex-shrink: 0;
}
.bp-booking-alt-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 18px;
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #003580;
  background: #edf3ff;
  border: 1px solid #b8cff5;
  text-decoration: none;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}
.bp-booking-alt-btn:hover {
  background: #dce8ff;
  border-color: #7baae8;
  color: #002060;
}
.bp-booking-b-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  background: #003580;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 3px;
  flex-shrink: 0;
  font-family: sans-serif;
}

/* Calendar read-only days */
.bp-day--readonly {
  cursor: default !important;
  pointer-events: none;
}
.bp-day--readonly:hover {
  background: transparent !important;
  color: inherit !important;
}

/* page-footer contacto — same neutral style as galería */
.page-footer--contacto {
  background: var(--c-bg);
  color: var(--c-mute);
  border-top: 1px solid var(--c-line);
  /* la foto de contacto pega directamente con esta barra, sin hueco crema */
  margin-top: 0;
}

/* ============================================================
   FARM ACTIVITIES SECTION
   ============================================================ */
.farm-section {
  padding: var(--section-y) 0;
  background: var(--c-bg);
  border-top: 1px solid var(--c-line);
}
.farm-inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.farm-header {
  max-width: 680px;
}
.farm-title {
  font-family: var(--f-head);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  color: var(--c-ink);
  margin: 10px 0 16px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.farm-sub {
  font-size: 1.05rem;
  color: var(--c-mute);
  line-height: 1.7;
  max-width: 560px;
}
.farm-cats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 768px) {
  .farm-cats { grid-template-columns: 1fr; gap: 20px; }
}
.farm-cat {
  background: var(--c-surface, #fff);
  border: 1px solid var(--c-line);
  border-radius: 12px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.farm-cat:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}
.farm-cat-icon {
  width: 48px;
  height: 48px;
  color: var(--c-accent);
  flex-shrink: 0;
}
.farm-cat-icon svg {
  width: 100%;
  height: 100%;
}
.farm-cat-name {
  font-family: var(--f-head);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--c-ink);
  margin: 0;
  letter-spacing: -0.01em;
}
.farm-cat-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.farm-cat-list li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 0.92rem;
  color: var(--c-mute);
  line-height: 1.5;
}
.farm-dot {
  color: var(--c-accent);
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
}

/* ============================================================
   COOKIE CONSENT BAR
   ============================================================ */
.cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  background: var(--c-ink);
  color: rgba(255,255,255,0.9);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.18);
}
.cookie-bar-text {
  flex: 1;
  font-size: 0.88rem;
  line-height: 1.5;
  min-width: 200px;
  margin: 0;
}
.cookie-bar-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--c-accent);
  font-size: inherit;
  font-family: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-bar-link:hover { opacity: 0.75; }
.cookie-bar-accept {
  background: var(--c-accent);
  color: #fff;
  border: none;
  padding: 10px 22px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--f-ui);
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.18s;
  flex-shrink: 0;
}
.cookie-bar-accept:hover { opacity: 0.85; }

/* ============================================================
   FOOTER LEGAL BUTTONS
   ============================================================ */
.footer-legal-btn {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
  font-family: inherit;
  cursor: pointer;
  opacity: 0.65;
  transition: opacity 0.18s;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-legal-btn:hover { opacity: 1; }

/* ============================================================
   LEGAL MODAL
   ============================================================ */
.legal-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9100;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}
.legal-modal-inner {
  background: var(--c-bg);
  border-radius: 14px;
  width: 100%;
  max-width: 720px;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 64px rgba(0,0,0,0.22);
  overflow: hidden;
}
.legal-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 18px;
  border-bottom: 1px solid var(--c-line);
  flex-shrink: 0;
}
.legal-modal-title {
  font-family: var(--f-head);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--c-ink);
  margin: 0;
  letter-spacing: -0.02em;
}
.legal-modal-close {
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--c-mute);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.legal-modal-close:hover {
  background: var(--c-line);
  color: var(--c-ink);
}
.legal-modal-body {
  padding: 24px 28px 32px;
  overflow-y: auto;
  font-size: 0.92rem;
  color: var(--c-mute);
  line-height: 1.75;
}
.legal-modal-body h3 {
  font-family: var(--f-head);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--c-ink);
  margin: 22px 0 8px;
}
.legal-modal-body p { margin: 0 0 12px; }
.legal-modal-body ul {
  padding-left: 20px;
  margin: 0 0 12px;
}
.legal-modal-body li { margin-bottom: 6px; }
.legal-modal-body a {
  color: var(--c-accent);
  text-underline-offset: 2px;
}


/* ============================================================
   SCROLL REVEAL — fade-up suave al entrar en viewport
   ============================================================ */
.rv {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity .85s cubic-bezier(.22,.61,.36,1),
    transform .85s cubic-bezier(.22,.61,.36,1);
  transition-delay: var(--rv-d, 0ms);
}
.rv.rv-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1 !important; transform: none !important; transition: none !important; }
}
