/* Portada only. The other pages keep the previous look. */
body.portada {
  --forest: #3b2a1e;
  --forest-dark: #2a1d14;
  --cream: #fbf9f5;
  --paper: #ffffff;
  --ink: #3b2a1e;
  --muted: #6d5648;
  --line: #eadfd4;
  --sage: #f6f1ea;
  --serif: Iowan Old Style, Palatino, "Palatino Linotype", Georgia, serif;
  --sans: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  background: #fff;
  color: #3b2a1e;
}

body.portada .preview-banner { background: #3b2a1e; color: #fbf9f5; }

body.portada .site-header {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 5;
  max-width: none;
  width: auto;
  margin: 0;
  color: #fbf9f5;
  background: linear-gradient(to bottom, rgba(28, 18, 12, .62), rgba(28, 18, 12, 0));
  text-shadow: 0 1px 10px rgba(20, 12, 8, .45);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
}
body.portada .site-header .brand { justify-self: start; }
body.portada .site-header nav { grid-column: 2; justify-self: center; }
.language-switch {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px 4px 3px 10px;
  background: var(--cream);
  color: var(--ink);
  border-radius: 28px;
  text-shadow: none;
  font-size: .88rem;
}
.language-switch svg { margin-right: 3px; }
.language-switch a, .language-switch span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 8px;
}
.language-switch a { text-decoration: underline; text-underline-offset: 3px; }
.language-switch [aria-current] {
  background: var(--forest);
  color: var(--cream);
  border-radius: 22px;
  font-weight: 700;
}
body.portada .site-header .button { text-shadow: none; }
body.portada .site-header nav { flex-wrap: wrap; max-width: 100%; gap: 8px 18px; font-size: 1.08rem; font-weight: 600; }
body.portada .site-header nav a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
body.portada .nav-mark { width: 10px; height: 10px; border-radius: 50%; flex: none; box-shadow: 0 0 0 1px rgba(255, 255, 255, .45); }
body.portada .nav-mark.fuego { background: #fccc00; }
body.portada .nav-mark.cafe { background: #7a4a2a; }
body.portada .nav-mark.agua { background: #44c0fc; }
body.portada .nav-mark.hoja { background: #94c020; }
body.portada .nav-mark.arena { background: #c8a88c; }
body.portada .nav-mark.logo { background: conic-gradient(#fccc00 0 25%, #94c020 0 50%, #44c0fc 0 75%, #c8a88c 0 100%); }
body.portada .brand-logo {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 8px 22px rgba(20, 12, 8, .38);
}

body.portada .hero {
  margin: 0;
  border-radius: 0;
  max-width: none;
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 640px;
  color: #fbf9f5;
  background: #2a1d14;
}
body.portada .hero-photo,
body.portada .hero-video,
body.portada .hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
body.portada .hero-photo { object-position: center 42%; z-index: 0; }
body.portada .hero-video {
  object-fit: cover;
  object-position: center 46%;
  z-index: 1;
  opacity: 0;
  transition: opacity .65s ease;
}
body.portada .hero-video.is-on { opacity: 1; z-index: 2; }
body.portada .photo-people { object-position: center 58%; }
body.portada .photo-bohio { object-position: center 32%; }
body.portada .hero-shade {
  z-index: 2;
  background:
    linear-gradient(to top, rgba(22, 14, 10, .72) 0%, rgba(22, 14, 10, .18) 42%, rgba(22, 14, 10, .28) 100%);
}
body.portada .hero-content {
  container-type: inline-size;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  max-width: 920px;
  margin: 0;
  padding: 0 6vw 56px;
}
body.portada .hero h1 {
  font-size: min(11cqi, 5.6rem);
  margin-bottom: 12px;
  color: #fbf9f5;
}
body.portada .hero-description {
  color: #fbf9f5;
  font-size: 1.15rem;
  margin-bottom: 0;
}
body.portada .hero-content .eyebrow {
  font-size: clamp(.83rem, 1.1vw, 1rem);
  margin-bottom: 8px;
}
body.portada .hero-proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin: 0 0 10px;
  letter-spacing: .02em;
  font-size: .95rem;
}
body.portada .proof-mark,
body.portada .proof-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
}
body.portada .proof-link { width: 44px; justify-content: center; }
body.portada .mark { width: 22px; height: 22px; flex: none; }
body.portada .wa-icon { width: 22px; height: 22px; flex: none; }
body.portada .button { gap: 10px; }
body.portada .stars { color: #f5c518; letter-spacing: .08em; }
body.portada .resenas { background: #fff; padding: 72px 6vw 64px; }
.reviews-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .25rem; margin-bottom: 1rem; }
.reviews-heading .eyebrow { margin-bottom: .5rem; }
.reviews-heading h2 { margin-bottom: 0; }
.reviews-heading a { display: block; padding-block: 1rem; }
.reviews-heading img { display: block; width: clamp(90px, 12vw, 135px); height: auto; }
.review-note { color: #6d5648; font-size: .9rem; line-height: 1.5; margin: 0 0 1.25rem; }
.resenas > .text-link { margin-top: 20px; }
body.portada .resena-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
body.portada .resena-grid blockquote { margin: 0; border: 1px solid var(--line); background: #fff; padding: 22px 20px; }
body.portada .desde-cali { background: #fff; }
body.portada .desde-cali-copy { max-width: 40rem; }
body.portada .desde-cali-copy p { color: #6d5648; font-size: 1.05rem; line-height: 1.65; }
body.portada .desde-cali a { color: #3b2a1e; text-underline-offset: 3px; }
body.portada .resena-grid p { font-family: var(--serif); font-size: 1.25rem; line-height: 1.35; color: #3b2a1e; }
body.portada .resena-grid p.resena-stars { font-family: var(--sans); font-size: .95rem; line-height: 1; margin: 0 0 12px; }
.review-source {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: .3em;
  vertical-align: middle;
  white-space: nowrap;
}
.tripadvisor-owl { flex: none; }
.review-source img, .review-source svg { display: inline-block; width: 22px; height: 22px; object-fit: contain; background: transparent; vertical-align: -6px; }
body.portada .resena-grid footer { margin-top: 16px; font-size: .8rem; color: #6d5648; }
body.portada .eyebrow.light { color: #fbf9f5; }

body.portada .puertas { padding: 48px 0 12px; background: #fff; }
body.portada .puertas .section-heading,
body.portada .stays .section-heading { padding: 0 6vw; }
.portada-doors {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 0 8px;
}
.puerta { min-width: 0; background: #fff; }
.puerta img, .spa-cover { height: min(52vw, 460px); min-height: 240px; }
#cabanas-puerta > img { object-position: center 55%; }
.spa-cover {
  --spa-focus: 42% bottom;
  --spa-zoom: 1.1;
  overflow: hidden;
}
.puerta .spa-cover img {
  height: 100%;
  min-height: 0;
  max-height: none;
  object-position: var(--spa-focus);
  transform: scale(var(--spa-zoom));
  transform-origin: var(--spa-focus);
}
.puerta h2 { font-size: clamp(1.45rem, 2vw, 2rem); margin: 14px 12px 6px; }
.puerta p { margin: 0 12px 6px; color: #6d5648; font-size: .95rem; }
.puerta .text-link { margin: 0 12px 18px; }

body.portada .stays { background: #fff; }
body.portada .stay-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
body.portada .stay-card { background: #fff; grid-column: span 2; }
body.portada .stay-card:nth-child(4),
body.portada .stay-card:nth-child(5) { grid-column: span 3; }
body.portada .stay-featured { grid-row: auto; grid-column: span 2; display: block; }
body.portada .stay-card img,
body.portada .stay-featured img { height: 320px; }
body.portada .photo-porch { object-position: center 82%; }
body.portada .stay-content { display: flex; flex-direction: column; align-items: flex-start; }
body.portada .stay-content .text-link { max-width: 100%; }
body.portada .text-link { color: #3b2a1e; }
body.portada .location p a,
body.portada .faq-list a { text-decoration: underline; text-underline-offset: 3px; }

body.portada .enquiry-section { background: #fff; }
body.portada .location { background: #fff; color: var(--ink); border-top: 1px solid var(--line); }
body.portada .location .eyebrow { color: var(--muted); }
body.portada .location .button { border: 1px solid var(--line); background: #fff; }
body.portada .location p:not(.eyebrow) { color: var(--muted); }
body.portada .site-footer { background: #fff; }
body.portada .footer-social a,
body.portada .footer-end a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
body.portada .footer-social .mark,
body.portada .footer-end .mark { width: 22px; height: 22px; flex: none; }
body.portada .footer-end { grid-column: 1 / -1; display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px 28px; align-items: center; }

@media (max-width: 1000px) {
  .portada-doors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .puerta:last-child { grid-column: 1 / -1; }
  .puerta img, .spa-cover { height: 58vw; max-height: 520px; }
  .spa-cover { --spa-focus: 45% bottom; --spa-zoom: 1.3; }
  body.portada .resena-grid { grid-template-columns: 1fr; }
  body.portada .stay-grid { grid-template-columns: 1fr 1fr; }
  body.portada .stay-card,
  body.portada .stay-card:nth-child(4),
  body.portada .stay-card:nth-child(5),
  body.portada .stay-featured { grid-column: auto; display: block; }
}

@media (max-width: 700px) {
  body.portada { padding-bottom: 0; }
  body.portada .site-header { display: flex; flex-wrap: wrap; }
  .language-switch { order: 2; margin-left: auto; }
  body.portada .site-header nav { display: flex; order: 3; flex-basis: 100%; grid-column: auto; gap: 2px 14px; font-size: .98rem; }
  body.portada .brand-logo { width: 64px; height: 64px; }
  body.portada .hero { margin: 0; min-height: 100svh; height: 100svh; }
  body.portada .hero-content { padding: 0 20px 48px; }
  body.portada .hero h1 { font-size: min(11cqi, 3.6rem); }
  body.portada .stay-grid { grid-template-columns: 1fr; }
  .portada-doors { grid-template-columns: 1fr; }
  .puerta:last-child { grid-column: auto; }
  .puerta img, .spa-cover { height: 78vw; min-height: 260px; }
  .spa-cover { --spa-focus: 49% bottom; --spa-zoom: 1.62; }
  body.portada .puertas .section-heading,
  body.portada .stays .section-heading { padding: 0; }
  body.portada .puertas { padding: 36px 16px 8px; }
}
@media (max-width: 360px) {
  body.portada .site-header .button-small { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  body.portada .hero-video { display: none; }
}

.restaurant-menu summary { margin: 0 12px 18px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.restaurant-menu figure { margin: 0 12px 12px; }
.restaurant-menu figure img { height: auto; min-height: 0; aspect-ratio: 4 / 3; }
.restaurant-menu figcaption { margin-top: 6px; }
.rate-content { margin: 0 12px 18px; }
.rate-content h3 { margin: 1rem 0 .25rem; }
.cabin-rates { margin: .75rem 0; }
.cabin-rates summary { cursor: pointer; text-decoration: underline; }
.cabin-rates p { margin: .75rem 0; }

.photo-set { margin: 0 12px 16px; }
.photo-set summary { cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.photo-set figure { margin: 12px 0; }
.puerta .photo-set img { width: 100%; height: auto; min-height: 0; aspect-ratio: auto; }
.photo-set figcaption { font-size: .85rem; margin: 4px 0 12px; }
.puerta .menu-files { margin: 0 12px 18px; }
.stay-decoration { margin: 2rem auto 0; max-width: 42rem; padding: 1.5rem; border-top: 1px solid var(--line); text-align: center; }
.stay-decoration h3 { margin: 0; }
#carta { scroll-margin-top: 4rem; }

.stay-content .cabin-photos { width: 100%; margin: 0; }
body.portada .cabin-photos img { width: 100%; height: auto; transform: none; }

#eventos > img {
  object-position: 59% center;
}

#comida > img {
  object-position: 74% center;
}

.email-enquiry { margin-top: 1.5rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.email-enquiry summary { width: fit-content; cursor: pointer; font-weight: 600; padding-block: .5rem; }
.email-enquiry form:not([hidden]) { display: grid; max-width: 34rem; gap: 1rem; margin-block: 1rem; }
.email-enquiry textarea { resize: vertical; min-height: 6rem; padding: .75rem; font: inherit; color: var(--ink); border: 1px solid #9ca999; border-radius: 3px; }
.email-enquiry button { justify-self: start; }
.email-enquiry [role="status"]:empty { margin: 0; }

.review-action {
  text-decoration: underline;
  text-underline-offset: .2em;
}
.proof-mark:hover .review-action, .review-source:hover .review-action {
  text-decoration-thickness: 2px;
}
.all-reviews { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 20px; }

.stay-tour { position: relative; overflow: hidden; background: #17251d; }
.stay-tour-cover { display: block; position: relative; aspect-ratio: 4 / 5; }
body.portada .stay-tour-cover img,
.stay-tour-cover .stay-loop {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.stay-tour-cover .stay-loop { opacity: 0; transition: opacity .6s ease; }
.stay-tour-cover .stay-loop.is-playing { opacity: 1; }
.stay-tour-cover::after {
  content: ""; position: absolute; inset: 55% 0 0; z-index: 1; pointer-events: none;
  background: linear-gradient(0deg, #0d1a1394, transparent);
}
.stay-tour-play {
  position: absolute; left: 1rem; bottom: 1rem; z-index: 2;
  padding: .5rem .9rem; border-radius: 2rem;
  background: #173c30e6; color: white; font-size: .9rem; font-weight: 600;
}
.stay-tour-play span { padding-right: .3em; }
.stay-tour-cover:hover .stay-tour-play, .stay-tour-cover:focus-visible .stay-tour-play { background: #fff8e8; color: #173c30; }
@media (min-width: 1001px) {
  body.portada .stay-card:nth-child(4) .stay-tour-cover,
  body.portada .stay-card:nth-child(5) .stay-tour-cover { aspect-ratio: 6 / 5; }
}

.hero-scene-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 14px; }
.hero-scene-controls button {
  background: #211a17b8;
  color: white;
  border: 1px solid #ffffff8f;
  border-radius: 100px;
  min-height: 44px;
  min-width: 44px;
  padding: 0 clamp(8px,1.1vw,17px);
  font: 600 .86rem/1 var(--sans);
  cursor: pointer;
}
.hero-scene-controls button[aria-pressed="true"], .hero-scene-controls button:hover {
  background: #fff8e8;
  border-color: #fff8e8;
  color: #30241e;
}
body.portada .hero :focus-visible { outline: 3px solid #ffe07b; outline-offset: 3px; }
@media (max-width: 700px) {
  body.portada .hero-content { padding: 0 18px 26px; }
  body.portada .hero-scene-controls button { padding-inline: 8px; font-size: .77rem; }
}
.spa-cover .stay-tour-cover { aspect-ratio: auto; height: 100%; }

.hero-river-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 12px;
  padding: 0 16px;
  border-radius: 24px;
  background: #fff8e8;
  color: #30241e;
  font-weight: 700;
  text-shadow: none;
}
.hero-river-link:hover { background: #ffe5a4; }

.spa-cover .spa-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #17251d;
}
.spa-cover [hidden] { display: none; }
