/* ============================
   WhatsApp Floating Button (FAB)
   ============================ */

.wa-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  text-decoration: none;
  z-index: 9999;
  
  /* Gradiente "Vivo" de WhatsApp */
  background: linear-gradient(135deg, #25D366, #128C7E);
  
  /* Sombra con "Glow" verde para que no se vea opaco */
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  
  transition: all .3s cubic-bezier(.175, .885, .32, 1.275);
}


.wa-fab i {
  font-size: 32px;
  /* Sombra interna leve al icono para profundidad */
  filter: drop-shadow(0 2px 2px rgba(0,0,0,0.1));
}

.wa-fab:hover {
  transform: scale(1.1) translateY(-5px);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
}


.wa-fab:active{
  transform: scale(.96);
}

/* “ping” suave */
.wa-fab::before{
  content:"";
  position:absolute;
  inset:-8px;
  border-radius: 999px;
  background: rgba(37,211,102,.45);
  animation: waPulse 2.2s ease-in-out infinite;
  z-index: -1;
}

@keyframes waPulse{
  0%{ transform: scale(.78); opacity: .0; }
  30%{ opacity: .55; }
  70%{ opacity: .15; }
  100%{ transform: scale(1.20); opacity: 0; }
}

/* En móvil: un poquito más arriba para no chocar con barras */
@media (max-width: 560px){
  .wa-fab{
    right: 14px;
    bottom: 14px;
    width: 58px;
    height: 58px;
  }
  .wa-fab i{ font-size: 28px; }
}

/* ============================
   WhatsApp Toast (ULTRA PRO)
   ============================ */

.wa-toast{
  position: fixed;
  left: 18px;
  bottom: 18px;

  display: flex;
  align-items: center;
  gap: 10px;

  padding: 12px 14px;
  border-radius: 14px;

  background: rgba(11, 31, 42, 0.78);
  border: 1px solid rgba(255,255,255,0.18);

  color: #fff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  box-shadow: 0 18px 40px rgba(0,0,0,.22);
  transform: translateY(10px);
  opacity: 0;

  z-index: 9999;
  transition: .22s ease;
  max-width: min(420px, calc(100vw - 36px));
}

.wa-toast.show{
  transform: translateY(0);
  opacity: 1;
}

.wa-toast__icon{
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(37, 211, 102, 0.18);
  border: 1px solid rgba(37, 211, 102, 0.28);
}

.wa-toast__icon i{
  font-size: 18px;
}

.wa-toast__text{
  font-size: 14px;
  line-height: 1.3;
  color: rgba(255,255,255,.92);
}

/* en móvil, que no choque con el FAB */
@media (max-width: 560px){
  .wa-toast{
    left: 14px;
    bottom: 86px; /* sube para no tapar el FAB */
  }
}

/* El punto de notificación (opcional) */
.wa-fab::after {
  content: "1";
  position: absolute;
  top: 2px;
  right: 2px;
  background: #ff3b30;
  color: white;
  font-size: 11px;
  font-weight: bold;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
}
