/* ============================================================================
   Cursos de Skool en /academia/ (01-oct-2026)
   Copia del Classroom de Skool: cada tarjeta como en Skool (portada arriba,
   título, descripción), sus lecciones una por una en un desplegable, y el
   botón «Inscríbete aquí en Skool». Lo usa el bloque skool:cursos que escribe
   _build/gen-skool.mjs. Al cambiar este archivo, subir SKOOL_CSS_VER en
   _build/skool.mjs.
   ============================================================================ */
/* Academia solo con Skool (sin la lista del campus): una columna ancha, 3 tarjetas por fila */
.v2-cat--skool { padding-top: 48px; padding-bottom: 24px; }
.v2-cat--skool .sk-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

.sk-sec { margin-top: 56px; display: flex; flex-direction: column; scroll-margin-top: 80px; }
.sk-card[hidden] { display: none; }
.sk-grid {
  margin-top: 26px; display: grid; gap: 18px; align-items: start;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.sk-card {
  display: flex; flex-direction: column; overflow: hidden; min-width: 0; height: 100%;
  border-radius: var(--v2-r-box); background: var(--v2-bg);
  border: 1px solid var(--v2-line-10); box-shadow: var(--v2-sh-card);
  transition: box-shadow .18s ease, border-color .18s ease;
}
.sk-card:hover { box-shadow: var(--v2-sh-hover); border-color: var(--v2-accent-30); }
.sk-card__media { display: block; overflow: hidden; }
.sk-card__img {
  display: block; width: 100%; height: auto; aspect-ratio: 1458 / 751;
  object-fit: cover; background: var(--v2-gray); transition: transform .3s ease;
}
.sk-card:hover .sk-card__img { transform: scale(1.02); }
.sk-card__body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; }
.sk-card__t {
  font-weight: 700; color: var(--v2-title); line-height: 1.3; letter-spacing: -0.01em;
  text-decoration: none;
}
.sk-card__t:hover { color: var(--v2-accent); }
.sk-card__d {
  color: var(--v2-text-2); line-height: 1.5; font-size: 14px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* Lecciones del curso, una por una */
.sk-lecc { margin-top: auto; border-top: 1px solid var(--v2-line-08); padding-top: 10px; }
.sk-lecc summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--v2-text-2);
}
.sk-lecc summary::-webkit-details-marker { display: none; }
.sk-lecc summary::after { content: '+'; font-size: 16px; font-weight: 700; color: var(--v2-accent); }
.sk-lecc[open] summary::after { content: '−'; }
.sk-lecc summary:hover { color: var(--v2-title); }
.sk-lecc ol { list-style: none; margin: 10px 0 2px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sk-lecc li {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 10px; align-items: center;
  font-size: 13px; line-height: 1.35; color: var(--v2-text);
}
.sk-lecc li img {
  display: block; width: 64px; height: auto; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: 6px; background: var(--v2-gray);
}
.sk-lecc__min { color: var(--v2-muted); font-size: 12px; white-space: nowrap; }

.sk-card__btn { margin-top: 6px; }
.sk-card:hover .sk-card__btn { box-shadow: var(--v2-sh-accent); }
