/* ========================= */
/* NAVBAR BASE */
/* ========================= */

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(10, 15, 25, 0.90);
  backdrop-filter: blur(12px);
  z-index: 1000;
  transition: all 0.3s ease;
}

/* SCROLL EFFECT */
.navbar.scrolled {
  background: rgba(10, 15, 25, 0.96);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* ========================= */
/* CONTENEDOR */
/* ========================= */

.nav-container {
  max-width: 1200px;
  margin: auto;

  padding: 15px 20px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;
}

/* ========================= */
/* LOGO */
/* ========================= */

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;

  text-decoration: none;
}

.logo-img {
  height: 35px;
}

.logo-text {
  color: #fff;
  font-size: 15px;
  font-weight: 600;

  white-space: nowrap;
}

/* ========================= */
/* MENU DESKTOP */
/* ========================= */

#navMenu {
  display: flex;
  align-items: center;
  gap: 25px;
}

/* LINKS */
#navMenu a {
  position: relative;

  color: #fff;
  font-size: 14px;
  text-decoration: none;

  transition: var(--transition);
}

/* HOVER */
#navMenu a:hover {
  color: var(--primary);
}

/* UNDERLINE */
#navMenu a::after {
  content: "";

  position: absolute;
  left: 0;
  bottom: -4px;

  width: 0;
  height: 2px;

  background: var(--primary);

  transition: width 0.3s ease;
}

#navMenu a:hover::after {
  width: 100%;
}

/* ========================= */
/* DROPDOWNS */
/* ========================= */

.dropdown {
  position: relative;
  padding-bottom: 10px;
  cursor: pointer;
}

/* TITULO */
.dropdown > span {
  position: relative;

  color: #fff;
  font-size: 14px;

  transition: var(--transition);
}

.dropdown > span:hover {
  color: var(--primary);
}

/* FLECHA */
.dropdown > span::after {
  content: "▾";

  margin-left: 6px;
  font-size: 10px;
}

/* MENU */
.dropdown-menu {
  position: absolute;

  top: 100%;
  left: 0;

  min-width: 190px;

  background: #111827;

  border: 1px solid var(--border-color);
  border-radius: 8px;

  padding: 10px 0;

  display: none;

  z-index: 1000;

  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

/* LINKS */
.dropdown-menu a {
  display: block;

  padding: 10px 15px;

  font-size: 13px;
  color: #d1d5db;
}

/* HOVER */
.dropdown-menu a:hover {
  background: rgba(255,255,255,0.05);
  color: var(--primary);
}

/* ========================= */
/* ACCIONES */
/* ========================= */

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ========================= */
/* LOGIN BUTTON */
/* ========================= */

.login-btn {
  width: 42px;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  color: #fff;

  border: 1px solid rgba(255,255,255,0.15);

  background: rgba(255,255,255,0.04);

  backdrop-filter: blur(10px);

  transition: var(--transition);
}

.login-btn:hover {
  background: rgba(255,255,255,0.08);
  color: var(--primary);

  transform: translateY(-2px);
}

/* ========================= */
/* MENU MOBILE */
/* ========================= */

.menu-toggle {
  display: none;

  color: #fff;
  font-size: 22px;

  cursor: pointer;
}

.menu-close {
  display: none;
}

/* ========================= */
/* OVERLAY */
/* ========================= */

.menu-overlay {
  position: fixed;

  top: 0;
  left: 0;

  width: 100%;
  height: 100%;

  background: rgba(0,0,0,0.7);

  opacity: 0;
  visibility: hidden;

  transition: 0.3s ease;

  z-index: 900;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ========================= */
/* MOBILE */
/* ========================= */

@media (max-width: 768px) {

  /* MENU */
  #navMenu {
    position: fixed;

    top: 0;
    right: -100%;

    width: 270px;
    height: 100%;

    background: #0f172a;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    padding: 20px;

    transition: 0.3s ease;

    z-index: 1001;
  }

  #navMenu.active {
    right: 0;
  }

  /* LINKS */
  #navMenu a {
    font-size: 15px;
    margin-bottom: 10px;
  }

  /* DROPDOWNS */
  .dropdown {
    width: 100%;
    padding-bottom: 0;
  }

  .dropdown > span {
    display: block;

    margin-top: 10px;
    margin-bottom: 8px;

    font-weight: 600;
  }

  .dropdown-menu {
    position: relative;

    top: 0;
    left: 0;

    display: block;

    width: 100%;

    background: transparent;

    border: none;
    box-shadow: none;

    padding-left: 10px;
  }

  .dropdown-menu a {
    padding: 8px 0;
  }

  /* BOTONES */
  .nav-actions .btn {
    display: none;
  }

  /* LOGIN */
  .login-btn {
    width: 40px;
    height: 40px;
  }

  /* TOGGLE */
  .menu-toggle {
    display: block;
  }

  /* CLOSE */
  .menu-close {
    display: block;

    color: #fff;
    font-size: 20px;

    margin-bottom: 20px;

    cursor: pointer;
  }

}

/* ========================= */
/* MOBILE XS */
/* ========================= */

@media (max-width: 400px) {

  .logo-text {
    display: none;
  }

  .logo-img {
    height: 28px;
  }

  #navMenu {
    width: 240px;
  }

}