/* RuniverseHub · PUBLIC-HEADER-FINAL-1.3
   Header público canónico. Self-contained para evitar que el lockup dependa
   de estilos privados o de orden de carga. No modifica hero ni contenido. */

.rh-v2-public-header,
.rh-v2-public-header *,
.rh-v2-public-header *::before,
.rh-v2-public-header *::after,
.rh-v2-overlay[data-rh-v2-overlay="public-menu"],
.rh-v2-overlay[data-rh-v2-overlay="public-menu"] *,
.rh-v2-overlay[data-rh-v2-overlay="public-menu"] *::before,
.rh-v2-overlay[data-rh-v2-overlay="public-menu"] *::after,
.rh-v2-overlay[data-rh-v2-overlay="space-switcher"],
.rh-v2-overlay[data-rh-v2-overlay="space-switcher"] *,
.rh-v2-overlay[data-rh-v2-overlay="space-switcher"] *::before,
.rh-v2-overlay[data-rh-v2-overlay="space-switcher"] *::after {
  box-sizing: border-box;
}

.rh-v2-public-header {
  position: relative;
  z-index: 80;
  width: 100%;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(125, 211, 252, .06);
  background: rgba(2, 9, 22, .94);
  color: #f8fafc;
  isolation: isolate;
}

.rh-v2-public-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% -40%, rgba(34, 211, 238, .10), transparent 38%),
    linear-gradient(180deg, rgba(5, 17, 31, .78), rgba(2, 9, 22, .94));
}

.rh-v2-public-header__inner {
  width: min(1440px, 100%);
  min-height: 58px;
  margin: 0 auto;
  padding: 0 14px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  border: 1px solid rgba(148, 163, 184, .12);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(8, 22, 36, .88), rgba(4, 15, 27, .82));
  box-shadow:
    0 14px 40px rgba(0, 0, 0, .20),
    inset 0 1px 0 rgba(255, 255, 255, .025);
  backdrop-filter: blur(18px) saturate(1.08);
  -webkit-backdrop-filter: blur(18px) saturate(1.08);
}

/* Lockup público: el isotipo SIEMPRE es cuadrado. */
.rh-v2-public-header .rh-v2-brand,
.rh-v2-overlay[data-rh-v2-overlay="public-menu"] .rh-v2-brand {
  display: inline-flex !important;
  align-items: center !important;
  flex: 0 0 auto !important;
  min-width: 0 !important;
  gap: 11px !important;
  color: #f8fafc !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  line-height: 1 !important;
}

.rh-v2-public-header .rh-v2-brand__mark,
.rh-v2-overlay[data-rh-v2-overlay="public-menu"] .rh-v2-brand__mark {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  max-width: 42px !important;
  min-height: 42px !important;
  max-height: 42px !important;
  flex: 0 0 42px !important;
  aspect-ratio: 1 / 1 !important;
  display: grid !important;
  place-items: center !important;
  overflow: hidden !important;
  padding: 3px !important;
  border: 1px solid rgba(34, 211, 238, .26) !important;
  border-radius: 13px !important;
  background: linear-gradient(180deg, #061324, #020916) !important;
  box-shadow:
    0 0 0 1px rgba(59, 130, 246, .06),
    0 8px 24px rgba(37, 99, 235, .18) !important;
}

.rh-v2-public-header .rh-v2-brand__mark-image,
.rh-v2-overlay[data-rh-v2-overlay="public-menu"] .rh-v2-brand__mark-image {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  min-height: 0 !important;
  max-height: 100% !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: contain !important;
  object-position: center !important;
  border-radius: 10px !important;
  transform: none !important;
}

.rh-v2-public-header .rh-v2-brand__name,
.rh-v2-overlay[data-rh-v2-overlay="public-menu"] .rh-v2-brand__name {
  display: inline-flex !important;
  align-items: baseline !important;
  min-width: 0 !important;
  color: #f8fafc !important;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: clamp(18px, 1.4vw, 22px) !important;
  font-weight: 800 !important;
  letter-spacing: -.035em !important;
  line-height: 1 !important;
}

.rh-v2-public-header .rh-v2-brand__name > span,
.rh-v2-overlay[data-rh-v2-overlay="public-menu"] .rh-v2-brand__name > span {
  color: #29d9d0 !important;
}

.rh-v2-public-header__nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  gap: clamp(4px, .7vw, 10px);
  overflow: hidden;
}

.rh-v2-public-header__nav .rh-v2-nav-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border-radius: 11px;
  color: rgba(226, 232, 240, .86);
  font-size: clamp(13px, 1vw, 15px);
  font-weight: 680;
  text-decoration: none;
  white-space: nowrap;
  transition: color .18s ease, background .18s ease, box-shadow .18s ease;
}

.rh-v2-public-header__nav .rh-v2-nav-link:hover,
.rh-v2-public-header__nav .rh-v2-nav-link:focus-visible {
  color: #fff;
  background: rgba(34, 211, 238, .07);
}

.rh-v2-public-header__nav .rh-v2-nav-link.is-active,
.rh-v2-public-header__nav .rh-v2-nav-link[aria-current="page"] {
  color: #eaffff;
  background: rgba(34, 211, 238, .08);
  box-shadow: inset 0 -2px 0 #22d3ee;
}

.rh-v2-public-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
}

.rh-v2-public-header__actions .rh-v2-button {
  min-height: 40px;
  border-radius: 12px;
  white-space: nowrap;
}

.rh-v2-public-header__actions .rh-v2-button:not(.rh-v2-button--ghost) {
  border-color: rgba(45, 212, 191, .42);
  background: linear-gradient(135deg, #16d7d0, #55d8f0);
  color: #03202b;
  box-shadow: 0 8px 26px rgba(34, 211, 238, .18);
}

.rh-v2-public-header__toggle {
  display: none !important;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  flex: 0 0 42px !important;
  border: 1px solid rgba(148, 163, 184, .16) !important;
  border-radius: 13px !important;
  background: rgba(5, 15, 28, .72) !important;
  color: #dbeafe !important;
}

@media (max-width: 1180px) {
  .rh-v2-public-header__inner {
    gap: 14px;
  }

  .rh-v2-public-header__nav .rh-v2-nav-link {
    padding-inline: 7px;
    font-size: 13px;
  }

  .rh-v2-public-header__actions .rh-v2-button--ghost {
    display: none;
  }
}

@media (max-width: 920px) {
  .rh-v2-public-header {
    padding: 7px 10px;
  }

  .rh-v2-public-header__inner {
    min-height: 56px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 0 10px;
    border-radius: 16px;
  }

  .rh-v2-public-header__nav,
  .rh-v2-public-header__actions {
    display: none !important;
  }

  .rh-v2-public-header__toggle {
    display: inline-grid !important;
    place-items: center !important;
  }

  .rh-v2-public-header .rh-v2-brand__mark {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    flex-basis: 40px !important;
    border-radius: 12px !important;
  }

  .rh-v2-public-header .rh-v2-brand__name {
    font-size: clamp(19px, 5vw, 22px) !important;
  }
}

@media (max-width: 430px) {
  .rh-v2-public-header {
    padding-inline: 8px;
  }

  .rh-v2-public-header__inner {
    min-height: 54px;
    padding-inline: 9px;
    border-radius: 15px;
  }

  .rh-v2-public-header .rh-v2-brand {
    gap: 9px !important;
  }

  .rh-v2-public-header .rh-v2-brand__mark {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    flex-basis: 38px !important;
  }

  .rh-v2-public-header .rh-v2-brand__name {
    font-size: 20px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rh-v2-public-header *,
  .rh-v2-public-header *::before,
  .rh-v2-public-header *::after {
    transition: none !important;
  }
}
