/**
 * Link Shortcode Tracker - Popup accesible y configurable.
 *
 * Todas las propiedades visuales usan variables con valores de respaldo para
 * mantener un resultado consistente incluso sin configuración personalizada.
 */

.lst-popup-overlay {
	position: fixed;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 100vw;
	height: 100vh;
	height: 100dvh;
	padding: clamp( 12px, 3vw, 32px );
	overflow: hidden;
	overscroll-behavior: none;
	background: rgba( 15, 23, 42, 0.68 );
	z-index: 100000;
	opacity: 0;
	visibility: hidden;
	transition: opacity 180ms ease, visibility 180ms ease;
}

@supports ( backdrop-filter: blur( 4px ) ) {
	.lst-popup-overlay {
		backdrop-filter: blur( 4px );
	}
}

.lst-popup-overlay.is-visible {
	opacity: 1;
	visibility: visible;
}

.lst-popup {
	box-sizing: border-box;
	width: min( 100%, var( --lst-popup-width, 480px ) );
	max-width: var( --lst-popup-width, 480px );
	min-height: 0;
	max-height: calc( 100vh - clamp( 24px, 6vw, 64px ) );
	max-height: calc( var( --lst-visual-height, 100dvh ) - clamp( 24px, 6vw, 64px ) );
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
	scroll-padding-block: 20px 96px;
	touch-action: pan-y;
	padding: clamp( 22px, 4vw, 32px );
	color: var( --lst-popup-text, #1e293b );
	background: var( --lst-popup-background, #ffffff );
	border: var( --lst-popup-border-width, 1px ) solid var( --lst-popup-border, #e2e8f0 );
	border-radius: var( --lst-popup-radius, 16px );
	box-shadow: 0 24px 80px rgba( 15, 23, 42, 0.3 ), 0 8px 24px rgba( 15, 23, 42, 0.14 );
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.5;
	transform: translateY( 12px ) scale( 0.985 );
	transition: transform 180ms ease;
}
.lst-popup-overlay.is-visible .lst-popup {
	transform: translateY( 0 ) scale( 1 );
}

.lst-popup *,
.lst-popup *::before,
.lst-popup *::after {
	box-sizing: border-box;
	max-width: 100%;
}

.lst-popup__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 18px;
	margin: 0 0 10px;
}

.lst-popup__title {
	margin: 0;
	padding-top: 2px;
	color: inherit;
	font-size: clamp( 1.4rem, 2.5vw, 1.8rem );
	font-weight: 750;
	letter-spacing: -0.025em;
	line-height: 1.2;
	overflow-wrap: anywhere;
}

.lst-popup__description {
	margin: 0 0 22px;
	color: inherit;
	font-size: 15px;
	line-height: 1.55;
	opacity: 0.76;
	overflow-wrap: anywhere;
}

.lst-popup__close {
	flex: 0 0 42px;
	display: inline-grid;
	place-items: center;
	width: 42px;
	height: 42px;
	min-width: 42px;
	margin: -8px -8px 0 auto;
	padding: 0;
	color: inherit;
	background: transparent;
	border: 1px solid transparent;
	border-radius: 999px;
	font: inherit;
	font-size: 28px;
	font-weight: 300;
	line-height: 1;
	cursor: pointer;
	transition: background-color 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.lst-popup__close:hover {
	background: rgba( 127, 127, 127, 0.12 );
	border-color: var( --lst-popup-border, #e2e8f0 );
	transform: rotate( 4deg );
}

.lst-popup__close:focus-visible,
.lst-popup__input:focus-visible,
.lst-popup__submit:focus-visible {
	outline: 3px solid var( --lst-popup-accent, #2271b1 );
	outline-offset: 3px;
}

.lst-popup__form {
	display: block;
	margin: 0;
}

.lst-popup__field {
	margin: 0 0 18px;
}

.lst-popup__label {
	display: block;
	margin: 0 0 7px;
	color: inherit;
	font-size: 0.9rem;
	font-weight: 650;
	letter-spacing: 0.005em;
	overflow-wrap: anywhere;
}

.lst-popup__required {
	color: #d63638;
}

.lst-popup__input {
	display: block;
	width: 100%;
	min-height: 48px;
	margin: 0;
	padding: 11px 14px;
	color: var( --lst-popup-field-text, #0f172a );
	background: var( --lst-popup-field-background, #ffffff );
	border: 1px solid var( --lst-popup-field-border, #94a3b8 );
	border-radius: 9px;
	box-shadow: 0 1px 2px rgba( 15, 23, 42, 0.05 );
	font: inherit;
	font-size: 16px;
	line-height: 1.4;
	transition: border-color 140ms ease, box-shadow 140ms ease;
}

.lst-popup__input:hover {
	border-color: var( --lst-popup-accent, #2271b1 );
}

.lst-popup__input:focus,
.lst-popup__input:focus-visible {
	border-color: var( --lst-popup-accent, #2271b1 );
	box-shadow: 0 0 0 1px var( --lst-popup-accent, #2271b1 );
}

.lst-popup__error {
	display: block;
	min-height: 1.2em;
	margin: 5px 0 0;
	color: #b42318;
	font-size: 0.82rem;
	font-weight: 550;
	line-height: 1.35;
	overflow-wrap: anywhere;
}

.lst-popup__field.has-error .lst-popup__input,
.lst-popup__input[aria-invalid="true"] {
	border-color: #d63638;
}

.lst-popup__actions {
	display: flex;
	align-items: center;
	margin-top: 6px;
}

.lst-popup__actions--left {
	justify-content: flex-start;
}

.lst-popup__actions--center {
	justify-content: center;
}

.lst-popup__actions--right {
	justify-content: flex-end;
}

.lst-popup__submit {
	min-height: 48px;
	padding: 11px 24px;
	color: var( --lst-popup-button-text, #ffffff );
	background: var( --lst-popup-button-background, #2271b1 );
	border: 2px solid transparent;
	border-radius: var( --lst-popup-button-radius, 8px );
	box-shadow: 0 5px 14px rgba( 15, 23, 42, 0.16 );
	font: inherit;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.25;
	text-align: center;
	cursor: pointer;
	transition: background-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.lst-popup__submit:hover {
	background: var( --lst-popup-button-hover, #135e96 );
	box-shadow: 0 7px 18px rgba( 15, 23, 42, 0.22 );
	transform: translateY( -1px );
}

.lst-popup__submit:active {
	box-shadow: 0 2px 8px rgba( 15, 23, 42, 0.18 );
	transform: translateY( 0 );
}

.lst-popup__submit--full {
	width: 100%;
}

.lst-popup__submit--auto {
	width: auto;
}

@media ( max-width: 480px ) {
	.lst-popup-overlay {
		align-items: flex-start;
		padding: 8px;
		padding-top: max( 8px, env( safe-area-inset-top ) );
		padding-bottom: max( 8px, env( safe-area-inset-bottom ) );
	}

	.lst-popup {
		width: 100%;
		max-width: 100%;
		max-height: 100%;
		padding: 22px 18px;
		border-bottom-right-radius: max( var( --lst-popup-radius, 16px ), 12px );
		border-bottom-left-radius: max( var( --lst-popup-radius, 16px ), 12px );
		scroll-padding-block: 18px 112px;
	}

	.lst-popup__input {
		scroll-margin-block: 18px 112px;
	}

	.lst-popup__actions {
		position: sticky;
		bottom: 0;
		z-index: 2;
		padding: 10px 0 2px;
		background: var( --lst-popup-background, #ffffff );
	}

	.lst-popup__description {
		margin-right: 0;
	}
}

@media ( max-width: 340px ) {
	.lst-popup {
		padding-inline: 14px;
	}

	.lst-popup__submit--auto {
		width: 100%;
	}
}

@media ( prefers-reduced-motion: reduce ) {
	.lst-popup-overlay,
	.lst-popup,
	.lst-popup__close,
	.lst-popup__input,
	.lst-popup__submit {
		scroll-behavior: auto;
		transition: none;
	}
}

@media ( forced-colors: active ) {
	.lst-popup,
	.lst-popup__input,
	.lst-popup__close,
	.lst-popup__submit {
		border: 1px solid CanvasText;
	}
}

/*
 * Aislamiento del modal: todos los resets permanecen dentro de data-lst-popup
 * y tienen especificidad suficiente para prevalecer sobre kits de Elementor.
 */
.lst-popup-overlay[data-lst-popup] .lst-popup__title,
.lst-popup-overlay[data-lst-popup] .lst-popup__description,
.lst-popup-overlay[data-lst-popup] .lst-popup__label {
	font-family: inherit;
	text-transform: none;
	text-decoration: none;
}

.lst-popup-overlay[data-lst-popup] .lst-popup__form {
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	border: 0 !important;
}

.lst-popup-overlay[data-lst-popup] .lst-popup__close {
	appearance: none !important;
	flex: 0 0 var( --lst-popup-close-size, 42px ) !important;
	display: inline-grid !important;
	place-items: center !important;
	width: var( --lst-popup-close-size, 42px ) !important;
	height: var( --lst-popup-close-size, 42px ) !important;
	min-width: var( --lst-popup-close-size, 42px ) !important;
	min-height: var( --lst-popup-close-size, 42px ) !important;
	margin: -8px -8px 0 auto !important;
	padding: 0 !important;
	color: var( --lst-popup-close-color, #1e293b ) !important;
	background: var( --lst-popup-close-background, transparent ) !important;
	background-image: none !important;
	border: 1px solid transparent !important;
	border-radius: var( --lst-popup-close-radius, 64px ) !important;
	box-shadow: none !important;
	font-family: inherit !important;
	font-size: 28px !important;
	font-weight: 300 !important;
	line-height: 1 !important;
	letter-spacing: normal !important;
	text-align: center !important;
	text-decoration: none !important;
	text-transform: none !important;
}

.lst-popup-overlay[data-lst-popup] .lst-popup__close:hover {
	color: var( --lst-popup-close-color, #1e293b ) !important;
	background: var( --lst-popup-close-hover, #e2e8f0 ) !important;
	border-color: var( --lst-popup-border, #e2e8f0 ) !important;
}

.lst-popup-overlay[data-lst-popup] .lst-popup__field {
	margin: 0 0 var( --lst-popup-field-spacing, 18px ) !important;
}

.lst-popup-overlay[data-lst-popup] .lst-popup__label {
	display: block;
	margin: 0 0 7px !important;
	color: inherit !important;
	letter-spacing: 0.005em !important;
}

.lst-popup-overlay[data-lst-popup] .lst-popup__label--sr-only {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect( 0, 0, 0, 0 ) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.lst-popup-overlay[data-lst-popup] .lst-popup__input {
	appearance: none !important;
	display: block !important;
	width: 100% !important;
	min-height: 48px !important;
	margin: 0 !important;
	padding: 11px 14px !important;
	color: var( --lst-popup-field-text, #0f172a ) !important;
	background: var( --lst-popup-field-background, #ffffff ) !important;
	background-image: none !important;
	border: 1px solid var( --lst-popup-field-border, #94a3b8 ) !important;
	border-radius: var( --lst-popup-field-radius, 9px ) !important;
	box-shadow: 0 1px 2px rgba( 15, 23, 42, 0.05 ) !important;
	font-family: inherit !important;
	font-size: 16px !important;
	font-weight: 400 !important;
	line-height: 1.4 !important;
	letter-spacing: normal !important;
	text-align: left !important;
	text-decoration: none !important;
	text-transform: none !important;
}

.lst-popup-overlay[data-lst-popup] .lst-popup__input::placeholder {
	color: var( --lst-popup-field-text, #0f172a ) !important;
	opacity: 0.62 !important;
	text-transform: none !important;
}

.lst-popup-overlay[data-lst-popup] .lst-popup__input:hover,
.lst-popup-overlay[data-lst-popup] .lst-popup__input:focus,
.lst-popup-overlay[data-lst-popup] .lst-popup__input:focus-visible {
	border-color: var( --lst-popup-accent, #2271b1 ) !important;
}

.lst-popup-overlay[data-lst-popup] .lst-popup__field.has-error .lst-popup__input,
.lst-popup-overlay[data-lst-popup] .lst-popup__input[aria-invalid="true"] {
	border-color: #d63638 !important;
}

.lst-popup-overlay[data-lst-popup] .lst-popup__error:empty {
	display: none;
}

.lst-popup-overlay[data-lst-popup] .lst-popup__submit {
	appearance: none !important;
	width: auto !important;
	min-height: 48px !important;
	margin: 0 !important;
	padding: 11px 24px !important;
	color: var( --lst-popup-button-text, #ffffff ) !important;
	background: var( --lst-popup-button-background, #2271b1 ) !important;
	background-image: none !important;
	border: 2px solid transparent !important;
	border-radius: var( --lst-popup-button-radius, 8px ) !important;
	box-shadow: 0 5px 14px rgba( 15, 23, 42, 0.16 ) !important;
	font-family: inherit !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	line-height: 1.25 !important;
	letter-spacing: normal !important;
	text-align: center !important;
	text-decoration: none !important;
	text-transform: none !important;
}

.lst-popup-overlay[data-lst-popup] .lst-popup__submit:hover {
	color: var( --lst-popup-button-text, #ffffff ) !important;
	background: var( --lst-popup-button-hover, #135e96 ) !important;
}

.lst-popup-overlay[data-lst-popup] .lst-popup__submit--full {
	width: 100% !important;
}

.lst-popup-overlay[data-lst-popup] .lst-popup__title {
	margin: 0 !important;
	padding-top: 2px !important;
	color: inherit !important;
	font-size: clamp( 22px, 2.5vw, 29px ) !important;
	font-weight: 750 !important;
	letter-spacing: -0.025em !important;
	line-height: 1.2 !important;
}

.lst-popup-overlay[data-lst-popup] .lst-popup__description {
	margin: 0 0 22px !important;
	color: inherit !important;
	font-size: 15px !important;
	font-weight: 400 !important;
	line-height: 1.55 !important;
	letter-spacing: normal !important;
}

.lst-popup-overlay[data-lst-popup] .lst-popup__label {
	font-size: 14.4px !important;
	font-weight: 650 !important;
	line-height: 1.5 !important;
	text-align: left !important;
}

.lst-popup-overlay[data-lst-popup] .lst-popup__error {
	font-family: inherit !important;
	font-size: 13.12px !important;
	text-transform: none !important;
}

@media ( max-width: 480px ) {
	.lst-popup-overlay[data-lst-popup] .lst-popup__description {
		margin-right: 0 !important;
	}
}

@media ( max-width: 340px ) {
	.lst-popup-overlay[data-lst-popup] .lst-popup__submit--auto {
		width: 100% !important;
	}
}

@media ( forced-colors: active ) {
	.lst-popup-overlay[data-lst-popup] .lst-popup__input,
	.lst-popup-overlay[data-lst-popup] .lst-popup__close,
	.lst-popup-overlay[data-lst-popup] .lst-popup__submit {
		border-color: CanvasText !important;
	}
}

html.lst-popup-page-locked,
body.lst-popup-page-locked {
	overflow: hidden !important;
	overscroll-behavior: none;
}