/**
 * Launch popup — tema azul + relámpago contenido en el panel
 */

@keyframes launchPopupBorderPulse {
	0%, 100% { opacity: 0.5; }
	50% { opacity: 1; }
}

@keyframes launchArtFlash {
	0%, 7.6%, 12%, 40.8%, 44.2%, 72.8%, 75%, 100% { opacity: 0; }
	8% { opacity: 0.92; }
	8.7% { opacity: 0.14; }
	9.2% { opacity: 0.78; }
	10.4% { opacity: 0.06; }
	10.9% { opacity: 0.38; }
	41.2% { opacity: 0.68; }
	41.8% { opacity: 0.1; }
	42.4% { opacity: 0.95; }
	73.2% { opacity: 0.42; }
	73.8% { opacity: 0.08; }
}

@keyframes launchBoltA {
	0%, 7.8%, 11.4%, 41%, 43.8%, 100% { opacity: 0; }
	8% { opacity: 1; }
	8.6% { opacity: 0.18; }
	9.1% { opacity: 0.96; }
	41.3% { opacity: 0.8; }
	42% { opacity: 0.12; }
	42.5% { opacity: 1; }
}

@keyframes launchBoltB {
	0%, 8.5%, 11.2%, 41.6%, 44%, 73%, 74.6%, 100% { opacity: 0; }
	8.7% { opacity: 0.92; }
	9.5% { opacity: 0.12; }
	10% { opacity: 0.7; }
	41.9% { opacity: 1; }
	43% { opacity: 0; }
	73.3% { opacity: 0.85; }
}

@keyframes launchBoltC {
	0%, 9%, 11.6%, 42%, 44%, 73.1%, 74.8%, 100% { opacity: 0; }
	9.3% { opacity: 0.88; }
	10.2% { opacity: 0; }
	42.3% { opacity: 0.75; }
	43.2% { opacity: 0; }
	73.4% { opacity: 0.7; }
}

@keyframes launchPopupDatePulse {
	0%, 100% { text-shadow: 0 0 12px rgba(107, 180, 234, 0.35); }
	50% { text-shadow: 0 0 24px rgba(107, 180, 234, 0.7), 0 0 40px rgba(74, 154, 216, 0.35); }
}

@keyframes launchPopupBtnPulse {
	0%, 100% { box-shadow: 0 0 16px rgba(74, 154, 216, 0.35); }
	50% { box-shadow: 0 0 26px rgba(107, 180, 234, 0.55); }
}

body.launch-popup-open {
	overflow: hidden;
}

.launch-popup {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.launch-popup.is-visible {
	visibility: visible;
	opacity: 1;
	pointer-events: auto;
}

.launch-popup-backdrop {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: rgba(4, 5, 7, 0.84);
	backdrop-filter: blur(6px);
}

.launch-popup-dialog {
	position: relative;
	z-index: 2;
	pointer-events: auto;
	display: flex;
	flex-direction: row;
	width: min(860px, 100%);
	min-height: 470px;
	overflow: hidden;
	border: 1px solid rgba(107, 180, 234, 0.5);
	border-radius: 8px;
	background: #111419;
	color: #fff;
	box-shadow: 0 28px 80px rgba(0, 0, 0, 0.65), 0 0 35px rgba(74, 154, 216, 0.15);
	transform: translateY(16px) scale(0.98);
	transition: transform 0.25s ease;
	isolation: isolate;
}

.launch-popup-dialog::before {
	content: "";
	position: absolute;
	inset: -1px;
	z-index: -1;
	border-radius: 9px;
	pointer-events: none;
	background: linear-gradient(135deg, rgba(74, 154, 216, 0.55), rgba(180, 220, 255, 0.12), rgba(42, 106, 148, 0.45));
	animation: launchPopupBorderPulse 3s ease-in-out infinite;
}

.launch-popup.is-visible .launch-popup-dialog {
	transform: none;
}

.launch-popup-x {
	position: absolute;
	top: 13px;
	right: 13px;
	z-index: 10;
	width: 34px;
	height: 34px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 50%;
	background: rgba(8, 9, 11, 0.8);
	color: #d8dade;
	cursor: pointer;
}

.launch-popup-x:hover {
	color: #fff;
	border-color: #4A9AD8;
	box-shadow: 0 0 12px rgba(74, 154, 216, 0.4);
}

.launch-popup-art {
	position: relative;
	flex: 0 0 54%;
	min-width: 0;
	min-height: 470px;
	overflow: hidden;
	background: #090a0c center/cover no-repeat;
}

.launch-popup-art::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background:
		radial-gradient(ellipse 130% 110% at 100% 0%,
			rgba(236, 246, 255, 0.62) 0%,
			rgba(180, 220, 255, 0.34) 22%,
			rgba(74, 154, 216, 0.16) 48%,
			rgba(74, 154, 216, 0.04) 72%,
			transparent 88%);
	opacity: 0;
	animation: launchArtFlash 6.6s linear infinite;
}

.launch-popup-art::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 3;
	background: linear-gradient(90deg, transparent 70%, #111419 100%);
	pointer-events: none;
}

.launch-popup-fx {
	position: absolute;
	inset: 0;
	z-index: 2;
	overflow: hidden;
	pointer-events: none;
}

.launch-popup-lightning {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	fill: none;
}

.launch-popup-lightning .launch-bolt {
	fill: none;
	stroke: #eef6ff;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
	opacity: 0;
	filter:
		drop-shadow(0 0 4px rgba(236, 246, 255, 0.95))
		drop-shadow(0 0 12px rgba(107, 180, 234, 0.85))
		drop-shadow(0 0 22px rgba(74, 154, 216, 0.65));
}

.launch-popup-lightning .launch-bolt-a,
.launch-popup-lightning .launch-bolt-a-branch {
	animation: launchBoltA 6.6s linear infinite;
}

.launch-popup-lightning .launch-bolt-a-branch,
.launch-popup-lightning .launch-bolt-b-branch {
	stroke-width: 1.15;
}

.launch-popup-lightning .launch-bolt-b,
.launch-popup-lightning .launch-bolt-b-branch {
	animation: launchBoltB 6.6s linear infinite;
}

.launch-popup-lightning .launch-bolt-c {
	stroke-width: 1.35;
	animation: launchBoltC 6.6s linear infinite;
}

.launch-popup-glow {
	position: absolute;
	top: -18%;
	right: -12%;
	width: 240px;
	height: 240px;
	border-radius: 50%;
	background: rgba(180, 220, 255, 0.42);
	filter: blur(42px);
	opacity: 0;
	animation: launchArtFlash 6.6s linear infinite;
}

.launch-popup-glow-secondary {
	top: 22%;
	right: 18%;
	left: auto;
	bottom: auto;
	width: 140px;
	height: 140px;
	background: rgba(107, 180, 234, 0.28);
}

.launch-popup-art-fallback {
	position: relative;
	z-index: 4;
	height: 100%;
	min-height: 470px;
	padding: 42px 34px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	background:
		radial-gradient(circle at 20% 20%, rgba(74, 154, 216, 0.2), transparent 45%),
		linear-gradient(145deg, rgba(8, 10, 16, 0.95), rgba(4, 6, 10, 0.98));
}

.launch-popup-art-kicker {
	margin: 0 0 8px;
	color: #6BB4EA;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.18em;
}

.launch-popup-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 14px;
	padding: 10px 14px;
	max-width: 200px;
}

.launch-popup-logo img {
	display: block;
	width: min(160px, 72%);
	height: auto;
	max-height: 90px;
	object-fit: contain;
	filter: drop-shadow(0 0 18px rgba(74, 154, 216, 0.45));
}

.launch-popup-art-overlay {
	position: absolute;
	inset: 0;
	z-index: 4;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 0;
	padding: 20px;
	background: transparent;
}

.launch-popup-art-overlay .launch-popup-logo {
	margin: 0;
	padding: 14px 18px;
	border-radius: 12px;
	background: rgba(6, 8, 12, 0.55);
	border: 1px solid rgba(107, 180, 234, 0.35);
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.launch-popup-art-day {
	margin: 0;
	color: #fff;
	font-size: clamp(72px, 10vw, 110px);
	font-weight: 900;
	line-height: 0.9;
	animation: launchPopupDatePulse 3s ease-in-out infinite;
}

.launch-popup-art-month {
	margin: 0;
	color: #fff;
	font-size: clamp(28px, 4vw, 42px);
	font-weight: 800;
	letter-spacing: 0.08em;
}

.launch-popup-art-year {
	margin: 10px 0 0;
	color: #9aa3ad;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: 0.35em;
}

.launch-popup-content {
	position: relative;
	flex: 1 1 46%;
	min-width: 0;
	padding: 58px 42px 46px 34px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	background: #111419;
}

.launch-popup-eyebrow {
	margin-bottom: 9px;
	color: #6BB4EA;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.18em;
}

.launch-popup-eyebrow i {
	margin-right: 6px;
	color: #b4dcff;
}

.launch-popup-content h2 {
	margin: 0 0 15px;
	color: #fff;
	font-size: 27px;
	font-weight: 800;
	line-height: 1.18;
}

.launch-popup-content p {
	margin: 0 0 25px;
	color: #b9bcc1;
	font-size: 13px;
	line-height: 1.7;
}

.launch-popup-actions {
	position: relative;
	z-index: 5;
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.launch-popup-actions a,
.launch-popup-actions button {
	position: relative;
	z-index: 1;
	height: 43px;
	padding: 0 18px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
	font-size: 11px;
	font-weight: 800;
	text-decoration: none;
	cursor: pointer;
	pointer-events: auto;
}

.launch-popup-primary {
	border: 1px solid #4A9AD8;
	background: linear-gradient(180deg, #4A9AD8, #2a6a94);
	color: #fff !important;
	animation: launchPopupBtnPulse 2.8s ease-in-out infinite;
}

.launch-popup-primary:hover,
.launch-popup-primary:focus {
	color: #fff !important;
}

.launch-popup-primary i {
	margin-right: 8px;
	font-size: 16px;
}

.launch-popup-actions button {
	border: 1px solid #44484e;
	background: transparent;
	color: #c7c9cd;
}

.launch-popup-actions button:hover {
	border-color: #777b81;
	color: #fff;
}

@media (prefers-reduced-motion: reduce) {
	.launch-popup-dialog::before,
	.launch-popup-art::before,
	.launch-popup-lightning .launch-bolt,
	.launch-popup-glow,
	.launch-popup-art-day,
	.launch-popup-primary {
		animation: none !important;
	}

	.launch-popup-art::before,
	.launch-popup-glow,
	.launch-popup-lightning .launch-bolt {
		opacity: 0 !important;
	}
}

@media (max-width: 700px) {
	.launch-popup {
		padding: 12px;
		box-sizing: border-box;
	}

	.launch-popup-dialog {
		display: block;
		width: 100%;
		max-width: calc(100vw - 24px);
		min-height: 0;
		max-height: 92dvh;
		box-sizing: border-box;
		overflow-x: hidden;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}

	.launch-popup-dialog::before {
		inset: 0;
		border-radius: 8px;
	}

	.launch-popup-art {
		flex: none;
		width: 100%;
		max-width: 100%;
		min-height: 240px;
		max-height: none;
		box-sizing: border-box;
		background-size: cover;
		background-position: center top;
	}

	.launch-popup-art-fallback {
		flex: none;
		width: 100%;
		max-width: 100%;
		min-height: 240px;
		max-height: none;
		padding: 24px 16px;
		box-sizing: border-box;
	}

	.launch-popup-art::after {
		background: linear-gradient(180deg, transparent 72%, #111419);
	}

	.launch-popup-lightning .launch-bolt {
		stroke-width: 1.35;
	}

	.launch-popup-content {
		flex: none;
		width: 100%;
		max-width: 100%;
		padding: 22px 18px 20px;
		box-sizing: border-box;
		overflow-wrap: break-word;
		word-wrap: break-word;
	}

	.launch-popup-content h2 {
		font-size: 20px;
		line-height: 1.22;
		overflow-wrap: break-word;
	}

	.launch-popup-content p {
		font-size: 12px;
		line-height: 1.55;
	}

	.launch-popup-actions {
		flex-direction: column;
		align-items: stretch;
		width: 100%;
		max-width: 100%;
	}

	.launch-popup-actions a,
	.launch-popup-actions button {
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
		white-space: normal;
	}
}
