/* css/teoria.css — Página de teoría (chrome del shell + prosa).
   Scope bajo .teoria. Usa los tokens de base.css → tema día/noche gratis. */

.teoria-bar { margin-bottom: 1.5rem; }
.teoria-back {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: var(--tap);
  padding: .5rem .9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
}
.teoria-back:hover {
  background: var(--surface-2);
  border-color: var(--accent);
  color: var(--accent-strong);
}

.teoria-body { line-height: 1.7; }
.teoria-body h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(1.6rem, 6vw, 2.2rem);
  letter-spacing: -.02em;
}
.teoria-body h2 {
  margin: 2.25rem 0 .75rem;
  font-size: clamp(1.25rem, 4.5vw, 1.55rem);
  letter-spacing: -.01em;
}
.teoria-body h3 { margin: 1.75rem 0 .5rem; font-size: 1.05rem; }
.teoria-body p { margin: 0 0 1rem; }
.teoria-body em { font-style: italic; }

.teoria-body blockquote {
  margin: 1rem 0;
  padding: .75rem 1rem;
  border-left: 3px solid var(--accent);
  background: var(--surface-2);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
}

.teoria-body .eq {
  margin: 1rem 0;
  padding: .7rem 1rem;
  text-align: center;
  font-family: var(--font-math);
  font-size: 1.2rem;
  font-weight: 600;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  overflow-x: auto;
}

.teoria-body pre {
  margin: 1rem 0;
  padding: 1rem 1.25rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-math);
  font-size: 1rem;
  line-height: 1.4;
  text-align: center;
  overflow-x: auto;
}

.teoria-body ul,
.teoria-body ol { margin: 0 0 1rem; padding-left: 1.5rem; }
.teoria-body li { margin: .35rem 0; }

.teoria-body hr { margin: 2rem 0; border: 0; border-top: 1px solid var(--border); }