/* ============================= */
/* Estilos para el botón Back-to-top */
/* ============================= */
#back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: none;
  background-color: #007bff;
  color: #fff;
  border: none;
  padding: 12px 16px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: all 0.3s ease-in-out;
}

#back-to-top:hover {
  background-color: #0056b3;
  transform: scale(1.1);
}
  
  /* 🔹 Ajustes de tamaño en pantallas hasta 600px */
  @media (max-width: 600px) {
    #back-to-top {
      bottom: 20px;
      right: 20px;
      font-size: 16px;      /* Ajusta el tamaño de la fuente (icono) */
      padding: 8px 12px;    /* Ajusta el relleno */
    }
  }
  
  /* 🔹 Ajustes de tamaño en pantallas hasta 400px */
  @media (max-width: 400px) {
    #back-to-top {
      bottom: 15px;
      right: 15px;
      font-size: 14px;
      padding: 6px 10px;
    }
  }

  /* Ejemplo de reglas ya existentes para el contenedor */
  /* ============================= */
  #menu-sub {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    box-sizing: border-box;
    width: 100%;
    background-color: #f7f7f7;
    margin-bottom: 15px;
  }
  
  /* Centrado del botón back-to-top en móviles */
@media (max-width: 600px) {
  #back-to-top {
    bottom: 15px;
    right: 15px;
    font-size: 16px;
    padding: 10px 12px;
  }
}

