/* September 2026: targeted refinements for service pages and FAQ only. */
.ps-format-selector .ps-compact-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: 12px;
}

.ps-format-selector .ps-compact-nav .btn {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 52px;
  padding: 12px 14px;
  justify-content: center;
  text-align: center;
  white-space: normal;
}

.ps-hub-section[aria-labelledby="historias-editoriales"] .ps-hub-heading {
  max-width: 760px;
  margin: 0 auto 24px;
  text-align: center;
}

.ps-hub-section[aria-labelledby="historias-editoriales"] .ps-hub-heading p {
  text-wrap: pretty;
}

.ps-hub-section.ps-hub-formats {
  margin-top: 32px;
  padding: 26px;
  background: #faf7f2;
  border: 1px solid rgba(186, 154, 112, 0.22);
  border-radius: 18px;
}

.ps-hub-formats .ps-hub-heading {
  max-width: none;
  margin-bottom: 18px;
}

.ps-hub-formats .ps-compact-nav {
  margin-top: 0;
}

.ps-hub-formats + .ps-inline-cta {
  margin-top: 20px;
  padding: 24px 26px;
}

@media (max-width: 991px) {
  .ps-format-selector .ps-compact-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .ps-hub-section.ps-hub-formats,
  .ps-hub-formats + .ps-inline-cta {
    padding: 22px;
  }
}

@media (max-width: 479px) {
  .ps-format-selector .ps-compact-nav {
    grid-template-columns: 1fr;
  }
}
