/* Lectura — 2026-09-13 */
body,
.wrap {
  max-width: 880px;
}
.lesson-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1.4rem;
  font-family: var(--mono);
  font-size: var(--fs-small);
}
.lesson-nav-end { margin: 2rem 0 0; }
.modulo-pendiente {
  color: var(--muted);
  font-size: var(--fs-small);
  margin-top: 0.6rem;
}

.site-brand,
.site-tagline {
  text-align: center;
}

.home-lead,
.home-close,
.home-carta p {
  line-height: 1.75;
}

.axioma-list {
  list-style: decimal;
  padding-left: 1.5rem;
  margin: 0 0 1.3rem;
}
.axioma-list li {
  margin: 0 0 0.85rem;
  padding-left: 0.2rem;
  text-indent: 0;
  line-height: 1.7;
}

body.doc-page .site-header,
body.doc-page footer {
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}
body.doc-page .wrap {
  padding-top: 1.35rem;
  padding-bottom: 3rem;
}

.doc-kicker {
  color: var(--muted);
  font-size: var(--fs-small);
  line-height: 1.5;
  margin: -0.4rem 0 1.1rem;
}

.titulo {
  font-size: var(--fs-title);
  line-height: 1.35;
  margin: 0 0 0.7rem;
}

.end {
  margin-top: 2.2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.msg-card {
  aspect-ratio: 16 / 9;
  border-radius: 0;
  justify-content: center;
  padding: 1.6rem 1.4rem 2.2rem;
  background-color: #050907;
  background-image: url("/assets/bg-crt.svg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  scroll-margin-top: 1.2rem;
}
.msg-card::before { opacity: 0.12; }
.msg-card::after {
  inset: 0;
  border: 0;
  background: none;
  opacity: 1;
}
.msg-tag {
  position: absolute;
  left: 14px;
  top: 10px;
  font-size: 0;
}
.msg-tag .msg-anchor {
  font-size: var(--fs-small);
  color: transparent;
}
.msg-body {
  margin: 0;
  text-align: center;
  gap: 0.85rem;
}
.msg-quote {
  color: #e8f4e8;
  font-size: var(--fs);
  line-height: 1.45;
  text-shadow: 0 0 1px rgba(0, 0, 0, 0.8);
}
.msg-author { text-align: center; }
.msg-author span {
  background: var(--red);
  border-radius: 0;
  padding: 0.12em 0.35em 0.08em;
}
.msg-signature {
  position: absolute;
  right: 18px;
  bottom: 12px;
  color: var(--accent);
  font-size: var(--fs-small);
}

.search-hits {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
}
.search-hit {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
.search-hit-line {
  display: block;
  color: var(--accent);
  font-size: var(--fs-small);
  margin: 0 0 0.25rem;
}
.search-hit-title {
  color: var(--fg);
  text-decoration: none;
}
.search-hit-title:hover { color: var(--accent); }
.search-hit-ex {
  color: var(--muted);
  font-size: var(--fs-small);
  margin: 0.35rem 0 0;
  line-height: 1.45;
}

a.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1.15rem;
  z-index: 40;
  display: inline-flex !important;
  align-items: center;
  gap: 0.45em;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--accent);
  font-family: var(--mono);
  font-size: var(--fs-small);
  letter-spacing: 0.04em;
  padding: 0.4em 0.75em;
  text-decoration: none;
}
a.back-to-top[hidden] { display: none !important; }
a.back-to-top:hover {
  border-color: var(--accent);
  text-decoration: none;
}

.gn-objeto {
  border: 1px solid #1c2a14;
  background: #070b07;
  padding: 1rem 1rem 1.15rem;
  margin: 1.8rem 0 0;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}
.gn-objeto-k {
  font-family: var(--mono);
  font-size: var(--fs-small);
  color: var(--accent);
  letter-spacing: 0.08em;
  margin: 0 0 0.35rem;
}
.gn-objeto-pista {
  font-family: var(--mono);
  font-size: var(--fs-small);
  color: var(--muted);
  margin: 0 0 0.7rem;
}
.gn-casos {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0 0 0.75rem;
}
.gn-caso,
.gn-silla {
  display: block;
  width: 100%;
  text-align: left;
  font-family: var(--mono);
  font-size: var(--fs-small);
  line-height: 1.45;
  color: #e8f4e8;
  background: transparent;
  border: 1px solid #1c2a14;
  padding: 0.65rem 0.7rem;
  cursor: pointer;
}
.gn-sillas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin: 0 0 0.75rem;
}
.gn-silla { text-align: center; min-height: 3.4rem; }
.gn-caso.is-on.is-trato,
.gn-silla.is-on.is-trato {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(128, 248, 56, 0.12);
}
.gn-caso.is-on.is-mando,
.gn-silla.is-on.is-mando {
  border-color: #ff3b4a;
  color: #ff8a93;
  background: #1a090b;
}
.gn-ruido {
  margin: 0 0 0.7rem;
}
.gn-ruido-row {
  display: grid;
  grid-template-columns: 3.2rem 1fr 2.4rem;
  gap: 0.4rem;
  align-items: center;
  margin: 0 0 0.28rem;
  font-family: var(--mono);
  font-size: var(--fs-small);
  color: #f4fff0;
  font-variant-numeric: tabular-nums;
}
.gn-ruido-row i {
  display: block;
  height: 4px;
  max-width: 100%;
  box-shadow: 0 0 8px currentColor;
}
.gn-ruido-row:nth-child(2) i { background: var(--accent); color: var(--accent); }
.gn-ruido-row:nth-child(3) i { background: #ff3b4a; color: #ff3b4a; }
.gn-ruido-row:nth-child(4) i { background: #f8e038; color: #f8e038; }
.gn-ruido-row em {
  font-style: normal;
  text-align: right;
  color: #f4fff0;
}
.gn-svg {
  display: block;
  width: 100%;
  height: auto;
  margin: 0.2rem 0 0.55rem;
}
.gn-grid {
  stroke: #1c2a14;
  stroke-width: 1;
}
.gn-poly {
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: square;
  filter: drop-shadow(0 0 4px currentColor);
}
.gn-poly-verde { stroke: var(--accent); color: var(--accent); }
.gn-poly-rojo { stroke: #ff3b4a; color: #ff3b4a; }
.gn-poly-amarillo { stroke: #f8e038; color: #f8e038; }
.gn-poly-blanco { stroke: #f4fff0; color: #f4fff0; }
.gn-svg-n {
  fill: #f4fff0;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 9px;
}
.gn-objeto-leyenda {
  font-family: var(--mono);
  font-size: var(--fs-small);
  color: #e8f4e8;
  margin: 0;
  min-height: 2.4em;
}
.gn-objeto-static {
  color: var(--muted);
  font-size: var(--fs-small);
}
