/* Knowledge-base stylesheet */

@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/jakarta-semibold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/jakarta-bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Literata"; src: url("../fonts/literata-text.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Literata"; src: url("../fonts/literata-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Literata"; src: url("../fonts/literata-semibold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --kb-green: #2f5d50;
  --kb-greenDeep: #1f443a;
  --kb-paper: #fafaf7;
  --kb-white: #ffffff;
  --kb-mint: #e3efe9;
  --kb-mintDeep: #c9dfd3;
  --kb-red: #c8432f;
  --kb-redDeep: #a63523;
  --kb-redWash: #fbefec;
  --kb-ink: #1c1f1e;
  --kb-muted: #4b5551;
  --kb-line: #d8ddd9;
  --kb-ui: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --kb-text: "Literata", Georgia, "Times New Roman", serif;
  --kb-radius: 6px;
  --kb-headerH: 64px;
  --kb-dot: #2f5d50;
  --kb-focus: 0 0 0 3px var(--kb-white), 0 0 0 5px var(--kb-green);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--kb-headerH) + 20px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--kb-paper); color: var(--kb-ink); font-family: var(--kb-text); font-size: 1.0625rem; line-height: 1.7; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--kb-ui); line-height: 1.25; color: var(--kb-ink); margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.9rem); font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.8rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p, ul, ol, dl, table, figure { margin: 0 0 1.1em; }
a { color: var(--kb-green); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--kb-greenDeep); text-decoration-thickness: 2px; background: var(--kb-mint); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible { outline: none; box-shadow: var(--kb-focus); border-radius: 3px; }
strong { font-weight: 600; }
.tcVisuallyHidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.tcSkip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--kb-ink); color: var(--kb-white); padding: 10px 16px; font-family: var(--kb-ui); font-weight: 600; border-radius: var(--kb-radius); }
.tcSkip:focus { top: 12px; }
.tcSkip:hover { background: var(--kb-greenDeep); color: var(--kb-white); }
.tcWrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .tcWrap { padding: 0 32px; } }
.tcIcon { width: 22px; height: 22px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* Header */
.tcHeader { position: sticky; top: 0; z-index: 40; background: var(--kb-white); border-bottom: 1px solid var(--kb-line); }
.tcHeaderBar { display: flex; align-items: center; justify-content: space-between; min-height: var(--kb-headerH); gap: 16px; position: relative; }
.tcLogo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--kb-ink); font-family: var(--kb-ui); font-weight: 700; font-size: 1.25rem; letter-spacing: -.02em; padding: 4px 6px 4px 0; border-radius: var(--kb-radius); }
.tcLogo:hover { background: transparent; color: var(--kb-green); }
.tcLogo svg { width: 34px; height: 34px; }
.tcLogoTag { font-weight: 600; font-size: .75rem; color: var(--kb-muted); border-left: 1px solid var(--kb-line); padding-left: 10px; letter-spacing: 0; display: none; }
@media (min-width: 600px) { .tcLogoTag { display: inline; } }
.tcMenuBtn { display: inline-flex; align-items: center; gap: 8px; font: 600 .95rem/1 var(--kb-ui); color: var(--kb-ink); background: var(--kb-white); border: 1.5px solid var(--kb-ink); border-radius: var(--kb-radius); padding: 10px 14px; cursor: pointer; }
.tcMenuBtn:hover { background: var(--kb-mint); border-color: var(--kb-green); color: var(--kb-greenDeep); }
.tcMenuBtn[aria-expanded="true"] { background: var(--kb-green); border-color: var(--kb-green); color: var(--kb-white); }
.tcMenuBtn[aria-expanded="true"]:hover { background: var(--kb-greenDeep); color: var(--kb-white); }
.tcMenuBtn .tcChevron { width: 14px; height: 14px; transition: transform .2s; }
.tcMenuBtn[aria-expanded="true"] .tcChevron { transform: rotate(180deg); }
.tcMenu { position: relative; }
.tcMenuPanel { position: absolute; top: calc(100% + 13px); right: 0; width: min(600px, calc(100vw - 32px)); background: var(--kb-white); border: 1px solid var(--kb-line); border-top: 3px solid var(--kb-green); border-radius: 0 0 var(--kb-radius) var(--kb-radius); box-shadow: 0 18px 40px -18px rgba(28, 31, 30, .35); padding: 20px; }
.tcMenuPanel[hidden] { display: none; }
.tcMenuGroups { display: grid; gap: 18px; }
@media (min-width: 560px) { .tcMenuGroups { grid-template-columns: 1fr 1fr; } }
.tcMenuGroupTitle { font: 700 .75rem/1 var(--kb-ui); text-transform: uppercase; letter-spacing: .1em; color: var(--kb-muted); margin: 0 0 8px; }
.tcMenuList { list-style: none; margin: 0; padding: 0; }
.tcMenuList a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin: 0 -10px; border-radius: var(--kb-radius); font: 600 .95rem/1.35 var(--kb-ui); color: var(--kb-ink); text-decoration: none; }
.tcMenuList a:hover { background: var(--kb-mint); color: var(--kb-greenDeep); }
.tcMenuList a[aria-current="page"] { color: var(--kb-greenDeep); background: var(--kb-mint); }
.tcMenuList a[aria-current="page"]:hover { background: var(--kb-mintDeep); }
.tcMenuList .tcMenuNum { font-size: .75rem; color: var(--kb-green); min-width: 1.4em; }
.tcMenuFoot { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--kb-line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.tcMenuFoot p { margin: 0; font-size: .875rem; color: var(--kb-muted); }

/* Buttons */
.tcBtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 1rem/1.2 var(--kb-ui); text-decoration: none; padding: 12px 20px; border-radius: var(--kb-radius); border: 1.5px solid var(--kb-green); background: var(--kb-green); color: var(--kb-white); cursor: pointer; }
.tcBtn:hover { background: var(--kb-greenDeep); border-color: var(--kb-greenDeep); color: var(--kb-white); text-decoration: none; }
.tcBtnGhost { background: var(--kb-white); color: var(--kb-green); }
.tcBtnGhost:hover { background: var(--kb-mint); color: var(--kb-greenDeep); border-color: var(--kb-greenDeep); }
.tcMenuFoot .tcBtn:hover { background: var(--kb-greenDeep); color: var(--kb-white); }

/* Breadcrumb */
.tcCrumbs { background: var(--kb-mint); border-bottom: 1px solid var(--kb-mintDeep); font: 600 .85rem/1.4 var(--kb-ui); }
.tcCrumbs ol { list-style: none; margin: 0; padding: 10px 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tcCrumbs li { display: flex; gap: 6px; color: var(--kb-muted); }
.tcCrumbs li + li::before { content: "/"; color: var(--kb-green); }
.tcCrumbs a { color: var(--kb-greenDeep); text-decoration: none; border-radius: 3px; }
.tcCrumbs a:hover { background: var(--kb-white); text-decoration: underline; }
.tcCrumbs [aria-current="page"] { color: var(--kb-ink); }

/* Document head (hero) */
.tcDocHead { padding: 36px 0 28px; border-bottom: 1px solid var(--kb-line); background: linear-gradient(var(--kb-white), var(--kb-paper)); }
.tcDocGrid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 960px) { .tcDocGrid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; } }
.tcDocKind { display: inline-flex; align-items: center; gap: 8px; font: 600 .8rem/1 var(--kb-ui); color: var(--kb-green); background: var(--kb-mint); padding: 6px 10px; border-radius: 4px; margin-bottom: 18px; }
.tcDocKind .tcIcon { width: 16px; height: 16px; }
.tcDocSub { font-size: 1.15rem; color: var(--kb-muted); max-width: 58ch; }
.tcMeta { list-style: none; padding: 14px 0; margin: 22px 0; display: flex; flex-wrap: wrap; gap: 8px 22px; border-top: 1px solid var(--kb-line); border-bottom: 1px solid var(--kb-line); font: 600 .875rem/1.4 var(--kb-ui); color: var(--kb-muted); }
.tcMeta li { display: inline-flex; align-items: center; gap: 7px; }
.tcMeta .tcIcon { width: 18px; height: 18px; color: var(--kb-green); }
.tcMeta strong { color: var(--kb-ink); }
.tcDocActions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.tcFicha { position: relative; margin: 0 auto; max-width: 560px; width: 100%; padding: 0 0 44px; }
.tcFichaFrame { background: var(--kb-white); border: 1px solid var(--kb-line); border-radius: var(--kb-radius); padding: 14px; box-shadow: 6px 6px 0 var(--kb-mint); position: relative; }
.tcFichaFrame::before { content: attr(data-label); position: absolute; top: -13px; left: 18px; font: 700 .7rem/1 var(--kb-ui); letter-spacing: .08em; text-transform: uppercase; background: var(--kb-green); color: var(--kb-white); padding: 7px 10px; border-radius: 3px; }
.tcFichaFrame img { border-radius: 3px; width: 100%; }
.tcFichaHoles { display: flex; justify-content: space-between; padding: 0 6px 10px; }
.tcFichaHoles span { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--kb-line); }
.tcFormCard { position: absolute; right: -6px; bottom: 0; width: 210px; background: var(--kb-white); border: 1px solid var(--kb-ink); border-radius: 4px; padding: 12px 14px; box-shadow: 0 14px 28px -14px rgba(28, 31, 30, .45); font-family: var(--kb-ui); }
@media (max-width: 599px) { .tcFicha { padding-bottom: 0; } .tcFormCard { position: relative; right: auto; bottom: auto; margin: -56px 8px 0 auto; } }
@media (min-width: 600px) { .tcFormCard { right: -22px; width: 230px; } }
.tcFormCardHead { display: flex; justify-content: space-between; align-items: center; font-size: .65rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--kb-green); border-bottom: 1px dashed var(--kb-line); padding-bottom: 7px; margin-bottom: 8px; }
.tcFormCardHead span:last-child { width: 8px; height: 8px; border-radius: 50%; background: var(--kb-green); }
.tcFormRow { display: grid; grid-template-columns: 1fr 64px; gap: 8px; align-items: center; margin-bottom: 6px; }
.tcFormRow i { display: block; height: 6px; border-radius: 3px; background: var(--kb-mintDeep); }
.tcFormRow b { display: block; height: 16px; border: 1px solid var(--kb-line); border-radius: 2px; background: var(--kb-paper); }
.tcFormRow:nth-child(3) i { width: 70%; }
.tcFormRow:nth-child(4) i { width: 85%; }
.tcFormTick { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.tcFormTick b { width: 14px; height: 14px; border: 1.5px solid var(--kb-green); border-radius: 2px; position: relative; }
.tcFormTick b::after { content: ""; position: absolute; left: 3px; top: 0; width: 4px; height: 8px; border: solid var(--kb-green); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.tcFormTick i { flex: 1; height: 6px; border-radius: 3px; background: var(--kb-mintDeep); }
.tcFicha figcaption { font: 400 .8rem/1.4 var(--kb-ui); color: var(--kb-muted); margin-top: 12px; max-width: 280px; }
@media (min-width: 600px) { .tcFicha figcaption { max-width: calc(100% - 250px); } }

/* Docs layout */
.tcDocs { display: grid; gap: 28px; padding-top: 28px; padding-bottom: 56px; align-items: start; }
.tcDocs > * { min-width: 0; }
@media (min-width: 768px) and (max-width: 1199px) {
  .tcDocs { grid-template-columns: minmax(0, 1fr) 270px; column-gap: 36px; }
  .tcDocs .tcToc { grid-column: 1 / -1; }
  .tcAside { position: sticky; top: calc(var(--kb-headerH) + 20px); }
}
@media (min-width: 1200px) {
  .tcDocs { grid-template-columns: 236px minmax(0, 70ch) 300px; column-gap: 44px; justify-content: space-between; padding-top: 40px; }
  .tcToc, .tcAside { position: sticky; top: calc(var(--kb-headerH) + 24px); max-height: calc(100vh - var(--kb-headerH) - 40px); overflow-y: auto; }
}

/* TOC */
.tcToc { font-family: var(--kb-ui); background: var(--kb-white); border: 1px solid var(--kb-line); border-radius: var(--kb-radius); }
.tcTocToggle { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: none; border: 0; padding: 14px 16px; font: 700 1rem/1.2 var(--kb-ui); color: var(--kb-ink); cursor: pointer; border-radius: var(--kb-radius); text-align: left; }
.tcTocToggle:hover { background: var(--kb-mint); color: var(--kb-greenDeep); }
.tcTocToggle .tcChevron { width: 16px; height: 16px; transition: transform .2s; }
.tcTocToggle[aria-expanded="true"] .tcChevron { transform: rotate(180deg); }
.tcTocTitle { display: none; font: 700 .75rem/1 var(--kb-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--kb-muted); margin: 0 0 12px; }
.tcTocList { list-style: none; margin: 0; padding: 4px 8px 12px; border-top: 1px solid var(--kb-line); }
.tcToc:not(.tcIsOpen) .tcTocList { display: none; }
.tcTocList a { display: grid; grid-template-columns: 1.7em 1fr; gap: 4px; padding: 7px 10px; border-radius: 4px; color: var(--kb-ink); text-decoration: none; font-size: .9rem; font-weight: 600; line-height: 1.35; border-left: 2px solid transparent; }
.tcTocList a span { color: var(--kb-muted); font-variant-numeric: tabular-nums; }
.tcTocList a:hover { background: var(--kb-mint); color: var(--kb-greenDeep); }
.tcTocList a.tcTocActive { border-left-color: var(--kb-green); background: var(--kb-mint); color: var(--kb-greenDeep); }
.tcTocList a.tcTocActive span { color: var(--kb-green); }
.tcTocList li.tcTocSep { border-top: 1px dashed var(--kb-line); margin: 6px 0; }
@media (min-width: 1200px) {
  .tcToc { background: transparent; border: 0; padding: 4px 0; }
  .tcTocToggle { display: none; }
  .tcTocTitle { display: block; padding-left: 12px; }
  .tcToc:not(.tcIsOpen) .tcTocList, .tcTocList { display: block; border-top: 0; padding: 0; border-left: 1px solid var(--kb-line); }
  .tcTocList a { margin-left: -1px; border-radius: 0 4px 4px 0; }
}

/* Article */
.tcArticle { max-width: 70ch; }
.tcSection { padding: 8px 0 28px; margin-bottom: 28px; border-bottom: 1px solid var(--kb-line); }
.tcSection:last-child { border-bottom: 0; }
.tcSection h2 { display: flex; gap: 14px; align-items: baseline; }
.tcNum { flex: none; display: inline-grid; place-items: center; width: 1.7em; height: 1.7em; font-size: .7em; border-radius: 4px; background: var(--kb-green); color: var(--kb-white); transform: translateY(-.12em); }
.tcLead { font-size: 1.12rem; }
.tcArticle h3 { margin-top: 1.6em; }
.tcArticle ul:not([class]), .tcArticle ol:not([class]) { padding-left: 1.3em; }
.tcArticle li { margin-bottom: .4em; }
.tcPhoto { margin: 26px 0; }
.tcPhoto img { border-radius: var(--kb-radius); border: 1px solid var(--kb-line); background: var(--kb-white); padding: 6px; }
.tcPhoto figcaption { font: 400 .82rem/1.45 var(--kb-ui); color: var(--kb-muted); margin-top: 8px; padding-left: 10px; border-left: 2px solid var(--kb-mintDeep); }

/* Tables */
.tcTableWrap { overflow-x: auto; margin: 0 0 1.2em; border: 1px solid var(--kb-line); border-radius: var(--kb-radius); background: var(--kb-white); }
.tcTable { width: 100%; border-collapse: collapse; font: 400 .92rem/1.5 var(--kb-ui); margin: 0; }
.tcTable caption { text-align: left; padding: 12px 14px; font-weight: 600; color: var(--kb-ink); border-bottom: 1px solid var(--kb-line); background: var(--kb-paper); }
.tcTable caption small { display: block; font-weight: 400; color: var(--kb-muted); font-size: .8rem; margin-top: 2px; }
.tcTable th, .tcTable td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--kb-line); }
.tcTable thead th { background: var(--kb-mint); color: var(--kb-greenDeep); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.tcTable tbody tr:last-child > * { border-bottom: 0; }
.tcTable tbody th { font-weight: 600; }
@media (max-width: 599px) { .tcTable { font-size: .82rem; hyphens: auto; } .tcTable th, .tcTable td { padding: 8px; } .tcTable thead th { font-size: .7rem; letter-spacing: .02em; } }
.tcTable .tcRate { font-weight: 700; color: var(--kb-green); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Callouts */
.tcCallout { margin: 1.5em 0; padding: 16px 18px; border-radius: var(--kb-radius); font-size: 1rem; }
.tcCallout > :last-child { margin-bottom: 0; }
.tcCalloutHead { display: flex; align-items: center; gap: 8px; font: 700 .8rem/1 var(--kb-ui); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 10px; }
.tcCalloutHead .tcIcon { width: 20px; height: 20px; }
.tcCalloutWarn { --kb-dot: var(--kb-red); background: var(--kb-redWash); border-left: 4px solid var(--kb-red); }
.tcCalloutWarn .tcCalloutHead { color: var(--kb-redDeep); }
.tcCalloutExample { background: var(--kb-mint); border-left: 4px solid var(--kb-mintDeep); }
.tcCalloutExample .tcCalloutHead { color: var(--kb-greenDeep); }
.tcCalloutSource { background: var(--kb-white); border: 1.5px solid var(--kb-green); }
.tcCalloutSource .tcCalloutHead { color: var(--kb-green); }
.tcCallout a { color: var(--kb-greenDeep); font-weight: 600; }
.tcCallout a:hover { background: var(--kb-white); color: var(--kb-ink); }
.tcCalloutWarn a:hover { background: var(--kb-white); color: var(--kb-redDeep); }

/* Receipt (worked example) */
.tcReceipt { position: relative; background: var(--kb-white); border: 1px solid var(--kb-line); border-bottom: 0; padding: 20px 20px 26px; font-family: var(--kb-ui); margin: 1.4em 0 2em; filter: drop-shadow(0 6px 10px rgba(28, 31, 30, .08)); }
.tcReceipt::after { content: ""; position: absolute; left: -1px; right: -1px; bottom: -10px; height: 10px; background: linear-gradient(-45deg, transparent 6px, var(--kb-white) 0) 0 0 / 12px 10px repeat-x, linear-gradient(45deg, transparent 6px, var(--kb-white) 0) 0 0 / 12px 10px repeat-x; }
.tcReceiptHead { text-align: center; border-bottom: 1px dashed var(--kb-ink); padding-bottom: 12px; margin-bottom: 4px; }
.tcReceiptHead p { margin: 0; font-size: .8rem; color: var(--kb-muted); }
.tcReceiptHead strong { display: block; font-size: 1rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--kb-ink); }
.tcReceiptSteps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.tcReceiptSteps > li { counter-increment: step; padding: 12px 0; border-bottom: 1px dashed var(--kb-line); }
.tcReceiptStep { margin: 0 0 6px; font-weight: 700; font-size: .9rem; display: flex; gap: 8px; }
.tcReceiptStep::before { content: "Paso " counter(step); flex: none; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; background: var(--kb-mint); color: var(--kb-greenDeep); padding: 3px 6px; border-radius: 3px; align-self: flex-start; }
.tcReceiptLine { display: flex; justify-content: space-between; gap: 16px; font-size: .9rem; margin: 2px 0; }
.tcReceiptLine span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.tcReceiptLine.tcNeg span:last-child { color: var(--kb-redDeep); }
.tcReceiptLine.tcSum { border-top: 1px solid var(--kb-ink); margin-top: 6px; padding-top: 6px; font-weight: 700; }
.tcReceiptNote { font-size: .8rem; color: var(--kb-muted); margin: 6px 0 0; }
.tcReceiptTotal { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0 0; font-size: 1.05rem; font-weight: 700; border-top: 2px solid var(--kb-ink); margin-top: 2px; }
.tcReceiptFoot { text-align: center; font-size: .78rem; color: var(--kb-muted); margin: 12px 0 0; }

/* Timeline */
.tcTimeline { list-style: none; padding: 0; margin: 1.5em 0; display: grid; gap: 0; font-family: var(--kb-ui); }
.tcTimeline li { position: relative; padding: 0 0 18px 28px; border-left: 2px solid var(--kb-mintDeep); margin-left: 7px; }
.tcTimeline li::before { content: ""; position: absolute; left: -8px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--kb-white); border: 2px solid var(--kb-green); }
.tcTimeline li.tcKey::before { background: var(--kb-green); }
.tcMonth { display: block; font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--kb-green); }
.tcTimeline strong { display: block; font-size: .95rem; margin: 2px 0; }
.tcTimeline p { margin: 0; font-size: .85rem; line-height: 1.5; color: var(--kb-muted); }
@media (min-width: 640px) {
  .tcTimeline { grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 2px solid var(--kb-mintDeep); padding-top: 0; margin-top: 2.2em; }
  .tcTimeline li { border-left: 0; margin: 0; padding: 22px 10px 0 0; }
  .tcTimeline li::before { left: 0; top: -9px; }
}

/* Checklist */
.tcChecklist { list-style: none; padding: 0; margin: 1.2em 0; display: grid; gap: 10px; }
.tcChecklist li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; padding: 14px 16px; background: var(--kb-white); border: 1px solid var(--kb-line); border-radius: var(--kb-radius); margin: 0; }
.tcChecklist li::before { content: ""; width: 20px; height: 20px; margin-top: 3px; border: 1.75px solid var(--kb-green); border-radius: 4px; background: var(--kb-mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%232f5d50' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px 16px no-repeat; }
.tcChecklist strong { font-family: var(--kb-ui); display: block; }
.tcChecklist p { margin: 0; font-size: .97rem; }

/* FAQ */
.tcJump { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 1.4em; font-family: var(--kb-ui); }
.tcJump a { display: inline-block; padding: 6px 12px; border: 1px solid var(--kb-green); border-radius: 999px; font-weight: 600; font-size: .88rem; text-decoration: none; color: var(--kb-green); background: var(--kb-white); }
.tcJump a:hover { background: var(--kb-green); color: var(--kb-white); }
.tcFaqGroup { margin-bottom: 1.6em; }
.tcFaqGroupLabel { font: 700 .78rem/1 var(--kb-ui); text-transform: uppercase; letter-spacing: .1em; color: var(--kb-greenDeep); background: var(--kb-mint); padding: 9px 12px; border-radius: 4px; margin: 0 0 4px; }
.tcFaqItem { padding: 14px 0 4px; border-bottom: 1px solid var(--kb-line); }
.tcFaqItem h3 { margin: 0 0 .4em; font-size: 1.05rem; }
.tcFaqItem p { font-size: 1rem; }
.tcFaqGroup:last-child { margin-bottom: 0; }
.tcFaqGroup:last-child .tcFaqItem:last-child { border-bottom: 0; }

/* Forms */
.tcSignup { background: var(--kb-white); border: 1px solid var(--kb-line); border-top: 4px solid var(--kb-green); border-radius: var(--kb-radius); padding: 22px 18px; }
@media (min-width: 640px) { .tcSignup { padding: 28px; } }
.tcPerks { list-style: none; padding: 0; margin: 0 0 1.3em; display: grid; gap: 8px; }
.tcPerks li { display: flex; gap: 10px; align-items: flex-start; font-size: 1rem; margin: 0; }
.tcPerks .tcIcon { color: var(--kb-green); margin-top: 3px; }
.tcForm { display: grid; gap: 14px; font-family: var(--kb-ui); }
.tcPair { display: grid; gap: 14px; }
.tcAsideSignup .tcPair { gap: 10px; }
@media (min-width: 640px) { .tcForm .tcPair { grid-template-columns: 1fr 1fr; } }
.tcField { display: grid; gap: 5px; align-content: start; }
.tcField label, .tcFieldLabel { font-weight: 600; font-size: .9rem; }
.tcField input, .tcField textarea, .tcField select { width: 100%; font: 400 1rem/1.4 var(--kb-ui); color: var(--kb-ink); background: var(--kb-paper); border: 1.5px solid #8e9894; border-radius: 4px; padding: 10px 12px; }
.tcField input:hover, .tcField textarea:hover, .tcField select:hover { border-color: var(--kb-green); }
.tcField input:focus-visible, .tcField textarea:focus-visible, .tcField select:focus-visible { border-color: var(--kb-green); background: var(--kb-white); }
.tcField textarea { min-height: 140px; resize: vertical; }
.tcHint { font-size: .8rem; color: var(--kb-muted); }
.tcCheck { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; font-size: .88rem; line-height: 1.5; }
.tcCheck input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--kb-green); }
.tcOpt { color: var(--kb-muted); font-weight: 400; }
.tcInfoTable { width: 100%; border-collapse: collapse; font: 400 .8rem/1.45 var(--kb-ui); margin: 18px 0 0; }
.tcInfoTable caption { text-align: left; font-weight: 700; padding-bottom: 6px; font-size: .82rem; }
.tcInfoTable th, .tcInfoTable td { border: 1px solid var(--kb-line); padding: 6px 8px; text-align: left; vertical-align: top; }
.tcInfoTable th { background: var(--kb-paper); width: 32%; font-weight: 600; }

/* Aside */
.tcAside { display: grid; gap: 18px; font-family: var(--kb-ui); }
.tcFichaRapida { background: var(--kb-white); border: 1px solid var(--kb-line); border-radius: var(--kb-radius); padding: 18px; }
.tcFichaRapida h2 { font-size: 1.05rem; display: flex; align-items: center; gap: 8px; }
.tcFichaRapida h2 .tcIcon { color: var(--kb-green); }
.tcTakeaways { list-style: none; counter-reset: tk; margin: 0; padding: 0; }
.tcTakeaways li { counter-increment: tk; display: grid; grid-template-columns: 24px 1fr; gap: 8px; font-size: .86rem; line-height: 1.5; padding: 9px 0; border-top: 1px solid var(--kb-line); margin: 0; }
.tcTakeaways li::before { content: counter(tk); width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--kb-mint); color: var(--kb-greenDeep); font-weight: 700; font-size: .75rem; }
.tcAsideSignup { background: var(--kb-mint); border-radius: var(--kb-radius); padding: 18px; border: 1px solid var(--kb-mintDeep); }
.tcAsideSignup h2 { font-size: 1.05rem; margin-bottom: .3em; }
.tcAsideSignup > p { font-size: .85rem; line-height: 1.5; font-family: var(--kb-text); }
.tcAsideSignup .tcForm { gap: 10px; }
.tcAsideSignup .tcField input { padding: 8px 10px; font-size: .92rem; background: var(--kb-white); }
.tcAsideSignup .tcCheck { font-size: .78rem; }
.tcAsideSignup .tcBtn { width: 100%; }
.tcAsideSignup .tcInfoTable { font-size: .72rem; background: var(--kb-white); }
.tcAsideSignup .tcInfoTable th, .tcAsideSignup .tcInfoTable td { padding: 4px 6px; }

/* Plain pages */
.tcPage { padding: 36px 0 64px; }
.tcPageGrid { display: grid; gap: 36px; align-items: start; }
@media (min-width: 960px) { .tcPageGrid { grid-template-columns: minmax(0, 70ch) minmax(0, 1fr); gap: 56px; } }
.tcProse { max-width: 70ch; }
.tcProse h2 { margin-top: 1.6em; font-size: 1.35rem; }
.tcProse h2:first-of-type { margin-top: .6em; }
.tcProse ul, .tcProse ol { padding-left: 1.3em; }
.tcProse li { margin-bottom: .4em; }
.tcSideCard { background: var(--kb-white); border: 1px solid var(--kb-line); border-radius: var(--kb-radius); padding: 18px; font-family: var(--kb-ui); font-size: .92rem; }
.tcSideCard h2 { font-size: 1.05rem; }
.tcContactList { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.tcContactList li { display: flex; gap: 10px; align-items: flex-start; margin: 0; }
.tcContactList .tcIcon { color: var(--kb-green); margin-top: 2px; }
.tcRoles { list-style: none; padding: 0; display: grid; gap: 10px; }
.tcRoles li { padding: 12px 14px; border-left: 3px solid var(--kb-green); background: var(--kb-white); margin: 0; }
.tcRoles strong { font-family: var(--kb-ui); }
.tcCenter { text-align: center; max-width: 60ch; margin: 0 auto; padding-top: 48px; padding-bottom: 72px; }
.tcCenter .tcDocActions { justify-content: center; }
.tcBigCode { font: 700 clamp(3.5rem, 10vw, 6rem)/1 var(--kb-ui); color: var(--kb-mintDeep); margin: 0 0 8px; }

/* Footer */
.tcFooter { font-family: var(--kb-ui); }
.tcFootMint { background: var(--kb-mint); padding: 40px 0; border-top: 1px solid var(--kb-mintDeep); }
.tcFootGrid { display: grid; gap: 32px; }
@media (min-width: 860px) { .tcFootGrid { grid-template-columns: 1.4fr 1fr; gap: 64px; } }
.tcFooter h2 { font-size: 1rem; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.tcSummary { margin: 0; padding: 0; list-style: none; font-family: var(--kb-text); font-size: .95rem; line-height: 1.6; }
.tcSummary li { padding: 6px 0 6px 18px; position: relative; margin: 0; }
.tcSummary li::before { content: ""; position: absolute; left: 0; top: 15px; width: 7px; height: 7px; border-radius: 50%; background: var(--kb-green); }
.tcFootMint .tcContactList { font-size: .92rem; }
.tcFootMint a { color: var(--kb-greenDeep); }
.tcFootMint a:hover { background: var(--kb-white); color: var(--kb-ink); }
.tcFootNav { margin-top: 16px; font-size: .9rem; }
.tcFootGreen { background: var(--kb-green); color: var(--kb-white); padding: 22px 0 28px; }
.tcLegalLinks { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; align-items: center; row-gap: 8px; font-size: .88rem; font-weight: 600; }
.tcLegalLinks li { display: flex; align-items: center; margin: 0; }
.tcLegalLinks li + li::before { content: ""; width: 1px; height: 14px; background: rgba(255, 255, 255, .45); margin: 0 12px; }
.tcLegalLinks a, .tcLinkBtn { color: var(--kb-white); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .5); text-underline-offset: 3px; border-radius: 3px; padding: 2px 4px; }
.tcLegalLinks a:hover, .tcLegalLinks .tcLinkBtn:hover { background: var(--kb-white); color: var(--kb-greenDeep); text-decoration-color: currentColor; }
.tcLegalLinks a:focus-visible, .tcLinkBtn:focus-visible { box-shadow: 0 0 0 2px var(--kb-green), 0 0 0 4px var(--kb-white); }
.tcLinkBtn { background: none; border: 0; font: inherit; cursor: pointer; }
.tcRisk { font-size: .78rem; line-height: 1.6; color: var(--kb-white); margin: 0 0 10px; max-width: 110ch; }
.tcCopy { font-size: .78rem; margin: 0; color: var(--kb-white); opacity: .9; }

/* Consent drawer */
.tcDrawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 60; width: 380px; max-width: 100%; background: var(--kb-white); border-left: 1px solid var(--kb-line); box-shadow: -18px 0 40px -20px rgba(28, 31, 30, .4); padding: 26px 22px; overflow-y: auto; font-family: var(--kb-ui); display: flex; flex-direction: column; gap: 14px; animation: tcSlideIn .3s ease-out; }
.tcDrawer[hidden] { display: none; }
@keyframes tcSlideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
@media (max-width: 599px) { .tcDrawer { width: 100%; top: auto; max-height: 92vh; border-left: 0; border-top: 3px solid var(--kb-green); } }
.tcDrawer h2 { font-size: 1.2rem; margin: 0; display: flex; align-items: center; gap: 8px; }
.tcDrawer h2 .tcIcon { color: var(--kb-green); }
.tcDrawer p { font-family: var(--kb-text); font-size: .93rem; line-height: 1.6; margin: 0; }
.tcDrawerActions { display: grid; gap: 10px; margin-top: 4px; }
.tcDrawerBtn { width: 100%; font: 600 1rem/1.2 var(--kb-ui); padding: 13px 16px; border-radius: var(--kb-radius); border: 1.5px solid var(--kb-green); background: var(--kb-white); color: var(--kb-greenDeep); cursor: pointer; }
.tcDrawerBtn:hover { background: var(--kb-green); color: var(--kb-white); border-color: var(--kb-green); }
.tcDrawerBtn[aria-expanded="true"] { background: var(--kb-mint); color: var(--kb-greenDeep); }
.tcDrawerBtn[aria-expanded="true"]:hover { background: var(--kb-green); color: var(--kb-white); }
.tcPrefs { border-top: 1px dashed var(--kb-line); padding-top: 14px; display: grid; gap: 12px; }
.tcPrefs[hidden] { display: none; }
.tcPref { display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; align-items: center; padding: 12px; border: 1px solid var(--kb-line); border-radius: var(--kb-radius); }
.tcPref label { font-weight: 700; font-size: .95rem; }
.tcPref p { grid-column: 1 / -1; font-size: .82rem; color: var(--kb-muted); }
.tcSwitch { appearance: none; -webkit-appearance: none; width: 44px; height: 24px; border-radius: 999px; background: #8e9894; position: relative; cursor: pointer; margin: 0; transition: background .2s; }
.tcSwitch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--kb-white); transition: transform .2s; }
.tcSwitch:checked { background: var(--kb-green); }
.tcSwitch:checked::after { transform: translateX(20px); }
.tcSwitch:disabled { opacity: .6; cursor: not-allowed; }
.tcSwitch:hover:not(:disabled) { box-shadow: 0 0 0 3px var(--kb-mint); }
.tcDrawer a { font-weight: 600; }
.tcTable code { font: 600 .85em/1.4 ui-monospace, Menlo, monospace; white-space: nowrap; background: var(--kb-mint); padding: 2px 5px; border-radius: 3px; }
