/* Botón flotante secundario de WhatsApp. */
.whatsapp-float {
  position: fixed;
  right: clamp(1rem, 2vw, 1.5rem);
  bottom: calc(clamp(1rem, 2vw, 1.5rem) + env(safe-area-inset-bottom, 0px));
  z-index: 1100;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.58rem;
  min-height: 3.35rem;
  padding: 0.72rem 1.02rem 0.72rem 0.82rem;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 999px;
  background: #25d366;
  color: #ffffff;
  box-shadow: 0 14px 32px rgba(5, 38, 28, 0.23), 0 3px 10px rgba(5, 38, 28, 0.14);
  font-family: "Nunito Sans", "Trebuchet MS", Arial, sans-serif;
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
  -webkit-tap-highlight-color: transparent;
}

.whatsapp-float__icon {
  display: block;
  width: 1.55rem;
  height: 1.55rem;
  flex: 0 0 auto;
  fill: currentColor;
}

.whatsapp-float__label {
  white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
  .whatsapp-float:hover {
    transform: translateY(-3px);
    background: #20bd5a;
    box-shadow: 0 18px 38px rgba(5, 38, 28, 0.27), 0 5px 14px rgba(5, 38, 28, 0.16);
  }
}

.whatsapp-float:focus-visible {
  outline: 3px solid rgba(18, 82, 173, 0.30);
  outline-offset: 4px;
}

@media (max-width: 680px) {
  .whatsapp-float {
    right: 0.95rem;
    bottom: calc(0.95rem + env(safe-area-inset-bottom, 0px));
    width: 3.45rem;
    height: 3.45rem;
    min-height: 0;
    padding: 0;
    border-radius: 50%;
  }

  .whatsapp-float__icon {
    width: 1.72rem;
    height: 1.72rem;
  }

  .whatsapp-float__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float {
    transition: none;
  }
}
