.mrt {
	--mrt-bg: #f2572e;
	--mrt-fg: #050000;
	--mrt-top: 0px;
	display: flex;
	align-items: stretch;
	width: 100%;
	height: 38px;
	background: var(--mrt-bg);
	color: var(--mrt-fg);
	font-family: var(--mrt-font, Helvetica, Arial, sans-serif);
	font-size: var(--mrt-size, 13px);
	line-height: 38px;
	overflow: hidden;
	box-sizing: border-box;
	text-transform: none;
}
.mrt *, .mrt *::before, .mrt *::after { box-sizing: border-box; }

/* Fija en la parte superior de la pantalla */
.mrt--fixed {
	position: fixed;
	top: var(--mrt-top);
	left: 0;
	right: 0;
	z-index: 9990;
	transition: transform .35s ease;
}
body.admin-bar .mrt--fixed { --mrt-top: 32px; }
@media (max-width: 782px) { body.admin-bar .mrt--fixed { --mrt-top: 46px; } }
@media (max-width: 600px) { body.admin-bar .mrt--fixed { --mrt-top: 0px; } }

/* Modo «aparece cuando se oculta el menú»: oculta hasta que el JS la muestre */
.mrt--reveal { transform: translateY(calc(-100% - var(--mrt-top))); }
.mrt--reveal.mrt--shown { transform: translateY(0); }

.mrt__label {
	flex: 0 0 auto;
	position: relative;
	z-index: 2;
	padding: 0 12px 0 14px;
	background: var(--mrt-bg);
	color: var(--mrt-fg);
	font-family: var(--mrt-label-font, inherit);
	font-size: var(--mrt-label-size, 13px);
	font-weight: 700;
	white-space: nowrap;
}

/* Los titulares pasan por detrás del rótulo sólido */
.mrt__viewport {
	flex: 1 1 auto;
	overflow: hidden;
}

.mrt__track {
	display: flex;
	width: max-content;
	animation: mrt-scroll 90s linear infinite;
	will-change: transform;
}
.mrt:hover .mrt__track,
.mrt:focus-within .mrt__track,
.mrt.mrt--paused .mrt__track { animation-play-state: paused; }

@keyframes mrt-scroll {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}

.mrt__group {
	display: flex;
	margin: 0;
	padding: 0;
	list-style: none;
	white-space: nowrap;
}
.mrt__item {
	display: flex;
	align-items: center;
	margin: 0;
	padding: 0;
}
.mrt__item[hidden] { display: none; }
.mrt__item::after {
	content: "•";
	margin: 0 16px;
}
.mrt__item a {
	color: inherit;
	text-decoration: none;
}
.mrt__item a:hover,
.mrt__item a:focus-visible { text-decoration: underline; }

.mrt__cat {
	font-weight: 700;
	margin-right: 4px;
}

.mrt__val { font-weight: 700; }
.mrt__chg { font-size: 11px; margin-left: 4px; }
.mrt__chg--eq { opacity: .7; }

.mrt__pause {
	flex: 0 0 auto;
	width: 34px;
	border: 0;
	border-radius: 0;
	background: var(--mrt-bg);
	color: var(--mrt-fg);
	font-size: 10px;
	cursor: pointer;
	padding: 0;
	line-height: 38px;
}

@media (max-width: 767px) {
	.mrt { height: 34px; line-height: 34px; font-size: calc(var(--mrt-size, 13px) - 1px); }
	.mrt__label { padding: 0 10px; font-size: calc(var(--mrt-label-size, 13px) - 1px); }
	.mrt__pause { line-height: 34px; }
}

@media (prefers-reduced-motion: reduce) {
	.mrt__track { animation: none; }
	.mrt__viewport { overflow-x: auto; }
	.mrt__group[aria-hidden="true"] { display: none; }
	.mrt--fixed { transition: none; }
}
