/* 04 PDF Viewer for Elementor */

.pdf04 {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
}

.pdf04-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
}

.pdf04-page {
	position: relative;
	width: 100%;
	background: #fff;
	box-shadow: 0 1px 4px rgba( 0, 0, 0, 0.12 );
}

.pdf04-canvas {
	display: block;
	width: 100%;
	height: auto;
}

/* Capa de enlaces clicables */
.pdf04-links {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.pdf04-link {
	position: absolute;
	pointer-events: auto;
	cursor: pointer;
	border-radius: 2px;
	transition: background 0.15s ease;
}

.pdf04-link:hover {
	background: rgba( 37, 99, 235, 0.18 );
}

/* Loader */
.pdf04-loader {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 160px;
	width: 100%;
}

.pdf04-spin {
	width: 28px;
	height: 28px;
	border: 3px solid rgba( 0, 0, 0, 0.15 );
	border-top-color: rgba( 0, 0, 0, 0.55 );
	border-radius: 50%;
	animation: pdf04-rotate 0.8s linear infinite;
}

@keyframes pdf04-rotate {
	to { transform: rotate( 360deg ); }
}

/* Indicador de página flotante */
.pdf04-indicator {
	position: sticky;
	bottom: 14px;
	align-self: center;
	margin-top: -34px;
	padding: 4px 12px;
	font-size: 13px;
	line-height: 1.4;
	color: #fff;
	background: rgba( 0, 0, 0, 0.6 );
	border-radius: 999px;
	pointer-events: none;
	z-index: 2;
}

/* Estados de editor / error */
.pdf04-empty,
.pdf04-error {
	padding: 22px;
	text-align: center;
	font-size: 14px;
	color: #555;
	background: rgba( 0, 0, 0, 0.04 );
	border: 1px dashed rgba( 0, 0, 0, 0.18 );
	border-radius: 8px;
}

.pdf04-error a {
	text-decoration: underline;
}
