/* components.css
   Componentes reutilizables (SOLO clases, sin selectores por etiqueta)
*/

/* ===== WhatsApp floating button (Premium / Flat) =====
   - Sin esfera / sin glow
   - Sin animación constante
   - Micro-interacción solo en hover/focus
*/
.wa-float-wrap{
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  pointer-events: none;
}

.wa-float-btn{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: #25D366;
  border: 1px solid rgba(255,255,255,.18);
  text-decoration: none;
  pointer-events: auto;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 10px 24px rgba(0,0,0,.22), 0 2px 8px rgba(0,0,0,.14);
  transform: translateZ(0);
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.wa-float-ico{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.wa-float-svg{
  width: 28px;
  height: 28px;
  display: block;
  fill: #ffffff;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.18));
}

.wa-float-tooltip{
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  padding: 9px 12px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: .2px;
  white-space: nowrap;
  color: #ffffff;
  background: rgba(10,16,28,.92);
  box-shadow: 0 10px 22px rgba(0,0,0,.24);
  opacity: 0;
  pointer-events: none;
  transition: opacity .14s ease, transform .14s ease;
}

.wa-float-tooltip::after{
  content: "";
  position: absolute;
  right: -6px;
  top: 50%;
  width: 10px;
  height: 10px;
  background: rgba(10,16,28,.92);
  transform: translateY(-50%) rotate(45deg);
  border-radius: 2px;
}

.wa-float-btn:hover,
.wa-float-btn:focus-visible{
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0,0,0,.28), 0 4px 12px rgba(0,0,0,.16);
  filter: saturate(1.03);
}

.wa-float-btn:hover .wa-float-tooltip,
.wa-float-btn:focus-visible .wa-float-tooltip{
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* En touch no hay hover: ocultamos tooltip para que no “moleste” */
@media (hover: none){
  .wa-float-tooltip{ display: none; }
}

@media (max-width: 420px){
  .wa-float-wrap{ right: 14px; bottom: 14px; }
  .wa-float-btn{ width: 54px; height: 54px; }
  .wa-float-ico{ width: 26px; height: 26px; }
  .wa-float-svg{ width: 26px; height: 26px; }
  .wa-float-tooltip{ right: 64px; font-size: 12.5px; padding: 8px 11px; }
}

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