/* Modal PDF — documentos del footer */
.jph-doc-modal {
	position: fixed;
	inset: 0;
	z-index: 10050;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.jph-doc-modal.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.jph-doc-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(6, 10, 18, 0.72);
	backdrop-filter: blur(4px);
}

.jph-doc-modal__panel {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	width: 80vw;
	height: 80vh;
	max-width: calc(100vw - 24px);
	max-height: calc(100vh - 24px);
	background: #0f1624;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 12px;
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
	overflow: hidden;
	transform: translateY(12px) scale(0.98);
	transition: transform 0.25s ease;
}

.jph-doc-modal.is-open .jph-doc-modal__panel {
	transform: translateY(0) scale(1);
}

.jph-doc-modal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex: 0 0 auto;
	padding: 14px 18px;
	background: #121c2e;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.jph-doc-modal__title {
	margin: 0;
	flex: 1 1 auto;
	min-width: 0;
	color: #fff;
	font-family: var(--jph-font-title, 'Poppins', sans-serif);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.jph-doc-modal__close {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: rgba(255, 255, 255, 0.82);
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.jph-doc-modal__close:hover,
.jph-doc-modal__close:focus {
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	outline: none;
}

.jph-doc-modal__body {
	flex: 1 1 auto;
	min-height: 0;
	background: #1a2435;
}

.jph-doc-modal__iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	background: #fff;
}

body.jph-doc-modal-open {
	overflow: hidden;
}

@media (max-width: 767px) {
	.jph-doc-modal__panel {
		width: 94vw;
		height: 88vh;
		border-radius: 10px;
	}

	.jph-doc-modal__header {
		padding: 12px 14px;
	}

	.jph-doc-modal__title {
		font-size: 14px;
	}
}
