/* Interacciones, encuadre completo y escala tipográfica coherente con ARMAZON. */
.office-page .office-hero h1,
.office-page .office-detail-hero h1 {
  font-size: clamp(2rem, 3.1vw, 3.15rem);
  line-height: 1.16;
  letter-spacing: -.018em;
  font-weight: 400;
}

.office-page .office-heading h2,
.office-page .office-close h2 {
  font-size: clamp(1.55rem, 2.55vw, 2.72rem);
  line-height: 1.2;
  letter-spacing: -.018em;
  font-weight: 400;
}

.office-page .office-hero .hero-lead,
.office-page .office-heading p:last-child,
.office-page .office-detail-hero p:not(.office-kicker) {
  font-size: 1rem;
  line-height: 1.7;
}

.office-hero-media {
  min-height: 0;
  align-self: center;
  background: transparent;
}

.office-hero-media img {
  height: auto;
  object-fit: contain;
}

.office-card figure {
  background: #ece6dc;
}

.office-card-image-link {
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.office-card figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.office-card-image-link:focus-visible {
  outline: 3px solid var(--office-gold);
  outline-offset: -3px;
}

.office-card figure figcaption {
  pointer-events: none;
}

.office-gallery {
  align-items: start;
}

.office-gallery img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.office-gallery-trigger {
  cursor: zoom-in;
}

.office-gallery-trigger:focus-visible {
  outline: 3px solid var(--office-gold);
  outline-offset: 3px;
}

.office-lightbox[hidden] {
  display: none;
}

.office-lightbox {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 58px 28px 28px;
  background: #0a0908;
}

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

.office-lightbox img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 120px);
  object-fit: contain;
}

.office-lightbox figcaption {
  margin-top: 12px;
  color: #fff;
  font-size: .9rem;
}

.office-lightbox-close {
  position: fixed;
  z-index: 1;
  top: 16px;
  right: 18px;
  min-height: 44px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, .55);
  background: #fff;
  color: #151412;
  font: 600 .9rem 'IBM Plex Sans', sans-serif;
  cursor: pointer;
}

.office-lightbox-close:hover,
.office-lightbox-close:focus-visible {
  background: var(--office-gold);
  border-color: var(--office-gold);
}

.office-lightbox-open {
  overflow: hidden;
}

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

.office-model-nav a:nth-child(2) {
  justify-content: center;
}

.office-model-nav a:last-child {
  justify-content: flex-end;
}

@media (max-width: 680px) {
  .office-page .office-hero h1,
  .office-page .office-detail-hero h1 {
    font-size: clamp(1.64rem, 7.4vw, 2.18rem);
    line-height: 1.18;
  }

  .office-page .office-heading h2,
  .office-page .office-close h2 {
    font-size: clamp(1.42rem, 6.2vw, 2.05rem);
    line-height: 1.2;
  }

  .office-lightbox {
    padding: 64px 12px 18px;
  }

  .office-lightbox img {
    max-height: calc(100vh - 118px);
  }

  .office-model-nav a:nth-child(2),
  .office-model-nav a:last-child {
    justify-content: flex-start;
  }
}
