/* Estilo de las páginas de noticias de ByteDiario */
:root {
  --bg: #0E1116; --ink: #FFFFFF; --muted: #9BA3AF; --line: #232934;
  --surface: #141920; --brand: #C6F432; --brand-ink: #0E1116; --focus: #36E2C6;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--ink);
  font-family: "Atkinson Hyperlegible", system-ui, sans-serif;
  font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 46rem; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

header { padding: 24px 0; border-bottom: 1px solid var(--line); }
header .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; max-width: 64rem; }
.wordmark {
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 800;
  font-size: 1.25rem; letter-spacing: -0.02em; text-decoration: none;
}
.wordmark span { color: var(--brand); }
header nav { display: flex; gap: 20px; }
header nav a { color: var(--muted); text-decoration: none; font-weight: 700; }
header nav a:hover { color: var(--ink); }

article { padding: 48px 0 8px; }
.meta { color: var(--muted); font-size: .95rem; margin: 0 0 12px; }
.cat { color: var(--brand); font-weight: 700; margin-right: 8px; }
h1 {
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 800;
  font-size: clamp(2rem, 6vw, 3rem); line-height: 1.08; letter-spacing: -0.03em;
  margin: 0 0 20px;
}
.lede { font-size: 1.25rem; line-height: 1.55; margin: 0 0 32px; }

.why {
  border-left: 3px solid var(--brand); background: var(--surface);
  border-radius: 0 12px 12px 0; padding: 18px 22px; margin: 0 0 32px;
}
.why h2 { font-size: 1rem; margin: 0 0 4px; color: var(--brand); }
.why p { margin: 0; }

.source { border-top: 1px solid var(--line); padding-top: 24px; }
.source p { margin: 0 0 12px; color: var(--muted); }
.source strong { color: var(--ink); }
.btn-secondary {
  display: inline-block; border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 20px; font-weight: 700; text-decoration: none;
}
.btn-secondary:hover { border-color: var(--brand); }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 28px 0 0; color: var(--muted); font-size: .95rem; }
.share a, .share button {
  color: var(--ink); font: inherit; font-weight: 700; background: none; border: 0; padding: 0;
  cursor: pointer; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px;
}
.share a:hover, .share button:hover { text-decoration-color: var(--brand); }

.join {
  margin: 48px 0; padding: 28px; border-radius: 16px;
  background: var(--brand); color: var(--brand-ink);
}
.join h2 {
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 800;
  font-size: 1.5rem; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 8px;
}
.join p { margin: 0 0 20px; }
.btn {
  display: inline-block; background: var(--brand-ink); color: #fff;
  border-radius: 999px; padding: 12px 22px; font-weight: 700; text-decoration: none;
}
.btn:hover { background: #2a3140; }

.related { padding-bottom: 48px; }
.related h2 {
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 800;
  font-size: 1.4rem; letter-spacing: -0.02em; margin: 0 0 8px;
}
.related ul { list-style: none; margin: 0; padding: 0; }
.related li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.related li a { display: block; font-weight: 700; text-decoration: none; line-height: 1.35; }
.related li a:hover { text-decoration: underline; text-decoration-color: var(--brand); text-underline-offset: 3px; }
.related li span { color: var(--muted); font-size: .9rem; }

footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: .95rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; max-width: 64rem; }

.notfound { padding: 72px 0 96px; }
.notfound p { color: var(--muted); max-width: 36rem; }
