:root {
  --forest: #1B3B2B;
  --forest-dark: #152920;
  --forest-mid: #2A523E;
  --forest-card: #152E22;
  --forest-border: #325946;
  --forest-accent-border: #4D7A63;
  --terracotta: #C85A28;
  --terracotta-hover: #B04C1E;
  --sun: #E7A840; /* amarillo del sol del logo (assets/brand/sol.svg) */
  --terracotta-btn: #C05525; /* terracota apenas más oscuro para texto blanco (4,6:1, antes 4,2:1) */
  --cream: #F7F5F0;
  --white: #FFFFFF;
  --border: #E5E0D5;
  --border-strong: #D5CFC3;
  --sage: #EBF2EE;
  --sage-border: #D5E2DA;
  --sage-border-strong: #C7D9CE;
  --pill: #F0EDE6;
  --ink: #1E2421;
  --muted: #5C6660;
  --body: #454E49;
  --on-dark: #D7E3DC;
  --on-dark-muted: #B8C9BF;
  --on-dark-soft: #8EA699;
  --wa-border: #25D366;
  --wa-bg: #1E7E45;
  --booking: #003580;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 16px;
  --max-w: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-size: 17px;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible, button:focus-visible, select:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 16px;
}

@media (min-width: 900px) {
  .container { padding-inline: 64px; }
}

/* Navbar */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
}

@media (min-width: 900px) {
  .nav-inner { min-height: 72px; }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  display: block;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.brand-name {
  display: block;
  font-weight: 700;
  font-size: 18px;
  color: var(--forest);
  letter-spacing: 0.03em;
  line-height: 1.15;
}

.brand-sub {
  display: block;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.2;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 24px;
  font-size: 16px;
  color: var(--muted);
}

.nav-links a { white-space: nowrap; }

/* Escritorio angosto: con los rótulos en 1 línea se aprieta el espacio para que el menú quepa dentro del margen */
@media (min-width: 900px) and (max-width: 1099px) {
  .nav-inner { gap: 12px; }
  .nav-links { gap: 14px; }
}

.nav-links a:hover, .nav-links a[aria-current="page"] {
  color: var(--forest);
  font-weight: 600;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Desplegable de idioma: select nativo (teclado y lector de pantalla), flecha propia sin recursos externos */
.lang-select select {
  appearance: none;
  height: 34px;
  max-width: 100%;
  padding: 0 28px 0 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--pill) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%231B3B2B' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 10px center;
  color: var(--ink);
  font: inherit;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
}

/* En la portada, el celular lo lleva dentro del menú; en escritorio, en el encabezado */
.lang-select--wide { display: none; }
.lang-select--drawer { margin-top: 12px; }
.lang-select--drawer select { width: 100%; height: 40px; font-size: 17px; }

.nav-cta {
  display: none;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 34px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--forest);
  color: var(--white);
  font-size: 20px;
  cursor: pointer;
}

.nav-back {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--pill);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

/* Celular angosto: el botón «volver» queda solo con la flecha para que quepa el desplegable de idioma */
@media (max-width: 419px) {
  .nav-back { padding: 0 10px; }
  .nav-back-text { display: none; }
  .nav-inner { gap: 10px; }
  .lang-select select { padding-left: 8px; font-size: 13.5px; }
}

/* La cabaña ya trae su barra «Reservar» abajo; entre 420 y 499 px el botón del encabezado no cabe y ensanchaba la página */
@media (max-width: 499px) {
  .nav-actions .nav-cta--cabin { display: none; }
}

.nav-drawer {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--white);
  padding: 12px 16px 16px;
}

.nav-drawer.is-open { display: block; }

.nav-drawer a {
  display: block;
  padding: 10px 4px;
  font-size: 17px;
  color: var(--ink);
  border-bottom: 1px solid var(--pill);
}

.nav-drawer a:last-of-type { border-bottom: 0; }

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .lang-select--wide { display: block; }
  .nav-cta { display: inline-flex; }
  .nav-toggle, .nav-drawer, .nav-back-mobile { display: none !important; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
  text-align: center;
}

.btn-primary {
  background: var(--terracotta-btn);
  color: var(--white);
}
.btn-primary:hover { background: var(--terracotta-hover); }

.btn-wa-dark {
  background: var(--forest-card);
  border-color: var(--wa-border);
  color: var(--on-dark);
}
.btn-wa-dark:hover { background: #1c3d2d; }

.btn-wa-light {
  background: var(--white);
  border: 2px solid var(--wa-border);
  color: var(--forest);
}
.btn-wa-light:hover { background: var(--sage); }

.btn-neutral {
  background: var(--pill);
  color: var(--ink);
}
.btn-neutral:hover { background: #e5e0d5; }

.btn-forest {
  background: var(--forest);
  color: var(--white);
}
.btn-forest:hover { background: #244b37; }

.btn-booking-sec {
  background: var(--white);
  border-color: var(--booking);
  color: var(--booking);
  font-size: 14.5px;
}
.btn-booking-sec:hover { background: #f0f5fc; }

.btn-lg { padding: 13px 22px; font-size: 17px; }
.btn-sm { padding: 8px 14px; font-size: 14.5px; border-radius: 8px; }
.btn-block { width: 100%; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--forest);
  color: var(--white);
  padding: 28px 0 36px;
}

.hero-grid {
  display: grid;
  gap: 24px;
  align-items: center;
}

/* Escritorio: el texto va fijo a la izquierda y detrás pasan las fotos de la zona (.hero-bg, ver site.js). */
@media (min-width: 900px) {
  .hero {
    display: flex;
    align-items: center;
    min-height: 340px;
    padding: 36px 0 40px;
  }
  .hero-grid {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    align-self: stretch;
    max-width: 1264px;
    pointer-events: none;
  }
  .hero-copy {
    max-width: 540px;
    pointer-events: auto;
  }
}

.hero-bg { display: none; }

/* Celular: el texto va sobre el paisaje del carrusel. Arriba queda un tramo de foto limpio (con la etiqueta y la (i)
   del crédito) y el degradado oscurece de ahí hacia abajo, hasta fundirse con el verde del hero. Sus tramos son los más
   suaves con los que el texto sigue leyéndose (contraste ≥ 3 el título y ≥ 4,5 el resto sobre las 5 fotos). */
@media (max-width: 899px) {
  .hero { padding: 176px 0 28px; }
  .hero-copy { position: relative; z-index: 2; }
  .hero-bg {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 424px;
    z-index: 0;
  }
  .hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(27, 59, 43, 0.3) 0%, rgba(27, 59, 43, 0) 10%, rgba(27, 59, 43, 0) 24%, rgba(27, 59, 43, 0.4) 36%, rgba(27, 59, 43, 0.72) 46%, rgba(27, 59, 43, 0.8) 60%, rgba(27, 59, 43, 0.88) 78%, var(--forest) 100%);
  }
  .hero-slide { overflow: hidden; }
}

@media (min-width: 900px) {
  /* Las fotos no crecen sin límite: a partir de 1440 px el fondo se queda de ese ancho, centrado, y el verde del hero
     queda a los lados. Si no, en pantallas anchas la franja de 340 px solo mostraría un corte de cielo. */
  .hero-bg {
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100%;
    max-width: 1440px;
    transform: translateX(-50%);
    z-index: 0;
  }
  /* Degradado oscuro a la izquierda: el texto se lee sobre cualquier foto. Va dentro de cada foto, bajo la (i) del crédito. */
  .hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(21, 46, 34, 0.97) 0%, rgba(21, 46, 34, 0.9) 40%, rgba(21, 46, 34, 0.6) 58%, rgba(21, 46, 34, 0.12) 80%, rgba(21, 46, 34, 0) 100%);
  }
}

/* Con el fondo más angosto que la pantalla, sus bordes se funden con el verde del hero. */
@media (min-width: 1441px) {
  .hero-bg {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  }
}

.hero-slide {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.4s ease, visibility 0s 1.4s;
}

.hero-slide.is-active {
  z-index: 1;
  opacity: 1;
  visibility: visible;
  transition: opacity 1.4s ease;
}

/* La que sale queda opaca debajo mientras la nueva aparece encima: sin hueco oscuro a mitad del fundido. */
.hero-slide.is-leaving {
  opacity: 1;
  visibility: visible;
  transition: none;
}

.hero-slide picture,
.hero-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
}

/* Celular: el recorte vertical ya trae el motivo arriba; anclado arriba, una caja más ancha que 390 px no lo baja. */
@media (max-width: 899px) {
  .hero-slide img { object-position: 50% 0%; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-slide.is-active img,
  .hero-slide.is-leaving img {
    animation: hero-zoom 11s ease-out forwards;
    /* Capa propia y transformación 3D: la compone la GPU y el zoom no salta de píxel en píxel (el temblor del agua). */
    will-change: transform;
    backface-visibility: hidden;
    transform-origin: 50% 50%;
  }
}

@keyframes hero-zoom {
  from { transform: scale3d(1, 1, 1); }
  to { transform: scale3d(1.1, 1.1, 1); }
}

/* Crédito de las fotos de Commons: una (i) abajo a la derecha. El texto sale al pasar el mouse, al enfocar o al tocar. */
.hero-credit {
  position: absolute;
  z-index: 3;
  right: max(64px, calc((100% - 1264px) / 2 + 64px));
  bottom: 12px;
}

.hero-credit-btn {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(20, 28, 22, 0.72);
  color: #fff;
  font: 700 13px/1 Georgia, serif;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.hero-credit:hover .hero-credit-btn,
.hero-credit.is-open .hero-credit-btn { background: var(--forest); }

.hero-credit-pop {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  width: max-content;
  max-width: min(420px, 60vw);
  margin: 0;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  border: 1px solid var(--border-strong);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  font-size: 12px;
  line-height: 1.4;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0s 0.15s;
}

/* Puente sobre el hueco de 8 px entre la (i) y el cuadro, para que el mouse no lo cierre al subir. */
.hero-credit-pop::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 10px;
}

.hero-credit:hover .hero-credit-pop,
.hero-credit:focus-within .hero-credit-pop,
.hero-credit.is-open .hero-credit-pop {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.15s ease;
}

.hero-credit-pop a { color: var(--forest); text-decoration: underline; }
.hero-credit-pop a[href*="creativecommons.org"] { white-space: nowrap; }

/* Etiqueta de región: sobre la foto, arriba a la izquierda. */
.hero-pill {
  position: absolute;
  top: 14px;
  left: 16px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(21, 46, 34, 0.94);
  color: var(--on-dark);
  font-size: 14px;
  white-space: nowrap;
}

@media (min-width: 900px) {
  .hero-pill {
    top: -16px;
    right: 64px;
    left: auto;
  }
}

/* Celular: la etiqueta y la (i) del crédito quedan sobre la foto, arriba; el crédito se abre hacia abajo. */
@media (max-width: 899px) {
  .hero-pill { z-index: 3; }
  .hero-credit { top: 12px; right: 16px; bottom: auto; }
  .hero-credit-pop { top: calc(100% + 8px); bottom: auto; max-width: calc(100vw - 32px); }
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(29px, 4.4vw, 40px);
  line-height: 1.18;
  font-weight: 700;
  color: var(--white);
}

@media (min-width: 900px) {
  .hero h1 { margin-bottom: 12px; font-size: clamp(24px, 2.1vw, 28px); }
}

.hero-sub {
  margin: 0;
  font-size: 17px;
  color: var(--on-dark);
  max-width: 56ch;
}

@media (min-width: 900px) {
  .hero-sub { font-size: 18px; }
}

.hero-rating {
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--on-dark-muted);
}

@media (min-width: 900px) {
  .hero-rating { font-size: 15px; }
}

.hero-rating a {
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.4);
  text-underline-offset: 3px;
}
.hero-rating a:hover { text-decoration-color: currentColor; }

/* Precio y capacidad bajo la línea de reseñas, con una raya encima. */
.hero-float {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.hero-float-sep {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.28);
}

.hero-float strong {
  display: block;
  font-size: 15px;
  color: var(--white);
}

@media (min-width: 900px) {
  .hero-float { gap: 28px; }
  .hero-float strong { font-size: 16px; }
}

.hero-float span {
  display: block;
  font-size: 13px;
  color: var(--on-dark-muted);
}

/* Aviso de vehículo bajo la fila de precio: una línea, en el amarillo del sol del logo. */
.hero-warn {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--sun);
}

@media (min-width: 900px) {
  .hero-warn { font-size: 15px; }
}

/* Celular angosto (360): letra y espacios un punto menores para que cada celda quepa en una línea. */
@media (max-width: 389px) {
  .hero-float { gap: 10px; }
  .hero-float strong { font-size: 14px; }
  .hero-float span { font-size: 12px; }
  .hero-warn { font-size: 13px; }
}

/* Amenity strip */
.strip {
  background: var(--sage);
  border-top: 1px solid var(--sage-border);
  border-bottom: 1px solid var(--sage-border);
  padding: 18px 0;
}

.strip-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  color: var(--forest);
  font-size: 14.5px;
  font-weight: 500;
}

/* Nueve íconos: una columna en celular y tres columnas al ancho de su rótulo más largo en escritorio (3×3), sin fila huérfana. */
@media (min-width: 900px) {
  .strip-list {
    grid-template-columns: repeat(3, auto);
    gap: 14px 32px;
  }
}

/* Sections */
.section {
  padding: 40px 0;
}

.section-white {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  margin-bottom: 24px;
}

.section-head h2 {
  margin: 0 0 6px;
  font-size: clamp(24px, 3.3vw, 29px);
  color: var(--ink);
  line-height: 1.25;
}

.section-head p {
  margin: 0;
  font-size: 16px;
  color: var(--muted);
  max-width: 72ch;
}

/* Sin título visible, el ancla «Cabañas» deja las tarjetas justo bajo el menú fijo, no tapadas por él. */
#cabanas { scroll-margin-top: 48px; }

/* Cabins grid */
.cabins-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 900px) {
  .cabins-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.cabin-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.cabin-card-media {
  aspect-ratio: 1 / 1;
  background: #2B4D3B;
  overflow: hidden;
}

.cabin-card-media picture,
.cabin-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cabin-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.badge {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--sage);
  color: var(--forest);
  font-size: 13px;
  font-weight: 600;
}

.cabin-card h3 {
  margin: 0;
  padding: 12px 16px 10px;
  font-size: 20px;
  color: var(--ink);
}

.cabin-card-desc {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.price-box {
  background: var(--cream);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
}

.price-box .p-low {
  color: var(--ink);
  font-weight: 600;
}

.price-box .p-high {
  color: var(--muted);
}

.cabin-card-actions {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding-top: 4px;
}
.cabin-card-actions .btn-view { padding: 12px 14px; font-size: 17px; }

/* Entorno gallery */
.entorno-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (min-width: 900px) {
  .entorno-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }
}

.env-gallery-btn {
  margin-top: 16px;
}

.gallery-tile {
  position: relative;
  border: 0;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--forest);
  aspect-ratio: 4 / 3;
  cursor: pointer;
}

.gallery-tile picture,
.gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.gallery-tile:hover img { transform: scale(1.03); }

/* Entorno en dos grupos: tarjeta con foto, título y, si es de Wikimedia Commons, su crédito */
.entorno-group + .entorno-group {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.entorno-group h3 {
  margin: 0 0 16px;
  font-size: 22px;
  line-height: 1.25;
  color: var(--forest);
}

.env-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--cream);
}

.entorno-group--zona .env-card { background: var(--white); }

.env-card .gallery-tile {
  display: block;
  width: 100%;
  border-radius: 0;
}

.env-card figcaption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px 12px;
}

.env-card strong {
  font-size: 16px;
  line-height: 1.25;
  color: var(--ink);
}

.cap-short { display: none; }

@media (max-width: 639px) {
  .cap-full { display: none; }
  .cap-short { display: inline; }
  .env-card strong { font-size: 15px; line-height: 1.25; }
}

.env-media {
  position: relative;
}

.env-credit-btn {
  position: absolute;
  right: 6px;
  bottom: 6px;
  z-index: 2;
  width: 26px;
  height: 26px;
  padding: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(20, 28, 22, 0.72);
  color: #fff;
  font: 700 13px/1 Georgia, serif;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.env-credit-btn:hover,
.env-credit-btn[aria-expanded="true"] {
  background: var(--forest);
}

.env-credit {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 38px;
  z-index: 3;
  max-height: calc(100% - 44px);
  overflow-y: auto;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  border: 1px solid var(--border-strong);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  font-size: 12px;
  line-height: 1.35;
}

.env-credit[hidden] { display: none; }
.env-credit a { text-decoration: underline; color: var(--forest); }
.env-credit a[href*="creativecommons.org"] { white-space: nowrap; }

.env-note {
  font-size: 13px;
  line-height: 1.35;
  color: var(--muted);
}

.env-foot {
  margin: 24px 0 0;
  font-size: 14px;
  color: var(--muted);
}

/* Location: en escritorio dos columnas de la misma altura (texto y foto recortada | mapa) */
.location-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 900px) {
  .location-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    align-items: stretch;
  }
}

.location-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.location-addr {
  margin: 0 0 8px;
  font-size: 17px;
  color: var(--ink);
  font-weight: 500;
}

.location-desc {
  margin: 0 0 4px;
  font-size: 15px;
  color: var(--muted);
}

/* Línea discreta de acceso: sin caja ni color de alerta */
.access-note {
  margin: 12px 0 16px;
  font-size: 16px;
  color: var(--body);
}

/* Mapa: dibujo liviano en reposo; al tocar «Ver mapa interactivo» site.js pone el iframe de Google en el mismo cuadro */
.map-box {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--sage);
  border: 1px solid var(--sage-border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

@media (min-width: 900px) {
  .map-box { min-height: 480px; }
}

.map-box [hidden] { display: none; }

.map-stage {
  position: relative;
  flex: 1;
  min-height: 300px;
}

.map-art {
  position: absolute;
  inset: 0 0 22px;
  width: 100%;
  height: calc(100% - 22px);
  object-fit: contain;
  /* el dibujo se corta en seco a los lados: se difumina para que no se note el borde */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}

.map-stage iframe {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-attrib {
  position: absolute;
  right: 12px;
  bottom: 4px;
  margin: 0;
  font-size: 11px;
  line-height: 1.4;
  color: var(--muted);
}

.map-attrib a { text-decoration: underline; }

.map-live-top {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
}

.map-live-label,
.map-live-close {
  pointer-events: auto;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.map-live-label {
  margin: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 13px;
  line-height: 1.3;
  color: var(--muted);
}

.map-live-label strong {
  font-size: 14px;
  color: var(--ink);
}

.map-live-close {
  flex: none;
  padding: 8px 12px;
  background: var(--white);
  border-color: var(--border);
  color: var(--ink);
}

.map-live-close::before { content: "✕"; }
.map-live-close:hover { background: var(--cream); }

.map-box[data-state="idle"] .map-live-only,
.map-box[data-state="idle"] iframe,
.map-box[data-state="idle"] .map-live-top,
.map-box[data-state="live"] .map-idle-only,
.map-box[data-state="live"] .map-art,
.map-box[data-state="live"] .map-attrib { display: none; }

.map-bar {
  margin: 8px;
  padding: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.map-bar-text {
  flex: 1 1 100%;
  min-width: 0;
}

.map-bar-title {
  margin: 0;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}

.map-bar-sub {
  margin: 0;
  font-size: 13px;
  line-height: 1.3;
  color: var(--muted);
}

.map-bar-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}

.map-bar-btns .btn { flex: 1 1 auto; padding-inline: 12px; font-size: 14px; }
.map-bar .btn-neutral { border-color: var(--border); }

@media (min-width: 900px) {
  .map-bar-text { flex: 1 1 140px; }
  .map-bar-btns { width: auto; }
  .map-bar-btns .btn { flex: 0 0 auto; }
}

/* Foto vertical de la entrada, recortada: 4:3 en celular; en escritorio llena el alto que deja el texto, al ras del mapa */
.entrada-card {
  background: var(--white);
}

.entrada-card .gallery-tile { aspect-ratio: 4 / 3; }
.entrada-card .gallery-tile picture { display: block; }
.entrada-card .gallery-tile img { object-position: 50% 40%; }

@media (min-width: 900px) {
  .entrada-card { flex: 1; }

  .entrada-card .gallery-tile {
    flex: 1;
    aspect-ratio: auto;
    min-height: 220px;
  }

  .entrada-card .gallery-tile picture,
  .entrada-card .gallery-tile img {
    position: absolute;
    inset: 0;
  }
}

/* Cabin detail page */
.breadcrumb {
  padding: 14px 0;
  font-size: 14px;
  color: var(--muted);
}

.breadcrumb a:hover { text-decoration: underline; }

.cabin-gallery {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.cabin-gallery-top {
  display: grid;
  gap: 12px;
}

@media (min-width: 900px) {
  .cabin-gallery-top {
    grid-template-columns: 1.15fr 1fr;
  }
}

.cabin-main-photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #234233;
  aspect-ratio: 1 / 1;
  cursor: pointer;
  border: 0;
  padding: 0;
  width: 100%;
}

.cabin-main-photo picture,
.cabin-main-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-counter {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(21, 41, 32, 0.88);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
}

.cabin-sub-grid {
  display: none;
}

@media (min-width: 900px) {
  .cabin-sub-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

.cabin-thumbs-mobile {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.cabin-thumbs-desktop {
  display: none;
}

@media (min-width: 900px) {
  .cabin-thumbs-mobile {
    display: none;
  }

  .cabin-thumbs-desktop {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }
}

.more-photos-btn {
  border: 1px solid #3B6650;
  border-radius: 12px;
  background: var(--forest);
  color: var(--white);
  padding: 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
  aspect-ratio: 4 / 3;
}

.more-photos-btn strong { font-size: 22px; }
.more-photos-btn span { font-size: 14px; color: #C5D6CC; }
.more-photos-btn:hover { background: var(--forest-mid); }

.cabin-layout {
  display: grid;
  gap: 24px;
  align-items: start;
  padding-bottom: 48px;
}

@media (min-width: 900px) {
  .cabin-layout {
    grid-template-columns: 1.75fr 1fr;
  }
}

.panel-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.panel-card h1 {
  margin: 10px 0 6px;
  font-size: clamp(27px, 3.3vw, 31px);
}

.panel-card h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.divider {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 20px 0;
}

.equip-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px 20px;
  font-size: 15px;
}

@media (min-width: 640px) {
  .equip-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.other-cabins {
  display: grid;
  gap: 14px;
}

@media (min-width: 640px) {
  .other-cabins {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.other-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.other-card h3 { margin: 0; font-size: 17px; }
.other-card .o-cap { font-size: 14px; color: var(--muted); }
.other-card .o-price { font-size: 14.5px; color: var(--forest); font-weight: 600; margin-bottom: 6px; }

/* Booking sidebar card */
.book-card {
  background: var(--white);
  border: 2px solid var(--terracotta);
  border-radius: var(--radius-xl);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 900px) {
  .book-card { position: sticky; top: 88px; }
}

.book-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--booking);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
}

.book-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--cream);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14.5px;
}

.book-row span { color: var(--muted); }
.book-row strong { font-size: 17px; color: var(--ink); }

.book-note {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.book-wa-box {
  background: var(--cream);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.book-wa-box p {
  margin: 0;
  font-size: 14px;
  color: var(--ink);
}

.book-wa-box .sub {
  font-size: 13px;
  color: var(--muted);
}

/* Footer */
.footer {
  background: var(--forest-dark);
  color: var(--on-dark);
  padding: 36px 0 28px;
}

.footer-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: 1.1fr 1.1fr 1fr;
  }
}

.footer h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--white);
}

.footer p, .footer li {
  margin: 0 0 6px;
  font-size: 14.5px;
  color: var(--on-dark);
}

.footer .muted { color: var(--on-dark-muted); font-size: 14px; }

.footer-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 260px;
}

.footer-bottom {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #2A4A3A;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--on-dark-soft);
}

.footer-bottom a:hover { color: var(--white); }

.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }

/* Página de privacidad */
.legal { max-width: 760px; padding-bottom: 48px; }
.legal h1 { margin: 8px 0 4px; font-size: clamp(27px, 4.4vw, 36px); color: var(--ink); line-height: 1.2; }
.legal h2 { margin: 28px 0 8px; font-size: clamp(21px, 2.9vw, 25px); color: var(--ink); line-height: 1.25; }
.legal p, .legal li { line-height: 1.6; color: var(--ink); }
.legal ul { margin: 8px 0 12px; padding-left: 22px; }
.legal li { margin: 6px 0; }
.legal a { text-decoration: underline; }
.legal-date { color: var(--muted); font-size: 14.5px; margin: 0 0 16px; }

/* Mobile floating WhatsApp + sticky reserve bar */
.wa-fab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 45;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--wa-bg);
  border: 2px solid var(--wa-border);
  color: var(--white);
  font-size: 14.5px;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

.has-sticky-bar .wa-fab { bottom: 88px; }

.sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 44;
  background: var(--white);
  border-top: 1px solid var(--border-strong);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sticky-bar strong { display: block; font-size: 17px; color: var(--ink); }
.sticky-bar span { display: block; font-size: 13px; color: var(--muted); }

.has-sticky-bar { padding-bottom: 76px; }

@media (min-width: 900px) {
  .wa-fab, .sticky-bar { display: none; }
  .has-sticky-bar { padding-bottom: 0; }
}

/* Lightbox dialog */
.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  width: min(96vw, 640px);
  max-width: 96vw;
  max-height: 94vh;
  overflow: visible;
}

.lightbox::backdrop {
  background: rgba(15, 28, 22, 0.9);
}

/* Todo el visor es de alto fijo (franja de la leyenda, marco de la foto, flechas, tira): el botón de avanzar
   no se mueve entre fotos de distinta altura. Los 250 / 216 px son lo que ocupa todo lo que no es el marco de la foto. */
.lightbox-shell {
  background: var(--forest-dark);
  border-radius: var(--radius-lg);
  padding: 12px;
  display: flex;
  flex-direction: column;
  color: var(--white);
}

.lightbox-top {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  font-size: 14.5px;
}

/* Cerrar queda arriba aunque la leyenda tome 1, 2 o 3 líneas; con una línea la leyenda se centra con el botón (44 px). */
.lightbox-top span {
  min-height: 44px;
  display: flex;
  align-items: center;
}

.lightbox-top .lightbox-btn { min-height: 44px; }

/* Foto + flechas. Celular: marco de la foto y, debajo, «← Anterior» y «Siguiente →». */
.lightbox-main {
  --lb-stage: min(max(330px, 66vw), calc(100vh - 250px));
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "img img" "prev next";
  row-gap: 10px;
}

@supports (height: 100svh) {
  .lightbox-main { --lb-stage: min(max(330px, 66vw), calc(100svh - 250px)); }
}

/* La foto va completa en el marco, centrada, y sin agrandarse más que su tamaño real. */
.lightbox-img {
  grid-area: img;
  width: 100%;
  height: var(--lb-stage);
  border-radius: 8px;
  object-fit: scale-down;
}

.lightbox-btn {
  background: var(--forest-mid);
  border: 1px solid var(--forest-accent-border);
  color: var(--white);
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
}
.lightbox-btn:hover { background: #35664e; }

.lightbox-arrow {
  width: 138px;
  height: 48px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 15px;
}
.lightbox-arrow--prev { grid-area: prev; justify-self: start; }
.lightbox-arrow--next { grid-area: next; justify-self: end; }

/* Tira de miniaturas: se desplaza en horizontal; la actual lleva borde amarillo. */
.lightbox-strip {
  position: relative;
  display: flex;
  gap: 8px;
  width: 100%;
  height: 48px;
  margin-top: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.lightbox-strip::-webkit-scrollbar { display: none; }
/* Si caben todas quedan centradas; si no, parten desde la izquierda. */
.lightbox-strip > :first-child { margin-left: auto; }
.lightbox-strip > :last-child { margin-right: auto; }

.lightbox-thumb {
  position: relative;
  flex: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  overflow: hidden;
  background: var(--forest-mid);
  cursor: pointer;
}
.lightbox-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lightbox-thumb[aria-current="true"]::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 3px solid var(--sun);
  border-radius: 6px;
  pointer-events: none;
}

/* Indicador de posición bajo la tira; ocupa su lugar aunque todas las miniaturas quepan (visibility, no display). */
.lightbox-rail {
  height: 3px;
  margin-top: 8px;
  border-radius: 2px;
  background: var(--forest-accent-border);
  overflow: hidden;
}
.lightbox-rail span {
  display: block;
  height: 100%;
  border-radius: 2px;
  background: var(--white);
}

/* Escritorio: flechas a los lados de la foto (solo la flecha) y miniaturas de 64 × 48. */
@media (min-width: 900px) {
  .lightbox { width: min(92vw, 992px); max-width: 92vw; }
  .lightbox-shell { padding: 12px 24px 16px; }
  .lightbox-main {
    --lb-stage: min(calc(100vh - 216px), 708px);
    margin-top: 8px;
    grid-template-columns: 48px 1fr 48px;
    grid-template-areas: "prev img next";
    align-items: center;
    row-gap: 0;
  }
  .lightbox-arrow { width: 48px; font-size: 24px; }
  .lightbox-arrow-text { display: none; }
  .lightbox-arrow--prev, .lightbox-arrow--next { justify-self: stretch; }
  .lightbox-strip, .lightbox-rail { margin-left: 22px; margin-right: 22px; width: auto; }
  .lightbox-thumb { width: 64px; }
}

@media (min-width: 900px) {
  @supports (height: 100svh) {
    .lightbox-main { --lb-stage: min(calc(100svh - 216px), 708px); }
  }
}

/* Chino simplificado: fuentes del sistema, interlineado más alto y saltos de línea CJK */
html:lang(zh) body {
  font-family: system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", "Source Han Sans SC", sans-serif;
  line-break: strict;
}
html:lang(zh) p, html:lang(zh) li { line-height: 1.7; }
html:lang(zh) .brand-name { letter-spacing: 0.03em; }
html:lang(zh) h1, html:lang(zh) h2 { text-wrap: balance; }
html:lang(zh) .more-photos-btn strong { font-size: 17px; white-space: nowrap; }
