/**
 * Home landing (inside theme header/footer). Scoped under .ce-front-landing.
 */

.ce-front-landing .material-symbols-outlined {
	font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.ce-front-landing .scrim-overlay {
	background: linear-gradient(to bottom, rgba(19, 19, 19, 0) 0%, rgba(19, 19, 19, 0.8) 70%, rgba(19, 19, 19, 1) 100%);
}

.ce-front-landing .spotlight-glow {
	box-shadow: 0 0 40px rgba(51, 176, 163, 0.15);
}

/* Hero: título Epilogue + borde animado (anillo tipo hover: border-primary + ring en tarjetas distribución). */
.ce-front-landing .ce-hero-title {
	text-align: center;
}

.ce-front-landing .ce-hero-title__ring {
	position: relative;
	display: inline-block;
	max-width: 100%;
	padding: 3px;
	border-radius: 1rem;
	overflow: hidden;
}

/* Conic rotando solo en la capa del borde (el texto no rota). */
.ce-front-landing .ce-hero-title__ring::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	z-index: 0;
	width: 220%;
	height: 220%;
	background: conic-gradient(
		from 0deg,
		#65d9cb,
		#33b0a3,
		#a8fff0,
		#4a8f85,
		#83f6e7,
		#65d9cb
	);
	transform: translate(-50%, -50%);
	animation: ce-hero-title-border-spin 3.8s linear infinite;
	pointer-events: none;
}

@keyframes ce-hero-title-border-spin {
	to {
		transform: translate(-50%, -50%) rotate(360deg);
	}
}

.ce-front-landing .ce-hero-title__inner {
	position: relative;
	z-index: 1;
	display: block;
	border-radius: calc(1rem - 2px);
	background: rgba(8, 8, 8, 0.88);
	backdrop-filter: blur(12px);
	padding: 0.35em 0.55em 0.45em;
	box-shadow:
		0 0 0 2px rgba(101, 217, 203, 0.5),
		0 0 26px rgba(101, 217, 203, 0.22);
	font-family: Epilogue, system-ui, sans-serif;
	font-weight: 700;
	letter-spacing: -0.035em;
	text-shadow:
		0 2px 24px rgba(0, 0, 0, 0.7),
		0 0 42px rgba(101, 217, 203, 0.14);
}

@media (prefers-reduced-motion: reduce) {
	.ce-front-landing .ce-hero-title__ring::before {
		animation: none;
		transform: translate(-50%, -50%) rotate(45deg);
	}
}

/* Distribution landing: infinite horizontal marquee (duplicate strip = seamless loop). */
@keyframes ce-dist-marquee-x {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(-50%);
	}
}

.ce-front-landing .ce-dist-marquee__track {
	animation: ce-dist-marquee-x var(--ce-marquee-duration, 24s) linear infinite;
	will-change: transform;
}

.ce-front-landing .ce-dist-marquee:hover .ce-dist-marquee__track {
	animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
	.ce-front-landing .ce-dist-marquee__track {
		animation: none;
		justify-content: center;
		max-width: 72rem;
		margin-left: auto;
		margin-right: auto;
		padding-left: 1.5rem;
		padding-right: 1.5rem;
		width: auto;
	}

	.ce-front-landing .ce-dist-marquee__track > .flex:first-child {
		flex-wrap: wrap;
		justify-content: center;
		row-gap: 1rem;
	}

	.ce-front-landing .ce-dist-marquee__dup {
		display: none !important;
	}
}
