/* ══════════════════════════════════════
   HEADER
   ══════════════════════════════════════ */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;

  padding: 0 48px;
  height: 72px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  transition: background .4s ease, border-color .4s ease;
  border-bottom: 1px solid transparent;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  margin-left: 30px;
}
.logo img {
  width: 200px;
  height: 72px;
  object-fit: contain;
  display: block;
}

/* Nav */
nav {
  display: flex;
  align-items: center;
  gap: 36px;

  /* Acerca el menú al logo */
  margin-right: 30px;
}
nav a {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: .06em;
  text-transform: uppercase;

  transition: color .2s;
  position: relative;
}

nav a::after {
  content: '';

  position: absolute;
  bottom: -4px;
  left: 0;

  width: 0;
  height: 2px;

  background: var(--yellow);

  transition: width .3s;
}

nav a:hover {
  color: var(--white);
}

nav a:hover::after {
  width: 100%;
}


/* ── Toggle móvil ── */

.nav-toggle {
  display: none;

  background: none;
  border: none;

  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;

  width: 24px;
  height: 2px;

  background: var(--white);

  margin: 5px 0;

  transition: all .3s;
}


/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */

@media (max-width: 900px) {

  #header {
    padding: 0 24px;
  }

  .logo img {
    width: 50px;
    height: 50px;
  }

  nav {
    display: none;

    flex-direction: column;
    align-items: flex-start;

    position: fixed;
    top: 72px;
    left: 0;
    right: 0;

    background: rgba(8, 8, 8, .97);

    padding: 24px;
    gap: 20px;

    border-bottom: 1px solid var(--border);
  }

  nav.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }
}