/* ============================================================
   JIMENITA — css/navbar.css
   ============================================================ */

.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: background .3s, backdrop-filter .3s, box-shadow .3s;
}

.navbar.scrolled {
  background: rgba(15, 10, 26, 0.92);
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(0,0,0,.4);
  border-bottom: 1px solid rgba(168,85,247,.15);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.navbar-logo img {
  height: 56px;
  width: auto;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.navbar-nav a {
  font-weight: 600;
  font-size: .95rem;
  color: rgba(255,255,255,.8);
  position: relative;
  transition: color .25s;
}
.navbar-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--grad-brand);
  border-radius: 2px;
  transition: width .3s;
}
.navbar-nav a:hover { color: var(--white); }
.navbar-nav a:hover::after { width: 100%; }

.navbar-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: .5rem;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  position: fixed;
  top: 0; right: -100%;
  width: min(320px, 85vw);
  height: 100dvh;
  background: rgba(26, 16, 48, 0.98);
  backdrop-filter: blur(20px);
  border-left: 1px solid rgba(168,85,247,.2);
  padding: 6rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  z-index: 999;
  transition: right .35s cubic-bezier(.4,0,.2,1);
}
.mobile-nav.open { right: 0; }

.mobile-nav a {
  font-size: 1.2rem;
  font-weight: 700;
  color: rgba(255,255,255,.85);
  padding: .5rem 0;
  border-bottom: 1px solid rgba(168,85,247,.1);
  transition: color .2s, padding-left .2s;
}
.mobile-nav a:hover { color: var(--pink-hot); padding-left: .5rem; }

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.overlay.show { opacity: 1; pointer-events: all; }

@media (max-width: 900px) {
  .navbar-nav, .navbar-actions .btn { display: none; }
  .hamburger { display: flex; }
}
