/* Contacto común: solo las cinco páginas que cargan este archivo. */
body :is(.actions, .header-action).contact-pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 263px), 1fr));
  gap: 14px;
  width: 100%;
  max-width: 540px;
}
body .contact-pair > a.button.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  height: 54px;
  min-height: 54px;
  padding: 0 12px;
  gap: 10px;
  border: 2px solid #11347A;
  border-radius: 8px;
  background: #11347A;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  text-decoration: none;
  filter: none;
}
body .contact-pair > a.contact-button.js-wa { background: #fff; color: #11347A; }
body .contact-pair > a.contact-button:hover { box-shadow: 0 3px 12px #11347a26; filter: none; }
body .contact-pair > a.contact-button:focus-visible,
body > .floating-wa:focus-visible {
  outline: 3px solid #11347A;
  outline-offset: 3px;
  box-shadow: 0 0 0 3px #fff;
}
body .contact-pair > .contact-button :is(svg, img) {
  display: block;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  object-fit: contain;
}
/* No width, tint or filter changes to the official artwork. */
.whatsapp-icon { width: 22px; height: 22px; object-fit: contain; flex-shrink: 0; }
.contact-button .contact-pending { display: none; }
.site-header .header-action.contact-pair {
  flex: 0 0 540px;
  margin: 0;
  transform: none;
}
/* Variante compacta aprobada: exclusivamente los controles de cabecera. */
body .site-header .header-action.contact-pair {
  flex-basis: 426px;
  width: 426px;
  max-width: 426px;
  grid-template-columns: repeat(2, 206px);
}
body .site-header .header-action > a.button.contact-button {
  height: 44px;
  min-height: 44px;
  padding-inline: 3px;
  gap: 6px;
}
body .site-header .header-inner { gap: 20px; }
body > .floating-wa { display: none; }
/* Remove the empty grid row left by the consultation action, keeping section sizing. */
.trade-consultation .consultation-layout { grid-template-areas: "heading media" "steps media"; }
body[data-trade=fontaneria] .trade-consultation .consultation-layout { grid-template-areas: "media heading" "media steps"; }
@media (max-width: 999px) {
  .trade-consultation .consultation-layout,
  body[data-trade=fontaneria] .trade-consultation .consultation-layout { grid-template-areas: "heading" "media" "steps"; }
}
/* Full-sized contact buttons plus the existing menu need this much space. */
@media (max-width: 1249px) {
  body .site-header .header-action { display: none; }
  body .site-header .header-inner { position: relative; }
  body .site-header .menu-toggle {
    display: grid; place-items: center;
    width: 44px; height: 44px;
    border: 0; border-radius: 9px;
    background: #11347A; color: #fff;
  }
  body .site-header #main-menu {
    display: none; position: absolute;
    left: 0; right: 0; top: 100%;
    max-height: calc(100dvh - 88px); overflow: auto;
    background: #fff; box-shadow: 0 12px 25px #11347a19;
    border: 1px solid var(--line); border-radius: 14px;
    padding: 15px; z-index: 31;
  }
  body .site-header #main-menu.open { display: block; }
  body .site-header .nav-list { display: block; }
  body .site-header .nav-list > li > a,
  body .site-header .service-menu-label > a { padding: 13px 15px; }
  body .site-header .service-menu-label { justify-content: space-between; }
  body .site-header .services-toggle { padding: 10px 16px; }
  body .site-header .submenu {
    position: static; box-shadow: none; border: none;
    background: var(--soft); margin: 0 0 10px;
    padding: 8px; border-radius: 8px;
  }
  body .site-header .submenu a { padding: 10px 15px; }
  body > .floating-wa {
    display: flex; align-items: center; justify-content: center;
    width: 60px; height: 60px;
    right: calc(18px + env(safe-area-inset-right, 0px));
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    border: 0; border-radius: 50%;
    background: #25D366;
    box-shadow: 0 3px 12px #0003;
  }
  body > .floating-wa img { width: 30px; height: 30px; object-fit: contain; }
  body > .floating-wa .floating-label { display: none; }
  /* Space after the last content lets every footer control clear the floating access. */
  body .site-footer { padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 640px) {
  .contact-pair { grid-template-columns: minmax(0, 1fr); }
}
