/* Acceso permanente al WhatsApp comercial (tienda.telefono). */
.floating-whatsapp {
    position: fixed;
    right: clamp(16px, 2.5vw, 32px);
    bottom: calc(24px + env(safe-area-inset-bottom));
    z-index: 85;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    padding: 10px 18px;
    border-radius: 999px;
    background: #117a43;
    color: #fff;
    box-shadow: 0 8px 25px rgba(10, 63, 34, 0.28);
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.2;
    transition: background-color 150ms ease, transform 150ms ease;
}

.floating-whatsapp:hover {
    background: #0c6135;
    transform: translateY(-2px);
}

.floating-whatsapp:focus-visible {
    outline: 3px solid #182e20;
    outline-offset: 3px;
}

.floating-whatsapp__icon {
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.menu-open .floating-whatsapp {
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 820px) {
    .floating-whatsapp {
        /* Separación suficiente sobre la barra inferior fija de la PWA. */
        right: 16px;
        bottom: calc(112px + env(safe-area-inset-bottom));
        width: 56px;
        height: 56px;
        min-height: 56px;
        padding: 0;
    }

    .floating-whatsapp__label {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .floating-whatsapp {
        transition: none;
    }

    .floating-whatsapp:hover {
        transform: none;
    }
}
