/* Shared contact button on the four public pages. */
.whatsapp-float {
  position: fixed;
  right: max(24px, env(safe-area-inset-right));
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 100000;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border: 0;
  padding: 0;
  margin: 0;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .3);
  --whatsapp-pulse-scale: 1.45;
  text-decoration: none;
  transition: transform .2s ease, background-color .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.whatsapp-float::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: #25d366;
  opacity: 0;
  pointer-events: none;
  animation: whatsapp-pulse 1.8s ease-out infinite;
}
@keyframes whatsapp-pulse {
  0% { transform: scale(1); opacity: .35; }
  80%, 100% { transform: scale(var(--whatsapp-pulse-scale)); opacity: 0; }
}
.whatsapp-float img { display: block; width: 36px; height: 36px; object-fit: contain; }
.whatsapp-float:hover { background: #20bd5a; transform: scale(1.06); --whatsapp-pulse-scale: 1.7; }
.whatsapp-float:focus-visible { outline: 3px solid #fff; outline-offset: 8px; }
/* Keep the existing return-to-top control above the contact button. */
.impulse-arrow-up { right: 24px !important; bottom: calc(108px + env(safe-area-inset-bottom, 0px)) !important; width: 64px !important; height: 64px !important; }
@media (max-width: 767px) {
  .whatsapp-float { width: 60px; height: 60px; right: max(18px, env(safe-area-inset-right)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }
  .whatsapp-float img { width: 34px; height: 34px; }
  .impulse-arrow-up { right: 18px !important; bottom: calc(98px + env(safe-area-inset-bottom, 0px)) !important; width: 60px !important; height: 60px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .whatsapp-float { transition: none; }
  .whatsapp-float::before { animation: none; }
}
