/* FLOATING ACTIONS */
.floating-actions {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.floating-actions.loaded {
    opacity: 1;
    visibility: visible;
}

.floating-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    position: relative;
    overflow: hidden;
}

.floating-btn:hover,
.floating-btn:focus {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    outline: none;
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25D366 0%, #1da851 100%);
    color: white;
}

.phone-btn {
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-700) 100%);
    color: white;
}

.back-to-top-btn {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    color: white;
}

/* Tooltip */
.floating-btn::after {
    content: attr(title);
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.floating-btn:hover::after {
    opacity: 1;
    visibility: visible;
    right: 65px;
}

/* Responsive */
@media (max-width: 768px) {
    .floating-actions {
        bottom: 100px;
        right: 20px;
    }
    
    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 1.125rem;
    }
    
    .floating-btn::after {
        font-size: 0.75rem;
        padding: 4px 8px;
        right: 60px;
    }
    
    .floating-btn:hover::after {
        right: 55px;
    }
}

@media (max-width: 480px) {
    .floating-actions {
        bottom: 90px;
        right: 15px;
        gap: 10px;
    }
    
    .floating-btn {
        width: 48px;
        height: 48px;
        font-size: 1rem;
    }
}

/* Dark mode */
[data-theme="dark"] .floating-btn::after {
    background: rgba(255, 255, 255, 0.9);
    color: #000;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .floating-btn {
        transition: none;
    }
    
    .floating-btn:hover,
    .floating-btn:focus {
        transform: none;
    }
}