/* ===== CONTENEDOR ===== */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999;
    font-family: sans-serif;
}

/* ===== MENSAJE (VENTAS) ===== */
.wa-message {
    position: absolute;
    bottom: 85px;
    right: 0;
    background: #ffffff;
    color: #1f2d3d;
    padding: 14px 16px;
    border-radius: 15px;
    font-size: 13px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    opacity: 0;
    transform: translateY(10px);
    transition: 0.4s ease;
    width: 230px;
    line-height: 1.4;
}

/* flecha */
.wa-message::after {
    content: "";
    position: absolute;
    bottom: -6px;
    right: 20px;
    border-top: 6px solid #fff;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
}

/* mostrar */
.whatsapp-float.show .wa-message {
    opacity: 1;
    transform: translateY(0);
}

/* ===== BOTÓN ===== */
.wa-button {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25d366, #128c7e);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: 0.3s ease;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);

    animation: floatBtn 3s ease-in-out infinite;
}

/* icono */
.wa-button img {
    width: 40px;
    height: 40px;
    z-index: 3;
}

/* hover */
.wa-button:hover {
    transform: scale(1.15);
    box-shadow: 0 20px 50px rgba(37, 211, 102, 0.7);
}

/* ===== EFECTO PING ===== */
.wa-ping {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.6);
    animation: ping 2s infinite;
}

@keyframes ping {
    0% { transform: scale(1); opacity: 0.7; }
    80% { transform: scale(1.8); opacity: 0; }
    100% { opacity: 0; }
}

/* ===== EFECTO ONDA ===== */
.wa-ripple {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(37, 211, 102, 0.4);
    animation: ripple 2.5s infinite;
}

@keyframes ripple {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(2); opacity: 0; }
}

/* ===== EFECTO FLOTANTE ===== */
@keyframes floatBtn {
    0% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
    100% { transform: translateY(0); }
}

/* ===== TYPING (PSICOLOGÍA) ===== */
.wa-typing {
    display: flex;
    gap: 4px;
    margin-top: 6px;
}

.wa-typing span {
    width: 6px;
    height: 6px;
    background: #25d366;
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.wa-typing span:nth-child(2) {
    animation-delay: 0.2s;
}

.wa-typing span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 80%, 100% { transform: scale(0.5); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}