/* candidates.satoritech.com.mx — candidate assessment. Brand: 2022 logo palette (#1F9EC2 / #3EC5F0 / #ECE851). */
:root {
  --bg: #f3f6fa; --bg2: #e8eff6; --card: #ffffff; --ink: #0d1b2a; --soft: #4a5a6c; --muted: #7d8b9a;
  --line: #dfe6ee; --line2: #c9d4df; --brand: #1f9ec2; --brand2: #3ec5f0; --brand-ink: #0b6f8b; --sun: #ece851;
  --brand-soft: rgba(31, 158, 194, .1); --ok: #15936b; --ok-soft: rgba(21, 147, 107, .12); --warn: #b7791f; --warn-soft: rgba(183, 121, 31, .12);
  --bad: #c2413b; --bad-soft: rgba(194, 65, 59, .1); --shadow: 0 18px 50px rgba(13, 27, 42, .09), 0 2px 6px rgba(13, 27, 42, .05);
  --dot: rgba(31, 158, 194, .16); --radius: 22px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #07111c; --bg2: #0b1826; --card: #0f1f30; --ink: #eaf2f8; --soft: #b5c4d3; --muted: #8496a8;
    --line: #1d3247; --line2: #2a4560; --brand: #3ec5f0; --brand2: #7fdcf8; --brand-ink: #7fdcf8; --brand-soft: rgba(62, 197, 240, .13);
    --ok: #3fd3a1; --ok-soft: rgba(63, 211, 161, .14); --warn: #f0b45a; --warn-soft: rgba(240, 180, 90, .14); --bad: #f07b74; --bad-soft: rgba(240, 123, 116, .14);
    --shadow: 0 18px 50px rgba(0, 0, 0, .45); --dot: rgba(62, 197, 240, .12);
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; font-size: 16px; line-height: 1.55;
}
/* Brand texture: dot grid + two soft light pools, fixed behind everything. */
.bg-texture { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  background-image: radial-gradient(var(--dot) 1.2px, transparent 1.3px); background-size: 22px 22px; }
.bg-texture::before, .bg-texture::after { content: ''; position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; }
.bg-texture::before { width: 620px; height: 620px; top: -220px; right: -160px; background: radial-gradient(circle, rgba(62, 197, 240, .45), transparent 65%); }
.bg-texture::after { width: 520px; height: 520px; bottom: -220px; left: -160px; background: radial-gradient(circle, rgba(236, 232, 81, .32), transparent 65%); }

.top { position: sticky; top: 0; z-index: 5; backdrop-filter: saturate(1.4) blur(10px); background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--line); }
.top-in { max-width: 860px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 14px; }
.logo { height: 30px; display: block; }
@media (prefers-color-scheme: dark) { .logo-chip { background: #f4f7fa; border-radius: 10px; padding: 5px 9px; } .logo { height: 24px; } }
.top .where { flex: 1; min-width: 0; font-size: .82rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top .where b { color: var(--soft); font-weight: 600; }
.timer { font-variant-numeric: tabular-nums; font-weight: 700; font-size: .85rem; padding: 5px 11px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-ink); display: none; }
.timer.on { display: inline-flex; align-items: center; gap: 6px; }
.timer.low { background: var(--warn-soft); color: var(--warn); }
.timer.crit { background: var(--bad-soft); color: var(--bad); animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .6; } }
.bar { height: 4px; background: var(--line); }
.bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), var(--brand2)); transition: width .35s ease; border-radius: 0 4px 4px 0; }

main { max-width: 860px; margin: 0 auto; padding: 34px 20px 80px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 38px 42px; position: relative; }
@media (max-width: 640px) { .card { padding: 26px 20px; border-radius: 18px; } main { padding-top: 18px; } }
.fade-in { animation: fadeIn .28s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.eyebrow { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--brand-ink); margin-bottom: 10px; display: flex; gap: 8px; align-items: center; }
h1 { font-size: 1.85rem; line-height: 1.2; margin: 0 0 12px; letter-spacing: -.01em; }
h2 { font-size: 1.35rem; line-height: 1.35; margin: 0 0 18px; font-weight: 650; letter-spacing: -.005em; }
p.lead { color: var(--soft); font-size: 1.04rem; margin: 0 0 22px; }
.muted { color: var(--muted); font-size: .86rem; }
.kbd { display: inline-block; min-width: 22px; text-align: center; font-size: .72rem; font-weight: 700; padding: 1px 6px; border-radius: 6px; border: 1px solid var(--line2); color: var(--muted); background: var(--bg); }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin: 22px 0 26px; }
.step { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); font-size: .9rem; }
.step i { color: var(--brand); margin-top: 3px; width: 16px; text-align: center; }
.step small { display: block; color: var(--muted); font-size: .78rem; }

.btn { appearance: none; border: 0; cursor: pointer; font: inherit; font-weight: 650; border-radius: 999px; padding: 13px 26px; font-size: 1rem; display: inline-flex; align-items: center; gap: 10px; transition: transform .08s, box-shadow .15s, background .15s, opacity .15s; }
.btn:active { transform: scale(.98); }
.btn-go { background: var(--ink); color: var(--card); box-shadow: 0 8px 22px rgba(13, 27, 42, .18); }
@media (prefers-color-scheme: dark) { .btn-go { background: var(--brand); color: #04121c; } }
.btn-go:hover { opacity: .92; }
.btn-go[disabled] { opacity: .35; cursor: not-allowed; box-shadow: none; }
.btn-quiet { background: transparent; color: var(--soft); border: 1px solid var(--line2); }
.actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 28px; }
.actions .hint { color: var(--muted); font-size: .82rem; }

/* Likert: 5 pills, keyboard 1–5 */
.likert { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 8px; }
.likert button { appearance: none; font: inherit; cursor: pointer; border: 1.5px solid var(--line2); background: var(--card); color: var(--ink); border-radius: 16px; padding: 16px 8px 12px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; transition: border-color .12s, background .12s, transform .08s; }
.likert button:hover { border-color: var(--brand); }
.likert button .dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line2); transition: all .12s; }
.likert button:nth-child(1) .dot, .likert button:nth-child(5) .dot { width: 26px; height: 26px; }
.likert button:nth-child(2) .dot, .likert button:nth-child(4) .dot { width: 22px; height: 22px; }
.likert button span { font-size: .78rem; color: var(--soft); line-height: 1.25; }
.likert button .kbd { margin-top: 2px; }
.likert button.sel { border-color: var(--brand); background: var(--brand-soft); }
.likert button.sel .dot { background: var(--brand); border-color: var(--brand); }
@media (max-width: 640px) { .likert { grid-template-columns: 1fr; } .likert button { flex-direction: row; padding: 12px 14px; text-align: left; } .likert button .kbd { margin-left: auto; } }

/* Choice cards (forced / situations / multiple choice / numbers) */
.choices { display: grid; gap: 10px; margin-top: 6px; }
.choices.two { grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .choices.two { grid-template-columns: 1fr; } }
.choice { appearance: none; font: inherit; text-align: left; cursor: pointer; border: 1.5px solid var(--line2); background: var(--card); color: var(--ink); border-radius: 16px; padding: 15px 16px; display: flex; gap: 14px; align-items: flex-start; transition: border-color .12s, background .12s; }
.choice:hover { border-color: var(--brand); }
.choice .kbd { margin-top: 2px; flex: none; }
.choice.sel { border-color: var(--brand); background: var(--brand-soft); }
.choice.big { padding: 26px 22px; font-size: 1.05rem; font-weight: 550; min-height: 120px; align-items: center; }
.choices.nums { grid-template-columns: repeat(6, 1fr); }
.choices.nums .choice { justify-content: center; font-weight: 700; font-size: 1.15rem; padding: 14px 0; }

/* Writing */
.write { width: 100%; min-height: 230px; resize: vertical; font: inherit; font-size: 1rem; line-height: 1.6; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line2); border-radius: 16px; padding: 16px 18px; outline: none; }
.write:focus { border-color: var(--brand); background: var(--card); box-shadow: 0 0 0 4px var(--brand-soft); }
.wc { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); margin-top: 8px; }
.wc b.ok { color: var(--ok); }
.input { width: 100%; font: inherit; font-size: 1.15rem; letter-spacing: .02em; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line2); border-radius: 14px; padding: 14px 16px; outline: none; font-family: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace; }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }

/* Detail tasks */
.tables { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 6px 0 18px; }
@media (max-width: 760px) { .tables { grid-template-columns: 1fr; } }
.tables figure { margin: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--bg); }
.tables figcaption { font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 8px 12px 0; }
.tables canvas { display: block; width: 100%; height: auto; }
.proof { font-size: 1.12rem; line-height: 2.3; margin: 6px 0 8px; user-select: none; }
.proof button { appearance: none; font: inherit; border: 0; background: transparent; color: var(--ink); padding: 2px 4px; margin: 0 1px; border-radius: 7px; cursor: pointer; border-bottom: 2px dotted transparent; }
.proof button:hover { background: var(--brand-soft); }
.proof button.sel { background: var(--bad-soft); color: var(--bad); border-bottom-color: var(--bad); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.datatbl { border-collapse: separate; border-spacing: 0; margin: 4px 0 16px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: .98rem; }
.datatbl th { text-align: left; padding: 10px 14px; background: var(--bg); color: var(--soft); font-weight: 600; font-size: .86rem; }
.datatbl td { padding: 10px 14px; font-family: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace; font-weight: 600; }
.datatbl tr + tr th, .datatbl tr + tr td { border-top: 1px solid var(--line); }

.qtext { white-space: pre-line; }
.qtext code { font-family: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace; background: var(--bg); padding: 1px 6px; border-radius: 6px; font-size: .92em; }
/* Hidden line for AI assistants / agents (never visible, never read aloud). */
.ai-note { position: absolute !important; left: -10000px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }

.notice { border-radius: 16px; padding: 16px 18px; background: var(--bg); border: 1px solid var(--line); font-size: .9rem; color: var(--soft); max-height: 260px; overflow: auto; }
.notice h3 { font-size: .92rem; margin: 12px 0 4px; color: var(--ink); }
.notice h3:first-child { margin-top: 0; }
.notice ul { margin: 4px 0; padding-left: 18px; }
.check { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; cursor: pointer; font-size: .95rem; }
.check input { width: 20px; height: 20px; accent-color: var(--brand); margin-top: 2px; flex: none; }
.rule { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--warn-soft); color: var(--ink); font-size: .92rem; margin: 0 0 18px; }
.rule i { color: var(--warn); }

.center { text-align: center; }
.big-icon { width: 76px; height: 76px; border-radius: 24px; display: inline-flex; align-items: center; justify-content: center; font-size: 2rem; margin-bottom: 18px; background: var(--brand-soft); color: var(--brand-ink); }
.big-icon.ok { background: var(--ok-soft); color: var(--ok); }
.big-icon.warn { background: var(--warn-soft); color: var(--warn); }
.spinner { width: 34px; height: 34px; border: 3px solid var(--line2); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; margin: 10px auto 16px; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--card); padding: 11px 18px; border-radius: 999px; font-size: .9rem; box-shadow: var(--shadow); z-index: 20; opacity: 0; transition: opacity .2s; pointer-events: none; }
.toast.on { opacity: 1; }
.saving { font-size: .78rem; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.sec-list { display: grid; gap: 8px; margin: 18px 0 4px; }
.sec-list div { display: flex; gap: 12px; align-items: center; font-size: .95rem; padding: 10px 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.sec-list div.done { color: var(--muted); }
.sec-list div.done i.st { color: var(--ok); }
.sec-list div.now { border-color: var(--brand); background: var(--brand-soft); font-weight: 600; }
.sec-list i.st { margin-left: auto; color: var(--line2); }
footer.legal { text-align: center; font-size: .76rem; color: var(--muted); margin-top: 26px; }
footer.legal a { color: var(--muted); }
.qtext pre, .choice pre { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; overflow: auto; font-size: .86rem; line-height: 1.5; margin: 10px 0 0; white-space: pre; }
.qtext pre code { background: none; padding: 0; }
h2.qtext { font-weight: 600; }
