
  .whatsapp-contact {
    position: fixed;
    right: max(1.25rem, env(safe-area-inset-right));
    bottom: max(1.25rem, env(safe-area-inset-bottom));
    z-index: 40;
    display: inline-flex;
    width: 3.5rem;
    height: 3.5rem;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    border-radius: 50%;
    background: #128c4b;
    color: white;
    box-shadow: 0 4px 18px rgb(8 40 74 / 0.2);
  }

  .whatsapp-contact:hover {
    background: #0c703c;
  }

  .whatsapp-contact:focus-visible {
    outline: 3px solid var(--color-brand-deep);
    outline-offset: 4px;
    border-radius: 50%;
  }

  @media (min-width: 64rem) {
    .whatsapp-contact {
      right: max(1.75rem, env(safe-area-inset-right));
      bottom: max(1.75rem, env(safe-area-inset-bottom));
    }
  }

  @media print {
    .whatsapp-contact {
      display: none;
    }
  }

/* Mantener libres los enlaces del pie y la navegación móvil existente. */
@media (max-width: 39.999rem) {
  body > footer > div:last-child > .container-site { padding-bottom: 6rem; }
}
@media (min-width: 40rem) {
  body > footer > div:last-child > .container-site { padding-right: 7rem; }
}
body:has(#nav-toggle[aria-expanded="true"]) .whatsapp-contact { visibility: hidden; }
