/**
 * Intro pantalla completa: formación del logo Card2Share y salida.
 * z-index por encima del menú (.c2s-nav-agency).
 */

.c2s-home-splash__sr {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.c2s-home-splash {
	position: fixed;
	inset: 0;
	z-index: 13050;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0) env(safe-area-inset-bottom, 0)
		env(safe-area-inset-left, 0);
	pointer-events: auto;
	transition: opacity 0.75s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.75s;
}

.c2s-home-splash.c2s-home-splash--out {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.c2s-home-splash__veil {
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse 80% 60% at 50% 45%, #1e293b 0%, #131921 45%, #0a0e14 100%);
}

.c2s-home-splash__content {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

.c2s-home-splash__ring {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	border-radius: 50%;
	border: 2px solid rgba(251, 191, 36, 0.35);
	opacity: 0;
	pointer-events: none;
}

.c2s-home-splash__ring--1 {
	width: min(120vw, 720px);
	height: min(120vw, 720px);
	animation: c2s-splash-ring 2.4s ease-out 0.1s both;
}

.c2s-home-splash__ring--2 {
	width: min(90vw, 520px);
	height: min(90vw, 520px);
	animation: c2s-splash-ring 2.4s ease-out 0.35s both;
}

.c2s-home-splash__ring--3 {
	width: min(60vw, 340px);
	height: min(60vw, 340px);
	animation: c2s-splash-ring 2.4s ease-out 0.6s both;
}

@keyframes c2s-splash-ring {
	0% {
		opacity: 0;
		transform: translate(-50%, -50%) scale(0.4);
	}
	15% {
		opacity: 0.9;
	}
	100% {
		opacity: 0;
		transform: translate(-50%, -50%) scale(1);
	}
}

.c2s-home-splash__brand {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.75rem;
	text-align: center;
}

.c2s-home-splash__logo-slot {
	width: 120px;
	height: 120px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.c2s-home-splash__logo {
	width: 120px;
	height: 120px;
	object-fit: contain;
	border-radius: 22px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(251, 191, 36, 0.15);
	animation: c2s-splash-logo-in 1.1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s both;
}

.c2s-home-splash__logo-fallback {
	font-size: 4.5rem;
	color: #fbbf24;
	filter: drop-shadow(0 0 20px rgba(251, 191, 36, 0.5));
	animation: c2s-splash-logo-in 1.1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s both;
}

@keyframes c2s-splash-logo-in {
	0% {
		opacity: 0;
		transform: scale(0.2) rotate(-12deg);
		filter: blur(12px);
	}
	100% {
		opacity: 1;
		transform: scale(1) rotate(0deg);
		filter: blur(0);
	}
}

.c2s-home-splash__wordmark {
	display: flex;
	align-items: baseline;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0;
	font-family: Inter, system-ui, sans-serif;
	font-weight: 800;
	font-size: clamp(2.2rem, 8vw, 3.5rem);
	line-height: 1;
	letter-spacing: -0.03em;
}

.c2s-home-splash__w {
	color: #ffffff;
	display: inline-block;
	opacity: 0;
	transform: translateY(36px) scale(0.92);
	filter: blur(6px);
}

.c2s-home-splash__w--1 {
	animation: c2s-splash-word 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.55s forwards;
}

.c2s-home-splash__2 {
	color: #fb923c;
	font-size: 1.2em;
	font-weight: 900;
	margin: 0 0.08em;
	display: inline-block;
	opacity: 0;
	transform: scale(0.3);
	text-shadow: 0 0 40px rgba(251, 146, 60, 0.75);
	animation: c2s-splash-two 0.75s cubic-bezier(0.34, 1.56, 0.64, 1) 0.95s forwards;
}

.c2s-home-splash__w--2 {
	animation: c2s-splash-word 0.85s cubic-bezier(0.22, 1, 0.36, 1) 1.15s forwards;
}

@keyframes c2s-splash-word {
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
		filter: blur(0);
	}
}

@keyframes c2s-splash-two {
	0% {
		opacity: 0;
		transform: scale(0.3) rotate(-8deg);
	}
	70% {
		opacity: 1;
		transform: scale(1.12) rotate(3deg);
	}
	to {
		opacity: 1;
		transform: scale(1) rotate(0deg);
	}
}

body.c2s-home-splash-lock {
	overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
	.c2s-home-splash__ring,
	.c2s-home-splash__logo,
	.c2s-home-splash__logo-fallback,
	.c2s-home-splash__w,
	.c2s-home-splash__2 {
		animation-duration: 0.01ms !important;
		animation-delay: 0s !important;
		animation-iteration-count: 1 !important;
		opacity: 1 !important;
		transform: none !important;
		filter: none !important;
	}

	.c2s-home-splash__ring {
		display: none;
	}
}
