/* You Formación — guía primera visita + cuenta más clara */

:root {
	--yf-purple: #5e2a84;
	--yf-purple-deep: #3d1b5c;
	--yf-yellow: #f5a700;
	--yf-ink: #1a1224;
	--yf-muted: #5c5268;
	--yf-card: #ffffff;
}

/* Guest /cuenta-del-usuario/: la ficha de login como el modal */
body.yf-account-guest .masterstudy-authorization {
	max-width: 420px;
	margin: 48px auto 72px;
	padding: 28px 24px 20px;
	background: #fff;
	border-radius: 22px;
	box-shadow: 0 18px 50px rgba(26, 18, 36, 0.12);
	border: 1px solid rgba(94, 42, 132, 0.08);
}

body.yf-account-guest .masterstudy-authorization::before {
	content: "CAMPUS VIRTUAL";
	display: block;
	text-align: center;
	letter-spacing: 0.14em;
	font-size: 11px;
	font-weight: 700;
	color: var(--yf-purple);
	margin-bottom: 8px;
}

body.yf-account-guest .site-content,
body.yf-account-guest .content-area,
body.yf-account-guest .post-type-page {
	min-height: 52vh;
}

/* Alumno: menos ruido en la barra de la cuenta */
body.yf-is-student.yf-account-page .masterstudy-account-sidebar a[href*="public-account"],
body.yf-is-student.yf-account-page .masterstudy-account-sidebar a[href*="instructor"],
body.yf-is-student.yf-account-page .masterstudy-account-sidebar a[href*="enterprise"],
body.yf-is-student.yf-account-page .masterstudy-account-sidebar a[href*="become"],
body.yf-is-student.yf-account-page a.masterstudy-account-menu__list-item[href*="points-history"],
body.yf-is-student.yf-account-page a.masterstudy-account-menu__list-item[href*="my-grades"],
body.yf-is-student.yf-account-page a.masterstudy-account-menu__list-item[href*="public-account"],
body.yf-is-student.yf-account-page a.masterstudy-account-menu__list-item[href*="enterprise"],
body.yf-is-student.yf-account-page a.masterstudy-account-menu__list-item[href*="become"],
body.yf-is-student.yf-account-page .stm_lms_become_instructor,
body.yf-is-student.yf-account-page .masterstudy-account-have-question,
body.yf-is-student.yf-account-page .masterstudy-enterprise-modal,
body.yf-is-student.yf-account-page .masterstudy-become-instructor-modal {
	display: none !important;
}

.yf-expediente {
	margin: 0 0 20px;
	padding: 18px 18px 16px;
	background: linear-gradient(160deg, #f7f1fc 0%, #fff 58%);
	border: 1px solid rgba(94, 42, 132, 0.14);
	border-radius: 18px;
	box-shadow: 0 10px 28px rgba(26, 18, 36, 0.06);
}

.yf-expediente__kicker {
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--yf-purple);
	margin-bottom: 6px;
}

.yf-expediente__title {
	margin: 0 0 8px;
	font-size: 20px;
	line-height: 1.25;
	font-weight: 800;
	color: var(--yf-ink);
}

.yf-expediente__text {
	margin: 0 0 12px;
	font-size: 15px;
	line-height: 1.45;
	color: var(--yf-muted);
}

.yf-expediente__access {
	margin: 0 0 12px;
	font-size: 14px;
	font-weight: 600;
	color: var(--yf-ink);
}

.yf-expediente__alerts {
	list-style: none;
	margin: 0 0 12px;
	padding: 0;
	display: grid;
	gap: 8px;
}

.yf-expediente__alerts[hidden],
.yf-expediente__access[hidden] {
	display: none !important;
}

.yf-expediente__alert {
	display: block;
	padding: 10px 12px;
	border-radius: 12px;
	background: #fff8e8;
	border: 1px solid rgba(245, 167, 0, 0.35);
	color: var(--yf-ink);
	font-weight: 700;
	font-size: 14px;
	text-decoration: none;
}

.yf-expediente__alert--info {
	background: #f4eef9;
	border-color: rgba(94, 42, 132, 0.16);
}

.yf-expediente__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 16px;
	border-radius: 999px;
	background: var(--yf-purple);
	color: #fff !important;
	font-weight: 800;
	font-size: 14px;
	text-decoration: none !important;
}

.yf-expediente__cta:hover {
	background: var(--yf-purple-deep);
}

.yf-guide-banner {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin: 0 0 18px;
	padding: 14px 16px;
	background: linear-gradient(135deg, #f7f1fc 0%, #fff8e8 100%);
	border: 1px solid rgba(94, 42, 132, 0.14);
	border-left: 4px solid var(--yf-purple);
	border-radius: 14px;
	color: var(--yf-ink);
	font-size: 15px;
	line-height: 1.45;
}

.yf-guide-banner__text {
	flex: 1;
	margin: 0;
}

.yf-guide-banner__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	flex-shrink: 0;
}

.yf-guide-banner button {
	appearance: none;
	border: 0;
	background: transparent;
	color: var(--yf-purple);
	font-weight: 700;
	font-size: 13px;
	cursor: pointer;
	padding: 6px 8px;
	border-radius: 8px;
}

.yf-guide-banner button:hover {
	background: rgba(94, 42, 132, 0.08);
}

.yf-guide-help {
	position: fixed;
	left: 16px;
	bottom: 18px;
	z-index: 99980;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 14px;
	border: 0;
	border-radius: 999px;
	background: var(--yf-purple);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 10px 24px rgba(94, 42, 132, 0.28);
}

.yf-guide-help:hover {
	background: var(--yf-purple-deep);
}

/* En el temario no tapar Anterior / Completado / Siguiente */
body.yf-player-page .yf-guide-help--player {
	position: relative;
	left: auto;
	bottom: auto;
	margin: 0 8px 0 auto;
	height: 32px;
	padding: 0 12px;
	font-size: 12px;
	box-shadow: none;
	z-index: 6;
	flex-shrink: 0;
	white-space: nowrap;
}

body.yf-player-page .yf-guide-help:not(.yf-guide-help--player) {
	bottom: calc(62px + env(safe-area-inset-bottom, 0px));
}

body.yf-guide-open .yf-guide-help {
	visibility: hidden;
	pointer-events: none;
}

.yf-guide-help[hidden],
.yf-guide-banner[hidden] {
	display: none !important;
}

.yf-guide {
	position: fixed;
	inset: 0;
	z-index: 100000;
}

.yf-guide[hidden] {
	display: none !important;
}

.yf-guide__overlay {
	position: absolute;
	inset: 0;
	background: rgba(20, 12, 36, 0.55);
}

.yf-guide__spot {
	position: fixed;
	border-radius: 16px;
	box-shadow: 0 0 0 4px #fff, 0 0 0 8px var(--yf-yellow), 0 0 0 9999px rgba(20, 12, 36, 0.55);
	pointer-events: none;
	transition: top 0.2s ease, left 0.2s ease, width 0.2s ease, height 0.2s ease;
	z-index: 1;
}

.yf-guide__card {
	position: fixed;
	z-index: 2;
	width: min(380px, calc(100vw - 28px));
	background: var(--yf-card);
	color: var(--yf-ink);
	border-radius: 18px;
	padding: 18px 18px 14px;
	box-shadow: 0 22px 50px rgba(20, 12, 36, 0.28);
}

.yf-guide__kicker {
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--yf-purple);
	margin-bottom: 6px;
}

.yf-guide__title {
	margin: 0 0 8px;
	font-size: 20px;
	line-height: 1.25;
	font-weight: 800;
}

.yf-guide__text {
	margin: 0 0 14px;
	font-size: 15px;
	line-height: 1.45;
	color: var(--yf-muted);
}

.yf-guide__footer {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.yf-guide__step {
	margin-right: auto;
	font-size: 12px;
	font-weight: 700;
	color: var(--yf-muted);
}

.yf-guide__skip,
.yf-guide__next {
	appearance: none;
	border: 0;
	cursor: pointer;
	border-radius: 999px;
	padding: 9px 14px;
	font-size: 13px;
	font-weight: 800;
}

.yf-guide__skip {
	background: transparent;
	color: var(--yf-muted);
}

.yf-guide__next {
	background: var(--yf-purple);
	color: #fff;
}

.yf-guide__next:hover {
	background: var(--yf-purple-deep);
}

body.yf-guide-open {
	overflow: hidden;
}

@media (max-width: 720px) {
	.yf-guide__card {
		left: 14px !important;
		right: 14px;
		width: auto;
		bottom: 16px;
		top: auto !important;
	}

	.yf-guide-help {
		left: 12px;
		bottom: 12px;
	}

	body.yf-player-page .yf-guide-help--player {
		margin-right: 4px;
		padding: 0 10px;
		font-size: 11px;
		max-width: 42vw;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	body.yf-player-page .yf-guide-help:not(.yf-guide-help--player) {
		left: 12px;
		bottom: calc(62px + env(safe-area-inset-bottom, 0px));
	}

	.yf-guide-banner {
		flex-direction: column;
	}

	.yf-expediente__title {
		font-size: 18px;
	}

	.yf-expediente__cta {
		width: 100%;
	}
}
