/* Taller «Ratón y teclado juntos» (v2.5.0). El teclado usa los estilos del curso de mecanografía (.tc-kbwrap). */
.cb-lab { margin-top: 26px; }
.cb-lab .il-toolbar { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin: 0 0 12px; }
.cb-lab .il-toolbar label { display: inline-flex; gap: 6px; align-items: center; margin: 0; font-size: 14px; font-weight: 500; }
.cb-lab .il-steps { flex-wrap: wrap; overflow: visible; }

/* Pasos y aplicación de práctica */
.cb-work { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 12px; align-items: start; margin-bottom: 10px; }
.cb-desk .il-feedback { margin: 0 0 10px; }
.cb-desk .il-actions { margin-top: 14px; }
.cb-desk { scroll-margin-top: 8px; }
.cb-steps { margin: 0; padding: 0; list-style: none; counter-reset: cb; display: grid; gap: 6px; }
.cb-steps { gap: 4px; }
.cb-steps li { counter-increment: cb; position: relative; padding: 5px 10px 5px 40px; border-radius: 9px; border: 1px solid #d6e0ea; background: #fff; font-size: 13.5px; line-height: 1.35; color: #405468; }
.cb-steps li::before { content: counter(cb); position: absolute; left: 8px; top: 6px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #dfe7f1; font-weight: 700; font-size: 13px; color: #10233a; }
.cb-steps li.cur { border: 2px solid #b45309; background: #fff8e6; color: #10233a; font-weight: 600; }
.cb-steps li.cur::before { background: #f59e0b; color: #1f1300; }
.cb-steps li.ok { background: #f3fbf3; border-color: #a9d8a9; color: #24364b; }
.cb-steps li.ok::before { content: "✓"; background: #0f7b0f; color: #fff; }
.cb-tool { display: inline-block; margin-right: 6px; padding: 0 7px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.cb-tool.mouse { background: #e7e1fb; color: #3b2a7a; }
.cb-tool.keys { background: #dcecff; color: #0b3d75; }
.cb-win { border-radius: 12px; overflow: hidden; border: 1px solid #b9c4d1; background: #fff; box-shadow: 0 10px 26px rgba(16, 35, 58, .16); }
.cb-titlebar { display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: linear-gradient(#f3f6fa, #e3e9f1); border-bottom: 1px solid #cfd8e3; font-size: 14px; color: #10233a; }
.cb-dots { display: inline-flex; gap: 5px; }
.cb-dots i { width: 11px; height: 11px; border-radius: 50%; background: #c42b1c; }
.cb-dots i:nth-child(2) { background: #f5c542; }
.cb-dots i:nth-child(3) { background: #0f7b0f; }
.cb-form { display: grid; gap: 9px; padding: 12px 14px; }
.cb-form label, .cb-lbl { display: grid; gap: 5px; margin: 0; font-size: 15px; font-weight: 600; color: #10233a; }
.cb-form input:not([type="checkbox"]), .cb-form select, .cb-form textarea, .cb-src { box-sizing: border-box; width: 100%; padding: 7px 10px; border: 2px solid #8a96a3; border-radius: 8px; background: #fff; font: 16px/1.4 "Segoe UI", system-ui, sans-serif; color: #10233a; }
.cb-form input:focus, .cb-form select:focus, .cb-form textarea:focus, .cb-src:focus { outline: 3px solid rgba(0, 95, 184, .35); border-color: #005fb8; }
.cb-form textarea { resize: vertical; }
.cb-src { min-height: 3em; cursor: text; }
.cb-src::selection, .cb-src *::selection { background: #005fb8; color: #fff; }
.cb-form .cb-check { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.cb-check input { width: 24px; height: 24px; margin: 0; }
.cb-send { justify-self: start; }
.cb-sent { margin: 0; padding: 10px 12px; border-radius: 8px; background: #e7f6e7; color: #0b5c0b; font-weight: 700; }
.cb-sent[hidden] { display: none; }

/* Escritorio: aviso del paso, teclado y ratón */
.cb-desk { margin-top: 14px; }
.cb-now { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 10px; padding: 8px 14px; border-radius: 12px; background: #fff8e6; border: 2px solid #f2d27a; }
.cb-now p { flex: 1 1 320px; margin: 0; font-size: 17px; line-height: 1.5; color: #24364b; }
.cb-now p b { display: block; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: #8a4b00; }
.cb-reads { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cb-reads .tc-pressed { margin: 0 0 8px; padding: 5px 12px; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cb-hardware { display: grid; grid-template-columns: minmax(0, 1fr) clamp(110px, 16%, 170px); gap: 14px; align-items: center; }
@supports (width: 1cqw) {
  .cb-desk .cb-hardware .il-kb { --u: min(54px, calc((100cqw - clamp(110px, 16cqw, 170px) - 118px) / 16.4)); }
}
.cb-mousepad { position: relative; display: grid; place-items: center; padding: 10px 6px; border-radius: 16px; background: linear-gradient(#3b4654, #212934); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), inset 0 -4px 0 rgba(0, 0, 0, .35), 0 10px 22px rgba(16, 35, 58, .28); }
.cb-mouse { display: block; width: 100%; max-width: 150px; height: auto; transform: perspective(520px) rotateX(24deg) translate(var(--mx, 0px), var(--my, 0px)); transition: transform .12s ease-out; overflow: visible; }
.cb-mouse .cb-cable { fill: none; stroke: #aab4c0; stroke-width: 5; stroke-linecap: round; }
.cb-mouse .cb-shell { stroke: #6f7c8b; stroke-width: 2; }
.cb-mouse .cb-line { fill: none; stroke: #7d8997; stroke-width: 2; }
.cb-mouse .cb-ridges { fill: none; stroke: #5b6775; stroke-width: 2; stroke-linecap: round; }
.cb-mouse .wh { fill: #2b3440; stroke: #10161d; stroke-width: 2; transition: fill .3s; }
.cb-mouse .lb, .cb-mouse .rb { stroke: #6f7c8b; stroke-width: 1.5; transition: fill .3s, filter .3s; }
.cb-mouse .cb-mlabel { font: 700 13px "Segoe UI", system-ui, sans-serif; fill: #405468; pointer-events: none; }
.cb-mouse .next { fill: #ffe2a8; stroke: #f59e0b; stroke-width: 5; animation: cb-next 1s ease-in-out infinite; }
@keyframes cb-next { 50% { fill: #fff; stroke-width: 2; } }
.cb-mouse .lit { fill: #a9e2ff; filter: drop-shadow(0 0 8px rgba(90, 200, 255, .9)); }
.cb-mouse .down { fill: #4cc2ff !important; stroke: #fff; stroke-width: 3; filter: drop-shadow(0 0 12px rgba(90, 200, 255, 1)); animation: none; transition: none; }
.cb-dbl { position: absolute; top: 8px; right: 8px; display: none; padding: 2px 9px; border-radius: 999px; background: #f59e0b; color: #1f1300; font: 800 14px "Segoe UI", system-ui, sans-serif; }
.cb-mousepad.dbl .cb-dbl { display: block; }
@media (max-width: 900px) {
  .cb-work { grid-template-columns: 1fr; }
  .cb-reads { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .cb-hardware { grid-template-columns: 1fr; }
  .cb-mousepad { justify-self: center; width: 130px; }
  @supports (width: 1cqw) {
    .cb-desk .cb-hardware .il-kb { --u: min(54px, calc((100cqw - 94px) / 16.4)); }
  }
}
@media (prefers-reduced-motion: reduce) {
  .cb-lab * { animation: none !important; transition: none !important; }
}
