/* Reproductor WOPE: se usa en los cursos y en la portada. */
/* ---------- Reproductor WOPE (tapa entero al de YouTube) ---------- */
.wp { position: relative; width: 100%; aspect-ratio: 16/9; background: #000; border-radius: 14px; overflow: hidden; user-select: none; }
.wp.is-full { border-radius: 0; aspect-ratio: auto; width: 100vw; height: 100vh; }
.wp-cap { position: absolute; inset: 0; }
.wp-ifr { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; pointer-events: none; background: #000; }
/* La tapa recibe TODOS los clics: nada llega al reproductor de YouTube. */
.wp-tapa { position: absolute; inset: 0; cursor: pointer; background: transparent; }
/* La portada: lo único que se ve antes de dar play (y al terminar, para tapar los
   «videos relacionados» de YouTube). Mientras está, en la página no hay nada de YouTube. */
.wp-portada { position: absolute; inset: 0; pointer-events: none; background-color: #0b0b0d; background-size: cover; background-position: center;
	background-image: radial-gradient(120% 90% at 50% 42%, rgba(232,184,75,.16), transparent 62%); transition: opacity .3s; }
.wp.is-empezo .wp-portada { opacity: 0; }
.wp.is-fin .wp-portada { opacity: 1; }

/* Barra de título. En pausa es opaca y de borde a borde: ahí es donde YouTube
   vuelve a dibujar su título, su canal y sus botones de compartir, y quedan debajo. */
.wp-tit { position: absolute; top: 0; left: 0; right: 0; padding: 14px 16px 24px; min-height: max(72px, 13%); box-sizing: border-box;
	color: #fff; font-weight: 700; font-size: 15px; line-height: 1.25;
	background: linear-gradient(180deg, #0b0b0d 0%, rgba(11,11,13,.96) 58%, rgba(11,11,13,0) 100%);
	pointer-events: none; transition: opacity .25s; }
.wp.is-play .wp-tit { background: linear-gradient(180deg, rgba(11,11,13,.95) 0%, rgba(11,11,13,.86) 46%, rgba(11,11,13,0) 100%); }
.wp.is-quieto .wp-tit { opacity: 0; }
.wp-grande { position: absolute; inset: 0; margin: auto; width: 128px; height: 128px; border: 0; border-radius: 50%; cursor: pointer;
	background: rgba(10,10,12,.72); color: var(--wope-oro, #e8b84b); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
	box-shadow: 0 0 0 2px rgba(232,184,75,.5), 0 10px 34px rgba(0,0,0,.5); transition: transform .18s, opacity .25s; }
.wp-grande:hover { transform: scale(1.06); }
.wp-logo { font-weight: 900; letter-spacing: 3px; font-size: 20px; }
.wp-tri { width: 0; height: 0; border-left: 20px solid currentColor; border-top: 13px solid transparent; border-bottom: 13px solid transparent; margin-left: 5px; }
.wp.is-play .wp-grande { opacity: 0; pointer-events: none; }
/* En pausa se encoge: tapa el botón de play de YouTube y se lee como «seguir». */
.wp.is-empezo:not(.is-play) .wp-grande { width: 96px; height: 96px; }
.wp.is-empezo:not(.is-play) .wp-logo { font-size: 15px; letter-spacing: 2px; }
.wp-carga { position: absolute; inset: 0; margin: auto; width: 46px; height: 46px; pointer-events: none; }
.wp-carga span { display: block; width: 100%; height: 100%; border: 3px solid rgba(255,255,255,.25); border-top-color: #fff; border-radius: 50%; animation: wp-gira .9s linear infinite; }
@keyframes wp-gira { to { transform: rotate(360deg); } }
.wp-ctl { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 10px 8px; color: #fff;
	background: linear-gradient(0deg, #0b0b0d 0%, rgba(11,11,13,.97) 62%, rgba(11,11,13,0) 100%); transition: opacity .25s; }
.wp.is-play .wp-ctl { background: linear-gradient(0deg, rgba(11,11,13,.95) 0%, rgba(11,11,13,.86) 50%, rgba(11,11,13,0) 100%); }
.wp.is-quieto .wp-ctl { opacity: 0; pointer-events: none; }
.wp-barra { position: relative; height: 16px; display: flex; align-items: center; cursor: pointer; }
.wp-barra::before { content: ''; position: absolute; left: 0; right: 0; height: 4px; border-radius: 3px; background: rgba(255,255,255,.3); }
.wp-visto { position: absolute; left: 0; height: 4px; width: 0; border-radius: 3px; background: var(--wope-oro, #e8b84b); }
.wp-punta { position: absolute; left: 0; width: 0; height: 4px; }
.wp-barra:hover::before, .wp-barra:focus-visible::before { height: 6px; }
.wp-fila { display: flex; align-items: center; gap: 4px; margin-top: 2px; flex-wrap: nowrap; }
.wp-b { background: none; border: 0; color: #fff; font-size: 15px; line-height: 1; padding: 7px 8px; border-radius: 8px; cursor: pointer; }
.wp-b:hover { background: rgba(255,255,255,.16); }
.wp-t { font-size: 12px; opacity: .9; margin-left: 4px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.wp-sep { flex: 1; }
.wp-vol { display: flex; align-items: center; }
.wp-vol input { width: 0; opacity: 0; transition: width .2s, opacity .2s; accent-color: var(--wope-oro, #e8b84b); }
.wp-vol:hover input, .wp-vol input:focus { width: 72px; opacity: 1; margin-right: 6px; }
.wp-cc { font-size: 11px; font-weight: 800; letter-spacing: .5px; border: 1px solid rgba(255,255,255,.45); }
.wp.is-cc .wp-cc { background: var(--wope-oro, #e8b84b); color: #111; border-color: transparent; }
.wp-menu { position: relative; }
.wp-vel { font-size: 12px; font-weight: 700; }
.wp-lista { position: absolute; right: 0; bottom: 40px; background: rgba(16,16,18,.97); border-radius: 10px; padding: 5px; min-width: 112px; box-shadow: 0 8px 26px rgba(0,0,0,.5); }
.wp-vi { display: block; width: 100%; text-align: left; background: none; border: 0; color: #fff; padding: 8px 12px; border-radius: 7px; cursor: pointer; font-size: 13px; }
.wp-vi:hover { background: rgba(255,255,255,.14); }
.wp-vi.is-on { color: var(--wope-oro, #e8b84b); font-weight: 700; }
.wp-mal { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: #fff; background: rgba(0,0,0,.88); text-align: center; padding: 16px; }
.wp-mal span { opacity: .8; font-size: 13px; }
@media (max-width: 420px) { .wp-m10, .wp-p10 { display: none; } .wp-tit { font-size: 13px; } }
.au-lista li small { display: block; opacity: .72; font-size: 12px; line-height: 1.35; margin-top: 1px; }
.au-test .au-preg { padding: 12px 0; border-top: 1px solid var(--wt-linea, rgba(128,128,128,.22)); }
.au-test .au-preg:first-of-type { border-top: 0; }
.au-q { margin: 0 0 8px; }
.au-ops { display: grid; gap: 6px; }
.au-op { text-align: left; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--wt-linea, rgba(128,128,128,.3)); background: transparent; color: inherit; cursor: pointer; font: inherit; line-height: 1.35; }
.au-op:hover:not(:disabled) { border-color: var(--wope-oro, #e8b84b); }
.au-op:disabled { cursor: default; opacity: .75; }
.au-op.is-ok { border-color: #35a06a; background: rgba(53,160,106,.14); opacity: 1; font-weight: 600; }
.au-op.is-no { border-color: #c4553d; background: rgba(196,85,61,.14); opacity: 1; }
.au-exp { font-size: 13px; opacity: .85; margin: 8px 0 0; line-height: 1.45; }
