/* ---------- checklist de vuelo ---------- */
.cl { max-width: 1280px; margin: 0 auto; }
.cl-bar { position: sticky; top: calc(-22px - env(safe-area-inset-top)); z-index: 5; margin: calc(-22px - env(safe-area-inset-top)) -24px 16px; padding: calc(14px + env(safe-area-inset-top)) 24px 12px; background: color-mix(in srgb, var(--bg) 93%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
@container main (max-width: 600px) { .cl-bar { margin: calc(-16px - env(safe-area-inset-top)) -16px 14px; padding-left: 16px; padding-right: 16px; top: calc(-16px - env(safe-area-inset-top)); } }
.cl-jump { margin-top: 10px; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.cl-jump .chip { white-space: nowrap; display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.cl-grid { columns: 320px 3; column-gap: 16px; }
.cl-sec { break-inside: avoid; margin-bottom: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); scroll-margin-top: 150px; }
.cl-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--accent-bg); color: var(--accent); border-bottom: 1px solid var(--border); }
.cl-head > div { flex: 1; min-width: 0; }
.cl-head h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .04em; font-weight: 800; line-height: 1.2; }
.cl-head small { display: block; font-size: .72rem; opacity: .85; font-weight: 600; }
.cl.em .cl-head { background: var(--bad-bg); color: var(--bad); }
.cl-head.full, .cl.em .cl-head.full { background: var(--ok-bg); color: var(--ok); }
.cl-rs { width: 40px; height: 40px; margin: -6px -8px -6px 0; border-radius: 12px; display: grid; place-items: center; color: inherit; }
.cl-rs:active { background: rgba(127,127,127,.2); }
.cl-sec ul { list-style: none; margin: 0; padding: 4px 0; }
.cl-item { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; min-height: 50px; padding: 8px 14px; border-left: 4px solid transparent; font-weight: 600; font-size: 1.02rem; line-height: 1.25; }
.cl-item.sub { padding-left: 38px; }
.cl-item .check { width: 28px; height: 28px; }
.cl-item .txt { flex: 1; }
.cl-item small, .cl-sec li.info small { display: block; font-weight: 500; font-size: .76rem; color: var(--muted); font-style: italic; margin-top: 1px; }
.cl-item:active { background: var(--surface2); }
.cl-item.on .txt { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--ok) 70%, transparent); }
.cl-item.next { background: var(--accent-bg); border-left-color: var(--cl-act); }
.cl.em .cl-item.next { background: var(--bad-bg); border-left-color: var(--bad); }
.cl-sec li.info { padding: 8px 14px; font-weight: 600; font-size: .95rem; }

/* sección activa: azul sobrio (sin amarillo, cómodo en cabina oscura) */
.cl { --cl-act: #2f6fe4; --cl-act-soft: rgba(47,111,228,.22); --cl-em: #c23b3b; --cl-em-soft: rgba(194,59,59,.25); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cl { --cl-act: #2c5fc9; --cl-act-soft: rgba(44,95,201,.28); --cl-em: #a83434; --cl-em-soft: rgba(168,52,52,.3); } }
:root[data-theme="dark"] .cl { --cl-act: #2c5fc9; --cl-act-soft: rgba(44,95,201,.28); --cl-em: #a83434; --cl-em-soft: rgba(168,52,52,.3); }
.cl-jump .chip.act { background: var(--cl-act); border-color: var(--cl-act); color: #fff; box-shadow: 0 0 0 3px var(--cl-act-soft); }
.cl.em .cl-jump .chip.act { background: var(--cl-em); border-color: var(--cl-em); box-shadow: 0 0 0 3px var(--cl-em-soft); }
.cl-sec { transition: opacity .2s, transform .2s, box-shadow .2s, border-color .2s; }
.cl.has-act .cl-sec:not(.act) { opacity: .55; }
.cl.has-act .cl-sec:not(.act):hover, .cl.has-act .cl-sec:not(.act):focus-within { opacity: .9; }
.cl-sec.act { position: relative; z-index: 2; border: 2px solid var(--cl-act); transform: scale(1.012); box-shadow: 0 8px 28px rgba(0,0,0,.28), 0 0 0 4px var(--cl-act-soft); }
.cl.em .cl-sec.act { border-color: var(--cl-em); box-shadow: 0 8px 28px rgba(0,0,0,.28), 0 0 0 4px var(--cl-em-soft); }
.cl-sec.act .cl-head { background: var(--cl-act); color: #fff; }
.cl.em .cl-sec.act .cl-head { background: var(--cl-em); color: #fff; }
.cl-sec.act .cl-head.full { background: var(--ok); color: #fff; }
.cl-sec.act .cl-item { font-size: 1.08rem; }
.cl-item.next { border-left-color: var(--cl-act); }
.cl.em .cl-item.next { background: var(--bad-bg); border-left-color: var(--cl-em); }
@media (prefers-reduced-motion: reduce) { .cl-sec.act { transform: none; } }

/* bloques bloqueados y botón de completar */
.cl-sec.locked { opacity: .42; filter: saturate(.6); }
.cl.has-act .cl-sec.locked { opacity: .42; }
.cl-sec.locked .cl-item { cursor: not-allowed; }
.cl-unlock { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 10px; font-weight: 700; font-size: .82rem; color: var(--text); background: var(--surface); border: 1px solid var(--border); margin: -4px -6px -4px 0; }
.cl-unlock .ic { width: 16px; height: 16px; }
.cl-foot { padding: 6px 12px 12px; }
.cl-foot .btn { border-style: dashed; color: var(--muted); }
.cl-sec.act .cl-foot .btn { color: var(--text); border-style: solid; border-color: var(--cl-act); }
.cl.em .cl-sec.act .cl-foot .btn { border-color: var(--cl-em); }

/* datos de referencia al pie (velocidades, fases, datos del avión) */
.cl-ref { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-top: 8px; align-items: start; }
.cl-ref-sec { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.cl-ref-sec > h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .04em; font-weight: 800; padding: 10px 14px; background: var(--accent-bg); color: var(--accent); border-bottom: 1px solid var(--border); }
.cl-ref table { width: 100%; font-size: .95rem; }
.cl-ref th, .cl-ref td { padding: 7px 14px; text-align: left; border-bottom: 1px solid var(--border); font-weight: 500; }
.cl-ref thead th { font-size: .72rem; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.cl-ref tbody th { font-weight: 800; font-family: var(--mono); width: 4.5rem; }
.cl-ref .n { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cl-ph { padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.cl-ph:last-child { border-bottom: 0; }
.cl-ph h3 { padding: 10px 14px 0; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: var(--accent); }
.cl-ph h3 small { text-transform: none; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.cl-ph ul { list-style: none; margin: 0; padding: 6px 14px 0; font-size: .85rem; color: var(--muted); font-style: italic; }

.cl-ref tr.rl > *, .cl-ref tr.bl > * { background: var(--lc); color: var(--lc-fg); }
.cl-ref tr.rl .kias, .cl-ref tr.bl .kias { opacity: .8; }

/* maniobras del entrenamiento */
.man-links { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 10px 54px; }
.man-link { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; font-weight: 650; padding: 4px 10px; border-radius: 999px; background: var(--accent-bg); color: var(--accent); text-decoration: none; }
.man-link .ic { width: 14px; height: 14px; }
.man-note { padding: 4px 14px 14px; }
.man-note label { display: block; font-size: .76rem; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.man-note textarea { width: 100%; resize: vertical; min-height: 64px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface2); color: var(--text); font: inherit; font-size: .92rem; }
.cl.man .cl-sec { transform: none; opacity: 1; }
