:root {
	--rojo-ssreyes: #bc072d;
	--rojo-ssreyes-hover: #f4003d;
	--negro-ssreyes: #404040;
}

* {
	box-sizing: border-box;
}

.bold-element {
	font-weight: bold;
}

.gray-element {
	color: gray;
}

body {
	gap: 0px;
}

main {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	padding: 20px 0 60px 0;
}

#titulos {
	margin-top: 80px;
	max-width: clamp(200px, 80%, 1060px);
}

#controles {
	box-sizing: border-box;
	width: 100%;
	position: sticky;
	top: 0;
	background-color: white;
	padding: 30px 12px;
	z-index: 2;
	transition: background-color 0.3s ease;
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	justify-content: center;
	align-items: end;
}

#controles.sticky {
	background-color: rgba(255, 255, 255, 0.9);
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#buscador {
	padding: 8px 12px;
	border-radius: 4px;
	border: 1px solid #ccc;
	width: 100%;
	max-width: 300px;
	/* margin-bottom: 10px; */
	font-size: 14px;
}

#botones-container {
	display: flex;
	gap: 0.5rem;
}

#botones-container button, #botones-container a {
	width: 40px;
	height: 40px;
	border: none;
	background-color: #f0f0f0;
	border-radius: 6px;
	cursor: pointer;
	transition: background-color 0.3s ease, box-shadow 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

#botones-container button:hover {
	background-color: #e0e0e0;
}

#botones-container button:active {
	background-color: #d0d0d0;
}

#botones-container svg {
	width: 20px;
	height: 20px;
}

#botones-container a {
	background-color: var(--rojo-ssreyes);
}

#botones-container a:hover {
	background-color: white;
	box-shadow: 0px 0px 10px -5px rgba(0, 0, 0, 0.50);
}

#botones-container a:active {
	box-shadow: 0px 0px 10px -2px rgba(0, 0, 0, 0.50);
}

#botones-container a svg {
	width: 28px;
	height: 28px;
}

#botones-container a svg path {
	stroke: white;
}

#botones-container a:hover svg path {
	stroke: var(--rojo-ssreyes);
}

#lista-datos, #lista-datos ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

#lista-datos {
	font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
	background-color: #f7f9fa;
	padding: 10px 20px;
	border-radius: 8px;
	width: clamp(250px, 80%, 1100px);
}

#lista-datos li {
	padding: 8px 12px;
	margin: 4px 0;
	border-left: 4px solid #ededed;
	background-color: #ffffff;
	border-radius: 4px;
	transition: background-color 0.2s ease, border-left 0.2s ease, transform, 0.3s ease;
	position: relative;
}

/*#lista-datos li:hover {*/
#lista-datos li:not(.li-meta):hover {
	border-left-color: var(--rojo-ssreyes);
	background-color: #ededed;
}

#lista-datos ul {
	padding-left: 20px;
}

#lista-datos .oculto {
	display: none;
}

#lista-datos li:not(.plegado)::before {
	transform: translateY(-50%) rotate(90deg);
}

#lista-datos>li {
	border-left-color: #406682;
}

mark.resaltado {
	background-color: var(--rojo-ssreyes);
	color: white;
	padding: 0 2px;
	border-radius: 2px;
}

#media-info {
	margin-left: 10px;
}

#media-info>svg {
	width: 30px;
	height: 30px;
	cursor: pointer;
	transform: translateY(8px);
}

#media-info>svg>path {
	fill: grey;
}

#media-info>svg:hover path {
	fill: var(--rojo-ssreyes);
}

.tooltip-container {
	position: relative;
	display: inline-block;
}

.media-info-tooltip-text {
	visibility: hidden;
	width: 250px;
	background-color: grey;
	color: #fff;
	text-align: left;
	border-radius: 4px;
	padding: 5px 8px;
	position: absolute;
	z-index: 1;
	bottom: 120%;
	left: 50%;
	transform: translateX(-50%);
	opacity: 0;
	transition: opacity 0.3s;
	font-size: 13px;
}

.tooltip-container:hover .media-info-tooltip-text {
	visibility: visible;
	opacity: 1;
}



