/**
 * Botón Flotante de WhatsApp — Estudio Zygos
 */

.zygos-whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
}

.zygos-whatsapp-bubble {
    background: rgba(5, 10, 20, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 0.6rem 1.15rem;
    border-radius: var(--zygos-radius-full);
    color: #FFFFFF !important;
    font-size: 0.84rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s ease;
    /* Estado inicial: oculto hasta JS */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
}

.zygos-whatsapp-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #25D366;
    box-shadow: 0 0 10px #25D366;
    animation: zygos-blink 1.8s infinite;
}

@keyframes zygos-blink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.zygos-whatsapp-btn {
    width: 62px;
    height: 62px;
    background: linear-gradient(135deg, #25D366 0%, #1EBE5D 100%);
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.5);
    transition: var(--zygos-transition);
    position: relative;
}

.zygos-whatsapp-btn::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid #25D366;
    animation: zygos-pulse 2.2s infinite ease-out;
}

.zygos-whatsapp-float:hover .zygos-whatsapp-btn {
    transform: scale(1.08) translateY(-3px);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.65);
}

.zygos-whatsapp-btn svg {
    width: 34px;
    height: 34px;
    fill: currentColor;
}

@keyframes zygos-pulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.4); opacity: 0; }
}

@media (max-width: 768px) {
    .zygos-whatsapp-float {
        bottom: 20px;
        right: 20px;
    }
    .zygos-whatsapp-btn {
        width: 54px;
        height: 54px;
    }
    .zygos-whatsapp-btn svg {
        width: 30px;
        height: 30px;
    }
    .zygos-whatsapp-bubble {
        display: none;
    }
}
