/* Centro de ayuda de FlexERP: same palette and type as the landing page.
   Cloudflare caches this file for hours: after a change, bump the ?v= of
   its <link> in every page (and in help-screenshots/mkglossary.py). */
:root {
  --navy: #0f2a4a;
  --ink: #12335c;
  --muted: #5b6b80;
  --line: #e3e9f0;
  --bg: #ffffff;
  --soft: #f5f8fb;
  --teal: #0e7c86;
  --teal-soft: #e6f3f4;
  --green: #7cc58a;
  --amber: #b45309;
  --amber-soft: #fff7ed;
  --grad: linear-gradient(120deg, #1f4e9c 0%, #0e7c86 50%, #7cc58a 100%);
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 42, 74, .06), 0 12px 32px -12px rgba(15, 42, 74, .18);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Manrope, system-ui, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: var(--teal); }
img { max-width: 100%; height: auto; display: block; }
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); margin-inline: auto; }
h1, h2, h3 { color: var(--navy); line-height: 1.2; letter-spacing: -.015em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800; margin: 8px 0 12px; }
h2 { font-size: 1.35rem; font-weight: 800; margin: 0 0 8px; }
h3 { font-size: 1.05rem; font-weight: 700; margin: 0 0 4px; }

/* Header */
header { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .9); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; color: var(--navy); text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.brand span { color: var(--muted); font-weight: 600; font-size: .95rem; }
.nav a.back { color: var(--muted); font-weight: 600; font-size: .92rem; text-decoration: none; }
.nav a.back:hover { color: var(--navy); }

/* Breadcrumb and meta */
.crumbs { font-size: .88rem; color: var(--muted); margin-top: 28px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--teal); }
.lead { color: var(--muted); font-size: 1.08rem; margin: 0 0 16px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); font-size: .82rem; font-weight: 700; color: var(--ink); }

/* Callouts */
.note, .warn { border-radius: var(--radius); padding: 14px 18px; margin: 18px 0; font-size: .97rem; }
.note { background: var(--teal-soft); border: 1px solid #c9e6e8; }
.warn { background: var(--amber-soft); border: 1px solid #fed7aa; }
.note strong, .warn strong { color: var(--navy); }
.warn strong { color: var(--amber); }

/* Contents */
.toc { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin: 0 0 36px; }
.toc p { margin: 0 0 6px; font-weight: 800; color: var(--navy); font-size: .9rem; }
.toc ol { margin: 0; padding-left: 22px; }
.toc li { margin: 2px 0; }

/* Steps */
.step { display: grid; grid-template-columns: 44px 1fr; gap: 6px 16px; margin: 0 0 44px; scroll-margin-top: 80px; }
.step .num { width: 40px; height: 40px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 1.05rem; }
.step .body { min-width: 0; }
.step p { margin: 6px 0 10px; }
.step ul { margin: 6px 0 10px; padding-left: 20px; }
.step li { margin: 3px 0; }
figure { margin: 14px 0 6px; }
figure img { border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); background: #fff; }
figure.small img { max-width: 520px; width: 100%; }
figcaption { font-size: .86rem; color: var(--muted); margin-top: 8px; }
@media (max-width: 560px) {
  .step { grid-template-columns: 1fr; }
  .step .num { width: 34px; height: 34px; font-size: .95rem; }
}

/* UI words: what the person sees or taps in the app */
.ui { font-weight: 700; color: var(--navy); background: var(--soft); border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; white-space: nowrap; }

/* Tables */
table { width: 100%; border-collapse: collapse; margin: 10px 0 14px; font-size: .95rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--soft); color: var(--navy); font-weight: 700; }
.table-scroll { overflow-x: auto; }

/* FAQ */
details { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 10px 0; background: #fff; }
summary { cursor: pointer; font-weight: 700; color: var(--navy); }
details p { margin: 10px 0 2px; }

/* Help home */
.hero { padding: 40px 0 8px; }
.search { width: 100%; max-width: 520px; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--line); font: inherit; font-size: 1rem; color: var(--ink); background: #fff; }
.search:focus { outline: 2px solid var(--teal); outline-offset: 1px; }
.group { margin: 40px 0 0; }
.group > p { color: var(--muted); margin: 0 0 14px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.card { display: block; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; background: #fff; text-decoration: none; color: var(--ink); transition: box-shadow .2s, border-color .2s; }
a.card:hover { box-shadow: var(--shadow); border-color: #c9e6e8; }
.card h3 { margin-bottom: 4px; }
.card p { margin: 0; color: var(--muted); font-size: .92rem; }
.card.soon { background: var(--soft); }
.card.soon h3 { color: var(--muted); }
.tag { display: inline-block; margin-top: 10px; font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--teal); }
.card.soon .tag { color: var(--muted); }
.empty { color: var(--muted); display: none; margin-top: 20px; }

/* Glossary */
dl.glossary { margin: 0; }
dl.glossary dt { font-weight: 800; color: var(--navy); margin-top: 16px; scroll-margin-top: 80px; }
dl.glossary dd { margin: 4px 0 0; color: var(--ink); }

/* Footer */
footer { border-top: 1px solid var(--line); margin-top: 64px; padding: 28px 0 40px; color: var(--muted); font-size: .9rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
footer a { color: var(--muted); }
