/* Botón Flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 9999;
    animation: whatsapp-bounce 2s infinite;
}

.whatsapp-float .whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.whatsapp-float .whatsapp-btn:hover {
    background: #128c7e;
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
    color: white;
    text-decoration: none;
}

.whatsapp-float .whatsapp-btn:active {
    transform: scale(0.95);
}

.whatsapp-float .whatsapp-btn i {
    font-size: 32px;
    color: white;
}

/* Tooltip del botón */
.whatsapp-float .whatsapp-tooltip {
    position: absolute;
    left: 80px;
    top: 50%;
    transform: translateY(-50%);
    background: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.whatsapp-float .whatsapp-tooltip::after {
    content: '';
    position: absolute;
    left: -5px;
    top: 50%;
    transform: translateY(-50%);
    border-right: 5px solid #333;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    left: 85px;
}

/* Animación de rebote */
@keyframes whatsapp-bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Efecto de pulso */
.whatsapp-float .whatsapp-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.3);
    animation: whatsapp-pulse 2s infinite;
}

@keyframes whatsapp-pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        left: 20px;
    }
    
    .whatsapp-float .whatsapp-btn {
        width: 60px;
        height: 60px;
    }
    
    .whatsapp-float .whatsapp-btn i {
        font-size: 28px;
    }
    
    .whatsapp-float .whatsapp-tooltip {
        display: none;
    }
}

/* Efecto de ondas al hacer clic */
.whatsapp-float .whatsapp-btn.ripple {
    animation: whatsapp-ripple 0.6s ease-out;
}

@keyframes whatsapp-ripple {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* Modo oscuro (opcional) */
@media (prefers-color-scheme: dark) {
    .whatsapp-float .whatsapp-tooltip {
        background: #555;
    }
    
    .whatsapp-float .whatsapp-tooltip::after {
        border-left-color: #555;
    }
}
