.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: all 0.4s ease;
  background: transparent;
}

.navbar.scrolled {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu {
  display: flex;
  gap: 18px;
  margin-left: auto;
}

.menu a {
  text-decoration: none;
  color: white;
  font-size: 1.1rem;
  letter-spacing: 2px;
  position: relative;
  transition: 0.3s;
}

.menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0%;
  height: 1px;
  background: white;
  transition: 0.3s;
}

.menu a:hover {
  opacity: 0.8;

  text-shadow:
    0 0 6px rgba(255, 255, 255, 0.6),
    0 0 12px rgba(255, 255, 255, 0.3);
}

.menu a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
}
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.logo img {
  height: 80px;
  transition: 0.3s;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.4));
}

.logo img:hover {
  opacity: 0.7;
  transform: scale(1.05);

  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.9));
}

@media (max-width: 768px) {

    .navbar {
    padding: 20px 10px;
    } 

  /* 🔥 mostrar botón hamburguesa */
  .menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
  }

  .menu-toggle span {
    width: 25px;
    height: 2px;
    background: white;
    display: block;
    transition: 0.3s;
  }

  /* ❌ ocultar menú por defecto */
  .menu {
    position: absolute;
    top: 100%;
    right: 20px;

    flex-direction: column;
    gap: 15px;

    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);

    padding: 20px;
    border-radius: 10px;

    display: none;
  }

  /* ✅ cuando está activo */
  .menu.active {
    display: flex;
  }

  /* ocultar menú desktop */
  .menu {
    margin-left: 0;
  }

  .logo img {
    height: 60px;
  } 
}