/* Evaluación 360° · Neuthink — sistema visual.
   Vidrio sobre una atmósfera de dos campos de color (teal y navy) hecha con gradientes; de día
   sobre crema, de noche sobre navy profundo. Big Shoulders Display para títulos, Poppins para el
   cuerpo, ambas autoalojadas. Los tokens viven acá y solo acá. */

@font-face { font-family: 'Big Shoulders Display'; font-style: normal; font-weight: 600 900; font-display: swap; src: url('fonts/bigshoulders-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/poppins-400-latin.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/poppins-500-latin.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/poppins-600-latin.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/poppins-700-latin.woff2') format('woff2'); }

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;
  --bg: #f3efe6;
  --bg-blob-1: rgba(126, 176, 179, 0.42);
  --bg-blob-2: rgba(28, 56, 83, 0.12);
  --bg-blob-3: rgba(255, 255, 255, 0.9);
  --glass: rgba(255, 255, 255, 0.56);
  --glass-strong: rgba(255, 255, 255, 0.78);
  --glass-border: rgba(255, 255, 255, 0.72);
  --glass-shadow: 0 18px 50px -28px rgba(28, 56, 83, 0.35), 0 2px 6px -3px rgba(28, 56, 83, 0.12);
  --ink: #1c3853;
  --ink-2: #3f556c;
  --ink-3: #566b82;
  --accent: #477477;
  --accent-2: #7eb0b3;
  --accent-soft: rgba(126, 176, 179, 0.2);
  --navy: #1c3853;
  --navy-d: #142a3f;
  --btn-primary-bg: linear-gradient(135deg, #1c3853, #142a3f);
  --btn-primary-ink: #fff;
  --ok: #3d8a5e;
  --ok-soft: rgba(61, 138, 94, 0.16);
  --err: #b54a4a;
  --err-soft: rgba(181, 74, 74, 0.14);
  --warn: #b7761f;
  --warn-soft: rgba(201, 141, 62, 0.18);
  --sand: #e8e2d4;
  --radius-card: 18px;
  --radius-ctl: 12px;
  --blur: 18px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --sel: rgba(126, 176, 179, 0.35);
  --logo-dia: inline; --logo-noche: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0f1c2b;
    --bg-blob-1: rgba(126, 176, 179, 0.16);
    --bg-blob-2: rgba(28, 56, 83, 0.9);
    --bg-blob-3: rgba(90, 138, 141, 0.12);
    --glass: rgba(255, 255, 255, 0.07);
    --glass-strong: rgba(255, 255, 255, 0.11);
    --glass-border: rgba(255, 255, 255, 0.13);
    --glass-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.7), 0 2px 6px -3px rgba(0, 0, 0, 0.5);
    --ink: #f0ece3;
    --ink-2: #c6d0da;
    --ink-3: #93a5b8;
    --accent: #9cc7c9;
    --accent-2: #7eb0b3;
    --accent-soft: rgba(126, 176, 179, 0.18);
    --btn-primary-bg: linear-gradient(135deg, #9cc7c9, #7eb0b3);
    --btn-primary-ink: #0f1c2b;
    --ok: #7fcf9f;
    --ok-soft: rgba(127, 207, 159, 0.16);
    --err: #f08f8f;
    --err-soft: rgba(240, 143, 143, 0.14);
    --warn: #e8b06a;
    --warn-soft: rgba(232, 176, 106, 0.16);
    --sand: rgba(255, 255, 255, 0.14);
    --sel: rgba(126, 176, 179, 0.45);
    --logo-dia: none; --logo-noche: inline;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f1c2b;
  --bg-blob-1: rgba(126, 176, 179, 0.16);
  --bg-blob-2: rgba(28, 56, 83, 0.9);
  --bg-blob-3: rgba(90, 138, 141, 0.12);
  --glass: rgba(255, 255, 255, 0.07);
  --glass-strong: rgba(255, 255, 255, 0.11);
  --glass-border: rgba(255, 255, 255, 0.13);
  --glass-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.7), 0 2px 6px -3px rgba(0, 0, 0, 0.5);
  --ink: #f0ece3;
  --ink-2: #c6d0da;
  --ink-3: #93a5b8;
  --accent: #9cc7c9;
  --accent-2: #7eb0b3;
  --accent-soft: rgba(126, 176, 179, 0.18);
  --btn-primary-bg: linear-gradient(135deg, #9cc7c9, #7eb0b3);
  --btn-primary-ink: #0f1c2b;
  --ok: #7fcf9f;
  --ok-soft: rgba(127, 207, 159, 0.16);
  --err: #f08f8f;
  --err-soft: rgba(240, 143, 143, 0.14);
  --warn: #e8b06a;
  --warn-soft: rgba(232, 176, 106, 0.16);
  --sand: rgba(255, 255, 255, 0.14);
  --sel: rgba(126, 176, 179, 0.45);
  --logo-dia: none; --logo-noche: inline;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  font-size: 16px; line-height: 1.55;
  background: var(--bg); color: var(--ink);
  min-height: 100vh; min-height: 100svh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* La atmósfera: dos campos de color y una luz, fijos, detrás del vidrio. */
body::before {
  content: ''; position: fixed; inset: -10%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 55% at 12% 8%, var(--bg-blob-1), transparent 70%),
    radial-gradient(55% 60% at 88% 92%, var(--bg-blob-2), transparent 72%),
    radial-gradient(40% 40% at 60% 40%, var(--bg-blob-3), transparent 70%);
  filter: blur(0.5px);
}
body > * { position: relative; z-index: 1; }
::selection { background: var(--sel); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
img { max-width: 100%; height: auto; }
h1, h2, h3 { color: var(--ink); text-wrap: balance; }
h1 { font-family: 'Big Shoulders Display', 'Poppins', sans-serif; font-weight: 800; font-size: clamp(32px, 4.2vw, 48px); letter-spacing: 0.01em; text-transform: uppercase; line-height: 1; margin: 0 0 10px; }
h2 { font-size: 15px; font-weight: 600; letter-spacing: 0.02em; margin: 0 0 12px; }
h3 { font-size: 15px; font-weight: 600; margin: 0 0 6px; }
p { margin: 0 0 10px; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.lead { font-size: 15px; color: var(--ink-2); max-width: 70ch; margin: 0 0 22px; }
.eyebrow { display: none; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; background: var(--accent-soft); padding: 1px 6px; border-radius: 6px; }
* { scrollbar-width: thin; scrollbar-color: var(--accent-2) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--accent-2); border-radius: 999px; border: 3px solid transparent; background-clip: content-box; }

/* ---------- Vidrio ---------- */
.glass, .glass-strong {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(var(--blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(140%);
  border-radius: var(--radius-card);
}
.glass-strong { background: var(--glass-strong); }
.card { padding: 22px 24px; }

/* ---------- Estructura ---------- */
.wrap { max-width: 1040px; margin: 0 auto; padding: 18px 16px 72px; }
.topbar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; margin-bottom: 22px;
  border-radius: 16px;
}
.topbar.sticky { position: sticky; top: 10px; z-index: 20; margin: 10px 16px 0; }
.topbar .brand { display: inline-flex; align-items: center; line-height: 0; }
.topbar .logo { height: 34px; width: auto; }
.topbar .spacer { flex: 1; }
.topbar .user { font-size: 13px; color: var(--ink-2); }
.topbar .bar { position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px; background: transparent; border-radius: 3px; overflow: hidden; }
.topbar .bar .fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent-2), var(--accent)); transition: width .4s var(--ease); }
.logo-dia { display: var(--logo-dia); }
.logo-noche { display: var(--logo-noche); }
.hero { margin: 6px 0 22px; }
.hero p { color: var(--ink-2); max-width: 64ch; font-size: 15px; }
.summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 22px; }
.stat { padding: 16px 18px; }
.stat .num { font-size: 30px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.stat .lbl { font-size: 12px; color: var(--ink-3); margin-top: 6px; }
.section-title { font-size: 14px; font-weight: 600; margin: 22px 0 12px; color: var(--ink); }
.proceso + .proceso { margin-top: 10px; }
.cards { display: grid; gap: 12px; }
.empty { padding: 28px; text-align: center; color: var(--ink-3); }
.aviso { padding: 12px 16px; font-size: 14px; border-radius: 14px; }
.aviso.warn { border-color: rgba(201, 141, 62, 0.5); }
.pie { margin-top: 34px; font-size: 13px; color: var(--ink-3); text-align: center; }
.pie a { color: var(--ink-3); }
.item + .item { margin-top: 12px; }

/* ---------- Controles ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px;
  border: 1px solid transparent; border-radius: var(--radius-ctl);
  font: inherit; font-size: 14px; font-weight: 600; line-height: 1.2;
  color: var(--ink); background: transparent; cursor: pointer; text-decoration: none;
  transition: transform .18s var(--ease), box-shadow .22s var(--ease), background .2s, border-color .2s;
}
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--btn-primary-bg); color: var(--btn-primary-ink); box-shadow: 0 10px 24px -12px rgba(28, 56, 83, 0.55); position: relative; overflow: hidden; --mx: 50%; --my: 50%; }
.btn-primary::before { content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity .25s; background: radial-gradient(160px circle at var(--mx) var(--my), rgba(255, 255, 255, 0.28), transparent 60%); pointer-events: none; }
.btn-primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 14px 30px -12px rgba(28, 56, 83, 0.7); }
.btn-primary:hover:not(:disabled)::before { opacity: 1; }
.btn-ghost { background: var(--glass-strong); border-color: var(--glass-border); color: var(--ink-2); }
.btn-ghost:hover:not(:disabled) { color: var(--ink); background: var(--glass); }
.btn-success { background: linear-gradient(135deg, var(--ok), var(--accent)); color: #fff; }
.btn-link { background: transparent; color: var(--accent); min-height: 36px; padding: 6px 10px; font-size: 13px; }
.btn-link:hover { text-decoration: underline; }
.btn-sm { min-height: 38px; padding: 7px 14px; font-size: 13px; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 5px 11px; border-radius: 999px; background: var(--accent-soft); color: var(--ink); font-size: 12px; font-weight: 500; }
.pill.soft { background: var(--glass-strong); color: var(--ink-3); border: 1px solid var(--glass-border); font-weight: 500; }
.pill.warn { background: var(--warn-soft); }
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: .02em; background: var(--glass-strong); color: var(--ink-2); border: 1px solid var(--glass-border); }
.badge.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.badge.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
label { display: block; font-size: 12px; font-weight: 500; color: var(--ink-2); margin-bottom: 5px; }
input:not([type="checkbox"]):not([type="radio"]), select, textarea {
  width: 100%; min-height: 44px; padding: 10px 13px;
  font: inherit; font-size: 15px; color: var(--ink);
  background: var(--glass-strong); border: 1.5px solid var(--glass-border); border-radius: var(--radius-ctl);
  outline: none; transition: border-color .18s, box-shadow .18s;
  caret-color: var(--accent);
}
input::placeholder, textarea::placeholder { color: var(--ink-3); opacity: 1; }
input:focus, select:focus, textarea:focus { border-color: var(--accent-2); box-shadow: 0 0 0 4px var(--accent-soft); }
input:disabled, select:disabled { opacity: .6; }
input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--accent); cursor: pointer; }
textarea { resize: vertical; line-height: 1.5; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: var(--ink); margin: 16px 0; cursor: pointer; }
.check input { margin-top: 2px; flex: 0 0 auto; }
.actions { display: flex; gap: 10px; justify-content: space-between; align-items: center; margin-top: 18px; flex-wrap: wrap; }
.actions.center { justify-content: center; }
.err { color: var(--err); font-size: 14px; min-height: 1.2em; margin-top: 8px; }
.status { font-size: 13px; color: var(--ink-3); min-height: 1.2em; margin-top: 8px; }
.status.ok { color: var(--ok); } .status.err { color: var(--err); }
.toggle-theme { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--glass-border); background: var(--glass-strong); cursor: pointer; position: relative; flex: 0 0 auto; }
.toggle-theme::before { content: ''; position: absolute; inset: 11px; border-radius: 50%; background: var(--accent); box-shadow: inset -5px -4px 0 0 var(--glass-strong); transition: box-shadow .3s var(--ease), background .3s; }
html[data-theme="dark"] .toggle-theme::before { box-shadow: inset 0 0 0 0 transparent; background: #f0ece3; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%) translateY(14px); background: var(--navy); color: #fff; padding: 9px 16px; border-radius: 999px; font-size: 13px; opacity: 0; transition: opacity .2s, transform .25s var(--ease); z-index: 60; pointer-events: none; box-shadow: var(--glass-shadow); }
html[data-theme="dark"] .toast { background: #f0ece3; color: #0f1c2b; }
.toast.show { opacity: 1; transform: translateX(-50%); }
.toast.err { background: var(--err); color: #fff; }
/* Una tabla más ancha que el teléfono se desplaza dentro de su marco, nunca la página. */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
table.table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--ink-3); padding: 8px 10px; border-bottom: 1px solid var(--glass-border); }
table.table td { padding: 9px 10px; border-bottom: 1px solid var(--glass-border); vertical-align: middle; }

/* ---------- Tarjetas de evaluación (home) ---------- */
.card.eval { display: grid; grid-template-columns: 52px 1fr auto; gap: 16px; align-items: center; padding: 18px 20px; opacity: 0; animation: cardIn .5s var(--ease) forwards; transition: transform .18s var(--ease), box-shadow .25s; }
.card.eval:hover { transform: translateY(-2px); }
.card.eval.done { border-color: rgba(61, 138, 94, 0.35); }
.card.eval .icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--ink); }
.card.eval .icon svg { width: 24px; height: 24px; }
.card.eval.done .icon { background: var(--ok-soft); color: var(--ok); }
.card.eval h3 { margin: 0 0 3px; font-size: 16px; }
.card.eval .sub { font-size: 13px; color: var(--ink-3); margin-bottom: 8px; }
.card.eval .sub strong { color: var(--ink); font-weight: 600; }
.card .bar { height: 6px; background: var(--glass-border); border-radius: 3px; overflow: hidden; }
.card .bar .fill { height: 100%; width: 0; border-radius: 3px; background: linear-gradient(90deg, var(--accent-2), var(--accent)); transition: width .8s var(--ease); }
.card.eval.done .bar .fill { background: linear-gradient(90deg, var(--ok), var(--accent)); }
.card .progress-txt { font-size: 12px; color: var(--ink-3); margin-top: 4px; font-variant-numeric: tabular-nums; }
.card.eval .cta { white-space: nowrap; }
@keyframes cardIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Carrusel de evaluación ---------- */
body.evaluar .stage { position: relative; max-width: 760px; margin: 0 auto; padding: 36px 16px 90px; min-height: calc(100svh - 120px); display: flex; flex-direction: column; justify-content: center; }
.panel { padding: 36px 32px; opacity: 0; transform: translateY(12px); animation: panelIn .45s var(--ease) forwards; }
@keyframes panelIn { to { opacity: 1; transform: none; } }
.panel.out-left { animation: outL .22s ease-in forwards; } .panel.out-right { animation: outR .22s ease-in forwards; }
@keyframes outL { to { opacity: 0; transform: translateX(-28px); } } @keyframes outR { to { opacity: 0; transform: translateX(28px); } }
.panel.in-right { animation: inR .4s var(--ease) forwards; } .panel.in-left { animation: inL .4s var(--ease) forwards; }
@keyframes inR { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes inL { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
.panel.intro, .panel.done { text-align: center; }
.panel.intro .subj { font-size: 15px; color: var(--ink-2); margin: 4px 0 14px; }
.panel.intro .desc { font-size: 15px; line-height: 1.6; color: var(--ink-2); max-width: 58ch; margin: 0 auto 14px; text-align: left; }
.panel.intro .que-evalua { font-size: 14px; color: var(--ink-2); max-width: 58ch; margin: 0 auto 14px; text-align: left; padding: 10px 14px; border-radius: 12px; background: var(--accent-soft); }
.panel.intro .meta { display: inline-flex; gap: 10px; flex-wrap: wrap; justify-content: center; font-size: 13px; color: var(--ink-3); margin-bottom: 10px; }
.panel.intro .meta b { color: var(--ink); font-weight: 600; }
.panel.intro .marco { font-size: 14px; color: var(--ink-2); margin-bottom: 20px; font-style: italic; }
.panel .dimension { font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--accent); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.panel .dimension .num { font-family: ui-monospace, Menlo, monospace; font-weight: 500; color: var(--ink-3); }
.panel .dimension .pipe { color: var(--ink-3); }
.panel .question-text { font-size: 22px; line-height: 1.4; font-weight: 500; margin: 0 0 26px; }
.panel.is-open .question-text { font-size: 19px; }
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.scale .opt, .opt.sin-info {
  border: 1.5px solid var(--glass-border); background: var(--glass-strong); color: var(--ink);
  border-radius: 14px; padding: 14px 8px; min-height: 84px; cursor: pointer; font: inherit;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: transform .15s var(--ease), box-shadow .2s, background .2s, border-color .2s;
}
.scale .opt:hover, .opt.sin-info:hover { transform: translateY(-2px); border-color: var(--accent-2); box-shadow: 0 10px 20px -14px rgba(28, 56, 83, 0.5); }
.scale .opt .n { font-size: 26px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.scale .opt .lbl { font-size: 12px; margin-top: 6px; color: var(--ink-3); line-height: 1.15; min-height: 2.3em; text-align: center; }
.scale .opt.selected, .opt.sin-info.selected { background: var(--btn-primary-bg); color: var(--btn-primary-ink); border-color: transparent; box-shadow: 0 14px 30px -14px rgba(90, 138, 141, 0.7); }
.scale .opt.selected .n, .scale .opt.selected .lbl { color: inherit; }
.opt.sin-info { width: 100%; margin-top: 10px; min-height: 48px; padding: 12px 14px; font-size: 14px; color: var(--ink-2); flex-direction: row; }
.opt.sin-info.selected { background: var(--ink-3); color: #fff; }
@keyframes pop { 50% { transform: translateY(-3px) scale(1.05); } }
.just-selected { animation: pop .35s var(--ease); }
@keyframes shakeScale { 25% { transform: translateX(-6px); } 50% { transform: translateX(6px); } 75% { transform: translateX(-3px); } }
.scale.shake { animation: shakeScale .4s ease; }
.openbox textarea { min-height: 130px; font-size: 15px; }
.openbox .count { font-size: 12px; color: var(--ink-3); margin-top: 6px; text-align: right; font-variant-numeric: tabular-nums; }
.openbox .count.short { color: var(--err); } .openbox .count.ok { color: var(--ok); }
.step-info { font-size: 12px; color: var(--ink-3); }
.panel.done .check-ok { width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%; background: linear-gradient(135deg, var(--ok), var(--accent)); display: grid; place-items: center; box-shadow: 0 16px 36px -16px rgba(61, 138, 94, 0.7); animation: doneIn .55s var(--ease); }
.panel.done .check-ok svg { width: 42px; height: 42px; stroke: #fff; stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.panel.done .check-ok svg path { stroke-dasharray: 100; stroke-dashoffset: 100; animation: draw .6s .25s forwards ease-out; }
@keyframes doneIn { from { transform: scale(0); opacity: 0; } } @keyframes draw { to { stroke-dashoffset: 0; } }
.panel.done .desc { color: var(--ink-2); max-width: 52ch; margin: 0 auto 18px; }
.consent-texto { text-align: left; font-size: 15px; line-height: 1.6; color: var(--ink-2); max-width: 62ch; margin: 0 auto; }
.consent-texto p { margin: 0 0 10px; } .consent-texto b { color: var(--ink); }
.save-pill { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%) translateY(16px); background: var(--navy); color: #fff; font-size: 13px; padding: 8px 16px; border-radius: 999px; opacity: 0; transition: opacity .2s, transform .25s var(--ease); z-index: 30; pointer-events: none; box-shadow: var(--glass-shadow); }
html[data-theme="dark"] .save-pill { background: #f0ece3; color: #0f1c2b; }
.save-pill.show { opacity: 1; transform: translateX(-50%); }
.save-pill.error { background: var(--err); color: #fff; }
.save-pill .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); margin-right: 8px; vertical-align: middle; }

/* ---------- Login / páginas centradas ---------- */
.pagina-centrada .stage, body.login .stage { min-height: 100svh; display: flex; align-items: center; justify-content: center; padding: 28px 16px; }
.login-card { width: 100%; max-width: 440px; padding: 34px 32px 26px; }
.login-card .logos { text-align: center; margin-bottom: 22px; line-height: 0; }
.login-card .logo { height: 54px; width: auto; }
.login-card h1 { text-align: center; }
.login-card .subtitle { text-align: center; color: var(--ink-2); font-size: 15px; margin-bottom: 22px; }
.login-card .field { margin-bottom: 14px; }
.login-card .foot { text-align: center; margin-top: 20px; font-size: 13px; color: var(--ink-3); }
.login-card.shake { animation: shakeScale .4s ease; }
.consent { max-width: 680px; width: 100%; padding: 30px 32px; }
.consent-pie { font-size: 13px; color: var(--ink-3); margin-top: 14px; }
.prosa { max-width: 760px; margin: 0 auto; padding: 32px 36px; }
.prosa h2 { font-size: 18px; margin: 24px 0 8px; }
.prosa p, .prosa li { font-size: 15px; color: var(--ink-2); line-height: 1.65; max-width: 70ch; }
.texto { max-width: 820px; }

/* ---------- Movimiento y pantalla chica ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .panel, .card.eval { opacity: 1; transform: none; }
}
@media (max-width: 760px) {
  .wrap { padding: 12px 12px 72px; }
  .btn, .btn-sm, .btn-link { min-height: 44px; }
  .topbar { padding: 8px 10px; gap: 8px; }
  .topbar .user { display: none; }
  .summary { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .stat { padding: 12px; } .stat .num { font-size: 24px; } .stat .lbl { font-size: 11px; }
  .card.eval { grid-template-columns: 44px 1fr; row-gap: 10px; padding: 14px 16px; }
  .card.eval .icon { width: 44px; height: 44px; }
  .card.eval .cta { grid-column: 2 / 3; justify-self: start; }
  .panel { padding: 24px 18px; }
  .panel .question-text { font-size: 20px; }
  .scale { gap: 6px; }
  .scale .opt { padding: 10px 4px; min-height: 78px; }
  .scale .opt .n { font-size: 22px; } .scale .opt .lbl { font-size: 10.5px; }
  .actions .step-info { display: none; }
  .prosa { padding: 22px 18px; }
  .consent { padding: 22px 18px; }
}
