/* Pop-ups Personalizados — parte pública */
.psc-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	box-sizing: border-box;
	background: var(--psc-overlay, rgba(0, 0, 0, .6));
	opacity: 0;
	transition: opacity .2s ease;
}
.psc-overlay[hidden] { display: none !important; }
.psc-overlay.psc-visible { opacity: 1; }

.psc-modal {
	position: relative;
	box-sizing: border-box;
	max-width: 100%;
	max-height: calc(100vh - 32px);
	max-height: calc(100dvh - 32px);
	overflow: auto;
	line-height: 1.5;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
	transform: translateY(12px) scale(.98);
	transition: transform .2s ease;
}
.psc-visible .psc-modal { transform: none; }

.psc-modal .psc-close {
	position: absolute;
	top: 6px;
	right: 8px;
	margin: 0;
	padding: 4px 10px;
	background: none !important;
	border: 0 !important;
	box-shadow: none !important;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	opacity: .7;
}
.psc-modal .psc-close:hover,
.psc-modal .psc-close:focus-visible { opacity: 1; }

.psc-modal .psc-heading {
	margin: 0 0 .6em;
	padding: 0 24px;
	line-height: 1.2;
	font-weight: 700;
}
.psc-modal .psc-content,
.psc-modal .psc-content p { color: inherit; }
.psc-modal .psc-content > :first-child { margin-top: 0; }
.psc-modal .psc-content > :last-child { margin-bottom: 0; }
.psc-modal .psc-content img { max-width: 100%; height: auto; }

.psc-modal .psc-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 1.2em;
}

.psc-btn {
	display: inline-block;
	margin: 0;
	padding: .7em 1.4em;
	font-weight: 600;
	font-family: inherit;
	line-height: 1.2;
	text-decoration: none !important;
	text-transform: none;
	cursor: pointer;
	box-shadow: none;
	transition: filter .15s ease, transform .15s ease;
}
.psc-btn:hover { filter: brightness(.92); }
.psc-btn:active { transform: translateY(1px); }

.psc-modal .psc-sep { height: 0; background: none; opacity: 1; }
.psc-modal .psc-en .psc-heading { margin-top: 0; }
.psc-flag { display: inline-block; margin-right: .45em; vertical-align: middle; line-height: 0; position: relative; top: -.08em; }
.psc-flag svg { display: block; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); }
.psc-flag-line { margin-bottom: .5em; line-height: 0; }

.psc-btn.psc-float {
	position: fixed; right: 20px; bottom: 20px; z-index: 999990;
	box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
}
@media (max-width: 480px) { .psc-btn.psc-float { right: 12px; bottom: 12px; } }

html.psc-lock, html.psc-lock body { overflow: hidden; }

@media (max-width: 480px) {
	.psc-modal .psc-buttons .psc-btn { flex: 1 1 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
	.psc-overlay, .psc-modal, .psc-btn { transition: none; }
}
