/* ============================================================
   Popup "Inscríbete Ahora" — tarjeta flyer con chango en cuerda
   ============================================================ */
.jsa-popup {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: grid;
	place-items: center;
	padding: 20px;
}

.jsa-popup__overlay {
	position: absolute;
	inset: 0;
	background: rgba(4, 34, 43, .62);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	opacity: 0;
	transition: opacity .25s ease;
}

.jsa-popup--open .jsa-popup__overlay { opacity: 1; }

.jsa-popup__card {
	position: relative;
	width: min(440px, 94vw);
	background:
		radial-gradient(130% 90% at 85% 0%, rgba(53, 208, 232, .30) 0%, transparent 55%),
		linear-gradient(160deg, var(--jsa-teal) 0%, var(--jsa-deep) 90%);
	border: 4px solid var(--jsa-cream);
	border-radius: var(--jsa-radius);
	padding: 30px 26px 28px;
	overflow: visible;
	box-shadow: var(--jsa-shadow-float);
	opacity: 0;
	transform: scale(.7) translateY(46px);
	transition: opacity .3s ease, transform .38s cubic-bezier(.34, 1.56, .64, 1);
}

.jsa-popup--open .jsa-popup__card { opacity: 1; transform: scale(1) translateY(0); }

.jsa-popup__blob { opacity: .8; }
.jsa-popup__blob--1 { width: 130px; height: 130px; right: -30px; top: -26px; background: rgba(141, 198, 63, .32); }
.jsa-popup__blob--2 { width: 90px; height: 90px; left: -24px; bottom: 40px; background: rgba(255, 255, 255, .12); animation-delay: -4s; }

/* Chango en rappel colgando desde el borde superior */
.jsa-popup__mascot {
	position: absolute;
	top: -56px;
	right: 4px;
	width: 118px;
	height: auto;
	filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .35));
	animation: jsa-popup-swing 4.5s ease-in-out infinite;
	transform-origin: top center;
	pointer-events: none;
}

@keyframes jsa-popup-swing {
	0%, 100% { transform: rotate(-3deg); }
	50%      { transform: rotate(3deg); }
}

.jsa-popup__close {
	position: absolute;
	top: -14px;
	left: -14px;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border: 3px solid var(--jsa-cream) !important;
	border-radius: 50%;
	background: var(--jsa-coral) !important;
	color: #fff !important;
	font-family: var(--jsa-font-display);
	font-size: 22px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	padding: 0;
	box-shadow: 0 4px 0 rgba(0, 0, 0, .2);
	transition: transform .2s cubic-bezier(.34, 1.56, .64, 1);
}

.jsa-popup__close:hover,
.jsa-popup__close:focus,
.jsa-popup__close:active {
	background: var(--jsa-coral) !important;
	color: #fff !important;
	transform: scale(1.12) rotate(90deg);
}

.jsa-popup__body { position: relative; text-align: center; }

.jsa-popup__kicker {
	margin: 0 0 .3em;
	font-family: var(--jsa-font-body);
	font-weight: 700;
	font-size: .82rem;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--jsa-turq-soft);
}

.jsa-popup__title { margin: 0; }

.jsa-popup__title-line1 {
	display: block;
	font-size: clamp(2rem, 8vw, 2.9rem);
	color: var(--jsa-lime);
	text-shadow: 0 4px 0 rgba(0, 0, 0, .22);
}

.jsa-popup__title-line2 {
	display: block;
	font-size: clamp(1.7rem, 7vw, 2.5rem);
}

.jsa-popup__dates {
	display: inline-block;
	margin: .9em 0 0;
	padding: .3em 1.2em .38em;
	background: var(--jsa-card);
	border: 2px solid var(--jsa-turq);
	border-radius: 999px;
	font-family: var(--jsa-font-display);
	font-weight: 600;
	font-size: .92rem;
	color: var(--jsa-white);
	text-transform: uppercase;
	letter-spacing: .06em;
	transform: rotate(-1.5deg);
}

.jsa-popup__perks {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	list-style: none;
	margin: 14px 0 0;
	padding: 0;
}

.jsa-popup__perks li {
	font-family: var(--jsa-font-body);
	font-weight: 600;
	font-size: .8rem;
	color: var(--jsa-cream);
	background: rgba(255, 255, 255, .12);
	border-radius: 999px;
	padding: .28em .9em .34em;
}

.jsa-popup__price {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin: 16px 0 0;
}

.jsa-popup__price-big {
	font-family: var(--jsa-font-display);
	font-weight: 700;
	font-size: 3rem;
	line-height: 1;
	color: var(--jsa-white);
	text-shadow: 0 5px 0 rgba(0, 0, 0, .25);
	transform: rotate(-3deg);
}

.jsa-popup__price-note {
	text-align: left;
	font-family: var(--jsa-font-body);
	font-weight: 600;
	font-size: .88rem;
	line-height: 1.3;
	color: var(--jsa-turq-soft);
}

.jsa-popup__price-note strong { color: var(--jsa-lime); }

.jsa-popup__cta {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-top: 20px;
	padding: .72em 1.8em .8em;
	background: linear-gradient(180deg, var(--jsa-accent) 0%, var(--jsa-accent-deep) 100%);
	border: 3px solid var(--jsa-white);
	border-radius: 999px;
	font-family: var(--jsa-font-display);
	font-weight: 700;
	font-size: 1.28rem;
	color: var(--jsa-accent-ink) !important;
	text-decoration: none !important;
	text-transform: uppercase;
	letter-spacing: .02em;
	box-shadow: 0 7px 0 rgba(0, 0, 0, .25);
	transition: transform .22s cubic-bezier(.34, 1.56, .64, 1), box-shadow .22s ease;
	animation: jsa-wiggle 2.6s ease-in-out infinite;
}

.jsa-popup__cta:hover,
.jsa-popup__cta:focus-visible {
	animation-play-state: paused;
	transform: scale(1.06);
	box-shadow: 0 10px 0 rgba(0, 0, 0, .25);
	outline: none;
}

.jsa-popup__cta:active { transform: scale(.98) translateY(4px); box-shadow: 0 3px 0 rgba(0, 0, 0, .25); }

.jsa-popup__later {
	display: block;
	margin: 14px auto 0;
	background: rgba(255, 255, 255, .16) !important;
	border: 2px solid rgba(255, 255, 255, .4) !important;
	border-radius: 999px;
	font-family: var(--jsa-font-display);
	font-weight: 600;
	font-size: .88rem;
	letter-spacing: .02em;
	color: #fff !important;
	text-decoration: none;
	cursor: pointer;
	padding: .45em 1.4em .55em;
	transition: background .2s ease, transform .2s ease;
}

.jsa-popup__later:hover,
.jsa-popup__later:focus {
	background: rgba(255, 255, 255, .28) !important;
	color: #fff !important;
	transform: scale(1.04);
}

@media (max-width: 480px) {
	.jsa-popup__mascot { width: 90px; top: -44px; }
	.jsa-popup__card { padding: 26px 18px 24px; }
}

@media (prefers-reduced-motion: reduce) {
	.jsa-popup__card { transition: opacity .2s ease; transform: none; }
	.jsa-popup__mascot, .jsa-popup__cta { animation: none; }
}
