/* ==========================================================================
   MUN Delegate Hub - paginas publicas interiores (comites, matriz de paises)
   Reproduce la barra, la cabecera con degradado, el bloque final y el pie de
   src/pages/Committees.tsx. Breakpoints de Tailwind: sm 640px, md 768px.
   ========================================================================== */

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

/* ---- Barra superior (border-b bg-card/80 backdrop-blur-sm sticky top-0 z-50) ---- */

.site-nav {
	position: sticky;
	top: 0;
	z-index: 50;
	border-bottom: 1px solid hsl(var(--border));
	background-color: hsl(var(--card) / 0.8);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}

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

.site-nav__left {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.site-nav__brand {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	transition-property: opacity;
	transition-duration: 150ms;
	transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.site-nav__brand:hover {
	opacity: 0.8;
}

.site-nav__crest {
	width: 2.25rem;
	height: 2.25rem;
	object-fit: contain;
}

.site-nav__title {
	font-size: 1.125rem;
	line-height: 1.75rem;
	font-weight: 700;
	color: hsl(var(--foreground));
}

.site-nav__subtitle {
	display: none;
	font-size: 0.75rem;
	line-height: 1rem;
	color: hsl(var(--muted-foreground));
}

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

@media (min-width: 640px) {
	.site-nav__left { gap: 0.75rem; }
	.site-nav__brand { gap: 0.75rem; }
	.site-nav__crest { width: 2.5rem; height: 2.5rem; }
	.site-nav__title { font-size: 1.25rem; line-height: 1.75rem; }
	.site-nav__subtitle { display: block; }
	.site-nav__actions { gap: 0.75rem; }
}

/* ---- Cabecera con degradado (gradient-hero py-12 sm:py-16) ---- */

.page-hero {
	padding-top: 3rem;
	padding-bottom: 3rem;
	background: var(--gradient-hero);
}

.mun-btn--ghost-hero {
	margin-bottom: 1rem;
	color: hsl(var(--primary-foreground) / 0.8);
}

.mun-btn--ghost-hero:hover {
	background-color: hsl(0 0% 100% / 0.1);
	color: hsl(var(--primary-foreground));
}

.mun-btn--ghost-hero .icon {
	margin-right: 0.5rem;
}

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

.page-hero__subtitle {
	max-width: 42rem;
	color: hsl(var(--primary-foreground) / 0.8);
}

@media (min-width: 640px) {
	.page-hero { padding-top: 4rem; padding-bottom: 4rem; }
	.page-hero__title { font-size: 2.25rem; line-height: 2.5rem; }
}

/* ---- Seccion de contenido (py-8 sm:py-12) ---- */

.page-section {
	padding-top: 2rem;
	padding-bottom: 2rem;
}

@media (min-width: 640px) {
	.page-section { padding-top: 3rem; padding-bottom: 3rem; }
}

/* ---- Bloque final (py-12 sm:py-16 bg-muted/50) ---- */

.page-cta {
	padding-top: 3rem;
	padding-bottom: 3rem;
	background-color: hsl(var(--muted) / 0.5);
	text-align: center;
}

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

.page-cta__desc {
	max-width: 36rem;
	margin: 0 auto 1.5rem;
	color: hsl(var(--muted-foreground));
}

@media (min-width: 640px) {
	.page-cta { padding-top: 4rem; padding-bottom: 4rem; }
}

/* ---- Pie (border-t py-6 sm:py-8 bg-card) ---- */

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

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

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

.site-footer__crest {
	width: 1.25rem;
	height: 1.25rem;
	object-fit: contain;
}

.site-footer__name {
	font-weight: 600;
	color: hsl(var(--foreground));
}

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

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

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

/* ---- Matriz de paises (CountryMatrix.tsx): cabecera en dos columnas, barra de disponibilidad y tarjeta de pasos ---- */

.page-hero--matrix {
	padding-top: 2rem;
	padding-bottom: 2rem;
}

@media (min-width: 640px) {
	.page-hero--matrix { padding-top: 3rem; padding-bottom: 3rem; }
}

.matrix-hero {
	display: grid;
	gap: 1.5rem;
	width: 100%;
	max-width: 64rem;
	margin: 0 auto;
	padding: 0 1rem;
}

@media (min-width: 768px) {
	.matrix-hero { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; }
}

.matrix-hero .mun-btn--ghost-hero {
	margin-bottom: 0.75rem;
	margin-left: -0.75rem;
}

.matrix-hero .page-hero__title {
	margin-bottom: 0.5rem;
	font-size: 1.875rem;
	line-height: 2.25rem;
}

@media (min-width: 640px) {
	.matrix-hero .page-hero__title { font-size: 2.25rem; line-height: 2.5rem; }
}

.matrix-hero .page-hero__subtitle {
	max-width: none;
	margin-bottom: 1.25rem;
}

.matrix-progress {
	margin-bottom: 1.25rem;
}

.matrix-progress__bar {
	height: 0.625rem;
	overflow: hidden;
	border-radius: 9999px;
	background-color: hsl(var(--primary-foreground) / 0.2);
}

.matrix-progress__fill {
	height: 100%;
	border-radius: 9999px;
	background-color: hsl(var(--primary));
	transition: width 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.matrix-progress__text {
	margin-top: 0.5rem;
	font-size: 0.875rem;
	line-height: 1.25rem;
	color: hsl(var(--primary-foreground) / 0.9);
}

.matrix-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

/* boton "outline" sobre el degradado oscuro (bg-transparent text-primary-foreground border-primary-foreground/40) */
.mun-btn--outline-hero {
	border: 1px solid hsl(var(--primary-foreground) / 0.4);
	background-color: transparent;
	color: hsl(var(--primary-foreground));
}

.mun-btn--outline-hero:hover {
	background-color: hsl(var(--primary-foreground) / 0.1);
	color: hsl(var(--primary-foreground));
}

.matrix-how {
	padding: 1.25rem;
	border: 1px solid hsl(var(--primary-foreground) / 0.2);
	border-radius: 1rem;
	background-color: hsl(var(--primary-foreground) / 0.1);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}

.matrix-how__title {
	margin-bottom: 1rem;
	font-weight: 600;
	color: hsl(var(--primary-foreground));
}

.matrix-how__steps {
	display: grid;
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.matrix-how__steps li {
	display: flex;
	gap: 0.75rem;
}

.matrix-how__n {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 1.75rem;
	height: 1.75rem;
	border-radius: 9999px;
	background-color: hsl(var(--primary));
	font-size: 0.875rem;
	line-height: 1.25rem;
	font-weight: 700;
	color: hsl(var(--primary-foreground));
}

.matrix-how__t {
	font-weight: 500;
	color: hsl(var(--primary-foreground));
}

.matrix-how__d {
	font-size: 0.875rem;
	line-height: 1.25rem;
	color: hsl(var(--primary-foreground) / 0.75);
}

/* contenedor de la tabla (container mx-auto max-w-4xl px-4) */
.mun-container.matrix-wrap {
	max-width: 56rem;
}