/*
 * Excel Level · Estilo LearnDash
 * Capa visual moderna y corporativa (inspirada en Apple) sobre la plantilla LD30.
 * Todo está limitado a body.ellde para no afectar al resto del sitio.
 */

/* ---------- Tokens ---------- */
body.ellde {
	--ellde-accent: #1bae70;
	--ellde-accent-hover: #159a62;
	--ellde-accent-soft: rgba(27, 174, 112, 0.1);
	--ellde-text: #1d1d1f;
	--ellde-text-2: #6e6e73;
	--ellde-text-3: #86868b;
	--ellde-bg: #f5f5f7;
	--ellde-surface: #ffffff;
	--ellde-line: rgba(0, 0, 0, 0.08);
	--ellde-warn: #ff9f0a;
	--ellde-warn-soft: rgba(255, 159, 10, 0.12);
	--ellde-danger: #ff3b30;
	--ellde-danger-soft: rgba(255, 59, 48, 0.1);
	--ellde-radius-lg: 22px;
	--ellde-radius: 14px;
	--ellde-radius-sm: 10px;
	--ellde-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
	--ellde-shadow-hover: 0 2px 4px rgba(0, 0, 0, 0.05), 0 14px 36px rgba(0, 0, 0, 0.09);
	--ellde-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--ellde-ease: cubic-bezier(0.25, 0.1, 0.25, 1);
	background-color: var(--ellde-bg);
}

body.ellde .learndash-wrapper,
body.ellde .learndash-wrapper button,
body.ellde .learndash-wrapper input,
body.ellde .learndash-wrapper select,
body.ellde .learndash-wrapper textarea,
body.ellde .wpProQuiz_content,
body.ellde.single-sfwd-courses .entry-title,
body.ellde.single-sfwd-lessons .entry-title,
body.ellde.single-sfwd-topic .entry-title,
body.ellde.single-sfwd-quiz .entry-title {
	font-family: var(--ellde-font);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body.ellde .learndash-wrapper {
	color: var(--ellde-text);
	font-size: 16px;
	line-height: 1.5;
	letter-spacing: -0.01em;
}

/* ---------- Contenedor del tema (Astra) ---------- */
body.ellde.ast-separate-container .ast-article-single,
body.ellde.ast-separate-container .ast-article-post {
	background: var(--ellde-surface);
	border-radius: var(--ellde-radius-lg);
	box-shadow: var(--ellde-shadow);
	border: 1px solid var(--ellde-line);
}

/* ---------- Títulos ---------- */
body.ellde.single-sfwd-courses .entry-title,
body.ellde.single-sfwd-lessons .entry-title,
body.ellde.single-sfwd-topic .entry-title,
body.ellde.single-sfwd-quiz .entry-title {
	color: var(--ellde-text);
	font-size: clamp(32px, 4.5vw, 48px);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -0.03em;
	margin-bottom: 0.6em;
}

body.ellde .learndash-wrapper h1,
body.ellde .learndash-wrapper h2,
body.ellde .learndash-wrapper h3,
body.ellde .learndash-wrapper h4 {
	color: var(--ellde-text);
	font-weight: 650;
	letter-spacing: -0.02em;
}

body.ellde .learndash-wrapper a {
	color: var(--ellde-accent);
	transition: color 0.2s var(--ellde-ease);
}

/* ---------- Barra de estado del curso ---------- */
body.ellde .learndash-wrapper .ld-course-status {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	background: transparent;
	border: 0;
	padding: 0;
	margin: 0 0 32px;
}

body.ellde .learndash-wrapper .ld-course-status .ld-course-status-segment {
	flex: 1 1 180px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
	min-height: 112px;
	padding: 20px 22px;
	background: var(--ellde-bg);
	border: 0;
	border-radius: var(--ellde-radius);
	text-align: left;
}

body.ellde .learndash-wrapper .ld-course-status .ld-course-status-segment::after,
body.ellde .learndash-wrapper .ld-course-status .ld-course-status-segment::before {
	display: none;
}

body.ellde .learndash-wrapper .ld-course-status .ld-course-status-label {
	color: var(--ellde-text-2);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	margin: 0;
	opacity: 1;
}

body.ellde .learndash-wrapper .ld-course-status .ld-course-status-content {
	width: 100%;
	text-align: left;
	align-items: flex-start;
	justify-content: flex-start;
}

body.ellde .learndash-wrapper .ld-course-status .ld-course-status-content .ld-status {
	text-align: left;
}

body.ellde .learndash-wrapper .ld-course-status .ld-course-status-action .ld-text {
	text-align: left;
}

body.ellde .learndash-wrapper .ld-course-status .ld-course-status-price {
	color: var(--ellde-text);
	font-size: 28px;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.1;
	justify-content: flex-start;
	text-align: left;
	margin: 0;
}

body.ellde .learndash-wrapper .ld-course-status .ld-course-status-price .ld-text {
	color: var(--ellde-text-2);
	font-size: 14px;
	font-weight: 500;
}

body.ellde .learndash-wrapper .ld-course-status .ld-course-status-action {
	width: 100%;
	align-items: flex-start;
	color: var(--ellde-text-2);
	font-size: 15px;
	text-align: left;
}

body.ellde .learndash-wrapper .ld-course-status .ld-course-status-action .ld-button {
	width: 100%;
}

/* Etiquetas de estado (píldoras) */
body.ellde .learndash-wrapper .ld-status {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 12px;
	border-radius: 980px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: none;
	line-height: 1.4;
	border: 0;
}

body.ellde .learndash-wrapper .ld-status.ld-status-waiting,
body.ellde .learndash-wrapper .ld-status.ld-tertiary-background {
	background: var(--ellde-warn-soft) !important;
	color: #b25e00 !important;
}

body.ellde .learndash-wrapper .ld-status.ld-status-progress,
body.ellde .learndash-wrapper .ld-status.ld-status-in-progress {
	background: var(--ellde-accent-soft) !important;
	color: var(--ellde-accent-hover) !important;
}

body.ellde .learndash-wrapper .ld-status.ld-status-complete {
	background: var(--ellde-accent) !important;
	color: #fff !important;
}

/* ---------- Botones ---------- */
body.ellde .learndash-wrapper .ld-button,
body.ellde .learndash-wrapper a.ld-button,
body.ellde .learndash-wrapper .btn-join,
body.ellde .learndash-wrapper #btn-join,
body.ellde .learndash-wrapper input.btn-join,
body.ellde .learndash-wrapper .learndash_mark_complete_button,
body.ellde .learndash-wrapper #learndash_mark_complete_button,
body.ellde .learndash-wrapper #quiz_continue_link,
body.ellde .learndash-wrapper .wpProQuiz_content .wpProQuiz_button,
body.ellde .learndash-wrapper .wpProQuiz_content input[type="button"],
body.ellde .learndash-wrapper .wpProQuiz_content input[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 11px 22px;
	border: 0;
	border-radius: 980px !important;
	background: var(--ellde-accent) !important;
	color: #fff !important;
	font-family: var(--ellde-font);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: -0.01em;
	text-transform: none;
	text-decoration: none;
	box-shadow: none;
	cursor: pointer;
	transition: background-color 0.2s var(--ellde-ease), transform 0.2s var(--ellde-ease), box-shadow 0.2s var(--ellde-ease);
}

body.ellde .learndash-wrapper .ld-button:hover,
body.ellde .learndash-wrapper .btn-join:hover,
body.ellde .learndash-wrapper #btn-join:hover,
body.ellde .learndash-wrapper .learndash_mark_complete_button:hover,
body.ellde .learndash-wrapper #learndash_mark_complete_button:hover,
body.ellde .learndash-wrapper #quiz_continue_link:hover,
body.ellde .learndash-wrapper .wpProQuiz_content .wpProQuiz_button:hover,
body.ellde .learndash-wrapper .wpProQuiz_content input[type="button"]:hover,
body.ellde .learndash-wrapper .wpProQuiz_content input[type="submit"]:hover {
	background: var(--ellde-accent-hover) !important;
	box-shadow: 0 6px 18px rgba(27, 174, 112, 0.28);
	transform: translateY(-1px);
	opacity: 1;
}

body.ellde .learndash-wrapper .ld-button:active,
body.ellde .learndash-wrapper .btn-join:active,
body.ellde .learndash-wrapper .wpProQuiz_content .wpProQuiz_button:active {
	transform: scale(0.98);
}

body.ellde .learndash-wrapper .ld-button:focus-visible,
body.ellde .learndash-wrapper .btn-join:focus-visible,
body.ellde .learndash-wrapper .wpProQuiz_content .wpProQuiz_button:focus-visible,
body.ellde .learndash-wrapper a:focus-visible {
	outline: 3px solid rgba(27, 174, 112, 0.4);
	outline-offset: 2px;
}

/* Botón secundario (transparente) */
body.ellde .learndash-wrapper .ld-button.ld-button-transparent,
body.ellde .learndash-wrapper .ld-button.ld-button-reverse,
body.ellde .learndash-wrapper .wpProQuiz_content .wpProQuiz_button.wpProQuiz_QuestionButton[name="back"],
body.ellde .learndash-wrapper .wpProQuiz_content input[name="back"],
body.ellde .learndash-wrapper .wpProQuiz_content input[name="skip"] {
	background: var(--ellde-bg) !important;
	color: var(--ellde-text) !important;
}

body.ellde .learndash-wrapper .ld-button.ld-button-transparent:hover,
body.ellde .learndash-wrapper .ld-button.ld-button-reverse:hover,
body.ellde .learndash-wrapper .wpProQuiz_content input[name="back"]:hover,
body.ellde .learndash-wrapper .wpProQuiz_content input[name="skip"]:hover {
	background: #e8e8ed !important;
	box-shadow: none;
}

/* ---------- Pestañas ---------- */
body.ellde .learndash-wrapper .ld-tabs-navigation {
	display: inline-flex;
	gap: 4px;
	padding: 4px;
	margin-bottom: 24px;
	background: var(--ellde-bg);
	border: 0;
	border-radius: 12px;
}

body.ellde .learndash-wrapper .ld-tabs-navigation .ld-tab {
	padding: 8px 16px;
	border: 0;
	border-radius: 9px;
	color: var(--ellde-text-2);
	font-size: 14px;
	font-weight: 600;
	transition: background-color 0.2s var(--ellde-ease), color 0.2s var(--ellde-ease);
}

body.ellde .learndash-wrapper .ld-tabs-navigation .ld-tab::after {
	display: none;
}

body.ellde .learndash-wrapper .ld-tabs-navigation .ld-tab.ld-active {
	background: var(--ellde-surface);
	color: var(--ellde-text);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

body.ellde .learndash-wrapper .ld-tabs-content {
	font-size: 17px;
	line-height: 1.6;
	color: var(--ellde-text);
}

/* ---------- Encabezados de sección ---------- */
body.ellde .learndash-wrapper .ld-section-heading {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 40px 0 16px;
}

body.ellde .learndash-wrapper .ld-section-heading > h2,
body.ellde .learndash-wrapper .ld-section-heading h2 {
	font-size: 26px;
	font-weight: 700;
	letter-spacing: -0.025em;
	margin: 0;
}

body.ellde .learndash-wrapper .ld-lesson-section-heading {
	color: var(--ellde-text-2);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 24px 4px 8px;
	border: 0;
}

/* Botón expandir todo */
body.ellde .learndash-wrapper .ld-expand-button {
	background: var(--ellde-bg) !important;
	color: var(--ellde-text) !important;
	border-radius: 980px !important;
	min-height: 36px;
	padding: 8px 16px;
	font-size: 13px;
	font-weight: 600;
}

body.ellde .learndash-wrapper .ld-expand-button .ld-icon {
	background: transparent !important;
	color: var(--ellde-text-2) !important;
}

/* ---------- Progreso ---------- */
body.ellde .learndash-wrapper .ld-progress {
	margin: 0 0 24px;
}

body.ellde .learndash-wrapper .ld-progress .ld-progress-heading {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 10px;
}

body.ellde .learndash-wrapper .ld-progress .ld-progress-label {
	color: var(--ellde-text-2);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

body.ellde .learndash-wrapper .ld-progress .ld-progress-stats {
	color: var(--ellde-text-2);
	font-size: 13px;
}

body.ellde .learndash-wrapper .ld-progress .ld-progress-percentage {
	color: var(--ellde-text);
	font-weight: 700;
}

body.ellde .learndash-wrapper .ld-progress .ld-progress-bar {
	height: 8px;
	background: #e8e8ed;
	border-radius: 980px;
	overflow: hidden;
}

body.ellde .learndash-wrapper .ld-progress .ld-progress-bar .ld-progress-bar-percentage {
	height: 100%;
	border-radius: 980px;
	background: linear-gradient(90deg, #22c37d, var(--ellde-accent)) !important;
	transition: width 0.6s var(--ellde-ease);
}

/* ---------- Listado de lecciones / temas ---------- */
body.ellde .learndash-wrapper .ld-item-list .ld-item-list-items {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

body.ellde .learndash-wrapper .ld-item-list .ld-item-list-item {
	background: var(--ellde-surface);
	border: 1px solid var(--ellde-line);
	border-radius: var(--ellde-radius);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
	margin: 0;
	overflow: hidden;
	transition: box-shadow 0.25s var(--ellde-ease), transform 0.25s var(--ellde-ease), border-color 0.25s var(--ellde-ease);
}

body.ellde .learndash-wrapper .ld-item-list .ld-item-list-item:hover {
	border-color: rgba(0, 0, 0, 0.12);
	box-shadow: var(--ellde-shadow-hover);
	transform: translateY(-1px);
}

body.ellde .learndash-wrapper .ld-item-list .ld-item-list-item .ld-item-list-item-preview {
	min-height: 64px;
	padding: 14px 18px;
}

body.ellde .learndash-wrapper .ld-item-list .ld-item-list-item .ld-item-name {
	color: var(--ellde-text);
	font-size: 16px;
	font-weight: 600;
	letter-spacing: -0.01em;
	gap: 14px;
}

body.ellde .learndash-wrapper .ld-item-list .ld-item-list-item .ld-item-name:hover {
	color: var(--ellde-accent);
}

body.ellde .learndash-wrapper .ld-item-list .ld-item-list-item .ld-item-components,
body.ellde .learndash-wrapper .ld-item-list .ld-item-list-item .ld-item-details {
	color: var(--ellde-text-3);
	font-size: 13px;
	font-weight: 500;
}

body.ellde .learndash-wrapper .ld-item-list .ld-item-list-item .ld-item-list-item-expanded {
	background: #fbfbfd;
	border-top: 1px solid var(--ellde-line);
}

/* Íconos de estado (círculos) */
body.ellde .learndash-wrapper .ld-status-icon {
	width: 26px;
	height: 26px;
	flex: 0 0 26px;
	border-radius: 50%;
}

body.ellde .learndash-wrapper .ld-status-icon.ld-status-incomplete {
	border: 2px solid #d2d2d7;
	background: transparent;
}

body.ellde .learndash-wrapper .ld-status-icon.ld-status-complete {
	background: var(--ellde-accent) !important;
	color: #fff;
	box-shadow: 0 2px 8px rgba(27, 174, 112, 0.35);
}

body.ellde .learndash-wrapper .ld-status-icon.ld-status-in-progress {
	border: 2px solid var(--ellde-accent);
	background: transparent;
}

/* Tabla de temas / cuestionarios dentro de una lección */
body.ellde .learndash-wrapper .ld-table-list {
	border: 1px solid var(--ellde-line);
	border-radius: var(--ellde-radius);
	overflow: hidden;
	background: var(--ellde-surface);
	box-shadow: none;
	margin: 12px 0;
}

body.ellde .learndash-wrapper .ld-table-list .ld-table-list-header {
	background: var(--ellde-bg) !important;
	color: var(--ellde-text-2);
	border-radius: 0;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 12px 18px;
}

body.ellde .learndash-wrapper .ld-table-list .ld-table-list-item {
	border-top: 1px solid var(--ellde-line);
}

body.ellde .learndash-wrapper .ld-table-list .ld-table-list-item:first-child {
	border-top: 0;
}

body.ellde .learndash-wrapper .ld-table-list .ld-table-list-item-preview {
	padding: 12px 18px;
	color: var(--ellde-text);
	font-weight: 500;
	transition: background-color 0.2s var(--ellde-ease);
}

body.ellde .learndash-wrapper .ld-table-list .ld-table-list-item-preview:hover {
	background: #fafafa;
	color: var(--ellde-accent);
}

/* ---------- Avisos ---------- */
body.ellde .learndash-wrapper .ld-alert {
	border: 0;
	border-radius: var(--ellde-radius);
	background: var(--ellde-bg);
	padding: 16px 20px;
	box-shadow: none;
	color: var(--ellde-text);
}

body.ellde .learndash-wrapper .ld-alert .ld-alert-icon {
	border-radius: 50%;
}

body.ellde .learndash-wrapper .ld-alert-success {
	background: var(--ellde-accent-soft);
}

body.ellde .learndash-wrapper .ld-alert-warning {
	background: var(--ellde-warn-soft);
}

body.ellde .learndash-wrapper .ld-alert-warning .ld-alert-icon {
	background: var(--ellde-warn) !important;
}

/* ---------- Navegación entre pasos ---------- */
body.ellde .learndash-wrapper .ld-content-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 40px;
	padding-top: 24px;
	border-top: 1px solid var(--ellde-line);
}

body.ellde .learndash-wrapper .ld-content-actions .ld-content-action {
	gap: 8px;
}

body.ellde .learndash-wrapper .ld-content-actions .ld-course-step-back {
	color: var(--ellde-text-2);
	font-size: 14px;
	font-weight: 600;
}

body.ellde .learndash-wrapper .ld-breadcrumbs {
	background: transparent;
	padding: 0;
	margin-bottom: 20px;
	color: var(--ellde-text-3);
	font-size: 13px;
}

/* ---------- Modo concentración ---------- */
body.ellde .learndash-wrapper .ld-focus .ld-focus-header {
	background: rgba(255, 255, 255, 0.78);
	-webkit-backdrop-filter: saturate(180%) blur(20px);
	backdrop-filter: saturate(180%) blur(20px);
	border-bottom: 1px solid var(--ellde-line);
	box-shadow: none;
}

body.ellde .learndash-wrapper .ld-focus .ld-focus-header .ld-progress .ld-progress-bar {
	height: 6px;
}

body.ellde .learndash-wrapper .ld-focus .ld-focus-sidebar {
	background: #fbfbfd;
	border-right: 1px solid var(--ellde-line);
	box-shadow: none;
}

body.ellde .learndash-wrapper .ld-focus .ld-focus-sidebar .ld-course-navigation-heading,
body.ellde .learndash-wrapper .ld-focus .ld-focus-sidebar .ld-focus-sidebar-trigger {
	background: var(--ellde-surface) !important;
	border-bottom: 1px solid var(--ellde-line);
}

body.ellde .learndash-wrapper .ld-focus .ld-focus-sidebar .ld-course-navigation-heading h3 a {
	color: var(--ellde-text) !important;
	font-weight: 700;
	letter-spacing: -0.02em;
}

body.ellde .learndash-wrapper .ld-focus .ld-focus-sidebar .ld-lesson-item {
	border-bottom: 1px solid var(--ellde-line);
}

body.ellde .learndash-wrapper .ld-focus .ld-focus-sidebar .ld-lesson-item.ld-is-current-lesson,
body.ellde .learndash-wrapper .ld-focus .ld-focus-sidebar .ld-table-list-item-preview.ld-is-current-item {
	background: var(--ellde-accent-soft) !important;
}

body.ellde .learndash-wrapper .ld-focus .ld-focus-sidebar .ld-lesson-item .ld-lesson-title {
	color: var(--ellde-text);
	font-size: 14px;
	font-weight: 600;
}

body.ellde .learndash-wrapper .ld-focus .ld-focus-main {
	background: var(--ellde-surface);
}

body.ellde .learndash-wrapper .ld-focus .ld-focus-main .ld-focus-content {
	max-width: 1200px;
	padding-top: 48px;
}

body.ellde .learndash-wrapper .ld-focus .ld-focus-main .ld-focus-content h1 {
	font-size: clamp(30px, 4vw, 44px);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.03em;
}

body.ellde .learndash-wrapper .ld-focus .ld-user-menu .ld-user-menu-items {
	border-radius: var(--ellde-radius);
	box-shadow: var(--ellde-shadow-hover);
	overflow: hidden;
}

/* ---------- Campos y paginación ---------- */
body.ellde .learndash-wrapper input[type="text"],
body.ellde .learndash-wrapper input[type="email"],
body.ellde .learndash-wrapper input[type="password"],
body.ellde .learndash-wrapper input[type="number"],
body.ellde .learndash-wrapper textarea,
body.ellde .learndash-wrapper select {
	min-height: 44px;
	padding: 10px 14px;
	background: var(--ellde-surface);
	border: 1px solid #d2d2d7;
	border-radius: var(--ellde-radius-sm);
	color: var(--ellde-text);
	font-size: 16px;
	box-shadow: none;
	transition: border-color 0.2s var(--ellde-ease), box-shadow 0.2s var(--ellde-ease);
}

body.ellde .learndash-wrapper input:focus,
body.ellde .learndash-wrapper textarea:focus,
body.ellde .learndash-wrapper select:focus {
	border-color: var(--ellde-accent);
	box-shadow: 0 0 0 4px rgba(27, 174, 112, 0.15);
	outline: none;
}

body.ellde .learndash-wrapper .ld-pagination .ld-pages {
	background: var(--ellde-bg);
	border-radius: 980px;
	padding: 6px 14px;
	color: var(--ellde-text-2);
	font-size: 13px;
}

/* ---------- Cuestionarios (WP ProQuiz) ---------- */
body.ellde .learndash-wrapper .wpProQuiz_content {
	color: var(--ellde-text);
	font-size: 16px;
}

body.ellde .learndash-wrapper .wpProQuiz_content .wpProQuiz_listItem {
	background: var(--ellde-surface);
	border: 1px solid var(--ellde-line);
	border-radius: var(--ellde-radius-lg);
	box-shadow: var(--ellde-shadow);
	padding: 28px;
	margin-bottom: 20px;
}

body.ellde .learndash-wrapper .wpProQuiz_content .wpProQuiz_header {
	color: var(--ellde-text-2);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	margin-bottom: 12px;
}

body.ellde .learndash-wrapper .wpProQuiz_content .wpProQuiz_question_text {
	color: var(--ellde-text);
	font-size: 20px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: -0.015em;
	margin-bottom: 20px;
}

body.ellde .learndash-wrapper .wpProQuiz_content .wpProQuiz_questionList {
	background: transparent;
	border: 0;
	padding: 0;
	margin: 0 0 20px;
}

body.ellde .learndash-wrapper .wpProQuiz_content .wpProQuiz_questionListItem {
	margin-bottom: 10px;
	padding: 0;
}

body.ellde .learndash-wrapper .wpProQuiz_content .wpProQuiz_questionListItem label {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	min-height: 52px;
	padding: 14px 18px;
	background: var(--ellde-surface);
	border: 1.5px solid #d2d2d7;
	border-radius: var(--ellde-radius);
	color: var(--ellde-text);
	font-size: 16px;
	cursor: pointer;
	transition: border-color 0.2s var(--ellde-ease), background-color 0.2s var(--ellde-ease), box-shadow 0.2s var(--ellde-ease);
}

body.ellde .learndash-wrapper .wpProQuiz_content .wpProQuiz_questionListItem label:hover {
	border-color: #a1a1a6;
	background: #fafafa;
}

body.ellde .learndash-wrapper .wpProQuiz_content .wpProQuiz_questionListItem label.is-selected,
body.ellde .learndash-wrapper .wpProQuiz_content .wpProQuiz_questionListItem label:has(input:checked) {
	border-color: var(--ellde-accent);
	background: var(--ellde-accent-soft);
	box-shadow: 0 0 0 3px rgba(27, 174, 112, 0.12);
}

body.ellde .learndash-wrapper .wpProQuiz_content .wpProQuiz_questionListItem input[type="radio"],
body.ellde .learndash-wrapper .wpProQuiz_content .wpProQuiz_questionListItem input[type="checkbox"] {
	accent-color: var(--ellde-accent);
	width: 18px;
	height: 18px;
	margin: 0;
	flex: 0 0 18px;
}

body.ellde .learndash-wrapper .wpProQuiz_content .wpProQuiz_questionListItem.wpProQuiz_answerCorrect label,
body.ellde .learndash-wrapper .wpProQuiz_content .wpProQuiz_answerCorrect label {
	border-color: var(--ellde-accent);
	background: var(--ellde-accent-soft);
}

body.ellde .learndash-wrapper .wpProQuiz_content .wpProQuiz_questionListItem.wpProQuiz_answerIncorrect label,
body.ellde .learndash-wrapper .wpProQuiz_content .wpProQuiz_answerIncorrect label {
	border-color: var(--ellde-danger);
	background: var(--ellde-danger-soft);
}

body.ellde .learndash-wrapper .wpProQuiz_content .wpProQuiz_response {
	background: var(--ellde-bg);
	border: 0;
	border-radius: var(--ellde-radius);
	padding: 16px 20px;
	margin: 16px 0;
}

body.ellde .learndash-wrapper .wpProQuiz_content .wpProQuiz_correct {
	color: var(--ellde-accent-hover);
	font-weight: 600;
}

body.ellde .learndash-wrapper .wpProQuiz_content .wpProQuiz_incorrect {
	color: var(--ellde-danger);
	font-weight: 600;
}

body.ellde .learndash-wrapper .wpProQuiz_content .wpProQuiz_tipp > div,
body.ellde .learndash-wrapper .wpProQuiz_content .wpProQuiz_TipButton {
	border-radius: var(--ellde-radius);
}

body.ellde .learndash-wrapper .wpProQuiz_content .wpProQuiz_reviewDiv {
	background: var(--ellde-bg);
	border: 0;
	border-radius: var(--ellde-radius);
	padding: 16px;
}

body.ellde .learndash-wrapper .wpProQuiz_content .wpProQuiz_reviewQuestion li {
	border-radius: 8px;
	border: 0;
	background: #e8e8ed;
	color: var(--ellde-text);
}

body.ellde .learndash-wrapper .wpProQuiz_content .wpProQuiz_reviewQuestion li.wpProQuiz_reviewQuestionTarget {
	box-shadow: 0 0 0 2px var(--ellde-text);
}

body.ellde .learndash-wrapper .wpProQuiz_content .wpProQuiz_reviewQuestion li.wpProQuiz_reviewQuestionSolved {
	background: var(--ellde-accent);
	color: #fff;
}

body.ellde .learndash-wrapper .wpProQuiz_content .wpProQuiz_reviewQuestion li.wpProQuiz_reviewQuestionReview {
	background: var(--ellde-warn);
	color: #fff;
}

body.ellde .learndash-wrapper .wpProQuiz_content .wpProQuiz_time_limit .time,
body.ellde .learndash-wrapper .wpProQuiz_content .wpProQuiz_points {
	color: var(--ellde-text-2);
	font-size: 14px;
}

body.ellde .learndash-wrapper .wpProQuiz_content .wpProQuiz_time_limit .wpProQuiz_progress,
body.ellde .learndash-wrapper .wpProQuiz_content .wpProQuiz_progress {
	height: 6px;
	border-radius: 980px;
	background: var(--ellde-accent) !important;
}

body.ellde .learndash-wrapper .wpProQuiz_content .wpProQuiz_resultTable {
	border-radius: var(--ellde-radius);
	overflow: hidden;
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid var(--ellde-line);
}

body.ellde .learndash-wrapper .wpProQuiz_content .wpProQuiz_resultTable td {
	padding: 12px 16px;
	border: 0;
	border-top: 1px solid var(--ellde-line);
}

body.ellde .learndash-wrapper .wpProQuiz_content .wpProQuiz_resultsList > li {
	background: var(--ellde-bg);
	border-radius: var(--ellde-radius);
	padding: 16px 20px;
}

body.ellde .learndash-wrapper .wpProQuiz_content .wpProQuiz_certificate a {
	color: var(--ellde-accent);
	font-weight: 600;
}

/* ---------- Móvil ---------- */
@media (max-width: 640px) {
	body.ellde .learndash-wrapper .ld-course-status .ld-course-status-segment {
		flex-basis: 100%;
		min-height: 0;
	}

	body.ellde .learndash-wrapper .ld-content-actions {
		flex-direction: column;
		align-items: stretch;
	}

	body.ellde .learndash-wrapper .ld-content-actions .ld-content-action {
		justify-content: center;
	}

	body.ellde .learndash-wrapper .wpProQuiz_content .wpProQuiz_listItem {
		padding: 20px;
	}

	body.ellde .learndash-wrapper .ld-tabs-navigation {
		display: flex;
		overflow-x: auto;
	}
}

/* ---------- Accesibilidad: menos movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
	body.ellde .learndash-wrapper * {
		transition: none !important;
		transform: none !important;
	}
}

/* ==========================================================
   Ajustes del modo concentración (lecciones, temas, cuestionarios)
   ========================================================== */

/* Contenido más ancho para aprovechar la pantalla */
body.ellde .learndash-wrapper .ld-focus .ld-focus-main .ld-focus-content {
	max-width: 1200px;
	width: 100%;
	padding: 48px 56px 64px;
	box-sizing: border-box;
}

@media (max-width: 960px) {
	body.ellde .learndash-wrapper .ld-focus .ld-focus-main .ld-focus-content {
		padding: 32px 24px 48px;
	}
}

/* Cabecera: botón "Siguiente lección" centrado verticalmente */
body.ellde .learndash-wrapper .ld-focus .ld-focus-header .ld-content-actions {
	margin: 0;
	padding: 0 16px;
	border-top: 0;
	align-self: stretch;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
}

body.ellde .learndash-wrapper .ld-focus .ld-focus-header .ld-content-action {
	display: flex;
	align-items: center;
	justify-content: center;
	align-self: stretch;
	border-right: 0;
}

body.ellde .learndash-wrapper .ld-focus .ld-focus-header .ld-content-action a,
body.ellde .learndash-wrapper .ld-focus .ld-focus-header .ld-content-action .ld-button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 38px;
	padding: 8px 18px;
	margin: 0;
	border-radius: 980px !important;
	background: var(--ellde-bg) !important;
	color: var(--ellde-text) !important;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	box-shadow: none;
	transform: none;
}

body.ellde .learndash-wrapper .ld-focus .ld-focus-header .ld-content-action a:hover,
body.ellde .learndash-wrapper .ld-focus .ld-focus-header .ld-content-action .ld-button:hover {
	background: #e8e8ed !important;
	box-shadow: none;
}

body.ellde .learndash-wrapper .ld-focus .ld-focus-header .ld-content-action .ld-icon {
	background: transparent !important;
	color: inherit !important;
	line-height: 1;
}

/* Migas de pan: barra gris con texto centrado verticalmente */
body.ellde .learndash-wrapper .ld-topic-status,
body.ellde .learndash-wrapper .ld-lesson-status,
body.ellde .learndash-wrapper .ld-quiz-status {
	background: transparent;
	padding: 0;
	margin-bottom: 28px;
}

body.ellde .learndash-wrapper .ld-breadcrumbs {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 48px;
	margin: 0;
	padding: 8px 8px 8px 18px;
	background: var(--ellde-bg);
	border-radius: var(--ellde-radius);
	box-sizing: border-box;
}

body.ellde .learndash-wrapper .ld-breadcrumbs .ld-breadcrumbs-segments {
	display: flex;
	align-items: center;
	padding: 0;
	color: var(--ellde-text-2);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
}

body.ellde .learndash-wrapper .ld-breadcrumbs .ld-breadcrumbs-segments a {
	color: var(--ellde-text-2);
}

body.ellde .learndash-wrapper .ld-breadcrumbs .ld-breadcrumbs-segments a:hover {
	color: var(--ellde-accent);
}

body.ellde .learndash-wrapper .ld-breadcrumbs .ld-status {
	flex: 0 0 auto;
	margin: 0;
}

/* Barra lateral: título y círculo alineados */
body.ellde .learndash-wrapper .ld-course-navigation .ld-lesson-item-preview {
	padding: 12px 0;
}

body.ellde .learndash-wrapper .ld-course-navigation .ld-lesson-item-preview .ld-lesson-item-preview-heading {
	align-items: center;
	padding: 0 16px;
}

body.ellde .learndash-wrapper .ld-course-navigation .ld-lesson-item-preview .ld-lesson-title {
	align-items: center;
	gap: 6px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--ellde-text);
}

body.ellde .learndash-wrapper .ld-course-navigation .ld-status-icon {
	width: 22px;
	height: 22px;
	flex: 0 0 22px;
	margin: 0 12px 0 0;
	align-self: center;
}

body.ellde .learndash-wrapper .ld-course-navigation .ld-lesson-item.ld-is-current-lesson .ld-lesson-title {
	color: var(--ellde-accent-hover);
	font-weight: 700;
}

body.ellde .learndash-wrapper .ld-course-navigation .ld-lesson-item.ld-is-current-lesson .ld-status-incomplete,
body.ellde .learndash-wrapper .ld-course-navigation .ld-lesson-item.ld-is-current-lesson .ld-lesson-title .ld-status-incomplete {
	border-color: var(--ellde-accent);
}

/* Barra lateral: "6 Temas | 1 Cuestionario" discreto y alineado con el título */
body.ellde .learndash-wrapper .ld-course-navigation .ld-expand-button,
body.ellde .learndash-wrapper .ld-course-navigation .ld-expand-button.ld-button-alternate {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	width: auto;
	min-height: 0;
	margin: 6px 0 0 50px;
	padding: 4px 10px;
	background: transparent !important;
	color: var(--ellde-text-2) !important;
	border-radius: 980px !important;
	font-size: 12px;
	font-weight: 600;
	transform: none;
	box-shadow: none;
}

body.ellde .learndash-wrapper .ld-course-navigation .ld-expand-button:hover {
	background: var(--ellde-bg) !important;
	color: var(--ellde-text) !important;
}

body.ellde .learndash-wrapper .ld-course-navigation .ld-expand-button .ld-icon {
	width: 16px;
	height: 16px;
	flex: 0 0 16px;
	background: transparent !important;
	color: inherit !important;
}

body.ellde .learndash-wrapper .ld-course-navigation .ld-expand-button .ld-text {
	display: inline-flex;
	align-items: center;
	padding-left: 0;
}
