/* ==========================================================
   arriba.css - BOTÓN "IR ARRIBA"
   Aparece tras hacer scroll. Compatible GOV.CO + Bootstrap
   ========================================================== */

/* --- Botón fijo --- */
#btn-ir-arriba {
  position: fixed;
  bottom: 1.8rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #3366CC; /* Azul institucional GOV.CO */
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
  z-index: 1050; /* siempre sobre el contenido */
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* --- Estado visible tras scroll --- */
#btn-ir-arriba.show {
  opacity: 1;
  transform: translateY(0);
}

/* --- Hover / foco accesible --- */
#btn-ir-arriba:hover,
#btn-ir-arriba:focus {
  background-color: #254a99;
  outline: none;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  #btn-ir-arriba {
    bottom: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
  }
}
