/* ===================================
   FLOATING CONTACT BUTTONS
   =================================== */

.floating-contact-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.floating-btn {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible;
    cursor: pointer;
}

.floating-btn svg {
    width: 28px;
    height: 28px;
    transition: transform 0.3s ease;
}

/* WhatsApp Button */
.floating-btn-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    animation: pulse-whatsapp 2s infinite;
}

.floating-btn-whatsapp:hover {
    background: linear-gradient(135deg, #128C7E 0%, #075E54 100%);
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
}

/* Phone Button */
.floating-btn-phone {
    background: linear-gradient(135deg, #4285F4 0%, #1967D2 100%);
    animation: pulse-phone 2s infinite 1s;
}

.floating-btn-phone:hover {
    background: linear-gradient(135deg, #1967D2 0%, #0D47A1 100%);
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 8px 30px rgba(66, 133, 244, 0.4);
}

/* Tooltip */
.floating-btn-tooltip {
    position: absolute;
    right: 75px;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s ease;
    pointer-events: none;
    backdrop-filter: blur(10px);
}

.floating-btn-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid rgba(0, 0, 0, 0.85);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

.floating-btn:hover .floating-btn-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.floating-btn:hover svg {
    transform: scale(1.1) rotate(5deg);
}

/* Pulse Animations */
@keyframes pulse-whatsapp {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    50% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), 0 0 0 15px rgba(37, 211, 102, 0);
    }
}

@keyframes pulse-phone {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), 0 0 0 0 rgba(66, 133, 244, 0.7);
    }
    50% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), 0 0 0 15px rgba(66, 133, 244, 0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .floating-contact-buttons {
        bottom: 20px;
        right: 20px;
        gap: 12px;
    }
    
    .floating-btn {
        width: 55px;
        height: 55px;
    }
    
    .floating-btn svg {
        width: 26px;
        height: 26px;
    }
    
    /* Hide tooltip on mobile, show on tap instead */
    .floating-btn-tooltip {
        display: none;
    }
}

@media (max-width: 480px) {
    .floating-contact-buttons {
        bottom: 15px;
        right: 15px;
        gap: 10px;
    }
    
    .floating-btn {
        width: 50px;
        height: 50px;
    }
    
    .floating-btn svg {
        width: 24px;
        height: 24px;
    }
}

/* Accessibility */
.floating-btn:focus {
    outline: 3px solid rgba(255, 255, 255, 0.5);
    outline-offset: 3px;
}

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

/* Print - Hide floating buttons when printing */
@media print {
    .floating-contact-buttons {
        display: none !important;
    }
}
