/**
 * Portada Pop - estilos del popup.
 */

.pp-overlay {
	position: fixed;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(10, 15, 30, 0.55);
	z-index: 999999;
	padding: 16px;
}

.pp-modal {
	position: relative;
	width: min(600px, calc(100vw - 32px));
	max-height: calc(100vh - 32px);
	transform: scale(0.98);
	opacity: 0;
	transition: opacity 0.3s ease, transform 0.4s ease;
	line-height: 0;
}

.pp-overlay.pp-open .pp-modal {
	transform: scale(1);
	opacity: 1;
}

.pp-modal img {
	display: block;
	width: 100%;
	height: auto;
	max-height: calc(100vh - 32px);
	object-fit: contain;
	border-radius: 12px;
}

.pp-link {
	display: block;
	line-height: 0;
}

.pp-close {
	position: absolute;
	top: -14px;
	right: -14px;
	width: 32px;
	height: 32px;
	border: none;
	border-radius: 50%;
	background: #fff;
	color: #123b8e;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10;
	font-weight: 400;
	padding: 0;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.pp-close:hover,
.pp-close:focus {
	color: #08286a;
	outline: 2px solid #1358e6;
	outline-offset: 2px;
}

@media (max-width: 768px) {
	.pp-close {
		width: 44px;
		height: 44px;
		font-size: 28px;
		top: -10px;
		right: -10px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pp-modal {
		transition: none;
	}
}
