/* Botón flotante de WhatsApp — mismo aspecto que el botón del sitio anterior. */
:root {
  --wa-ico: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M3.516 3.516c4.686-4.686 12.284-4.686 16.97 0s4.686 12.283 0 16.97a12 12 0 0 1-13.754 2.299l-5.814.735a.392.392 0 0 1-.438-.44l.748-5.788A12 12 0 0 1 3.517 3.517zm3.61 17.043.3.158a9.85 9.85 0 0 0 11.534-1.758c3.843-3.843 3.843-10.074 0-13.918s-10.075-3.843-13.918 0a9.85 9.85 0 0 0-1.747 11.554l.16.303-.51 3.942a.196.196 0 0 0 .219.22zm6.534-7.003-.933 1.164a9.84 9.84 0 0 1-3.497-3.495l1.166-.933a.79.79 0 0 0 .23-.94L9.561 6.96a.79.79 0 0 0-.924-.445l-2.023.524a.797.797 0 0 0-.588.88 11.754 11.754 0 0 0 10.005 10.005.797.797 0 0 0 .88-.587l.525-2.023a.79.79 0 0 0-.445-.923L14.6 13.327a.79.79 0 0 0-.94.23z'/%3E%3C/svg%3E");
}

.wa-btn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9000;
  display: block;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366 var(--wa-ico) 50% / 60% no-repeat;
  box-shadow: 1px 6px 24px 0 rgba(7, 94, 84, 0.24);
  text-decoration: none;
  opacity: 0;
  transform: scale(0);
  transform-origin: 50% 50%;
  pointer-events: none;
  transition: transform 0.5s cubic-bezier(0.18, 0.89, 0.32, 1.28), opacity 0.2s linear, background-color 0.2s linear;
  -webkit-tap-highlight-color: transparent;
}

.wa-btn--show {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.wa-btn:hover,
.wa-btn:focus-visible {
  background-color: #128c7e;
}

.wa-btn:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 5px #128c7e, 1px 6px 24px 0 rgba(7, 94, 84, 0.24);
}

.wa-btn__tip {
  position: absolute;
  top: 14px;
  right: 76px;
  max-width: calc(100vw - 110px);
  height: 32px;
  padding: 0 14px;
  border-radius: 16px;
  background: #fff;
  color: rgba(0, 0, 0, 0.8);
  font: 16px/32px -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: translateX(8px);
  pointer-events: none;
  transition: opacity 0.2s linear, transform 0.2s ease-out;
}

.wa-btn:hover .wa-btn__tip,
.wa-btn:focus-visible .wa-btn__tip {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .wa-btn,
  .wa-btn__tip {
    transition: none;
  }
}

@media print {
  .wa-btn {
    display: none;
  }
}
