/* oCloc — Aula de cursos online. Colores SOLO del tema del negocio (variables --otp-*). */
.otp-aula-page .otp-shell { min-height: 100vh; }
.otp-aula__top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; background: var(--otp-bg); border-bottom: 1px solid var(--otp-line); }
.otp-aula__brand { font-weight: 700; font-size: 1rem; color: var(--otp-ink); }
/* Entrar/avatar vienen pensados para ir sobre la foto del hero (blanco translúcido): en esta barra lisa, con los
   colores del tema, o en las paletas claras no se ven. */
.otp-aula__top .otp-acct__entrar, .otp-aula__top .otp-acct__avatar { color: var(--otp-ink); background: var(--otp-card);
  border-color: var(--otp-line); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.otp-aula { max-width: 1100px; margin: 0 auto; padding: 20px 16px 64px; color: var(--otp-ink); }
.otp-aula__title { font-size: 1.5rem; line-height: 1.25; margin: 4px 0 12px; }
.otp-aula__sub { font-size: 1rem; margin: 22px 0 8px; }
.otp-aula__muted { color: var(--otp-muted); margin: 6px 0 14px; }
.otp-aula__card { background: var(--otp-card); border: 1px solid var(--otp-line); border-radius: var(--otp-radius); padding: 18px; margin: 0 0 14px; }
.otp-aula__center { max-width: 520px; margin: 40px auto; text-align: center; }
.otp-aula__center .otp-btn { margin-top: 8px; }
.otp-aula__banner { background: var(--otp-card-2); border-radius: var(--otp-radius-sm); padding: 12px 14px; margin: 0 0 16px; }
.otp-aula__subs { margin: 0 0 18px; }
.otp-aula__subs > .otp-aula__sub { margin-top: 0; }
.otp-aula__subitem { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.otp-aula__grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .otp-aula__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .otp-aula__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.otp-aula__course { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.otp-aula__cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--otp-radius-sm); }
.otp-aula__ctitle { font-size: 1.1rem; margin: 2px 0; }
.otp-aula__badge { display: inline-block; align-self: flex-start; font-size: .82rem; padding: 3px 10px; border-radius: 999px; background: var(--otp-card-2); margin: 0; }
.otp-aula__badge.is-off { color: var(--otp-muted); } /* no opacity: muted ya es ≥4,5:1 en todas las paletas */
.otp-aula__buy { margin-top: 6px; }
.otp-aula__prog { margin: 8px 0; }
.otp-aula__progbar { height: 8px; border-radius: 999px; background: var(--otp-line); overflow: hidden; }
.otp-aula__progbar span { display: block; height: 100%; background: var(--otp-gold); border-radius: 999px; }
.otp-aula__prog small { display: block; color: var(--otp-muted); margin-top: 4px; }
.otp-aula__crumb { font-size: .9rem; color: var(--otp-muted); margin: 0 0 12px; }
.otp-aula__crumb a { text-decoration: underline; text-underline-offset: 3px; }
.otp-aula__back { display: inline-block; margin-top: 14px; text-decoration: underline; }
.otp-aula__layout { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .otp-aula__layout { grid-template-columns: 300px minmax(0, 1fr); align-items: start; }
  .otp-aula__side { grid-area: 1 / 1; position: sticky; top: 72px; max-height: calc(100vh - 90px); overflow: auto; }
  .otp-aula__lesson { grid-area: 1 / 2; }
}
.otp-aula__mod { border: 1px solid var(--otp-line); border-radius: var(--otp-radius-sm); margin: 0 0 8px; background: var(--otp-card); overflow: hidden; }
.otp-aula__mod > summary { cursor: pointer; padding: 10px 12px; font-weight: 600; display: flex; align-items: center; gap: 8px; list-style: none; }
.otp-aula__mod > summary::-webkit-details-marker { display: none; }
/* Sin el triángulo nativo no se sabe que se abre: flecha propia (color del texto) que gira al abrir. */
.otp-aula__mod > summary::before { content: ""; flex: none; width: 6px; height: 6px; margin: 0 3px; border: solid currentColor;
  border-width: 0 2px 2px 0; transform: rotate(-45deg); }
.otp-aula__mod[open] > summary::before { transform: rotate(45deg); }
/* El overflow de las esquinas recortaría el anillo de foco por fuera: se dibuja por dentro. */
.otp-aula__mod > summary:focus-visible { outline: 2px solid var(--otp-ink); outline-offset: -2px; }
.otp-aula__modsum { margin-left: auto; color: var(--otp-muted); font-weight: 400; }
.otp-aula__lessons { list-style: none; margin: 0; padding: 0 0 6px; }
.otp-aula__lrow { display: grid; grid-template-columns: 22px 1fr; gap: 2px 8px; padding: 8px 12px; border-top: 1px solid var(--otp-line); }
.otp-aula__lrow.is-current { background: var(--otp-card-2); }
.otp-aula__lrow.is-locked .otp-aula__lname { color: var(--otp-muted); }
.otp-aula__mark { grid-row: span 2; text-align: center; }
.otp-aula__sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; } /* mismo patrón que ocloc-consent.css */
.otp-aula__lname { display: block; }
.otp-aula__lmeta { grid-column: 2; color: var(--otp-muted); font-size: .8rem; }
.otp-aula__chip { font-size: .72rem; vertical-align: middle; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: var(--otp-card-2); }
.otp-aula__media { position: relative; aspect-ratio: 16 / 9; border-radius: var(--otp-radius); overflow: hidden; background: #000; margin: 6px 0 16px; }
.otp-aula__media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.otp-aula__body { line-height: 1.65; }
.otp-aula__body p { margin: 0 0 12px; }
.otp-aula__body ul { margin: 0 0 12px; padding-left: 20px; }
.otp-aula__body a { text-decoration: underline; text-underline-offset: 3px; }
.otp-aula__files { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.otp-aula__file { width: 100%; text-align: left; font: inherit; color: var(--otp-ink); background: var(--otp-card); border: 1px solid var(--otp-line); border-radius: var(--otp-radius-sm); padding: 10px 12px; cursor: pointer; }
.otp-aula__file small { color: var(--otp-muted); }
.otp-aula__actions { display: flex; flex-direction: column; gap: 12px; margin: 22px 0 0; }
.otp-aula__nav { display: flex; gap: 8px; justify-content: space-between; flex-wrap: wrap; }
.otp-aula__skeleton { display: grid; gap: 12px; margin-top: 12px; }
.otp-aula__skeleton span { display: block; height: 18px; border-radius: 8px; background: var(--otp-line); animation: otp-aula-pulse 1.2s ease-in-out infinite; }
.otp-aula__skeleton span:nth-child(2) { width: 80%; } .otp-aula__skeleton span:nth-child(3) { width: 60%; }
@keyframes otp-aula-pulse { 50% { opacity: .5; } }
.otp-aula__toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; transition: .2s; z-index: 200;
  background: var(--otp-card-2); color: var(--otp-ink); padding: 10px 16px; border-radius: 999px; max-width: calc(100vw - 32px);
  pointer-events: none; } /* existe desde el arranque (invisible): no puede tapar clics */
.otp-aula__toast.is-on { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) {
  .otp-aula__skeleton span { animation: none; }
  .otp-aula__toast { transform: translate(-50%, 0); transition: opacity .2s; } /* aparece sin desplazarse */
}
/* Botones con el par de contraste del tema (ink/bg). El .otp-btn--primary del modal pinta blanco sobre
   --otp-blue, que en las paletas oscuras es un acento CLARO (royal: 2,2:1) → aquí sería ilegible.
   El diálogo de baja vive fuera de .otp-aula (como el toast: así clear(ROOT) en un render() concurrente
   no lo destruye a medio abrir) — por eso estas reglas también se aplican con raíz .otp-aula__dlg. */
.otp-aula .otp-btn, .otp-aula__dlg .otp-btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
  background: transparent; color: var(--otp-ink); box-shadow: inset 0 0 0 1.5px var(--otp-muted); }
.otp-aula .otp-btn--primary, .otp-aula .otp-btn--primary:hover, .otp-aula__dlg .otp-btn--primary, .otp-aula__dlg .otp-btn--primary:hover { background: var(--otp-ink); color: var(--otp-bg); box-shadow: none; }
.otp-aula .otp-btn:not([disabled]):hover, .otp-aula__dlg .otp-btn:not([disabled]):hover { opacity: .88; }
.otp-aula__nav .otp-btn { width: auto; flex: 1 1 0; }
/* Confirmación de baja de la membresía. Mismo par ink/card ya auditado (≥4,5:1 en las 6 paletas), sin colores nuevos. */
.otp-aula__dlg { border: 0; border-radius: var(--otp-radius); background: var(--otp-card); color: var(--otp-ink); max-width: min(420px, calc(100vw - 32px)); padding: 20px; }
.otp-aula__dlg::backdrop { background: rgba(0, 0, 0, .55); }
