/* Contacto: una cabecera breve, oficinas en paralelo y asesores a escala de tarjeta. */
.contact-page .contact-top {
  min-height: 0;
  margin-right: 40px;
  padding: 112px 40px 40px;
  border-radius: 0 0 48px 0;
}
.contact-page .contact-top h1 {
  font-size: clamp(28px,calc(20px + 2vw),40px);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -.02em;
}
.contact-page .contact-top h1,
.contact-page .contact-top > p { left: 20px; }
.contact-page .contact-top p {
  max-width: 920px;
  margin-top: 18px;
  font-size: 15px;
  line-height: 1.6;
  font-weight: 400;
}
.contact-page .regions {
  height: 76px;
  padding: 0 40px;
  align-items: center;
}
.contact-page .regions p {
  font-size: 18px;
  line-height: 1.4;
  font-weight: 500;
}
.contact-page .regions .region-item::after { margin-inline: 14px; }
.contact-page .offices {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 20px;
  padding-block: 24px 40px;
}
.contact-page .offices > h2 {
  grid-column: 1 / -1;
  margin: 0 0 2px;
  font-size: 23px;
  line-height: 1.3;
  font-weight: 500;
}
.contact-page .office-card {
  grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr);
  height: 240px;
  border-radius: 22px;
}
.contact-page .office-card + .office-card { margin-top: 0; }
.contact-page .office-info { padding: 24px; }
.contact-page .office-info h3 {
  font-size: 13px;
  line-height: 1.4;
  font-weight: 500;
}
.contact-page .office-info p { font-size: 13px; line-height: 1.6; }
.contact-page .office-info h3 + p {
  height: auto;
  margin-top: 14px;
  padding-top: 0;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 400;
}
.contact-page .office-info .eyebrow {
  margin-top: 16px;
  padding-bottom: 0;
  font-size: 11px;
  line-height: 1.5;
  font-weight: 500;
}
.contact-page .office-info .eyebrow + p { margin-top: 4px; }
.contact-page .office-info a { font-size: 13px; line-height: 1.6; }
.contact-page .map-card { height: 100%; aspect-ratio: auto; }
.contact-page .map-card figure { height: 100%; }
.contact-page .map-card img,
.contact-page .office-card + .office-card .map-card img {
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  object-position: center;
}
.contact-page .team { padding: 40px 0 48px; border-radius: 40px 0 40px 0; }
.contact-page .team h2 {
  margin-bottom: 14px;
  font-size: 27px;
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: -.015em;
}
.contact-page .team > .wrap > p { max-width: 940px; font-size: 14px; line-height: 1.65; }
.contact-page .team-grid {
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 28px 24px;
  margin-top: 28px;
  align-items: stretch;
}
.contact-page .person {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: none;
  min-width: 0;
}
.contact-page .person figure {
  flex: none;
  width: 100%;
  aspect-ratio: 4/3;
  max-height: 210px;
  border-radius: 16px;
}
.contact-page .person:nth-child(n) img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  object-position: center top;
}
.contact-page .person figure::after { opacity: .2; }
.contact-page .person h3 {
  margin: 14px 0 4px;
  font-size: 17px;
  line-height: 1.3;
  font-weight: 500;
}
.contact-page .person p { min-height: 2.8em; font-size: 13px; line-height: 1.4; }
.contact-page .person .wp-block-buttons { margin-top: auto; padding-top: 12px; }
.contact-page .person .wp-block-button__link {
  width: auto;
  min-width: 0;
  height: 44px;
  min-height: 44px;
  padding: 10px 20px;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 500;
}
@media (max-width: 1023px) {
  .contact-page .office-card { grid-template-columns: minmax(0,1.4fr) minmax(0,.6fr); }
  .contact-page .office-info { padding: 20px; }
  .contact-page .team-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .contact-page .person figure { max-height: 210px; }
}
@media (max-width: 767px) {
  .contact-page .contact-top {
    margin-right: 12px;
    padding: 102px 20px 32px;
    border-radius: 0 0 36px 0;
  }
  .contact-page .contact-top h1,
  .contact-page .contact-top > p { left: 6px; }
  .contact-page .contact-top p { margin-top: 16px; font-size: 14px; }
  .contact-page .regions { height: 72px; padding-inline: 20px; }
  .contact-page .regions p { font-size: 16px; }
  .contact-page .regions .region-item::after { margin-inline: 12px; }
  .contact-page .offices { grid-template-columns: minmax(0,1fr); gap: 16px; padding-block: 20px 32px; }
  .contact-page .offices > h2 { margin-bottom: 0; font-size: 22px; }
  .contact-page .office-card { height: 230px; border-radius: 20px; }
  .contact-page .office-info { padding: 20px; }
  .contact-page .team { padding-block: 32px 40px; border-radius: 32px 0 32px 0; }
  .contact-page .team h2 { font-size: 24px; }
  .contact-page .team-grid { gap: 24px 16px; margin-top: 24px; }
  .contact-page .person h3 { font-size: 16px; margin-top: 12px; }
  .contact-page .person .wp-block-buttons,
  .contact-page .person .wp-block-button { width: 100%; }
  .contact-page .person .wp-block-button__link { width: 100%; padding-inline: 12px; }
}
@media (max-width: 389px) {
  .contact-page .office-info { padding: 16px; }
  .contact-page .office-info h3 { font-size: 12px; }
  .contact-page .office-info h3 + p { font-size: 13px; }
  .contact-page .office-info a { font-size: 12px; }
  .contact-page .team-grid { grid-template-columns: minmax(0,1fr); }
  .contact-page .person { max-width: 230px; justify-self: center; }
}
