/* NESAGAVIRIA - FAB WhatsApp / PAGA AQUI */
/* ================= FAB: Pago flotante rainbow (todas las páginas) ================= */
@keyframes btn-paga-rainbow-rotate {
    0% {
        transform: rotate(70deg);
    }
    50% {
        transform: rotate(100deg);
    }
    100% {
        transform: rotate(70deg);
    }
}

@keyframes fab-whatsapp-hand-wave {
    0%,
    100% {
        transform: rotate(0deg);
    }
    20% {
        transform: rotate(18deg);
    }
    40% {
        transform: rotate(-10deg);
    }
    60% {
        transform: rotate(14deg);
    }
    80% {
        transform: rotate(-6deg);
    }
}

.fab-stack {
    position: fixed;
    right: 18px;
    bottom: 22px;
    z-index: 9990;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.fab-whatsapp-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fab-whatsapp-tooltip {
    position: absolute;
    right: calc(100% + 14px);
    top: 50%;
    transform: translateY(-50%) translateX(8px);
    padding: 10px 18px 10px 16px;
    border-radius: 999px;
    background: #ffffff;
    color: #374151;
    font-family: 'Poppins', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: 0.01em;
    white-space: nowrap;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12), 0 2px 10px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.22s ease,
        visibility 0.22s ease,
        transform 0.22s ease;
    z-index: 3;
}

.fab-whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    margin-top: -7px;
    border-width: 7px 0 7px 8px;
    border-style: solid;
    border-color: transparent transparent transparent #ffffff;
    filter: drop-shadow(2px 0 3px rgba(0, 0, 0, 0.08));
}

.fab-whatsapp-wrap:hover .fab-whatsapp-tooltip,
.fab-whatsapp-wrap:focus-within .fab-whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

.fab-whatsapp-tooltip__hand {
    display: inline-block;
    margin-right: 0.12em;
    transform-origin: 72% 88%;
}

.fab-whatsapp-wrap:hover .fab-whatsapp-tooltip__hand,
.fab-whatsapp-wrap:focus-within .fab-whatsapp-tooltip__hand {
    animation: fab-whatsapp-hand-wave 1.15s ease-in-out infinite;
}

.fab-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #25d366;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45), 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform var(--transition-normal), box-shadow var(--transition-fast);
}

.fab-whatsapp__icon {
    width: 58%;
    height: 58%;
    display: block;
}

.fab-whatsapp__icon path {
    fill: #ffffff;
}

.fab-whatsapp:hover {
    transform: scale(1.06);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.55), 0 4px 14px rgba(0, 0, 0, 0.22);
}

.fab-whatsapp:active {
    transform: scale(1);
}

.fab-whatsapp:focus {
    outline: none;
}

.fab-whatsapp:focus-visible {
    outline: 3px solid #128c7e;
    outline-offset: 3px;
}

.btn-paga-aqui-wrap {
    position: relative;
    z-index: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 2px;
    border-radius: 999px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.15);
    transition: transform var(--transition-normal);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.btn-paga-aqui-wrap::before {
    content: '';
    position: absolute;
    z-index: -1;
    left: -50%;
    top: -50%;
    width: 200%;
    height: 200%;
    background-repeat: no-repeat;
    background-position: 100% 50%;
    background-size: 50% 30%;
    background-image: linear-gradient(#00e8a6, var(--color-primary), #007f5f);
    filter: blur(2px) saturate(1.25);
    animation: btn-paga-rainbow-rotate 4s ease-in-out infinite;
}

.btn-paga-aqui-wrap:hover {
    transform: scale(1.05);
}

.btn-paga-aqui-wrap:active {
    transform: scale(1);
}

.btn-paga-aqui {
    position: relative;
    z-index: 1;
    display: inline-block;
    padding: 12px 30px;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.82);
    backdrop-filter: blur(8px);
    color: var(--color-white);
    font-family: 'Poppins', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    line-height: 1.2;
    white-space: nowrap;
}

.btn-paga-aqui:hover {
    color: var(--color-white);
    text-decoration: none;
}

.btn-paga-aqui:focus {
    outline: none;
}

.btn-paga-aqui:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .btn-paga-aqui-wrap::before {
        animation: none;
    }

    .fab-whatsapp:hover,
    .fab-whatsapp:active,
    .btn-paga-aqui-wrap:hover,
    .btn-paga-aqui-wrap:active {
        transform: none;
    }

    .fab-whatsapp-tooltip {
        transition: opacity 0.15s ease, visibility 0.15s ease;
    }

    .fab-whatsapp-wrap:hover .fab-whatsapp-tooltip,
    .fab-whatsapp-wrap:focus-within .fab-whatsapp-tooltip {
        transform: translateY(-50%);
    }

    .fab-whatsapp-tooltip__hand {
        animation: none;
    }
}

@media (max-width: 480px) {
    .fab-stack {
        right: 12px;
        bottom: 16px;
        gap: 10px;
    }

    .fab-whatsapp {
        width: 52px;
        height: 52px;
    }

    .fab-whatsapp-tooltip {
        font-size: 0.8125rem;
        padding: 8px 14px 8px 12px;
        right: calc(100% + 10px);
        max-width: calc(100vw - 88px);
        white-space: normal;
        text-align: center;
    }

    .btn-paga-aqui {
        padding: 11px 20px;
        font-size: 0.75rem;
    }
}

