/* Botón flotante WhatsApp — Cita previa */
.eda-whatsapp-fab {
  position: fixed;
  right: clamp(1rem, 3vw, 1.5rem);
  bottom: clamp(1rem, 3vw, 1.5rem);
  z-index: 9000;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 1.1rem 0.7rem 0.85rem;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  font-family: var(--eda-font-body, "Merriweather", Georgia, serif);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  box-shadow:
    0 4px 14px rgba(37, 211, 102, 0.45),
    0 2px 6px rgba(0, 0, 0, 0.15);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.eda-whatsapp-fab:hover {
  background: #20bd5a;
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow:
    0 8px 22px rgba(37, 211, 102, 0.5),
    0 4px 10px rgba(0, 0, 0, 0.12);
}

.eda-whatsapp-fab:focus-visible {
  outline: 2px solid var(--eda-navy, #004365);
  outline-offset: 3px;
}

.eda-whatsapp-fab__icon {
  display: flex;
  flex-shrink: 0;
  width: 1.65rem;
  height: 1.65rem;
}

.eda-whatsapp-fab__icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: currentColor;
}

.eda-whatsapp-fab__label {
  white-space: nowrap;
}

@media (max-width: 480px) {
  .eda-whatsapp-fab {
    padding: 0.75rem;
    border-radius: 50%;
    width: 3.35rem;
    height: 3.35rem;
    justify-content: center;
  }

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

  .eda-whatsapp-fab__icon {
    width: 1.85rem;
    height: 1.85rem;
  }
}

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

  .eda-whatsapp-fab:hover {
    transform: none;
  }
}
