/* Cerro de Jah — estilos consolidados.
 * Orden: variables y componentes → anchos de pantalla → capacidades → movimiento.
 * Los tamaños tipográficos se definen en su componente; cada media query aparece una vez.
 */

/* Variables */
:root {
  --cream: #f5ecde;
  --sand: #e9dcc9;
  --dark: #252622;
  --clay: #a64f30;
  --copper: #efb27b;
  --ink: #272822;
  --muted: #685f54;
  --line: #46342329;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'DM Sans', Arial, sans-serif;
  --gutter: clamp(24px, 4vw, 76px);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --type-label: 0.75rem;
  --type-meta: 0.8125rem;
  --type-action: 0.875rem;
  --type-button: 0.8125rem;
  --type-copy: 1rem;
}

button,
input,
select {
  font: inherit;
}

button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

button,
.text-link,
.desktop-nav a,
.menu-panel a,
.footer-nav a,
.footer-social a,
.brand,
.skip,
summary {
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

h1,
h2,
h3,
p,
figure,
blockquote {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.reviews :focus-visible,
.footer :focus-visible,
.cabins :focus-visible,
.lightbox :focus-visible {
  outline-color: var(--copper);
}

/* Base y accesibilidad */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 30px;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 1rem/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

h2 {
  font-size: clamp(2.25rem, 3.5vw, 3.5rem);
}

p {
  max-width: 65ch;
}

:focus-visible {
  outline: 3px solid var(--clay);
  outline-offset: 5px;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--clay);
  text-transform: uppercase;
  font-weight: 500;
  padding: 8px 0;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 8px;
  font-size: var(--type-action);
  line-height: 1.35;
  letter-spacing: 0.06em;
}

.skip {
  position: fixed;
  left: 20px;
  top: -100px;
  clip-path: inset(50%);
  padding: 12px 20px;
  background: var(--cream);
  z-index: 100;
}

/* Controles compartidos */
.button {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  min-height: 50px;
  padding: 13px 20px;
  background: #9f5034;
  color: #fff9f0;
  border: 1px solid #9f5034;
  border-radius: 2px;
  text-transform: uppercase;
  font-weight: 500;
  transition:
    background 0.18s,
    border-color 0.18s,
    transform 0.14s var(--ease-out);
  font-size: var(--type-button);
  line-height: 1.35;
  letter-spacing: 0.06em;
}

.button .icon {
  width: 20px;
  transition: transform 0.18s;
}

.text-link .icon {
  width: 27px;
  transition: transform 0.22s;
}

.text-link.light {
  color: var(--copper);
}

.eyebrow {
  text-transform: uppercase;
  font-weight: 500;
  color: var(--clay);
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 13px;
  font-size: var(--type-label);
  line-height: 1.35;
  letter-spacing: 0.11em;
}

.eyebrow span {
  width: 25px;
  height: 1px;
  background: currentColor;
}

.eyebrow.light {
  color: var(--copper);
}

.section-pad {
  padding: 35px var(--gutter);
}

.skip:focus {
  top: 10px;
  clip-path: none;
}

.desktop-nav a {
  position: relative;
  font-size: clamp(0.75rem, 1.05vw, 1rem);
  font-weight: 400;
  padding: 10px 0;
  white-space: nowrap;
}

.menu-panel a {
  font-family: var(--serif);
  font-size: 1.6875rem;
  padding: 2px 0;
  display: flex;
  align-items: center;
  min-height: 44px;
}

.brand {
  display: block;
  position: relative;
  overflow: hidden;
  width: clamp(170px, 14.5vw, 230px);
  aspect-ratio: 1.38;
  margin-right: auto;
  flex-shrink: 0;
}

/* Encabezado y menú */
.header::before {
  content: '';
  position: absolute;
  inset: 0 0 -24px;
  z-index: -1;
  background: linear-gradient(var(--cream) 0%, #f5ecdef5 62%, #f5ecde00 100%);
  pointer-events: none;
}

@media (min-width: 1081px) {
  .header::before {
    bottom: 0;
    background: linear-gradient(var(--cream) 60%, transparent 100%);
  }
}

.header {
  position: absolute;
  z-index: 10;
  isolation: isolate;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.4vw, 36px);
  padding: 18px var(--gutter);
}

.brand img {
  position: absolute;
  max-width: none;
  width: 126%;
  height: auto;
  left: -13%;
  top: -26%;
  filter: url('#logo-ink');
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(17px, 2.3vw, 35px);
}

.desktop-nav a::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--clay);
  transform: scaleX(0);
  transform-origin: left;
}

.desktop-nav a:focus-visible::after {
  transform: scaleX(1);
}

.header-book {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  min-height: 44px;
  padding: 10px 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: var(--clay);
  gap: 16px;
  font-size: var(--type-action);
  line-height: 1.35;
  letter-spacing: 0.06em;
}

.menu-toggle {
  display: flex;
  visibility: hidden;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition:
    background 0.22s,
    border-color 0.22s,
    transform 0.14s var(--ease-out);
  width: 48px;
  height: 44px;
  border: 0;
  border-left: 1px solid #a68c6d50;
  border-radius: 0;
  background: transparent;
  padding-left: 16px;
  gap: 6px;
}

.menu-toggle span {
  height: 1px;
  background: var(--ink);
  transition: transform 0.18s var(--ease-out);
  width: 20px;
}

.menu-toggle span:last-child {
  align-self: center;
}

.menu-toggle[data-instant] span {
  transition: none;
}

.menu-toggle[aria-expanded='true'] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.menu-toggle[aria-expanded='true'] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.menu-panel {
  position: absolute;
  top: 155px;
  right: var(--gutter);
  width: min(360px, calc(100% - 48px));
  padding: 28px 32px;
  background: var(--cream);
  box-shadow: 0 15px 45px #25262226;
  z-index: 20;
  border: 1px solid var(--line);
  border-radius: 4px;
  transform-origin: top right;
  max-height: calc(100dvh - 185px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.menu-panel nav {
  display: grid;
  gap: 9px;
}

.menu-panel p {
  font-size: 0.75rem;
  margin-top: 20px;
  color: var(--muted);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
}

.header-book .icon {
  width: 21px;
  margin: 0;
}

/* Portada */
.hero {
  position: relative;
  height: auto;
  min-height: clamp(40.625rem, 47vw, 48.75rem);
  isolation: isolate;
  overflow: hidden;
  background: var(--cream);
}

.hero-photo {
  position: absolute;
  right: -25%;
  top: -5%;
  width: 122%;
  max-width: none;
  height: 135%;
  object-fit: cover;
  object-position: center 28%;
  filter: saturate(0.78) sepia(0.08) contrast(0.98);
  z-index: -3;
}

.hero-photo[data-scene='pool'] {
  right: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-position: 57% 65%;
}

.hero-photo[data-scene='interior'],
.hero-photo[data-scene='bedroom'] {
  right: 0;
  top: 0;
  width: 83%;
  height: 100%;
  object-position: center;
  filter: brightness(1.12) saturate(0.8) sepia(0.08) contrast(0.95);
}

.hero-photo[data-scene='terrace'] {
  right: 0;
  top: 0;
  width: 87%;
  height: 100%;
  object-position: center 56%;
}

.hero-wash {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(
      90deg,
      var(--cream) 0%,
      #f5ecdefa 16%,
      #f5ecdecb 28%,
      #f5ecde12 46%,
      transparent 62%
    ),
    linear-gradient(180deg, #f5ecdeb3, transparent 33%, transparent 77%, #181b171f);
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding: clamp(175px, 14vw, 222px) 0 30px var(--gutter);
  width: clamp(450px, 42vw, 635px);
}

.hero h1 {
  font-size: clamp(4.75rem, 6.2vw, 6.25rem);
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin-left: -3px;
}

.hero-description {
  max-width: 370px;
  width: 29vw;
  min-width: 310px;
  margin: 19px 0 14px;
  font-size: clamp(1rem, 1.25vw, 1.1875rem);
  line-height: 1.48;
}

/* Comodidades */
.amenities {
  background: var(--dark);
  color: var(--cream);
  min-height: 132px;
  padding: 28px 2.5vw;
  display: grid;
  grid-template-columns: 110px repeat(6, minmax(0, 1fr));
  align-items: center;
  gap: 17px;
  border-bottom: 1px solid #ffffff16;
}

.amenities > p {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  line-height: 1.8;
  color: var(--copper);
}

.amenity {
  display: flex;
  align-items: center;
  gap: 14px;
  border-left: 1px solid #ffffff16;
  padding-left: 17px;
  min-height: 52px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.amenity > div {
  min-width: 0;
}

.amenity > .icon {
  color: var(--copper);
  width: 35px;
  height: 35px;
}

.amenity strong {
  display: block;
  font-size: var(--type-action);
  font-weight: 500;
  line-height: 1.35;
}

.amenity span {
  color: #c6c4bc;
  display: block;
  margin-top: 4px;
  font-size: var(--type-meta);
  line-height: 1.45;
}

/* Cabañas */
.cabins {
  display: grid;
  grid-template-columns: 1.03fr 1fr;
  background: var(--dark);
  color: var(--cream);
}

.cabins-photo {
  position: relative;
  min-width: 0;
  min-height: 510px;
  background: #4b4639;
}

.cabins-photo > img {
  width: 100%;
  height: 100%;
  position: absolute;
  object-fit: cover;
  object-position: 45% center;
  filter: brightness(1.18) saturate(0.85) sepia(0.025) contrast(0.96);
}

.cabins-copy {
  position: relative;
  isolation: isolate;
  padding: 33px clamp(30px, 4vw, 66px) 72px clamp(55px, 7.7vw, 119px);
  overflow: hidden;
}

.cabins-copy .eyebrow::before {
  content: '';
  width: 25px;
  height: 1px;
  background: var(--copper);
}

.cabins-copy h2 {
  font-size: clamp(2.75rem, 3.8vw, 3.875rem);
  margin-bottom: 16px;
}

.cabins-copy > p:not(.eyebrow) {
  color: #e3e2da;
  max-width: 460px;
  font-size: var(--type-copy);
  line-height: 1.6;
}

.cabins-copy > p:not(.eyebrow) + p {
  margin-top: 16px;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 25px 0 18px;
  row-gap: 24px;
}

.features > div {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 14px;
  font-size: var(--type-action);
  line-height: 1.45;
  min-width: 0;
  overflow-wrap: anywhere;
}

.features .icon {
  width: 32px;
  height: 32px;
  color: var(--copper);
}

.features > div:nth-child(3n + 2),
.features > div:nth-child(3n + 3) {
  border-left: 1px solid #ffffff1a;
  padding-left: 18px;
}

.cabins-more {
  gap: 12px;
  white-space: nowrap;
  border-bottom: 1px solid #efb27b66;
  padding-bottom: 6px;
}

/* Consulta de disponibilidad */
.booking-wrap {
  padding: 0 var(--gutter);
  position: relative;
  z-index: 3;
  margin-top: -39px;
  scroll-margin-top: 55px;
}

.booking-card {
  background: var(--cream);
  padding: 22px 30px 18px;
  border: 1px solid #ded0be;
  border-radius: 8px;
  box-shadow: 0 7px 15px #43362129;
  display: grid;
  grid-template-columns: 0.95fr 2.25fr;
  align-items: center;
  gap: 28px;
}

.booking-heading h2 {
  font-size: clamp(1.8125rem, 2.5vw, 2.4375rem);
  margin-bottom: 8px;
  white-space: nowrap;
}

.booking-card form {
  display: grid;
  grid-template-columns: 1fr 1fr 1.05fr 1.3fr;
  gap: 0 13px;
  align-items: start;
}

.field {
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 11px 14px;
  min-width: 0;
  min-height: 70px;
}

.field label {
  display: block;
  font-weight: 500;
  font-size: var(--type-meta);
  line-height: 1.4;
}

.field input,
.field select {
  width: 100%;
  min-width: 0;
  border: 0;
  display: block;
  background: transparent;
  color: var(--ink);
  margin-top: 5px;
  padding: 0;
  height: max(25px, 1.5em);
  color-scheme: light;
  font-size: 1rem;
}

.field input:focus-visible,
.field select:focus-visible {
  outline-offset: 1px;
}

.booking-card .button {
  min-height: 56px;
  align-self: center;
  padding-inline: 18px;
  gap: 12px;
}

.booking-card .button .icon {
  width: 18px;
  height: 18px;
}

.booking-note {
  grid-column: 1/-1;
  color: var(--muted);
  padding-top: 7px;
  min-height: 23px;
  font-size: var(--type-action);
  line-height: 1.5;
}

.booking-note.error {
  color: #a33120;
}

.booking-heading p {
  font-size: var(--type-copy);
  line-height: 1.6;
}

.booking-fallback {
  grid-column: 1/-1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--clay);
  font-size: var(--type-action);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.booking-card form[hidden],
.booking-noscript[hidden] {
  display: none;
}

.booking-noscript {
  display: grid;
  justify-items: start;
  gap: 16px;
  margin-top: 28px;
  font-size: var(--type-copy);
  line-height: 1.6;
}

.booking-noscript span {
  max-width: 65ch;
}

/* Galería */
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
}

.section-heading .eyebrow {
  margin-bottom: 7px;
}

.section-heading h2 {
  font-size: clamp(2.25rem, 3.15vw, 3.125rem);
}

.gallery {
  padding-top: 30px;
  padding-bottom: 23px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 8rem), 1fr));
  gap: 10px;
}

.gallery-shot {
  min-height: 9rem;
  min-width: 0;
  width: 100%;
  position: relative;
  padding: 0;
  overflow: hidden;
  border-radius: 3px;
  text-align: left;
  aspect-ratio: 1.5;
  transition: transform 0.14s var(--ease-out);
}

.gallery-shot picture,
.discovery-photo picture {
  display: block;
  height: 100%;
}

.gallery-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.79) sepia(0.055) contrast(0.98);
}

.gallery-shot[data-gallery='living-2'] img {
  filter: brightness(1.18) saturate(0.85) sepia(0.035) contrast(0.96);
}

.gallery-shot[data-gallery='dormitorio-matrimonial-2'] img {
  filter: brightness(1.08) saturate(0.85) sepia(0.035) contrast(0.96);
}

.gallery-shot[data-gallery='terraza-mesa'] img {
  filter: brightness(1.07) saturate(0.8) sepia(0.06) contrast(0.96);
}

.gallery-shot::after {
  content: '';
  position: absolute;
  inset: 60% 0 0;
  background: linear-gradient(transparent, #0008);
  opacity: 0;
}

.gallery-shot > span {
  position: absolute;
  z-index: 1;
  bottom: 12px;
  left: 14px;
  right: 14px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  opacity: 0;
  font-size: var(--type-action);
  line-height: 1.4;
  gap: 8px;
  overflow-wrap: anywhere;
}

.gallery-shot:focus-visible::after,
.gallery-shot:focus-visible > span {
  opacity: 1;
}

.gallery-shot .icon {
  width: 20px;
  height: 20px;
}

.gallery-description {
  color: var(--muted);
  font-size: var(--type-action);
  line-height: 1.5;
  max-width: 48ch;
  margin-top: 8px;
}

/* Experiencias y entorno */
.discovery {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(35px, 5vw, 80px);
  padding-top: 35px;
  padding-bottom: 54px;
  border-top: 1px solid var(--line);
  margin-top: 12px;
}

.discovery-photo {
  position: relative;
  min-height: 470px;
  overflow: hidden;
  background: var(--sand);
}

.discovery-photo img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% center;
  filter: saturate(0.83) sepia(0.04);
}

.discovery-photo::after {
  content: '';
  position: absolute;
  inset: 65% 0 0;
  background: linear-gradient(transparent, #17221bcc);
}

.discovery-photo figcaption {
  position: absolute;
  z-index: 1;
  bottom: 24px;
  left: 26px;
  right: 26px;
  color: #fff9f0;
  font-family: var(--serif);
  font-size: 1.8125rem;
  line-height: 1.15;
}

.discovery-copy {
  display: grid;
  align-content: center;
  gap: 27px;
}

.discovery-copy section + section {
  border-top: 1px solid var(--line);
  padding-top: 27px;
}

.discovery-copy h2 {
  font-size: clamp(2.125rem, 3vw, 2.75rem);
  margin-bottom: 15px;
}

.discovery-copy .eyebrow {
  margin-bottom: 13px;
}

.discovery-copy section > p:not(.eyebrow) {
  color: var(--muted);
  max-width: 460px;
  margin-bottom: 12px;
  font-size: var(--type-copy);
  line-height: 1.6;
}

.discovery-copy address {
  font-style: normal;
  margin: 15px 0 8px;
  color: var(--muted);
  font-size: var(--type-action);
  line-height: 1.5;
}

.discovery-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 25px;
}

/* Opiniones */
.reviews {
  background: var(--dark);
  color: var(--cream);
  padding-top: 27px;
  padding-bottom: 27px;
  border-bottom: 1px solid #f5ecde20;
}

.reviews .section-heading {
  margin-bottom: 17px;
}

.reviews .section-heading h2 {
  font-size: clamp(2.125rem, 2.85vw, 2.8125rem);
}

.review-carousel {
  container-type: inline-size;
  min-width: 0;
}

.review-grid {
  --review-columns: 3;
  --review-gap: 19px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc(
    (100% - (var(--review-columns) - 1) * var(--review-gap)) / var(--review-columns)
  );
  gap: var(--review-gap);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.review-grid::-webkit-scrollbar {
  display: none;
}

.review-grid:focus-visible {
  outline-offset: -3px;
  border-radius: 11px;
}

.review {
  min-width: 0;
  scroll-snap-align: start;
}

.review-carousel[data-enhanced] .review:not([data-page-start]) {
  scroll-snap-align: none;
}

.review-noscript {
  color: #bfc0b8;
  font-size: var(--type-meta);
  line-height: 1.5;
}

@container (max-width: 45rem) {
  .review-grid {
    --review-columns: 2;
  }
}

@container (max-width: 30rem) {
  .review-grid {
    --review-columns: 1;
  }
}

.review {
  padding: 15px 20px 16px;
  border: 1px solid #f5ecde2a;
  border-radius: 11px;
  display: flex;
  flex-direction: column;
}

.review-person {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 10px;
}

.review-person > div {
  min-width: 0;
  overflow-wrap: anywhere;
}

.avatar {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1px solid #d8b69580;
  background: #414037;
  color: var(--cream);
  font-family: var(--serif);
  font-size: 1.4375rem;
  flex-shrink: 0;
}

.review-person h3 {
  font-family: var(--sans);
  letter-spacing: 0;
  line-height: 1.5;
  font-weight: 400;
  font-size: 0.9375rem;
}

.review-person div > span {
  color: #bfc0b8;
  font-size: var(--type-meta);
  line-height: 1.4;
}

.review blockquote {
  color: #deded5;
  margin-bottom: 11px;
  font-size: var(--type-copy);
  line-height: 1.6;
}

.review-stars {
  display: flex;
  gap: 4px;
  color: var(--copper);
  margin-top: auto;
}

.review-stars .icon {
  width: 21px;
  height: 21px;
  fill: currentColor;
  stroke: none;
}

.footer-nav a {
  display: block;
  margin-bottom: 7px;
  font-size: var(--type-action);
  line-height: 1.4;
}

.footer-social a {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 13px;
  font-size: var(--type-action);
  line-height: 1.4;
}

/* Información práctica */
.stay-summary {
  padding-block: 38px;
  border-top: 1px solid var(--line);
}
.stay-summary-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-bottom: 24px;
}
.stay-summary h2 {
  font-size: clamp(2rem, 3vw, 2.75rem);
}
.stay-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 24px 40px;
  margin: 0;
}
.stay-facts dt {
  font-weight: 500;
  margin-bottom: 8px;
}
.stay-facts dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  max-width: 42ch;
}

/* Contacto y pie */
.footer {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1.35fr 0.55fr 1fr 0.65fr 0.85fr;
  gap: clamp(20px, 3vw, 50px);
  color: var(--cream);
  background: var(--dark);
  padding-top: 85px;
  padding-bottom: 25px;
  min-height: 390px;
  align-items: start;
}

.footer::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, #25262255, #252622c4 31%, #252622 56%),
    linear-gradient(0deg, #252622b3, #25262208 75%);
  pointer-events: none;
}

.footer-photo {
  position: absolute;
  z-index: -2;
  top: 0;
  left: 0;
  width: 58%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  pointer-events: none;
}

.footer-invitation h2 {
  font-size: clamp(2.125rem, 2.9vw, 2.875rem);
  margin-bottom: 16px;
}

.footer-invitation .text-link {
  min-height: 44px;
  padding-block: 10px;
  font-size: 0.8125rem;
  letter-spacing: 0.07em;
}

.footer h3 {
  font-family: var(--sans);
  font-size: 0.875rem;
  letter-spacing: 0;
  color: var(--copper);
  margin-bottom: 18px;
  font-weight: 400;
}

.footer-nav {
  padding-top: 12px;
  border-right: 1px solid #ffffff16;
}

.footer-contact,
.footer-social {
  padding-top: 12px;
}

.footer-contact a {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 13px;
  font-size: var(--type-action);
  line-height: 1.4;
}

.footer-contact .icon,
.footer-social .icon {
  color: var(--copper);
  width: 20px;
  height: 20px;
}

.footer-contact p {
  color: #bfbfb6;
  margin-top: 18px;
  font-size: var(--type-label);
  line-height: 1.5;
}

.footer-social .footer-help {
  display: block;
  color: #bebeb6;
  margin-top: 22px;
  line-height: 1.35;
  letter-spacing: 0.06em;
}

.footer-help .icon {
  display: none;
}

.footer-brand {
  align-self: start;
}

.footer-brand img {
  width: 100%;
  height: auto;
  max-width: 230px;
}

.footer-bottom {
  grid-column: 2/-1;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 14px;
  color: #b6b6ae;
  font-size: var(--type-label);
  line-height: 1.5;
}

.footer-bottom span:last-child {
  display: none;
}

/* Visor de fotos */
#photo-count {
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.lightbox {
  grid-template-rows: auto minmax(0, 1fr);
  background: #20211ef7;
  color: var(--cream);
  border: 1px solid #fff2;
  border-radius: 6px;
  width: min(1200px, 96vw);
  max-width: 96vw;
  height: min(850px, 94dvh);
  max-height: 94dvh;
  padding: 20px 24px;
  overflow: hidden;
}

.lightbox[open] {
  display: grid;
}

dialog::backdrop {
  background: #111d;
  backdrop-filter: blur(5px);
}

.lightbox button {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  color: var(--cream);
  border: 1px solid #fff3;
  border-radius: 50%;
  transition: transform 0.14s var(--ease-out);
}

.lightbox-stage {
  min-height: 0;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 15px;
  align-items: center;
}

.lightbox figure {
  height: 100%;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.lightbox figure img {
  touch-action: pan-y pinch-zoom;
  width: 100%;
  height: 0;
  min-height: 0;
  flex: 1 1 auto;
  object-fit: contain;
}

.lightbox figure img[hidden],
.lightbox .photo-retry[hidden] {
  display: none;
}

.lightbox figcaption {
  text-align: center;
  flex: none;
  padding-top: 10px;
  font-size: var(--type-action);
  line-height: 1.5;
}

.lightbox .photo-retry {
  margin-top: 16px;
  padding: 10px 20px;
  border-radius: 2px;
  font-size: var(--type-action);
  line-height: 1.5;
}

.lightbox #prev-photo .icon {
  transform: rotate(180deg);
}

summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Detalles del alojamiento */
.info-dialog {
  width: min(900px, 94vw);
  border: 1px solid var(--sand);
  border-radius: 10px;
  background: var(--cream);
  color: var(--ink);
  padding: 0 35px 28px;
  overscroll-behavior: contain;
}

dialog.info-dialog {
  max-height: 90dvh;
}

section.info-dialog {
  margin: 40px auto;
  max-height: none;
}

section.info-dialog .info-top {
  position: static;
}

section.info-dialog .info-pane + .info-pane {
  margin-top: 48px;
}

.info-top {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--type-meta);
  line-height: 1.4;
}

.info-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: transform 0.14s var(--ease-out);
}

.info-close[hidden] {
  display: none;
}

.info-nav {
  display: flex;
  gap: 22px;
  margin: 20px 0 30px;
  border-bottom: 1px solid var(--line);
}

.info-nav [data-info-tab] {
  padding: 10px 0 13px;
  border-bottom: 2px solid transparent;
  font-size: var(--type-action);
  line-height: 1.4;
}

.info-nav [data-info-tab][aria-current='true'] {
  border-color: var(--clay);
  color: var(--clay);
}

.info-pane h2 {
  font-size: 3rem;
  margin-bottom: 25px;
}

.info-pane > p:not(.eyebrow) {
  margin-block: 20px;
  font-size: var(--type-copy);
  line-height: 1.6;
  max-width: 65ch;
}

.info-image {
  width: 100%;
  height: auto;
  aspect-ratio: 1.9;
  object-fit: cover;
  border-radius: 3px;
}

.equipment-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px 25px;
  padding-left: 20px;
  font-size: 0.875rem;
  margin: 25px 0;
}

.info-pane address {
  font-style: normal;
  padding-block: 12px;
  font-size: 1rem;
}

.info-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.info-bottom p {
  max-width: 220px;
  font-size: var(--type-action);
  line-height: 1.5;
}

.faq {
  padding-top: 28px;
}

.faq h2 {
  font-size: 2.1875rem;
  margin-bottom: 18px;
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

summary::-webkit-details-marker {
  display: none;
}

.faq-list summary > span {
  font-family: var(--sans);
  font-size: 1.4375rem;
}

.faq-list details[open] > summary > span {
  transform: rotate(45deg);
}

.faq-list summary {
  padding: 14px 0;
  font-size: var(--type-action);
  line-height: 1.4;
}

.faq-list p {
  color: var(--muted);
  padding-bottom: 17px;
  font-size: var(--type-copy);
  line-height: 1.6;
}

.experience-notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 30px;
}

.experience-notes h3 {
  font-size: 1.75rem;
  margin-bottom: 12px;
}

.experience-notes p {
  color: var(--muted);
  font-size: var(--type-copy);
  line-height: 1.6;
}

/* Estados de interacción */
html[data-pointer-press]
  :is(
    .button,
    .menu-toggle,
    .hero-controls button,
    .gallery-shot,
    .lightbox button,
    .info-close
  ):active {
  transform: scale(0.97);
}

html[data-pointer-press] .button:active {
  background: #773b29;
  border-color: #773b29;
}

html[data-pointer-press]
  :is(
    .desktop-nav a,
    .menu-panel a,
    .footer-nav a,
    .footer-contact a,
    .footer-social a,
    .brand,
    .discovery-links a,
    .info-nav [data-info-tab],
    .faq-list summary
  ):active {
  opacity: 0.7;
}

/* (min-width:1650px) */
@media (min-width: 1650px) {
  .section-pad {
    padding-inline: max(var(--gutter), calc((100vw - 1530px) / 2));
  }

  .hero-copy {
    margin-left: var(--gutter);
    padding-left: 0;
    width: 35.3125rem;
    max-width: calc(100% - 2 * var(--gutter));
  }

  .booking-wrap {
    padding-inline: max(var(--gutter), calc((100vw - 1530px) / 2));
  }
}

/* (max-width:1200px) */
@media (max-width: 1200px) {
  .header {
    gap: 20px;
  }

  .desktop-nav {
    gap: 19px;
  }

  .hero h1 {
    font-size: clamp(4rem, 6.8vw, 5.125rem);
  }

  .hero-copy {
    padding-top: 175px;
  }

  .hero-description {
    font-size: 1rem;
    max-width: 330px;
  }

  .amenities {
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    padding-inline: 3vw;
    min-height: 115px;
  }

  .amenities > p {
    display: none;
  }

  .amenity {
    gap: 10px;
    padding-left: 12px;
  }

  .amenity:first-of-type {
    border-left: 0;
  }

  .amenity > .icon {
    width: 30px;
    height: 30px;
  }

  .cabins-copy {
    padding: 35px 30px 70px 70px;
  }

  .cabins-photo {
    min-height: 480px;
  }

  .cabins-copy h2 {
    font-size: 2.9375rem;
  }

  .features {
    gap: 19px 12px;
  }

  .features > div {
    gap: 9px;
    padding-right: 0;
  }

  .features > div:nth-child(3n + 2),
  .features > div:nth-child(3n + 3) {
    padding-left: 10px;
  }

  .features .icon {
    width: 27px;
    height: 27px;
  }

  .booking-card {
    padding-inline: 23px;
    gap: 20px;
    grid-template-columns: 1fr 2.45fr;
  }

  .booking-heading h2 {
    font-size: 1.75rem;
  }

  .booking-card form {
    column-gap: 8px;
  }

  .field {
    padding-inline: 9px;
  }

  .booking-card .button {
    padding-inline: 14px;
  }

  .footer {
    gap: 23px;
    padding-top: 65px;
    grid-template-columns: 1.25fr 0.55fr 1.05fr 0.65fr 0.8fr;
  }

  .footer h3 {
    font-size: 0.75rem;
  }

  .footer-invitation h2 {
    font-size: 2.125rem;
  }
}

/* (max-width:1080px) */
@media (max-width: 1080px) {
  .menu-toggle {
    visibility: visible;
  }

  .desktop-nav {
    display: none;
  }

  .brand {
    width: 190px;
  }
}

/* (max-width:960px) */
@media (max-width: 960px) {
  .hero {
    height: auto;
    min-height: calc(41.25rem + env(safe-area-inset-top, 0px));
  }

  .hero-copy {
    width: 470px;
    padding-top: calc(175px + env(safe-area-inset-top, 0px));
    padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  }

  .hero-photo {
    width: 125%;
    right: -15%;
    object-position: 68% center;
  }

  .hero-wash {
    background:
      linear-gradient(90deg, var(--cream), #f5ecdeeb 24%, #f5ecde66 48%, transparent 78%),
      linear-gradient(#f5ecdebb, transparent 35%);
  }

  .amenities {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 24px;
    padding: 25px var(--gutter);
    padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
    padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
  }

  .amenity:nth-of-type(4) {
    border-left: 0;
  }

  .cabins-copy {
    padding: 35px 25px 65px 47px;
  }

  .cabins-copy h2 {
    font-size: 2.6875rem;
  }

  .features {
    gap: 18px 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .features > div {
    padding: 0;
    border: 0;
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .features > div:nth-child(3n + 2),
  .features > div:nth-child(3n + 3) {
    padding: 0;
    border: 0;
  }

  .cabins-more {
    white-space: normal;
  }

  .booking-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .booking-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
  }

  .booking-heading h2 {
    margin: 0;
    white-space: normal;
    font-size: 2rem;
  }

  .booking-card form {
    gap: 0 12px;
  }

  .gallery-grid {
    gap: 9px;
  }

  .gallery-shot {
    aspect-ratio: 1.1;
  }

  .section-heading {
    gap: 16px;
  }

  .section-heading h2 {
    font-size: 2.1875rem;
  }

  .reviews .section-heading h2 {
    font-size: 2.0625rem;
  }

  .review-grid {
    --review-gap: 12px;
  }

  .review {
    padding: 15px;
  }

  .review-person {
    gap: 10px;
  }

  .avatar {
    width: 2.4375rem;
    height: 2.4375rem;
    font-size: 1.25rem;
  }

  .footer {
    grid-template-columns: 1.3fr 1.2fr 1fr;
    gap: 30px;
    min-height: 0;
  }

  .footer-nav {
    display: none;
  }

  .footer-invitation {
    grid-column: 1;
    grid-row: 1/3;
  }

  .footer-contact {
    grid-column: 2;
    grid-row: 1/3;
  }

  .footer-social {
    grid-column: 3;
  }

  .footer-brand {
    grid-column: 3;
    max-width: 160px;
  }

  .footer-bottom {
    grid-column: 1/-1;
    margin: 0;
    border-top: 1px solid #fff2;
    padding-top: 20px;
  }

  .header {
    padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
    padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
    padding-top: calc(18px + env(safe-area-inset-top, 0px));
  }

  .section-pad {
    padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
    padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
  }

  .menu-panel {
    right: max(var(--gutter), env(safe-area-inset-right, 0px));
    top: calc(155px + env(safe-area-inset-top, 0px));
  }

  .booking-wrap {
    padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
    padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
  }

  .lightbox {
    max-width: min(
      96vw,
      calc(100vw - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px) - 24px)
    );
  }

  .info-dialog {
    max-width: min(
      94vw,
      calc(100vw - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px) - 24px)
    );
  }
}

/* (min-width:701px) and (max-width:1360px) */
@media (min-width: 701px) and (max-width: 1360px) {
  .booking-card form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 12px;
  }
}

/* (max-width:700px) */
@media (max-width: 700px) {
  :root {
    --gutter: 24px;
  }

  .section-pad {
    padding-block: 29px;
  }

  .header {
    gap: 12px;
    align-items: center;
    padding-bottom: 16px;
    padding-top: calc(15px + env(safe-area-inset-top, 0px));
    flex-wrap: wrap;
    row-gap: 4px;
  }

  .header-book {
    min-height: 44px;
    gap: 12px;
  }

  .menu-panel {
    max-height: calc(100dvh - max(110px, 7rem) - env(safe-area-inset-top, 0px) - 24px);
    top: calc(max(110px, 7rem) + env(safe-area-inset-top, 0px));
  }

  .header::after {
    content: '';
    position: absolute;
    bottom: 0;
    height: 1px;
    background: #a68c6d38;
    pointer-events: none;
    left: max(var(--gutter), env(safe-area-inset-left, 0px));
    right: max(var(--gutter), env(safe-area-inset-right, 0px));
  }

  .hero {
    height: auto;
    min-height: calc(max(720px, 45rem) + env(safe-area-inset-top, 0px));
  }

  .hero-copy {
    padding: 143px var(--gutter) 0;
    width: 100%;
    padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
    padding-top: calc(max(132px, 8.25rem) + env(safe-area-inset-top, 0px));
    padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  }

  .hero h1 {
    font-size: clamp(3rem, 14vw, 4.125rem);
    line-height: 0.95;
  }

  .hero .eyebrow {
    margin-bottom: 14px;
  }

  .hero-description {
    width: auto;
    min-width: 0;
    max-width: 400px;
    margin: 17px 0 19px;
    font-size: var(--type-copy);
    line-height: 1.55;
  }

  .hero-photo,
  .hero-photo[data-scene] {
    top: auto;
    bottom: 0;
    right: 0;
    height: 415px;
    width: 100%;
    object-fit: cover;
    object-position: 51% 60%;
  }

  .hero-photo:not([data-scene]),
  .hero-photo[data-scene='house'] {
    width: 150%;
    right: -26%;
    height: 450px;
    bottom: -70px;
    object-position: center 32%;
  }

  .hero-photo[data-scene='pool'] {
    object-position: 60% 70%;
  }

  .hero-photo[data-scene='interior'],
  .hero-photo[data-scene='bedroom'] {
    height: 385px;
    object-position: center 65%;
  }

  .hero-wash {
    background: linear-gradient(
      180deg,
      var(--cream) 0%,
      var(--cream) 48%,
      #f5ecded1 56%,
      #f5ecde52 63%,
      #f5ecde00 71%
    );
  }

  .amenities {
    padding-block: 25px;
    gap: 24px 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .amenity {
    padding-left: 13px;
    gap: 10px;
    min-height: 46px;
    min-width: 0;
  }

  .amenity:nth-of-type(odd) {
    border-left: 0;
    padding-left: 0;
  }

  .amenity:nth-of-type(4) {
    border-left: 1px solid #ffffff16;
  }

  .amenity > .icon {
    width: 29px;
    height: 29px;
  }

  .cabins {
    grid-template-columns: 1fr;
  }

  .cabins-photo {
    min-height: 300px;
  }

  .cabins-photo > img {
    object-position: 50% 55%;
  }

  .cabins-copy {
    padding: 40px var(--gutter) 70px;
    padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
    padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
  }

  .cabins-copy h2 {
    font-size: 3rem;
  }

  .cabins-copy > p:not(.eyebrow) {
    max-width: 510px;
  }

  .features {
    gap: 22px 14px;
    margin-block: 26px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .features > div {
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .features .icon {
    width: 29px;
    height: 29px;
  }

  .booking-wrap {
    margin-top: -31px;
    padding-inline: 16px;
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
  }

  .booking-card {
    padding: 22px 19px 18px;
    gap: 20px;
  }

  .booking-heading {
    display: block;
  }

  .booking-heading h2 {
    font-size: 2rem;
    white-space: normal;
    margin-bottom: 8px;
  }

  .booking-heading p {
    max-width: 34ch;
  }

  .booking-card form {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .field {
    min-height: 66px;
    padding-inline: 11px;
  }

  .field input,
  .field select {
    height: max(24px, 1.5em);
  }

  .guests {
    grid-column: 1/-1;
  }

  .booking-card .button {
    grid-column: 1/-1;
    justify-content: space-between;
    padding-inline: 20px;
    height: auto;
    min-height: 52px;
    white-space: normal;
  }

  .booking-card .button .icon {
    display: block;
  }

  .booking-note {
    padding-top: 0;
  }

  .section-heading {
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
    align-items: start;
  }

  .section-heading h2 {
    font-size: 2.3125rem;
  }

  .section-heading .text-link {
    padding-top: 0;
  }

  .gallery {
    padding-top: 29px;
    padding-bottom: 24px;
  }

  .gallery-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 10px;
    padding-bottom: 8px;
    scrollbar-color: var(--clay) var(--sand);
    scrollbar-width: thin;
  }

  .gallery-shot {
    flex: 0 0 78%;
    aspect-ratio: 1.4;
    scroll-snap-align: start;
  }

  .gallery-shot::after,
  .gallery-shot > span {
    opacity: 1;
  }

  .reviews .section-heading h2 {
    font-size: 2.25rem;
  }

  .review-grid {
    --review-gap: 13px;
  }

  .review {
    padding: 18px 20px;
  }

  .review-person {
    gap: 12px;
  }

  .avatar {
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1.375rem;
  }

  .review-stars .icon {
    width: 20px;
    height: 20px;
  }

  .footer {
    gap: 30px 20px;
    padding-top: 46px;
    padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px));
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer::before {
    background: linear-gradient(180deg, #25262270, #252622e6 45%, #252622 70%);
  }

  .footer-photo {
    width: 100%;
    height: 430px;
    object-position: center top;
  }

  .footer-invitation {
    grid-column: 1/-1;
    grid-row: auto;
  }

  .footer-invitation h2 {
    font-size: 2.625rem;
  }

  .footer-contact {
    grid-column: 1/-1;
    grid-row: auto;
    padding: 0;
  }

  .footer h3 {
    font-size: 0.8125rem;
    margin-bottom: 17px;
  }

  .footer-social {
    grid-column: 1;
    padding: 0;
  }

  .footer-brand {
    grid-column: 2;
    align-self: center;
    width: 100%;
    max-width: 190px;
    justify-self: end;
  }

  .footer-bottom {
    margin: 0;
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .lightbox {
    padding: 12px;
    height: fit-content;
    align-content: start;
    max-height: 94dvh;
    overflow-y: auto;
    grid-template-rows: auto auto auto;
  }

  .lightbox-stage {
    grid-template-columns: 1fr 1fr;
    position: relative;
    gap: 12px;
    height: auto;
    align-content: start;
    margin-top: 16px;
  }

  .lightbox-stage figure {
    grid-column: 1/-1;
    grid-row: 1;
    height: auto;
  }

  .info-dialog {
    padding: 0 20px 22px;
  }

  .info-nav {
    margin: 13px 0 25px;
    gap: 12px;
    flex-wrap: wrap;
  }

  .info-pane h2 {
    font-size: 2.375rem;
  }

  .info-image {
    aspect-ratio: 1.35;
  }

  .equipment-list {
    grid-template-columns: 1fr;
    font-size: 0.875rem;
  }

  .experience-notes {
    grid-template-columns: 1fr;
    gap: 23px;
  }

  .info-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .info-bottom p {
    max-width: none;
  }

  .info-bottom .button {
    width: 100%;
  }

  .faq h2 {
    font-size: 1.9375rem;
  }

  .brand {
    width: clamp(94px, 23vw, 110px);
  }

  .header-actions {
    gap: 17px;
    margin-left: auto;
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .menu-toggle {
    padding-left: 13px;
    width: 44px;
    height: 44px;
  }

  .discovery {
    grid-template-columns: 1fr;
    gap: 29px;
    margin-top: 0;
    padding-top: 28px;
    padding-bottom: 34px;
  }

  .discovery-photo {
    min-height: 0;
    height: 240px;
  }

  .discovery-photo img {
    object-position: center 57%;
  }

  .discovery-photo figcaption {
    font-size: 1.6875rem;
    left: 20px;
    bottom: 20px;
  }

  .discovery-copy {
    gap: 25px;
  }

  .discovery-copy h2 {
    font-size: 2.25rem;
  }

  .discovery-copy section + section {
    padding-top: 25px;
  }

  .text-link {
    min-height: 44px;
  }

  .footer-contact a,
  .footer-social a {
    min-height: 44px;
    margin-bottom: 4px;
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .footer-social .footer-help {
    display: flex;
    align-items: center;
  }

  .footer-nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
  }

  .cabins-more,
  .footer-invitation .text-link {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .amenity > div {
    min-width: 0;
  }

  .amenity strong,
  .amenity span {
    overflow-wrap: anywhere;
  }

  .lightbox-stage figure img {
    width: auto;
    max-width: 100%;
    height: auto;
    flex: none;
    max-height: calc(94dvh - 210px);
    touch-action: pan-y pinch-zoom;
  }

  .lightbox figcaption {
    min-height: 0;
    padding-top: 10px;
  }
}

/* (max-width:480px) */
@media (max-width: 480px) {
  .booking-card form {
    grid-template-columns: 1fr;
  }
}

/* (max-width:380px) */
@media (max-width: 380px) {
  .header-book {
    gap: 0;
  }

  .header-book .icon {
    display: none;
  }

  .amenities {
    grid-template-columns: 1fr;
    gap: 17px;
  }

  .amenity,
  .amenity:nth-of-type(4) {
    border-left: 0;
    padding-left: 0;
    min-height: 0;
  }
}

/* (hover:hover) and (pointer:fine) */
@media (hover: hover) and (pointer: fine) {
  .button:hover {
    background: #88432c;
    border-color: #88432c;
  }

  .button:hover .icon {
    transform: translateX(2px);
  }

  .text-link:hover {
    text-decoration-color: currentColor;
  }

  .text-link:hover .icon {
    transform: translateX(4px);
  }

  .desktop-nav a:hover {
    color: var(--clay);
  }

  .desktop-nav a:hover::after {
    transform: scaleX(1);
  }

  .menu-toggle:hover {
    background: #f5ecdea6;
    border-color: var(--ink);
  }

  .menu-panel a:hover {
    color: var(--clay);
  }

  .gallery-shot:hover::after,
  .gallery-shot:hover > span {
    opacity: 1;
  }

  .lightbox button:hover {
    background: #fff2;
  }

  .header .header-book:hover {
    color: #783b29;
  }

  .menu-toggle:hover span {
    background: var(--clay);
  }
}

/* (pointer:coarse) */
@media (pointer: coarse) {
  .field {
    height: auto;
    min-height: 80px;
    padding-block: 7px;
  }

  .field input,
  .field select {
    height: 44px;
    min-height: 44px;
    margin-top: 0;
  }

  .text-link,
  .info-nav [data-info-tab],
  .footer-nav a,
  .footer-contact a,
  .footer-social a {
    min-height: 44px;
  }
}

/* Una bienvenida breve; la fotografía de portada permanece visible desde el inicio. */
.hero-copy h1,
.hero-description {
  animation: welcome-in 300ms var(--ease-out) both;
}

.hero-description {
  animation-delay: 60ms;
}

@keyframes welcome-in {
  from {
    opacity: 0.7;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes welcome-fade {
  from {
    opacity: 0.7;
  }
  to {
    opacity: 1;
  }
}

/* (prefers-reduced-motion:reduce) */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }

  .button,
  .hero-controls button,
  .menu-toggle {
    transition:
      background-color 0.15s ease,
      color 0.15s ease,
      border-color 0.15s ease !important;
  }

  html[data-pointer-press]
    :is(
      .button,
      .menu-toggle,
      .hero-controls button,
      .gallery-shot,
      .lightbox button,
      .info-close
    ):active {
    transform: none;
  }

  .hero-copy h1,
  .hero-description {
    animation: welcome-fade 120ms var(--ease-out) both !important;
  }
}

.hero-controls button,
.rotation-control,
.lightbox button,
.header-book {
  transition:
    transform 150ms var(--ease-out),
    color 150ms var(--ease-out),
    border-color 150ms var(--ease-out);
}

html[data-pointer-press]
  :is(.hero-controls button, .rotation-control, .lightbox button, .header-book):active {
  transform: scale(0.97);
  transition-duration: 75ms;
}

dialog::backdrop {
  transition: opacity 165ms var(--ease-out);
}
dialog[data-opening]::backdrop {
  animation: backdrop-in 210ms var(--ease-out) both;
}
dialog[data-closing]::backdrop {
  opacity: 0;
}
dialog[data-closing] {
  pointer-events: none;
}

@keyframes backdrop-in {
  from {
    opacity: 0.48;
  }
  to {
    opacity: 1;
  }
}

.faq-list summary > span {
  transition: transform 180ms var(--ease-out);
}
.faq-list summary:focus-visible > span {
  transition: none;
}
.faq-list summary[aria-expanded='false'] > span {
  transform: none;
}
.faq-list details[data-moving] > .faq-answer {
  overflow: hidden;
}

.hero .hero-photo[data-scene] {
  inset: 0 0 auto auto;
  width: 76%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) sepia(0.03);
}

.hero .hero-photo[data-scene='house'] {
  object-position: 60% 43%;
}
.hero .hero-photo[data-scene='pool'] {
  object-position: 61% 66%;
}
.hero .hero-photo[data-scene='interior'] {
  object-position: 51% 52%;
}

.hero .hero-wash {
  background:
    linear-gradient(90deg, var(--cream) 24%, #f5ecdef2 29%, #f5ecde7a 42%, transparent 60%),
    linear-gradient(180deg, #f5ecdeb3, transparent 33%, transparent 77%, #181b171f);
}

@media (max-width: 1100px) {
  .hero .hero-photo[data-scene] {
    width: 85%;
  }
  .hero .hero-wash {
    background:
      linear-gradient(90deg, var(--cream) 15%, #f5ecdef2 25%, #f5ecdebd 45%, transparent 70%),
      linear-gradient(180deg, #f5ecdeb3, transparent 35%);
  }
}

@media (max-width: 700px) {
  .hero {
    --hero-photo-height: clamp(270px, 78vw, 420px);
    min-height: 0;
    padding-bottom: calc(var(--hero-photo-height) - 34px);
  }

  .hero .hero-photo[data-scene],
  .hero .hero-wash {
    inset: auto 0 0;
    width: 100%;
    height: var(--hero-photo-height);
  }

  .hero .hero-photo[data-scene='house'] {
    object-position: 55% 43%;
  }

  .hero .hero-wash {
    background: linear-gradient(
      180deg,
      var(--cream),
      #f5ecdeb8 32px,
      #f5ecde35 63px,
      transparent 100px
    );
  }
}

.hero-controls {
  position: absolute;
  z-index: 3;
  right: var(--gutter);
  bottom: 24px;
  display: flex;
  padding: 0 8px;
  border-radius: 4px;
  background: #252622e8;
}

.hero-controls[hidden] {
  display: none;
}

.hero-controls [data-hero-slide] {
  display: grid;
  place-items: center;
  width: 30px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.hero-controls [data-hero-slide]::after {
  content: '';
  width: 21px;
  height: 2px;
  border-radius: 2px;
  background: #fff4e68a;
}

.hero-controls [aria-current='true']::after {
  background: var(--copper);
}

.hero-controls .rotation-keyboard {
  position: absolute;
  right: 100%;
}

.hero-controls button:focus-visible {
  background: #252622e8;
  color: #fff4e6;
}

.rotation-control {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 4px;
}

.rotation-control[hidden] {
  display: none;
}
.rotation-control svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
}
.rotation-control .rotation-play,
.rotation-control[data-paused] .rotation-pause {
  display: none;
}
.rotation-control[data-paused] .rotation-play {
  display: inline;
}
.review-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.review-links {
  position: relative;
}
.review-links .rotation-control {
  position: absolute;
  right: 0;
  top: 100%;
  color: var(--copper);
}

.review-carousel .review-grid {
  grid-auto-columns: calc(
    (100% - var(--review-columns) * var(--review-gap)) / (var(--review-columns) + 0.16)
  );
}

.review-carousel .review-grid[data-dragging] {
  scroll-snap-type: none;
  cursor: grabbing;
  user-select: none;
}

.gallery {
  padding-bottom: 35px;
}

.cabins-copy {
  container-type: inline-size;
}
.cabins-copy::after {
  content: none;
}
.cabins-botanical {
  position: absolute;
  z-index: -1;
  bottom: 48px;
  right: 2px;
  width: min(52%, 440px);
  height: 87%;
  pointer-events: none;
  opacity: 0.67;
  mask-image: linear-gradient(100deg, #0000 14%, #000 62%);
}

.cabins-copy .features > div {
  overflow-wrap: normal;
}
.cabins-copy .features .icon {
  flex-shrink: 0;
}

@container (max-width: 31rem) {
  .cabins-copy .features > div {
    gap: 8px;
    padding-right: 4px;
  }
  .cabins-copy .features .icon {
    width: 24px;
    height: 24px;
  }
  .cabins-copy .features > div:nth-child(n) {
    padding-left: 0;
    border-left: 0;
  }
}

@container (max-width: 20rem) {
  .cabins-copy .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.lightbox {
  --viewer-surface: #232420;
  --viewer-text: #fff4e6;
  --viewer-subtle: #dbcebe;
  --viewer-line: #f5ecde2b;
  --viewer-accent: #efb27b;
  --viewer-matte: #1b1d19;
  width: min(1210px, 96vw);
  height: min(900px, 94dvh);
  padding: clamp(12px, 2vw, 26px);
  border: 0;
  border-radius: 8px;
  color: var(--viewer-text);
  background: var(--viewer-surface);
  overflow: auto;
}

.lightbox[open] {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 8px;
}

.viewer-top,
.viewer-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.viewer-top {
  justify-content: space-between;
}
.viewer-title {
  font: 500 clamp(1.625rem, 3.1vw, 2.625rem)/1 var(--serif);
  letter-spacing: -0.025em;
  margin: 0;
}

.lightbox button {
  color: var(--viewer-text);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
}

.lightbox button:focus-visible {
  outline-color: var(--viewer-accent);
  outline-offset: -3px;
}
.lightbox [aria-pressed='true'] {
  color: var(--viewer-accent);
}

.photo-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0 clamp(8px, 2vw, 22px);
  border-top: 1px solid var(--viewer-line);
}

.lightbox .photo-categories button {
  display: block;
  padding: 5px 2px;
  border-radius: 0;
  font-size: 0.875rem;
}

.lightbox .photo-categories [aria-pressed='true'] {
  border-bottom-color: var(--viewer-accent);
}

.lightbox .lightbox-stage {
  display: block;
  margin: 0;
  min-height: 0;
}
.lightbox .lightbox-stage figure {
  position: relative;
  overflow: hidden;
  height: 100%;
  margin: 0;
  background: var(--viewer-matte);
}

.lightbox .lightbox-stage figure img {
  width: 100%;
  height: 0;
  min-height: 0;
  flex: 1 1 0;
}

.lightbox-outgoing {
  position: absolute;
  pointer-events: none;
}

.lightbox figcaption {
  width: 100%;
  padding: 8px;
  color: var(--viewer-subtle);
  background: var(--viewer-surface);
}

.lightbox .photo-retry {
  border-color: var(--viewer-line);
  margin: 8px;
}
.viewer-footer {
  justify-content: center;
}
.lightbox .viewer-footer button {
  border-color: var(--viewer-line);
}
.lightbox #photo-count {
  min-width: 6ch;
  text-align: center;
  font-size: 0.8125rem;
}

@media (hover: hover) and (pointer: fine) {
  .review-grid {
    cursor: grab;
  }
  .lightbox button:hover {
    border-color: var(--viewer-line);
    color: var(--viewer-accent);
  }
}

@media (max-width: 700px) and (hover: hover) and (pointer: fine) {
  .gallery-grid[data-caption-managed] .gallery-shot {
    cursor: grab;
  }
  .gallery-grid[data-dragging] .gallery-shot {
    cursor: grabbing;
  }
}

@media (max-width: 700px) {
  .hero-controls {
    right: 24px;
    bottom: 18px;
  }
  .gallery {
    padding-bottom: 42px;
  }
  .gallery-grid {
    padding-bottom: 4px;
    scrollbar-color: #a67760 transparent;
  }
  .gallery-grid[data-dragging] {
    scroll-snap-type: none;
    user-select: none;
  }
  .gallery-shot[data-gallery='dormitorio-matrimonial-2'] img {
    object-position: right center;
  }
  .gallery-grid[data-caption-managed] .gallery-shot:not([data-caption-visible])::after,
  .gallery-grid[data-caption-managed] .gallery-shot:not([data-caption-visible]) > span {
    opacity: 0;
  }
  .discovery {
    row-gap: 18px;
  }
  #experiencias .eyebrow {
    margin-bottom: 8px;
  }
  .cabins-botanical {
    width: min(64%, 330px);
    height: 70%;
    right: 0;
    bottom: 35px;
    opacity: 0.52;
  }
  .lightbox {
    height: min(740px, 94dvh);
    align-content: stretch;
  }
  .viewer-top {
    flex-wrap: wrap;
    column-gap: 4px;
  }
  .viewer-title {
    flex: 1 1 auto;
  }
  .lightbox .photo-categories button {
    font-size: 0.8125rem;
  }
}

@media (max-width: 700px) and (forced-colors: none) {
  @supports selector(::-webkit-scrollbar) {
    .gallery-grid {
      scrollbar-color: auto;
      scrollbar-width: auto;
    }
    .gallery-grid::-webkit-scrollbar {
      height: 12px;
    }
    .gallery-grid::-webkit-scrollbar-track {
      background: transparent;
    }
    .gallery-grid::-webkit-scrollbar-button {
      display: none;
      width: 0;
      height: 0;
    }
    .gallery-grid::-webkit-scrollbar-thumb {
      background: #a67760;
      background-clip: padding-box;
      border-block: 4px solid transparent;
      border-radius: 99px;
    }
    .gallery-grid::-webkit-scrollbar-thumb:hover {
      background-color: var(--clay);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-pointer-press]
    :is(.hero-controls button, .rotation-control, .lightbox button, .header-book):active {
    transform: none;
  }
}

/* El teclado conserva acceso a la pausa sin añadir controles al navegar con el mouse. */
.rotation-keyboard:not(:focus-visible) {
  clip-path: inset(50%);
  pointer-events: none;
}
