:root {
  --fondo: #0f1220;
  --fondo-2: #171b2e;
  --panel: #1e2338;
  --borde: #2d3450;
  --texto: #eef1f8;
  --texto-suave: #a3abc6;
  --acento: #6c8cff;
  --acento-2: #3ad0a8;
  --alerta: #ff8a5c;
  --radio: 14px;
  --sombra: 0 10px 30px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--fondo);
  color: var(--texto);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}

.tarjeta {
  background: var(--panel);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
}

.oculto { display: none !important; }

.suave { color: var(--texto-suave); }

/* --- Notacion matematica (KaTeX, ver /shared/mate.js) --- */
.mate { white-space: nowrap; }
.mate-bloque { display: block; margin: 8px 0; overflow-x: auto; overflow-y: hidden; }
.katex { font-size: 1.05em; }
.katex-display { margin: 0.4em 0; }
