.pcp-lock { overflow: hidden; }

.pcp {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	opacity: 0;
	transition: opacity .25s ease;
}
.pcp[hidden] { display: none; }
.pcp.is-open { opacity: 1; }

.pcp-overlay {
	position: absolute;
	inset: 0;
	background: var(--pcp-overlay, rgba(0, 0, 0, .7));
}

.pcp-dialog {
	position: relative;
	width: 100%;
	max-width: var(--pcp-max, 720px);
	max-height: 100%;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .4);
	overflow: hidden;
	outline: none;
	transform: translateY(12px) scale(.98);
	transition: transform .25s ease;
}
.pcp.is-open .pcp-dialog { transform: none; }

.pcp-close {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 5;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, .55);
	color: #fff;
	font-size: 24px;
	line-height: 36px;
	text-align: center;
	cursor: pointer;
}
.pcp-close:hover, .pcp-close:focus { background: rgba(0, 0, 0, .85); }

.pcp-carousel { position: relative; }
.pcp-viewport { overflow: hidden; }
.pcp-track { display: flex; transition: transform .5s ease; }

.pcp-slide {
	position: relative;
	flex: 0 0 100%;
	min-width: 0;
}
.pcp-slide .pcp-link { display: block; }
.pcp-img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 85vh;
	object-fit: contain;
	margin: 0 auto;
}

.pcp-caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 28px 18px 14px;
	color: #fff;
	font-size: 15px;
	line-height: 1.4;
	background: linear-gradient(to top, rgba(0, 0, 0, .7), rgba(0, 0, 0, 0));
	pointer-events: none;
}

/* Efecto fade */
.pcp-fx-fade .pcp-track { display: grid; transition: none; }
.pcp-fx-fade .pcp-slide {
	grid-area: 1 / 1;
	opacity: 0;
	visibility: hidden;
	transition: opacity .5s ease, visibility .5s;
}
.pcp-fx-fade .pcp-slide.is-active { opacity: 1; visibility: visible; }

/* Flechas */
.pcp-arrow {
	position: absolute;
	top: 50%;
	z-index: 4;
	width: 40px;
	height: 40px;
	padding: 0;
	margin-top: -20px;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, .5);
	color: #fff;
	font-size: 18px;
	line-height: 40px;
	text-align: center;
	cursor: pointer;
}
.pcp-arrow:hover, .pcp-arrow:focus { background: rgba(0, 0, 0, .8); }
.pcp-arrow:disabled { opacity: .3; cursor: default; }
.pcp-prev { left: 10px; }
.pcp-next { right: 10px; }

/* Puntos */
.pcp-dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 10px;
	z-index: 4;
	display: flex;
	justify-content: center;
	gap: 8px;
	pointer-events: none;
}
.pcp-dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 2px solid #fff;
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
	pointer-events: auto;
	box-shadow: 0 0 4px rgba(0, 0, 0, .5);
}
.pcp-dot.is-active { background: #fff; }

.pcp-open-btn {
	display: inline-block;
	padding: 10px 20px;
	border: 0;
	border-radius: 6px;
	background: #2271b1;
	color: #fff;
	font-size: 16px;
	cursor: pointer;
}
.pcp-open-btn:hover { background: #135e96; }

@media (max-width: 600px) {
	.pcp { padding: 8px; }
	.pcp-arrow { width: 34px; height: 34px; line-height: 34px; margin-top: -17px; }
	.pcp-caption { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
	.pcp, .pcp-dialog, .pcp-track, .pcp-fx-fade .pcp-slide { transition: none; }
}
