* { box-sizing: border-box; }
body { margin: 0; }
header, main { max-width: 64rem; margin-inline: auto; padding-inline: clamp(1rem, 4vw, 3rem); }
header { min-height: 4.5rem; display: flex; align-items: center; justify-content: space-between; gap: .75rem; border-bottom: 1px solid var(--border-color); }
header a { color: var(--text-main); }
.brand { font-weight: 800; }
main { padding-block: 1.5rem 4rem; }
nav { display: flex; flex-wrap: wrap; gap: .35rem; }
nav a { display: inline-flex; align-items: center; min-height: 44px; padding: .4rem 1rem; border: 1px solid var(--border-color); border-radius: 2rem; color: var(--text-main); text-decoration: none; }
nav [aria-current] { background: var(--lime); color: var(--navy); font-weight: 750; }
.demo-label { margin: 2rem 0 .5rem; color: var(--cyan); font-weight: 650; font-size: .88rem; }
h1, h2 { font-family: var(--font-display); letter-spacing: -.035em; }
h1 { margin: 0; font-size: clamp(2.4rem, 6vw, 4.5rem); line-height: 1; }
h2 { margin: 2rem 0 .65rem; font-size: clamp(1.4rem, 3vw, 2rem); }
.summary { margin: .8rem 0 1.6rem; line-height: 1.5; color: var(--text-2); }
.steps-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.steps-heading h2 { margin: 0; }
.steps-heading a { color: var(--cyan); }
.steps { list-style: none; padding: 0; margin: 1rem 0 2rem; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.steps li { display: flex; flex-direction: column; border-top: 1px solid var(--border-color); padding-top: .8rem; }
.steps h3 { margin: 0; font-size: 1.05rem; }
.steps h3 span { color: var(--lime); font-variant-numeric: tabular-nums; margin-right: .25rem; }
.steps p { color: var(--text-2); line-height: 1.45; font-size: .94rem; margin: .5rem 0 .85rem; }
.step-shot { display: grid; grid-template: minmax(0,1fr) / minmax(0,1fr); place-items: center; margin-top: auto; aspect-ratio: 1.75; background: var(--surface-2); border: 1px solid var(--border-color); cursor: zoom-in; padding: .35rem; }
.step-shot img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.shot-dialog { width: fit-content; max-width: 95vw; padding: .75rem; border: 1px solid var(--border-color); background: var(--bg-body); color: var(--text-main); }
.shot-dialog::backdrop { background: rgb(0 0 0 / .8); }
.shot-dialog form { text-align: right; margin-bottom: .5rem; }
.shot-dialog button { min-height: 44px; color: inherit; background: var(--surface-2); border: 1px solid var(--border-color); padding: .4rem 1rem; cursor: pointer; }
.shot-dialog img { display: block; max-width: 100%; max-height: 73vh; object-fit: contain; }
#resultado { padding-top: 1.2rem; border-top: 1px solid var(--border-color); }
@media (max-width: 45rem) { .steps { grid-template-columns: 1fr; } .step-shot { aspect-ratio: auto; } .step-shot img { height: auto; max-height: 12rem; } }
.bk-champion { margin-bottom: 1.5rem; }
.bk-champion p { margin: 0; font-weight: 750; }
.bk-champion p:first-child { font-size: .75rem; }
.bk-champion p:last-child { font-size: 1.65rem; }
.bk-champion i:empty { display: none; }
.table-wrap { overflow-x: auto; background: var(--surface-2); }
.bk-table { font-variant-numeric: tabular-nums; }
.bk-table th, .bk-table td { padding: .7rem .65rem; }
#clasificacion tbody tr:first-child { color: var(--lime); font-weight: 750; }
.demo-tabs { gap: 0; border-bottom: 1px solid var(--border-color); margin-bottom: 1.25rem; }
.demo-tabs a { border: none; border-radius: 0; border-bottom: 3px solid transparent; font-weight: 650; }
.demo-tabs a[aria-selected=true] { border-bottom-color: var(--cyan); color: var(--cyan); }
.demo-view h2 { margin-top: 1rem; }
.demo-view[hidden] { display: none; }
details { margin: .5rem 0; border: 1px solid var(--border-color); }
summary { padding: .9rem; cursor: pointer; color: var(--cyan); font-weight: 700; }
@media (max-width: 38rem) {
    .bk-col { flex-basis: 12rem; }
    .demo-tabs a { padding-inline: .65rem; }
    .bk-table th, .bk-table td { padding: .55rem .35rem; }
}
