/* Estilos para el botón flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    right: 25px;
    bottom: 85px; /* Ajustado para no interferir con el botón de subir */
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.whatsapp-float:hover {
    transform: translateY(-8px) scale(1.05);
}

.whatsapp-button {
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
    animation: pulseWhatsApp 2s infinite;
    text-decoration: none;
}

.whatsapp-button:hover {
    background: #22c15e;
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.whatsapp-button i {
    font-size: 32px;
    color: white;
}

.whatsapp-text {
    background: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    margin-right: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    position: relative;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.whatsapp-text::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border-left: 8px solid white;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}

.whatsapp-float:hover .whatsapp-text {
    opacity: 1;
    transform: translateX(0);
}

@keyframes pulseWhatsApp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Ajustes responsive */
@media (max-width: 768px) {
    .whatsapp-float {
        right: 15px;
        bottom: 75px; /* Ajustado para móviles */
    }
    
    .whatsapp-button {
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-button i {
        font-size: 28px;
    }
}

/* Ajuste para evitar superposición con otros elementos flotantes */
body {
    margin-bottom: 0;
}
