/* =========================
   Fuentes
   ========================= */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600&family=JetBrains+Mono:wght@400;600&family=Inter:wght@400;600&display=swap');

/* =========================
   Base
   ========================= */

html {
  background-color: #0d1117;
  color: #c9d1d9;
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.6;
}

body {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

/* =========================
   Encabezados
   ========================= */

h1, h2, h3, h4, h5, h6 {
  font-family: Orbitron, sans-serif;
  font-weight: 600;
  color: #f0f6fc;
  margin: 2rem 0 1rem 0;
  line-height: 1.3;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; border-bottom: 1px solid #30363d; padding-bottom: 0.5rem; }
h3 { font-size: 1.3rem; color: #58a6ff; }
h4 { font-size: 1.1rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.9rem; }

/* =========================
   Párrafos y listas
   ========================= */

p {
  margin: 0.5rem 0;
}

ul, ol {
  margin: 0.5rem 0 0.5rem 1.5rem;
  padding: 0;
}

li {
  margin: 0.3rem 0;
}

/* =========================
   Énfasis
   ========================= */

strong {
  color: #f0f6fc;
}

em {
  color: #d2a8ff;
}

del {
  color: #8b949e;
  text-decoration: line-through;
}

/* =========================
   Enlaces
   ========================= */

a {
  color: #79c0ff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* =========================
   Código inline
   ========================= */

code {
  font-family: JetBrains Mono, monospace;
  font-size: 0.85rem;
  background: #0d1117;
  padding: 0.15em 0.35em;
  border-radius: 4px;
}

/* =========================
   Bloques de código
   ========================= */

pre {
  margin: 0.8rem 0;
  padding: 0.8rem 1rem;
  background: #0d1117;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px #21262d;
  overflow-x: auto;
}

pre code {
  display: block;
  font-family: JetBrains Mono, monospace;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #c9d1d9;
  padding: 0;
  margin: 0;
}

/* =========================
   Imágenes y blockquotes
   ========================= */

img {
  max-width: 100%;
  border-radius: 8px;
  margin: 1rem 0;
}

blockquote {
  border-left: 3px solid #30363d;
  padding-left: 1rem;
  color: #8b949e;
  margin: 1rem 0;
}

/* =========================
   Tablas
   ========================= */

table {
  border-collapse: collapse;
  width: 100%;
  margin: 1rem 0;
}

th, td {
  border: 1px solid #30363d;
  padding: 0.5rem 0.8rem;
}

th {
  background-color: #161b22;
}

/* =========================
   Hero / Header
   ========================= */

header.hero {
  text-align: center;
  padding: 3rem 1rem 2rem;
}

header.hero img {
  max-width: 280px;
  margin-bottom: 1.5rem;
}

header.hero h1 {
  font-size: 1.4rem;
}

/* =========================
   Tarjetas / bloques
   ========================= */

.card {
  background: #161b22;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem 0;
  box-shadow: 0 0 0 1px #21262d;
}

/* =========================
   Avisos / notices
   ========================= */

.notice {
  padding: 1rem 1.2rem;
  border-radius: 10px;
  margin: 2.5rem 0;
  font-size: 0.85rem;
}

.notice.warning {
  background: #2a0000;
  border: 1px solid #ff3333;
  color: #ff9999;
}

/* =========================
   Footer
   ========================= */

.site-footer {
  text-align: center;
  font-size: 0.7rem;
  color: #8b949e;
  margin: 4rem 0 2rem;
}

/* =========================
   Barra superior responsive
   ========================= */

header.hero {
  padding: 1.5rem 0 1rem;
}

.topbar {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.brand img {
  height: 42px;
}

.brand-title {
  font-family: Orbitron, sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
}

/* Navegación */
.main-nav {
  display: flex;
  gap: 1rem;
}

.main-nav a {
  font-family: JetBrains Mono, monospace;
  font-size: 0.85rem;
}

/* =========================
   Móvil
   ========================= */

@media (max-width: 640px) {

  .topbar {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .brand {
    justify-content: center;
  }

  .main-nav {
    margin-top: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
  }

}
