/* ONCOGINEM Aula */
.oncg-video { position: relative; margin: 0 0 1.5em; }
.oncg-video__marco { position: relative; width: 100%; padding-top: 56.25%; background: #000; overflow: hidden; border-radius: 8px; }
.oncg-video__marco iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.oncg-marca {
	position: absolute; left: 6%; top: 8%; z-index: 3;
	pointer-events: none; user-select: none; -webkit-user-select: none; white-space: nowrap;
	color: rgba(255, 255, 255, .5); text-shadow: 0 0 3px rgba(0, 0, 0, .9);
	font: 600 clamp(11px, 1.6vw, 18px)/1.2 system-ui, -apple-system, "Segoe UI", sans-serif;
	transition: left 1.5s ease, top 1.5s ease;
}
.oncg-pantalla {
	position: absolute; top: 8px; right: 8px; z-index: 4;
	padding: 4px 10px; border: 0; border-radius: 4px; cursor: pointer;
	background: rgba(0, 0, 0, .55); color: #fff; font: 600 12px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif;
}
.oncg-pantalla:hover, .oncg-pantalla:focus { background: rgba(0, 0, 0, .8); }
.oncg-video__marco:fullscreen { padding-top: 0; width: 100%; height: 100%; border-radius: 0; }
.oncg-video__marco:-webkit-full-screen { padding-top: 0; width: 100%; height: 100%; border-radius: 0; }
.oncg-video.oncg-pseudo { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 999999; margin: 0; background: #000; }
.oncg-video.oncg-pseudo .oncg-video__marco { padding-top: 0; height: 100%; border-radius: 0; }
html.oncg-bloqueo, html.oncg-bloqueo body { overflow: hidden; }
.oncg-detenido {
	position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 5;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	padding: 1em; background: #111; color: #fff; text-align: center;
}
.oncg-detenido a { color: #fff; text-decoration: underline; }
.oncg-caja { margin: 0 0 1.5em; padding: 12px 16px; border: 1px solid #d8dde3; border-left: 4px solid #1f6f8b; border-radius: 6px; background: #f6fafc; }
.oncg-caja--ok { border-left-color: #15803d; background: #f0fdf4; }
.oncg-caja--alerta { border-left-color: #b45309; background: #fffbeb; }
.oncg-reenvio { margin: .75em 0 0; }
.oncg-reenvio button { cursor: pointer; }

/* Diapositivas */
.oncg-diapos { position: relative; margin: 0 0 1.5em; }
.oncg-diapos__marco {
	position: relative; width: 100%; height: 0; padding-top: var(--oncg-ratio, 56.25%);
	background: #e9edf2; border-radius: 8px; overflow: hidden; outline-offset: 3px;
	user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.oncg-diapos__img {
	position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain;
	pointer-events: none; user-select: none; -webkit-user-drag: none; transition: opacity .15s ease;
}
.oncg-diapos__img:not([src]) { visibility: hidden; }
.oncg-diapos__escudo { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 2; }
.oncg-diapos .oncg-marca { color: rgba(18, 58, 92, .35); text-shadow: 0 0 2px rgba(255, 255, 255, .9); }
.oncg-cargando .oncg-diapos__img { opacity: .55; }
.oncg-diapos__barra { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; margin-top: 10px; }
.oncg-diapos__barra button {
	min-height: 44px; padding: 8px 16px; border: 1px solid #c9d2dc; border-radius: 8px; cursor: pointer;
	background: #fff; color: #1d6aa8; font: inherit; font-weight: 700;
}
.oncg-diapos__barra button:hover:not(:disabled), .oncg-diapos__barra button:focus-visible { border-color: #1d6aa8; }
.oncg-diapos__barra button:disabled { opacity: .45; cursor: default; }
.oncg-diapos__num { min-width: 9em; text-align: center; font-weight: 600; }
.oncg-error .oncg-diapos__num { min-width: 0; color: #b45309; }
.oncg-diapos__nota { margin: 6px 0 0; font-size: .9em; text-align: center; opacity: .8; }
.oncg-diapos:fullscreen { display: flex; flex-direction: column; background: #111; margin: 0; padding: 12px; box-sizing: border-box; }
.oncg-diapos:-webkit-full-screen { display: flex; flex-direction: column; background: #111; margin: 0; padding: 12px; box-sizing: border-box; }
.oncg-diapos.oncg-pseudo { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 999999; display: flex; flex-direction: column; background: #111; margin: 0; padding: 12px; box-sizing: border-box; }
.oncg-diapos:fullscreen .oncg-diapos__marco { flex: 1 1 auto; height: auto; padding-top: 0; background: #111; border-radius: 0; }
.oncg-diapos:-webkit-full-screen .oncg-diapos__marco { flex: 1 1 auto; height: auto; padding-top: 0; background: #111; border-radius: 0; }
.oncg-diapos.oncg-pseudo .oncg-diapos__marco { flex: 1 1 auto; height: auto; padding-top: 0; background: #111; border-radius: 0; }
.oncg-diapos:fullscreen .oncg-diapos__nota { display: none; }
.oncg-diapos.oncg-pseudo .oncg-diapos__nota { display: none; }
.oncg-diapos:fullscreen .oncg-diapos__num { color: #fff; }
.oncg-diapos.oncg-pseudo .oncg-diapos__num { color: #fff; }

@media (max-width: 520px) {
	.oncg-diapos__barra { flex-wrap: nowrap; justify-content: space-between; }
	.oncg-diapos__txt { display: none; }
	.oncg-diapos__barra button { min-width: 52px; font-size: 1.25em; line-height: 1; }
	.oncg-diapos__num { min-width: 0; }
}

/* Sin impresión del contenido protegido */
@media print {
	.oncg-video, .oncg-diapos { display: none !important; }
}
