/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    animation: float 3s ease-in-out infinite;
}

.whatsapp-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    text-decoration: none;
    color: white;
    font-size: 30px;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.whatsapp-link:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.7);
    width: 220px;
    border-radius: 50px;
    justify-content: flex-start;
    padding: 0 20px;
}

.whatsapp-link:hover .whatsapp-number {
    display: inline;
    opacity: 1;
    margin-left: 15px;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
}

.whatsapp-link:hover .whatsapp-tooltip {
    opacity: 0;
    transform: translateY(10px);
}

.whatsapp-number {
    display: none;
    opacity: 0;
    transition: all 0.3s ease;
    color: white;
    font-family: var(--default-font, sans-serif);
}

.whatsapp-tooltip {
    position: absolute;
    bottom: 70px;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 15px;
    border-radius: 10px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
    font-family: var(--default-font, sans-serif);
}

.whatsapp-link:hover .whatsapp-tooltip {
    opacity: 1;
    transform: translateY(0);
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 20px;
    border-width: 6px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.8) transparent transparent transparent;
}

/* Animación de flotación */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Efecto de pulso */
.whatsapp-link::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #25D366;
    animation: pulse 2s infinite;
    z-index: -1;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-link {
        width: 55px;
        height: 55px;
        font-size: 26px;
    }
    
    .whatsapp-link:hover {
        width: 200px;
    }
    
    .whatsapp-link:hover .whatsapp-number {
        font-size: 14px;
        margin-left: 12px;
    }
    
    .whatsapp-tooltip {
        font-size: 12px;
        padding: 6px 12px;
        bottom: 65px;
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
    }
    
    .whatsapp-link {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .whatsapp-link:hover {
        width: 180px;
    }
    
    .whatsapp-link:hover .whatsapp-number {
        font-size: 13px;
        margin-left: 10px;
    }
}