:root {
  --bg: #f4f6f9;
  --card: #ffffff;
  --ink: #16202b;
  --muted: #5d6a7a;
  --line: #dde3ea;
  --accent: #1f4e79;
  --accent-2: #a9740a;
  --ok: #1a7f4b;
  --warn: #9a6b00;
  --bad: #b3261e;
  --soft: #eef4fb;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 15.5px; line-height: 1.55;
}
header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--accent); color: #fff; padding: 14px 24px; flex-wrap: wrap;
}
.brandbox { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
header h1 { font-size: 21px; margin: 0; letter-spacing: .3px; }
header .sub { font-size: 13px; opacity: .85; }
.hdrnav { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.hdrnav a { color: #dce9f7; font-size: 13px; text-decoration: none; border-bottom: 1px dotted #93b3d4; }
.hdrnav a:hover { color: #fff; }
.pill {
  font-size: 12px; border: 1px solid rgba(255,255,255,.45);
  border-radius: 20px; padding: 2px 10px; white-space: nowrap;
}
main { max-width: 1120px; margin: 0 auto; padding: 20px 18px 40px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 18px 20px; margin-bottom: 18px; box-shadow: 0 1px 2px rgba(16,32,48,.04);
}
.sechead { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
h2 {
  font-size: 16px; margin: 0 0 6px; color: var(--accent);
  display: flex; align-items: center; gap: 9px; letter-spacing: .2px;
}
.num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 23px; height: 23px; border-radius: 50%; background: var(--accent); color: #fff;
  font-size: 13px; font-weight: 700; flex: none;
}
.ayuda {
  background: var(--soft); border-left: 3px solid #9dbfe0; border-radius: 0 8px 8px 0;
  padding: 10px 14px; margin: 10px 0 14px; font-size: 14px; color: #2c3e52;
}
.ayuda strong { color: #16202b; }
.nota { color: var(--muted); font-size: 13px; margin: 8px 0 0; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
label { font-size: 13.5px; color: var(--muted); }
input[type=password], input[type=date] {
  border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; font: inherit; background: #fff;
  min-height: 40px;
}
input[type=password] { min-width: 260px; }
button {
  border: 0; border-radius: 8px; padding: 10px 16px; font: inherit; font-weight: 600;
  background: var(--accent); color: #fff; cursor: pointer; min-height: 40px;
}
button:hover:not(:disabled) { filter: brightness(1.08); }
button.primary { background: #1f6feb; }
button.secondary { background: var(--accent-2); }
button.ghost { background: #fff; color: var(--accent); border: 1px solid var(--line); }
button:disabled { opacity: .45; cursor: not-allowed; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { border-bottom: 1px solid var(--line); padding: 9px 8px; text-align: left; vertical-align: middle; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); font-weight: 700; }
td.c, th.c { text-align: center; }
tbody tr:hover { background: #fafcfe; }
.tablewrap { overflow-x: auto; margin-top: 6px; }
.totals { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0 6px; }
.total {
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; min-width: 118px;
  background: #fbfdff;
}
.total b { display: block; font-size: 21px; line-height: 1.1; color: var(--accent); }
.total span { font-size: 12.5px; color: var(--muted); }
.warnings {
  margin-top: 12px; font-size: 13.5px; color: #6b4e00; background: #fff8e6;
  border: 1px solid #f0dfae; border-radius: 8px; padding: 10px 14px;
}
.warnings b { display: block; margin-bottom: 4px; }
.tag { font-size: 11.5px; border-radius: 20px; padding: 1px 9px; border: 1px solid var(--line); color: var(--muted); }
.tag.done { color: var(--ok); border-color: var(--ok); }
.tag.pending { color: var(--warn); border-color: var(--warn); }
.badge {
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
  border-radius: 20px; padding: 3px 11px; border: 1px solid var(--line); color: var(--muted);
  background: #f7f9fb;
}
.badge.ok { color: var(--ok); border-color: var(--ok); background: #eefaf3; }
.badge.warn { color: var(--warn); border-color: var(--warn); background: #fff8e6; }
.guia summary { cursor: pointer; font-size: 15px; color: var(--accent); }
.guia summary::marker { color: var(--accent); }
.pasos { margin: 12px 0 0; padding-left: 22px; }
.pasos li { margin-bottom: 8px; }
.error { color: var(--bad); font-size: 14px; margin: 10px 0 0; font-weight: 600; }
code { background: #eef1f5; padding: 1px 6px; border-radius: 4px; font-size: .92em; }
.boton {
  display: inline-block; background: var(--accent); color: #fff; text-decoration: none;
  font-weight: 700; padding: 11px 20px; border-radius: 9px;
}
.boton:hover { background: #17395a; }
.pie {
  max-width: 1120px; margin: 0 auto; padding: 0 18px 30px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  color: var(--muted); font-size: 12.5px;
}
.pie a { color: var(--accent); }
