/*
 * CTA flotante multilingue - MecanizadoBCN.
 * El boton es creado por el JavaScript externo.
 */

.mbcn-floating-call-container {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 999999;
    display: block !important;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    pointer-events: none;
}

.mbcn-floating-call-button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 12px 24px;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50px;
    background: linear-gradient(
        135deg,
        #f97316 0%,
        #c2410c 100%
    );
    color: #ffffff !important;
    text-decoration: none !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.38);
    transition:
        transform 0.3s ease-in-out,
        box-shadow 0.3s ease-in-out,
        filter 0.3s ease-in-out;
    animation: pulse-mbcn-call 2.5s infinite;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    box-sizing: border-box;
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
}

.mbcn-floating-call-button:hover,
.mbcn-floating-call-button:focus,
.mbcn-floating-call-button:focus-visible {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(194, 65, 12, 0.50);
    filter: brightness(1.08);
    color: #ffffff !important;
    text-decoration: none !important;
}

.mbcn-floating-call-button:focus {
    outline: none;
}

.mbcn-floating-call-button:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.90);
    outline-offset: 3px;
}

.mbcn-floating-call-button:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.mbcn-call-icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 32px;
    min-width: 32px;
    height: 32px;
    margin: 0 14px 0 0;
    padding: 0;
    color: #ffffff !important;
    line-height: 1;
    box-sizing: border-box;
    pointer-events: none;
}

.mbcn-call-icon svg {
    display: block;
    width: 28px;
    height: 28px;
    margin: 0;
    padding: 0;
    fill: currentColor;
    pointer-events: none;
}

.mbcn-call-text {
    display: inline-block;
    margin: 0;
    padding: 0;
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
    pointer-events: none;
}

@keyframes pulse-mbcn-call {
    0% {
        box-shadow:
            0 0 0 0 rgba(249, 115, 22, 0.70),
            0 8px 25px rgba(0, 0, 0, 0.38);
    }

    70% {
        box-shadow:
            0 0 0 15px rgba(249, 115, 22, 0),
            0 8px 25px rgba(0, 0, 0, 0.38);
    }

    100% {
        box-shadow:
            0 0 0 0 rgba(249, 115, 22, 0),
            0 8px 25px rgba(0, 0, 0, 0.38);
    }
}

@media (prefers-reduced-motion: reduce) {
    .mbcn-floating-call-button {
        animation: none !important;
        transition: none !important;
    }

    .mbcn-floating-call-button:hover,
    .mbcn-floating-call-button:focus,
    .mbcn-floating-call-button:focus-visible,
    .mbcn-floating-call-button:active {
        transform: none;
    }
}

@media (max-width: 768px) {
    .mbcn-floating-call-container {
        right: 20px;
        bottom: max(20px, env(safe-area-inset-bottom));
    }

    .mbcn-floating-call-button {
        width: 58px;
        min-width: 58px;
        height: 58px;
        min-height: 58px;
        padding: 14px;
        border-radius: 50%;
    }

    .mbcn-call-text {
        display: none !important;
    }

    .mbcn-call-icon {
        width: 32px;
        min-width: 32px;
        height: 32px;
        margin: 0;
    }

    .mbcn-call-icon svg {
        width: 29px;
        height: 29px;
    }
}

@media (max-width: 380px) {
    .mbcn-floating-call-container {
        right: 14px;
        bottom: max(14px, env(safe-area-inset-bottom));
    }

    .mbcn-floating-call-button {
        width: 54px;
        min-width: 54px;
        height: 54px;
        min-height: 54px;
        padding: 12px;
    }

    .mbcn-call-icon,
    .mbcn-call-icon svg {
        width: 28px;
        min-width: 28px;
        height: 28px;
    }
}

@media print {
    .mbcn-floating-call-container {
        display: none !important;
    }
}
