/* ===========================
   MENÚ INFERIOR MODERNO (LÍNEA ABAJO DEL TEXTO)
=========================== */

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: #fff;
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.06);
  z-index: 500;
  border-radius: 20px 20px 0 0;
  backdrop-filter: blur(10px);
  padding-bottom: env(safe-area-inset-bottom);
}

main {
  padding-bottom: calc(70px + env(safe-area-inset-bottom));
}

/* Ítems */
.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-family: "Poppins", sans-serif;
  font-size: 11px;
  color: rgba(80, 80, 80, 0.6);
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  transition: all 0.25s ease;
}

/* Íconos inactivos */
.nav-item img {
  width: 20px;
  height: 20px;
  opacity: 0.6;
  filter: grayscale(100%) brightness(0.5);
  transition: all 0.25s ease;
}

/* Ítem activo */
.nav-item.active {
  color: #1976d2;
  font-weight: 600;
  transform: translateY(-2px);
}

/* Ícono activo azul */
.nav-item.active img {
  width: 28px;
  height: 28px;
  opacity: 1;
  filter: invert(32%) sepia(94%) saturate(1358%) hue-rotate(201deg)
    brightness(92%) contrast(101%);
}

/* Línea azul animada bajo el texto */
.nav-item.active::after {
  content: "";
  position: absolute;
  bottom: -6px; /* debajo del texto */
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 3px;
  background: #1976d2;
  border-radius: 4px;
  animation: lineaActiva 0.3s ease forwards;
}

/* Animación suave */
@keyframes lineaActiva {
  0% {
    width: 0;
    opacity: 0;
  }
  100% {
    width: 28px;
    opacity: 1;
  }
}

/* Hover (desktop) */
.nav-item:hover img {
  opacity: 0.8;
}

/* Presionar */
.nav-item:active {
  transform: scale(0.96);
}

/* Responsive */
@media (max-width: 480px) {
  .nav-item {
    font-size: 10px;
  }
}

.login-prompt{
  position:fixed;
  left:0;
  right:0;
  bottom:calc(70px + 10px + env(safe-area-inset-bottom));
  display:flex;
  justify-content:center;
  z-index:480;
  pointer-events:none;
}
.login-prompt-btn{
  pointer-events:auto;
  border:1px solid #e5e7eb;
  background:rgba(255,255,255,.9);
  color:#374151;
  border-radius:999px;
  padding:6px 12px;
  font-size:12px;
  font-weight:700;
  box-shadow:0 6px 16px rgba(0,0,0,.08);
  cursor:pointer;
}
