/* ─────────────────────────────────────────────────────────────────
   Simulador Docente — sistema visual base
   Tipografía: Fraunces (titulares) + Inter (UI) + JetBrains Mono (códigos)
   Paleta: azul marino #0B2545, teal #0D9488, ámbar premium #D97706
   ───────────────────────────────────────────────────────────────── */

:root {
  --ink: #0B2545;
  --ink-2: #1A365D;
  --ink-soft: #4A5568;
  --muted: #718096;
  --border: #E5E1D8;
  --border-strong: #CBD5DC;

  --bg: #FAF7F0;          /* crema cálido */
  --bg-2: #F4EFE3;        /* crema más oscuro */
  --surface: #FFFFFF;

  --teal: #0D9488;
  --teal-2: #0E7C72;
  --teal-soft: #CCFBF1;

  --amber: #D97706;        /* premium */
  --amber-soft: #FEF3C7;

  --red: #C53030;
  --red-soft: #FED7D7;
  --green: #15803D;
  --green-soft: #DCFCE7;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;

  --shadow-sm: 0 1px 2px rgba(11, 37, 69, 0.06), 0 1px 3px rgba(11, 37, 69, 0.04);
  --shadow: 0 4px 14px rgba(11, 37, 69, 0.08);
  --shadow-lg: 0 16px 40px rgba(11, 37, 69, 0.14);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'cv11','ss01';
}
body { min-height: 100vh; }

h1, h2, h3, h4 { font-family: 'Fraunces', Georgia, serif; font-weight: 600; letter-spacing: -0.015em; line-height: 1.15; color: var(--ink); }
h1 { font-size: clamp(40px, 5.2vw, 68px); font-weight: 600; }
h2 { font-size: clamp(28px, 3.4vw, 42px); }
h3 { font-size: 22px; }
h4 { font-size: 17px; font-family: 'Inter', sans-serif; font-weight: 600; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
code, .mono { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 0.9em; }

/* ── Layout helpers ─────────────────────────── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 880px; margin: 0 auto; padding: 0 24px; }
.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; }
.gap-1 { gap: 4px; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; }
.gap-5 { gap: 20px; } .gap-6 { gap: 24px; } .gap-8 { gap: 32px; }

.muted { color: var(--muted); }
.soft { color: var(--ink-soft); }
.center { text-align: center; }

/* ── Buttons ─────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: var(--radius); font-weight: 600; font-size: 14px;
  border: 1px solid transparent; transition: all 0.15s; white-space: nowrap;
  text-decoration: none; line-height: 1;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--ink-2); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-2); }
.btn-amber { background: var(--amber); color: #fff; }
.btn-amber:hover { background: #B45309; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--bg-2); }
.btn-link { background: transparent; color: var(--ink); padding: 4px 8px; font-weight: 600; }
.btn-link:hover { text-decoration: underline; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-lg { padding: 14px 26px; font-size: 15px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Surface / Card ─────────────────────────── */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; }
.card-pad-lg { padding: 32px; }
.card-flat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }

/* ── Pills / Badges ─────────────────────────── */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: var(--bg-2); color: var(--ink-soft); border: 1px solid var(--border);
}
.pill-teal { background: var(--teal-soft); color: var(--teal-2); border-color: transparent; }
.pill-amber { background: var(--amber-soft); color: #92400E; border-color: transparent; }
.pill-green { background: var(--green-soft); color: var(--green); border-color: transparent; }
.pill-red { background: var(--red-soft); color: var(--red); border-color: transparent; }
.pill-ink { background: var(--ink); color: #fff; border-color: transparent; }

/* ── Inputs ─────────────────────────────────── */
.input, .select, .textarea {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--border-strong); border-radius: var(--radius);
  font-size: 14px; font-family: inherit; background: var(--surface); color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(11,37,69,0.08);
}
.label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
.field { margin-bottom: 14px; }

/* ── Header (público) ─────────────────────────── */
.header { position: sticky; top: 0; z-index: 50; background: rgba(250,247,240,0.86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.nav { display: flex; gap: 28px; align-items: center; }
.nav a { font-size: 14px; font-weight: 500; color: var(--ink-soft); }
.nav a:hover { color: var(--ink); }

/* ── Tema variants (tweak) ─────────────────────────── */
body.theme-confianza {
  --bg: #F8FAFC;
  --bg-2: #EEF2F7;
  --border: #E2E8F0;
  --teal: #2563EB;
  --teal-2: #1D4ED8;
  --teal-soft: #DBEAFE;
}
body.theme-calido {
  --ink: #1E1B16;
  --ink-2: #2A251D;
  --bg: #FBF6EC;
  --bg-2: #F0E8D6;
  --border: #E5DCC4;
  --teal: #B45309;
  --teal-2: #92400E;
  --teal-soft: #FEE7C2;
  --amber: #0D9488;
  --amber-soft: #CCFBF1;
}

/* ── Misc ─────────────────────────────────── */
.divider { height: 1px; background: var(--border); margin: 32px 0; }
.dot { width: 8px; height: 8px; border-radius: 999px; background: currentColor; display: inline-block; }
.kbd {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  padding: 2px 7px; border-radius: 6px; background: var(--bg-2);
  border: 1px solid var(--border); color: var(--ink-soft);
}
@media (max-width: 720px) {
  .nav-desktop { display: none; }
}
