/* GH · Botón flotante de WhatsApp (módulo ghwhatsapp)
   Fijo abajo-derecha en todas las páginas. El globo del saludo se abre al
   pasar el ratón / enfocar el botón, o con .is-open (ghwhatsapp.js). */

.gh-wa {
  position: fixed;
  bottom: 28px;
  right: 40px;
  z-index: var(--gh-z-sticky);
  display: flex;
  align-items: center;
  gap: 14px;
}

.gh-wa__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #25D366;            /* verde oficial WhatsApp */
  color: #fff;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.42), 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.15s var(--gh-ease-out), box-shadow 0.15s var(--gh-ease-out);
}
.gh-wa__btn:hover,
.gh-wa__btn:focus-visible {
  color: #fff;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.5), 0 2px 6px rgba(0, 0, 0, 0.15);
}
.gh-wa__btn svg { width: 34px; height: 34px; display: block; }

/* Globo del saludo · a la izquierda del botón */
.gh-wa__bubble {
  position: relative;
  max-width: 260px;
  margin: 0;
  padding: 12px 16px;
  border-radius: var(--gh-radius-lg);
  background: #fff;
  color: var(--gh-grey-700);
  font-family: var(--gh-font-body);
  font-size: var(--gh-text-sm);
  line-height: 1.4;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateX(8px);
  transition: opacity 0.2s var(--gh-ease-out), transform 0.2s var(--gh-ease-out), visibility 0.2s;
  pointer-events: none;
}
.gh-wa__bubble::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -6px;
  width: 12px;
  height: 12px;
  background: #fff;
  transform: translateY(-50%) rotate(45deg);
}
.gh-wa:hover .gh-wa__bubble,
.gh-wa:focus-within .gh-wa__bubble,
.gh-wa.is-open .gh-wa__bubble {
  opacity: 1;
  visibility: visible;
  transform: none;
}
