/* Estilo del botón de WhatsApp */
#wafoot.whatsapp-button {
   position: fixed;
   bottom: 10px;
   right: 0.5rem; 
   width: 58px;
   height: 58px;
   background-repeat: no-repeat;
   background-position: center;
   background-image: url(../img/whatsappicon.svg);
   background-color: #25d366;
   border: none;
   border-radius: 50%;
   cursor: pointer;
   padding: 0;
   z-index: 999;
   box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
   animation-duration: 1s;
   animation-iteration-count: 1;
   animation-fill-mode: both;
   display: flex;
   align-items: center;
   justify-content: center;
}

#wafoot.whatsapp-button .txt-wa {
    background-color: #000000ae;
    padding: 5px 15px;
    border-radius: 10px;
    color: #fff;
    font-size: 11px;
    line-height: 14px;
    font-weight: 500;
    top: 0px !important;
    right: 78px;
    position: relative;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    text-align: center;
      animation: fadeWa 0.8s ease forwards; /* Animación de aparición */
      animation-delay: 3s; 
opacity: 0;    
}

@keyframes fadeWa {
  from {
    opacity: 0;
    transform: translateY(5px); /* opcional: que suba un poquito */
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


#wafoot.whatsapp-button:hover {
   background-color: #1ebe5a ;
}

/* Estilo del popup de WhatsApp */
.whatsapp-popup {
   position: fixed;
   bottom: 180px;
   right: 0.5rem; 
   background: white;
   border: 1px solid #ddd;
   box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
   z-index: 1000;
   width: 250px;
   border-radius: 8px;
   padding: 10px;
   display: none;
}

.whatsapp-popup ul {
   list-style-type: none;
   padding: 0;
   margin: 0;
}

.whatsapp-popup ul li {
   margin: 10px 0;
}

.whatsapp-popup ul li a {
   text-decoration: none;
   color:  #202020 !important;
   font-family: 'Poppins', sans-serif;
   font-size: 14px;
   font-weight: 600;
   display: block;
   padding: 5px 10px;
   border-radius: 5px;
   transition: background 0.3s ease;
}

.whatsapp-popup ul li a:hover {
   /* background: #f0f0f0d8; */
   color: #d96037 !important;
}



/* Animación de vibración del botón */
#wafoot.a {
   animation-name: shake;
}

@keyframes shake {
   10%, 90% {
       transform: translate3d(-1px, 0, 0);
   }
   20%, 80% {
       transform: translate3d(2px, 0, 0);
   }
   30%, 50%, 70% {
       transform: translate3d(-4px, 0, 0);
   }
   40%, 60% {
       transform: translate3d(4px, 0, 0);
   }
}

/* Ajuste del botón para pantallas pequeñas */
@media only screen and (min-width:320px) and (max-width:768px) {
   #wafoot.whatsapp-button {
       width: 50px;
       height: 50px;
       bottom: 60px;
       right: 20px;
   }

   .whatsapp-popup {
       bottom: 130px;
       right: 20px;
       width: 200px;
   }

       #wafoot.whatsapp-button {
        bottom: 10px;
        right: 10px;
    }


}
