/* WhatsApp Float Button Styles */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99999;
}

.whatsapp-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    animation: pulse-whatsapp 2s infinite;
    text-decoration: none;
    border: 3px solid white;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-button i {
    font-size: 30px;
    color: white;
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4), 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
    }
}

/* Tooltip */
.whatsapp-tooltip {
    position: absolute;
    right: 75px;
    bottom: 10px;
    background: white;
    color: #333;
    padding: 12px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 600;
}

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

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    right: 80px;
}

/* Badge de notificación */
.whatsapp-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4444;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    border: 2px solid white;
    animation: bounce-badge 1s infinite;
}

@keyframes bounce-badge {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-button {
        width: 55px;
        height: 55px;
    }
    
    .whatsapp-button i {
        font-size: 26px;
    }
    
    .whatsapp-tooltip {
        display: none; /* Ocultar tooltip en móvil */
    }
}

/* Social Proof Live Counter */
.social-counter {
    position: fixed;
    bottom: 110px;
    right: 30px;
    background: white;
    padding: 12px 18px;
    border-radius: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    z-index: 99998;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideInRight 0.5s ease;
    max-width: 250px;
}

@keyframes slideInRight {
    from {
        transform: translateX(300px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.social-counter-icon {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.social-counter-icon i {
    color: white;
    font-size: 16px;
}

.social-counter-text {
    flex: 1;
    font-size: 13px;
    line-height: 1.3;
}

.social-counter-text strong {
    display: block;
    color: #2c3e50;
    font-size: 14px;
}

.social-counter-text span {
    color: #7f8c8d;
    font-size: 12px;
}

.social-counter-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.social-counter-close:hover {
    color: #333;
}

@media (max-width: 768px) {
    .social-counter {
        bottom: 90px;
        right: 20px;
        max-width: calc(100% - 100px);
    }
}
