/* ==========================================================================
   MUN Delegate Hub - Landing Page
   Reproduce src/pages/Landing.tsx del original (clases Tailwind -> valores).
   Breakpoints de Tailwind: sm 640px, md 768px, lg 1024px.
   ========================================================================== */

.landing-page {
	min-height: 100vh;
	background-color: hsl(var(--background));
}

/* ---- Navegacion ---- */

.landing-nav {
	position: sticky;
	top: 0;
	z-index: 50;
	border-bottom: 1px solid hsl(var(--border));
	background-color: hsl(var(--background));
	box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.landing-nav__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 0.75rem;
	padding-bottom: 0.75rem;
}

.landing-nav__brand {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.landing-nav__logo {
	height: 2rem;
	width: auto;
	object-fit: contain;
}

.landing-nav__actions {
	display: flex;
	align-items: center;
	gap: 0.25rem;
}

@media (min-width: 640px) {
	.landing-nav__brand { gap: 0.75rem; }
	.landing-nav__logo { height: 2.5rem; }
	.landing-nav__actions { gap: 0.75rem; }
}

/* ---- Hero ---- */

.landing-hero {
	position: relative;
	overflow: hidden;
	padding-top: 4rem;
	padding-bottom: 4rem;
}

.landing-hero__image {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.landing-hero__overlay {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background-image: linear-gradient(to bottom right, hsl(var(--secondary) / 0.9), hsl(var(--secondary) / 0.8), rgb(0 0 0 / 0.85));
}

.landing-hero__content {
	position: relative;
	z-index: 10;
	text-align: center;
}

.landing-hero__badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 1rem;
	padding: 0.5rem 0.75rem;
	border-radius: 9999px;
	background-color: hsl(var(--primary) / 0.2);
	color: hsl(var(--primary));
	font-size: 0.75rem;
	line-height: 1rem;
	font-weight: 500;
}

.landing-hero__badge .icon {
	width: 0.75rem;
	height: 0.75rem;
}

.landing-hero__title {
	margin-bottom: 1rem;
	font-size: 1.875rem;
	line-height: 2.25rem;
	font-weight: 700;
	color: hsl(var(--primary-foreground));
}

.landing-hero__title-accent {
	color: hsl(var(--primary));
}

.landing-hero__desc {
	max-width: 42rem;
	margin: 0 auto 1.5rem;
	padding: 0 1rem;
	font-size: 1rem;
	line-height: 1.5rem;
	color: hsl(var(--primary-foreground) / 0.8);
}

.landing-hero__buttons {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	padding: 0 1rem;
}

.landing-hero__buttons .icon {
	margin-left: 0.5rem;
}

.landing-hero__countdown {
	margin-top: 2rem;
}

.landing-hero__until {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	margin-bottom: 0.75rem;
	color: hsl(var(--primary-foreground) / 0.8);
}

.landing-hero__until .icon {
	width: 1rem;
	height: 1rem;
}

.landing-hero__until span {
	font-size: 0.875rem;
	line-height: 1.25rem;
	font-weight: 500;
}

@media (min-width: 640px) {
	.landing-hero { padding-top: 6rem; padding-bottom: 6rem; }
	.landing-hero__badge { margin-bottom: 1.5rem; padding-left: 1rem; padding-right: 1rem; font-size: 0.875rem; line-height: 1.25rem; }
	.landing-hero__badge .icon { width: 1rem; height: 1rem; }
	.landing-hero__title { margin-bottom: 1.5rem; font-size: 2.25rem; line-height: 2.5rem; }
	.landing-hero__desc { margin-bottom: 2.5rem; font-size: 1.125rem; line-height: 1.75rem; }
	.landing-hero__buttons { flex-direction: row; gap: 1rem; }
	.landing-hero__countdown { margin-top: 3rem; }
}

@media (min-width: 768px) {
	.landing-hero__title { font-size: 3rem; line-height: 1; }
	.landing-hero__desc { font-size: 1.25rem; line-height: 1.75rem; }
}

@media (min-width: 1024px) {
	.landing-hero { padding-top: 8rem; padding-bottom: 8rem; }
	.landing-hero__title { font-size: 3.75rem; line-height: 1; }
}

/* ---- Estadisticas ---- */

.landing-stats {
	margin-top: -2rem;
	padding-top: 3rem;
	padding-bottom: 3rem;
}

.landing-stats__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.75rem;
}

.landing-stat {
	padding: 1rem;
	text-align: center;
	box-shadow: var(--shadow-lg);
	transition-property: box-shadow;
	transition-duration: 300ms;
	transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.landing-stat:hover {
	box-shadow: var(--shadow-gold);
}

.landing-stat .icon {
	width: 1.5rem;
	height: 1.5rem;
	margin: 0 auto 0.5rem;
	color: hsl(var(--secondary));
}

.landing-stat__value {
	margin-bottom: 0.25rem;
	font-size: 1.5rem;
	line-height: 2rem;
	font-weight: 700;
	color: hsl(var(--foreground));
}

.landing-stat__label {
	font-size: 0.75rem;
	line-height: 1rem;
	color: hsl(var(--muted-foreground));
}

@media (min-width: 640px) {
	.landing-stats { margin-top: -3rem; padding-top: 4rem; padding-bottom: 4rem; }
	.landing-stats__grid { gap: 1rem; }
	.landing-stat { padding: 1.5rem; }
	.landing-stat .icon { width: 2rem; height: 2rem; margin-bottom: 0.75rem; }
	.landing-stat__value { font-size: 1.875rem; line-height: 2.25rem; }
	.landing-stat__label { font-size: 0.875rem; line-height: 1.25rem; }
}

/* ---- Como funciona ---- */

.landing-features {
	padding-top: 4rem;
	padding-bottom: 4rem;
	background-color: hsl(var(--muted) / 0.5);
}

.landing-features__head {
	margin-bottom: 2rem;
	text-align: center;
}

.landing-features__title {
	margin-bottom: 0.75rem;
	font-size: 1.5rem;
	line-height: 2rem;
	font-weight: 700;
	color: hsl(var(--foreground));
}

.landing-features__subtitle {
	max-width: 36rem;
	margin: 0 auto;
	font-size: 0.875rem;
	line-height: 1.25rem;
	color: hsl(var(--muted-foreground));
}

.landing-features__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1rem;
}

.landing-feature {
	position: relative;
	overflow: hidden;
	padding: 1.5rem;
	transition-property: all;
	transition-duration: 300ms;
	transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.landing-feature:hover {
	box-shadow: var(--shadow-lg);
}

.landing-feature__step {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	font-size: 2.25rem;
	line-height: 2.5rem;
	font-weight: 700;
	color: hsl(var(--secondary) / 0.6);
	transition-property: color;
	transition-duration: 150ms;
	transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.landing-feature:hover .landing-feature__step {
	color: hsl(var(--secondary) / 0.8);
}

.landing-feature__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	margin-bottom: 1rem;
	border-radius: 0.75rem;
}

.landing-feature__icon .icon {
	width: 1.5rem;
	height: 1.5rem;
	color: hsl(var(--primary-foreground));
}

.landing-feature__title {
	margin-bottom: 0.5rem;
	font-size: 1.125rem;
	line-height: 1.75rem;
	font-weight: 600;
	color: hsl(var(--foreground));
}

.landing-feature__desc {
	font-size: 0.875rem;
	line-height: 1.25rem;
	color: hsl(var(--muted-foreground));
}

@media (min-width: 640px) {
	.landing-features { padding-top: 5rem; padding-bottom: 5rem; }
	.landing-features__head { margin-bottom: 3rem; }
	.landing-features__title { margin-bottom: 1rem; font-size: 1.875rem; line-height: 2.25rem; }
	.landing-features__subtitle { font-size: 1rem; line-height: 1.5rem; }
	.landing-features__grid { gap: 2rem; }
	.landing-feature { padding: 2rem; }
	.landing-feature__step { top: 1rem; right: 1rem; font-size: 3.75rem; line-height: 1; }
	.landing-feature__icon { width: 3.5rem; height: 3.5rem; margin-bottom: 1.5rem; }
	.landing-feature__icon .icon { width: 1.75rem; height: 1.75rem; }
	.landing-feature__title { margin-bottom: 0.75rem; font-size: 1.25rem; line-height: 1.75rem; }
	.landing-feature__desc { font-size: 1rem; line-height: 1.5rem; }
}

@media (min-width: 768px) {
	.landing-features__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---- Llamado a la accion ---- */

.landing-cta {
	padding-top: 4rem;
	padding-bottom: 4rem;
}

.landing-cta__card {
	overflow: hidden;
	padding: 2rem;
	text-align: center;
}

.landing-cta__title {
	margin-bottom: 0.75rem;
	font-size: 1.5rem;
	line-height: 2rem;
	font-weight: 700;
	color: hsl(var(--primary-foreground));
}

.landing-cta__desc {
	max-width: 36rem;
	margin: 0 auto 1.5rem;
	font-size: 0.875rem;
	line-height: 1.25rem;
	color: hsl(var(--primary-foreground) / 0.8);
}

.landing-cta .icon {
	margin-left: 0.5rem;
}

@media (min-width: 640px) {
	.landing-cta { padding-top: 5rem; padding-bottom: 5rem; }
	.landing-cta__card { padding: 3rem; }
	.landing-cta__title { margin-bottom: 1rem; font-size: 1.875rem; line-height: 2.25rem; }
	.landing-cta__desc { margin-bottom: 2rem; font-size: 1rem; line-height: 1.5rem; }
}

/* ---- Pie ---- */

.landing-footer {
	padding-top: 1.5rem;
	padding-bottom: 1.5rem;
	border-top: 1px solid hsl(var(--border));
	background-color: hsl(var(--card));
}

.landing-footer__row {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
}

.landing-footer__brand {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.landing-footer__logo {
	height: 1.75rem;
	width: auto;
	object-fit: contain;
}

.landing-footer__copy {
	font-size: 0.75rem;
	line-height: 1rem;
	text-align: center;
	color: hsl(var(--muted-foreground));
}

@media (min-width: 640px) {
	.landing-footer { padding-top: 2rem; padding-bottom: 2rem; }
	.landing-footer__row { gap: 1rem; }
	.landing-footer__copy { font-size: 0.875rem; line-height: 1.25rem; }
}

@media (min-width: 768px) {
	.landing-footer__row { flex-direction: row; }
}
