/* ============================================================
   HEADER / NAVBAR — fijo, oscuro, con dropdowns y menú mobile.
   ============================================================ */

.sh-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  background: var(--black);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.sh-header.scrolled {
  background: rgba(8, 8, 8, 0.97);
  border-bottom-color: var(--orange);
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.6);
}
.sh-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--orange);
}

.sh-inner {
  display: flex;
  align-items: center;
  height: var(--header-h);
  padding: 0 var(--pad-x);
}

.sh-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: auto;
}
.sh-logo img {
  height: 68px;
  width: auto;
  transition: opacity 0.25s;
}
.sh-logo:hover img { opacity: 0.82; }

.sh-nav {
  display: flex;
  align-items: center;
  height: 100%;
}
.sh-nav-item {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}
.sh-nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 100%;
  padding: 0 20px;
  font-family: var(--fc);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--w2) !important;
  position: relative;
  transition: color 0.22s;
  white-space: nowrap;
}
.sh-nav-link::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 20px;
  right: 20px;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
}
.sh-nav-item:hover > .sh-nav-link,
.sh-nav-item.active > .sh-nav-link {
  color: var(--white) !important;
}
.sh-nav-item:hover > .sh-nav-link::after,
.sh-nav-item.active > .sh-nav-link::after {
  transform: scaleX(1);
}
.sh-nav-link.dim { color: var(--w3) !important; }
.sh-nav-item:hover > .sh-nav-link.dim { color: var(--w2) !important; }

.sh-nav-arrow {
  width: 10px; height: 10px;
  stroke: currentColor; fill: none;
  stroke-width: 2.2;
  transition: transform 0.22s;
  flex-shrink: 0;
}
.sh-nav-item:hover > .sh-nav-link .sh-nav-arrow { transform: rotate(180deg); }

/* Dropdown */
.sh-dropdown {
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  min-width: 250px;
  background: var(--b2);
  border: 1px solid var(--border);
  border-top: 2px solid var(--orange);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  z-index: 100;
}
.sh-nav-item:hover .sh-dropdown,
.sh-nav-item:focus-within .sh-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.sh-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 20px;
  font-family: var(--fc);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--w2) !important;
  border-bottom: 1px solid var(--border);
  transition: background 0.18s, color 0.18s, padding-left 0.2s;
}
.sh-dropdown-item:last-child { border-bottom: none; }
.sh-dropdown-item::before {
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.18s;
}
.sh-dropdown-item:hover {
  background: var(--card);
  color: var(--white) !important;
  padding-left: 24px;
}
.sh-dropdown-item:hover::before { opacity: 1; }

.sh-badge-dev {
  margin-left: auto;
  font-family: var(--fc);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  background: var(--og12);
  border: 1px solid var(--og30);
  padding: 2px 7px;
  white-space: nowrap;
  flex-shrink: 0;
}

.sh-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 24px;
  font-family: var(--fc);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #ffffff !important;
  background: var(--orange);
  border: 2px solid var(--orange);
  padding: 10px 22px;
  transition: background 0.22s, color 0.22s;
  white-space: nowrap;
  flex-shrink: 0;
}
.sh-cta:hover {
  background: transparent;
  color: var(--orange) !important;
}
.sh-cta svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2.5; }

.sh-sep {
  width: 1px;
  height: 28px;
  background: var(--border);
  margin: 0 4px;
  flex-shrink: 0;
}

.sh-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: 16px;
}
.sh-hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
}

.sh-mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--b2);
  border-top: 1px solid var(--border);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.sh-mobile-nav.open { max-height: 600px; }

.sh-mobile-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--pad-x);
  font-family: var(--fc);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--w2) !important;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s, padding-left 0.2s;
}
.sh-mobile-link:hover { color: var(--white) !important; padding-left: calc(var(--pad-x) + 6px); }
.sh-mobile-link.cta-mob {
  color: var(--orange) !important;
  border-bottom: none;
  padding-top: 20px;
  padding-bottom: 24px;
}
.sh-mobile-sub {
  font-family: var(--fc);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--orange);
  background: var(--og12);
  border: 1px solid var(--og30);
  padding: 2px 8px;
}
