/* ==========================================================================
   WhatsApp Floating Chat - front.css
   ========================================================================== */

.wafloat-container {
    position: fixed;
    bottom: 20px;
    z-index: 9999;
    display: block;
}

.wafloat-container.wafloat-right {
    right: 20px;
}

.wafloat-container.wafloat-left {
    left: 20px;
}

.wafloat-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #25D366;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wafloat-button:hover,
.wafloat-button:focus {
    transform: scale(1.08);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    text-decoration: none;
}

.wafloat-icon {
    width: 36px;
    height: 36px;
    display: block;
}

.wafloat-tooltip {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    background-color: #ffffff;
    color: #333333;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-family: Arial, Helvetica, sans-serif;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
}

.wafloat-right .wafloat-tooltip {
    right: 72px;
}

.wafloat-right .wafloat-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -6px;
    transform: translateY(-50%);
    border-width: 6px 0 6px 6px;
    border-style: solid;
    border-color: transparent transparent transparent #ffffff;
}

.wafloat-left .wafloat-tooltip {
    left: 72px;
}

.wafloat-left .wafloat-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -6px;
    transform: translateY(-50%);
    border-width: 6px 6px 6px 0;
    border-style: solid;
    border-color: transparent #ffffff transparent transparent;
}

.wafloat-button:hover .wafloat-tooltip {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .wafloat-container {
        bottom: 15px;
    }

    .wafloat-container.wafloat-right {
        right: 15px;
    }

    .wafloat-container.wafloat-left {
        left: 15px;
    }

    .wafloat-button {
        width: 52px;
        height: 52px;
    }

    .wafloat-icon {
        width: 30px;
        height: 30px;
    }

    /* El tooltip se oculta en móvil: no hay hover y ocuparía espacio útil. */
    .wafloat-tooltip {
        display: none;
    }
}
