/**
 * Disruptia LMS — ruta de aprendizaje.
 *
 * Principios:
 *  1. El componente pinta su propia superficie: nunca depende del color
 *     de fondo del tema que lo hospeda.
 *  2. Todo color sale de tokens --dsr-*; los overlays usan --dsr-veil,
 *     que Dsr_Tokens calcula según si la paleta es clara u oscura.
 *  3. La ruta se ve como una ruta: nodos conectados por una línea que se
 *     llena conforme el alumno avanza.
 */

.dsr-route,
.dsr-route * { box-sizing: border-box; }

.dsr-route {
	--dsr-gap: clamp(14px, 1.6vw, 20px);
	width: 100%;
	padding: clamp(28px, 4vw, 52px) 0;
	background: var(--dsr-bg, #020817);
	color: var(--dsr-text, #D9E7F2);
	font-family: inherit;
	-webkit-font-smoothing: antialiased;
}

/* El tope de 1180 px es el correcto cuando la ruta vive dentro de la
   columna de un tema. Con "Ancho completo" encendido la ruta MANDA en la
   página y debe ocupar la pantalla: solo se reserva un margen de aire
   proporcional. (Queja del cliente, 11-ago: "en lo horizontal debe
   abarcar toda la pantalla".) */
.dsr-route-inner {
	width: min(1180px, calc(100% - clamp(20px, 4vw, 48px)));
	margin: 0 auto;
}

/* Nova: `min(1720px, 100%)` dentro de un bloque a 100vw con
   `padding: 90px clamp(22px,4vw,54px)`. El aire lateral lo pone el padding
   del bloque, no un ancho menor. */
body.dsr-full-width .dsr-route {
	padding: clamp(58px, 6vw, 90px) clamp(16px, 4vw, 54px);
}

body.dsr-full-width .dsr-route-inner {
	width: min(1720px, 100%);
	max-width: 1720px;
}

.dsr-icon {
	width: 1em;
	height: 1em;
	flex: 0 0 auto;
}

/* Foco visible: navegar con teclado no puede ser adivinar. */
.dsr-route a:focus-visible,
.dsr-route button:focus-visible,
.dsr-route input:focus-visible {
	outline: 2px solid var(--dsr-primary-2, #76D5FF);
	outline-offset: 3px;
	border-radius: 14px;
}

/* ---------- Botón inicio ---------- */
.dsr-route-home {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin: 0 0 clamp(18px, 2.4vw, 26px);
	padding: 11px 20px 11px 16px;
	border-radius: 999px;
	color: var(--dsr-on-primary, #fff) !important;
	text-decoration: none !important;
	background: linear-gradient(135deg, var(--dsr-primary, #0F65FF), var(--dsr-primary-2, #76D5FF));
	box-shadow: var(--dsr-shadow-sm, 0 10px 26px rgba(0, 0, 0, .28));
	font-size: 15px;
	font-weight: 950;
	line-height: 1;
	letter-spacing: -.005em;
	transition: transform .24s cubic-bezier(.22, .61, .36, 1), box-shadow .24s ease;
}

.dsr-route-home .dsr-icon { width: 17px; height: 17px; }

.dsr-route-home:hover {
	transform: translateY(-2px);
	box-shadow: var(--dsr-shadow, 0 18px 50px rgba(0, 0, 0, .32));
}

/* =========================================================
   Cabecera
   ========================================================= */

/* Con el avance ya en la franja fija, la cabecera solo presenta el curso:
   una columna y menos aire vertical (antes se comía una pantalla). */
.dsr-route-header {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(20px, 3vw, 40px);
	align-items: center;
	margin-bottom: clamp(24px, 3vw, 36px);
	padding: clamp(22px, 2.8vw, 34px) clamp(26px, 3.4vw, 40px);
	border-radius: clamp(24px, 2.4vw, 32px);
	border: 1px solid var(--dsr-border, rgba(118, 213, 255, .28));
	background: linear-gradient(135deg, var(--dsr-panel-lo, rgba(4, 14, 32, .98)), var(--dsr-panel-hi, rgba(8, 38, 78, .94)));
	box-shadow: var(--dsr-shadow-lg, 0 24px 70px rgba(0, 0, 0, .32)), inset 0 0 0 1px rgba(255, 255, 255, .035);
}

.dsr-route-header-main { min-width: 0; }

.dsr-route-kicker {
	display: inline-flex;
	align-items: center;
	margin-bottom: 14px;
	padding: 7px 13px;
	border-radius: 999px;
	background: var(--dsr-primary-soft, rgba(118, 213, 255, .12));
	border: 1px solid var(--dsr-border, rgba(118, 213, 255, .3));
	color: var(--dsr-primary-2, #76D5FF);
	font-size: 12px;
	font-weight: 950;
	line-height: 1;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.dsr-route-header h2 {
	margin: 0;
	color: var(--dsr-heading, #fff);
	max-width: 900px;
	font-size: clamp(42px, 5.8vw, 86px);
	line-height: .98;
	font-weight: 950;
	letter-spacing: -.055em;
	text-wrap: balance;
}

/* Párrafo de entrada bajo el titular — medidas del original de Nova
   (clamp(18px,1.5vw,24px), lh 1.65, máx 860 px). */
.dsr-route-intro {
	margin: 14px 0 0;
	max-width: 860px;
	color: var(--dsr-text, #C9D7E6);
	font-size: clamp(17px, 1.5vw, 23px);
	line-height: 1.65;
	font-weight: 700;
}

.dsr-route-login-note {
	margin-top: 18px;
	padding: 13px 16px;
	border-radius: 16px;
	border: 1px solid var(--dsr-accent-border, rgba(216, 180, 106, .36));
	background: var(--dsr-accent-soft, rgba(216, 180, 106, .08));
	color: var(--dsr-accent, #F4D891);
	font-size: 14px;
	font-weight: 850;
	line-height: 1.45;
}

/* =========================================================
   Franja de avance (sustituye al anillo, 11-ago-2026)

   Fija arriba: con 46 tarjetas el alumno pierde de vista su avance a los
   dos scrolls. La barra va segmentada por módulo y cada segmento toma el
   color de SU módulo, así que la franja también dice dónde vas.
   ========================================================= */
.dsr-route-band {
	position: sticky;
	top: 0;
	z-index: 30;
	margin-bottom: clamp(18px, 2.2vw, 26px);
	padding: 13px 0 12px;
	background: var(--dsr-surface-alt, rgba(2, 8, 23, .82));
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--dsr-border, rgba(118, 213, 255, .22));
}

body.admin-bar .dsr-route-band { top: 32px; }

.dsr-route-band-inner {
	width: min(1180px, calc(100% - clamp(20px, 4vw, 48px)));
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 9px;
}

body.dsr-full-width .dsr-route-band-inner {
	width: min(1720px, calc(100% - clamp(32px, 8vw, 108px)));
	max-width: 1720px;
}

.dsr-route-band-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px 24px;
	flex-wrap: wrap;
}

.dsr-route-band-title {
	color: var(--dsr-heading, #fff);
	font-size: 15px;
	font-weight: 950;
	line-height: 1.25;
	letter-spacing: -.015em;
}

.dsr-route-band-meta {
	color: var(--dsr-text, #D9E7F2);
	font-size: 13px;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.dsr-route-band-meta strong { color: var(--dsr-heading, #fff); font-weight: 900; }

.dsr-route-band-meta i {
	margin-left: 9px;
	padding: 3px 9px;
	border-radius: 999px;
	background: var(--dsr-primary-soft, rgba(118, 213, 255, .12));
	border: 1px solid var(--dsr-border, rgba(118, 213, 255, .28));
	color: var(--dsr-primary-2, #76D5FF);
	font-style: normal;
	font-weight: 900;
}

.dsr-route-band-bar {
	display: flex;
	gap: 3px;
	height: 8px;
}

.dsr-route-band-seg {
	position: relative;
	overflow: hidden;
	min-width: 4px;
	border-radius: 999px;
	background: var(--dsr-mod-soft, var(--dsr-veil, rgba(255, 255, 255, .08)));
	box-shadow: inset 0 0 0 1px var(--dsr-mod-soft, rgba(255, 255, 255, .05));
}

.dsr-route-band-seg.is-aside {
	background: var(--dsr-veil, rgba(255, 255, 255, .08));
}

.dsr-route-band-seg i {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: var(--dsr-mod, var(--dsr-primary-2, #76D5FF));
	box-shadow: 0 0 10px var(--dsr-mod-glow, rgba(118, 213, 255, .3));
	transition: width .9s cubic-bezier(.22, .61, .36, 1);
}

@media (max-width: 782px) {
	body.admin-bar .dsr-route-band { top: 46px; }
}

/* =========================================================
   La ruta como camino: nodos unidos por una línea
   ========================================================= */

.dsr-route-track {
	position: relative;
	padding-left: 34px;
}

/* Línea vertical que atraviesa todas las secciones. */
.dsr-route-track::before {
	content: "";
	position: absolute;
	top: 26px;
	bottom: 26px;
	left: 11px;
	width: 2px;
	border-radius: 2px;
	background: linear-gradient(
		to bottom,
		var(--dsr-primary-2, #76D5FF),
		var(--dsr-veil-strong, rgba(255, 255, 255, .14)) 55%
	);
	opacity: .55;
}

.dsr-route-section {
	position: relative;
	margin: 0 0 clamp(34px, 3.4vw, 58px);
	padding: clamp(26px, 3vw, 40px);
	border-radius: clamp(26px, 2.6vw, 34px);
	border: 1px solid var(--dsr-border, rgba(102, 201, 255, .22));
	background: linear-gradient(180deg, var(--dsr-panel-hi, rgba(10, 36, 71, .84)), var(--dsr-panel-lo, rgba(5, 17, 34, .80)));
	box-shadow: var(--dsr-shadow, 0 24px 70px rgba(0, 0, 0, .24)), inset 0 0 0 1px rgba(255, 255, 255, .035);
	transition: border-color .3s ease, box-shadow .3s ease;
}

.dsr-route-section:hover {
	border-color: var(--dsr-border-strong, rgba(118, 213, 255, .45));
}

/* Nodo sobre la línea, a la altura del título. */
.dsr-route-node {
	position: absolute;
	top: 30px;
	left: -29px;
	width: 14px;
	height: 14px;
	border-radius: 999px;
	background: var(--dsr-bg, #020817);
	border: 3px solid var(--dsr-border-strong, rgba(118, 213, 255, .5));
	transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.dsr-route-section.is-section-done .dsr-route-node {
	background: var(--dsr-primary-2, #76D5FF);
	border-color: var(--dsr-primary-2, #76D5FF);
	box-shadow: 0 0 0 4px var(--dsr-primary-soft, rgba(118, 213, 255, .18));
}

/* ---------- Cabecera de sección ---------- */
.dsr-route-section-head { margin-bottom: 26px; }

.dsr-route-section-heading {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 18px;
	flex-wrap: wrap;
	margin-bottom: 8px;
}

.dsr-route-section-title {
	margin: 0;
	color: var(--dsr-heading, #fff);
	font-size: clamp(32px, 3.6vw, 54px);
	font-weight: 950;
	line-height: 1.05;
	letter-spacing: -.045em;
	text-wrap: balance;
}

.dsr-route-section-count {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	flex: 0 0 auto;
	color: var(--dsr-text, #D9E7F2);
	font-size: 13px;
	font-weight: 950;
	font-variant-numeric: tabular-nums;
}

.dsr-route-section-bar {
	display: block;
	width: 62px;
	height: 5px;
	border-radius: 999px;
	overflow: hidden;
	background: var(--dsr-veil, rgba(255, 255, 255, .08));
}

.dsr-route-section-bar span {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, var(--dsr-primary, #0F65FF), var(--dsr-primary-2, #76D5FF));
	transition: width .8s cubic-bezier(.22, .61, .36, 1);
}

.dsr-route-section-desc {
	margin: 0;
	max-width: 1100px;
	color: var(--dsr-text, #D9E7F2);
	font-size: clamp(17px, 1.35vw, 21px);
	line-height: 1.65;
	font-weight: 650;
}

/* =========================================================
   Tarjetas de lección
   ========================================================= */

/* Tres columnas FIJAS, como el original de Nova.
   `auto-fill, minmax(268px,1fr)` estaba bien mientras la ruta medía 1180 px,
   pero al arreglar el ancho (0.5.49) metía cinco o seis columnas y encogía
   las tarjetas — el propio arreglo empeoró la lectura. */
.dsr-route-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
	align-items: stretch;
}

.dsr-route-card {
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 18px;
	min-height: 220px;
	padding: 26px;
	border-radius: 30px;
	color: var(--dsr-text, #D9E7F2) !important;
	text-decoration: none !important;
	background: linear-gradient(180deg, var(--dsr-card-hi, rgba(10, 36, 71, .86)), var(--dsr-card-lo, rgba(2, 8, 23, .54)));
	border: 1px solid var(--dsr-border, rgba(102, 201, 255, .22));
	box-shadow: inset 0 0 18px rgba(102, 201, 255, .025);
	transition: transform .26s cubic-bezier(.22, .61, .36, 1), border-color .26s ease,
		box-shadow .26s ease, background .26s ease;
}

.dsr-route-card:hover {
	transform: translateY(-3px);
	background: linear-gradient(180deg, var(--dsr-card-hover-hi, rgba(20, 64, 110, .86)), var(--dsr-card-lo, rgba(2, 8, 23, .54)));
	border-color: var(--dsr-border-strong, rgba(118, 213, 255, .52));
	box-shadow: var(--dsr-shadow, 0 18px 42px rgba(0, 0, 0, .32));
}

/* Realce que sigue al cursor: las variables las escribe dsr-route.js. */
.dsr-route-card-glow {
	position: absolute;
	inset: 0;
	pointer-events: none;
	opacity: 0;
	background: radial-gradient(
		220px circle at var(--dsr-mx, 50%) var(--dsr-my, 50%),
		var(--dsr-primary-soft, rgba(118, 213, 255, .18)),
		transparent 62%
	);
	transition: opacity .3s ease;
}

.dsr-route-card:hover .dsr-route-card-glow { opacity: 1; }

/* Píldora del número: 44×34 con radio completo, como Nova. El número SIEMPRE
   se ve, también en las completadas — perderlo dejaba al alumno sin saber
   qué lección es; el estado lo dice la píldora de abajo. */
.dsr-route-number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 52px;
	height: 40px;
	margin: 0;
	padding: 0 13px;
	border-radius: 999px;
	background: var(--dsr-primary-soft, rgba(118, 213, 255, .12));
	border: 1px solid var(--dsr-border, rgba(118, 213, 255, .24));
	color: var(--dsr-primary-2, #76D5FF);
	font-size: 14px;
	font-weight: 950;
	font-variant-numeric: tabular-nums;
	transition: background .26s ease, color .26s ease, border-color .26s ease;
}

/* Estado como PÍLDORA al pie, no como etiqueta suelta arriba: es el peso
   visual que tenía el original y lo que hacía legible la tarjeta de un
   vistazo. Fondo + anillo de 1px, mayúsculas, 950. */
.dsr-route-status {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	width: fit-content;
	margin-top: auto;
	padding: 9px 13px;
	border-radius: 999px;
	background: var(--dsr-primary-soft, rgba(118, 213, 255, .11));
	box-shadow: 0 0 0 1px var(--dsr-border, rgba(118, 213, 255, .18));
	color: var(--dsr-muted, #AFC7DC);
	font-size: 12px;
	font-weight: 950;
	line-height: 1;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.dsr-route-status .dsr-icon { width: 13px; height: 13px; }

.dsr-route-title {
	display: block;
	color: var(--dsr-heading, #fff);
	margin: 0;
	font-size: clamp(18px, 1.35vw, 23px);
	line-height: 1.25;
	font-weight: 950;
	letter-spacing: -.02em;
	text-wrap: balance;
}

/* Nova oculta este renglón (`.nova-route-action{display:none}`): la tarjeta
   entera ya es el enlace y el texto competía con el título. Se conserva
   fuera de pantalla para que el enlace tenga nombre accesible. */
.dsr-route-action {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.dsr-route-action .dsr-icon { width: 14px; height: 14px; }

.dsr-route-card:hover .dsr-route-action {
	gap: 10px;
	color: var(--dsr-primary-2, #76D5FF);
}

/* ---------- Estados ---------- */
.dsr-route-card.is-completed {
	border-color: var(--dsr-border, rgba(118, 213, 255, .28));
}

.dsr-route-card.is-completed .dsr-route-number {
	background: linear-gradient(135deg, var(--dsr-primary, #0F65FF), var(--dsr-primary-2, #76D5FF));
	border-color: transparent;
	color: var(--dsr-on-primary, #fff);
	box-shadow: 0 0 14px var(--dsr-primary-soft, rgba(118, 213, 255, .45));
}

.dsr-route-card.is-completed .dsr-route-title { opacity: .78; }
.dsr-route-card.is-completed .dsr-route-status { color: var(--dsr-primary-2, #76D5FF); }
.dsr-route-card.is-completed:hover .dsr-route-title { opacity: 1; }

.dsr-route-card.is-next {
	background: var(--dsr-veil, rgba(255, 255, 255, .08));
	border-color: var(--dsr-accent-border, rgba(216, 180, 106, .6));
	box-shadow: 0 0 0 1px var(--dsr-accent-soft, rgba(216, 180, 106, .18)), var(--dsr-shadow, 0 18px 50px rgba(0, 0, 0, .32));
}

.dsr-route-card.is-next .dsr-route-number {
	background: var(--dsr-accent-soft, rgba(216, 180, 106, .16));
	border-color: var(--dsr-accent-border, rgba(216, 180, 106, .5));
	color: var(--dsr-accent, #D8B46A);
}

.dsr-route-card.is-next .dsr-route-status {
	background: var(--dsr-accent-soft, rgba(216, 180, 106, .13));
	box-shadow: 0 0 0 1px var(--dsr-accent-border, rgba(216, 180, 106, .36));
	color: var(--dsr-accent, #F4D891);
}

.dsr-route-card.is-next .dsr-route-action { color: var(--dsr-accent, #D8B46A); }

/* Latido discreto en la única tarjeta que reclama acción. */
.dsr-route-card.is-next::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: linear-gradient(90deg, transparent, var(--dsr-accent, #D8B46A), transparent);
	animation: dsrSweep 3.2s ease-in-out infinite;
}

@keyframes dsrSweep {
	0%, 100% { opacity: .25; }
	50%      { opacity: .9; }
}

/* Progresión forzada (0.5.73): la pendiente posterior a la frontera no es
   un enlace. El bloqueo lo dicen el candado y la píldora, no la
   transparencia (misma regla de legibilidad que el directorio de estados):
   el título sigue en blanco pleno para que el alumno vea QUÉ le espera. */
.dsr-route-card.is-locked {
	cursor: not-allowed;
	border-color: var(--dsr-border, rgba(118, 213, 255, .14));
}

.dsr-route-card.is-locked:hover {
	transform: none;
	box-shadow: none;
}

.dsr-route-card.is-locked .dsr-route-number {
	background: var(--dsr-veil, rgba(255, 255, 255, .05));
	border-color: var(--dsr-border, rgba(118, 213, 255, .18));
	color: var(--dsr-muted, #AFC7DC);
}

.dsr-route-card.is-locked .dsr-route-status {
	background: var(--dsr-veil, rgba(255, 255, 255, .05));
	box-shadow: 0 0 0 1px var(--dsr-border, rgba(118, 213, 255, .16));
	color: var(--dsr-muted, #AFC7DC);
}

.dsr-route-card.is-locked .dsr-route-card-glow { display: none; }

/* ---------- Sección destacada ---------- */
.dsr-route-featured-shell {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
	gap: var(--dsr-gap);
	align-items: stretch;
}

.dsr-card-featured { min-height: 210px !important; }

.dsr-route-featured-aside {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 26px;
	border-radius: 20px;
	border: 1px solid var(--dsr-border, rgba(118, 213, 255, .24));
	background: linear-gradient(180deg, var(--dsr-card-hi, rgba(16, 48, 84, .72)), var(--dsr-panel-lo, rgba(5, 16, 34, .84)));
}

.dsr-route-featured-aside strong {
	display: block;
	margin-bottom: 10px;
	color: var(--dsr-primary-2, #76D5FF) !important;
	font-size: clamp(24px, 3vw, 34px);
	line-height: 1.05;
	font-weight: 900;
	letter-spacing: -.03em;
}

.dsr-route-featured-aside span {
	display: block;
	color: var(--dsr-muted, #AFC7DC) !important;
	font-size: 14.5px;
	line-height: 1.6;
	font-weight: 600;
}

/* ---------- Tema extra ---------- */
.dsr-route-section-extra {
	border-color: var(--dsr-accent-border, rgba(216, 180, 106, .5));
	background:
		radial-gradient(110% 130% at 100% 0%, var(--dsr-accent-soft, rgba(216, 180, 106, .14)), transparent 58%),
		linear-gradient(170deg, var(--dsr-surface-hi, #0B3A72), var(--dsr-surface-lo, #041020));
}

.dsr-route-section-extra .dsr-route-node {
	border-color: var(--dsr-accent, #D8B46A);
}

.dsr-route-section-extra .dsr-route-grid {
	grid-template-columns: minmax(0, 1fr);
}

.dsr-card-extra { min-height: 150px; }

.dsr-route-badge {
	display: inline-flex;
	width: fit-content;
	margin-bottom: 10px;
	padding: 6px 11px;
	border-radius: 999px;
	color: var(--dsr-accent, #D8B46A) !important;
	background: var(--dsr-accent-soft, rgba(216, 180, 106, .12));
	border: 1px solid var(--dsr-accent-border, rgba(216, 180, 106, .72));
	font-size: 12px;
	line-height: 1;
	font-weight: 950;
	letter-spacing: .06em;
	text-transform: uppercase;
}

/* ---------- Directorio (estados) ---------- */
.dsr-directory {
	overflow: hidden;
	border-radius: 30px;
	border: 1px solid var(--dsr-border, rgba(102, 201, 255, .26));
	background: linear-gradient(180deg, var(--dsr-panel-hi, rgba(10, 36, 71, .82)), var(--dsr-panel-lo, rgba(5, 17, 34, .78)));
}

.dsr-directory-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
	padding: 24px;
	border-bottom: 1px solid var(--dsr-hairline, rgba(255, 255, 255, .12));
}

.dsr-directory-badge {
	display: inline-flex;
	min-height: 44px;
	align-items: center;
	justify-content: center;
	padding: 10px 16px;
	border-radius: 999px;
	color: var(--dsr-text, #D9E7F2) !important;
	background: var(--dsr-primary-soft, rgba(118, 213, 255, .14));
	border: 1px solid var(--dsr-border, rgba(118, 213, 255, .36));
	font-size: 13px;
	line-height: 1.2;
	font-weight: 950;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.dsr-directory-search { flex: 1 1 320px; max-width: 520px; }

.dsr-directory-search input {
	width: 100%;
	min-height: 56px;
	padding: 14px 16px;
	border-radius: 18px;
	outline: none !important;
	color: var(--dsr-heading, #fff) !important;
	background: var(--dsr-veil, rgba(255, 255, 255, .08)) !important;
	border: 1px solid var(--dsr-hairline, rgba(255, 255, 255, .13)) !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	transition: border-color .22s ease, background .22s ease;
}

.dsr-directory-search input:focus {
	border-color: var(--dsr-border-strong, rgba(118, 213, 255, .5)) !important;
}

.dsr-directory-search input::placeholder { color: var(--dsr-muted, #AFC7DC) !important; }

.dsr-directory-grid {
	padding: 24px;
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 13px;
}

.dsr-directory-link {
	min-height: 54px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 12px 14px;
	border-radius: 16px;
	text-align: center;
	color: var(--dsr-heading, #FFFFFF) !important;
	text-decoration: none !important;
	background: linear-gradient(180deg, var(--dsr-card-hi, rgba(10, 36, 71, .76)), var(--dsr-card-lo, rgba(2, 8, 23, .38)));
	border: 1px solid var(--dsr-border, rgba(102, 201, 255, .20)) !important;
	font-size: 14px;
	line-height: 1.25;
	font-weight: 850;
	transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}

.dsr-directory-link:hover {
	transform: translateY(-2px);
	background: linear-gradient(145deg, var(--dsr-primary, #0F65FF), var(--dsr-primary-2, #76D5FF));
	border-color: var(--dsr-border-strong, rgba(216, 244, 255, .28)) !important;
	color: var(--dsr-on-primary, #fff) !important;
	box-shadow: var(--dsr-shadow-sm, 0 10px 26px rgba(0, 0, 0, .28));
}

/* =========================================================
   Color por módulo — PLAN §9c, Módulo I-a

   El PHP escribe --dsr-mod* en la propia sección; aquí solo se consumen.
   Ninguna regla trae un color escrito a mano: si la academia cambia su
   primario, toda la progresión se recalcula sola. Y el color NUNCA es el
   único portador de significado (regla no negociable del módulo): el
   estado sigue diciéndose con texto en cada tarjeta.
   ========================================================= */
/* Corrección 11-ago (0.5.52): el teñido por módulo se replegó a acentos
   FINOS — franja lateral, nodo y barrita de avance. Sobre el fondo, los
   títulos y los números producía lavados verdosos ("se ve sucio y
   apagado") y rompía los títulos blancos de Nova. El color por módulo
   sigue diciendo dónde estás; ya no pinta la superficie. */

/* Franja lateral: el identificador más rápido de leer al hacer scroll. */
.dsr-route-section.has-module-color::before {
	content: "";
	position: absolute;
	top: clamp(22px, 2.6vw, 32px);
	bottom: clamp(22px, 2.6vw, 32px);
	left: 0;
	width: 4px;
	border-radius: 0 999px 999px 0;
	background: var(--dsr-mod, #76D5FF);
	box-shadow: 0 0 16px var(--dsr-mod-glow, rgba(118, 213, 255, .3));
}

.dsr-route-section.has-module-color .dsr-route-node {
	border-color: var(--dsr-mod, #76D5FF);
}

.dsr-route-section.has-module-color.is-section-done .dsr-route-node {
	background: var(--dsr-ok, #7CFFB2);
	border-color: var(--dsr-ok, #7CFFB2);
	box-shadow: 0 0 0 4px var(--dsr-ok-soft, rgba(95, 215, 154, .18));
}

/* Los títulos son BLANCOS siempre, como en Nova; el color del módulo vive
   en su barrita de avance. */
.dsr-route-section.has-module-color .dsr-route-section-bar span {
	background: var(--dsr-mod, #76D5FF);
}

/* ---------- Completada: verde, no azul ----------
   Petición explícita del cliente (11-ago): "cuando se termina una lección
   y se marca, cambiaba de color". El primario ya significa "esto es de tu
   marca"; hacía falta un color semántico distinto para "esto ya lo
   hiciste". Gana a la regla de módulo por venir después en la cascada. */
.dsr-route-card.is-completed {
	border-color: var(--dsr-ok-border, rgba(37, 211, 102, .42));
	background:
		radial-gradient(circle at 15% 14%, var(--dsr-ok-soft, rgba(37, 211, 102, .16)), transparent 34%),
		linear-gradient(180deg, var(--dsr-card-hi, rgba(10, 36, 71, .86)), var(--dsr-card-lo, rgba(2, 8, 23, .54)));
}

.dsr-route-card.is-completed .dsr-route-number {
	background: var(--dsr-ok-soft, rgba(37, 211, 102, .16));
	border-color: var(--dsr-ok-border, rgba(37, 211, 102, .42));
	color: var(--dsr-ok, #7CFFB2);
}

.dsr-route-card.is-completed .dsr-route-status {
	background: var(--dsr-ok-soft, rgba(37, 211, 102, .16));
	box-shadow: 0 0 0 1px var(--dsr-ok-border, rgba(37, 211, 102, .42));
	color: var(--dsr-ok, #7CFFB2);
}

.dsr-route-card.is-completed .dsr-route-action { color: var(--dsr-ok, #7CFFB2); }

/* El título ya no se atenúa: una lección hecha no es una lección apagada. */
.dsr-route-card.is-completed .dsr-route-title { opacity: 1; }

/* ---------- Entrada escalonada ---------- */
@media (prefers-reduced-motion: no-preference) {
	.dsr-route-section {
		animation: dsrRise .5s cubic-bezier(.22, .61, .36, 1) backwards;
	}

	.dsr-route-section:nth-child(1) { animation-delay: .02s; }
	.dsr-route-section:nth-child(2) { animation-delay: .07s; }
	.dsr-route-section:nth-child(3) { animation-delay: .12s; }
	.dsr-route-section:nth-child(n+4) { animation-delay: .16s; }
}

@keyframes dsrRise {
	from { opacity: 0; transform: translateY(14px); }
	to   { opacity: 1; transform: none; }
}

/* ---------- Responsive ----------
   Escalones del original: 3 → 2 → 1 columnas de tarjeta, y 6 → 4 → 2 → 1
   de chips de estado. Retícula fija en vez de auto-fill, para que el ancho
   completo no acabe metiendo seis tarjetas diminutas por fila. */
@media (max-width: 1100px) {
	.dsr-route-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.dsr-directory-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
	.dsr-route-card { min-height: auto; padding: 22px; }
	.dsr-route-title { font-size: 19px; }
}

@media (max-width: 900px) {
	.dsr-route-header { grid-template-columns: 1fr; }
	.dsr-route-featured-shell { grid-template-columns: 1fr; }
	.dsr-route-grid { grid-template-columns: 1fr; }
	.dsr-route-track { padding-left: 26px; }
	.dsr-route-node { left: -21px; }
	.dsr-route-track::before { left: 7px; }
}

@media (max-width: 780px) {
	.dsr-directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.dsr-directory-search { max-width: none; }
}

@media (max-width: 480px) {
	.dsr-directory-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
	.dsr-route-track { padding-left: 0; }
	.dsr-route-track::before,
	.dsr-route-node { display: none; }
	.dsr-route-section-heading { flex-direction: column; align-items: flex-start; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
	.dsr-route *,
	.dsr-route *::before,
	.dsr-route *::after {
		animation: none !important;
		transition-duration: .01ms !important;
	}
}
/* =========================================================
   Panel "Mis cursos" (Mi cuenta)
   ========================================================= */

.dsr-my-courses {
	width: 100%;
	padding: 38px 0;
	background: var(--dsr-bg, #020817);
	color: var(--dsr-text, #D9E7F2);
}

.dsr-my-courses-inner {
	width: min(1180px, calc(100% - 32px));
	margin: 0 auto;
}

.dsr-my-courses-title {
	margin: 0 0 22px;
	color: var(--dsr-heading, #fff);
	font-size: clamp(26px, 3.4vw, 38px);
	font-weight: 950;
	line-height: 1.1;
}

.dsr-my-courses-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
	gap: 20px;
}

.dsr-course-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: clamp(22px, 2.2vw, 30px);
	background: linear-gradient(180deg, var(--dsr-card-hi, rgba(10, 36, 71, .86)), var(--dsr-card-lo, rgba(2, 8, 23, .54)));
	border: 1px solid var(--dsr-border, rgba(102, 201, 255, .22));
	box-shadow: var(--dsr-shadow, 0 24px 70px rgba(0, 0, 0, .28)), inset 0 0 0 1px rgba(255, 255, 255, .035);
	transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.dsr-course-card:hover {
	transform: translateY(-3px);
	border-color: var(--dsr-border-strong, rgba(118, 213, 255, .5));
	box-shadow: var(--dsr-shadow-lg, 0 28px 78px rgba(0, 0, 0, .34));
}

.dsr-course-card-media {
	height: 156px;
	background-size: cover;
	background-position: center;
	border-bottom: 1px solid var(--dsr-border, rgba(118, 213, 255, .22));
}

.dsr-course-card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 16px;
	padding: 26px;
}

.dsr-course-card-title {
	margin: 0;
	color: var(--dsr-heading, #fff);
	font-size: 21px;
	font-weight: 950;
	line-height: 1.2;
}

.dsr-course-card-progress-label {
	display: flex;
	justify-content: space-between;
	margin-bottom: 8px;
	color: var(--dsr-muted, #AFC7DC);
	font-size: 13px;
	font-weight: 850;
}

.dsr-course-card-progress-label strong {
	color: var(--dsr-primary-2, #76D5FF);
	font-weight: 950;
}

.dsr-course-card-bar {
	height: 12px;
	border-radius: 999px;
	overflow: hidden;
	background: var(--dsr-veil, rgba(255, 255, 255, .10));
	box-shadow: inset 0 0 0 1px var(--dsr-border, rgba(118, 213, 255, .16));
}

.dsr-course-card-fill {
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, var(--dsr-primary, #0F65FF), var(--dsr-primary-2, #76D5FF));
	transition: width .4s ease;
}

.dsr-course-card-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: auto;
}

.dsr-course-card-next {
	margin: 0;
	color: var(--dsr-muted, #AFC7DC);
	font-size: 13px;
	line-height: 1.45;
	font-weight: 700;
}

.dsr-account-empty {
	padding: 30px;
	border-radius: var(--dsr-radius, 24px);
	background: var(--dsr-surface, #08264E);
	border: 1px solid var(--dsr-border, rgba(118, 213, 255, .25));
	color: var(--dsr-text, #D9E7F2);
	text-align: center;
	font-weight: 800;
}

/* ---------- Banner de Mi cuenta ---------- */
.dsr-account-banner {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	align-items: center;
	justify-content: space-between;
	padding: 28px 30px;
	border-radius: var(--dsr-radius-lg, 34px);
	background: linear-gradient(135deg, var(--dsr-surface-lo, #041020), var(--dsr-surface-hi, #0B3A72));
	border: 1px solid var(--dsr-border, rgba(118, 213, 255, .28));
	box-shadow: var(--dsr-shadow, 0 24px 70px rgba(0, 0, 0, .30));
	color: var(--dsr-text, #D9E7F2);
}

.dsr-account-banner-text strong {
	display: block;
	margin-bottom: 6px;
	color: var(--dsr-heading, #fff);
	font-size: clamp(22px, 2.6vw, 30px);
	font-weight: 950;
	line-height: 1.15;
}

.dsr-account-banner-text span {
	display: block;
	line-height: 1.5;
	font-weight: 700;
}

.dsr-account-banner-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

/* ---------- Botones compartidos ---------- */
.dsr-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 13px 22px;
	border-radius: 999px;
	font-weight: 950;
	font-size: 14px;
	line-height: 1;
	text-decoration: none !important;
	transition: transform .22s ease, box-shadow .22s ease;
}

.dsr-btn:hover { transform: translateY(-2px); }

.dsr-btn-primary {
	background: linear-gradient(135deg, var(--dsr-primary, #0F65FF), var(--dsr-primary-2, #76D5FF));
	color: var(--dsr-on-primary, #fff) !important;
	border: 1px solid var(--dsr-border-strong, rgba(216, 244, 255, .36));
	box-shadow: 0 14px 34px rgba(0, 0, 0, .28);
}

.dsr-btn-primary:hover { box-shadow: 0 18px 42px rgba(0, 0, 0, .34); }

.dsr-btn-ghost {
	border: 1px solid var(--dsr-border-strong, rgba(118, 213, 255, .45));
	color: var(--dsr-heading, #fff) !important;
	background: var(--dsr-surface-alt, rgba(2, 8, 23, .46));
}

/* =========================================================
   Ancho completo
   Se neutraliza el contenedor del tema, incluido el grid de
   Blocksy/Gutenberg que constriñe a los hijos de .entry-content.
   Sin breakout con 100vw: eso desbordaba a la derecha.
   ========================================================= */

/* `clip` y no `hidden`: `overflow-x:hidden` convierte al body en contenedor
   de scroll y con eso la franja de avance (position:sticky) deja de
   pegarse. `clip` recorta igual sin crear el contenedor. */
body.dsr-full-width { overflow-x: clip; }

/* 1. El contenedor del tema deja de constreñir y de pintar su tarjeta
      blanca (Blocksy en modo "boxed" la pone aquí). */
body.dsr-full-width [class*="ct-container"],
body.dsr-full-width .ast-container,
body.dsr-full-width .site-content .container,
body.dsr-full-width .entry-content,
body.dsr-full-width .site-main,
body.dsr-full-width #primary,
body.dsr-full-width #content {
	max-width: 100% !important;
	width: 100% !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	border: 0 !important;
}

/* 2. Sin franjas blancas arriba ni abajo — y sin el corsé lateral.
      OJO (bug encontrado el 11-ago-2026): esta regla reseteaba solo el
      padding VERTICAL, así que el <article> del tema seguía con su
      max-width:1290px y su padding:0 40px. Resultado medido en staging:
      la ruta ocupaba 1210 px de un viewport de 1521 — "está centrada y
      en pequeño". El ancho también se neutraliza aquí. */
body.dsr-full-width .site-content,
body.dsr-full-width #main-container,
body.dsr-full-width .site-main,
body.dsr-full-width article,
body.dsr-full-width .post,
body.dsr-full-width .page,
body.dsr-full-width .type-pmpro_course {
	max-width: 100% !important;
	width: 100% !important;
	padding: 0 !important;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	border-radius: 0 !important;
	float: none !important;
}

/* 3. El fondo de la página lo pone el token, no el tema. */
body.dsr-full-width,
body.dsr-full-width .site,
body.dsr-full-width #main-container {
	background-color: var(--dsr-bg, #020817) !important;
}

/* 4. El bloque ocupa toda la columna aunque el tema use grid
      (Blocksy/Gutenberg constriñen a los hijos de .entry-content). */
body.dsr-full-width .entry-content > .dsr-route,
body.dsr-full-width .entry-content > .dsr-my-courses,
body.dsr-full-width .entry-content > p > .dsr-route,
body.dsr-full-width .entry-content > p > .dsr-my-courses,
body.dsr-full-width .dsr-route,
body.dsr-full-width .dsr-my-courses {
	grid-column: 1 / -1 !important;
	width: 100% !important;
	max-width: none !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

/* ---------- Página de contacto ---------- */
.dsr-contact {
	max-width: 760px;
	margin: 0 auto;
	padding: 34px;
	border-radius: clamp(22px, 2.2vw, 30px);
	background: linear-gradient(180deg, var(--dsr-surface-hi, #0B3A72), var(--dsr-surface-lo, #041020));
	border: 1px solid var(--dsr-border, rgba(118, 213, 255, .25));
	box-shadow: var(--dsr-shadow, 0 24px 70px rgba(0, 0, 0, .28));
	color: var(--dsr-text, #D9E7F2);
}

.dsr-contact-intro {
	margin: 0 0 22px;
	font-size: 17px;
	line-height: 1.55;
	font-weight: 700;
}

/* ==========================================================================
   Módulo H — track del alumno (selector en Mi cuenta + directorio filtrado)
   ========================================================================== */

.dsr-track-card {
	margin: 18px 0;
	padding: 20px 22px;
	border-radius: 18px;
	border: 1px solid var(--dsr-border, rgba(102, 201, 255, .22));
	background: linear-gradient(135deg, var(--dsr-panel-lo, rgba(4, 14, 32, .98)), var(--dsr-panel-hi, rgba(8, 38, 78, .94)));
	color: var(--dsr-text, #D9E7F2);
	box-shadow: var(--dsr-shadow, 0 18px 50px rgba(0, 0, 0, .32)), inset 0 0 0 1px rgba(255, 255, 255, .035);
}

.dsr-track-form { margin: 0 0 14px; }

.dsr-track-form label {
	display: block;
	margin: 0 0 8px;
	font-weight: 700;
	color: var(--dsr-heading, #fff);
}

.dsr-track-missing {
	font-weight: 600;
	color: var(--dsr-accent, #F4D891);
}

.dsr-track-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* Reset COMPLETO del select (bug 11-ago: "las letras se ven arriba o
   abajo"). La causa: solo poníamos padding y el control heredaba la
   altura fija y el line-height del tema (Blocksy fija height en los
   form controls), así que el texto quedaba descentrado. Se anulan la
   altura y la apariencia nativas y se dibuja flecha propia. Aplica
   también a los selects del checkout (.dsr-track-checkout). */
.dsr-track-row select,
.dsr-track-checkout select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	height: auto !important;
	min-height: 52px;
	min-width: 240px;
	padding: 13px 46px 13px 16px !important;
	border-radius: 14px;
	border: 1px solid var(--dsr-border, rgba(118, 213, 255, .3)) !important;
	background-color: var(--dsr-surface-lo, #041020) !important;
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23AFC7DC' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	color: var(--dsr-text, #D9E7F2) !important;
	font-size: 15px !important;
	font-weight: 650;
	line-height: 1.3 !important;
}

.dsr-track-row select:focus,
.dsr-track-checkout select:focus {
	outline: none;
	border-color: var(--dsr-border-strong, rgba(118, 213, 255, .5)) !important;
	box-shadow: 0 0 0 3px var(--dsr-primary-soft, rgba(118, 213, 255, .14));
}

/* El <option> NO hereda el color del <select> en la lista desplegada (el
   navegador la pinta con su propio render nativo): sin esto, el texto sale
   negro por defecto sobre nuestro fondo oscuro. Se fuerza explícito. */
.dsr-track-row select option {
	color: #0b1220;
	background: #ffffff;
}

.dsr-track-current {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.dsr-track-current strong {
	padding: 8px 14px;
	border-radius: 999px;
	background: var(--dsr-primary-soft, rgba(118, 213, 255, .12));
	border: 1px solid var(--dsr-border, rgba(118, 213, 255, .3));
	color: var(--dsr-primary-2, #76D5FF);
}

.dsr-track-notice {
	margin: 0 0 12px;
	padding: 10px 14px;
	border-radius: 12px;
	font-weight: 600;
}

.dsr-track-notice.is-ok {
	background: var(--dsr-primary-soft, rgba(118, 213, 255, .12));
	border: 1px solid var(--dsr-border, rgba(118, 213, 255, .3));
	color: var(--dsr-primary-2, #76D5FF);
}

.dsr-track-notice.is-error {
	background: rgba(220, 60, 60, .12);
	border: 1px solid rgba(220, 60, 60, .4);
	color: #ff9c9c;
}

.dsr-track-note {
	margin: 4px 0 0;
	font-size: 13px;
	opacity: .75;
}

/* Aviso dentro del directorio cuando el alumno aún no elige estado. */
.dsr-directory-track-note {
	margin: 0 0 12px;
	padding: 10px 14px;
	border-radius: 12px;
	border: 1px solid var(--dsr-accent-border, rgba(216, 180, 106, .36));
	background: var(--dsr-accent-soft, rgba(216, 180, 106, .08));
	color: var(--dsr-accent, #F4D891);
	font-weight: 600;
}

.dsr-directory-track-note a { color: inherit; text-decoration: underline; }

/* El estado del alumno, destacado. */
.dsr-directory-link.is-own-track {
	background: linear-gradient(145deg, var(--dsr-primary, #0F65FF), var(--dsr-primary-2, #76D5FF));
	border-color: transparent !important;
	color: var(--dsr-on-primary, #fff) !important;
	font-weight: 850;
	box-shadow: 0 0 22px var(--dsr-primary-soft, rgba(118, 213, 255, .45));
}

/* Los ajenos: BLOQUEADOS, no borrados.
   Antes iban a opacity .35 + saturate(.4), lo que dejaba el texto en un
   contraste de 1.9:1 sobre la superficie — medido en staging el 11-ago:
   de 51 estados solo se leía el propio. El bloqueo ahora lo comunica el
   candado y el cursor, no la transparencia, y el texto vuelve a ser
   legible. El elemento ya no es un <a>, así que no hace falta anular
   eventos de puntero para sacarlo del tabulador. */
.dsr-directory-link.is-foreign-track {
	gap: 7px;
	color: var(--dsr-muted, #AFC7DC) !important;
	background: var(--dsr-veil-weak, rgba(255, 255, 255, .04));
	border-color: var(--dsr-hairline, rgba(255, 255, 255, .10)) !important;
	font-weight: 650;
	cursor: not-allowed;
}

.dsr-directory-link.is-foreign-track .dsr-icon {
	width: 12px;
	height: 12px;
	opacity: .7;
}

.dsr-directory-link.is-foreign-track:hover {
	transform: none;
	background: var(--dsr-veil, rgba(255, 255, 255, .08));
	color: var(--dsr-muted, #AFC7DC) !important;
	box-shadow: none;
}

/* ==========================================================================
   Fase 4 — Mi certificado (tarjeta en Mi cuenta + [dsr_certificate])
   Mismo sistema visual que la tarjeta de estado (Módulo H).
   ========================================================================== */

.dsr-cert-card {
	margin: 18px 0;
	padding: 20px 22px;
	border-radius: 18px;
	border: 1px solid var(--dsr-border, rgba(102, 201, 255, .22));
	background: linear-gradient(135deg, var(--dsr-panel-lo, rgba(4, 14, 32, .98)), var(--dsr-panel-hi, rgba(8, 38, 78, .94)));
	color: var(--dsr-text, #D9E7F2);
	box-shadow: var(--dsr-shadow, 0 18px 50px rgba(0, 0, 0, .32)), inset 0 0 0 1px rgba(255, 255, 255, .035);
}

.dsr-cert-card .dsr-track-row input[type="text"] {
	flex: 1 1 260px;
	min-width: 240px;
	padding: 10px 12px;
	border-radius: 12px;
	border: 1px solid var(--dsr-border, rgba(118, 213, 255, .3));
	background: var(--dsr-surface-lo, #041020);
	color: var(--dsr-text, #D9E7F2);
}

.dsr-cert-name { margin: 0 0 14px; }

.dsr-cert-name label {
	display: block;
	margin: 0 0 8px;
	font-weight: 700;
	color: var(--dsr-heading, #fff);
}

.dsr-cert-course {
	margin: 16px 0 0;
	padding: 14px 16px;
	border-radius: 14px;
	border: 1px solid var(--dsr-hairline, rgba(255, 255, 255, .13));
	background: var(--dsr-primary-soft, rgba(118, 213, 255, .07));
}

.dsr-cert-course-title {
	margin: 0 0 10px;
	font-size: 16px;
	color: var(--dsr-heading, #fff);
}

.dsr-cert-ok {
	margin: 0 0 10px;
	font-weight: 700;
	color: var(--dsr-primary-2, #76D5FF);
}

.dsr-cert-ok code {
	background: var(--dsr-surface-lo, #041020);
	border: 1px solid var(--dsr-border, rgba(118, 213, 255, .3));
	border-radius: 8px;
	padding: 2px 8px;
	letter-spacing: 1px;
}

.dsr-cert-checklist {
	list-style: none;
	margin: 0 0 10px;
	padding: 0;
}

.dsr-cert-req {
	margin: 0 0 6px;
	padding: 8px 12px;
	border-radius: 10px;
	border: 1px solid var(--dsr-hairline, rgba(255, 255, 255, .13));
	background: var(--dsr-surface-lo, #041020);
}

.dsr-cert-req.is-ok {
	border-color: var(--dsr-border, rgba(118, 213, 255, .3));
	color: var(--dsr-primary-2, #76D5FF);
}

.dsr-cert-req.is-pending {
	color: var(--dsr-text, #D9E7F2);
	opacity: .85;
}

/* ==========================================================================
   Mi cuenta — vestir el marco de WooCommerce (11-ago-2026)

   No existía UNA regla para .woocommerce-MyAccount-*: el menú salía como
   tarjeta blanca del tema sobre página oscura ("frankenstein"). Todo con
   tokens; !important solo donde Woo/Blocksy traen fondo o color propios.
   ========================================================================== */

.woocommerce-account .woocommerce-MyAccount-navigation {
	padding: 14px;
	border-radius: 24px;
	border: 1px solid var(--dsr-border, rgba(102, 201, 255, .22));
	background: linear-gradient(135deg, var(--dsr-panel-lo, rgba(4, 14, 32, .98)), var(--dsr-panel-hi, rgba(8, 38, 78, .94))) !important;
	box-shadow: var(--dsr-shadow, 0 18px 50px rgba(0, 0, 0, .28)), inset 0 0 0 1px rgba(255, 255, 255, .035);
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.woocommerce-account .woocommerce-MyAccount-navigation li {
	margin: 0 !important;
	border: 0 !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation a {
	display: flex !important;
	align-items: center;
	gap: 10px;
	padding: 12px 16px !important;
	border-radius: 14px;
	background: transparent !important;
	color: var(--dsr-muted, #AFC7DC) !important;
	text-decoration: none !important;
	font-size: 14.5px;
	font-weight: 800;
	line-height: 1.2;
	transition: background .18s ease, color .18s ease;
}

.woocommerce-account .woocommerce-MyAccount-navigation a:hover {
	background: var(--dsr-veil, rgba(255, 255, 255, .08)) !important;
	color: var(--dsr-heading, #fff) !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
	background: linear-gradient(135deg, var(--dsr-primary, #0F65FF), var(--dsr-primary-2, #76D5FF)) !important;
	color: var(--dsr-on-primary, #fff) !important;
	box-shadow: var(--dsr-shadow-sm, 0 10px 26px rgba(0, 0, 0, .28));
}

/* ---------- Contenido ---------- */
.woocommerce-account .woocommerce-MyAccount-content {
	color: var(--dsr-text, #D9E7F2);
}

.woocommerce-account .woocommerce-MyAccount-content > p {
	color: var(--dsr-muted, #AFC7DC);
	font-size: 15px;
	line-height: 1.65;
}

.woocommerce-account .woocommerce-MyAccount-content a:not(.button):not(.dsr-btn):not(.woocommerce-button) {
	color: var(--dsr-primary-2, #76D5FF);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.woocommerce-account .woocommerce-MyAccount-content h2,
.woocommerce-account .woocommerce-MyAccount-content h3,
.woocommerce-account .woocommerce-MyAccount-content legend {
	color: var(--dsr-heading, #fff);
	font-weight: 950;
	letter-spacing: -.02em;
}

/* ---------- Botones de Woo → misma píldora que el resto del sistema ---------- */
.woocommerce-account .woocommerce-MyAccount-content .button,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-button,
.woocommerce-account .woocommerce-MyAccount-content button[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 22px !important;
	border-radius: 999px !important;
	border: 1px solid rgba(216, 244, 255, .36) !important;
	background: linear-gradient(135deg, var(--dsr-primary, #0F65FF), var(--dsr-primary-2, #76D5FF) 170%) !important;
	color: var(--dsr-on-primary, #fff) !important;
	font-size: 14px !important;
	font-weight: 900 !important;
	line-height: 1.1 !important;
	text-decoration: none !important;
	box-shadow: var(--dsr-shadow-sm, 0 10px 26px rgba(0, 0, 0, .28));
	transition: transform .2s ease, box-shadow .2s ease;
	cursor: pointer;
}

.woocommerce-account .woocommerce-MyAccount-content .button:hover,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-button:hover,
.woocommerce-account .woocommerce-MyAccount-content button[type="submit"]:hover {
	transform: translateY(-2px);
	box-shadow: var(--dsr-shadow, 0 18px 42px rgba(0, 0, 0, .34));
}

/* ---------- Formularios (Detalles de la cuenta, direcciones) ---------- */
.woocommerce-account .woocommerce-MyAccount-content input[type="text"],
.woocommerce-account .woocommerce-MyAccount-content input[type="email"],
.woocommerce-account .woocommerce-MyAccount-content input[type="password"],
.woocommerce-account .woocommerce-MyAccount-content input[type="tel"],
.woocommerce-account .woocommerce-MyAccount-content textarea,
.woocommerce-account .woocommerce-MyAccount-content select {
	height: auto !important;
	min-height: 50px;
	padding: 12px 16px !important;
	border-radius: 14px !important;
	border: 1px solid var(--dsr-border, rgba(118, 213, 255, .3)) !important;
	background-color: var(--dsr-surface-lo, #041020) !important;
	color: var(--dsr-text, #D9E7F2) !important;
	font-size: 15px !important;
	line-height: 1.3 !important;
}

.woocommerce-account .woocommerce-MyAccount-content input:focus,
.woocommerce-account .woocommerce-MyAccount-content textarea:focus,
.woocommerce-account .woocommerce-MyAccount-content select:focus {
	outline: none !important;
	border-color: var(--dsr-border-strong, rgba(118, 213, 255, .5)) !important;
	box-shadow: 0 0 0 3px var(--dsr-primary-soft, rgba(118, 213, 255, .14));
}

.woocommerce-account .woocommerce-MyAccount-content label {
	color: var(--dsr-text, #D9E7F2);
	font-weight: 700;
}

/* ---------- Tablas (pedidos, descargas) ---------- */
.woocommerce-account .woocommerce-MyAccount-content table.shop_table {
	border: 1px solid var(--dsr-border, rgba(102, 201, 255, .22)) !important;
	border-radius: 18px;
	overflow: hidden;
	background: var(--dsr-panel-lo, rgba(4, 14, 32, .9)) !important;
	border-collapse: separate !important;
	border-spacing: 0;
}

.woocommerce-account .woocommerce-MyAccount-content table.shop_table th,
.woocommerce-account .woocommerce-MyAccount-content table.shop_table td {
	border-color: var(--dsr-hairline, rgba(255, 255, 255, .1)) !important;
	background: transparent !important;
	color: var(--dsr-text, #D9E7F2) !important;
}

.woocommerce-account .woocommerce-MyAccount-content table.shop_table thead th {
	color: var(--dsr-muted, #AFC7DC) !important;
	font-size: 12px;
	letter-spacing: .08em;
	text-transform: uppercase;
}

/* ---------- Avisos de Woo dentro de la cuenta ---------- */
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-message,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info {
	border-radius: 14px;
	border: 1px solid var(--dsr-border, rgba(118, 213, 255, .3)) !important;
	background: var(--dsr-primary-soft, rgba(118, 213, 255, .1)) !important;
	color: var(--dsr-text, #D9E7F2) !important;
}

/* ==========================================================================
   Perfiles visuales de la ruta — Módulo I-a (0.5.70)

   Mismo markup, otra piel. El PHP añade dsr-profile-trayecto|arena al
   contenedor; "expediente" es el CSS base (el de Nova) y no añade clase.
   Ambos perfiles consumen las variables --dsr-mod* que cada módulo ya trae
   inyectadas — aquí el color por módulo SÍ pinta superficie, porque el
   perfil se elige por curso y a propósito.
   ========================================================================== */

/* ---------- TRAYECTO: denso — bandas por módulo, lecciones en filas ------ */

.dsr-route.dsr-profile-trayecto .dsr-route-section.has-module-color {
	border-color: var(--dsr-mod-line, rgba(118, 213, 255, .3));
	background:
		linear-gradient(100deg, var(--dsr-mod-mid, rgba(118, 213, 255, .16)) 0%, transparent 58%),
		linear-gradient(180deg, var(--dsr-panel-hi, rgba(10, 36, 71, .84)), var(--dsr-panel-lo, rgba(5, 17, 34, .8)));
}

.dsr-route.dsr-profile-trayecto .dsr-route-grid {
	grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
	gap: 8px 16px;
}

.dsr-route.dsr-profile-trayecto .dsr-route-card {
	flex-direction: row;
	align-items: center;
	gap: 12px;
	min-height: 0;
	padding: 11px 14px;
	border-radius: 12px;
}

.dsr-route.dsr-profile-trayecto .dsr-route-number {
	min-width: 34px;
	height: 28px;
	margin: 0;
	padding: 0 8px;
	font-size: 12px;
}

.dsr-route.dsr-profile-trayecto .dsr-route-title {
	font-size: 14px;
	line-height: 1.3;
}

.dsr-route.dsr-profile-trayecto .dsr-route-status {
	margin: 0 0 0 auto;
	padding: 5px 10px;
	font-size: 10px;
	white-space: nowrap;
}

.dsr-route.dsr-profile-trayecto .dsr-route-badge {
	margin: 0;
	font-size: 10px;
}

/* Las secciones especiales (destacada/final) conservan tarjetas normales. */
.dsr-route.dsr-profile-trayecto .dsr-route-section-featured .dsr-route-card,
.dsr-route.dsr-profile-trayecto .dsr-route-section-final .dsr-route-card {
	flex-direction: column;
	align-items: flex-start;
	min-height: 170px;
	padding: 22px;
}

.dsr-route.dsr-profile-trayecto .dsr-route-section-featured .dsr-route-status,
.dsr-route.dsr-profile-trayecto .dsr-route-section-final .dsr-route-status {
	margin: auto 0 0;
}

/* ---------- ARENA: gamer — neón, mosaico y brillos ----------------------- */

.dsr-route.dsr-profile-arena .dsr-route-section.has-module-color {
	border-color: var(--dsr-mod-line, rgba(118, 213, 255, .35));
	background:
		radial-gradient(120% 140% at 0% 0%, var(--dsr-mod-mid, rgba(118, 213, 255, .16)), transparent 58%),
		linear-gradient(180deg, var(--dsr-panel-lo, rgba(4, 14, 32, .96)), var(--dsr-panel-lo, rgba(5, 17, 34, .9)));
}

.dsr-route.dsr-profile-arena .dsr-route-section.has-module-color .dsr-route-section-title {
	color: var(--dsr-heading, #fff);
	text-shadow: 0 0 18px var(--dsr-mod-glow, rgba(118, 213, 255, .45));
}

.dsr-route.dsr-profile-arena .dsr-route-section.has-module-color .dsr-route-section-bar span {
	box-shadow: 0 0 12px var(--dsr-mod-glow, rgba(118, 213, 255, .5));
}

.dsr-route.dsr-profile-arena .dsr-route-grid {
	grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
	gap: 10px;
}

.dsr-route.dsr-profile-arena .dsr-route-card {
	min-height: 0;
	gap: 10px;
	padding: 15px 16px;
	border-radius: 12px;
	background: rgba(255, 255, 255, .035);
	border: 1px solid rgba(255, 255, 255, .09);
	box-shadow: none;
}

.dsr-route.dsr-profile-arena .dsr-route-card:hover {
	transform: translateY(-2px);
	background: var(--dsr-mod-soft, rgba(118, 213, 255, .1));
	border-color: var(--dsr-mod, #76D5FF);
	box-shadow: 0 0 0 1px var(--dsr-mod, #76D5FF), 0 0 28px var(--dsr-mod-glow, rgba(118, 213, 255, .35));
}

.dsr-route.dsr-profile-arena .dsr-route-number {
	min-width: 36px;
	height: 28px;
	margin: 0;
	border-radius: 8px;
	background: transparent;
	border: 1.5px solid var(--dsr-mod-line, rgba(118, 213, 255, .4));
	color: var(--dsr-mod, #76D5FF);
	font-size: 12px;
}

.dsr-route.dsr-profile-arena .dsr-route-title {
	font-size: 14.5px;
	line-height: 1.28;
}

.dsr-route.dsr-profile-arena .dsr-route-status {
	margin-top: auto;
	padding: 6px 11px;
	font-size: 10.5px;
	background: transparent;
	box-shadow: 0 0 0 1px var(--dsr-mod-line, rgba(118, 213, 255, .3));
	color: var(--dsr-mod, #AFC7DC);
}

.dsr-route.dsr-profile-arena .dsr-route-card.is-completed {
	border-color: var(--dsr-ok-border, rgba(37, 211, 102, .5));
	background: var(--dsr-ok-soft, rgba(37, 211, 102, .1));
	box-shadow: 0 0 20px rgba(37, 211, 102, .12);
}

.dsr-route.dsr-profile-arena .dsr-route-card.is-completed .dsr-route-number {
	border-color: var(--dsr-ok, #7CFFB2);
	color: var(--dsr-ok, #7CFFB2);
}

.dsr-route.dsr-profile-arena .dsr-route-card.is-next {
	border-color: var(--dsr-accent, #D8B46A);
	box-shadow: 0 0 0 1px var(--dsr-accent-border, rgba(216, 180, 106, .5)), 0 0 26px rgba(216, 180, 106, .2);
}

@media (prefers-reduced-motion: reduce) {
	.dsr-route.dsr-profile-arena .dsr-route-card:hover { transform: none; }
}
