:root {
  --bg: #f7f6f3;
  --surface: #ffffff;
  --surface2: #fbfaf8;
  --sunken: #f0eeea;
  --ink: #14131a;
  --muted: #6e6c7d;
  --faint: #9a97a8;
  --line: #e8e5df;
  --accent: #4f8a10;
  --accent-2: #3f720b;
  --soft: #eef6df;
  --mint: #0fa47f;
  --mintbg: #e3f6f0;
  --coral: #f4603e;
  --coralbg: #fdeae5;
  --amber: #e0930a;
  --amberbg: #fdf1da;
  --blue: #2f6fdb;
  --bluebg: #e4edfc;
  --violet: #8b5cf6;
  --violetbg: #f1eaff;
  --shadow-sm: 0 1px 2px rgba(20,19,26,.05);
  --shadow: 0 1px 2px rgba(20,19,26,.04), 0 12px 30px rgba(20,19,26,.07);
  --lift: 0 18px 40px rgba(20,19,26,.16);
  --font-display: "Bricolage Grotesque", sans-serif;
  --font-ui: "Plus Jakarta Sans", sans-serif;
  --sidebar: 252px;
}

html[data-theme="dark"] {
  --bg: #0a0a0f;
  --surface: #15151f;
  --surface2: #101018;
  --sunken: #1d1d2a;
  --ink: #eceaf4;
  --muted: #928fa6;
  --faint: #6d6a84;
  --line: #26263a;
  --accent: #5c9a14;
  --accent-2: #6fae1f;
  --soft: #1d2912;
  --mint: #2fd9ab;
  --mintbg: #0f3a2e;
  --coral: #ff7f61;
  --coralbg: #3d1d16;
  --amber: #f2b23f;
  --amberbg: #3a2a10;
  --blue: #6ea0ff;
  --bluebg: #16264a;
  --violet: #a78bfa;
  --violetbg: #2a2048;
}

* { box-sizing: border-box; }
html {
  height: 100%;
  margin: 0;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
html, body { height: 100%; margin: 0; }
body {
  font-family: var(--font-ui);
  background:
    radial-gradient(1200px 600px at 8% -12%, color-mix(in srgb, var(--soft) 80%, transparent) 0%, transparent 55%),
    radial-gradient(900px 480px at 100% 0%, color-mix(in srgb, var(--sunken) 70%, transparent) 0%, transparent 48%),
    var(--bg);
  color: var(--ink);
  overflow-x: hidden;
}
button, input, textarea { font: inherit; }
button { cursor: pointer; }
#app { min-height: 100%; }

/* Login — fidelidad mockup DoRH v3 */
.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 34px 20px;
  position: relative;
  background:
    radial-gradient(120% 120% at 20% 0%, color-mix(in srgb, var(--sunken) 70%, transparent) 0%, transparent 55%),
    var(--bg);
}
html[data-theme="dark"] .login-wrap {
  background: radial-gradient(120% 120% at 20% 0%, #2b2b36 0%, #12121a 55%, #0a0a0f 100%);
}
.login-shell {
  width: 100%;
  max-width: 1080px;
  border-radius: 28px;
  border: 1px solid color-mix(in srgb, var(--ink) 9%, transparent);
  /* Glow en radial-gradient (sin blur+overflow: evita línea dura arriba en móvil) */
  background:
    radial-gradient(520px 420px at 92% -10%, rgba(79,138,16,.14) 0%, transparent 62%),
    linear-gradient(155deg, #ffffff 0%, #fdfcfa 55%, #f7f6f3 100%);
  box-shadow: 0 34px 80px rgba(20,19,26,.14);
  padding: 74px 26px;
  display: flex;
  justify-content: center;
  position: relative;
  overflow: visible;
}
html[data-theme="dark"] .login-shell {
  border-color: rgba(255,255,255,.13);
  background:
    radial-gradient(520px 420px at 92% -10%, rgba(255,255,255,.12) 0%, transparent 62%),
    linear-gradient(155deg, #1c1c26 0%, #101019 55%, #16161f 100%);
  box-shadow: 0 40px 90px rgba(0,0,0,.6);
}
.login-glow { display: none; }
.theme-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent);
  background: transparent;
  border-radius: 999px;
  width: 42px;
  height: 42px;
  padding: 0;
  margin: 0;
  color: var(--ink);
  display: inline-grid;
  place-items: center;
  place-content: center;
  line-height: 0;
  z-index: 2;
}
.theme-btn svg {
  display: block;
  width: 20px;
  height: 20px;
}
.login-card {
  width: min(392px, 100%);
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  animation: nxmodal .3s ease both;
  position: relative;
  z-index: 1;
}
.modal-card {
  width: min(420px, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
  box-shadow: var(--shadow);
  animation: nxmodal .3s ease both;
}
.brand {
  display: grid;
  justify-items: center;
  gap: 0;
  margin-bottom: 22px;
  text-align: center;
}
.login-logo,
.brand img.login-logo {
  width: 132px;
  height: auto;
  display: block;
  margin-bottom: 14px;
  border-radius: 22px;
  object-fit: contain;
}
html[data-theme="dark"] .login-logo,
html[data-theme="dark"] .brand img.login-logo {
  border-radius: 0;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 25px;
  letter-spacing: -0.035em;
  color: #403c3a;
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
  flex: none;
}
.wordmark .amp { color: #7ab317; }
html[data-theme="dark"] .wordmark { color: #eceaf4; }
html[data-theme="dark"] .wordmark .amp { color: #8cc63f; }
.side .logo {
  height: 46px;
  width: auto;
  object-fit: contain;
  display: block;
}
.share-logo {
  height: 46px;
  width: auto;
  display: block;
  object-fit: contain;
  margin-bottom: 14px;
}
.brand-mark {
  width: 56px; height: 56px; border-radius: 16px;
  display: grid; place-items: center;
  background: var(--soft); color: var(--accent-2);
  font-family: var(--font-display); font-weight: 800; font-size: 18px;
  margin-bottom: 14px;
}
.brand h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 31px;
  line-height: 1.1;
  letter-spacing: -0.035em;
  font-weight: 800;
}
.brand p {
  margin: 0 0 20px;
  color: color-mix(in srgb, var(--ink) 55%, transparent);
  font-size: 14.5px;
  font-weight: 500;
}
.float-field {
  position: relative;
  margin-top: 16px;
}
.float-label {
  position: absolute;
  top: -8px;
  left: 15px;
  padding: 0 6px;
  background: #fdfcfa;
  font-size: 11.5px;
  font-weight: 600;
  color: color-mix(in srgb, var(--ink) 55%, transparent);
  z-index: 1;
}
html[data-theme="dark"] .float-label { background: #15151f; }
.login-input {
  height: 52px !important;
  border-radius: 26px !important;
  border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent) !important;
  background: transparent !important;
  padding: 0 18px !important;
  font-weight: 500;
  /* >=16px evita zoom automático de iOS/Android al enfocar */
  font-size: 16px !important;
}
.login-meta {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}
.linkish, .help-link {
  border: 0;
  background: transparent;
  color: color-mix(in srgb, var(--ink) 55%, transparent);
  font-weight: 600;
  font-size: 12.5px;
  padding: 0;
}
.help-link {
  display: block;
  width: 100%;
  margin-top: 22px;
  text-align: center;
  font-weight: 700;
  color: var(--ink);
}
.login-cta {
  margin-top: 18px;
  height: 52px;
  border-radius: 26px;
  background: #14131a !important;
  color: #fff !important;
  box-shadow: 0 14px 30px rgba(20,19,26,.22);
}
html[data-theme="dark"] .login-cta {
  background: #fff !important;
  color: #14131a !important;
  box-shadow: 0 14px 30px rgba(0,0,0,.45);
}
.login-cta:hover { filter: brightness(1.05); }

label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  margin: 14px 0 6px;
  color: var(--muted);
}
input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface2);
  border-radius: 14px;
  padding: 0 14px;
  color: var(--ink);
}
input { height: 50px; }
textarea { min-height: 96px; padding: 12px 14px; resize: vertical; }
input:focus, textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-color: var(--accent);
}
.password-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.password-wrap .password-input {
  width: 100%;
  padding-right: 48px;
}
.eye-btn {
  position: absolute;
  right: 8px;
  top: 8px;
  transform: none;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
  padding: 0;
  line-height: 0;
  -webkit-tap-highlight-color: transparent;
}
.eye-btn .eye-icon {
  display: block;
  width: 20px;
  height: 20px;
  pointer-events: none;
}
.eye-btn:hover,
.eye-btn:focus-visible {
  background: var(--sunken);
  color: var(--ink);
  outline: none;
}

.btn {
  margin-top: 18px;
  width: 100%;
  height: 50px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 14.5px;
  white-space: nowrap;
}
.btn:hover { background: var(--accent-2); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn.sm { height: 40px; margin-top: 0; width: auto; padding: 0 14px; font-size: 13px; }

.links {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  font-size: 12.5px;
}
.links button {
  border: 0;
  background: none;
  color: var(--muted);
  font-weight: 600;
  padding: 0;
}
.error { margin-top: 12px; color: var(--coral); font-size: 12.5px; font-weight: 700; }
.ok { margin-top: 12px; color: var(--mint); font-size: 12.5px; font-weight: 700; }

.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(20,19,26,.45);
  display: grid; place-items: center;
  padding: 20px;
  z-index: 40;
  animation: nxin .2s ease both;
}

/* Shell */
.shell {
  display: grid;
  grid-template-columns: var(--sidebar) 1fr;
  min-height: 100vh;
}
.side {
  background: var(--surface);
  border-right: 1px solid var(--line);
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 30;
}
.side-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px;
}
.side-close { display: none; margin-left: auto; }
.menu-toggle { display: none; }
.menu-backdrop { display: none; }
.top-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.top-left h2 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  font-size: 26px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-scroll { overflow: auto; display: grid; gap: 10px; flex: 1; }
.nav-group { display: grid; gap: 4px; }
.nav-title {
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 800;
  margin: 8px 4px 2px;
}
.nav-item {
  border: 0;
  background: transparent;
  text-align: left;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}
.nav-item.active, .nav-item:hover { background: var(--soft); color: var(--accent-2); }
.user-chip {
  padding: 12px;
  border-radius: 14px;
  background: var(--sunken);
  display: grid;
  gap: 2px;
}
.user-chip strong { font-size: 13px; }
.user-chip span { color: var(--muted); font-size: 11.5px; font-weight: 600; }

.main {
  padding: 18px 22px 28px;
  min-width: 0;
}
.top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 340px) auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}
.search {
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 0 14px;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.top-actions { display: flex; align-items: center; gap: 10px; position: relative; }
.icon-btn {
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  padding: 0;
  margin: 0;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  position: relative;
  box-shadow: var(--shadow-sm);
  display: inline-grid;
  place-items: center;
  place-content: center;
  line-height: 0;
  font-size: 16px;
  -webkit-appearance: none;
  appearance: none;
}
.icon-btn svg {
  display: block;
  width: 18px;
  height: 18px;
  margin: 0;
  flex-shrink: 0;
  pointer-events: none;
}
.icon-btn svg.bell-icon {
  width: 17px;
  height: 17px;
  transform-origin: 50% 18%;
  animation: nxbell 2.6s ease-in-out 1.2s infinite;
}
@keyframes nxbell {
  0%, 100% { transform: rotate(0); }
  6% { transform: rotate(12deg); }
  12% { transform: rotate(-10deg); }
  18% { transform: rotate(8deg); }
  24% { transform: rotate(-4deg); }
  30% { transform: rotate(0); }
}
.meet-logo {
  position: relative;
  width: 20px;
  height: 17px;
  overflow: hidden;
  flex: none;
  display: inline-block;
}
.meet-logo img {
  position: absolute;
  width: 37.7px;
  left: -8.5px;
  top: -2.9px;
  display: block;
}
.meet-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
}
.icon-btn .badge {
  position: absolute;
  top: -4px; right: -4px;
  min-width: 18px; height: 18px;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  display: grid; place-items: center;
  padding: 0 5px;
}
.icon-btn.bell-anim { animation: nxbell .7s ease; }

.banner {
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 14px;
  background: var(--amberbg);
  color: var(--ink);
  border: 1px solid color-mix(in srgb, var(--amber) 25%, var(--line));
  font-size: 13px;
  font-weight: 700;
}

.grid { display: grid; gap: 14px; min-width: 0; width: 100%; max-width: 100%; }
.grid.cards { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: var(--shadow);
  animation: nxin .35s ease both;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}
.table-card { overflow: hidden; }
.mobile-only { display: none !important; }
.desktop-only { display: block; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.muted { color: var(--muted); font-size: 13.5px; }
.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--faint);
}
.company-card .swatch {
  width: 100%; height: 8px; border-radius: 999px; margin-bottom: 12px;
}
.company-card h3 { margin: 0 0 4px; font-size: 16px; }
.pill {
  display: inline-flex; align-items: center;
  height: 24px; padding: 0 10px; border-radius: 999px;
  background: var(--soft); color: var(--accent-2);
  font-size: 11.5px; font-weight: 800; white-space: nowrap;
}
.notif-panel {
  position: absolute;
  top: 50px; right: 0;
  width: min(360px, 86vw);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--lift);
  z-index: 20;
  overflow: hidden;
  animation: nxpop .3s cubic-bezier(.2,.9,.3,1) both;
}
.notif-panel header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px; border-bottom: 1px solid var(--line);
  font-weight: 800; font-size: 13px;
}
.notif-list { max-height: 320px; overflow: auto; }
.notif-item {
  width: 100%; text-align: left; border: 0; background: transparent;
  padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--ink);
}
.notif-item.unread { background: color-mix(in srgb, var(--soft) 55%, transparent); }
.notif-item:hover { background: var(--sunken); }
.fab {
  position: fixed; right: 22px; bottom: 22px;
  width: 56px; height: 56px; border-radius: 18px;
  border: 0; background: var(--ink); color: #fff;
  box-shadow: var(--lift); z-index: 15;
  display: inline-grid;
  place-items: center;
  place-content: center;
  padding: 0;
  line-height: 0;
}
.fab svg { display: block; width: 22px; height: 22px; }
.fab:hover { transform: translateY(-2px); }
.fab.on { background: var(--accent); }
.assistant-panel {
  position: fixed;
  right: 22px;
  bottom: 90px;
  width: min(380px, calc(100vw - 24px));
  height: min(520px, calc(100dvh - 120px));
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--lift);
  z-index: 25;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: nxpop .28s cubic-bezier(.2,.9,.3,1) both;
}
.assistant-panel header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 14px 12px;
  border-bottom: 1px solid var(--line);
}
.assistant-panel header strong {
  display: block;
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: -0.02em;
}
.assistant-panel header .muted {
  display: block;
  font-size: 11.5px;
  margin-top: 2px;
}
.assistant-thread {
  flex: 1;
  overflow: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background:
    radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--accent) 16%, transparent) 1px, transparent 0) 0 0/16px 16px;
}
.assistant-bubble {
  max-width: 92%;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.45;
  white-space: pre-wrap;
}
.assistant-bubble.user {
  align-self: flex-end;
  background: var(--ink);
  color: #fff;
  border-bottom-right-radius: 6px;
}
.assistant-bubble.assistant {
  align-self: flex-start;
  background: var(--surface2);
  border: 1px solid var(--line);
  border-bottom-left-radius: 6px;
}
.assistant-bubble .mono { margin-top: 6px; font-size: 10.5px; opacity: .75; }
.assistant-compose {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.assistant-compose input {
  flex: 1;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  padding: 0 12px;
}
.assistant-compose .btn { width: auto; margin: 0; height: 42px; }

@keyframes nxin {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
@keyframes nxpop {
  0% { opacity: 0; transform: scale(.94); }
  70% { transform: scale(1.015); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes nxmodal {
  from { opacity: 0; transform: translateY(16px) scale(.97); }
  to { opacity: 1; transform: none; }
}
@keyframes nxbell {
  0%,100% { transform: rotate(0); }
  20% { transform: rotate(14deg); }
  40% { transform: rotate(-12deg); }
  60% { transform: rotate(8deg); }
  80% { transform: rotate(-6deg); }
}

.row-between { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.row-between.wrap { flex-wrap: wrap; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip {
  border: 1px solid var(--line);
  background: var(--surface2);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}
.chip.on { color: #fff; }
.sem-chip {
  display: inline-flex; align-items: center;
  border: 1px solid; border-radius: 999px;
  padding: 4px 10px; font-size: 11.5px; font-weight: 800;
  white-space: nowrap;
}
.vac-card, .vac-hero { text-align: left; position: relative; overflow: hidden; border-color: color-mix(in srgb, var(--sem) 35%, var(--line)); background: color-mix(in srgb, var(--sem) 8%, var(--surface)); }
.vac-stripe { position: absolute; left: 0; right: 0; top: 0; height: 8px; background: var(--sem); border-radius: 18px 18px 0 0; }
.vac-card { padding-top: 22px; cursor: pointer; width: 100%; color: inherit; }
.vac-card h3, .vac-hero h3 { margin: 4px 0 6px; font-size: 17px; }
.vac-foot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; align-items: center; }
.btn.back { width: auto; margin: 0; background: var(--sem, var(--accent)); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.btn.danger { color: var(--coral); border-color: color-mix(in srgb, var(--coral) 35%, var(--line)); }

.excel {
  margin-top: 12px;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  -webkit-overflow-scrolling: touch;
}
.excel-head, .excel-row {
  display: grid;
  grid-template-columns: minmax(110px, 1.1fr) minmax(130px, 1.3fr) minmax(80px, .8fr) minmax(100px, 1fr) minmax(120px, 1.2fr);
  gap: 8px; padding: 10px 12px; align-items: center;
  min-width: 640px;
  box-sizing: border-box;
}
.excel-head { background: var(--soft); font-size: 11.5px; font-weight: 800; color: var(--accent-2); }
.excel-row { border-top: 1px solid var(--line); cursor: pointer; font-size: 13px; }
.excel-row:hover { background: var(--sunken); }
.sem-list {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}
.sem-item {
  display: grid;
  grid-template-columns: 6px 1fr;
  gap: 0;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface2);
  color: inherit;
  padding: 0;
  overflow: hidden;
}
.sem-item-bar { background: var(--sem, var(--accent)); }
.sem-item-body { padding: 12px 14px; min-width: 0; }
.sem-item-body strong {
  display: block;
  margin: 2px 0 4px;
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modal-card.wiz { width: min(860px, 100%); max-height: min(92vh, 900px); display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.wiz-head { padding: 18px 22px 10px; border-bottom: 1px solid var(--line); }
.wiz-head h2 { margin: 0 0 12px; font-family: var(--font-display); letter-spacing: -.03em; font-size: 22px; }
.steps { display: flex; gap: 8px; }
.step {
  border: 1px solid var(--line); background: var(--surface2); border-radius: 999px;
  padding: 8px 12px; font-weight: 700; font-size: 12.5px; color: var(--muted);
}
.step.on { background: var(--soft); color: var(--accent-2); border-color: transparent; }
.wiz-body { padding: 16px 22px; overflow: auto; flex: 1; }
.wiz-foot {
  position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: 8px;
  padding: 14px 22px; border-top: 1px solid var(--line); background: var(--surface);
  box-shadow: 0 -8px 24px rgba(20,19,26,.06);
}
.field { margin-bottom: 12px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
select {
  width: 100%; height: 46px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface2); color: var(--ink); padding: 0 12px;
}
.collapse { border: 1px solid var(--line); border-radius: 14px; margin: 12px 0; overflow: hidden; }
.collapse-h {
  width: 100%; text-align: left; border: 0; background: var(--sunken);
  padding: 12px 14px; font-weight: 800; color: var(--ink);
}
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; padding: 12px; }
.person {
  border: 1px solid var(--line); background: var(--surface); border-radius: 14px;
  padding: 10px; display: flex; gap: 10px; align-items: center; text-align: left; color: inherit;
}
.person.on { border-color: var(--accent); background: var(--soft); }
.avatar {
  width: 36px; height: 36px; border-radius: 999px; background: var(--accent); color: #fff;
  display: grid; place-items: center; font-weight: 800;
}
.sem-table { padding: 10px 14px 14px; display: grid; gap: 8px; }
.sem-row { display: flex; gap: 10px; align-items: center; }
.dot { width: 12px; height: 12px; border-radius: 999px; display: inline-block; }
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%);
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 14px;
  font-weight: 800; z-index: 50; animation: nxpop .35s cubic-bezier(.2,.9,.3,1) both;
  box-shadow: var(--lift);
}

.kanban {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 1fr);
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
}
.kanban-col {
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 16px;
  min-height: 320px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.kanban-h {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 4px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px;
}
.cand-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  box-shadow: var(--shadow-sm);
  cursor: grab;
}
.cand-card.on { border-color: var(--accent); background: var(--soft); }
.cand-card .muted { font-size: 12.5px; margin: 6px 0; }
.fb-row {
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
  padding: 10px 0; border-top: 1px solid var(--line);
}
.portal-card h3 { margin: 4px 0 8px; }
.portal-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.check-row {
  display: flex; align-items: center; gap: 8px; margin-top: 14px;
  font-weight: 600; color: var(--ink);
}
.cmp-table { overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
.cmp-row {
  display: grid;
  grid-template-columns: 180px repeat(auto-fit, minmax(140px, 1fr));
  gap: 0; min-width: 520px;
}
.cmp-row > div { padding: 10px 12px; border-top: 1px solid var(--line); font-size: 13px; }
.cmp-row.head > div { background: var(--soft); font-weight: 800; border-top: 0; font-size: 12px; }
.excel.hist .excel-head, .excel.hist .excel-row {
  grid-template-columns: 1.1fr 1.3fr .9fr 1fr 1.1fr;
}
a.btn {
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; height: 40px; padding: 0 14px; border-radius: 12px;
  font-size: 13px; font-weight: 700;
}
a.btn.ghost {
  background: transparent; color: var(--ink); border: 1px solid var(--line);
}
.interview-row {
  display: grid;
  grid-template-columns: 110px 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.interview-date strong { display: block; font-size: 14px; }
.purple-card { border-color: color-mix(in srgb, var(--violet) 40%, var(--line)); background: color-mix(in srgb, var(--violetbg) 55%, var(--surface)); }
.purple-note { color: var(--violet); font-size: 12.5px; font-weight: 700; margin-top: 4px; }
.pill.status-porconfirmar { background: var(--amberbg); color: var(--amber); }
.pill.status-confirmada { background: var(--mintbg); color: var(--mint); }
.pill.status-rechazada { background: var(--coralbg); color: var(--coral); }
.pill.status-reprogramada { background: var(--violetbg); color: var(--violet); }
@media (max-width: 720px) {
  .interview-row { grid-template-columns: 1fr; }
}
.finance-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.finance-kpis strong { font-size: 18px; font-family: var(--font-display); }
.doc-card { cursor: pointer; }
.doc-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 8px;
  border-radius: 10px;
  background: var(--soft);
  color: var(--accent-2);
  display: inline-grid;
  place-items: center;
}
.doc-icon svg { display: block; width: 22px; height: 22px; }
.report-pre {
  white-space: pre-wrap; font-size: 12px; background: var(--sunken);
  padding: 12px; border-radius: 12px; overflow: auto; max-height: 320px;
}
.pill.blacklist { background: #14131a; color: #fff; }
@media (max-width: 720px) {
  .finance-kpis { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .shell { grid-template-columns: 1fr; }
  .menu-toggle,
  .side-close {
    display: inline-grid;
    place-items: center;
    place-content: center;
    flex-shrink: 0;
  }
  .menu-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(20, 19, 26, .45);
    z-index: 35;
    animation: nxin .18s ease both;
  }
  .side {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(86vw, 300px);
    height: 100dvh;
    max-height: 100dvh;
    border-right: 1px solid var(--line);
    border-bottom: 0;
    transform: translateX(-105%);
    transition: transform .22s cubic-bezier(.2, .9, .3, 1);
    box-shadow: var(--lift);
    z-index: 40;
    padding-top: max(18px, env(safe-area-inset-top));
    padding-bottom: max(18px, env(safe-area-inset-bottom));
  }
  .shell.menu-open .side { transform: translateX(0); }
  .shell.menu-open { overflow: hidden; }
  .main {
    padding: 14px 14px 88px;
    width: 100%;
    max-width: 100vw;
    min-width: 0;
    overflow-x: hidden;
  }
  .desktop-only { display: none !important; }
  .mobile-only { display: grid !important; }
  .table-card,
  .card,
  .grid { max-width: 100%; overflow: hidden; }
  .excel { display: none; }
  .chips { max-width: 100%; }
  .top {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    position: sticky;
    top: 0;
    z-index: 20;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(10px);
    padding: 8px 0 10px;
    margin: -6px 0 12px;
  }
  .top-left h2 { font-size: 20px; }
  .search {
    grid-column: 1 / -1;
    order: 3;
    height: 40px;
  }
  .top-actions { gap: 8px; }
  .top-cta { display: none; }
  .notif-panel {
    position: fixed;
    left: 12px;
    right: 12px;
    top: 64px;
    width: auto;
    max-height: min(70vh, 480px);
  }
  .kanban {
    grid-auto-columns: minmax(220px, 78vw);
  }
  .fab {
    bottom: max(18px, env(safe-area-inset-bottom));
    right: 16px;
  }
  .grid.two { grid-template-columns: 1fr; }
  .modal-card.wiz { width: 100%; max-height: 94dvh; border-radius: 16px 16px 0 0; }
  .modal-backdrop {
    align-items: end;
    padding: 0;
  }
  .login-wrap {
    min-height: 100dvh;
    min-height: 100svh;
    padding: 20px;
    padding-top: max(24px, env(safe-area-inset-top));
    padding-bottom: max(24px, env(safe-area-inset-bottom));
    place-items: center;
    background: var(--bg);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
  }
  html[data-theme="dark"] .login-wrap {
    background: #0a0a0f;
  }
  .login-shell {
    padding: 48px 20px;
    border-radius: 28px;
    width: 100%;
    max-width: 100%;
    border: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
    box-shadow: 0 18px 40px rgba(20,19,26,.10);
    -webkit-appearance: none;
    /* sin transform: evita sensación de zoom al montar la card */
    transform: none;
  }
  html[data-theme="dark"] .login-shell {
    border-color: rgba(255,255,255,.14);
    box-shadow: 0 18px 40px rgba(0,0,0,.45);
  }
  .login-card {
    width: 100%;
    max-width: 336px;
    animation: none;
  }
  .login-input,
  .password-wrap .password-input,
  .login-card input {
    font-size: 16px !important;
  }
  .brand h1 { font-size: 26px; }
  .login-logo, .brand img.login-logo { width: 132px; }
}
