.page-body {
  background: var(--color-bg);
}

.page-office-detail .page-body {
  padding-top: var(--header-stack-h);
}

/* Mismo tamaño de logo que resto del sitio */
.page-office-detail .brand-logo {
  height: 48px;
  width: auto;
  max-width: min(244px, 55vw);
  object-fit: contain;
}

.page-main {
  padding: 36px var(--page-pad) 64px;
}

.page-main-inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.breadcrumbs-list {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  line-height: normal;
  color: var(--color-muted);
}

.breadcrumbs-item {
  display: inline-flex;
  align-items: center;
  height: 20px;
  gap: 6px;
}

.breadcrumbs-item:not(:first-child) {
  padding-left: 4px;
}

.breadcrumbs-sep {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 8px;
  height: 16px;
  margin-right: 0;
}

.breadcrumbs-link {
  color: var(--color-muted);
}

.breadcrumbs-current {
  color: var(--color-text);
}

.breadcrumbs-sep img {
  width: 8px;
  height: 12px;
}

.office-detail-grid {
  display: grid;
  grid-template-columns: 795px 373px;
  gap: 48px;
  align-items: start;
  width: 100%;
  max-width: 100%;
}

.office-left {
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-width: 0;
  max-width: 100%;
}

.office-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
  max-width: 100%;
}

.office-gallery {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.office-desc .p {
  margin-top: 16px;
}

.office-desc .h5 {
  margin-top: 16px;
}

.gallery-main {
  position: relative;
  height: 500px;
  border-radius: var(--radius-16);
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.gallery-main-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-main.js-parallax {
  overflow: hidden;
}

.gallery-main.js-parallax .gallery-main-img {
  position: absolute;
  left: 0;
  width: 100%;
  height: 118%;
  top: -9%;
  object-fit: cover;
  z-index: 0;
}

/* Imagen más vertical (office-main.png): mostrar entera en la galería principal */
.gallery-main--portrait {
  background: #e8ecf1;
}

.gallery-main--portrait .gallery-main-img {
  object-fit: contain;
}

.gallery-main--portrait.gallery-main.js-parallax .gallery-main-img {
  top: 0;
  height: 100%;
  object-position: center center;
}

/* Badge “Disponible” en galería: verde sólido + texto blanco */
.page-office-detail .gallery-badge.office-card-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  height: auto;
  box-shadow: none;
}

.page-office-detail .gallery-badge.office-card-badge--ok {
  background: var(--color-success);
  color: #fff;
}

.gallery-thumbs {
  display: flex;
  gap: 16px;
  max-width: 100%;
  min-width: 0;
}

.thumb {
  width: 254px;
  height: 128px;
  border-radius: 0;
  overflow: hidden;
  border: 0;
  padding: 0;
  background: transparent;
  opacity: 0.7;
  cursor: pointer;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb.js-parallax {
  position: relative;
}

.thumb.js-parallax img {
  position: absolute;
  left: 0;
  width: 100%;
  height: 118%;
  top: -9%;
  object-fit: cover;
}

/* Miniatura de foto vertical (office-main.png): encajar sin recorte fuerte */
.thumb--portrait {
  position: relative;
  background: #e8ecf1;
}

.thumb--portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

.thumb.is-active {
  opacity: 1;
  border: 2px solid var(--color-primary);
  padding: 2px;
  background: transparent;
}

.features {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  font-family: var(--font-inter);
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.5px;
  color: var(--color-muted-2);
}

.features li {
  list-style: disc;
  margin-left: 24px;
}

/* Servicios incluidos — grid compacto (no heredar el rail editorial de home) */
.office-services .home-services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px 18px;
  margin-top: 20px;
}

.office-services .home-service-cell {
  flex: unset;
  min-width: 0;
  scroll-snap-align: unset;
}

.office-services .home-service-card {
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 180px;
  padding: 20px 14px 18px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(19, 19, 19, 0.06);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.office-services .home-service-cell:nth-child(even) .home-service-card {
  background: #fff;
  border-color: rgba(19, 19, 19, 0.06);
}

.office-services .home-service-card:hover {
  transform: translateY(-3px);
  border-color: rgba(14, 91, 163, 0.18);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

.office-services .home-service-icon {
  width: 52px;
  height: 52px;
  opacity: 1;
}

.office-services .home-service-cap {
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: #131313;
  letter-spacing: 0.2px;
  text-align: center;
}

.price-card.card--padded {
  padding-top: 24px;
}

.price-card .h3 {
  margin: 0;
}

.price-card-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
}

.price-divider {
  margin: 16px 0;
  height: 1px;
  background: var(--color-border);
}

.price-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-currency {
  font-family: var(--font-inter);
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: -0.5px;
  color: var(--color-muted);
}

.price-value {
  font-size: 45px;
  line-height: 52px;
  font-weight: 600;
  color: var(--color-primary);
}

.price-period {
  font-size: 16px;
  line-height: 26px;
  letter-spacing: 0.5px;
  color: var(--color-muted);
}

.price-notes {
  margin: 8px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
  color: var(--color-muted);
}

.page-office-detail .contact-card .contact-page-form {
  margin-top: 16px;
}

.page-office-detail .contact-card .contact-submit {
  width: 100%;
  align-self: stretch;
}

/* WhatsApp CTA — hereda .btn--success; solo layout del inner */
.page-office-detail .office-whatsapp-cta .office-whatsapp-cta-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}

.page-office-detail .office-whatsapp-cta.btn--full .office-whatsapp-cta-inner {
  width: 100%;
}

.page-office-detail .office-whatsapp-cta:focus-visible {
  outline: 2px solid rgba(22, 163, 74, 0.45);
  outline-offset: 2px;
}

/* Barra fija de precio (solo layout apilado): visible hasta que el bloque real entra en vista */
.price-card-pinned {
  display: none;
  box-sizing: border-box;
  position: fixed;
  top: var(--header-stack-h);
  left: 0;
  right: 0;
  z-index: 28;
  padding: 10px 0;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.price-card-pinned-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
}

.price-card-pinned-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.price-card-pinned-title {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text);
}

.price-card-pinned-meta {
  font-family: var(--font-inter);
  font-size: 12px;
  line-height: 1.2;
  color: var(--color-muted);
}

.price-card-pinned-price {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 6px;
}

.price-card-pinned-price .price-currency {
  font-size: 13px;
  line-height: 18px;
}

.price-card-pinned-price .price-value {
  font-size: 28px;
  line-height: 1;
}

.price-card-pinned-price .price-period {
  font-size: 14px;
  line-height: 22px;
}

.price-card-pinned-cta {
  height: 44px;
  padding: 0 14px;
  font-size: 14px;
  flex-shrink: 0;
}

.price-card-pinned-cta .btn-icon {
  width: 18px;
  height: 18px;
}

@media (max-width: 1279px) {
  .price-card-pinned {
    display: block;
  }

  .page-office-detail[data-price-pinned="on"] .page-main {
    padding-top: calc(var(--header-stack-h) + 56px);
  }

  .office-detail-grid {
    grid-template-columns: 1fr;
  }

  .office-right {
    order: 2;
  }

  .office-left {
    order: 1;
  }

  .gallery-thumbs {
    flex-wrap: wrap;
  }

  .thumb {
    width: calc(50% - 8px);
  }

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

  .office-services .home-services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .page-office-detail .brand-logo {
    height: 44px;
  }

  .page-main {
    padding: 32px 0 48px;
  }

  .page-office-detail[data-price-pinned="on"] .page-main {
    padding-top: calc(var(--header-stack-h) + 52px);
  }

  .price-card-pinned-inner {
    gap: 8px 12px;
  }

  .price-card-pinned-price .price-value {
    font-size: 24px;
  }

  .price-card-pinned-cta .office-whatsapp-cta-text {
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .page-main-inner {
    gap: 24px;
  }

  .office-detail-grid {
    gap: 24px;
  }

  .breadcrumbs-list {
    flex-wrap: wrap;
    gap: 8px;
  }

  .gallery-main {
    height: 320px;
  }

  .gallery-thumbs {
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    gap: 12px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }

  .thumb {
    width: 180px;
    flex: 0 0 auto;
  }

  .card--padded {
    padding: 24px;
  }

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

  .price-row {
    flex-wrap: wrap;
    row-gap: 0;
  }

  .page-office-detail .office-services .home-services-grid {
    grid-template-columns: 1fr;
  }
}

