/* MENÚ FLOTANTE (ESCRITORIO) */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  padding: 15px 0;
  z-index: 2000;
  transition: background 0.3s, padding 0.3s;
}

.navbar.scrolled {
  padding: 10px 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.navbar ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 40px;
}

.navbar a {
  text-decoration: none;
  font-size: 1rem;
  color: #222;
  font-weight: 500;
  transition: 0.2s;
}

.navbar a:hover {
  opacity: 0.6;
}

/* MENÚ MÓVIL (OCULTO AL INICIO) */
.mobile-navbar {
  position: fixed;
  top: -60px; /* oculto al inicio */
  left: 0;
  width: 100%;
  height: 60px;
  background: white;
  display: none; /* solo se muestra en móvil */
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: top 0.3s;
  z-index: 5000;
}

.hamburger {
  width: 35px;
  height: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 4px;
  background: #222;
  border-radius: 2px;
  transition: all 0.3s;
}

/* -----------------------------------------------------
   RESPONSIVE: Menú móvil y escritorio
------------------------------------------------------ */

/* En móvil: ocultar menú grande y mostrar menú móvil */
@media (max-width: 768px) {
  .navbar {
    display: none !important;
  }

  .mobile-navbar {
    display: flex !important;
  }
}

/* En escritorio: ocultar menú móvil */
@media (min-width: 769px) {
  .mobile-navbar {
    display: none !important;
  }
}
