/**
 * Panel Mis resultados — plantilla dedicada + .depol-mr-app (colores Depol vía --depol-mr-*).
 */

/* Documento mínimo (sin cabecera/pie del tema) */
body.depol-mr-panel-body {
	margin: 0;
	padding: 0;
	background: var(--depol-mr-bg, #f6f6f6);
	color: var(--depol-mr-text, #192d50);
	font-family: 'Montserrat', sans-serif;
	-webkit-font-smoothing: antialiased;
}

body.depol-mr-panel-body .depol-mr-app {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.depol-mr-app {
	--bg2: var(--depol-mr-bg, #f6f6f6);
	--navy: var(--depol-mr-navy, #265aa6);
	--navy2: var(--depol-mr-navy2, #24305e);
	--navy3: var(--depol-mr-navy3, #192d50);
	--gold: var(--depol-mr-gold, #faaa28);
	--gold2: var(--depol-mr-gold2, #ffc04d);
	--text: var(--depol-mr-text, #192d50);
	--textsub: #5a6a85;
	--border: #d3dced;
	--border2: #b8c4e0;
	--green: #1a8a4a;
	--red: #c0392b;
	--warn: #e67e22;
	--r: 8px;
	--rm: 12px;
	--rl: 16px;
	--shadow-sm: 0 1px 2px rgba(25, 45, 80, 0.05), 0 4px 12px rgba(38, 90, 166, 0.07);
	--shadow-md: 0 8px 28px rgba(38, 90, 166, 0.11);
	--shadow-lg: 0 16px 48px rgba(38, 90, 166, 0.14);
	--focus-ring: 0 0 0 3px rgba(38, 90, 166, 0.2);
	/* Texto de tablas, gráficos y bloques de estadísticas (Chart.js lee este valor). */
	--depol-mr-ui-font-size: 0.88rem;
	--depol-mr-content-max: 960px;
	--depol-mr-content-x: 1.5rem;
	box-sizing: border-box;
	font-family: 'Montserrat', sans-serif;
	font-size: 14px;
	line-height: 1.6;
	color: var(--text);
	margin: 0;
	clear: both;
	flex: 1;
}

.depol-mr-app *,
.depol-mr-app *::before,
.depol-mr-app *::after {
	box-sizing: border-box;
}

.depol-mr-app h1,
.depol-mr-app h2,
.depol-mr-app h3,
.depol-mr-app h4 {
	font-family: 'Montserrat', sans-serif;
	font-weight: 600;
	text-transform: none;
	letter-spacing: 0.01em;
}

.depol-mr-app .view {
	display: none;
}

.depol-mr-app .view.active {
	display: block;
}

.depol-mr-app [hidden] {
	display: none !important;
}

/* Subcabecera del simulacro (alineada con exam-wrap / res-wrap-view) */
.depol-mr-app__bar {
	background: rgba(255, 255, 255, 0.96);
	border-bottom: 3px solid var(--gold);
	padding: 0.85rem 0;
	box-shadow: var(--shadow-sm);
	position: sticky;
	top: 0;
	z-index: 50;
	backdrop-filter: blur(10px);
}

/* Columna de contenido compartida (cabecera, hero, formulario, plantilla, resultados) */
.depol-mr-app__bar-inner,
.depol-mr-app .depol-mr-content-column,
.depol-mr-app .exam-wrap,
.depol-mr-app .res-wrap-view {
	width: 100%;
	max-width: var(--depol-mr-content-max);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--depol-mr-content-x);
	padding-right: var(--depol-mr-content-x);
}

.depol-mr-app__bar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.depol-mr-app__brand {
	display: flex;
	align-items: center;
}

.depol-mr-app__logo {
	display: block;
	height: 70px;
	width: auto;
	max-width: 220px;
	object-fit: contain;
}

.depol-mr-app__brand-text {
	font-family: 'Montserrat', sans-serif;
	font-weight: 700;
	font-size: 1rem;
	letter-spacing: 2px;
	color: var(--navy);
	text-transform: uppercase;
}

.depol-mr-app__foot {
	margin-top: auto;
	padding: 1.25rem var(--depol-mr-content-x);
	text-align: center;
	font-size: 0.72rem;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--textsub);
	background: #fff;
	border-top: 1px solid var(--border);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
}

.depol-mr-app__legal-link {
	text-transform: none;
	letter-spacing: 0;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--navy, #265aa6);
	text-decoration: underline;
}

.depol-mr-app__legal-link:hover {
	color: var(--navy2, #1e4785);
}

.depol-mr-app .depol-mr-privacy {
	margin: 1rem 0;
	width: 100%;
	box-sizing: border-box;
}

.depol-mr-app .depol-mr-privacy-label {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	width: 100%;
	margin: 0;
	padding: 0;
	text-align: left;
	font-weight: 400;
	letter-spacing: normal;
	text-transform: none;
	cursor: pointer;
}

.depol-mr-app .depol-mr-privacy-input {
	flex-shrink: 0;
	width: 1.125rem !important;
	height: 1.125rem !important;
	min-width: 1.125rem;
	max-width: 1.125rem;
	margin: 0;
	padding: 0 !important;
	border: 1px solid var(--border, #d8dee8) !important;
	border-radius: 3px !important;
	background: #fff !important;
	accent-color: var(--navy, #265aa6);
	cursor: pointer;
	box-sizing: border-box;
}

.depol-mr-app .form-card input.depol-mr-privacy-input {
	width: 1.125rem !important;
	min-width: 1.125rem;
	max-width: 1.125rem;
	padding: 0 !important;
}

.depol-mr-app .depol-mr-privacy-text {
	flex: 1;
	min-width: 0;
	display: block;
	margin: 0;
	padding: 0;
	font-size: 0.82rem;
	line-height: 1.45;
	letter-spacing: normal;
	text-transform: none;
	font-weight: 400;
	color: var(--text, #192d50);
}

.depol-mr-app .depol-mr-privacy-text a {
	color: var(--navy, #265aa6);
	font-weight: 600;
	text-decoration: underline;
}

.depol-mr-app .ov .depol-mr-privacy {
	margin: 0 0 1.25rem;
}

.depol-mr-app__actions {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
	align-items: center;
}

.depol-mr-app__admin-note {
	margin: 0;
	padding: 0.75rem var(--depol-mr-content-x);
	background: #fff8e6;
	border-bottom: 1px solid #f0d78c;
	color: #1d2327;
	font-size: 0.86rem;
}

.depol-mr-sim-banner {
	margin: 0;
	padding: 0.85rem var(--depol-mr-content-x);
	background: #e8f0fa;
	border-bottom: 1px solid #b8cfe8;
	color: var(--navy, #265aa6);
}

.depol-mr-sim-banner__text {
	margin: 0;
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1.45;
	text-align: center;
}

/* Hero (misma columna que bar-inner, exam-wrap y form-zone) */
.depol-mr-app .hero {
	background: linear-gradient(155deg, var(--navy) 0%, var(--navy2) 52%, var(--navy3) 100%);
	padding: clamp(2.5rem, 6vw, 3.5rem) 0 2rem;
	border-bottom: 4px solid var(--gold);
}

.depol-mr-app .hero__shell {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: clamp(1rem, 3vw, 1.5rem);
}

.depol-mr-app .hero__copy {
	flex: 1 1 0;
	min-width: 0;
	text-align: left;
}

.depol-mr-app .hero__art {
	flex: 0 0 auto;
	margin-left: auto;
	height: clamp(9.5rem, 20vw, 12.5rem);
	width: auto;
	max-width: min(15rem, 38vw);
	line-height: 0;
}

.depol-mr-app .eyebrow {
	font-family: 'Montserrat', sans-serif;
	font-weight: 600;
	font-size: 0.75rem;
	letter-spacing: 4px;
	color: var(--gold);
	text-transform: uppercase;
	margin-bottom: 0.7rem;
}

.depol-mr-app .hero h1 {
	margin-bottom: 0.3rem;
}

.depol-mr-app .hero-title-pre {
	display: block;
	font-size: clamp(1.2rem, 3vw, 1.6rem);
	line-height: 1.2;
	color: #fff;
	font-weight: 400;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.depol-mr-app .hero-brand {
	display: block;
	font-size: clamp(2rem, 5vw, 3.2rem);
	line-height: 1.05;
	margin-top: 0.2rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.depol-mr-app .hero-brand-municipal {
	color: #fff;
	font-style: normal;
	font-weight: 700;
}

.depol-mr-app .hero-brand-pro {
	color: var(--gold);
	font-style: italic;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.depol-mr-app .hero__logo {
	display: block;
	width: auto;
	height: 100%;
	max-width: 100%;
	margin: 0;
	object-fit: contain;
	object-position: right center;
}

.depol-mr-app .hero-sub {
	color: rgba(255, 255, 255, 0.85);
	font-size: 0.95rem;
	max-width: 560px;
	margin: 1rem 0 0;
}

@media (max-width: 720px) {
	.depol-mr-app .hero__shell {
		flex-wrap: wrap;
	}

	.depol-mr-app .hero__art {
		height: clamp(8rem, 36vw, 10rem);
		max-width: min(12rem, 58vw);
		margin-left: auto;
	}

	.depol-mr-app .rank-ban {
		flex-wrap: wrap;
	}
}

/* Form */
.depol-mr-app .form-zone {
	background: var(--bg2);
	padding: 2rem 0 2.5rem;
}

.depol-mr-app .form-card {
	background: #fff;
	border: 1px solid var(--border);
	border-top: 4px solid var(--gold);
	border-radius: var(--rl);
	padding: clamp(1.5rem, 4vw, 2rem);
	max-width: 520px;
	margin: 0 auto;
	text-align: left;
	box-shadow: var(--shadow-md);
}

.depol-mr-app .form-card h3 {
	font-size: 1.1rem;
	color: var(--navy);
	margin-bottom: 1.2rem;
	font-weight: 700;
}

.depol-mr-app .depol-mr-access-hint {
	margin: 0 0 1.15rem;
	font-size: var(--depol-mr-ui-font-size);
	line-height: 1.55;
	color: var(--textsub, #5c6b82);
}

.depol-mr-app .fg {
	margin-bottom: 1rem;
}

.depol-mr-app .fg label {
	display: block;
	font-size: 0.68rem;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--textsub);
	margin-bottom: 5px;
	font-weight: 700;
}

.depol-mr-app .fg input {
	width: 100%;
	padding: 12px 14px;
	background: #f8f9fc;
	border: 1px solid var(--border);
	border-radius: var(--r);
	color: var(--text);
	font-family: 'Montserrat', sans-serif;
	font-size: 0.95rem;
	outline: none;
	transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.depol-mr-app .fg input:focus {
	border-color: var(--navy);
	background: #fff;
	box-shadow: var(--focus-ring);
}

.depol-mr-app .notice-inline {
	font-size: var(--depol-mr-ui-font-size);
	padding: 0.75rem 1rem;
	border-radius: var(--r);
	margin-bottom: 1rem;
	border: 1px solid transparent;
}

.depol-mr-app .notice-inline--ok {
	background: #edfaef;
	border-color: rgba(26, 138, 74, 0.2);
	border-left: 4px solid var(--green);
}

.depol-mr-app .notice-inline--err {
	background: #fcf0f1;
	border-color: rgba(192, 57, 43, 0.15);
	border-left: 4px solid var(--red);
}

/* Buttons */
.depol-mr-app .btn-p {
	display: inline-block;
	width: 100%;
	padding: 14px 20px;
	background: var(--navy);
	border: none;
	border-radius: 999px;
	font-family: 'Montserrat', sans-serif;
	font-size: 0.9rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #fff;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.2s, transform 0.15s ease, box-shadow 0.15s ease;
	margin-top: 0.75rem;
	text-align: center;
	text-decoration: none;
	box-shadow: var(--shadow-sm);
}

.depol-mr-app .btn-p:hover {
	background: var(--navy2);
	color: #fff;
	transform: translateY(-1px);
	box-shadow: var(--shadow-md);
}

.depol-mr-app .btn-p:active {
	transform: translateY(0);
}

.depol-mr-app .btn-p--center {
	max-width: 290px;
	margin-left: auto;
	margin-right: auto;
	display: block;
}

.depol-mr-app .btn-p.is-loading {
	opacity: 0.65;
	cursor: wait;
}

.depol-mr-app .btn-s {
	padding: 9px 22px;
	background: transparent;
	border: 1px solid var(--border2);
	border-radius: var(--r);
	color: var(--textsub);
	font-family: 'Montserrat', sans-serif;
	font-size: 0.83rem;
	cursor: pointer;
}

.depol-mr-app .btn-s:hover {
	border-color: var(--navy);
	color: var(--navy);
}

.depol-mr-app .btn-ghost {
	font-family: 'Montserrat', sans-serif;
	font-weight: 600;
	font-size: 0.78rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	background: transparent;
	border: 1px solid var(--navy);
	color: var(--navy);
	padding: 7px 16px;
	border-radius: 999px;
	text-decoration: none;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.depol-mr-app .btn-ghost:hover {
	background: var(--navy);
	color: #fff;
}

/* Exam */
.depol-mr-app .exam-wrap {
	padding-top: 2rem;
	padding-bottom: 2rem;
}

.depol-mr-app .exam-wrap.is-readonly .ob {
	pointer-events: none;
	opacity: 0.65;
	cursor: not-allowed;
}

.depol-mr-app .exam-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
	padding-bottom: 1rem;
	border-bottom: 2px solid var(--border);
	margin-bottom: 2rem;
}

.depol-mr-app .exam-bar h2 {
	font-size: 1.3rem;
	color: var(--navy);
}

.depol-mr-app .exam-bar .stag {
	font-size: 0.76rem;
	color: var(--textsub);
	margin-top: 2px;
	min-height: 1.25em;
}

.depol-mr-app .exam-bar + .blk-head {
	margin-top: 1rem;
}

.depol-mr-app .prog {
	font-family: 'Montserrat', sans-serif;
	font-weight: 600;
	font-size: 0.88rem;
	letter-spacing: 0.02em;
	color: var(--navy);
	background: #fff;
	border: 1px solid var(--border);
	padding: 8px 16px;
	border-radius: 999px;
	white-space: nowrap;
	box-shadow: var(--shadow-sm);
}

.depol-mr-app .blk-head {
	background: linear-gradient(90deg, var(--navy) 0%, var(--navy2) 100%);
	border-left: 4px solid var(--gold);
	padding: 12px 18px;
	margin: 2rem 0 1rem;
	display: flex;
	align-items: baseline;
	gap: 12px;
	border-radius: var(--r);
	flex-wrap: wrap;
	box-shadow: var(--shadow-sm);
}

.depol-mr-app .blk-head h3 {
	font-size: var(--depol-mr-ui-font-size);
	color: #fff;
	margin: 0;
}

.depol-mr-app .blk-head span {
	font-size: 0.68rem;
	color: rgba(255, 255, 255, 0.65);
	font-family: 'Montserrat', sans-serif;
	text-transform: none;
	letter-spacing: 0;
	font-weight: 400;
}

.depol-mr-app .blk-head--lang {
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.depol-mr-app .blk-head--lang h3 {
	flex: 1 1 auto;
	min-width: 0;
}

/* Selector Inglés / Francés (segmented control, estilo Depol) */
.depol-mr-app .lang-pick {
	display: inline-flex;
	flex-shrink: 0;
	align-items: stretch;
	gap: 0;
	padding: 4px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.2);
	border: 1px solid rgba(255, 255, 255, 0.2);
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.12);
}

.depol-mr-app .lang-pick .lang-pick__btn,
.depol-mr-app .lang-pick button.lang-pick__btn {
	appearance: none;
	-webkit-appearance: none;
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	min-width: 5.5rem;
	padding: 9px 18px;
	border: none;
	border-radius: 999px;
	background: transparent;
	color: rgba(255, 255, 255, 0.88);
	font-family: 'Montserrat', sans-serif;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	line-height: 1.2;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.12s ease;
}

.depol-mr-app .lang-pick .lang-pick__btn:hover:not(:disabled):not(.is-active),
.depol-mr-app .lang-pick button.lang-pick__btn:hover:not(:disabled):not(.is-active) {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
}

.depol-mr-app .lang-pick .lang-pick__btn.is-active,
.depol-mr-app .lang-pick button.lang-pick__btn.is-active {
	background: var(--gold);
	color: var(--navy3);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.depol-mr-app .lang-pick .lang-pick__btn:focus-visible,
.depol-mr-app .lang-pick button.lang-pick__btn:focus-visible {
	outline: 2px solid var(--gold2);
	outline-offset: 2px;
}

.depol-mr-app .lang-pick .lang-pick__btn:disabled,
.depol-mr-app .lang-pick button.lang-pick__btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	transform: none;
}

.depol-mr-app .lang-pick-hint {
	margin: -0.5rem 0 1rem;
	font-size: 0.8rem;
	color: var(--textsub);
}

.depol-mr-app .lang-questions.is-locked {
	position: relative;
	pointer-events: none;
	opacity: 0.45;
	user-select: none;
}

.depol-mr-app .lang-questions.is-locked .q-grid {
	min-height: 120px;
}

.depol-mr-app .exam-wrap.is-readonly .lang-pick .lang-pick__btn,
.depol-mr-app .exam-wrap.is-readonly .lang-pick button.lang-pick__btn {
	pointer-events: none;
}

@media (max-width: 520px) {
	.depol-mr-app .blk-head--lang {
		flex-direction: column;
		align-items: stretch;
	}

	.depol-mr-app .lang-pick {
		align-self: flex-start;
	}

	.depol-mr-app .lang-pick .lang-pick__btn,
	.depol-mr-app .lang-pick button.lang-pick__btn {
		min-width: 0;
		flex: 1 1 50%;
		padding-left: 12px;
		padding-right: 12px;
	}
}

.depol-mr-app .res-wrap {
	background: var(--bg2);
	border: 1px dashed var(--border2);
	border-radius: var(--rm);
	padding: 0.9rem 1.1rem;
	margin: 0.75rem 0;
}

.depol-mr-app .res-wrap .blk-head {
	background: var(--bg2);
	border-color: var(--border2);
	margin: 0 0 0.7rem;
}

.depol-mr-app .res-wrap .blk-head h3 {
	color: var(--textsub);
	font-size: 0.78rem;
}

.depol-mr-app .q-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 5px;
}

.depol-mr-app .res-wrap .q-grid {
	grid-template-columns: repeat(2, 1fr);
}

.depol-mr-app .q-card {
	background: #fff;
	border: 1px solid var(--border);
	border-radius: var(--rm);
	padding: 10px 12px;
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.depol-mr-app .q-card:has(.ob.sel) {
	border-color: rgba(38, 90, 166, 0.35);
	box-shadow: var(--shadow-sm);
}

.depol-mr-app .q-num {
	font-family: 'Montserrat', sans-serif;
	font-weight: 600;
	font-size: 0.72rem;
	color: var(--textsub);
	min-width: 26px;
	flex-shrink: 0;
}

.depol-mr-app .q-opts {
	display: flex;
	gap: 4px;
}

.depol-mr-app .ob {
	width: 38px;
	height: 38px;
	background: var(--bg2);
	border: 1px solid var(--border);
	border-radius: 50%;
	color: var(--textsub);
	font-family: 'Montserrat', sans-serif;
	font-weight: 700;
	font-size: 0.88rem;
	cursor: pointer;
	line-height: 36px;
	text-align: center;
	padding: 0;
	transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.12s;
}

.depol-mr-app .ob:hover {
	border-color: var(--navy);
	color: var(--navy);
	background: #fff;
	transform: scale(1.05);
}

.depol-mr-app .ob.sel {
	background: var(--navy);
	border-color: var(--navy);
	color: #fff;
	box-shadow: 0 2px 8px rgba(38, 90, 166, 0.35);
}

.depol-mr-app .sub-zone {
	text-align: center;
	padding: 2.5rem 0 2rem;
}

.depol-mr-app .sub-hint {
	font-size: 0.73rem;
	color: var(--textsub);
	margin-top: 7px;
}

/* Results */
.depol-mr-app .res-wrap-view {
	padding-top: 2rem;
	padding-bottom: 2rem;
}

.depol-mr-app .res-top {
	background: linear-gradient(155deg, var(--navy) 0%, var(--navy2) 100%);
	border-radius: var(--rl);
	padding: 2rem;
	margin-bottom: 1.5rem;
	border-bottom: 4px solid var(--gold);
	box-shadow: var(--shadow-md);
}

.depol-mr-app .res-top .rl {
	font-size: 0.65rem;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: var(--gold);
	margin-bottom: 4px;
}

.depol-mr-app .res-top h2 {
	font-size: clamp(1.3rem, 3vw, 1.9rem);
	color: #fff;
	margin-bottom: 3px;
}

.depol-mr-app .res-top .re {
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.65);
}

.depol-mr-app .sc-row {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.75rem;
	margin-bottom: 1.5rem;
}

.depol-mr-app .sc {
	background: #fff;
	border: 1px solid var(--border);
	padding: 1.25rem;
	text-align: center;
	border-radius: var(--rm);
	box-shadow: var(--shadow-sm);
}

.depol-mr-app .sc.main {
	background: linear-gradient(160deg, var(--navy) 0%, var(--navy2) 100%);
	border: none;
	border-top: 4px solid var(--gold);
	box-shadow: var(--shadow-md);
}

.depol-mr-app .sc-l {
	font-size: 0.61rem;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--textsub);
	margin-bottom: 5px;
}

.depol-mr-app .sc.main .sc-l {
	color: rgba(255, 255, 255, 0.6);
}

.depol-mr-app .sc-v {
	font-family: 'Montserrat', sans-serif;
	font-weight: 600;
	font-size: 2.4rem;
	line-height: 1;
	color: var(--navy);
}

.depol-mr-app .sc.main .sc-v {
	color: var(--gold);
	font-size: 2.9rem;
}

.depol-mr-app .sc-s {
	font-size: 0.68rem;
	color: var(--textsub);
	margin-top: 5px;
}

.depol-mr-app .sc.main .sc-s {
	color: rgba(255, 255, 255, 0.5);
}

.depol-mr-app .rank-ban {
	background: #fff;
	border: 1px solid var(--border);
	border-left: 4px solid var(--gold);
	border-radius: var(--rl);
	padding: 1.25rem 1.5rem;
	display: flex;
	align-items: center;
	gap: 1.5rem;
	margin-bottom: 1.5rem;
	flex-wrap: nowrap;
	box-shadow: var(--shadow-sm);
}

.depol-mr-app .rn {
	font-family: 'Montserrat', sans-serif;
	font-weight: 600;
	font-size: 2.8rem;
	line-height: 1;
	color: var(--navy);
	min-width: 65px;
	text-align: center;
}

.depol-mr-app .rn small {
	display: block;
	font-size: 0.55rem;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--textsub);
	margin-top: 4px;
}

.depol-mr-app .rt {
	flex: 1;
	min-width: 0;
	text-align: left;
}

.depol-mr-app .rt h4 {
	font-size: 0.85rem;
	color: var(--navy);
	margin: 0 0 6px;
	letter-spacing: 1px;
}

.depol-mr-app .rt p {
	margin: 0;
	font-size: var(--depol-mr-ui-font-size);
	color: var(--textsub);
	text-transform: none;
	letter-spacing: 0;
	font-family: 'Montserrat', sans-serif;
	font-weight: 400;
}

.depol-mr-app .rank-provisional-note {
	margin-top: 0.55rem;
	padding: 0.5rem 0.65rem;
	border-radius: 8px;
	border: 1px solid rgba(250, 170, 40, 0.45);
	background: rgba(250, 170, 40, 0.15);
	color: #7a5600;
	font-size: 0.8rem;
	font-weight: 600;
	line-height: 1.35;
}

.depol-mr-app .pct-card {
	background: linear-gradient(135deg, var(--navy2) 0%, var(--navy) 100%);
	border-radius: var(--rl);
	padding: 1.5rem 2rem;
	margin-bottom: 1.5rem;
	display: flex;
	align-items: center;
	gap: 1.5rem;
	flex-wrap: wrap;
	box-shadow: var(--shadow-md);
}

.depol-mr-app .pct-num {
	font-family: 'Montserrat', sans-serif;
	font-weight: 600;
	font-size: 3.5rem;
	line-height: 1;
	color: var(--gold);
	min-width: 90px;
	text-align: center;
}

.depol-mr-app .pct-body {
	flex: 1;
	min-width: 180px;
}

.depol-mr-app .pct-title {
	color: rgba(255, 255, 255, 0.6);
	font-size: 0.85rem;
	margin: 0 0 4px;
	letter-spacing: 1px;
}

.depol-mr-app .pct-msg {
	color: #fff;
	font-size: var(--depol-mr-ui-font-size);
	margin-bottom: 0.75rem;
	font-family: 'Montserrat', sans-serif;
	text-transform: none;
	letter-spacing: 0;
	font-weight: 400;
}

.depol-mr-app .pct-track {
	height: 8px;
	background: rgba(255, 255, 255, 0.12);
	border-radius: 4px;
	overflow: hidden;
	flex: 1;
}

.depol-mr-app .pct-fill {
	height: 100%;
	background: linear-gradient(90deg, var(--gold), var(--gold2));
	width: 0;
	transition: width 1.4s ease;
}

.depol-mr-app .gl-row {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.75rem;
	margin-bottom: 1.5rem;
}

.depol-mr-app .gl {
	background: #fff;
	border: 1px solid var(--border);
	padding: 1.1rem;
	text-align: center;
	border-radius: var(--rm);
	box-shadow: var(--shadow-sm);
}

.depol-mr-app .st-title {
	font-family: 'Montserrat', sans-serif;
	font-weight: 600;
	font-size: var(--depol-mr-ui-font-size);
	letter-spacing: 2px;
	color: var(--navy);
	border-bottom: 2px solid var(--border);
	padding-bottom: 7px;
	margin: 1.5rem 0 0.8rem;
}

.depol-mr-app .st-grid {
	display: grid;
	gap: 0.65rem;
	margin-bottom: 1.5rem;
}

.depol-mr-app .st-grid--kpi,
.depol-mr-app .st-grid--detail-row {
	grid-template-columns: repeat(3, 1fr);
	margin-bottom: 3px;
}

.depol-mr-app .st-grid--kpi .stv {
	font-size: 2rem;
}

.depol-mr-app .st-grid--detail-row:last-of-type {
	margin-bottom: 1.5rem;
}

.depol-mr-app .stc {
	background: #fff;
	border: 1px solid var(--border);
	padding: 0.9rem 1rem;
	border-radius: var(--rm);
	box-shadow: var(--shadow-sm);
}

.depol-mr-app .stv {
	font-family: 'Montserrat', sans-serif;
	font-weight: 600;
	font-size: 1.75rem;
	line-height: 1;
	margin-top: 4px;
}

.depol-mr-app .stv.green { color: var(--green); }
.depol-mr-app .stv.red { color: var(--red); }
.depol-mr-app .stv.yellow { color: var(--warn); }
.depol-mr-app .stv.gold { color: var(--gold); }

.depol-mr-app .sc-v.gold { color: var(--gold); }
.depol-mr-app .sc-v.green { color: var(--green); }
.depol-mr-app .sc-v.red { color: var(--red); }
.depol-mr-app .sc-s.green { color: var(--green); }
.depol-mr-app .sc-s.red { color: var(--red); }

.depol-mr-app .rank-table-scroll {
	overflow-x: auto;
}

.depol-mr-app .col-pos {
	width: 4rem;
	text-align: center;
	vertical-align: middle;
}

.depol-mr-app .rank-pos-cell {
	display: inline-flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	min-width: 2.25rem;
	line-height: 1.1;
}

.depol-mr-app .rank-pos-cell--medal .rank-pos-num {
	font-family: 'Montserrat', sans-serif;
	font-weight: 700;
	font-size: 0.95rem;
	color: var(--navy);
}

.depol-mr-app .rank-medal {
	display: block;
	font-size: 1.35rem;
	line-height: 1;
	letter-spacing: 0;
}

.depol-mr-app tr.myr .rank-pos-cell--medal .rank-pos-num {
	color: var(--navy);
}

.depol-mr-app .rank-wrap {
	background: #fff;
	border: 1px solid var(--border);
	border-radius: var(--rl);
	overflow: hidden;
	margin-top: 2.5rem;
	margin-bottom: 1rem;
	box-shadow: var(--shadow-sm);
}

.depol-mr-app .rank-head {
	background: var(--navy);
	border-bottom: 3px solid var(--gold);
	padding: 0.85rem 1.25rem;
	font-family: 'Montserrat', sans-serif;
	font-weight: 600;
	font-size: var(--depol-mr-ui-font-size);
	letter-spacing: 2px;
	color: #fff;
}

.depol-mr-app .rank-incomplete-notice {
	margin: 0;
	padding: 0.75rem 1.25rem;
	font-size: var(--depol-mr-ui-font-size);
	line-height: 1.45;
	color: #6b4e0a;
	background: #fff8e6;
	border-bottom: 1px solid #f0d78c;
	text-align: left;
	font-weight: 500;
}

.depol-mr-app table {
	width: 100%;
	border-collapse: collapse;
}

.depol-mr-app th {
	font-family: 'Montserrat', sans-serif;
	font-weight: 600;
	font-size: 0.62rem;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--navy);
	padding: 9px 1.25rem;
	text-align: left;
	background: var(--bg2);
	border-bottom: 1px solid var(--border);
}

.depol-mr-app td {
	padding: 10px 1.25rem;
	font-size: var(--depol-mr-ui-font-size);
	border-bottom: 1px solid var(--border);
}

.depol-mr-app tr.myr td {
	background: #f0f0fa;
	color: var(--navy);
	font-weight: 600;
}

/* Modal */
.depol-mr-app .modal-lead {
	font-size: 0.86rem;
	color: var(--textsub);
	margin: 0 0 1.2rem;
	font-family: 'Montserrat', sans-serif;
	text-transform: none;
	letter-spacing: 0;
	font-weight: 400;
}

.depol-mr-app .modal-warn {
	color: var(--warn);
}

.depol-mr-app .modal-actions {
	display: flex;
	gap: 9px;
	flex-wrap: wrap;
}

.depol-mr-app .modal-actions .btn-p {
	flex: 1;
	margin-top: 0;
	min-width: 140px;
}

.depol-mr-app .ov {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(25, 45, 80, 0.55);
	backdrop-filter: blur(6px);
	z-index: 100000;
	align-items: flex-start;
	justify-content: center;
	padding: 2rem 1rem;
	overflow-y: auto;
}

.depol-mr-app .ov.open {
	display: flex;
}

.depol-mr-app .modal {
	background: #fff;
	border: 1px solid var(--border);
	border-top: 4px solid var(--gold);
	border-radius: var(--rl);
	padding: 2rem;
	width: 100%;
	max-width: 400px;
	position: relative;
	margin: auto;
	box-shadow: var(--shadow-lg);
}

.depol-mr-app .cx {
	position: absolute;
	top: 8px;
	right: 8px;
	background: none;
	border: none;
	font-size: 1.2rem;
	cursor: pointer;
	color: var(--textsub);
}

.depol-mr-app .toast {
	position: fixed;
	bottom: 1.5rem;
	right: 1.5rem;
	background: var(--navy);
	border: 2px solid var(--gold);
	border-radius: var(--rm);
	padding: 0.7rem 1.2rem;
	color: #fff;
	z-index: 100001;
	transform: translateY(70px);
	opacity: 0;
	transition: all 0.26s;
	pointer-events: none;
}

.depol-mr-app .toast.show {
	transform: translateY(0);
	opacity: 1;
}

.depol-mr-app .dif-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	margin: 0 0 1.5rem;
}

.depol-mr-app .dif-item {
	background: #fff;
	border: 1px solid var(--border);
	border-radius: var(--r);
	padding: 1rem;
	text-align: center;
}

.depol-mr-app .dif-lbl {
	display: block;
	font-size: 0.72rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--textsub);
	margin-bottom: 6px;
}

.depol-mr-app .dif-pct {
	display: block;
	font-family: 'Montserrat', sans-serif;
	font-size: 1.75rem;
	font-weight: 700;
	color: var(--navy);
}

.depol-mr-app .res-by-area {
	margin-bottom: 1.5rem;
}

.depol-mr-app .res-by-area .res-meta {
	margin: 0;
	font-size: var(--depol-mr-ui-font-size);
	color: var(--textsub);
}

/* ── Gráficos Chart.js ── */
.depol-mr-app .depol-mr-charts-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin: 0 0 2rem;
}

.depol-mr-app .depol-mr-chart-card {
	background: #fff;
	border: 1px solid var(--border);
	border-radius: var(--rl);
	padding: 1.25rem 1.25rem 1rem;
	box-shadow: var(--shadow-sm);
}

.depol-mr-app .depol-mr-chart-card--wide {
	grid-column: 1 / -1;
}

.depol-mr-app .depol-mr-chart-title {
	font-weight: 700;
	font-size: var(--depol-mr-ui-font-size);
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--navy3);
	margin-bottom: 4px;
}

.depol-mr-app .depol-mr-chart-desc {
	font-size: var(--depol-mr-ui-font-size);
	color: var(--textsub);
	margin: 0 0 12px;
}

.depol-mr-app .depol-mr-chart-canvas-wrap {
	position: relative;
}

.depol-mr-app .depol-mr-chart-canvas-wrap--square {
	max-width: 260px;
	margin: 0 auto;
}

.depol-mr-app .depol-mr-chart-legend--inline {
	display: flex;
	flex-wrap: nowrap;
	justify-content: center;
	align-items: center;
	gap: 0.75rem 1.1rem;
	margin-top: 0.65rem;
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}

.depol-mr-app .depol-mr-chart-legend-item {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	gap: 0.4rem;
	white-space: nowrap;
	font-size: var(--depol-mr-ui-font-size);
	color: var(--text);
	line-height: 1.2;
}

.depol-mr-app .depol-mr-chart-legend-swatch {
	width: 12px;
	height: 12px;
	border-radius: 2px;
	flex-shrink: 0;
}

.depol-mr-app .depol-mr-chart-canvas-wrap--bars canvas {
	max-height: 220px;
}

.depol-mr-app .depol-mr-chart-card--difficulty {
	display: flex;
	flex-direction: column;
	min-height: 300px;
}

.depol-mr-app .depol-mr-chart-card--difficulty .depol-mr-chart-desc {
	flex-shrink: 0;
}

.depol-mr-app .depol-mr-chart-canvas-wrap--difficulty {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 168px;
	height: 200px;
	width: 100%;
	margin: 0;
	position: relative;
}

/* Sin width/height forzados en canvas: Chart.js fija la resolución; el CSS no debe estirar el bitmap. */
.depol-mr-app .depol-mr-chart-canvas-wrap--difficulty canvas {
	display: block;
	max-width: 100%;
}

.depol-mr-app .depol-mr-chart-card--difficulty .depol-mr-chart-legend--inline {
	flex-shrink: 0;
	margin-top: auto;
	padding-top: 0.35rem;
	padding-bottom: 0.1rem;
}

.depol-mr-app .depol-mr-chart-canvas-wrap--hbar {
	width: 100%;
	overflow: hidden;
}

.depol-mr-app .depol-mr-chart-canvas-wrap--hbar canvas {
	width: 100% !important;
}

.depol-mr-app .depol-mr-chart-empty {
	font-size: var(--depol-mr-ui-font-size);
	color: var(--textsub);
	text-align: center;
	padding: 1rem 0;
}

@media (max-width: 620px) {
	.depol-mr-app .depol-mr-charts-grid {
		grid-template-columns: 1fr;
	}
	.depol-mr-app .depol-mr-chart-card--wide {
		grid-column: 1;
	}
}

.depol-mr-app .area-table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
	border-radius: var(--r);
	overflow: hidden;
	font-size: var(--depol-mr-ui-font-size);
}

.depol-mr-app .area-table th,
.depol-mr-app .area-table td {
	padding: 0.65rem 0.85rem;
	border-bottom: 1px solid var(--border);
	text-align: left;
}

.depol-mr-app .area-table th {
	background: var(--navy);
	color: #fff;
	font-weight: 600;
}

.depol-mr-app .area-table td strong {
	color: var(--navy);
}

.depol-mr-app .res-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
	align-items: center;
	text-align: center;
	margin-top: 1.5rem;
	padding: 1rem 0 2.5rem;
}

.depol-mr-app .res-actions .btn-p,
.depol-mr-app .res-actions .btn-s,
.depol-mr-print-toolbar__actions .btn-p,
.depol-mr-print-toolbar__actions .btn-s {
	width: auto;
	max-width: 100%;
	margin-top: 0;
}

/* Modo impresión (como triatlón: vista dedicada sin URL con parámetros en la barra) */
.depol-mr-print-toolbar {
	background: #fff;
	border-bottom: 3px solid var(--gold);
	padding: 0.85rem 1.5rem;
	box-shadow: 0 2px 8px rgba(38, 90, 166, 0.1);
}

.depol-mr-print-toolbar__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	justify-content: center;
}

.depol-mr-app .depol-mr-print-head {
	display: none;
}

body.depol-mr-panel-print .depol-mr-app .depol-mr-print-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0 0 1rem;
	margin: 0 0 1.25rem;
	border-bottom: 3px solid var(--gold);
}

body.depol-mr-panel-print .depol-mr-app .depol-mr-print-head__meta {
	margin-left: auto;
	text-align: right;
	flex: 0 1 auto;
}

body.depol-mr-app .depol-mr-print-head__logo,
body.depol-mr-panel-print .depol-mr-app .depol-mr-print-head__logo {
	height: 70px;
	width: auto;
	max-width: 220px;
	object-fit: contain;
}

body.depol-mr-panel-print .depol-mr-app .depol-mr-print-head__title {
	font-family: 'Montserrat', sans-serif;
	font-weight: 700;
	font-size: 0.95rem;
	letter-spacing: 0.06em;
	text-transform: none;
	color: var(--navy);
	line-height: 1.35;
}

body.depol-mr-panel-print .depol-mr-app .depol-mr-print-head__date {
	font-family: 'Montserrat', sans-serif;
	font-size: 0.88rem;
	color: var(--textsub);
	margin-top: 4px;
	line-height: 1.35;
}

body.depol-mr-panel-print .depol-mr-app__admin-note,
body.depol-mr-panel-print .depol-mr-sim-banner {
	display: none;
}

@media print {
	@page {
		size: A4 portrait;
		margin: 4mm;
	}

	html.depol-mr-panel-print-html,
	body.depol-mr-panel-print,
	body.depol-mr-panel-print .depol-mr-app {
		background: #fff !important;
		color: var(--text) !important;
		-webkit-print-color-adjust: exact !important;
		print-color-adjust: exact !important;
		overflow: visible !important;
	}

	body.depol-mr-panel-print a,
	body.depol-mr-panel-print a:visited {
		color: inherit !important;
		text-decoration: none !important;
	}

	body.depol-mr-panel-print a[href]::after,
	body.depol-mr-panel-print a[href]::before {
		content: none !important;
	}

	.depol-mr-print-toolbar,
	body.depol-mr-panel-print .depol-mr-app__bar,
	body.depol-mr-panel-print .depol-mr-app__foot,
	body.depol-mr-panel-print .depol-mr-app__admin-note,
	body.depol-mr-panel-print .depol-mr-sim-banner,
	body.depol-mr-panel-print #view-exam,
	body.depol-mr-panel-print #view-login,
	body.depol-mr-panel-print .depol-mr-app__actions,
	body.depol-mr-panel-print .res-actions,
	body.depol-mr-panel-print .toast,
	body.depol-mr-panel-print .ov {
		display: none !important;
	}

	body.depol-mr-panel-print .depol-mr-app .depol-mr-print-head {
		display: flex !important;
		align-items: center !important;
		justify-content: space-between !important;
		break-after: avoid;
	}

	body.depol-mr-panel-print .depol-mr-app .depol-mr-print-head__meta {
		margin-left: auto !important;
		text-align: right !important;
	}

	body.depol-mr-panel-print #view-results,
	body.depol-mr-panel-print .depol-mr-app #view-results {
		display: block !important;
	}

	body.depol-mr-panel-print .depol-mr-app .view {
		display: none;
	}

	body.depol-mr-panel-print .depol-mr-app .res-wrap-view {
		padding: 0;
		max-width: none;
	}

	body.depol-mr-panel-print .depol-mr-app .sc-row,
	body.depol-mr-panel-print .depol-mr-app .gl-row,
	body.depol-mr-panel-print .depol-mr-app .st-grid--kpi,
	body.depol-mr-panel-print .depol-mr-app .st-grid--detail-row,
	body.depol-mr-panel-print .depol-mr-app .dif-grid,
	body.depol-mr-panel-print .depol-mr-app .depol-mr-charts-grid {
		break-inside: avoid;
		page-break-inside: avoid;
	}

	body.depol-mr-panel-print .depol-mr-app .rank-ban,
	body.depol-mr-panel-print .depol-mr-app .pct-card,
	body.depol-mr-panel-print .depol-mr-app .depol-mr-chart-card,
	body.depol-mr-panel-print .depol-mr-app .rank-wrap,
	body.depol-mr-panel-print .depol-mr-app .area-table {
		break-inside: avoid;
		page-break-inside: avoid;
	}

	body.depol-mr-panel-print .depol-mr-app .depol-mr-chart-canvas-wrap canvas {
		max-width: 100% !important;
	}

	body.depol-mr-panel-print .depol-mr-app .rank-table-scroll {
		overflow: visible !important;
	}
}

@media (max-width: 620px) {
	.depol-mr-app {
		--depol-mr-content-x: 1rem;
	}
	.depol-mr-app .sc-row,
	.depol-mr-app .gl-row {
		grid-template-columns: 1fr;
	}
	.depol-mr-app .q-grid {
		grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	}
	.depol-mr-app__bar {
		padding-top: 0.75rem;
		padding-bottom: 0.75rem;
	}
}
