/* Botones del aula virtual en la barra GOV.CO — ver insor-aula.php.
   Diseño: propuesta de Germán Carvajal (GEA), 9-nov-2026. */

.barra-superior-govco { position: relative; z-index: 10000; } /* el tooltip pasa por encima del header de Salient */

.insor-aula {
	--aula-azul: #25368b;
	--aula-amarillo: #fbb03b;
	--aula-magenta: #a2238f;
	display: flex;
	align-items: center;
	gap: 8px;
	position: relative;
}

.insor-aula__rotulo {
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .02em;
	margin-right: 4px;
}

.barra-superior-govco a.insor-aula__btn,
.insor-aula__btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	height: 32px;
	padding: 0 14px;
	border-radius: 999px;
	font: 600 13.5px/1 "Open Sans", Arial, sans-serif;
	text-decoration: none;
	white-space: nowrap;
	transition: background .2s, color .2s, box-shadow .2s;
}

.insor-aula__btn svg {
	width: 16px;
	height: 16px;
	flex: none;
	stroke: currentColor;
	fill: none;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.barra-superior-govco a.insor-aula__btn--primario { background: var(--aula-amarillo); color: var(--aula-azul); }
.barra-superior-govco a.insor-aula__btn--primario:hover,
.barra-superior-govco a.insor-aula__btn--primario.is-activo { background: #fff; color: var(--aula-azul); }

.barra-superior-govco a.insor-aula__btn--secundario { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .85); }
.barra-superior-govco a.insor-aula__btn--secundario:hover,
.barra-superior-govco a.insor-aula__btn--secundario.is-activo { background: #fff; color: var(--aula-azul); box-shadow: inset 0 0 0 1.5px #fff; }

.insor-aula__btn:focus-visible { outline: 3px solid var(--aula-amarillo); outline-offset: 3px; }

/* Manito LSC: el mismo símbolo de insor-hover-lsc.css (.insor-lsc-title::after). */
.insor-aula__lsc-ico {
	width: 15px;
	height: 15px;
	flex: none;
	background: currentColor;
	opacity: .75;
	-webkit-mask: var(--aula-lsc) center / contain no-repeat;
	mask: var(--aula-lsc) center / contain no-repeat;
	--aula-lsc: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><defs><path id='h' d='M30 94 L20 74 Q18 66 18 58 L12 42 A5.2 5.2 0 0 1 21.5 38 L26 58 L25 20 A5.4 5.4 0 0 1 35 20 L37 52 L38 12 A5.7 5.7 0 0 1 49 12 L49 50 L52 18 A5.3 5.3 0 0 1 62 20 L66 56 Q68 50 76 44 A6 6 0 0 1 86 50 Q78 62 72 78 L68 94 Z'/><mask id='c' maskUnits='userSpaceOnUse' x='0' y='0' width='24' height='24'><rect width='24' height='24' fill='white'/><use href='%23h' transform='translate(9.6 6.2) scale(0.152) rotate(14 50 50)' fill='black' stroke='black' stroke-width='12' stroke-linejoin='round'/></mask></defs><g mask='url(%23c)'><use href='%23h' transform='translate(0.9 0.6) scale(0.14) rotate(-16 50 50)' fill='none' stroke='black' stroke-width='8' stroke-linejoin='round'/></g><use href='%23h' transform='translate(9.6 6.2) scale(0.152) rotate(14 50 50)'/></svg>");
}

.insor-aula__lsc-movil { display: none; }

/* ---------- Tooltip ---------- */
.insor-aula__tip {
	position: absolute;
	top: calc(100% + 14px);
	right: 0;
	z-index: 50;
	display: block;
	width: 252px;
	background: #fff;
	border-radius: 16px;
	padding: 12px;
	box-shadow: 0 14px 36px rgba(20, 28, 80, .30);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
	text-align: left;
	white-space: normal;
	font-weight: 400;
	cursor: default;
}
.insor-aula__tip::before { /* flecha */
	content: "";
	position: absolute;
	top: -8px;
	right: 30px;
	width: 16px;
	height: 16px;
	background: #fff;
	transform: rotate(45deg);
	border-radius: 3px 0 0 0;
}
/* Puente invisible para que el cursor pase del botón al tooltip sin cerrarlo. */
.insor-aula__tip::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: -16px;
	height: 16px;
}
.insor-aula__tip.is-visible {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: opacity .18s ease, transform .18s ease;
}

.insor-aula__video {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	border-radius: 12px;
	overflow: hidden;
	border: 3px solid var(--aula-magenta);
	background: #f3f0f6;
	margin-bottom: 10px;
}
.insor-aula__video video { display: block; width: 100%; height: 100%; object-fit: cover; }
.insor-aula__video::after {
	content: "LSC";
	position: absolute;
	right: 8px;
	bottom: 8px;
	padding: 2px 8px;
	border-radius: 999px;
	background: rgba(162, 35, 143, .92);
	color: #fff;
	font: 700 11px/1.6 "Open Sans", sans-serif;
	letter-spacing: .06em;
}

.insor-aula__tip-titulo { display: block; margin: 0 2px 2px; font-size: 15px; font-weight: 700; line-height: 1.3; color: var(--aula-azul); }
.insor-aula__tip-texto { display: block; margin: 0 2px; font-size: 13px; line-height: 1.45; color: #444; }

/* ---------- Celular ---------- */
@media (max-width: 690px) {
	.insor-aula__rotulo { display: none; }
	.insor-aula { gap: 6px; }
	.barra-superior-govco a.insor-aula__btn,
	.insor-aula__btn { height: 34px; padding: 0 11px; font-size: 12.5px; }
	.insor-aula__btn .insor-aula__lsc-ico { display: none; }
	.insor-aula__lsc-movil {
		display: inline-flex;
		width: 34px;
		padding: 0;
		justify-content: center;
		color: #fff;
		box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .85);
		background: transparent;
		border: 0;
		cursor: pointer;
	}
	.insor-aula__lsc-movil .insor-aula__lsc-ico { display: block; width: 18px; height: 18px; opacity: 1; }
	/* El tooltip se ancla al grupo, no al botón, para no salirse de la pantalla. */
	.insor-aula__btn { position: static; }
	.barra-superior-govco a.insor-aula__btn { position: static; }
	.insor-aula__tip { right: 0; top: calc(100% + 12px); }
	.insor-aula__tip::before { display: none; }
}

@media (max-width: 400px) {
	.barra-superior-govco .enlace-gov__govco { width: 6rem; }
}

@media (prefers-reduced-motion: reduce) {
	.insor-aula__tip { transition: none; }
}
