/* Estilos para la navegación móvil tipo app */
.mobile-nav-container {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: #f8f9fa;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.mobile-nav-bar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 65px;
  padding: 0 10px;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #6c757d;
  text-decoration: none;
  font-size: 0.7rem;
  width: 20%;
  height: 100%;
  transition: all 0.3s ease;
}

.mobile-nav-item i {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.mobile-nav-item.active {
  color: #0d6efd;
}

.mobile-nav-main {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 20%;
}

.mobile-nav-toggle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #0d6efd;
  color: white;
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  position: absolute;
  bottom: 5px;
  transition: all 0.3s ease;
}

.mobile-nav-toggle:hover,
.mobile-nav-toggle:focus {
  background-color: #0b5ed7;
  transform: scale(1.05);
}

/* Estilos para el menú completo en offcanvas */
.mobile-menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  padding: 10px;
}

.mobile-menu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #212529;
  padding: 15px 10px;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.mobile-menu-item:hover,
.mobile-menu-item:focus,
.mobile-menu-item.active {
  background-color: #f1f3f5;
  color: #0d6efd;
}

.mobile-menu-icon {
  font-size: 1.8rem;
  margin-bottom: 8px;
  height: 40px;
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: #e9ecef;
  color: #0d6efd;
}

.mobile-menu-text {
  font-size: 0.8rem;
  text-align: center;
}

/* Ajustes para el contenido principal para evitar que el menú móvil lo tape */
@media (max-width: 767.98px) {
  body {
    padding-bottom: 65px;
  }

  /* Ocultar la navegación estándar en móviles */
  .navbar-expand-lg {
    display: none;
  }
}
