/* Navegación — alineada a docs/condor_data_design_guide.html */
:root {
  --cd-night: #0a0d14;
  --cd-gold: #f5c542;
  --cd-tech-blue: #2d6fff;
  --cd-border: #1e2330;
  --cd-bone: #f0ede4;
}

.cd-navbar {
  background-color: #000000 !important;
  background-image: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.5rem 1rem;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.165, 0.84, 0.44, 1),
    opacity 0.45s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.cd-navbar.visible {
  transform: translateY(0);
  opacity: 1;
}

/* Refuerzo: Bootstrap navbar-dark puede usar variables semitransparentes */
nav.navbar.navbar-dark.cd-navbar {
  --bs-navbar-bg: #000000;
  --bs-navbar-color: #f0ede4;
}

.cd-navbar .logo-condor {
  display: block;
  height: 56px;
  width: auto;
  max-width: none;
  margin: 0;
  object-fit: contain;
  flex-shrink: 0;
  transition: transform 0.2s ease, filter 0.2s ease;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}

@media (min-width: 992px) {
  .cd-navbar .logo-condor {
    height: 72px;
  }
}

@media (max-width: 575.98px) {
  .cd-navbar .logo-condor {
    height: 52px;
  }
}

.cd-navbar .logo-condor:hover {
  transform: scale(1.02);
}

.cd-navbar .navbar-nav .nav-link {
  position: relative;
  padding: 0.5rem 0.85rem;
  margin: 0 0.05rem;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--cd-bone) !important;
  opacity: 0.92;
  transition: color 0.2s ease;
}

.cd-navbar .navbar-nav .nav-link:hover,
.cd-navbar .navbar-nav .nav-link:focus-visible {
  color: var(--cd-tech-blue) !important;
}

.cd-navbar .navbar-nav .nav-link.active {
  color: var(--cd-tech-blue) !important;
}

.cd-navbar .btn-nav-cta {
  background: var(--cd-gold);
  border: none;
  color: var(--cd-night) !important;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 4px;
  margin-left: 0.35rem;
  transition: background 0.2s ease, transform 0.15s ease;
}

.cd-navbar .btn-nav-cta:hover {
  background: #e6b73a;
  color: var(--cd-night) !important;
  transform: translateY(-1px);
}

.mobile-hamburger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  gap: 5px;
  cursor: pointer;
}

.mobile-hamburger:focus {
  outline: 2px solid var(--cd-gold);
  outline-offset: 2px;
}

.mobile-hamburger .bar {
  width: 22px;
  height: 2px;
  background: var(--cd-bone);
  border-radius: 2px;
}

@media (min-width: 992px) {
  .mobile-hamburger {
    display: none;
  }
}

.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 30000;
  pointer-events: none;
}

.mobile-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
  z-index: 1;
}

.mobile-drawer-content {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(86vw, 360px);
  background: #000000;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  padding: 1rem 1rem 2rem;
  z-index: 2;
}

.mobile-drawer.open {
  pointer-events: auto;
}

.mobile-drawer.open .mobile-overlay {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer.open .mobile-drawer-content {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.mobile-drawer-title {
  color: var(--cd-gold);
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.25rem;
  letter-spacing: 0.06em;
}

.mobile-close {
  background: transparent;
  border: 0;
  font-size: 2rem;
  line-height: 1;
  color: var(--cd-bone);
  cursor: pointer;
}

.mobile-menu-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-link {
  display: block;
  padding: 0.85rem 0.5rem;
  color: var(--cd-bone);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-link:hover {
  color: var(--cd-tech-blue);
}

.mobile-cta {
  margin-top: 1rem;
  padding: 10px 16px;
  text-align: center;
  background: var(--cd-gold);
  border-radius: 4px;
  color: var(--cd-night) !important;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

.mobile-cta:hover {
  background: #e6b73a;
  color: var(--cd-night) !important;
}

@media (max-width: 991.98px) {
  #mobileMenuButton {
    position: relative;
    z-index: 20001;
  }
}
