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

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

@keyframes launchPopupLightningPulse {
	0%, 100% {
		opacity: 0.18;
		filter: drop-shadow(0 0 6px rgba(74, 154, 216, 0.4));
	}
	45% {
		opacity: 0.35;
		filter: drop-shadow(0 0 10px rgba(107, 180, 234, 0.55));
	}
	48% {
		opacity: 1;
		filter: drop-shadow(0 0 20px rgba(180, 220, 255, 0.95)) drop-shadow(0 0 40px rgba(74, 154, 216, 0.75));
	}
	52% {
		opacity: 0.25;
	}
}

@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::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
	background: linear-gradient(90deg, transparent 70%, #111419 100%);
	pointer-events: none;
}

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

.launch-popup-lightning {
	position: absolute;
	top: 6%;
	left: 50%;
	width: 110px;
	height: auto;
	max-height: 78%;
	transform: translateX(-50%) rotate(-6deg);
	fill: rgba(180, 220, 255, 0.85);
	animation: launchPopupLightningPulse 5s ease-in-out infinite;
}

.launch-popup-glow {
	position: absolute;
	right: 8%;
	bottom: 14%;
	width: 90px;
	height: 90px;
	border-radius: 50%;
	background: rgba(74, 154, 216, 0.35);
	filter: blur(34px);
}

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

.launch-popup-art-fallback {
	position: relative;
	z-index: 3;
	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: 3;
	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-lightning,
	.launch-popup-art-day,
	.launch-popup-primary {
		animation: none !important;
	}
}

@media (max-width: 700px) {
	.launch-popup-dialog {
		flex-direction: column;
		max-height: 92vh;
		overflow-y: auto;
	}

	.launch-popup-art,
	.launch-popup-art-fallback {
		flex: 0 0 auto;
		min-height: 260px;
	}

	.launch-popup-lightning {
		width: 80px;
	}

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

	.launch-popup-content {
		padding: 28px 24px 26px;
	}

	.launch-popup-content h2 {
		font-size: 22px;
	}

	.launch-popup-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.launch-popup-actions a,
	.launch-popup-actions button {
		width: 100%;
	}
}
