/* =====================================================================
   Harmony Generation — pantallas del maestro (interfaz nueva)
   Actividad en clase, Dejar tarea y Alumnos y notas
   ===================================================================== */

/* Actividad en clase */
.ic-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.ic-code { justify-items: center; text-align: center; background: color-mix(in srgb, var(--accent-soft) 45%, var(--surface)); padding: 22px; }
.ic-code-head { display: flex; align-items: center; gap: 10px; color: var(--accent); }
.ic-code-head b { font: 700 1.5rem var(--display); color: var(--ink); }
.ic-digits { display: flex; gap: 10px; justify-content: center; background: var(--accent-soft); border-radius: 18px; padding: 10px 26px; }
.ic-digits span { font: 700 clamp(3rem, 8vw, 5.5rem) var(--display); color: var(--accent); line-height: 1.1; letter-spacing: .02em; }
.ic-digits.off span { color: color-mix(in srgb, var(--accent) 45%, var(--muted)); }
.ic-count { font: 700 1.3rem var(--display); color: var(--muted); }
.ic-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.ic-person { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; background: var(--surface); animation: icIn .3s ease-out; }
.ic-person .roll2-av { width: 40px; height: 40px; font-size: 1rem; }
.ic-person b { display: block; font-size: .95rem; }
.ic-person small { font-size: .8rem; font-weight: 700; }
.ic-person.dim .roll2-av { background: var(--surface-2); color: var(--muted); }
@keyframes icIn { from { transform: scale(.94); opacity: 0; } }
.ic-types { gap: 12px; }
.ic-type { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; text-align: left; border: 1.5px solid var(--line); border-radius: var(--r); padding: 14px; background: var(--surface); color: inherit; }
.ic-type b { display: block; font: 700 1.1rem var(--display); }
.ic-type small { color: var(--muted); }
.ic-type.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent-soft) 55%, var(--surface)); }
.ict-ico { width: 50px; height: 50px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.ic-type.on .ict-ico { background: var(--accent); color: #fff; }
.ic-start { margin-top: 6px; font-size: 1.2rem; padding: 16px; }
.ic-wrap:fullscreen, .ic-wrap.pseudo-full { background: var(--bg); padding: 24px; overflow: auto; align-content: start; max-width: none; }
.ic-wrap:fullscreen .ic-types, .ic-wrap.pseudo-full .ic-types, .ic-wrap:fullscreen .grid2, .ic-wrap.pseudo-full .grid2 { display: none; }
.ic-wrap:fullscreen .ic-grid, .ic-wrap.pseudo-full .ic-grid { grid-template-columns: 1fr; }
@media (max-width: 1000px) { .ic-grid { grid-template-columns: 1fr; } .ic-types { order: -1; } }

/* Dejar tarea */
.wz-steps { list-style: none; margin: 0 auto; padding: 0; display: flex; justify-content: space-between; gap: 8px; max-width: 900px; width: 100%; }
.wz-steps li { display: grid; justify-items: center; gap: 6px; flex: 1; color: var(--muted); position: relative; text-align: center; }
.wz-steps li:not(:last-child)::after { content: ""; position: absolute; top: 20px; left: calc(50% + 28px); right: calc(-50% + 28px); height: 3px; border-radius: 3px; background: var(--line); }
.wz-steps li.done:not(:last-child)::after { background: var(--ok); }
.wz-steps span { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font: 700 1.2rem var(--display); }
.wz-steps li.on { color: var(--accent); }
.wz-steps li.on span { background: var(--accent); color: #fff; }
.wz-steps li.done span { background: var(--ok); color: #fff; }
.wz-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.wz-panel { align-content: start; }
.wz-panel.off { opacity: .55; }
.wz-panel.on { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 20%, transparent), var(--shadow); }
.wz-head { display: flex; gap: 12px; align-items: flex-start; }
.wz-n { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font: 700 1.1rem var(--display); flex: none; }
.wz-panel.on .wz-n { background: var(--accent); color: #fff; }
.wz-panel.done .wz-n { background: var(--ok); color: #fff; }
.wz-kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wz-kind { position: relative; display: grid; justify-items: center; gap: 4px; padding: 14px 8px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); color: inherit; text-align: center; }
.wz-kind .ico { color: var(--accent); }
.wz-kind small { color: var(--muted); font-size: .78rem; }
.wz-kind.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent-soft) 55%, var(--surface)); }
.wz-kind .ra-check { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; }
.wz-quick { display: flex; gap: 6px; flex-wrap: wrap; }
.wz-quick button { border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: 5px 12px; font-weight: 700; font-size: .85rem; color: inherit; }
.wz-quick button:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.wz-sum { background: var(--surface-2); border-radius: 12px; padding: 14px; display: grid; gap: 12px; }
.wz-sum .ico { color: var(--accent); }
.wz-sum dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: .92rem; }
.wz-sum dt { color: var(--muted); }
.wz-sum dd { margin: 0; font-weight: 700; }
.wz-done { justify-items: center; text-align: center; padding: 36px 20px; max-width: 620px; margin: 0 auto; width: 100%; }
.wz-ok { width: 76px; height: 76px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; }
@media (max-width: 1000px) { .wz-grid { grid-template-columns: 1fr; } .wz-panel.off { display: none; } }
@media (max-width: 480px) { .wz-steps b { font-size: .8rem; } .wz-steps li:not(:last-child)::after { left: calc(50% + 24px); right: calc(-50% + 24px); } }

/* Alumnos y notas */
.g2-bar { display: flex; justify-content: space-between; align-items: end; gap: 14px; flex-wrap: wrap; }
.g2-bar .field { min-width: 260px; }
.grades2 th { background: var(--surface-2); }
.grades2 td { vertical-align: middle; }
.g2-name { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); text-decoration: none; }
.g2-av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.pill { display: inline-block; min-width: 58px; text-align: center; padding: 3px 10px; border-radius: 99px; font-weight: 800; font-size: .88rem; background: var(--surface-2); }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.mid { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.g2-warn { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #E07409; color: #fff; font-weight: 900; font-size: .8rem; margin-left: 6px; cursor: help; }
.g2-prog { display: grid; grid-template-columns: auto minmax(90px, 1fr) auto; gap: 10px; align-items: center; min-width: 220px; }
.g2-prog .ico { color: var(--accent); }
.g2-prog small { color: var(--muted); font-weight: 700; }

/* Modo presentación (barra nueva) */
.present2 { position: fixed; inset: 0; display: grid; grid-template-rows: auto 1fr auto; background: var(--bg); z-index: 60; }
.pr2-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 24px; border-bottom: 1px solid var(--line); background: var(--surface); }
.pr2-top .brand { color: var(--ink); }
.pr2-top .brand-mark i { background: var(--ink); box-shadow: none; }
.pr2-where { text-align: right; line-height: 1.25; }
.pr2-where b { display: block; }
.pr2-where small { color: var(--muted); font-weight: 700; }
.pr2-stage { overflow: auto; padding: 24px clamp(16px, 5vw, 64px); }
.pr2-stage .pr-slide { max-width: 1180px; margin: 0 auto; }
.pr2-bar { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; padding: 12px 24px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); }
.pr2-left { justify-self: start; }
.pr2-right { justify-self: end; display: flex; gap: 10px; }
.pr2-mid { display: grid; justify-items: center; gap: 6px; }
.pr2-mid b { font-size: 1.05rem; }
.pr2-dots { display: flex; gap: 6px; }
.pr2-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; background: var(--line); }
.pr2-dots button.on { background: var(--accent); transform: scale(1.3); }
.pr2-bar .btn { min-width: 130px; }
@media (max-width: 700px) {
  .pr2-top { padding: 8px 12px; } .pr2-top .brand-name { display: none; }
  .pr2-bar { grid-template-columns: auto 1fr auto; padding: 8px 10px; }
  .pr2-bar .btn { min-width: 0; padding: 10px 12px; }
  .pr2-bar .btn span.lbl { display: none; }
  .pr2-dots { display: none; }
}
.g2-prog .ts-bar { display: block; margin-top: 4px; }
