/* =============================================
   SOMOSFK WhatsApp Flotante — v1.0.0
   ============================================= */

.sfkwa-wrap {
    position: fixed !important;
    z-index: 999999 !important;
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-end;
    gap: 12px;
    pointer-events: none;
    margin: 0;
    padding: 0;
}

/* Cada botón + tooltip */
.sfkwa-btn-wrap {
    position: relative;
    display: flex;
    align-items: center;
    pointer-events: all;
}

/* El botón principal */
.sfkwa-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    background: transparent;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45), 0 2px 8px rgba(0,0,0,.18);
    text-decoration: none;
    transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s ease;
    animation: sfkwa-pop .5s cubic-bezier(.34,1.56,.64,1) both;
    padding: 0;
}

.sfkwa-btn-wrap:nth-child(1) .sfkwa-btn { animation-delay: .1s; }
.sfkwa-btn-wrap:nth-child(2) .sfkwa-btn { animation-delay: .22s; }

@keyframes sfkwa-pop {
    from { opacity: 0; transform: scale(.4) translateY(20px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.sfkwa-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.55), 0 3px 10px rgba(0,0,0,.22);
}

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

/* Ícono SVG de WhatsApp */
.sfkwa-icon {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 50%;
}

/* Banderita en la esquina superior derecha */
.sfkwa-flag-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    font-size: 16px;
    line-height: 1;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,.3));
    pointer-events: none;
}

/* Tooltip */
.sfkwa-tooltip {
    position: absolute;
    right: calc(100% + 10px);
    background: #1a1a1a;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    padding: 5px 10px;
    border-radius: 6px;
    pointer-events: none;
    opacity: 0;
    transform: translateX(6px);
    transition: opacity .2s ease, transform .2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

/* Flechita del tooltip */
.sfkwa-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -5px;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-right: none;
    border-left-color: #1a1a1a;
}

.sfkwa-btn-wrap:hover .sfkwa-tooltip {
    opacity: 1;
    transform: translateX(0);
}

/* Pulso sutil en el botón (llama la atención) */
.sfkwa-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid #25D366;
    animation: sfkwa-pulse 2.5s ease-out infinite;
    opacity: 0;
}

@keyframes sfkwa-pulse {
    0%   { transform: scale(1);   opacity: .7; }
    70%  { transform: scale(1.5); opacity: 0; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* Mobile */
@media (max-width: 480px) {
    .sfkwa-wrap {
        position: fixed !important;
        bottom: 20px !important;
        right: 16px !important;
        z-index: 999999 !important;
    }
    .sfkwa-btn {
        width: 52px;
        height: 52px;
        padding: 0;
    }
    .sfkwa-flag-badge {
        font-size: 14px;
    }
    .sfkwa-tooltip {
        display: none;
    }
}
