/* DIFTEL SJ · navbar compartida (estilo wiki, alcance .wnav)
   Para páginas fuera del portal (simulador, listado clásico, CTF) sin
   arrastrar todo landing.css ni chocar con sus estilos propios. */
.wnav {
  position: fixed; inset: 0 0 auto 0; z-index: 80;
  background: rgba(251, 247, 238, .88);
  border-bottom: 1px solid rgba(34, 67, 91, .13);
  backdrop-filter: blur(18px) saturate(1.25);
  font-family: "Nunito Sans", Inter, system-ui, sans-serif;
}
.wnav-static { position: static; }
.wnav-inner {
  width: min(1240px, calc(100% - 32px)); height: 74px; margin: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.wnav-brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; color: inherit; text-decoration: none; }
.wnav-mark {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  color: #fff; background: linear-gradient(145deg, #075b9e, #00a9cf);
  box-shadow: 0 8px 22px rgba(0, 75, 135, .2); transform: rotate(-2deg);
}
.wnav-mark svg { width: 22px; height: 22px; }
.wnav-copy { display: grid; line-height: 1.04; }
.wnav-copy strong { color: #092a46; font-size: 17px; letter-spacing: .04em; }
.wnav-copy small { color: #667483; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; margin-top: 4px; }
.wnav-links { display: flex; align-items: center; gap: 2px; }
.wnav-link { position: relative; padding: 10px; color: #667483; font-size: 14px; font-weight: 700; border-radius: 10px; text-decoration: none; transition: color .2s, background .2s; }
.wnav-link:hover { color: #092a46; background: #f7f0e5; }
.wnav-link.is-active { color: #075b9e; }
.wnav-link.is-active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; border-radius: 2px; background: #12a9c8; }
.wnav-actions { display: flex; align-items: center; gap: 8px; }
.wnav-search { height: 38px; border: 1px solid rgba(34, 67, 91, .13); border-radius: 12px; display: flex; align-items: center; gap: 7px; padding: 0 10px; background: rgba(255, 253, 248, .82); }
.wnav-search:focus-within { border-color: #12a9c8; box-shadow: 0 0 0 3px rgba(18, 169, 200, .12); }
.wnav-search svg { width: 17px; color: #667483; flex: 0 0 auto; }
.wnav-search input { width: 150px; border: 0; outline: 0; background: transparent; color: #17324a; font-size: 13px; font-family: inherit; }
.wnav-search input::placeholder { color: #667483; }
.wnav-burger { display: none; width: 38px; height: 38px; border: 1px solid rgba(34, 67, 91, .13); border-radius: 12px; background: rgba(255, 253, 248, .82); color: #17324a; cursor: pointer; padding: 9px; }
.wnav-burger:hover { background: #f7f0e5; }
.wnav-burger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; margin: 0 auto; }
.wnav-burger span + span { margin-top: 3px; }
.wnav-mobile { border-top: 1px solid rgba(34, 67, 91, .13); padding: 14px 18px 20px; background: #fffdf8; }
.wnav-mobile[hidden] { display: none; }
.wnav-mobile a { display: block; padding: 12px 9px; color: #17324a; font-weight: 750; font-size: 14px; text-decoration: none; border-bottom: 1px solid rgba(34, 67, 91, .13); }
.wnav-mobile .wnav-search { margin-bottom: 8px; }
.wnav-mobile .wnav-search input { width: 100%; }
.wnav-offset { height: 74px; }
@media (max-width: 1060px) {
  .wnav-links { display: none; }
  .wnav-burger { display: block; }
}
@media (max-width: 600px) {
  .wnav-inner { width: calc(100% - 20px); height: 68px; }
  .wnav-offset { height: 68px; }
  .wnav-copy small { display: none; }
  .wnav-actions .wnav-search { display: none; }
  .wnav-burger { width: 36px; height: 36px; }
}
