/* Evita quebra horizontal no site */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Responsividade para imagens */
img {
  max-width: 100%;
  height: auto;
}

/* ==========================
   Botão Flutuante do WhatsApp
   ========================== */
.whatsapp-float {
  position: fixed;                        /* Fixa o botão na tela */
  bottom: 20px;                           /* Distância inferior */
  right: 20px;                            /* Distância direita */
  width: 65px;
  height: 65px;
  background: linear-gradient(135deg, #25d366, #128c7e); /* Cores do WhatsApp */
  color: white;
  border-radius: 50%;                    /* Formato circular */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  text-decoration: none;
  z-index: 999;                          /* Sempre por cima */
  box-shadow: 0 0 0 rgba(0, 0, 0, 0.2);
  animation: bounceIn 0.6s ease-out, pulse 2s infinite, floatX 4s ease-in-out infinite;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Efeito hover no botão */
.whatsapp-float:hover {
  transform: scale(1.15);                               /* Aumenta tamanho */
  box-shadow: 0 0 15px rgba(37, 211, 102, 0.6);         /* Brilho verde */
  animation: none;                                     /* Interrompe animações */
}

/* Ícone Font Awesome do botão */
.whatsapp-float i {
  line-height: 1;
}

/* Badge de notificação no botão */
.whatsapp-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: red;
  color: white;
  width: 20px;
  height: 20px;
  font-size: 12px;
  border-radius: 50%;              /* Circular */
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  box-shadow: 0 0 5px rgba(0,0,0,0.4);  /* Pequena sombra */
}

/* Animação de entrada com bounce */
@keyframes bounceIn {
  0% {
    transform: scale(0.5) translateY(100px);
    opacity: 0;
  }
  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

/* Animação pulsante do botão */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Animação de oscilação lateral (floating) */
@keyframes floatX {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}

/* ==========================
   Responsividade para celulares
   ========================== */
@media (max-width: 576px) {
  .whatsapp-float {
    width: 55px;
    height: 55px;
    font-size: 26px;
    bottom: 15px;
    right: 15px;
  }

  .whatsapp-badge {
    width: 18px;
    height: 18px;
    font-size: 10px;
    top: -4px;
    right: -4px;
  }
}
