/* FASE 8.5 | Components header */
/* Reglas duplicadas de styles.css para validacion modular segura. */

.topbar {
  background: #0f172a;
  border-bottom: 1px solid #24324a;
  padding: 0 20px;
}

.topbar-inner {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo {
  font-size: 34px;
}

.brand h1 {
  margin: 0;
  color: #facc15;
}

.brand p {
  margin: 0;
  color: #cbd5e1;
}

.brand-tagline {
  margin: 0;
  font-size: 14px;
  opacity: 0.8;
}

nav {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 10px;
  justify-content: end;
}

nav a,
.versions a,
.card a {
  text-decoration: none;
  color: white;
  background: #2a1f13;
  border: 1px solid #8b6b2e;
  padding: 12px 18px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
}

nav a.active,
nav a:hover,
.versions a:hover,
.card a:hover {
  background: #b8872f;
}

nav a {
  text-align: center;
  justify-content: center;
}

@media (max-width: 720px) {
  .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  nav {
    grid-template-columns: repeat(4, auto);
    justify-content: start;
  }
}


/* COD header stack | logo real + SATVIRTUAL debajo */
.brand {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  align-items: center;
  gap: 8px;
}

.brand > div:last-child {
  text-align: center;
}

.brand h1 {
  margin: 0;
}

.brand p {
  margin: 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.logo img {
  display: block;
}
