/* Botón Volver Arriba — Maíces Food */
#btnArriba {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 52px;
  height: 52px;
  display: none;              /* Oculto por defecto; el JS lo muestra al hacer scroll */
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: #ff4081;        /* Color principal */
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
  z-index: 9999;              /* Por encima del contenido */
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, opacity .2s ease;
  opacity: .95;
}

#btnArriba:hover {
  background: #e91e63;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 12px 24px rgba(0,0,0,.30);
}

#btnArriba:active {
  transform: translateY(0) scale(.98);
}

#btnArriba:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 2px;
}

/* Tamaños cómodos en móvil */
@media (max-width: 768px) {
  #btnArriba {
    width: 56px;
    height: 56px;
    bottom: 16px;
    right: 16px;
    font-size: 22px;
  }
}

/* Un poco más de margen en pantallas grandes */
@media (min-width: 1280px) {
  #btnArriba {
    bottom: 30px;
    right: 30px;
  }
}

/* Respeta usuarios con menos animaciones */
@media (prefers-reduced-motion: reduce) {
  #btnArriba {
    transition: none;
  }
}
