/* Acceso persistente, sin pulsos ni avisos automáticos. */
.whatsapp-widget {
  position: fixed;
  right: max(24px, env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 90;
}
.whatsapp-float {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #128c4e;
  color: #fff;
  border: 1px solid #ffffffb3;
  box-shadow: 0 6px 22px -7px #083c2c70, inset 0 1px 1px #ffffff38;
  transition: transform 200ms ease, background 200ms ease, box-shadow 200ms ease;
}
.whatsapp-float svg { width: 29px; height: 29px; }
.whatsapp-float:focus-visible { outline: 3px solid #07516a; outline-offset: 4px; }
.whatsapp-float:active { transform: scale(.95); }
.whatsapp-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  padding: 9px 13px;
  background: #fff;
  color: #164b60;
  border: 1px solid #d9e7eb;
  border-radius: 10px;
  box-shadow: 0 5px 20px -10px #123b4b55;
  font-size: 13px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(4px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}
.whatsapp-float:focus-visible .whatsapp-tooltip { opacity: 1; transform: none; }
@media (hover: hover) and (pointer: fine) {
  .whatsapp-float:hover { transform: translateY(-3px); background: #0c7841; box-shadow: 0 10px 26px -9px #083c2c80; }
  .whatsapp-float:hover .whatsapp-tooltip { opacity: 1; transform: none; }
}
.whatsapp-notice {
  position: absolute;
  right: 0;
  bottom: 72px;
  width: min(280px, calc(100vw - 40px));
  padding: 20px;
  border: 1px solid #d7e6ea;
  border-radius: 18px;
  background: #fff;
  color: #164b60;
  box-shadow: 0 12px 38px -18px #123b4b55;
}
.whatsapp-notice[hidden] { display: none; }
.whatsapp-notice p { font-size: 16px; font-weight: 500; margin-bottom: 8px; }
.whatsapp-notice span { display: block; font-size: 14px; line-height: 1.6; color: #52656e; }
.whatsapp-notice a { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
.whatsapp-widget:has(.whatsapp-notice:not([hidden])) .whatsapp-tooltip { display: none; }
@media (max-width: 600px) {
  .whatsapp-widget { right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); }
  .whatsapp-float { width: 52px; height: 52px; }
  .whatsapp-float svg { width: 27px; height: 27px; }
  .whatsapp-tooltip { display: none; }
  .footer { padding-bottom: 90px; }
}
@media (prefers-reduced-motion: reduce) {
  .whatsapp-float, .whatsapp-tooltip { transition: none; }
  .whatsapp-float:hover, .whatsapp-float:active { transform: none; }
}
