/* Entrega del equipo de diseño, 9 de noviembre de 2026 (mockup plataforma 2.0).
   Copiado literal del artefacto; ni una regla reescrita. */

/* Panel azul: el elemento con más carácter del sistema */
.panel {
  margin-top: 56px; padding: clamp(28px, 4vw, 48px); border-radius: var(--r-xl);
  background: var(--panel); color: var(--panel-text);
}
.panel h2, .panel h3 { color: #fff; }
.panel h2 { font-size: clamp(1.5rem, 2.4vw, 1.875rem); line-height: 1.2; }
.panel p { color: var(--panel-soft); line-height: 1.7; }
.panel p strong { color: #fff; font-weight: 600; }
.panel .prose { margin-top: 18px; display: grid; gap: 14px; }
.panel__question {
  margin-top: 22px; padding-left: 20px; border-left: 4px solid var(--gold);
  font: 600 clamp(1.25rem, 2.2vw, 1.5rem)/1.35 var(--heading); color: #fff;
}
.panel__keep { margin-top: 22px; color: var(--gold) !important; font-weight: 500; }

.aside-note { margin-top: 40px; padding: 24px 28px; border-radius: var(--r-lg); border: 1px dashed var(--field-border); }
.aside-note h2 { font-size: 1.25rem; }
.aside-note p { margin-top: 10px; color: var(--text); font-size: 1rem; line-height: 1.6; }

.list { list-style: none; padding: 0; margin-top: 18px; display: grid; gap: 14px; }
.list li { display: flex; gap: 14px; color: var(--text); line-height: 1.6; }
.list .icon { color: var(--blue); margin-top: 4px; }

.channels { list-style: none; padding: 0; margin-top: 22px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.channels li { padding: 22px; border-radius: var(--r-lg); background: var(--surface-2); }
.channels .ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--surface); color: var(--blue); }
.channels h3 { margin-top: 14px; font-size: 1.0625rem; }
.channels p { margin-top: 6px; font-size: 0.9375rem; line-height: 1.5; color: var(--text); }

.posts { list-style: none; padding: 0; margin-top: 18px; border-top: 1px solid var(--line); }
.posts li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.posts time { font-size: 0.875rem; color: var(--muted); padding-top: 2px; }
.posts h3 { font-size: 1.0625rem; }
.posts p { margin-top: 4px; font-size: 0.9375rem; color: var(--text); line-height: 1.5; }

.topics { list-style: none; padding: 0; margin-top: 18px; display: grid; gap: 12px; }
.topic { display: flex; align-items: center; gap: 18px; padding: 18px 20px; border-radius: var(--r-lg); background: var(--surface-2); color: inherit; }
a.topic:hover { outline: 2px solid var(--btn-card); outline-offset: -2px; }
.topic__text { flex: 1; }
.topic h3 { font-size: 1.0625rem; line-height: 1.3; }
.topic p { margin-top: 4px; font-size: 0.9375rem; color: var(--text); line-height: 1.5; }
.topic > .icon { color: var(--blue); }
.topic--soon { opacity: .7; }

.table-wrap { margin-top: 22px; overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--line); }
table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.5; }
th, td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
thead th { background: var(--surface-2); font: 700 0.9375rem var(--heading); color: var(--navy); }
tbody th { font-weight: 600; color: var(--navy); width: 22%; }
td { color: var(--text); }
tbody tr:last-child > * { border-bottom: 0; }

.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--line); }
.pager__next { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; text-align: right; }
.pager__next small { font-size: 0.875rem; color: var(--text); }
.done-msg { display: flex; align-items: center; gap: 10px; color: var(--navy); font-weight: 500; }
.done-msg .icon { color: var(--btn-card); }

/* ---------- Responsive: movido a `medidas.css`, que se emite el ultimo ---------- */

.lesson .panel strong { color: #fff; }
.pager { align-items: flex-end; }

/* =========================================================
   Componentes de curso (SuperCollider y siguientes)
   ========================================================= */
.cbanner {
  position: relative; isolation: isolate; display: flex; min-height: 280px; margin-bottom: 36px; overflow: hidden;
  border-radius: var(--r-lg); background: #071a3a; color: #fff;
}
.cbanner__art { position: absolute; inset: 0; z-index: -1; background-size: cover; background-position: 70% center; }
.cbanner__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #06183a 0%, rgb(6 24 58 / 88%) 42%, rgb(6 24 58 / 10%) 100%); }
.cbanner__body { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; max-width: 600px; padding: 32px 36px; }
.cbanner__kicker { font: 500 0.78rem "Roboto Mono", monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.cbanner__unit { font-size: 0.9rem; color: #bfd2ea; }
.cbanner__title { font: 300 2.25rem/1.08 var(--heading); color: #fff; letter-spacing: -.01em; }
.cbanner__title strong { display: block; font-weight: 800; }
.cbanner__prompt {
  align-self: flex-start; display: flex; flex-direction: column; padding: 12px 20px; border-radius: 14px;
  background: #f3f5f8; color: #0b1c33; box-shadow: 0 0 0 2px #0b1c33, 5px 5px 0 2px var(--gold);
}
.cbanner__prompt span { font: 500 0.82rem "Roboto Mono", monospace; color: #3b5a86; }
.cbanner__prompt b { font: 800 1.6rem/1.15 var(--heading); }
.cbanner__foot { font-size: 0.7rem; letter-spacing: .08em; text-transform: uppercase; color: #bfd2ea; }
.cbanner__credit { position: absolute; right: 20px; bottom: 18px; padding: 5px 12px; border-radius: 8px; background: rgb(243 245 248 / 95%); color: #0b1c33; font-size: 0.8rem; font-weight: 500; }

.meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.meta { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 0.82rem; color: var(--text); }
.meta .icon { width: 15px; height: 15px; color: var(--blue); }

.lead { margin-top: 20px; font-size: 1.15rem; line-height: 1.65; color: var(--navy); }
.lead p + p { margin-top: 12px; }

.ptoc { margin-top: 32px; padding: 22px; border-radius: var(--r-lg); background: var(--surface); }
.ptoc h2 { font-size: 1.05rem; }
.ptoc__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin-top: 14px; }
.ptoc button {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--bg); text-align: left; color: var(--navy); font-weight: 500; font-size: 0.92rem; line-height: 1.3; transition: border-color .2s ease;
}
.ptoc button:hover { border-color: var(--btn-card); }
.ptoc button small { display: block; margin-top: 2px; font-weight: 400; font-size: 0.78rem; color: var(--muted); }
.ico { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: color-mix(in srgb, var(--btn-card) 10%, var(--surface)); color: var(--blue); }
.ico .icon { width: 19px; height: 19px; }

.sec { margin-top: 56px; scroll-margin-top: 96px; }
.sec__head { display: flex; align-items: center; gap: 14px; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.sec__head .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--btn-card); color: #fff; }
.sec__head small { display: block; font: 500 0.72rem "Roboto Mono", monospace; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.sec__head h2 { font-size: clamp(1.35rem, 2.2vw, 1.65rem); line-height: 1.2; }

.cprose { display: grid; gap: 14px; color: var(--text); line-height: 1.7; }
.cprose p, .cprose ul, .cprose ol { margin: 0; }
.cprose ul, .cprose ol { padding-left: 1.3em; display: grid; gap: 6px; }
.cprose strong { color: var(--navy); font-weight: 600; }
.cprose h3 { font-size: 1.15rem; margin-top: 8px; }
.cprose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.cprose code, .q__t code, .opt code, .fb code, .fault code, .checklist code, .prac-card code, .hint code {
  font: 0.86em "Roboto Mono", monospace; padding: 1px 6px; border-radius: 6px; background: color-mix(in srgb, var(--btn-card) 8%, var(--surface)); border: 1px solid var(--line); color: var(--navy); overflow-wrap: anywhere;
}
.cprose .table-wrap { margin-top: 4px; background: var(--surface); }
.cprose table { min-width: 520px; }
.cprose blockquote { margin: 0; }
.lec-foot { font-size: 0.85rem; color: var(--muted); }

kbd { display: inline-block; min-width: 1.6em; padding: 1px 7px; border: 1px solid var(--field-border); border-bottom-width: 2px; border-radius: 6px; background: var(--surface); font: 600 0.82em "Roboto Mono", monospace; color: var(--navy); text-align: center; }
.keys { white-space: nowrap; }
.keys i { font-style: normal; margin: 0 3px; color: var(--muted); }

