/* ─────────────────────────────────────────────────────────────────────────
   Floaties — Frontend Button CSS
   Wavesite · wavesite.space
   ───────────────────────────────────────────────────────────────────────── */

.floaties-wrap {
    /* position:fixed se aplica via style inline generado por PHP */
    display: block;
    line-height: 1;
}

/* ── Botón base ───────────────────────────────────────────────────────── */
.floaties-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;   /* default WhatsApp — se sobreescribe con CSS custom */
    color: #FFFFFF;
    font-size: 24px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .22);
    transition:
        transform .22s cubic-bezier(.34, 1.56, .64, 1),
        box-shadow .22s ease;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    position: relative;
    overflow: hidden;
}

.floaties-btn:hover,
.floaties-btn:focus {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .28);
    color: #FFFFFF;
    text-decoration: none;
}

.floaties-btn:active {
    transform: scale(.96);
}

/* ── Variantes por tipo de acción ────────────────────────────────────── */
.floaties-btn--whatsapp { background: #25D366; }
.floaties-btn--call     { background: #3B82F6; }
.floaties-btn--email    { background: #F59E0B; }
.floaties-btn--js       { background: #8B5CF6; }

/* ── Ícono Font Awesome ──────────────────────────────────────────────── */
.floaties-btn i {
    font-size: inherit;
    line-height: 1;
    pointer-events: none;
}

/* ── Imagen ──────────────────────────────────────────────────────────── */
.floaties-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    pointer-events: none;
    transition: opacity .18s ease;
}

/* ── Animación de entrada ────────────────────────────────────────────── */
.floaties-wrap {
    animation: floatiesIn .4s cubic-bezier(.34, 1.56, .64, 1) both;
}

@keyframes floatiesIn {
    from {
        opacity: 0;
        transform: scale(.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ── Pulso sutil (accesibilidad visual) ──────────────────────────────── */
.floaties-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: inherit;
    animation: floatiesPulse 3s ease-out infinite;
    opacity: 0;
    z-index: -1;
}

@keyframes floatiesPulse {
    0%   { transform: scale(1);   opacity: .45; }
    70%  { transform: scale(1.6); opacity: 0; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* ── Accesibilidad: reduce motion ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .floaties-wrap       { animation: none; }
    .floaties-btn        { transition: none; }
    .floaties-btn::after { animation: none; }
}
