/* Campus ILC · Bloque 10: cohortes con sus fechas (Panel), Guía del Alumno editable y Vídeos institucionales (11 oct 2026) */

/* ═════════════════════ Panel → Cohortes y fechas ═════════════════════ */
.coh-lista { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: var(--s-4); }
.coh-card { display: grid; gap: var(--s-3); align-content: start; }
.coh-card.is-off { opacity: .72; }
.coh-top { display: flex; gap: var(--s-3); align-items: flex-start; }
.coh-ico { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--burgundy-50, #f8eeea); color: var(--burgundy); }
.coh-tit h3 { margin: 0; font-family: var(--font-display); font-size: 1.35rem; line-height: 1.15; color: var(--ink); }
.coh-tit p { margin: 2px 0 0; }
.coh-n { margin: 0; }
.coh-acts { gap: 8px; }
.coh-nueva { margin-top: var(--s-3); padding: var(--s-3); border: 1px dashed var(--line-strong); border-radius: var(--r-md); }
.coh-herr summary { cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.coh-herr-fila { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.coh-herr-fila .select { width: auto; min-width: 180px; }
.coh-mod { margin-top: var(--s-3); }
.coh-mod-head { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.coh-mod-head h4 { margin: 0; font-family: var(--font-display); font-size: 1.15rem; color: var(--burgundy); }
.coh-acts-head, .coh-act { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 8px; align-items: center; }
.coh-acts-head { margin-top: var(--s-4); padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.coh-acts-lista { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; }
.coh-act .field { margin: 0; }
.coh-act-t { min-width: 0; overflow-wrap: anywhere; }
.cu-cohorte { display: flex; align-items: center; gap: 6px; margin: 0 0 var(--s-2); }
.cu-cohorte svg { width: 15px; height: 15px; }
@media (max-width: 640px) {
  .coh-acts-head { display: none; }
  .coh-act { grid-template-columns: 1fr 1fr; padding: 8px 0; border-top: 1px solid var(--line); }
  .coh-act-t { grid-column: 1 / -1; }
  .coh-herr-fila .select { min-width: 0; flex: 1 1 160px; }
}

/* ═════════════════════ Guía del Alumno (editor) ═════════════════════ */
.gu-docs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.gu-doc { display: flex; align-items: center; gap: var(--s-3); padding: 10px 14px; }
.gu-doc-ico { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--stone); color: var(--ink-soft); }
.gu-doc-t { flex: 1 1 auto; min-width: 0; display: grid; }
.gu-doc-t b { overflow-wrap: anywhere; }
.gu-doc-acts { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 560px) { .gu-doc { flex-wrap: wrap; } .gu-doc-acts { width: 100%; } }

/* ═════════════════════ Biblioteca → Vídeos institucionales ═════════════════════ */
.vi-body { padding-bottom: var(--s-9); }
.vi-media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r-md); background: var(--stone); }
.vi-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 400ms var(--ease-out, ease-out); }
.vi-media--vacia { background: radial-gradient(120% 90% at 30% 20%, #8a2a17 0%, var(--burgundy) 55%, #3a0800 100%); display: grid; place-items: center; }
.vi-escudo { width: 22%; opacity: .35; color: #f6e9df; }
.vi-play { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 253, 249, .92); color: var(--burgundy); box-shadow: 0 6px 24px rgba(30, 10, 4, .35); transition: transform 200ms ease; }
.vi-play svg { width: 28px; height: 28px; margin-left: 3px; }
.vi-dur { position: absolute; right: 10px; bottom: 10px; padding: 2px 8px; border-radius: var(--r-pill); background: rgba(20, 8, 4, .72); color: #fff; font-size: .8rem; font-weight: 600; }
:is(.vi-dest-media, .vi-card-btn):hover .vi-play, :is(.vi-dest-media, .vi-card-btn):focus-visible .vi-play { transform: scale(1.08); }
:is(.vi-dest-media, .vi-card-btn):hover img { transform: scale(1.03); }
.vi-dest-media, .vi-card-btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; border-radius: var(--r-md); }
.vi-dest-media:focus-visible, .vi-card-btn:focus-visible { outline: 3px solid var(--burgundy); outline-offset: 3px; }
.vi-dest { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: var(--s-6); align-items: center; padding: var(--s-5); }
.vi-dest h2 { margin: 6px 0 var(--s-2); font-family: var(--font-display); font-size: clamp(1.6rem, 2.4vw, 2.2rem); line-height: 1.1; color: var(--burgundy); }
.vi-dest .caps svg { width: 14px; height: 14px; vertical-align: -2px; }
.vi-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: var(--s-5); }
.vi-card { overflow: hidden; display: grid; align-content: start; }
.vi-card .vi-media { border-radius: 0; }
.vi-card-btn { border-radius: 0; }
.vi-card-txt { padding: var(--s-4) var(--s-5) var(--s-5); }
.vi-card-txt h3 { margin: 0 0 6px; font-family: var(--font-display); font-size: 1.3rem; line-height: 1.15; }
.vi-visto { color: var(--ok, #2f6b3f); display: flex; align-items: center; gap: 4px; margin-top: 6px; }
.vi-visto svg { width: 15px; height: 15px; }
.vi-vacia { text-align: center; }
@media (max-width: 860px) { .vi-dest { grid-template-columns: 1fr; gap: var(--s-4); padding: var(--s-4); } }
@media (prefers-reduced-motion: reduce) { .vi-media img, .vi-play { transition: none; } }
.coh-herr summary b { display: inline-flex; align-items: center; gap: 6px; }
.coh-herr summary svg { width: 18px; height: 18px; flex: none; }
