/* Cabecera compartida; solo controla navegación y utilidades del sitio. */
.nv-sticky-bar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  background: #050d22;
}
html { scroll-padding-top: calc(var(--nv-header-height, 104px) + 16px); }
.nv-header-space { height: var(--nv-header-height, 104px); }
#dc-root div[aria-hidden="true"] { pointer-events: none; }

.nv-site-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 24px;
  max-width: 1320px;
  min-width: 0;
  margin: 0 auto;
  padding: 22px 32px;
  box-sizing: border-box;
  font-family: "Cairo", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}
.nv-site-header > .nv-brand { display: flex; align-items: center; flex: 0 0 auto; }
.nv-brand-logo { display: block; width: 96px; height: auto; }
.nv-site-header > .nv-nav {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  column-gap: clamp(12px, 1.3vw, 22px);
  row-gap: 0;
  font: inherit;
}
.nv-site-header .nv-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 3px 0;
  border-bottom: 2px solid transparent;
  color: #ffffff;
  font: inherit;
  text-decoration: none;
  white-space: nowrap;
  box-sizing: border-box;
}
.nv-site-header .nv-nav a.nv-language { color: #9fd6ff; }
.nv-site-header .nv-nav a:hover { color: #9fd6ff; }
.nv-site-header .nv-nav a[aria-current="page"] { color: #f7931e; border-bottom-color: #f7931e; }
.nv-site-header .nv-divider { width: 1px; height: 20px; flex: 0 0 1px; background: rgba(255,255,255,.3); }
.nv-site-header > .nv-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: 8px;
  background: #f7931e;
  color: #252828;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  box-sizing: border-box;
}
.nv-site-header > .nv-cta:hover { background: #ffa53d; }
.nv-site-header > .nv-burger {
  display: none;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1.5px solid rgba(255,255,255,.4);
  border-radius: 8px;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
}
.nv-site-header a:focus-visible,
.nv-burger:focus-visible,
.nv-to-top:focus-visible { outline: 2px solid #9fd6ff; outline-offset: 4px; }

@media (max-width: 1199px) {
  .nv-site-header { flex-wrap: wrap; gap: 14px 16px; padding: 18px 24px; }
  .nv-site-header > .nv-brand { order: 1; }
  .nv-site-header > .nv-burger { display: inline-flex; order: 2; margin-left: auto; }
  .nv-site-header > .nv-cta { order: 3; }
  .nv-site-header > .nv-nav { display: none !important; }
  .nv-site-header[data-menu-open="true"] > .nv-nav {
    display: flex !important;
    order: 4;
    flex: 0 0 100%;
    width: 100%;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    row-gap: 2px;
    max-height: calc(100vh - var(--nv-header-height, 104px) - 20px);
    max-height: calc(100dvh - var(--nv-header-height, 104px) - 20px);
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scroll-padding: 6px;
  }
  .nv-site-header[data-menu-open="true"] > .nv-nav > * { flex-shrink: 0; }
  .nv-site-header[data-menu-open="true"] .nv-nav a { min-height: 44px; align-self: flex-start; }
  .nv-site-header[data-menu-open="true"] .nv-divider { width: 100%; height: 1px; flex-basis: 1px; margin: 5px 0; }
  .nv-site-header[data-menu-open="true"] .nv-nav a:focus-visible { outline-offset: -2px; }
}
@media (max-width: 480px) {
  .nv-site-header { column-gap: 12px; padding: 16px 20px; }
  .nv-brand-logo { width: 84px; }
  .nv-site-header > .nv-cta { padding: 10px 12px; font-size: 14px; }
}

/* La posición se ajusta o se oculta cuando hay controles debajo. */
.nv-to-top {
  position: fixed;
  z-index: 1100;
  right: 16px;
  right: max(16px, env(safe-area-inset-right));
  bottom: 16px;
  bottom: calc(max(16px, env(safe-area-inset-bottom)) + var(--nv-top-lift, 0px));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #0074f0;
  border-radius: 10px;
  background: #071530;
  color: #9fd6ff;
  box-shadow: 0 3px 12px rgba(0,0,0,.16);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  cursor: pointer;
}
.nv-to-top[hidden] { display: none; }
.nv-to-top[data-visible="true"] { opacity: 1; visibility: visible; pointer-events: auto; }
.nv-to-top:hover { background: #0b1a3d; }
