/* ===== Botón flotante "Volver arriba" ===== */
.volver-arriba {
    position: fixed;
    right: 20px;
    bottom: 24px;
    z-index: 1000;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--jazzberry-jam, #ba0b5f) 0%, var(--cardinal-pink, #98074f) 100%);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(152, 7, 79, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.volver-arriba.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.volver-arriba:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(152, 7, 79, 0.45);
}

.volver-arriba svg {
    width: 24px;
    height: 24px;
}

/* Cuando el banner de WhatsApp está visible, subir el botón para que no
   quede tapado por él (el banner ocupa la parte inferior de la pantalla) */
body:has(.wa-banner.is-visible) .volver-arriba {
    bottom: 92px;
}

@media (max-width: 600px) {
    .volver-arriba {
        right: 14px;
        bottom: 16px;
        width: 44px;
        height: 44px;
    }

    /* En móvil el banner de WhatsApp es más alto (apila contenido) */
    body:has(.wa-banner.is-visible) .volver-arriba {
        bottom: 150px;
    }
}
