/* Tokens de color en /css/theme.css (generado desde content/company.yaml) */
@font-face {
  font-family: "Work Sans Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fonts/work-sans-latin-wght-normal.woff2") format("woff2-variations");
  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;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Work Sans Variable", system-ui, "Segoe UI", sans-serif;
  color: var(--ink);
  line-height: 1.55;
  background: var(--paper);
}
.wrap { max-width: 60rem; margin: 0 auto; padding: 0 1.25rem; }
a { color: var(--accent); }

.topbar { border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; padding-top: .9rem; padding-bottom: .9rem; }
.brand { font-weight: 700; text-decoration: none; color: var(--brand); font-size: 1.1rem; }
.brand span { color: var(--muted); font-weight: 400; }
.topbar nav a { margin-left: 1rem; text-decoration: none; color: var(--muted); }
.topbar nav a:hover { color: var(--accent); }
.langs { margin-left: 1rem; padding-left: 1rem; border-left: 1px solid var(--line); }
.langs a { margin-left: .5rem; font-size: .85rem; }
.langs a[aria-current="true"] { color: var(--brand); font-weight: 700; }
.muted { color: var(--muted); }

.hero { padding: 2.5rem 0 .5rem; }
.hero h1 { font-size: 1.9rem; margin: 0 0 .5rem; }
.hero p { color: var(--muted); max-width: 44rem; }

.stats { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: 1rem; }
.stats li { border: 1px solid var(--line); border-radius: 8px; padding: .85rem 1rem; background: var(--bg); }
.stat-value { display: block; font-size: 1.8rem; font-weight: 600; line-height: 1.2; }
.stat-label { color: var(--muted); font-size: .85rem; }

.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--line); margin-top: 1.5rem; overflow-x: auto; }
.tabs a { padding: .6rem 1rem; text-decoration: none; color: var(--muted); font-weight: 600; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.tabs a:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

section { padding: 1.5rem 0; }
.js-tabs .panel[hidden] { display: none; }
h2 { border-bottom: 1px solid var(--line); padding-bottom: .4rem; }
h3 .count { color: var(--muted); font-weight: 400; font-size: .85rem; }

.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr)); gap: 1rem; }
.card { border: 1px solid var(--line); border-radius: 8px; padding: 1rem 1.25rem; }
.card h3 { margin-top: 0; }

.subproc { display: flex; gap: .9rem; align-items: flex-start; }
.subproc h3 { margin: 0 0 .25rem; font-size: 1rem; }
.subproc p { margin: 0 0 .2rem; font-size: .9rem; }
.subproc .muted { color: var(--muted); font-size: .85rem; }
.subproc h3 a { color: var(--ink); text-decoration: none; }
.subproc h3 a:hover { color: var(--accent); text-decoration: underline; }
.tags { list-style: none; padding: 0; margin: .5rem 0 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.tags li { border: 1px solid var(--line); background: var(--bg); border-radius: 4px; padding: .1rem .5rem; font-size: .75rem; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.avatar { flex: none; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--brand-tint); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--brand); }
.avatar--logo { border-radius: 8px; padding: .3rem; object-fit: contain; background: #fff; width: auto; min-width: 2.4rem; max-width: 6.5rem; }

.badges { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 1rem; }
.badge { border: 1px solid var(--line); border-radius: 8px; padding: 1rem; }
.badge--certified { background: var(--ok-soft); }
.badge--in_progress, .badge--recurring { background: var(--warn-soft); }
.badge strong { display: block; }
.badge-icon { float: right; margin-left: .5rem; }
.badge .status { font-size: .85rem; font-weight: 600; }
.badge--certified .status { color: var(--ok); }
.badge--in_progress .status, .badge--recurring .status { color: var(--warn); }
.badge p { font-size: .85rem; color: var(--muted); margin: .4rem 0 0; }

.disclosure { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.disclosure p { margin: 0; }
/* Boton pildora normal-case (DESIGN.md de core) */
.btn { display: inline-block; border: 1px solid var(--accent); color: var(--accent); border-radius: 24px; padding: .5rem 1.2rem; text-decoration: none; font-weight: 500; white-space: nowrap; }
.btn:hover { background: var(--accent-tint); }
.btn--sm { padding: .25rem .8rem; font-size: .85rem; }
button.btn { background: var(--accent); color: #fff; border: 0; cursor: pointer; font: inherit; font-weight: 500; }
.api-page { padding: 4rem 0; max-width: 40rem; }

.request-form { margin-top: 2rem; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; margin: 1rem 0; }
.request-form label { display: block; font-size: .9rem; color: var(--muted); }
.request-form input[type="text"], .request-form input:not([type]), .request-form input[type="email"] {
  display: block; width: 100%; margin-top: .3rem; padding: .5rem .7rem;
  border: 1px solid var(--line); border-radius: 5px; font: inherit; color: var(--ink);
}
.request-form input:focus-visible { outline: 2px solid var(--accent); border-color: var(--accent); }
.request-form fieldset { border: 1px solid var(--line); border-radius: 8px; margin: 1rem 0; }
.request-form legend { font-weight: 600; color: var(--ink); padding: 0 .4rem; }
.docs-checks { columns: 2; }
.docs-checks label, .nda-check { display: block; margin: .35rem 0; break-inside: avoid; color: var(--ink); }
.nda-check { margin: 1rem 0; }
.request-form .btn { border: none; background: var(--accent); color: #fff; cursor: pointer; font: inherit; font-weight: 500; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; }

@media (max-width: 40rem) { .docs-checks { columns: 1; } }

.controls { padding-left: 1.1rem; margin-bottom: 0; }
.controls li { margin: .45rem 0; font-size: .92rem; }

table.docs { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.docs th, table.docs td { text-align: left; padding: .55rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.docs .summary { color: var(--muted); font-size: .85rem; }

footer { border-top: 1px solid var(--line); margin-top: 2rem; padding-top: 1rem; padding-bottom: 2rem; color: var(--muted); font-size: .9rem; }

@media (max-width: 40rem) {
  .topbar nav a { margin-left: .6rem; font-size: .9rem; }
}
