/* Aula propia de Eurekers. Reutiliza los tokens de tema de la web. */
.eau-body { margin: 0; background: var(--eur-design-page-bg, #f7fafb); color: var(--eur-design-text, #0e2a3a); }
.eau-body .eur-public-header { position: sticky; top: 0; z-index: 50; }

.eau-shell { display: grid; grid-template-columns: 360px minmax(0, 1fr); align-items: start; min-height: calc(100vh - 72px); }

.eau-index { position: sticky; top: 72px; height: calc(100vh - 72px); overflow-y: auto; background: var(--eur-design-surface, #fff); border-right: 1px solid var(--eur-design-border, #d7e4ea); }
.eau-index-head { padding: 14px 16px 18px 20px; border-bottom: 1px solid var(--eur-design-border, #d7e4ea); }
.eau-index-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; margin-bottom: 10px; }
.eau-back { display: inline-flex; align-items: center; gap: 8px; color: var(--eur-design-link, #007ea0); font-size: 14px; font-weight: 600; text-decoration: none; }
.eau-back:hover { text-decoration: underline; }
.eau-back-arrow { width: 7px; height: 7px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.eau-index-close { display: none; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px; padding: 0; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--eur-design-copy, #405562); cursor: pointer; }
.eau-body .eau-index-close:hover, .eau-body .eau-index-close:focus { border-color: var(--eur-design-border, #d7e4ea); background: var(--eur-design-soft-bg, #eef7fa); color: var(--eur-design-text, #0e2a3a); }
.eau-collapse-icon { position: relative; width: 14px; height: 14px; }
.eau-collapse-icon::before, .eau-collapse-icon::after { content: ""; position: absolute; top: 6px; left: 0; width: 14px; height: 2px; border-radius: 1px; background: currentColor; transform: rotate(45deg); }
.eau-collapse-icon::after { transform: rotate(-45deg); }
.eau-course-title { margin: 0 0 14px; color: var(--eur-design-text, #0e2a3a); font-size: 19px; font-weight: 700; line-height: 1.25; }
.eau-overall { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding-right: 4px; }
.eau-overall-label { margin: 0; color: var(--eur-design-copy, #405562); font-size: 13px; font-weight: 600; white-space: nowrap; }
.eau-bar { height: 6px; overflow: hidden; border-radius: 3px; background: var(--eur-design-soft-bg, #eef7fa); }
.eau-bar span { display: block; height: 100%; border-radius: 3px; background: var(--eur-design-brand, #00add9); }

.eau-module { border-bottom: 1px solid var(--eur-design-border, #d7e4ea); }
.eau-module > summary { display: grid; grid-template-columns: 18px minmax(0, 1fr) 16px; align-items: center; gap: 12px; min-height: 64px; padding: 12px 20px 12px 20px; cursor: pointer; list-style: none; }
.eau-module > summary::-webkit-details-marker { display: none; }
.eau-module > summary:hover { background: var(--eur-design-soft-bg, #eef7fa); }
.eau-module-number { color: var(--eur-design-subtle, #617784); font-size: 15px; font-weight: 700; }
.eau-module-text { display: grid; gap: 2px; min-width: 0; }
.eau-module-title { color: var(--eur-design-text, #0e2a3a); font-size: 15px; font-weight: 650; line-height: 1.3; }
.eau-module-percent { color: var(--eur-design-subtle, #617784); font-size: 13px; }
.eau-chevron { width: 8px; height: 8px; border-right: 2px solid var(--eur-design-subtle, #617784); border-bottom: 2px solid var(--eur-design-subtle, #617784); transform: rotate(-45deg); transition: transform .15s ease; }
.eau-module[open] .eau-chevron { transform: rotate(45deg); }
.eau-module ul { margin: 0; padding: 0; list-style: none; }
.eau-module li a { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 44px; padding: 8px 18px 8px 17px; border-left: 3px solid transparent; box-sizing: border-box; color: var(--eur-design-copy, #405562); font-size: 14px; line-height: 1.35; text-decoration: none; }
.eau-module li.is-nested a { padding-left: 47px; }
.eau-module li a:hover { background: var(--eur-design-soft-bg, #eef7fa); color: var(--eur-design-text, #0e2a3a); }
.eau-module li.is-current a { border-left-color: var(--eur-design-brand, #00add9); background: var(--eur-design-soft-bg, #eef7fa); color: var(--eur-design-text, #0e2a3a); font-weight: 650; }
.eau-row-mark { display: block; width: 18px; height: 18px; border: 1.5px solid var(--eur-design-border-strong, #adcad5); border-radius: 50%; box-sizing: border-box; background: transparent center / 10px 10px no-repeat; }
.eau-module li.is-quiz .eau-row-mark { border-radius: 4px; }
.eau-module li.is-done .eau-row-mark { border-color: var(--eur-design-success, #248654); background-color: var(--eur-design-success, #248654); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1.8 5.3 4 7.5 8.2 2.9' fill='none' stroke='%23fff' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

.eau-module li.is-locked a { color: var(--eur-design-subtle, #617784); cursor: default; }
.eau-module li.is-locked:not(.is-current) a:hover { background: transparent; color: var(--eur-design-copy, #405562); }
.eau-row-lock { width: 14px; height: 14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Crect x='2.5' y='6.2' width='9' height='6.3' rx='1.4' fill='none' stroke='%23839aa6' stroke-width='1.4'/%3E%3Cpath d='M4.6 6.2V4.6a2.4 2.4 0 0 1 4.8 0v1.6' fill='none' stroke='%23839aa6' stroke-width='1.4'/%3E%3C/svg%3E") center / 14px 14px no-repeat; }
html[data-eurekers-theme=dark] .eau-row-lock { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Crect x='2.5' y='6.2' width='9' height='6.3' rx='1.4' fill='none' stroke='%237f97a3' stroke-width='1.4'/%3E%3Cpath d='M4.6 6.2V4.6a2.4 2.4 0 0 1 4.8 0v1.6' fill='none' stroke='%237f97a3' stroke-width='1.4'/%3E%3C/svg%3E"); }

.eau-main { min-width: 0; padding: 28px 40px 64px; }
.eau-toolbar { display: none; align-items: center; gap: 14px; max-width: 960px; margin: 0 auto 14px; }
.eau-toolbar-course { min-width: 0; overflow: hidden; color: var(--eur-design-subtle, #617784); font-size: 14px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.eau-index-toggle { display: inline-flex; align-items: center; flex: none; gap: 8px; min-height: 40px; padding: 6px 12px; border: 1px solid var(--eur-design-border, #d7e4ea); border-radius: 8px; background: var(--eur-design-surface, #fff); color: var(--eur-design-text, #0e2a3a); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.eau-body .eau-index-toggle:hover, .eau-body .eau-index-toggle:focus { border-color: var(--eur-design-border-strong, #adcad5); background: var(--eur-design-surface, #fff); color: var(--eur-design-text, #0e2a3a); }
.eau-index-icon { width: 16px; height: 12px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; position: relative; box-sizing: border-box; }
.eau-index-icon::after { content: ""; position: absolute; left: 0; right: 0; top: 3px; border-top: 2px solid currentColor; }

.eau-article { max-width: 960px; margin: 0 auto; }
.eau-step-head { margin-bottom: 20px; }
.eau-step-parent { margin: 0 0 4px; color: var(--eur-design-subtle, #617784); font-size: 14px; }
.eau-step-head h1 { margin: 0; color: var(--eur-design-text, #0e2a3a); font-size: 30px; line-height: 1.2; }
.eau-video { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 8px; background: #000; }
.eau-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* Marca con los datos del alumno sobre el vídeo, como en LearnDash: tenue, cambia de sitio y no captura clics. */
.eau-watermark { position: absolute; top: 10%; left: 2%; z-index: 2; padding: 10px; color: #bfc2cd; opacity: .1; font-weight: 700; font-size: clamp(9px, 2.4vw, 24px); line-height: 1.3; white-space: nowrap; pointer-events: none; user-select: none; }
.eau-content { margin-top: 22px; color: var(--eur-design-copy, #405562); font-size: 17px; line-height: 1.65; }
.eau-content img { max-width: 100%; height: auto; }

.eau-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 26px; }
.eau-actions form { margin: 0; }
.eau-button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 20px; border: 1px solid var(--eur-design-action, #00add9); border-radius: 8px; background: var(--eur-design-action, #00add9); color: #fff; font: inherit; font-size: 15px; font-weight: 650; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer; }
.eau-button:hover { border-color: var(--eur-design-action-hover, #009cc4); background: var(--eur-design-action-hover, #009cc4); color: #fff; }
.eau-button--secondary { border-color: var(--eur-design-border-strong, #adcad5); background: transparent; color: var(--eur-design-text, #0e2a3a); }
.eau-button--secondary:hover { border-color: var(--eur-design-brand, #00add9); background: var(--eur-design-soft-bg, #eef7fa); color: var(--eur-design-text, #0e2a3a); }
.eau-button[disabled] { opacity: .65; cursor: progress; }
.eau-body a:focus-visible, .eau-body button:focus-visible, .eau-body summary:focus-visible, .eau-body input:focus-visible, .eau-body textarea:focus-visible { outline: 3px solid var(--eur-design-link, #007ea0); outline-offset: 2px; }

.eau-notice { margin: 0 0 18px; padding: 16px 18px; border-radius: 8px; background: var(--eur-design-soft-bg, #eef7fa); color: var(--eur-design-text, #0e2a3a); }
.eau-notice p { margin: 0 0 12px; }
.eau-contract-date { display: block; margin-top: 4px; color: var(--eur-design-text, #0e2a3a); }
.eau-contract-signed { margin: 0; padding: 18px 20px; border-radius: 8px; background: var(--eur-design-soft-bg, #eef7fa); color: var(--eur-design-success, #248654); font-size: 20px; font-weight: 700; }
.eau-contract-status:empty { display: none; }
.eau-contract-status { color: var(--eur-design-text, #0e2a3a); font-weight: 600; }
.eau-certificate { margin-top: 18px; font-size: 15px; font-weight: 600; }
.eau-certificate a { color: var(--eur-design-link, #007ea0); }

.eau-questions { margin: 0; padding: 0; list-style: none; counter-reset: eau-q; }
.eau-questions > li { position: relative; margin-bottom: 16px; padding: 20px 22px 20px 58px; border: 1px solid var(--eur-design-border, #d7e4ea); border-radius: 8px; background: var(--eur-design-surface, #fff); counter-increment: eau-q; }
.eau-questions > li::before { content: counter(eau-q); position: absolute; left: 20px; top: 20px; color: var(--eur-design-subtle, #617784); font-size: 16px; font-weight: 700; }
.eau-quiz.is-one-by-one .eau-questions > li { padding-left: 22px; }
.eau-quiz.is-one-by-one .eau-questions > li::before { content: none; }
.eau-quiz [data-eau-question][hidden], .eau-body .eau-button[hidden] { display: none; }
.eau-question-body h1, .eau-question-body h2:not([style*="color"]), .eau-question-body h3, .eau-question-body h4, .eau-question-body h5, .eau-question-body h6, .eau-question-body strong { color: inherit; }
.eau-question-body:focus { outline: none; }
.eau-button[disabled]:not([data-eau-sending]) { opacity: .5; cursor: not-allowed; }
.eau-quiz fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.eau-question-body { padding: 0; color: var(--eur-design-text, #0e2a3a); font-size: 16px; font-weight: 600; line-height: 1.45; }
.eau-question-body p { margin: 0 0 10px; }
.eau-question-body img { max-width: 100%; height: auto; }
.eau-option { display: grid; grid-template-columns: 20px minmax(0, 1fr); align-items: start; gap: 10px; margin-top: 8px; padding: 11px 12px; border: 1px solid var(--eur-design-border, #d7e4ea); border-radius: 8px; color: var(--eur-design-copy, #405562); font-size: 15px; line-height: 1.4; cursor: pointer; }
.eau-option:hover { border-color: var(--eur-design-border-strong, #adcad5); background: var(--eur-design-soft-bg, #eef7fa); }
.eau-option:has(input:checked) { border-color: var(--eur-design-brand, #00add9); background: var(--eur-design-soft-bg, #eef7fa); color: var(--eur-design-text, #0e2a3a); }
.eau-option input { margin: 2px 0 0; accent-color: var(--eur-design-brand, #00add9); }
.eau-cloze { color: var(--eur-design-copy, #405562); line-height: 2.2; }
.eau-gap { width: 130px; max-width: 100%; padding: 4px 8px; border: 1px solid var(--eur-design-border-strong, #adcad5); border-radius: 6px; background: var(--eur-design-surface, #fff); color: var(--eur-design-text, #0e2a3a); font: inherit; }
.eau-quiz textarea { box-sizing: border-box; width: 100%; padding: 10px 12px; border: 1px solid var(--eur-design-border-strong, #adcad5); border-radius: 8px; background: var(--eur-design-surface, #fff); color: var(--eur-design-text, #0e2a3a); font: inherit; }

.eau-result { margin-bottom: 18px; padding: 22px 24px; border-radius: 8px; background: var(--eur-design-soft-bg, #eef7fa); }
.eau-result h2 { margin: 0 0 6px; color: var(--eur-design-text, #0e2a3a); font-size: 22px; }
.eau-result p { margin: 0 0 6px; color: var(--eur-design-copy, #405562); }
.eau-result .eau-result-points { margin: 16px 0 4px; padding: 14px 16px; border-radius: 8px; background: var(--eur-design-surface, #fff); color: var(--eur-design-text, #0e2a3a); font-weight: 700; text-align: center; }
.eau-result .eau-result-note { margin-top: 10px; color: var(--eur-design-text, #0e2a3a); font-weight: 600; }
.eau-actions-end { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; }

@media (max-width: 960px) {
	.eau-shell { display: block; }
	.eau-index { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--eur-design-border, #d7e4ea); }
	.eau-shell:not(.is-index-open) .eau-index { display: none; }
	.eau-toolbar { display: flex; }
	.eau-index-close { display: inline-flex; }
	.eau-shell.is-index-open .eau-toolbar { display: none; }
	.eau-main { padding: 14px 16px 48px; }
	.eau-step-head h1 { font-size: 24px; }
	.eau-questions > li { padding: 16px 16px 16px 44px; }
	.eau-questions > li::before { left: 16px; top: 16px; }
}
@media (max-width: 520px) {
	.eau-actions { flex-direction: column-reverse; align-items: stretch; }
	.eau-actions > span:empty { display: none; }
	.eau-actions .eau-button, .eau-actions form, .eau-actions-end { width: 100%; }
	.eau-actions-end { flex-direction: column-reverse; }
	.eau-actions form .eau-button { width: 100%; }
}

/* Visitante que aprueba el examen final de Psicología: el mismo panel que pinta eurekers_custom en LearnDash. */
.eau-body .eurekers-psychology-completion { margin: 28px 0 0; padding: 26px; border: 1px solid #a9dfec; border-radius: 14px; background: #effafd; color: var(--eur-design-copy, #405562); text-align: left; }
.eau-body .eurekers-psychology-completion-kicker { display: block; margin-bottom: 7px; color: var(--eur-design-link, #007ea0); font-size: 12px; font-weight: 800; letter-spacing: 0.08em; }
.eau-body .eurekers-psychology-completion h2 { margin: 0 0 9px; color: var(--eur-design-text, #0e2a3a); font-size: clamp(23px, 3vw, 29px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.eau-body .eurekers-psychology-completion p { max-width: 660px; margin: 0; color: var(--eur-design-copy, #405562); font-size: 16px; line-height: 1.55; }
.eau-body .eurekers-psychology-completion-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 20px; }
.eau-body .eurekers-psychology-completion-register { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 13px 24px; border: 1px solid var(--eur-design-brand, #00add9); border-radius: 10px; background: var(--eur-design-brand, #00add9); color: #fff !important; font-size: 16px; font-weight: 750; line-height: 1.2; text-decoration: none; }
.eau-body .eurekers-psychology-completion-register:hover, .eau-body .eurekers-psychology-completion-register:focus-visible { border-color: var(--eur-design-action-hover, #008fb4); background: var(--eur-design-action-hover, #008fb4); color: #fff !important; }
.eau-body .eurekers-psychology-completion-login { color: var(--eur-design-text, #0e2a3a) !important; font-size: 15px; font-weight: 750; text-decoration: underline; text-decoration-color: #9eb5bf; text-underline-offset: 4px; }
.eau-body .eurekers-psychology-completion small { display: block; margin-top: 13px; color: var(--eur-design-subtle, #617784); font-size: 13px; }
@media (max-width: 767px) {
	.eau-body .eurekers-psychology-completion { margin-top: 22px; padding: 21px 18px; }
	.eau-body .eurekers-psychology-completion-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 13px; }
	.eau-body .eurekers-psychology-completion-register { width: 100%; text-align: center; }
	.eau-body .eurekers-psychology-completion-login { justify-self: center; }
}
/* Visitante: el aviso de bloqueo y la nota de test superado solo aparecen cuando corresponde. */
[data-eau-visitor-locked][hidden], [data-eau-visitor-passed-notice][hidden], [data-eau-step-body][hidden] { display: none; }
.eau-module li a[data-eau-gate] { cursor: pointer; }
/* Primer tema de Riesgo para el visitante: invita a empezar (con la cuenta gratuita). */
.eau-row-start { padding: 2px 9px; border-radius: 6px; background: var(--eur-design-action, #00add9); color: #fff; font-size: 12px; font-weight: 700; line-height: 18px; white-space: nowrap; }
.eau-module li a[data-eau-gate]:hover .eau-row-start, .eau-module li a[data-eau-gate]:focus-visible .eau-row-start { background: var(--eur-design-action-hover, #009cc4); }
