/* OrdoHub · menú principal (barra fija del encabezado)
   Usa los mismos valores del encabezado del tema: navy translúcido con desenfoque,
   enlaces blancos con realce turquesa y botón morado. */
.oh-nav {
  position: relative;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 4px 4px 20px;
  border-radius: 12px;
  font-family: 'Poppins', system-ui, sans-serif;
}
.oh-nav::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: rgba(47, 59, 82, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: background-color 0.3s;
  pointer-events: none;
}
/* Inicio: translúcido sobre el hero, opaco al bajar */
body:has(.ordohub) .oh-nav::before { background: rgba(47, 59, 82, 0.4); }
body.oh-scrolled:has(.ordohub) .oh-nav::before { background: rgba(47, 59, 82, 0.88); }

.oh-nav__logo { display: flex; align-items: center; padding: 8px 0; line-height: 0; }
.oh-nav__logo img { display: block; width: 100px; height: auto; }

.oh-nav__menu { display: flex; align-items: center; gap: 8px; }
.oh-nav__links { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }

.oh-nav a.oh-nav__link {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
}
.oh-nav a.oh-nav__link:hover,
.oh-nav a.oh-nav__link[aria-current] { color: #47d6d2; }

.oh-nav a.oh-nav__cta {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: #fff;
  white-space: nowrap;
  text-decoration: none;
  background: #5f33fa;
  transition: background-color 0.2s;
}
.oh-nav a.oh-nav__cta:hover { color: #fff; background: #4a1fe0; }

.oh-nav a:focus-visible,
.oh-nav__toggle:focus-visible { outline: 2px solid #47d6d2; outline-offset: 2px; }

.oh-nav__toggle { display: none; }

/* Celular: botón de menú y panel desplegable */
@media (max-width: 767px) {
  .oh-nav { padding: 4px 4px 4px 16px; }
  .oh-nav__toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    color: #fff;
    background: transparent;
    cursor: pointer;
  }
  .oh-nav__toggle span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.2s, opacity 0.2s;
  }
  .oh-nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .oh-nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .oh-nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .oh-nav__menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 8px;
    border-radius: 12px;
    background: #2f3b52;
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5);
  }
  .oh-nav__menu.is-open { display: flex; }
  .oh-nav__links { flex-direction: column; align-items: stretch; gap: 0; }
  .oh-nav a.oh-nav__link { padding: 12px 16px; font-size: 16px; }
  .oh-nav a.oh-nav__cta { padding: 12px 20px; font-size: 16px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .oh-nav::before,
  .oh-nav__toggle span { transition: none; }
}
