/* Estilo base del botón flotante */
.floating-messenger-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: var(--special-30);
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    animation: pop-in 0.5s ease-out, idle 5s infinite alternate ease-in-out;
    z-index: 1000;
}

/* Animación de aparición */
@keyframes pop-in {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}

/* Animación de movimiento idle */
@keyframes idle {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(5px);
    }
}

/* Icono de Messenger */
.messenger-icon {
    width: 80%;
    height: 80%;
}

/* Tooltip */
.tooltip {
    position: absolute;
    bottom: 55px;
    right: 55px;
    background-color: var(--special-30);
    color: var(--dark);
    padding: 7px 12px;
    border-radius: 5px;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

/* Mostrar tooltip después de unos segundos */
.floating-messenger-button.tooltip-visible .tooltip {
    opacity: 1;
}

/* Botón de cierre dentro del tooltip */
.close-tooltip {
    margin-left: 5px;
    background: transparent;
    border: none;
    border-radius: 20%;
    color: var(--dark);
    cursor: pointer;
    font-size: 14px;
    background-color: var(--special-light);
}

.close-tooltip:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

/* Adaptación para móviles */
@media (max-width: 768px) {
    .floating-messenger-button {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
    }

    .tooltip {
        display: none;
        /* Desactivamos el tooltip en móviles */
    }
}