/* ── Contenedor flotante ── */
.asagiSabit {
    position: fixed;
    bottom: 80px;
    z-index: 99999;
}

/* Posición izquierda (por defecto) */
.asagiSabit.pos-left  { left: 12px; }

/* Posición derecha */
.asagiSabit.pos-right { right: 12px; }

.whatsappBlock a {
    outline: none;
    position: relative;
    display: inline-block;
    height: 100px;
    width: 100px;
    background: none;
    padding: 25px;
    text-align: center;
}

/* Etiqueta fija debajo del icono */
.whatsappBlock a .wa-fixed-label {
    position: absolute;
    left: 50%;
    bottom: 6px;
    transform: translateX(-50%);
    background: #25D366;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    padding: 6px 12px;
    border-radius: 12px;
    white-space: nowrap;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,.3);
}

.whatsappBlock a img {
    position: relative;
    z-index: 10;
    height: 60px;
    width: 60px;
    max-width: 60px;
    border: none;
    border-radius: 0;
    background: transparent;
    display: block;
    margin: 0 auto;
}

/* punto de estado — oculto con el icono SVG limpio */
.whatsappBlock a:after { display: none; }

/* ── Mensaje tooltip ── */
.message {
    position: absolute;
    padding: 6px;
    text-align: center;
    background: #65BC54;
    color: #fff;
    width: 200px;
    top: 40px;
    opacity: 0;
    border-radius: 4px;
    transition: opacity .3s, left .4s, right .4s;
}
.message:after {
    content: "";
    position: absolute;
    background: #65BC54;
    width: 14px;
    height: 14px;
    transform: rotate(45deg);
    top: 8px;
}

/* Tooltip cuando el botón está a la izquierda: aparece hacia la derecha */
.pos-left  .message            { left: auto; right: -200px; }
.pos-left  .message:after      { right: -6px; left: auto; }
.pos-left:hover  .message      { right: 85px; opacity: 1; }

/* Tooltip cuando el botón está a la derecha: aparece hacia la izquierda */
.pos-right .message            { right: auto; left: -200px; }
.pos-right .message:after      { left: -6px; right: auto; }
.pos-right:hover .message      { left: 85px; opacity: 1; }

/* ── Estados ── */
.whatsappBlock a.online .kutucuk         { background: rgba(26,183,68,0.25); }
.whatsappBlock a.online:after            { background: green; }
a.online .message, a.online .message:after { background: #65BC54; }

.whatsappBlock a.offline .kutucuk        { background: rgba(153,153,153,0.25); }
.whatsappBlock a.offline:after           { background: #999; }
a.offline .message, a.offline .message:after { background: #999; }

.whatsappBlock a.busy .kutucuk           { background: rgba(255,165,0,0.25); }
.whatsappBlock a.busy:after              { background: orange; }
a.busy .message, a.busy .message:after  { background: orange; }

/* ── Animación de pulso ── */
.kutucuklar {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}
.kutucuk {
    background: rgba(37,211,102,0.20);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(1);
    z-index: 2;
}

.animated { animation-fill-mode: both; }
.animated .k1 { animation: 2000ms kutucukBir cubic-bezier(0.25,0.46,0.45,0.94) infinite; }
.animated .k2 { animation: 2500ms kutucukIki cubic-bezier(0.25,0.46,0.45,0.94) infinite; }
.animated .k3 { animation: 3000ms kutucukUc  cubic-bezier(0.25,0.46,0.45,0.94) infinite; }

@keyframes kutucukBir {
    0%   { transform: translate(-50%,-50%) scale(1);   opacity:.6; }
    50%  { transform: translate(-50%,-50%) scale(2.2); opacity:0; }
    100% { transform: translate(-50%,-50%) scale(1);   opacity:.6; }
}
@keyframes kutucukIki {
    0%   { transform: translate(-50%,-50%) scale(1);   opacity:.5; }
    25%  { transform: translate(-50%,-50%) scale(1);   opacity:.5; }
    75%  { transform: translate(-50%,-50%) scale(2.4); opacity:0; }
    100% { transform: translate(-50%,-50%) scale(1);   opacity:.5; }
}
@keyframes kutucukUc {
    0%   { transform: translate(-50%,-50%) scale(1);   opacity:.4; }
    33%  { transform: translate(-50%,-50%) scale(1);   opacity:.4; }
    66%  { transform: translate(-50%,-50%) scale(2.6); opacity:0; }
    100% { transform: translate(-50%,-50%) scale(1);   opacity:.4; }
}

/* ── Móviles ── */
@media (max-width: 767px) {
    .asagiSabit        { bottom: 180px !important; }
    .asagiSabit.pos-left  { left: 10px !important; }
    .asagiSabit.pos-right { right: 10px !important; }

    .whatsappBlock a {
        height: 82px !important;
        width:  82px !important;
        padding: 18px !important;
    }
    .whatsappBlock a img {
        height: 48px !important;
        width:  48px !important;
        max-width: 48px !important;
    }
    .whatsappBlock a:after {
        bottom: 14px !important;
        right:  14px !important;
    }
}
