/* MEDIPOHDS Core · Visor de documentos */
.mdp-visor {
	--mdp-tinta: #102745;
	--mdp-azul: #22568E;
	--mdp-azul-oscuro: #163B68;
	--mdp-rojo: #EF2F37;
	--mdp-rojo-suave: #FFF0F1;
	--mdp-linea: #DCE8F2;
	width: min(1100px, 94vw);
	height: min(92vh, 1000px);
	max-width: none;
	max-height: none;
	padding: 0;
	border: 0;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 30px 80px rgba(11, 26, 51, 0.4);
	font-family: inherit;
}
.mdp-visor[open] { display: flex; flex-direction: column; }
.mdp-visor::backdrop { background: rgba(13, 32, 70, 0.7); backdrop-filter: blur(3px); }
.mdp-visor-abierto { overflow: hidden; }

.mdp-visor__barra {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 14px 18px;
	border-bottom: 1px solid var(--mdp-linea);
	background: #fff;
}
.mdp-visor__tipo {
	flex: none;
	width: 34px;
	height: 40px;
	border-radius: 8px;
	display: grid;
	place-items: center;
	background: var(--mdp-rojo-suave);
	color: var(--mdp-rojo);
	font-size: 9px;
	font-weight: 800;
	letter-spacing: 0.04em;
}
.mdp-visor__titulo {
	flex: 1;
	min-width: 0;
	font-size: 16px;
	font-weight: 700;
	color: var(--mdp-tinta);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.mdp-visor__abrir {
	font-size: 14px;
	font-weight: 700;
	color: var(--mdp-azul);
	text-decoration: underline;
}
.mdp-visor__descargar {
	font-size: 13px;
	font-weight: 740;
	color: #fff;
	background: linear-gradient(90deg, #4F83DA 0%, #3D4293 100%);
	border-radius: 10px;
	padding: 10px 16px;
	text-decoration: none;
}
.mdp-visor__abrir:hover { color: var(--mdp-azul-oscuro); }
.mdp-visor__descargar:hover { background: linear-gradient(90deg, #3D4293 0%, #4F83DA 100%); color: #fff; }
.mdp-visor__cerrar {
	flex: none;
	width: 40px;
	height: 40px;
	padding: 0;
	border-radius: 10px;
	border: 1px solid var(--mdp-linea);
	background: #fff;
	color: var(--mdp-tinta);
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
}
.mdp-visor__cerrar:hover { background: #F2F6FB; color: var(--mdp-tinta); }
.mdp-visor__marco { flex: 1; width: 100%; border: 0; background: #525659; }

@media (max-width: 767px) {
	.mdp-visor { width: 100vw; height: 100dvh; border-radius: 0; }
	.mdp-visor__barra { gap: 10px; padding: 10px 12px; }
	.mdp-visor__tipo, .mdp-visor__abrir { display: none; }
}
