/*
 * Groowleck — Top Footer y Footer inferior.
 *
 * Reemplazar:
 * assets/layouts/footer.css
 */

:root {
	--groowleck-footer-background:
		var(--groowleck-color-brand, #15233c);

	--groowleck-top-footer-background:
		var(--groowleck-color-brand-soft, #1c2d4a);

	--groowleck-footer-text:
		var(--groowleck-color-on-brand, #ffffff);

	--groowleck-footer-muted:
		rgb(255 255 255 / 0.72);

	--groowleck-footer-border:
		rgb(255 255 255 / 0.1);

	--groowleck-footer-social-background:
		rgb(255 255 255 / 0.06);

	--groowleck-footer-social-hover:
		rgb(255 255 255 / 0.12);

	--groowleck-footer-column-gap:
		clamp(32px, 5vw, 80px);

	--groowleck-footer-row-gap:
		clamp(32px, 5vw, 56px);
}


/* =========================================================
   Top Footer
   ========================================================= */

.site-top-footer {
	background: var(--groowleck-top-footer-background);
	color: var(--groowleck-footer-text);
}

.site-top-footer__inner,
.site-footer__inner {
	width: min(
		100% - (2 * var(--groowleck-header-gutter, 32px)),
		var(--groowleck-header-container, 1400px)
	);
	margin-inline: auto;
}

.site-top-footer__inner {
	padding-block:
		clamp(48px, 6vw, 80px)
		clamp(52px, 7vw, 88px);
}


/* =========================================================
   Llamada a la acción
   ========================================================= */

.site-top-footer__cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	padding: clamp(24px, 4vw, 40px);
	margin-block-end: clamp(48px, 6vw, 72px);
	border: 1px solid var(--groowleck-footer-border);
	border-radius: 16px;
	background:
		linear-gradient(
			135deg,
			rgb(255 255 255 / 0.07),
			rgb(255 255 255 / 0.025)
		);
}

.site-top-footer__cta-content {
	max-width: 760px;
}

.site-top-footer__cta-title {
	margin: 0;
	font-size: clamp(1.5rem, 3vw, 2.25rem);
	line-height: 1.15;
}

.site-top-footer__cta-text {
	max-width: 680px;
	margin:
		clamp(12px, 2vw, 18px)
		0
		0;
	color: var(--groowleck-footer-muted);
	font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
	line-height: 1.65;
}

.site-top-footer__cta-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	min-height: 46px;
	padding-inline: 22px;
	border: 1px solid transparent;
	border-radius: 9px;
	background: var(--groowleck-status-premium, #f4c95d);
	color: var(--groowleck-color-brand, #15233c);
	font-weight: 750;
	text-decoration: none;
	white-space: nowrap;
	transition:
		transform 220ms ease,
		filter 220ms ease;
}

.site-top-footer__cta-button:hover,
.site-top-footer__cta-button:focus-visible {
	filter: brightness(1.05);
	transform: translateY(-2px);
}


/* =========================================================
   Columnas
   ========================================================= */

.site-top-footer__columns {
	display: grid;
	grid-template-columns:
		minmax(240px, 1.45fr)
		minmax(150px, 0.8fr)
		minmax(150px, 0.8fr)
		minmax(220px, 1fr);
	gap:
		var(--groowleck-footer-row-gap)
		var(--groowleck-footer-column-gap);
}

.site-top-footer__column {
	min-width: 0;
}

.site-top-footer__heading {
	margin:
		0
		0
		18px;
	font-size: 0.9375rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	line-height: 1.2;
	text-transform: uppercase;
}


/* =========================================================
   Identidad
   ========================================================= */

.site-top-footer__brand {
	margin-block-end: 20px;
}

.site-top-footer__brand .custom-logo-link {
	display: inline-flex;
	align-items: center;
}

.site-top-footer__brand .custom-logo {
	display: block;
	width: auto;
	max-width: 180px;
	max-height: 52px;
	object-fit: contain;
}

.site-top-footer__site-name {
	color: inherit;
	font-size: 1.25rem;
	font-weight: 800;
	text-decoration: none;
}

.site-top-footer__description {
	max-width: 420px;
	margin: 0;
	color: var(--groowleck-footer-muted);
	font-size: 0.9375rem;
	line-height: 1.7;
}


/* =========================================================
   Menús
   ========================================================= */

.site-top-footer__menu,
.site-top-footer__menu ul,
.site-top-footer__social-list,
.site-footer__legal-menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-top-footer__menu {
	display: grid;
	gap: 12px;
}

.site-top-footer__menu a {
	display: inline-flex;
	color: var(--groowleck-footer-muted);
	font-size: 0.9375rem;
	line-height: 1.45;
	text-decoration: none;
	text-underline-offset: 0.25em;
	transition:
		color 180ms ease,
		transform 180ms ease;
}

.site-top-footer__menu a:hover,
.site-top-footer__menu a:focus-visible,
.site-top-footer__menu .current-menu-item > a {
	color: var(--groowleck-footer-text);
	text-decoration: underline;
	transform: translateX(3px);
}


/* =========================================================
   Comunidad y redes
   ========================================================= */

.site-top-footer__community-text {
	margin: 0;
	color: var(--groowleck-footer-muted);
	font-size: 0.9375rem;
	line-height: 1.65;
}

.site-top-footer__social-list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.site-top-footer__social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding-inline: 14px;
	border: 1px solid var(--groowleck-footer-border);
	border-radius: 999px;
	background: var(--groowleck-footer-social-background);
	color: var(--groowleck-footer-text);
	font-size: 0.8125rem;
	font-weight: 700;
	text-decoration: none;
	transition:
		background 180ms ease,
		border-color 180ms ease,
		transform 180ms ease;
}

.site-top-footer__social-link:hover,
.site-top-footer__social-link:focus-visible {
	border-color: rgb(255 255 255 / 0.22);
	background: var(--groowleck-footer-social-hover);
	transform: translateY(-2px);
}


/* =========================================================
   Footer inferior
   ========================================================= */

.site-footer {
	background: var(--groowleck-footer-background);
	color: var(--groowleck-footer-text);
	border-top: 1px solid var(--groowleck-footer-border);
}

.site-footer__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 76px;
	padding-block: 18px;
}

.site-footer__copyright {
	margin: 0;
	color: var(--groowleck-footer-muted);
	font-size: 0.875rem;
	line-height: 1.5;
}

.site-footer__legal-menu {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 8px 22px;
}

.site-footer__legal-menu a {
	color: var(--groowleck-footer-muted);
	font-size: 0.875rem;
	text-decoration: none;
	text-underline-offset: 0.25em;
}

.site-footer__legal-menu a:hover,
.site-footer__legal-menu a:focus-visible,
.site-footer__legal-menu .current-menu-item > a {
	color: var(--groowleck-footer-text);
	text-decoration: underline;
}


/* =========================================================
   Tabletas
   ========================================================= */

@media (max-width: 1000px) {
	.site-top-footer__columns {
		grid-template-columns:
			minmax(240px, 1.25fr)
			minmax(160px, 0.75fr);
	}

	.site-top-footer__cta {
		align-items: flex-start;
	}
}


/* =========================================================
   Móviles
   ========================================================= */

@media (max-width: 700px) {
	.site-top-footer__inner {
		padding-block:
			48px
			56px;
	}

	.site-top-footer__cta {
		flex-direction: column;
		align-items: stretch;
		padding: 24px;
		margin-block-end: 48px;
	}

	.site-top-footer__cta-button {
		width: 100%;
	}

	.site-top-footer__columns {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.site-top-footer__description {
		max-width: 100%;
	}

	.site-footer__inner {
		flex-direction: column;
		align-items: flex-start;
		justify-content: center;
		padding-block: 24px;
	}

	.site-footer__legal-menu {
		justify-content: flex-start;
	}
}


/* =========================================================
   Móviles pequeños
   ========================================================= */

@media (max-width: 480px) {
	.site-top-footer__inner,
	.site-footer__inner {
		width: min(
			100% - 28px,
			var(--groowleck-header-container, 1400px)
		);
	}

	.site-top-footer__social-list {
		gap: 8px;
	}

	.site-top-footer__social-link {
		min-height: 38px;
		padding-inline: 12px;
	}
}


/* =========================================================
   Accesibilidad
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
	.site-top-footer__cta-button,
	.site-top-footer__menu a,
	.site-top-footer__social-link {
		transition-duration: 1ms !important;
	}
}