/* ==========================================================
   Blog de AvanziaChat · hoja de estilos compartida
   Usa los mismos tokens, fuentes y componentes que el resto de avanziatec.com.
   ========================================================== */

/* OD-LAYOUT-PRIMITIVES v1 — structure only */
@layer od-layout {
  :where(.od-stack,.od-row,.od-row-top,.od-cluster,.od-grid,.od-field,.od-stat,.od-cell,.od-tile) > :where(*) { min-width: 0; }
  .od-stack   { display: flex; flex-direction: column; gap: var(--od-gap, 8px); }
  .od-row     { display: flex; align-items: center; gap: var(--od-gap, 8px); }
  .od-cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--od-gap, 8px); }
  .od-fill    { flex: 1 1 0; min-width: 0; }
  .od-fixed   { flex: none; }
  .od-grid    { display: grid; gap: var(--od-gap, 12px); grid-template-columns: repeat(var(--od-cols, 3), minmax(0, 1fr)); }
  .od-stat, .od-field, .od-cell { display: grid; gap: var(--od-gap, 2px); }
  :where(.od-stat,.od-field,.od-cell) > :where(*) { display: block; }
  .od-truncate { display: block; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .od-clamp-2, .od-clamp-3 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
  .od-clamp-2 { -webkit-line-clamp: 2; }
  .od-clamp-3 { -webkit-line-clamp: 3; }
  .od-nowrap  { white-space: nowrap; }
  .od-rail { display: flex; gap: var(--od-gap, 8px); overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
             padding-inline: var(--od-rail-pad, 16px); scroll-padding-inline: var(--od-rail-pad, 16px); }
  .od-rail::-webkit-scrollbar { display: none; }
  :where(.od-rail) > :where(*) { flex: none; scroll-snap-align: start; }
  .od-touch  { min-width: 44px; min-height: 44px; }
}
/* /OD-LAYOUT-PRIMITIVES v1 */

@font-face { font-family: "Barlow Condensed"; src: url("../assets/fonts/barlow-condensed-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../assets/fonts/barlow-condensed-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../assets/fonts/manrope-latin.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  --navy: #00009B; --violet: #5B2BE0; --violet-hover: #4A1FCC;
  --ink: #0E0B2B; --page: #F6F5FB; --surface: #FFFFFF; --muted: #555170; --border: #E6E3F2; --soft: #EEEAFB;
  --ok-bg: #E3F6EA; --ok-fg: #146C3A; --warn-bg: #FFF1D6; --warn-fg: #7A4200; --bad-bg: #FDE6E6; --bad-fg: #A1231F;
  --grad-band: linear-gradient(120deg, #00009B 0%, #3A1FD1 50%, #8B1FE0 100%);
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --s-1: 8px; --s-2: 16px; --s-3: 24px; --s-4: 32px; --s-6: 48px; --s-8: 64px;
  --header-h: 64px; --r-card: 24px; --r-ctl: 16px; --r-pill: 999px;
  --t-fast: 180ms; --ease-out: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 1.0625rem/1.7 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--violet); text-underline-offset: 3px; }
@media (hover: hover) { a:hover { color: var(--navy); } }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: absolute; top: var(--s-1); left: var(--s-1); z-index: 100; padding: var(--s-1) var(--s-2); background: #fff; color: var(--ink); border-radius: 8px; font-weight: 700; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--s-3); }
.icon { width: 20px; height: 20px; flex: none; }

/* ---------- cabecera ---------- */
.bl-header { position: sticky; top: 0; z-index: 50; background: var(--ink); color: #fff; }
.bl-header .bar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "brand nav cta"; align-items: center; gap: var(--s-2); min-height: var(--header-h); }
.brand { grid-area: brand; display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand img { width: 36px; height: 36px; flex: none; }
.brand strong { font: 700 1.375rem/1 var(--font-display); text-transform: uppercase; letter-spacing: .02em; }
@media (hover: hover) { .brand:hover { color: #fff; } }
.bl-nav { grid-area: nav; min-width: 0; }
.bl-nav ul { list-style: none; margin: 0; justify-content: center; --od-gap: 2px; --od-rail-pad: 0px; }
.bl-nav a { position: relative; display: block; padding: 12px 12px; color: rgba(255,255,255,.9); text-decoration: none; font-weight: 600; font-size: .9375rem; white-space: nowrap; }
.bl-nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px; border-radius: 2px; background: #fff; transform: scaleX(0); transform-origin: left; transition: transform var(--t-fast) var(--ease-out); }
.bl-nav a[aria-current="page"] { color: #fff; }
.bl-nav a[aria-current="page"]::after { transform: scaleX(1); }
@media (hover: hover) { .bl-nav a:hover { color: #fff; } .bl-nav a:hover::after { transform: scaleX(1); } }
.hdr-cta { grid-area: cta; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 18px; border-radius: var(--r-pill); background: #fff; color: var(--navy); font-weight: 800; font-size: .9375rem; text-decoration: none; white-space: nowrap; transition: background-color var(--t-fast); }
.hdr-cta .icon { width: 18px; height: 18px; }
@media (hover: hover) { .hdr-cta:hover { background: #E4DBFF; color: var(--navy); } }
.hdr-cta:focus-visible { outline-color: #fff; }
.hdr-cta .short { display: none; }

/* ---------- hero ---------- */
.bl-hero { background: var(--grad-band); color: #fff; padding-block: var(--s-6) var(--s-6); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 var(--s-2); padding: 0; font-size: .875rem; color: rgba(255,255,255,.9); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: rgba(255,255,255,.6); }
.crumbs a { color: #fff; }
.crumbs [aria-current] { color: rgba(255,255,255,.9); }
.bl-hero .kicker { margin: 0; font-size: .8125rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #E4DBFF; }
.bl-hero h1 { max-width: 22ch; margin: var(--s-1) 0 0; font: 700 clamp(2.25rem, 1.6rem + 2.8vw, 3.75rem)/1.02 var(--font-display); text-transform: uppercase; text-wrap: balance; }
.bl-hero .dek { max-width: 62ch; margin: var(--s-2) 0 0; font-size: 1.125rem; color: rgba(255,255,255,.94); }
.bl-hero .meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: var(--s-3) 0 0; padding: 0; list-style: none; font-size: .9375rem; color: rgba(255,255,255,.92); }
.bl-hero .meta li { display: inline-flex; align-items: center; gap: 6px; }
.bl-hero .meta .icon { width: 18px; height: 18px; }

/* ---------- artículo ---------- */
.lg-main { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: var(--s-6); padding-block: var(--s-6) var(--s-6); align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; padding: var(--s-3); border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--border); }
.toc summary { cursor: pointer; font-weight: 800; font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); list-style: none; min-height: 32px; }
.toc summary::-webkit-details-marker { display: none; }
.toc ol { list-style: none; margin: var(--s-1) 0 0; padding: 0; }
.toc li a { display: block; padding: 6px 0; color: var(--ink); text-decoration: none; font-size: .875rem; line-height: 1.4; }
@media (hover: hover) { .toc li a:hover { color: var(--violet); text-decoration: underline; } }
.doc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: clamp(24px, 4vw, 56px); }
.doc > * { max-width: 70ch; }
.doc h2 { margin: var(--s-6) 0 var(--s-2); font: 700 clamp(1.625rem, 1.3rem + 1vw, 2.125rem)/1.1 var(--font-display); text-transform: uppercase; scroll-margin-top: calc(var(--header-h) + 24px); text-wrap: balance; }
.doc h3 { margin: var(--s-4) 0 var(--s-1); font-size: 1.1875rem; line-height: 1.35; }
.doc p { margin: 0 0 var(--s-2); }
.doc ul, .doc ol { margin: 0 0 var(--s-2); padding-left: 1.25em; }
.doc li { margin-bottom: 6px; }
.doc li::marker { color: var(--violet); font-weight: 700; }
.doc a { overflow-wrap: anywhere; }
.doc .lead { font-size: 1.1875rem; line-height: 1.6; }
.doc strong { font-weight: 800; }

/* nota destacada: fondo suave, sin barra lateral */
.note { max-width: 70ch; margin: var(--s-3) 0; padding: var(--s-3); border-radius: var(--r-ctl); background: var(--soft); }
.note .note-t { display: block; margin-bottom: 4px; font-weight: 800; font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; color: var(--violet); }
.note p:last-child { margin-bottom: 0; }

/* pasos numerados (guías de uso) */
.steps { list-style: none; padding: 0 !important; counter-reset: st; display: grid; gap: var(--s-2); }
.steps > li { counter-increment: st; display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: var(--s-2); row-gap: 0; align-items: start; margin: 0 !important; padding: var(--s-2) var(--s-3) var(--s-2) var(--s-2); border: 1px solid var(--border); border-radius: var(--r-ctl); }
.steps > li::before { grid-column: 1; grid-row: 1 / span 2; content: counter(st); width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--violet); color: #fff; font-weight: 800; }
.steps .st-t { grid-column: 2; grid-row: 1; display: block; font-weight: 800; }
.steps .st-d { grid-column: 2; grid-row: 2; display: block; margin-top: 2px; }

/* tabla simple */
.tbl-wrap { max-width: none !important; margin: var(--s-3) 0; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-ctl); }
.tbl { width: 100%; min-width: 520px; border-collapse: collapse; font-size: .9375rem; }
.tbl th, .tbl td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.tbl thead th { background: var(--soft); font-weight: 800; }
.tbl tbody tr:last-child td, .tbl tbody tr:last-child th { border-bottom: 0; }
.tbl tbody th { font-weight: 700; }

/* ---------- maquetas de interfaz (datos de ejemplo) ---------- */
.mock { max-width: 640px !important; margin: var(--s-4) 0; }
.mock-win { border: 1px solid var(--border); border-radius: 20px; background: var(--page); overflow: hidden; box-shadow: 0 24px 48px -28px rgba(14, 11, 43, .45); }
.mock-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: var(--ink); color: #fff; }
.mock-top .mt { min-width: 0; font-weight: 800; font-size: .9375rem; }
.mock-top .ms { display: block; font-weight: 500; font-size: .8125rem; color: #D6D2EA; }
.sample { flex: none; padding: 4px 10px; border-radius: var(--r-pill); background: #FFE7A3; color: #3D2A00; font-size: .75rem; font-weight: 800; white-space: nowrap; }
.mock-body { padding: 16px; display: grid; gap: 10px; font-size: .9375rem; line-height: 1.5; }
.mock figcaption { margin-top: 10px; font-size: .875rem; color: var(--muted); }
.chip { display: inline-block; padding: 2px 10px; border-radius: var(--r-pill); background: var(--soft); color: #4320B8; font-size: .75rem; font-weight: 800; white-space: nowrap; }
.chip.ok { background: var(--ok-bg); color: var(--ok-fg); }
.chip.warn { background: var(--warn-bg); color: var(--warn-fg); }
.chip.bad { background: var(--bad-bg); color: var(--bad-fg); }

/* conversación */
.msg { max-width: 82%; padding: 10px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.msg.out { justify-self: end; background: #E9E2FF; border-color: #D8CCFF; }
.msg .who { display: block; font-size: .75rem; font-weight: 800; color: var(--muted); }
.msg.out .who { color: #4320B8; }
.sys { justify-self: center; padding: 4px 12px; border-radius: var(--r-pill); background: var(--surface); border: 1px dashed #C9C3E3; color: var(--muted); font-size: .8125rem; text-align: center; }

/* llamada */
.call { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.avatar { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--violet); color: #fff; font-weight: 800; }
.call .od-field .n { font-weight: 800; }
.call .od-field .p { font-size: .8125rem; color: var(--muted); }
.line { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--border); }
.line:last-child { border-bottom: 0; }
.line .sp { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding-top: 3px; }
.line.bot .sp { color: #4320B8; }
.panel { padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.panel .pt { display: block; margin-bottom: 4px; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.panel ul { margin: 0; padding-left: 1.1em; }

/* kanban */
.kb { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.kb-col { display: grid; align-content: start; gap: 8px; padding: 10px; border-radius: 14px; background: #ECE9F6; }
.kb-col .kh { display: flex; justify-content: space-between; gap: 6px; font-size: .8125rem; font-weight: 800; }
.kb-card { display: grid; gap: 4px; padding: 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); font-size: .8125rem; line-height: 1.4; }
.kb-card .n { font-weight: 800; font-size: .875rem; }
.kb-card .v { font-weight: 800; color: var(--ink); }
.kb-card .r { color: var(--muted); }

/* filas (agenda, plantillas, informes) */
.rows { display: grid; gap: 8px; }
.row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.row .t { font-weight: 800; font-variant-numeric: tabular-nums; }
.row .od-field .n { font-weight: 700; }
.row .od-field .d { font-size: .8125rem; color: var(--muted); }
.tpl { padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.tpl-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.tpl-head .n { font-weight: 800; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .875rem; }
.tpl-body { padding: 12px; border-radius: 12px; background: #E9E2FF; }
.tpl-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.tpl-btns span { padding: 6px 12px; border-radius: 10px; background: var(--surface); border: 1px solid #D8CCFF; color: #4320B8; font-weight: 700; font-size: .8125rem; }
.var { padding: 0 4px; border-radius: 4px; background: #FFE7A3; color: #3D2A00; font-family: ui-monospace, Consolas, monospace; font-size: .8125rem; }

/* flujo */
.flow { display: grid; gap: 0; }
.fnode { position: relative; display: grid; gap: 2px; padding: 10px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.fnode + .fnode { margin-top: 18px; }
.fnode + .fnode::before { content: ""; position: absolute; left: 28px; top: -19px; width: 2px; height: 18px; background: #C9C3E3; }
.fnode .k { font-size: .6875rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #4320B8; }
.fnode.trig { background: var(--ink); color: #fff; border-color: var(--ink); }
.fnode.trig .k { color: #D9CCFF; }
.fbranch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }

/* indicadores */
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.kpi { display: grid; gap: 2px; padding: 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.kpi .v { font: 700 clamp(1.5rem, 1.2rem + 1vw, 2rem)/1 var(--font-display); white-space: nowrap; }
.kpi .l { font-size: .8125rem; color: var(--muted); line-height: 1.35; }
.bars { display: grid; gap: 8px; }
.bar { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr) 32px; align-items: center; gap: 10px; font-size: .8125rem; }
.bar .track { height: 12px; border-radius: 6px; background: #E6E3F2; overflow: hidden; }
.bar .fill { display: block; height: 100%; border-radius: 6px; background: var(--violet); }
.bar .n { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }

/* documento de ejemplo (base de conocimiento) */
.sheet { padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); font-size: .9375rem; }
.sheet h4 { margin: 12px 0 4px; font-size: .9375rem; }
.sheet h4:first-child { margin-top: 0; }
.sheet p { margin: 0; }

/* ---------- preguntas frecuentes ---------- */
.faq { display: grid; gap: 10px; max-width: 70ch; }
.faq details { border: 1px solid var(--border); border-radius: var(--r-ctl); background: var(--surface); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 14px 18px; cursor: pointer; font-weight: 800; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--soft); color: var(--violet); font-weight: 800; }
.faq details[open] summary::after { content: "–"; }
@media (hover: hover) { .faq summary:hover { background: #F8F6FE; } }
.faq .ans { padding: 0 18px 16px; }
.faq .ans p:last-child { margin-bottom: 0; }

/* ---------- llamado final ---------- */
.cta-band { max-width: none !important; margin: var(--s-6) 0 0; padding: clamp(24px, 4vw, 40px); border-radius: var(--r-card); background: var(--grad-band); color: #fff; }
.cta-band h2 { margin: 0 0 var(--s-1) !important; color: #fff; }
.cta-band p { max-width: 58ch; color: rgba(255,255,255,.94); }
.btn-light { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 12px 24px; border-radius: var(--r-pill); background: #fff; color: var(--navy); font-weight: 800; text-decoration: none; transition: background-color var(--t-fast), transform var(--t-fast) var(--ease-out); }
.btn-light .icon { width: 20px; height: 20px; }
@media (hover: hover) { .btn-light:hover { background: #E4DBFF; color: var(--navy); transform: translateY(-1px); } }
.btn-light:focus-visible { outline-color: #fff; }
.cta-band .sub { display: block; margin-top: var(--s-2); font-size: .875rem; color: rgba(255,255,255,.9); }
.cta-band .sub a { color: #fff; }

/* ---------- tarjetas de artículos ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); list-style: none; margin: 0; padding: 0; }
.card { position: relative; display: grid; grid-template-rows: auto auto 1fr auto; gap: 10px; height: 100%; padding: var(--s-3); border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--border); transition: transform var(--t-fast) var(--ease-out), box-shadow var(--t-fast); }
.card .chip { justify-self: start; }
.card h3 { margin: 0; font: 700 1.625rem/1.05 var(--font-display); text-transform: uppercase; text-wrap: balance; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-card); }
.card p { margin: 0; color: var(--muted); font-size: .9375rem; line-height: 1.55; }
.card .cmeta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .8125rem; color: var(--muted); font-weight: 600; }
@media (hover: hover) { .card:hover { transform: translateY(-3px); box-shadow: 0 24px 40px -28px rgba(14, 11, 43, .5); } .card:hover h3 a { color: var(--violet); } }
.card:focus-within { outline: 3px solid var(--violet); outline-offset: 3px; }
.card h3 a:focus-visible { outline: none; }
.card.star { grid-column: span 2; background: var(--ink); border-color: var(--ink); }
.card.star h3 { font-size: clamp(1.875rem, 1.4rem + 1.4vw, 2.5rem); }
.card.star h3 a { color: #fff; }
.card.star p, .card.star .cmeta { color: #D6D2EA; }
.card.star .chip { background: #fff; color: var(--navy); }
@media (hover: hover) { .card.star:hover h3 a { color: #D9CCFF; } }

.bl-section { padding-block: var(--s-6) 0; }
.bl-section:last-of-type { padding-bottom: var(--s-8); }
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s-2); margin-bottom: var(--s-3); }
.sec-head h2 { margin: 0; font: 700 clamp(2rem, 1.5rem + 1.8vw, 2.875rem)/1 var(--font-display); text-transform: uppercase; }
.sec-head p { max-width: 52ch; margin: 0; color: var(--muted); }
.jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--s-3); }
.jump a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border-radius: var(--r-pill); border: 1.5px solid rgba(255,255,255,.75); color: #fff; font-weight: 700; text-decoration: none; }
@media (hover: hover) { .jump a:hover { background: #fff; color: var(--navy); } }
.jump a:focus-visible { outline-color: #fff; }

.related { padding-bottom: var(--s-8); }
.related .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ---------- pie ---------- */
.lg-footer { background: var(--ink); color: #fff; padding-block: var(--s-6) var(--s-4); }
.lg-footer .cols { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: var(--s-4); }
.lg-footer h2 { margin: 0 0 var(--s-2); font: 800 .8125rem/1.4 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: #B9B4D6; }
.lg-footer ul { list-style: none; margin: 0; padding: 0; }
.lg-footer li { color: #D6D2EA; font-size: .9375rem; padding-block: 4px; }
.lg-footer a { color: #fff; text-decoration: none; }
@media (hover: hover) { .lg-footer a:hover { color: #D9CCFF; text-decoration: underline; } }
.lg-footer a:focus-visible { outline-color: #fff; }
.lg-footer .tm { margin-top: var(--s-4); padding-top: var(--s-3); border-top: 1px solid rgba(255,255,255,.12); color: #B9B4D6; font-size: .8125rem; line-height: 1.6; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .bl-header .bar { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "brand cta" "nav nav"; row-gap: 0; }
  .hdr-cta { justify-self: end; }
  .bl-nav { margin-inline: calc(var(--s-3) * -1); border-top: 1px solid rgba(255,255,255,.1); }
  .bl-nav ul { justify-content: flex-start; --od-rail-pad: 24px; }
  .toc { position: static; max-height: none; }
  .lg-main { grid-template-columns: minmax(0, 1fr); gap: var(--s-3); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg-footer .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .container { padding-inline: var(--s-2); }
  .bl-nav { margin-inline: calc(var(--s-2) * -1); }
  .bl-nav ul { --od-rail-pad: 16px; }
  .hdr-cta .long { display: none; }
  .hdr-cta .short { display: inline; }
  .cards, .related .cards { grid-template-columns: minmax(0, 1fr); }
  .card.star { grid-column: auto; }
  .kb { grid-template-columns: minmax(0, 1fr); }
  .kpis { grid-template-columns: minmax(0, 1fr); }
  .fbranch { grid-template-columns: minmax(0, 1fr); }
  .bar { grid-template-columns: minmax(0, 1fr) 32px; }
  .bar .track { grid-column: 1 / -1; grid-row: 2; }
  .line { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .row { grid-template-columns: 52px minmax(0, 1fr); }
  .row .chip { grid-column: 2; justify-self: start; }
  .call { grid-template-columns: 48px minmax(0, 1fr); }
  .call .chip { grid-column: 2; justify-self: start; }
  .msg { max-width: 92%; }
  .steps > li { grid-template-columns: 32px minmax(0, 1fr); padding-right: var(--s-2); }
  .steps > li::before { width: 32px; height: 32px; }
  .lg-footer .cols { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
