/* =============================================================
   Base: variables de diseño, reset y utilidades.
   Puntos de quiebre usados en todos los módulos:
     1200px laptop chica · 1024px tablet horizontal / laptop baja
     860px tablet vertical · 640px celular · 380px celular chico
   ============================================================= */
:root {
  --fuente: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --fuente-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --fondo: #f4f6fb;
  --superficie: #ffffff;
  --superficie-2: #f8fafc;
  --tinta: #0f172a;
  --tinta-2: #334155;
  --apagado: #64748b;
  --tenue: #94a3b8;
  --linea: #e6e9f0;
  --linea-fuerte: #d5dae3;

  --acento: #4f46e5;
  --acento-presionado: #4338ca;
  --acento-suave: #eef0ff;
  --acento-texto: #4f46e5; /* acento legible sobre fondo claro */
  --sobre-acento: #ffffff;

  --ok: #15803d;
  --ok-suave: #e7f6ec;
  --error: #dc2626;
  --error-suave: #fdecec;
  --aviso: #a16207;
  --aviso-suave: #fdf5e1;

  --radio: 16px;
  --radio-chico: 10px;
  --sombra: 0 1px 2px rgba(15, 23, 42, .04), 0 6px 20px -8px rgba(15, 23, 42, .10);
  --sombra-media: 0 2px 4px rgba(15, 23, 42, .05), 0 14px 32px -12px rgba(15, 23, 42, .18);
  --sombra-alta: 0 30px 70px -20px rgba(15, 23, 42, .35);
  --transicion: .18s cubic-bezier(.4, 0, .2, 1);

  /* Márgenes laterales seguros (notch del iPhone). */
  --margen-izq: max(16px, env(safe-area-inset-left));
  --margen-der: max(16px, env(safe-area-inset-right));
}

/* Los paneles de institución y estudiante reemplazan --acento, --acento-*,
   --sobre-acento y --fondo con la marca de su institución (ver Marca.js). */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { min-height: 100%; }

body {
  /* Se declara en body (no en :root) para que use el --acento de la
     institución, que Marca.js aplica sobre body. */
  /* Del color de la marca a un tono vecino (mismo color, matiz +35°). */
  --degradado: linear-gradient(135deg, var(--acento), color-mix(in oklab, var(--acento) 78%, white));
  --degradado: linear-gradient(135deg, var(--acento), oklch(from var(--acento) calc(l + .06) c calc(h + 35)));
  margin: 0;
  font-family: var(--fuente);
  font-size: 14px;
  line-height: 1.55;
  color: var(--tinta);
  background: var(--fondo);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

h1, h2, h3, p { margin: 0; }
h1, h2, h3 { letter-spacing: -.02em; }
button, input, select { font-family: inherit; }
img, video, iframe { max-width: 100%; }

:focus-visible { outline: 2px solid var(--acento); outline-offset: 2px; }
::selection { background: var(--acento-suave); color: var(--tinta); }

[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icono { width: 18px; height: 18px; flex: none; }

.mono { font-family: var(--fuente-mono); font-feature-settings: "tnum" 1; }
.derecha { text-align: right; }
.quebrar { word-break: break-all; }
.texto-ok { color: var(--ok); }
.texto-error { color: var(--error); font-size: 12px; }

@keyframes entrar { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media (max-width: 640px) {
  body { font-size: 14.5px; }
}
