:root {
  --green-900: #1a2b6b;
  --green-800: #15245c;
  --green-700: #24398a;
  --green-600: #3d56b0;
  --green-100: #eef1f8;
  --ink: #1a2340;
  --muted: #5c6780;
  --line: #d9e0ee;
  --paper: #f5f7fb;
  --white: #ffffff;
  --gold: #c4a35a;
  --danger: #c44536;
  --warn: #c9842a;
  --ok: #2e8a55;
  --sidebar: 260px;
  --header: 64px;
  --radius: 16px;
  --font: Inter, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 10px 28px rgba(26, 43, 107, .08);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/inter-400.woff2") format("woff2");
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/inter-500.woff2") format("woff2");
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/inter-600.woff2") format("woff2");
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/inter-700.woff2") format("woff2");
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("fonts/inter-800.woff2") format("woff2");
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-tap-highlight-color: rgba(26, 43, 107, .18);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; }

.auth-body {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  background: var(--green-900);
}

.auth-brand {
  padding: 48px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(160deg, rgba(18, 32, 92, .92), rgba(26, 43, 107, .78)),
    url("../img/login-side.jpg") center/cover;
}

.auth-brand h1 { font-size: 34px; margin: 12px 0 8px; line-height: 1.2; }
.auth-brand p { color: #e6ebf8; max-width: 420px; }
.logo-mark {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--green-600); display: grid; place-items: center;
  font-weight: 700; letter-spacing: .5px;
}
.logo-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 8px 12px;
  border-radius: 12px;
}
.logo-img {
  height: 32px;
  width: auto;
  max-width: 180px;
  display: block;
}
.sidebar-brand .logo-box { margin-bottom: 10px; padding: 8px 10px; }
.home-split-bar .logo-box { padding: 8px 12px; }

.auth-panel {
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--white);
  border-radius: 20px;
  padding: 32px;
  border: 1px solid var(--line);
}
.auth-card-wide { max-width: 720px; }
.auth-card .form-grid { margin-bottom: 8px; }
.auth-card .btn-primary { margin-top: 8px; }
.auth-card a { color: var(--green-700); font-weight: 600; }

.auth-card h2 { margin: 0 0 8px; }
.auth-card .muted { color: var(--muted); margin-bottom: 24px; }
.demo-login {
  background: var(--green-100);
  color: var(--green-800);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.45;
}
.demo-login p { margin: 6px 0 0; }
.demo-login code, .home-demo code {
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  word-break: break-all;
}
.home-demo {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.5;
  color: #e6ebf8;
  background: rgba(255, 255, 255, .1);
  border-radius: 12px;
  padding: 12px 14px;
  max-width: 440px;
}

.home-split {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #121e4d;
  color: #fff;
}
.home-split-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 28px 8px;
  background: #fff;
  color: var(--green-900);
}
.home-split-bar small { display: block; color: var(--muted); font-size: 13px; }
.home-split-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 0;
}
.home-door {
  padding: 40px 44px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.home-door-empleado {
  background: #fff;
  color: var(--ink);
}
.home-door-empleado .btn-primary { width: auto; max-width: 280px; }
.home-door-empleador {
  background: var(--green-900);
  color: #fff;
  border-left: 1px solid rgba(255, 255, 255, .12);
}
.home-kicker {
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--green-700);
  font-weight: 700;
  margin: 0 0 10px;
}
.home-door-empleador .home-kicker { color: #d5def8; }
.home-door h1 { font-size: 46px; margin: 0 0 14px; line-height: 1.05; }
.home-door p { max-width: 440px; font-size: 16px; line-height: 1.5; }
.home-door-empleado h1 { color: var(--green-900); }
.home-door-empleado p { color: #3a4564; }
.home-door ul {
  color: #e6ebf8;
  padding-left: 18px;
  margin: 8px 0 28px;
  line-height: 1.75;
  max-width: 440px;
}
.home-door-empleado p,
.home-door-empleado ul { color: #3a4564; }
.home-door .btn-primary {
  width: auto;
  max-width: 280px;
  text-align: center;
  padding: 14px 20px;
}
.home-door-empleador .btn-primary {
  background: #fff;
  color: var(--green-900);
}
.home-door-empleador .btn-primary:hover { background: var(--green-100); }
.home-ghost {
  display: inline-block;
  width: auto;
  max-width: 280px;
  text-align: center;
  margin-top: 10px;
  color: var(--green-900);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 20px;
  font-weight: 600;
}
.home-ghost:hover { border-color: var(--green-700); background: var(--green-100); }
.home-split-foot {
  text-align: center;
  color: #c9d3ee;
  background: #121e4d;
  padding: 14px 16px 18px;
  margin: 0;
  font-size: 13px;
}

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; margin-bottom: 6px; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 10px; font-size: 15px; background: #fff;
}
.field textarea { min-height: 90px; resize: vertical; display: block; }
.hv-sheet { max-width: none; width: 100%; }
.hv-fields { display: block; width: 100%; }
.hv-fields .field { width: 100%; max-width: none; }
.hv-fields .field input,
.hv-fields .field textarea {
  display: block;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}
.hv-fields textarea {
  min-height: 160px;
  line-height: 1.45;
  font-size: 15px;
}
.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 500; }
.check[hidden], .field[hidden], [hidden] { display: none !important; }
.check input { width: auto; margin-top: 3px; }
.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.afil-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin-top: 12px; }
.afil-grid .support-card { margin: 0; }
.support-card .support-head { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.support-card h3 { margin: 0; }
.hash { font-family: Consolas, monospace; font-size: 11px; word-break: break-all; color: var(--muted); }
@font-face {
  font-family: "Pristina";
  src: url("../fonts/Pristina.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}
.firma-cursiva {
  font-family: "Pristina", cursive;
  font-size: 32px;
  line-height: 1.15;
  min-height: 44px;
  margin: 0 0 6px;
  color: #1a2744;
  border-bottom: 1px solid #1a2744;
  max-width: 420px;
}
#pad-firma {
  width: 100%; max-width: 640px; height: 180px; border: 1px dashed var(--green-600);
  border-radius: 12px; background: #fff; touch-action: none; cursor: crosshair;
}
.hv-banner {
  background: linear-gradient(120deg, var(--green-900), var(--green-700));
  color: #fff; border-radius: 20px; padding: 24px 28px; margin-bottom: 16px;
  display: flex; justify-content: space-between; align-items: center;
}
.hv-banner h1 { margin: 6px 0; font-size: 28px; }
.hv-banner p { margin: 0; color: #e6ebf8; max-width: 520px; }
.minerva { width: 100%; background: #fff; border: 2px solid var(--green-800); border-radius: 8px; overflow: hidden; }
.minerva-head { padding: 20px 22px 12px; text-align: center; border-bottom: 2px solid var(--green-800); }
.minerva-logo { margin: 0 auto 10px; }
.minerva-title strong { letter-spacing: .08em; color: var(--green-800); }
.minerva-title h1 { margin: 6px 0 4px; font-size: 26px; color: var(--green-900); }
.minerva-title p { margin: 0; color: var(--muted); font-size: 13px; }
.minerva-form { padding: 0 0 20px; }
.minerva-bar {
  background: var(--green-800); color: #fff; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; font-size: 13px; padding: 8px 14px; margin: 0;
}
.minerva-grid { display: grid; width: 100%; }
.minerva-grid.g1 { grid-template-columns: 1fr; }
.minerva-grid.g2 { grid-template-columns: 1fr 1fr; }
.minerva-grid.g3 { grid-template-columns: 1fr 1fr 1fr; }
.minerva-grid .cell {
  border: 1px solid var(--green-800); padding: 6px 8px; min-width: 0;
}
.minerva-grid .cell.span2 { grid-column: span 2; }
.minerva-grid .cell label { display: block; font-size: 11px; font-weight: 700; color: var(--green-800); margin-bottom: 4px; }
.minerva-grid .cell input,
.minerva-grid .cell textarea {
  width: 100%; max-width: none; border: 0; border-bottom: 1px solid #c9d3ee;
  border-radius: 0; padding: 6px 2px; background: #fff; font-size: 14px;
  box-sizing: border-box; display: block;
}
.minerva-grid .cell.wide textarea { min-height: 90px; }
.radio-row { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; min-height: 32px; }
.radio-row .opt { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; }
.radio-row .opt input { width: auto; }
.hv-mark {
  width: 64px; height: 64px; border-radius: 16px; background: var(--gold);
  color: var(--green-900); display: grid; place-items: center; font-size: 28px; font-weight: 800;
}
.field select {
  appearance: auto;
  -webkit-appearance: menulist;
  cursor: pointer;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--green-100); border-color: var(--green-600);
}
.field input:disabled, .field select:disabled {
  background: var(--paper); color: var(--muted);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 10px; padding: 12px 16px; cursor: pointer; font-weight: 600;
}
.btn-primary { background: var(--green-700); color: #fff; width: 100%; }
.btn-primary:hover { background: var(--green-800); }
.btn-ghost { background: transparent; color: var(--green-700); }
.alert {
  padding: 10px 12px; border-radius: 10px; margin-bottom: 16px; font-size: 14px;
}
.alert-error { background: #fdecea; color: var(--danger); }
.alert-ok { background: var(--green-100); color: var(--green-800); }
.alert-warn { background: #fff6e6; color: var(--warn); }
.alert-warn a { color: var(--green-800); font-weight: 700; text-decoration: underline; }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.epp-lista { display: flex; flex-direction: column; gap: 6px; }
.epp-item { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.epp-item .check { flex: 1 1 190px; margin: 0; }
.field .epp-item input.epp-dato {
  width: 4.6rem; min-width: 4.6rem; max-width: 4.6rem;
  padding: 6px 8px; font-size: 14px;
}
.field .epp-item input.epp-talla { width: 6.2rem; min-width: 6.2rem; max-width: 6.2rem; }
.field .epp-item input.epp-dato:disabled { background: #f3f4f6; color: #9aa0a6; }
.quiz-q { margin-bottom: 18px; }
.quiz-q p { margin: 0 0 8px; }
.quiz-ops { display: flex; flex-direction: column; gap: 8px; }
.quiz-ops .opt { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.quiz-ops .opt input { width: auto; margin-top: 3px; }

.app-shell { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar);
  background: var(--green-900);
  color: #fff;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  flex-shrink: 0;
}
.sidebar-brand {
  padding: 18px 18px 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.sidebar-brand strong { display: block; color: #fff; }
.sidebar-brand small { color: #c9d3ee; }
.nav { padding: 12px 10px; overflow: auto; flex: 1; }
.nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 10px; color: #e8edf8; font-size: 14px;
  transition: background .18s var(--ease), color .18s var(--ease), transform .18s var(--ease);
}
.nav a:hover { background: rgba(255,255,255,.1); color: #fff; }
.nav a.active { background: #fff; color: var(--green-900); font-weight: 700; }
.nav a:active { transform: scale(.98); }
.nav-ico { width: 1.4em; flex: 0 0 1.4em; text-align: center; }
.bell { text-decoration: none; color: var(--muted); }
.nav .section { margin: 14px 12px 6px; font-size: 11px; letter-spacing: .08em; color: #b7c4e6; text-transform: uppercase; }
.nav .section:first-of-type { margin-top: 8px; }
.nav-group { margin: 2px 0 4px; }
.nav-group.open > a { color: #fff; }
.nav-sub {
  margin: 2px 0 6px 12px;
  padding-left: 8px;
  border-left: 2px solid rgba(255, 255, 255, .14);
}
.nav-sub a { font-size: 13px; padding: 7px 10px; color: #d5def0; }
.nav-sub a.active { background: #fff; color: var(--green-900); }
.sidebar-foot { padding: 14px 18px; font-size: 12px; color: #c9d3ee; border-top: 1px solid rgba(255,255,255,.12); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.content { flex: 1; }
.header {
  height: var(--header);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 16px;
  padding: 0 20px;
  padding-top: env(safe-area-inset-top);
  position: sticky; top: 0; z-index: 20;
  transition: box-shadow .2s var(--ease);
}
.header.is-scrolled { box-shadow: 0 8px 20px rgba(26, 43, 107, .08); }
.search-wrap { flex: 1; max-width: 420px; min-width: 0; }
.search {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--ink);
  font-size: 13px;
  outline: none;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.search:focus { border-color: var(--green-600); box-shadow: 0 0 0 3px var(--green-100); }
.header-user { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--green-100); color: var(--green-800);
  display: grid; place-items: center; font-weight: 700; font-size: 12px;
}
.bell { position: relative; color: var(--muted); }
.bell span {
  position: absolute; top: -6px; right: -8px; background: var(--danger);
  color: #fff; border-radius: 999px; font-size: 10px; padding: 1px 5px;
}

.content { padding: 20px; }
.app-foot {
  margin-top: auto;
  text-align: center;
  color: var(--muted);
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 12px 16px 16px;
  font-size: 12px;
}
.hero {
  border-radius: 20px;
  overflow: hidden;
  min-height: 160px;
  background: var(--green-900);
  color: #fff;
  padding: 28px;
  display: flex; align-items: flex-end; justify-content: space-between;
}
.hero h1 { margin: 0; font-size: 28px; max-width: 520px; }
.hero quote { font-style: italic; color: #e6ebf8; }

.kpis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin: 16px 0; }
.kpis.kpi-fit { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.kpi {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.kpi:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.kpi b { display: block; font-size: 26px; }
.kpi span { color: var(--muted); font-size: 12px; }
.report-sub { margin-top: 16px; }
.report-equipo { margin: 6px 0 0; padding-left: 18px; color: var(--muted); font-size: 12px; line-height: 1.45; }

.grid-2 { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: 1.4fr .9fr .9fr; gap: 16px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.card h3 { margin: 0 0 12px; font-size: 16px; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; color: var(--muted); font-weight: 600; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.table td { padding: 10px 6px; border-bottom: 1px solid #e8ecf4; }
.badge {
  display: inline-block; border-radius: 999px; padding: 3px 8px; font-size: 11px; font-weight: 700;
}
.badge-warn { background: #fff4d6; color: #8a5b00; }
.badge-ok { background: #e5f7ea; color: #1f7a3e; }
.badge-danger { background: #fdecea; color: var(--danger); }
.badge-info { background: #e8f1fb; color: #215a96; }

.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.action {
  border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 13px;
  display: flex; align-items: center; gap: 8px;
  transition: transform .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease);
}
.action:hover { border-color: var(--green-600); color: var(--green-800); background: var(--green-100); transform: translateY(-1px); }
.action:active { transform: scale(.98); }

.menu-btn { display: none; background: none; border: 0; color: var(--ink); font-size: 22px; }

.placeholder {
  background: #fff; border: 1px dashed var(--line); border-radius: 16px; padding: 32px;
  color: var(--muted);
}

.page-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px;
}
.page-head h2 { margin: 0 0 4px; }
.page-head p { margin: 0; color: var(--muted); font-size: 14px; }
.muted { color: var(--muted); font-weight: 500; }
.card h3 { margin: 20px 0 12px; font-size: 16px; }
.btn-sm { width: auto; padding: 10px 16px; }
.btn-secondary { background: var(--white); color: var(--green-800); border: 1px solid var(--line); width: auto; }
.btn-danger { background: var(--danger); color: #fff; border: 1px solid var(--danger); width: auto; }
.inline-action { display: inline; margin-left: 12px; }
.ceco-edit { display: flex; gap: 8px; align-items: center; }
.ceco-edit input { width: 220px; min-width: 140px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; }
.link-action {
  background: none; border: 0; padding: 0; color: var(--green-700);
  font-weight: 600; cursor: pointer; font: inherit;
}
.link-danger { color: var(--danger); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.form-grid .full { grid-column: 1 / -1; }
.ficha-head {
  display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 16px;
}
.note {
  background: var(--green-100); color: var(--green-800); border-radius: 10px; padding: 10px 12px;
  font-size: 13px; margin-bottom: 14px;
}
.row-actions { display: flex; gap: 8px; margin-top: 8px; }
.benef-row {
  display: grid; grid-template-columns: 1fr 1fr 1fr 1fr 1fr auto; gap: 8px; margin-bottom: 8px; align-items: end;
}
.table a.ver { color: var(--green-700); font-weight: 600; }
.tabs {
  display: flex; flex-wrap: nowrap; gap: 8px; margin: 0 0 16px;
  overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  padding-bottom: 2px;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--green-800); font-weight: 600; font-size: 13px;
  white-space: nowrap; flex: 0 0 auto;
  transition: background .18s var(--ease), color .18s var(--ease), transform .18s var(--ease);
}
.tabs a.active { background: var(--green-700); color: #fff; border-color: var(--green-700); }
.tabs a:active { transform: scale(.97); }
.proceso-ingreso { margin-bottom: 16px; }
.proceso-pasos { margin: 0; padding-left: 20px; }
.proceso-pasos li { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.perm-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; margin: 8px 0 16px; }
.perm-mod { grid-column: 1 / -1; margin: 12px 0 4px; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--green-800); }
.table-wrap { overflow-x: auto; }
.table-nomina select, .table-nomina input { width: 100%; min-width: 110px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; }
.table-nomina td { vertical-align: top; }
.he-block { display: flex; flex-direction: column; gap: 6px; min-width: 260px; }
.he-row { display: flex; gap: 6px; align-items: center; }
.he-row select { flex: 1; min-width: 190px; font-size: 12px; }
.he-row input { width: 76px; min-width: 76px; flex: 0 0 76px; }
.he-add { width: auto; padding: 6px 10px; font-size: 12px; }
.aux-cell { display: flex; flex-direction: column; gap: 6px; min-width: 128px; }
.aux-cell .check { margin: 0; font-size: 13px; }
.aux-cell input[type="checkbox"] { width: auto; min-width: 0; }
.aux-cell input[type="text"] { min-width: 0; }
.nomina-lock { background: var(--paper); }
.nomina-lock td { color: var(--ink); }
.nomina-lock-note { font-size: 12px; color: var(--green-800); margin-top: 4px; line-height: 1.35; }
.seg-head h3 { margin: 0 0 6px; font-size: 22px; color: var(--green-800); }
.seg-periodo { margin: 0 0 10px; font-weight: 700; color: var(--green-800); }
.table-seguimiento { border-collapse: separate; border-spacing: 0; font-size: 11px; min-width: max-content; }
.table-seguimiento th, .table-seguimiento td {
  border: 1px solid var(--line); padding: 6px 5px; text-align: center; vertical-align: middle;
  min-width: 34px; max-width: 110px; line-height: 1.25; word-break: break-word;
}
.table-seguimiento thead th { background: var(--green-100); color: var(--green-800); font-size: 10px; }
.table-seguimiento thead th.seg-dia-nom {
  min-width: 28px; max-width: 36px; height: 88px; padding: 6px 2px; vertical-align: bottom;
}
.table-seguimiento thead th.seg-dia-nom span {
  display: inline-block; writing-mode: vertical-rl; transform: rotate(180deg);
  white-space: nowrap; letter-spacing: 0.04em; font-weight: 700;
}
.table-seguimiento thead th.seg-laboral { background: #dceee3; color: var(--green-800); }
.table-seguimiento thead th.seg-laboral.seg-dia-nom { border-bottom-width: 2px; }
.table-seguimiento .seg-sticky, .table-seguimiento .seg-sticky-2 {
  position: sticky; background: #fff; z-index: 2; text-align: left; min-width: 170px; max-width: 220px; font-weight: 700;
}
.table-seguimiento thead .seg-sticky, .table-seguimiento thead .seg-sticky-2 { background: var(--green-100); z-index: 3; }
.table-seguimiento .seg-sticky { left: 0; }
.table-seguimiento .seg-sticky-2 { left: 170px; min-width: 100px; max-width: 120px; }
.table-seguimiento .seg-descanso { background: #f0f2f1; color: #8a9590; }
.table-seguimiento td.seg-laboro { background: #eef6f1; font-weight: 600; }
.table-seguimiento td.seg-inas { background: #fff1e8; color: #9a3412; font-weight: 700; }
.table-seguimiento td.seg-lnr { background: #fde8ee; color: #9f1239; font-weight: 700; }
.table-seguimiento td.seg-medio { background: #e8f1fb; color: #1e3a8a; font-weight: 700; }
.table-seguimiento td.seg-inc { background: #f3e8ff; color: #6b21a8; font-weight: 700; }
.table-seguimiento td.seg-lic { background: #fef3c7; color: #92400e; font-weight: 700; }
.table-seguimiento td.seg-cal { background: #ffedd5; color: #9a3412; font-weight: 700; }
.table-seguimiento td.seg-vac { background: #e0f2fe; color: #075985; font-weight: 700; }
.table-seguimiento td.seg-pre, .table-seguimiento td.seg-vacio { background: #fff; }
.table-seguimiento td.seg-retiro { background: #f4f4f5; color: #3f3f46; font-weight: 700; }
.table-seguimiento td.seg-descanso { background: #f0f2f1; }
.seg-resumen-wrap { margin-bottom: 14px; }
.table-seg-resumen { width: 100%; max-width: 980px; }
.table-seg-resumen th.num, .table-seg-resumen td.num { text-align: right; white-space: nowrap; }
.table-seg-resumen td.seg-sal { font-weight: 800; color: var(--green-800); background: #eef6f1; }
.seg-pago {
  display: inline-block; margin: 2px 0; padding: 3px 8px; border-radius: 999px;
  background: #fef3c7; color: #92400e; font-weight: 700; font-size: 12px;
}
.seg-cell {
  display: block; width: 100%; margin: 0; padding: 4px 2px; border: 0; border-radius: 6px; background: transparent;
  font: inherit; font-weight: inherit; color: inherit; cursor: pointer; text-align: center;
}
.seg-cell:hover, .seg-cell:focus { outline: 2px solid var(--green-700); background: #fff; }
.table-seguimiento td.seg-vacio .seg-cell,
.table-seguimiento td.seg-descanso .seg-cell { color: var(--green-700); font-weight: 700; }
.seg-dialog {
  width: min(560px, calc(100vw - 32px)); border: 1px solid var(--line); border-radius: 16px; padding: 20px;
  background: #fff; color: inherit;
}
.seg-dialog::backdrop { background: rgba(16, 24, 40, .45); }
.seg-dialog h3 { margin: 0 0 4px; color: var(--green-800); }
.seg-dialog .he-row { margin-bottom: 6px; }
.seg-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.seg-dialog-actions .btn, .seg-dialog-actions .btn-primary { width: auto; }
.seg-dialog-wide { width: min(720px, calc(100vw - 32px)); }
.seg-det-btn {
  border: 0; background: transparent; color: var(--green-800); font: inherit; font-weight: 700;
  text-decoration: underline; cursor: pointer; padding: 0; text-align: right; white-space: normal;
}
.seg-det-btn:hover, .seg-det-btn:focus { color: var(--green-900); }
.table-seguimiento th.seg-liq-col,
.table-seguimiento td.seg-liq-mark {
  position: sticky; right: 0; z-index: 2; min-width: 96px; max-width: 120px; background: #fff;
}
.table-seguimiento thead th.seg-liq-col { z-index: 4; background: var(--green-100); font-size: 10px; }
.table-seguimiento th.seg-sticky.seg-liquidado { background: #166534; color: #fff; }
.table-seguimiento th.seg-sticky.seg-retirado,
.table-seg-resumen td.seg-retirado { background: #f8d4d4; color: #8a3030; }
.table-seg-resumen tr.seg-liquidado td,
.table-seg-resumen tr.seg-liquidado td.seg-sal { background: #166534; color: #fff; }
.table-seg-resumen tr.seg-liquidado .seg-det-btn { color: #fff; }
.seg-liq-form { margin: 0; }
.seg-liq-form label {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 700; color: var(--green-800); cursor: pointer;
}
.seg-liq-form input[type="checkbox"] { width: 18px; height: 18px; min-width: 18px; accent-color: #166534; }
.input-mini { width: 110px; min-width: 90px; padding: 6px 8px; }
.tabs-sub { margin: 8px 0 12px; }
.liq-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; align-items: center; }
.liq-actions .btn, .liq-actions .btn-primary { width: auto; display: inline-flex; }
.liq-siigo { margin: 0 0 14px; max-width: 1080px; }
.liq-siigo h3 { margin-top: 0; }
.liq-siigo input[type="file"] { max-width: 420px; }
.liq-siigo-ok { margin: 0 0 10px; font-size: 14px; color: var(--green-800); }
.liq-params { margin: 0 0 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.liq-params summary { cursor: pointer; font-weight: 700; color: var(--green-800); }
.liq-params .form-grid { margin-top: 12px; }
.table-liq th small { font-weight: 500; color: var(--green-800); }
.table-liq-rubros { font-size: 12px; width: 100%; max-width: 1080px; table-layout: fixed; }
.table-liq-rubros td, .table-liq-rubros th { padding: 7px 8px; }
.table-liq-rubros th:nth-child(1), .table-liq-rubros td:nth-child(1) { width: 100px; }
.table-liq-rubros th:nth-child(4), .table-liq-rubros td:nth-child(4) { width: 72px; }
.table-liq-rubros th:nth-child(5), .table-liq-rubros td:nth-child(5) { width: 120px; }
.table-liq-rubros .liq-rubro th {
  background: var(--green-100);
  color: var(--green-800);
  font-weight: 800;
  border-top: 2px solid var(--green-900);
  text-align: left;
}
.table-liq-rubros .liq-rubro th.td-num { text-align: right; font-weight: 700; color: var(--green-800); }
.table-liq-rubros .liq-linea td:nth-child(2) { padding-left: 22px; }
.td-num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.liq-total th, .liq-total td { background: var(--green-100); font-weight: 700; }
.liq-sub td { background: var(--paper); color: var(--green-800); font-weight: 600; }
.asist-hoy {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
}
.asist-hoy h3 { margin: 0 0 6px; font-size: 18px; }
.asist-hoy p { margin: 0; color: var(--ink); }
.asist-hoy.asist-proy { background: var(--green-100); border-color: #c9d3ee; }
.asist-hoy.asist-cap { background: #e8f1fb; border-color: #c5d8ee; }
.asist-hoy.asist-lock { background: #fff4d6; border-color: #efd9a0; }
.asist-hoy.asist-pend { background: #f6f7f6; }
.asist-agenda { margin: 0 0 18px; }
.td-check { text-align: center; }
.td-check input { width: auto; }
.cal-week, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-week { margin: 8px 0; font-size: 12px; color: var(--muted); font-weight: 600; text-align: center; }
.cal-day {
  min-height: 72px; background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 8px; font-size: 12px;
}
.cal-day strong { display: block; font-size: 15px; }
.cal-day small { color: var(--muted); display: block; margin-top: 4px; line-height: 1.3; }
.cal-day.empty { background: transparent; border: 0; }
.cal-day.tipo-laboral { background: var(--green-100); }
.cal-day.tipo-domingo { background: #eef1f0; color: var(--muted); }
.cal-day.tipo-festivo { background: #fff6e5; border-color: #e6c37a; }
.cal-day.tipo-no_laboral { background: #fdecea; }
.page-head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.import-box { margin-bottom: 16px; }
.import-box h3 { margin-top: 0; }
.import-form input[type="file"] { flex: 1; min-width: 180px; }
.import-errors { margin: 8px 0 0; padding-left: 18px; }
.filters { display: flex; gap: 8px; margin-bottom: 12px; }
.filters input, .filters select {
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff;
}
a.support-card { display: block; text-decoration: none; color: inherit; }
a.support-card:hover { border-color: var(--green-600); transform: translateY(-4px); box-shadow: var(--shadow); }
.sol-tipos .radio-row { flex-direction: column; align-items: flex-start; gap: 8px; }
.sol-help { color: var(--ink); font-size: 14px; margin: 0 0 8px; }
.sol-note {
  background: var(--green-100); color: var(--green-800); border-radius: 10px;
  padding: 10px 12px; font-size: 13px; margin: 0 0 14px;
}
.sol-form .check { margin: 8px 0 16px; }
.ces-pregunta { display: block; font-size: 13px; margin-bottom: 6px; font-weight: 600; }
.ces-prop {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px 4px;
  margin: 0 0 12px;
  background: #fff;
}
.ces-prop legend { font-weight: 700; padding: 0 6px; }
.ces-prop .check { margin: 0 0 8px; }
#ces-lista { margin: 0 0 16px; }
#ces-lista:not([hidden]) { display: block !important; }
.ces-prop:not([hidden]) { display: block !important; }
#ces-lista .form-grid { margin-bottom: 8px; }
.sol-detalle { margin-bottom: 16px; }
.sol-respuesta { white-space: normal; overflow-wrap: anywhere; margin: 8px 0 12px; }
.sol-decidir { margin-top: 12px; }
.sol-decidir .actions { display: flex; gap: 8px; grid-template-columns: none; }
.sol-eps {
  margin: 14px 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--green-100);
}
.sol-eps h4 { margin: 0 0 8px; font-size: 15px; }
.sol-eps-check { margin: 8px 0 12px; padding-left: 18px; }
.sol-eps-check li { margin: 4px 0; }

.card { overflow-x: auto; }
.sidebar-backdrop {
  display: none;
}

@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(3, 1fr); }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .form-grid, .benef-row, .support-grid, .afil-grid, .check-grid, .perm-list, .minerva-grid.g2, .minerva-grid.g3 { grid-template-columns: 1fr; }
  .minerva-grid .cell.span2 { grid-column: auto; }
  .hero { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (max-width: 800px) {
  .auth-body { grid-template-columns: 1fr; }
  .auth-brand { min-height: 220px; padding: 28px 20px; }
  .auth-panel { padding: 20px 16px; }
  .auth-card { padding: 22px 18px; }
  .home-split-grid { grid-template-columns: 1fr; }
  .home-split-bar { padding: 16px 18px 4px; }
  .home-door { padding: 28px 22px 36px; }
  .home-door-empleador { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .1); }
  .home-door h1 { font-size: 34px; }
  .home-door .btn-primary, .home-ghost { max-width: none; width: 100%; }
  .sidebar {
    position: fixed; left: 0; z-index: 40;
    transform: translateX(-108%);
    transition: transform .28s var(--ease);
    box-shadow: 8px 0 24px rgba(0, 0, 0, .2);
    padding-top: env(safe-area-inset-top);
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-backdrop.show {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(26, 43, 107, .46);
    backdrop-filter: blur(2px);
    z-index: 35;
  }
  body.nav-open { overflow: hidden; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .header-meta { display: none; }
  .header { padding: 0 12px; gap: 8px; }
  .header-user { gap: 8px; }
  .search-wrap { max-width: none; }
  .content { padding: 12px; }
  .app-foot { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
  .hero { min-height: 0; padding: 20px; }
  .hero h1 { font-size: 22px; }
  .page-head, .ficha-head { flex-direction: column; align-items: stretch; }
  .page-head .btn, .ficha-head .btn { width: 100%; }
  .row-actions { flex-wrap: wrap; }
  .filters { flex-direction: column; }
  .filters input, .filters select { width: 100%; }
  .table { min-width: 620px; }
  .support-card .btn { width: 100%; }
  .actions { grid-template-columns: 1fr; }
  .sol-decidir .actions { flex-direction: column; }
  .app-dock { display: flex; }
  .header-salir { padding: 8px 10px; font-size: 13px; }
}

.app-dock {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 30;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  padding: 6px 8px calc(8px + env(safe-area-inset-bottom));
  justify-content: space-around;
  gap: 4px;
  box-shadow: 0 -8px 24px rgba(26, 43, 107, .08);
}
.app-dock a, .app-dock button {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 4px;
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
}
.app-dock a span, .app-dock button span { font-size: 18px; line-height: 1; }
.app-dock a.active, .app-dock a:hover, .app-dock button:hover {
  color: var(--green-800);
  background: var(--green-100);
}
.app-dock a:active, .app-dock button:active { transform: scale(.94); }

.rise-in {
  animation: rise-in .45s var(--ease) both;
}
@keyframes rise-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.home-door { transition: transform .25s var(--ease), filter .25s var(--ease); }
.home-door:hover { transform: translateY(-2px); }
.btn { transition: transform .16s var(--ease), background .16s var(--ease), box-shadow .16s var(--ease); }
.btn:active { transform: scale(.98); }
.hero { box-shadow: var(--shadow); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .rise-in { opacity: 1; transform: none; }
}

.traza { margin: 8px 0 18px; }
.traza-titulo h2 { margin: 0 0 4px; color: var(--green-900); font-size: 22px; }
.traza-titulo p { margin: 0 0 14px; color: var(--muted, #5c6780); }
.traza-bloque { margin-bottom: 16px; }
.traza-bloque > h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; }
.traza-card {
  background: var(--white, #fff);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px 12px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.traza-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.traza-head h3 { margin: 0; font-size: 16px; color: var(--green-900); }
.traza-head p { margin: 2px 0 0; color: #5c6780; font-size: 13px; }
.traza-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.traza-meta b { color: var(--green-900); font-size: 13px; white-space: nowrap; }
.traza-linea { display: flex; overflow-x: auto; padding: 14px 2px 4px; }
.traza-paso { flex: 1 0 112px; min-width: 112px; text-align: center; position: relative; }
.traza-paso::before {
  content: "";
  position: absolute;
  top: 9px;
  left: -50%;
  right: 50%;
  height: 3px;
  background: #d5dced;
}
.traza-paso:first-child::before { display: none; }
.traza-paso.hecho::before, .traza-paso.actual::before { background: #1f7a3e; }
.traza-punto {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  margin: 0 auto 8px;
  background: #eef1f8;
  border: 3px solid #c9d2e6;
  display: block;
  position: relative;
  z-index: 1;
}
.traza-paso.hecho .traza-punto { background: #1f7a3e; border-color: #1f7a3e; }
.traza-paso.actual .traza-punto { background: #fff; border-color: var(--green-900); box-shadow: 0 0 0 4px #e7ecf8; }
.traza-paso strong { display: block; font-size: 12px; line-height: 1.3; font-weight: 650; color: var(--green-900); }
.traza-paso.espera strong { color: #8b93a7; font-weight: 600; }
.traza-nota { margin: 8px 0 0; font-size: 13px; color: var(--green-800); }
.traza-vacio { margin: 0 0 8px; }

@media (min-width: 801px) {
  .kpi:nth-child(1) { border-top: 3px solid var(--green-700); }
  .kpi:nth-child(2) { border-top: 3px solid #8ea0d4; }
  .kpi:nth-child(3) { border-top: 3px solid var(--warn); }
  .kpi:nth-child(4) { border-top: 3px solid var(--danger); }
  .kpi:nth-child(5) { border-top: 3px solid var(--green-600); }
  .kpi:nth-child(6) { border-top: 3px solid #215a96; }
}

.hseq { display: flex; flex-direction: column; gap: 16px; }
.hseq-doc {
  display: grid;
  grid-template-columns: 150px 1fr 168px;
  background: #fff;
  border: 1.5px solid var(--green-900);
  border-radius: 16px;
  overflow: hidden;
}
.hseq-logo, .hseq-doc-title, .hseq-doc dl {
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 14px 12px; min-height: 92px;
}
.hseq-logo { background: #fff; border-right: 1px solid var(--green-900); }
.hseq-logo img { height: 42px; width: auto; }
.hseq-doc-title { flex-direction: column; gap: 4px; }
.hseq-doc-title p { margin: 0; letter-spacing: .08em; font-size: 12px; font-weight: 700; color: var(--green-700); }
.hseq-doc-title h2 { margin: 0; font-size: 22px; line-height: 1.15; color: var(--green-900); }
.hseq-doc dl { display: flex; flex-direction: column; justify-content: center; gap: 6px; margin: 0; border-left: 1px solid var(--green-900); text-align: center; }
.hseq-doc dl div { display: block; }
.hseq-doc dt { color: var(--muted); font-weight: 600; font-size: 11px; }
.hseq-doc dd { margin: 0; font-weight: 700; color: var(--green-900); font-size: 13px; }
.hseq-datos, .hseq-instr, .hseq-sec, .hseq-compromiso, .hseq-result-body, .hseq-acciones {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px;
}
.hseq-datos h3, .hseq-sec h3, .hseq-compromiso h3, .hseq-instr h3, .hseq-result h3 { margin: 0 0 8px; color: var(--green-900); }
.hseq-datos-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hseq-datos-grid div { background: var(--green-100); border-radius: 12px; padding: 10px 12px; }
.hseq-datos-grid div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.hseq-datos-grid span { display: block; font-size: 12px; color: var(--muted); }
.hseq-datos-grid strong { display: block; margin-top: 2px; color: var(--ink); }
.hseq-instr { display: grid; grid-template-columns: 1.4fr .8fr; gap: 16px; align-items: center; }
.hseq-instr p, .hseq-sec-head p, .hseq-compromiso p { margin: 0 0 8px; color: var(--ink); line-height: 1.45; }
.hseq-escena { width: 100%; height: auto; display: block; margin-bottom: 10px; }
.hseq-escala { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.hseq-escala li { display: flex; justify-content: space-between; gap: 8px; border-radius: 10px; padding: 8px 10px; background: var(--paper); font-size: 13px; }
.hseq-escala li:nth-child(1) { box-shadow: inset 3px 0 0 #1a2b6b; }
.hseq-escala li:nth-child(2) { box-shadow: inset 3px 0 0 var(--ok); }
.hseq-escala li:nth-child(3) { box-shadow: inset 3px 0 0 var(--danger); }
.hseq-escala li.is-on { background: var(--green-100); font-weight: 700; }
.hseq-progress {
  position: sticky; top: 8px; z-index: 4;
  display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px;
  box-shadow: var(--shadow);
}
.hseq-progress strong { display: block; color: var(--green-900); }
.hseq-progress span { color: var(--muted); font-size: 12px; }
.hseq-bar { flex: 1; height: 10px; background: var(--green-100); border-radius: 99px; overflow: hidden; }
.hseq-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--green-700), var(--gold)); transition: width .25s var(--ease); }
.hseq-falta { margin: 0; background: #fdecea; color: var(--danger); border-radius: 10px; padding: 10px 12px; }
.hseq-sec-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.hseq-kicker { margin: 0 0 2px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--green-700); }
.hseq-ico { width: 36px; height: 36px; flex: 0 0 36px; color: var(--green-900); background: var(--green-100); border-radius: 10px; padding: 6px; }
.hseq-q { border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin-bottom: 10px; background: var(--paper); }
.hseq-q.is-done { border-color: #b7c6ee; background: #fff; }
.hseq-q.is-dup { border-color: var(--danger); }
.hseq-q header { display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; align-items: start; margin-bottom: 10px; }
.hseq-q header p { margin: 0; font-weight: 650; line-height: 1.4; }
.hseq-num, .hseq-letter {
  width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center;
  background: var(--green-900); color: #fff; font-weight: 700;
}
.hseq-pt { font-size: 12px; color: var(--muted); font-weight: 700; }
.hseq-choices { display: flex; flex-direction: column; gap: 8px; }
.hseq-choice, .hseq-vf-btn {
  display: flex; gap: 10px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; cursor: pointer;
}
.hseq-choice input, .hseq-vf-btn input, .hseq-check input { width: auto; margin-top: 3px; }
.hseq-choice:has(input:checked), .hseq-vf-btn:has(input:checked) {
  border-color: var(--green-700); background: var(--green-100); box-shadow: inset 3px 0 0 var(--green-700);
}
.hseq-vf { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hseq-vf-btn { align-items: center; }
.hseq-vf-btn strong { font-size: 20px; color: var(--green-900); }
.hseq-v:has(input:checked) { box-shadow: inset 3px 0 0 var(--ok); }
.hseq-f:has(input:checked) { box-shadow: inset 3px 0 0 var(--danger); }
.hseq-match { display: grid; gap: 12px; }
.hseq-conceptos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hseq-conceptos li { display: flex; gap: 8px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px; }
.hseq-conceptos li.is-on { border-color: var(--green-700); background: var(--green-100); }
.hseq-conceptos li span, .hseq-match-row .hseq-letter { flex: 0 0 32px; }
.hseq-conceptos p, .hseq-match-row p { margin: 4px 0 0; font-size: 14px; }
.hseq-match-row { display: grid; grid-template-columns: 32px 36px 1fr 92px; gap: 8px; align-items: center; background: #fff; border-radius: 12px; padding: 8px; border: 1px solid var(--line); }
.hseq-match-row select { width: 100%; }
.hseq-compromiso { background: #fff; }
.hseq-check { display: flex; gap: 8px; align-items: flex-start; font-weight: 650; }
.hseq .hseq-enviar, .hseq-acciones .btn-primary { width: auto; min-width: 220px; align-self: flex-start; }
.hseq-result-body { display: grid; grid-template-columns: 160px 1fr; gap: 16px; align-items: center; }
.hseq-ring { width: 140px; height: 140px; }
.hseq-ring-track { fill: none; stroke: #e4e9f4; stroke-width: 10; }
.hseq-ring-value { fill: none; stroke: var(--green-900); stroke-width: 10; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 70px 70px; }
.hseq-ring-num { font-family: var(--font); font-size: 28px; font-weight: 700; fill: var(--green-900); }
.hseq-ring-den { font-family: var(--font); font-size: 12px; fill: var(--muted); }
.hseq-result-aprobado .hseq-ring-value { stroke: var(--ok); }
.hseq-result-refuerzo .hseq-ring-value { stroke: var(--danger); }
.hseq-result-excelente .hseq-ring-value { stroke: var(--green-900); }
.hseq-result { display: flex; flex-direction: column; gap: 16px; }
.hseq-acciones { margin-top: 0; }
@media (max-width: 800px) {
  .hseq-doc, .hseq-instr, .hseq-result-body, .hseq-datos-grid, .hseq-vf, .hseq-conceptos { grid-template-columns: 1fr; }
  .hseq-doc dl { border-left: 0; border-top: 1px solid var(--green-900); }
  .hseq-logo { border-right: 0; border-bottom: 1px solid var(--green-900); }
  .hseq-match-row { grid-template-columns: 32px 1fr; }
  .hseq-match-row .hseq-ico { display: none; }
  .hseq-match-row select { grid-column: 1 / -1; }
  .hseq .hseq-enviar, .hseq-acciones .btn-primary { width: 100%; }
}
