/* Keep the live site's sticky navigation over the opening image. */
.nav:not(.is-scrolled) { background: transparent; color: #fff8ed; }
.nav:not(.is-scrolled) .nav__inner { border-bottom: 1px solid #fff8ed38; }
.nav:not(.is-scrolled) .nav__toggle span { background: #fff8ed; }
.nav__inner.container { width: calc(100% - 2 * clamp(22px, 5vw, 72px)); }
@media (max-width: 740px) {
  .nav:not(.is-scrolled) .nav__links.is-open { background: #142638; color: #fff8ed; }
}
@media (max-width: 600px) {
  .nav__inner.container { width: calc(100% - 34px); }
}

.salas-hero-root {
  --sea: #142638;
  --shadow: #101922;
  --cream: #fff8ed;
  --sand: #efd6af;
  --gold: #d4ac78;
  --serif: 'Young Serif', Georgia, serif;
  --sans: 'Figtree', system-ui, sans-serif;
  container-type: inline-size;
  margin-top: calc(-1 * var(--nav-height) - 1px);
  color-scheme: dark;
  color: var(--cream);
  background: var(--shadow);
  font: 400 16px/1.48 var(--sans);
}
.salas-hero-root * { box-sizing: border-box; }
.salas-hero-root :where(h1, h2, p, figure) { margin: 0; }
.salas-hero-root a { color: inherit; }
.salas-hero-root :focus-visible { outline: 2px solid var(--sand); outline-offset: 5px; }

.salas-hero-root .salas-cover {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  padding-top: calc(var(--nav-height) + 1px);
  min-height: clamp(570px, 65cqw, 780px);
  padding-inline: clamp(22px, 5cqw, 72px);
}
.salas-hero-root .salas-background { position: absolute; inset: 0; z-index: -1; }
.salas-hero-root .salas-background img {
  width: 100%; height: 100%; display: block; object-fit: cover; object-position: 58% 50%;
}
.salas-hero-root .salas-background::after {
  position: absolute;
  inset: 0;
  content: '';
  background: linear-gradient(90deg, #101922b3, #10192245 45%, transparent 72%),
              linear-gradient(0deg, #101922eb, transparent 37%, transparent 75%, #101922c9);
}
.salas-hero-root .salas-image-caption {
  position: absolute;
  bottom: 16px;
  right: clamp(22px, 5cqw, 72px);
  z-index: 1;
  color: #f0e5d7;
  font-size: 11px;
}

.salas-hero-root .salas-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 22px;
  padding: clamp(58px, 10cqw, 155px) 0 60px;
}
.salas-hero-root .salas-place {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--sand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.salas-hero-root .salas-place::before { content: ''; width: 31px; height: 1px; flex: none; background: var(--gold); }
.salas-hero-root h1 {
  color: var(--cream);
  font: 400 clamp(58px, 9.35cqw, 124px)/.96 var(--serif);
  letter-spacing: -.052em;
  text-wrap: wrap;
  margin: 16px 0 17px;
}
.salas-hero-root h1 span { display: block; }
.salas-hero-root .salas-motto { font-size: clamp(19px, 2.35cqw, 30px); font-weight: 500; }
.salas-hero-root .salas-actions { display: flex; flex-wrap: wrap; gap: 10px 19px; margin-top: 25px; }
.salas-hero-root .salas-action {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 4px;
  color: var(--cream); font-size: 14px; font-weight: 700; text-decoration: none;
}
.salas-hero-root .salas-action:first-child { padding-inline: 17px; border-radius: 4px; background: var(--sand); color: var(--shadow); }
.salas-hero-root .salas-action:first-child:hover { background: var(--cream); }
.salas-hero-root .salas-action:last-child:hover { text-decoration: underline; text-underline-offset: 5px; }
.salas-hero-root .salas-action svg { width: 15px; height: 15px; fill: currentColor; }

.salas-hero-root .salas-person {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-top: 1px solid #efd6af85;
  background: var(--shadow);
}
.salas-hero-root .salas-portrait {
  position: relative;
  overflow: hidden;
  width: 62px;
  flex: none;
  aspect-ratio: 404 / 466;
  background: var(--sand);
}
.salas-hero-root .salas-portrait img {
  position: absolute;
  width: calc(100% * 1024 / 404);
  height: auto;
  max-width: none;
  left: calc(-100% * 335 / 404);
  top: calc(-100% * 220 / 466);
}
.salas-hero-root .salas-person h2 { color: var(--cream); font: 400 16px/1.25 var(--serif); }
.salas-hero-root .salas-person p { color: var(--sand); font-size: 12px; font-weight: 650; margin-top: 6px; }

@container (max-width: 710px) {
  .salas-hero-root .salas-main { gap: 16px; }
  .salas-hero-root .salas-person { gap: 8px; padding: 10px; }
  .salas-hero-root .salas-portrait { width: 50px; }
}
@container (max-width: 600px) {
  .salas-hero-root .salas-cover { min-height: 0; padding-inline: 17px; }
  .salas-hero-root .salas-main { grid-template-columns: minmax(0, 1fr); padding: clamp(150px, 46cqw, 260px) 0 41px; gap: 23px; }
  .salas-hero-root .salas-background img { height: 68%; object-position: 74% 42%; }
  .salas-hero-root .salas-background::after {
    background: linear-gradient(180deg, #101922bd, transparent 21%, transparent 32%, #10192288 48%, #101922 69%);
  }
  .salas-hero-root h1 { font-size: clamp(51px, 14.8cqw, 79px); margin: 12px 0; }
  .salas-hero-root .salas-motto { font-size: 18px; }
  .salas-hero-root .salas-actions { margin-top: 16px; gap: 6px 15px; }
  .salas-hero-root .salas-person { padding: 10px 0 0; border-color: #fff8ed38; }
  .salas-hero-root .salas-image-caption { right: 17px; bottom: 14px; }
}

.salas-hero-root .salas-background { overflow: hidden; }
#contenido.salas-passing .salas-background img {
  transform-origin: 73% 54%;
  animation: salas-approach 650ms cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes salas-approach { from { transform: scale(1); } to { transform: scale(1.15); } }

#como .salas-eras {
  color: var(--mar);
  padding: 0 0 30px;
  scroll-margin-top: 12px;
}
#contenido.salas-passing .salas-eras { animation: salas-reveal 420ms 110ms ease-out both; }
@keyframes salas-reveal { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
#como .salas-era-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 2vw, 20px);
}
#como .salas-era {
  display: grid;
  gap: 9px;
  padding-bottom: 10px;
  border-bottom: 1px solid #d7c5af;
  text-decoration: none;
}
#como .salas-era:focus-visible { outline-color: #966335; }
#como .salas-era:hover .salas-era-title { text-decoration: underline; text-underline-offset: 4px; }
#como .salas-era img { width: 100%; height: auto; aspect-ratio: 3/2; object-fit: cover; display: block; }
#como .salas-era-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font: 400 clamp(14px, 2vw, 21px)/1.2 var(--serif);
}
#como .salas-era-title span[aria-hidden] { color: #745129; }
#como .salas-era-caption { margin-top: 13px; color: #5a5145; font-size: 12px; }
@media (max-width: 600px) {
  #como .salas-eras { padding-bottom: 22px; }
  #como .salas-era-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  #contenido.salas-passing .salas-background img,
  #contenido.salas-passing .salas-eras { animation: none; }
}

.salas-hero-root .salas-depth {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 190ms ease-out;
  }
  .salas-hero-root .salas-depth img {
    position: absolute;
    inset: 0;
    transform-origin: 73% 54%;
    transform: translate(var(--salas-depth-x, 0px), var(--salas-depth-y, 0px)) scale(1.03);
    transition: transform 260ms ease-out;
  }
  #contenido:not(.salas-passing) .salas-hero-root .salas-depth.is-moving { opacity: 1; }
  @container (max-width: 600px) {
    .salas-hero-root .salas-depth { display: none; }
  }
  @media (prefers-reduced-motion: reduce) {
    .salas-hero-root .salas-depth { display: none; }
  }

.salas-hero-root .salas-call-label { display: grid; gap: .12rem; }
.salas-hero-root .salas-call-label small { font-size: .75rem; font-weight: 600; line-height: 1.15; }

.salas-hero-root .salas-visit-action {
  padding-inline: 13px;
  border: 1px solid #fff8ed91;
  border-radius: 4px;
  background: #10192273;
  text-align: center;
}
.salas-hero-root .salas-visit-action:hover { background: #101922bc; }
