/* ModularLMS — estilos del canvas de la academia (complementan Bootstrap). */

/* ═══════════ Sistema de diseno (NO NEGOCIABLE — usar en TODA la app) ═══════════ */
:root {
	--mlm-blue: #3858e9;        /* azul de accion (botones / tab activo) */
	--mlm-blue-hover: #2145e6;
	--mlm-radius: 0;            /* sin bordes redondos */
	--mlm-border: #cfd4dc;
	--mlm-text: #101828;
	--mlm-muted: #667085;
	--mlm-input-pad: 13px 14px;
	--mlm-input-font: 1.05rem;
	--mlm-btn-pad: 13px 16px;
	--mlm-btn-font: 1.1rem;
}

.mlm-canvas {
	background: #f6f7f9;
	font-size: 1rem; /* texto general 16px (incluye menu) */
	/* Inter: fuente OFICIAL de la app (no negociable). */
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.mlm-app .navbar-brand {
	font-weight: 600;
	letter-spacing: .2px;
}

.mlm-content img {
	max-width: 100%;
	height: auto;
}

.mlm-content :where(h2, h3, h4) {
	margin-top: 1.5rem;
}

.breadcrumb {
	--bs-breadcrumb-divider: '›';
	font-size: .9rem;
	padding-left: 0;
	margin: 0 0 20px;
}

/* ── Componentes definidos: sin bordes redondos ni subrayados ── */
.mlm-canvas .card,
.mlm-canvas .btn,
.mlm-canvas .form-control,
.mlm-canvas .form-select,
.mlm-canvas .input-group-text,
.mlm-canvas .list-group,
.mlm-canvas .list-group-item,
.mlm-canvas .alert,
.mlm-canvas .badge,
.mlm-canvas .progress,
.mlm-canvas .accordion,
.mlm-canvas .accordion-item,
.mlm-canvas .accordion-button {
	border-radius: 0 !important;
}

.mlm-canvas a {
	text-decoration: none;
}

.mlm-canvas .btn-outline-primary {
	color: #3858e9;
	border-color: #3858e9;
}

.mlm-canvas .btn-outline-primary:hover {
	background: #3858e9;
	border-color: #3858e9;
	color: #fff;
}

.mlm-canvas .progress-bar {
	background-color: #3858e9;
}

/* KPI con borde izquierdo recto azul (como el plugin activo de WP) */
.mlm-kpi {
	border-left: 4px solid #3858e9;
}

/* Titulo de pagina: 2.4rem y bold, consistente en toda la app */
.mlm-canvas main h1 {
	font-size: 2.4rem;
	font-weight: 800;
	line-height: 1.15;
}

/* ── Header global (logo / menu / perfil) ── */
.mlm-canvas main.container { padding-top: 32px; }

.mlm-header { background: #fff; border-bottom: 1px solid #e4e7ec; }
.mlm-header-inner { height: 64px; display: flex; align-items: center; gap: 24px; }
.mlm-logo { font-weight: 800; font-size: 1.2rem; color: #101828; letter-spacing: .2px; }
.mlm-logo-img { height: 34px; width: auto; max-width: 200px; display: block; object-fit: contain; }
.mlm-nav { flex: 1; display: flex; justify-content: center; gap: 28px; }
.mlm-nav-link { color: #475467; font-size: 1rem; font-weight: 500; }
.mlm-nav-link:hover { color: #101828; }
.mlm-nav-link.is-active { color: #3858e9; }
.mlm-profile-btn { display: flex; align-items: center; gap: 10px; background: transparent; border: 0; cursor: pointer; color: #101828; padding: 4px 6px; }
.mlm-avatar { width: 36px; height: 36px; object-fit: cover; border-radius: 0; display: block; }
.mlm-profile-name { font-size: 1rem; font-weight: 600; }
.mlm-profile .dropdown-menu { border-radius: 0; border: 1px solid #e4e7ec; box-shadow: 0 4px 16px rgba(16, 24, 40, .08); }
.mlm-profile .dropdown-item { font-size: 1rem; padding: 10px 16px; }
@media ( max-width: 640px ) {
	.mlm-nav { gap: 16px; }
	.mlm-profile-name { display: none; }
}

/* ════════════════ Login: pagina completa (split, sin bordes) ════════════════ */
.mlm-login {
	background: #fff;
}

.mlm-login .mlm-app {
	min-height: 100vh;
}

.mlm-login main.container {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}

.mlm-auth-split {
	display: flex;
	min-height: 100vh;
}

.mlm-auth-aside {
	flex: 0 0 45%;
	/* Color solido (mas adelante: background-image: url(...);). */
	background-color: #1f2937;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.mlm-auth-main {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px;
}

.mlm-auth-inner {
	width: 100%;
	max-width: 380px;
}

.mlm-auth-main h1 {
	font-weight: 800;
	font-size: 2.1rem;
	color: #101828;
	margin-bottom: 24px;
}

.mlm-auth-help {
	color: #667085;
	font-size: .95rem;
	margin-bottom: 20px;
}

.mlm-auth-alt {
	text-align: left;
	margin-top: 16px;
	margin-bottom: 0;
	font-size: 1rem;
}

.mlm-auth-alt a {
	color: #3858e9;
}

.mlm-login .form-control::placeholder {
	color: #98a2b3;
}

/* Checkbox "Recordarme" alineado con su etiqueta */
.mlm-login .form-check {
	display: flex;
	align-items: center;
	gap: 8px;
	padding-left: 0;
}

.mlm-login .form-check-input {
	margin: 0;
	float: none;
	width: 18px;
	height: 18px;
}

.mlm-login .form-check-label {
	margin: 0;
}

/* Campos y botones: cuadrados, mismo tamano */
.mlm-login .form-label {
	font-weight: 600;
	font-size: .85rem;
	color: #344054;
	margin-bottom: 5px;
}

.mlm-canvas main .form-control {
	border-color: #cfd4dc;
	padding: 13px 14px;
	font-size: 1.05rem;
}

.mlm-canvas main .form-control:focus {
	border-color: #3858e9;
	box-shadow: 0 0 0 3px rgba(56, 88, 233, .2);
}

.mlm-canvas main .btn {
	padding: 13px 16px;
	font-weight: 600;
	font-size: 1.1rem;
}

.mlm-canvas .btn-primary {
	background: #3858e9;
	border-color: #3858e9;
}

.mlm-canvas .btn-primary:hover {
	background: #2145e6;
	border-color: #2145e6;
}

/* Selector estudiante / institucion: dos tabs iguales */
.mlm-auth-seg {
	display: flex;
	gap: 8px;
}

.mlm-auth-seg .btn {
	flex: 1;
}

.mlm-login .btn-check + .btn-outline-primary {
	color: #475467;
	border-color: #cfd4dc;
}

.mlm-login .btn-check:checked + .btn-outline-primary {
	background: #3858e9;
	border-color: #3858e9;
	color: #fff;
}

/* Mostrar / ocultar contrasena */
.mlm-pass-wrap {
	position: relative;
}

.mlm-login .mlm-pass-wrap .form-control {
	padding-right: 42px;
}

.mlm-pass-toggle {
	position: absolute;
	right: 6px;
	top: 50%;
	transform: translateY(-50%);
	border: 0;
	background: transparent;
	cursor: pointer;
	color: #98a2b3;
	padding: 6px;
	display: flex;
}

.mlm-pass-toggle:hover {
	color: #3858e9;
}

/* Responsive: apilar */
@media ( max-width: 740px ) {
	.mlm-auth-split { flex-direction: column; }
	.mlm-auth-aside { flex: none; min-height: 140px; }
}

/* ═══════════════ Aula (course player): temario + escenario ═══════════════ */
.mlm-aula {
	display: grid;
	grid-template-columns: 340px 1fr;
	gap: 28px;
	align-items: start;
}

/* ── Panel izquierdo: temario ── */
.mlm-temario {
	background: #fff;
	border: 1px solid #e4e7ec;
	position: sticky;
	top: 88px;
	max-height: calc( 100vh - 110px );
	display: flex;
	flex-direction: column;
}

.mlm-temario-head {
	padding: 18px 18px 16px;
	border-bottom: 1px solid #e4e7ec;
}

.mlm-temario-title {
	font-size: 1.05rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .4px;
	color: #667085;
	margin: 0 0 12px;
}

.mlm-progress-row {
	display: flex;
	justify-content: space-between;
	font-size: 1rem;
	color: #475467;
	margin-bottom: 6px;
}

.mlm-progress-thin { height: 8px; }

.mlm-temario-list {
	overflow-y: auto;
	padding: 8px 0;
	flex: 1;
}

.mlm-temario-super {
	padding: 12px 18px 8px;
	border-top: 1px solid #f0f1f4;
}

.mlm-temario-super:first-child { border-top: 0; }

.mlm-super-title {
	display: block;
	font-size: 1.05rem;
	font-weight: 700;
	color: #101828;
	margin-bottom: 6px;
}

.mlm-super-progress { height: 6px; }

.mlm-temario-modulo {
	padding: 12px 18px 4px;
	font-size: .8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .5px;
	color: #98a2b3;
}

.mlm-lec-link {
	width: 100%;
	text-align: left;
	background: transparent;
	border: 0;
	border-left: 3px solid transparent;
	padding: 10px 18px;
	display: flex;
	align-items: flex-start;
	gap: 9px;
	cursor: pointer;
	font-size: 1rem;
	line-height: 1.35;
	color: #344054;
}

.mlm-lec-link:hover { background: #f6f7f9; }

.mlm-lec-link.is-active {
	background: #eef1fe;
	border-left-color: #3858e9;
	color: #101828;
	font-weight: 600;
}

.mlm-check {
	flex: 0 0 20px;
	height: 20px;
	margin-top: 1px;
	border: 1px solid #cfd4dc;
	background: #fff;
	color: #fff;
	font-size: .8rem;
	line-height: 18px;
	text-align: center;
}

.mlm-lec-link .mlm-check:not(:empty) {
	background: #3858e9;
	border-color: #3858e9;
}

.mlm-temario-foot {
	padding: 14px 18px;
	border-top: 1px solid #e4e7ec;
}

.mlm-incl { margin: 0; color: #667085; font-size: 1rem; }

.mlm-cancel-link {
	background: transparent;
	border: 0;
	padding: 0;
	color: #98a2b3;
	font-size: .95rem;
	cursor: pointer;
	text-decoration: underline;
}

.mlm-cancel-link:hover { color: #d92d20; }

/* ── Panel derecho: escenario ── */
.mlm-escenario { min-width: 0; }

.mlm-stage-title {
	margin: 0 0 18px;
}

/* Video 16:9 */
.mlm-video {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #0b0f19;
	overflow: hidden;
}

.mlm-video-el {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

.mlm-video-empty,
.mlm-video-link {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #98a2b3;
	font-size: 1.05rem;
}

.mlm-stage-foot {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 28px;
	padding-top: 20px;
	border-top: 1px solid #e4e7ec;
}

.mlm-stage-foot .mlm-complete { margin: 0 auto; }

.mlm-canvas main .btn-light {
	background: #fff;
	border-color: #cfd4dc;
	color: #344054;
}

.mlm-canvas main .btn-light:hover:not(:disabled) {
	border-color: #98a2b3;
	background: #f6f7f9;
}

.mlm-canvas main .btn-light:disabled { opacity: .45; }

/* ── Temario bloqueado (sin acceso) ── */
.mlm-preview-super {
	font-size: 1.2rem;
	font-weight: 700;
	margin: 22px 0 8px;
}

.mlm-preview-modulo {
	font-size: .82rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .5px;
	color: #98a2b3;
	margin: 14px 0 6px;
}

.mlm-preview-list {
	list-style: none;
	margin: 0 0 10px;
	padding: 0;
}

.mlm-preview-list li {
	padding: 9px 0;
	border-bottom: 1px solid #eef0f3;
	color: #475467;
	font-size: 1.05rem;
}

.mlm-lock { color: #98a2b3; margin-right: 6px; }

/* Apilar el aula en pantallas medianas/pequenas */
@media ( max-width: 991px ) {
	.mlm-aula { grid-template-columns: 1fr; }
	.mlm-temario { position: static; max-height: none; order: 2; }
	.mlm-escenario { order: 1; }
}

/* ═══════════════ Panel del estudiante: escala compacta y coherente ═══════════════ */
/* Jerarquia: saludo 2.4rem > seccion 1.25rem > titulo de card 1.125rem > texto 16px. */
.mlm-panel .card h3 {
	font-size: 1.125rem;
	font-weight: 600;
	color: #101828;
}

/* Encabezado de seccion: titulo a la izq, "Ver más" a la der, misma linea */
.mlm-section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 16px;
	gap: 16px;
}

.mlm-section-head h2 {
	font-size: 1.25rem;
	font-weight: 700;
	color: #101828;
	margin: 0;
}

.mlm-vermas {
	font-size: .95rem;
	font-weight: 600;
	color: #3858e9;
	white-space: nowrap;
}

.mlm-vermas:hover { color: #2145e6; }

/* ── Portada (cover) de las cards ── */
.mlm-card-cover {
	aspect-ratio: 16 / 9;
	background-size: cover;
	background-position: center;
	background-color: #eef1fe;
	border-bottom: 1px solid #e4e7ec;
}

.mlm-card-cover-empty {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #eef1fe;
}

.mlm-card-cover-empty span {
	font-size: 2.6rem;
	font-weight: 800;
	color: #3858e9;
	opacity: .85;
}

/* ── Catalogo (archive): card clicable ── */
.mlm-cat-card {
	color: inherit;
	display: block;
	transition: box-shadow .15s ease, transform .15s ease;
}

.mlm-cat-card:hover {
	box-shadow: 0 10px 28px rgba(16, 24, 40, .10);
	transform: translateY(-2px);
}

.mlm-cat-title {
	font-size: 1.125rem;
	font-weight: 600;
	color: #101828;
	margin: 0 0 6px;
}

.mlm-cat-excerpt {
	font-size: .95rem;
	color: #667085;
	margin: 0;
}

/* ── Wizard de registro (invitacion) ── */
.mlm-wizard {
	max-width: 640px;
	margin: 0 auto;
}

.mlm-wiz-eyebrow {
	color: #667085;
	font-size: 1rem;
	margin: 0 0 4px;
}

.mlm-canvas main .form-label {
	font-weight: 600;
	font-size: .9rem;
	color: #344054;
	margin-bottom: 5px;
}

/* Select (combobox) identico al input de texto */
.mlm-canvas main .form-select {
	border-color: #cfd4dc;
	padding: 13px 38px 13px 14px;
	font-size: 1.05rem;
	border-radius: 0;
}

.mlm-canvas main .form-select:focus {
	border-color: #3858e9;
	box-shadow: 0 0 0 3px rgba( 56, 88, 233, .2 );
}

/* Popup "Agregar estudiante": botones al 50% y Cancelar en rojo */
.mlm-modal-foot {
	flex-wrap: nowrap;
	gap: 12px;
}

.mlm-modal-foot > .btn {
	flex: 1 1 0;
	margin: 0;
}

.mlm-canvas .btn-danger {
	background: #d92d20;
	border-color: #d92d20;
	color: #fff;
}

.mlm-canvas .btn-danger:hover {
	background: #b42318;
	border-color: #b42318;
	color: #fff;
}

/* Avatar de estudiante (grilla de programa) */
.mlm-stu-avatar {
	width: 72px;
	height: 72px;
	object-fit: cover;
	border-radius: 0;
	display: inline-block;
}
