<script lang="ts">
  const scrollToTop = () => {
    window.scrollTo({ top: 0, behavior: "smooth" });
  };
</script>

<button
  class="btn btn-primary position-fixed bottom-0 end-0 mb-4 me-4 p-3"
  on:click={scrollToTop}
  title="Ir arriba"
  style="z-index: 1000; "
>
  ↑
</button>
