/* ============================================
   FLOATING CALL BUTTON
   ============================================ */

.floating-call-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4),
        0 8px 40px rgba(239, 68, 68, 0.2);
    cursor: pointer;
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    border: none;
    animation: pulse-ring 2s infinite;
}

.floating-call-btn:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 6px 30px rgba(239, 68, 68, 0.5),
        0 12px 50px rgba(239, 68, 68, 0.3);
}

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

.floating-call-btn i {
    font-size: 26px;
    color: white;
    animation: shake 3s infinite;
}

/* Pulse Ring Animation */
@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7),
            0 4px 20px rgba(239, 68, 68, 0.4);
    }

    50% {
        box-shadow: 0 0 0 15px rgba(239, 68, 68, 0),
            0 4px 20px rgba(239, 68, 68, 0.4);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0),
            0 4px 20px rgba(239, 68, 68, 0.4);
    }
}

/* Shake Animation for Icon */
@keyframes shake {

    0%,
    100% {
        transform: rotate(0deg);
    }

    10%,
    30% {
        transform: rotate(-10deg);
    }

    20%,
    40% {
        transform: rotate(10deg);
    }

    50% {
        transform: rotate(0deg);
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .floating-call-btn {
        bottom: 90px;
        /* Elevado para no chocar con mobile-sticky-bar */
        right: 20px;
        width: 56px;
        height: 56px;
    }

    .floating-call-btn i {
        font-size: 24px;
    }
}

/* Accessibility */
.floating-call-btn:focus-visible {
    outline: 3px solid #ef4444;
    outline-offset: 4px;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .floating-call-btn {
        background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    }
}