/* css/soporte/boton_flotante.css
   Botón flotante de soporte (chat) para usuarios con sesión activa
   en la landing principal (index.php).
*/

.soporte-boton-flotante {
    position: fixed;
    right: 22px;
    bottom: 24px;
    z-index: 1080;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6f91 0%, #ff9671 100%);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(255, 111, 145, 0.45), 0 4px 10px rgba(0, 0, 0, 0.18);
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    animation: soporteBotonFlotantePulse 2.4s ease-in-out infinite;
}

.soporte-boton-flotante:hover,
.soporte-boton-flotante:focus {
    color: #ffffff;
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 14px 30px rgba(255, 111, 145, 0.55), 0 6px 14px rgba(0, 0, 0, 0.22);
    text-decoration: none;
    outline: none;
    animation: none;
}

.soporte-boton-flotante i {
    font-size: 24px;
    line-height: 1;
}

.soporte-boton-flotante .soporte-boton-flotante-tooltip {
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%) translateX(8px);
    background: #2c2c2c;
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    padding: 8px 12px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.soporte-boton-flotante .soporte-boton-flotante-tooltip::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -5px;
    transform: translateY(-50%);
    border-width: 5px 0 5px 6px;
    border-style: solid;
    border-color: transparent transparent transparent #2c2c2c;
}

.soporte-boton-flotante:hover .soporte-boton-flotante-tooltip,
.soporte-boton-flotante:focus .soporte-boton-flotante-tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

@keyframes soporteBotonFlotantePulse {
    0% {
        box-shadow: 0 10px 24px rgba(255, 111, 145, 0.45), 0 4px 10px rgba(0, 0, 0, 0.18), 0 0 0 0 rgba(255, 111, 145, 0.55);
    }
    70% {
        box-shadow: 0 10px 24px rgba(255, 111, 145, 0.45), 0 4px 10px rgba(0, 0, 0, 0.18), 0 0 0 18px rgba(255, 111, 145, 0);
    }
    100% {
        box-shadow: 0 10px 24px rgba(255, 111, 145, 0.45), 0 4px 10px rgba(0, 0, 0, 0.18), 0 0 0 0 rgba(255, 111, 145, 0);
    }
}

@media (max-width: 576px) {
    .soporte-boton-flotante {
        right: 16px;
        bottom: 18px;
        width: 54px;
        height: 54px;
    }

    .soporte-boton-flotante i {
        font-size: 22px;
    }

    .soporte-boton-flotante .soporte-boton-flotante-tooltip {
        display: none;
    }
}
