/* =============================================
   BOTÓN FLOTANTE WHATSAPP
   ============================================= */

@keyframes gota {
    0%   { transform: translateY(-50%) scale(1);   opacity: 0.7; }
    70%  { transform: translateY(-50%) scale(1.5); opacity: 0;   }
    100% { transform: translateY(-50%) scale(1.5); opacity: 0;   }
}

/* --- Contenedor principal --- */
#btn-chat-whatsapp {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    text-decoration: none !important;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    height: 70px;
    position: fixed;
    z-index: 900;
    right: 20px;
    bottom: 20px;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    border-color: #d7d7d7;
}

@media (min-width: 767px) {
    #btn-chat-whatsapp {
        right: 20px;
    }
}

/* --- Bocadillo de mensaje --- */
#btn-chat-whatsapp .message {
    display: block;
    position: relative;
    z-index: 5;
}
#btn-chat-whatsapp .message .box {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    background-color: #00bb2d;
    padding: .5em 1em;
    border-radius: 3px;
    position: relative;
    width: 200px;
    height: 50px;
    margin-top: 5px;
    margin-right: 30px;
}

/* Flecha del bocadillo apuntando al ícono */
#btn-chat-whatsapp .message .box::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    border-width: 8px 0 8px 8px;
    border-style: solid;
    border-color: transparent transparent transparent #00bb2d;
}

#btn-chat-whatsapp .message .box .text {
    margin: 0;
    font-size: 14px;
    font-family: AmsiPro-Regular, sans-serif;
    color: #fff;
}

/* --- Ícono principal --- */
#btn-chat-whatsapp .icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #00bb2d;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    cursor: pointer;
    position: relative;
    z-index: 10;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

@media (min-width: 767px) {
    #btn-chat-whatsapp .icon {
        width: 60px;
        height: 60px;
    }
}

#btn-chat-whatsapp .icon img {
    height: 30px;
    width: 30px;
    object-fit: contain;
}

/* --- Ondas de pulso --- */
#btn-chat-whatsapp .gota1,
#btn-chat-whatsapp .gota2 {
    border-radius: 50%;
    background-color: rgba(0, 187, 45, 0.45);
    -webkit-transform: translateY(-50%) scale(1);
    -ms-transform: translateY(-50%) scale(1);
    transform: translateY(-50%) scale(1);
    position: absolute;
    top: 50%;
    z-index: 3;
    -webkit-animation: gota 1.8s ease-out infinite;
    animation: gota 1.8s ease-out infinite;
}

#btn-chat-whatsapp .gota1 {
    width: 56px;
    height: 56px;
    right: -3px;
    -webkit-animation-delay: 0s;
    animation-delay: 0s;
}

#btn-chat-whatsapp .gota2 {
    width: 72px;
    height: 72px;
    right: -11px;
    -webkit-animation-delay: 0.4s;
    animation-delay: 0.4s;
}

@media (min-width: 767px) {
    #btn-chat-whatsapp .gota1 {
        width: 70px;
        height: 70px;
        right: -5px;
    }
    #btn-chat-whatsapp .gota2 {
        width: 86px;
        height: 86px;
        right: -13px;
    }
}