/**
 * Footer global de Grupo Raíz Inmobiliaria.
 */

.gr-site-footer {
	width: 100%;
	margin: 0;
	background-color: var(--gr-color-dark);
	color: var(--gr-color-white);
}

.gr-site-footer__main {
	padding: 72px 0 64px;
	background-color: var(--gr-color-dark);
}

.gr-site-footer__grid {
	display: grid;
	grid-template-columns:
		minmax(0, 1.45fr)
		minmax(180px, 0.7fr)
		minmax(260px, 1fr);
	align-items: start;
	gap: clamp(40px, 6vw, 88px);
}

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

.gr-site-footer__brand {
	display: inline-flex;
	align-items: center;
	max-width: 270px;
	overflow: hidden;
	border-radius: var(--gr-radius-small);
	background-color: var(--gr-color-white);
	text-decoration: none;
}

.gr-site-footer__logo {
	display: block;
	width: 100%;
	height: auto;
	max-height: 110px;
	object-fit: contain;
}

.gr-site-footer__site-name {
	display: block;
	padding: 20px;
	color: var(--gr-color-primary);
	font-size: 1.25rem;
	font-weight: 700;
}

.gr-site-footer__description {
	max-width: 470px;
	margin: 24px 0 0;
	color: rgba(255, 255, 255, 0.72);
	font-size: 0.9375rem;
	line-height: 1.75;
}

.gr-site-footer__title {
	margin: 0 0 22px;
	color: var(--gr-color-white);
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.3;
}

.gr-site-footer a {
	color: rgba(255, 255, 255, 0.8);
	text-decoration: none;
	transition:
		color var(--gr-transition),
		background-color var(--gr-transition),
		border-color var(--gr-transition),
		transform var(--gr-transition);
}

.gr-site-footer a:hover,
.gr-site-footer a:focus-visible {
	color: var(--gr-color-white);
}

.gr-site-footer a:focus-visible {
	outline: 2px solid var(--gr-color-white);
	outline-offset: 4px;
}

/**
 * Botón de WhatsApp.
 */
.gr-site-footer__whatsapp {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 46px;
	margin-top: 28px;
	padding: 11px 20px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: var(--gr-radius-small);
	background-color: var(--gr-color-secondary);
	color: var(--gr-color-white) !important;
	font-size: 0.875rem;
	font-weight: 700;
}

.gr-site-footer__whatsapp:hover,
.gr-site-footer__whatsapp:focus-visible {
	border-color: var(--gr-color-secondary-hover);
	background-color: var(--gr-color-secondary-hover);
	transform: translateY(-2px);
}

/**
 * Menú.
 */
.gr-site-footer__menu {
	display: grid;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.gr-site-footer__menu li {
	margin: 0;
	padding: 0;
}

.gr-site-footer__menu a {
	display: inline-flex;
	padding: 6px 0;
	color: rgba(255, 255, 255, 0.72);
	font-size: 0.9375rem;
	line-height: 1.4;
}

.gr-site-footer__menu a:hover,
.gr-site-footer__menu a:focus-visible,
.gr-site-footer__menu .current-menu-item > a {
	color: var(--gr-color-white);
	transform: translateX(4px);
}

/**
 * Contacto.
 */
.gr-site-footer__contact-list {
	display: grid;
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.gr-site-footer__contact-item {
	display: grid;
	grid-template-columns: 40px minmax(0, 1fr);
	align-items: start;
	gap: 14px;
	margin: 0;
	padding: 0;
}

.gr-site-footer__contact-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.07);
	color: var(--gr-color-white);
	font-size: 1rem;
	line-height: 1;
}

.gr-site-footer__contact-item div {
	display: grid;
	gap: 3px;
	min-width: 0;
}

.gr-site-footer__contact-item strong {
	color: var(--gr-color-white);
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.4;
}

.gr-site-footer__contact-item span:not(
	.gr-site-footer__contact-icon
),
.gr-site-footer__contact-item a {
	overflow-wrap: anywhere;
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.875rem;
	line-height: 1.55;
}

/**
 * Barra inferior.
 */
.gr-site-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	background-color: rgba(0, 0, 0, 0.16);
}

.gr-site-footer__bottom-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 76px;
	gap: 28px;
}

.gr-site-footer__copyright {
	margin: 0;
	color: rgba(255, 255, 255, 0.62);
	font-size: 0.8125rem;
	line-height: 1.5;
}

.gr-site-footer__legal {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 20px;
}

.gr-site-footer__legal a {
	color: rgba(255, 255, 255, 0.62);
	font-size: 0.8125rem;
}

.gr-site-footer__legal a:hover,
.gr-site-footer__legal a:focus-visible {
	color: var(--gr-color-white);
}

/**
 * Tableta.
 */
@media (max-width: 1024px) {
	.gr-site-footer__grid {
		grid-template-columns: minmax(0, 1.3fr) repeat(2, 1fr);
		gap: 40px;
	}

	.gr-site-footer__brand {
		max-width: 230px;
	}
}

/**
 * Móvil.
 */
@media (max-width: 767px) {
	.gr-site-footer__main {
		padding: 56px 0 48px;
	}

	.gr-site-footer__grid {
		grid-template-columns: 1fr;
		gap: 44px;
	}

	.gr-site-footer__about,
	.gr-site-footer__navigation,
	.gr-site-footer__contact {
		text-align: left;
	}

	.gr-site-footer__brand {
		max-width: 240px;
	}

	.gr-site-footer__description {
		max-width: none;
	}

	.gr-site-footer__bottom-inner {
		flex-direction: column;
		align-items: flex-start;
		justify-content: center;
		min-height: 0;
		padding-top: 24px;
		padding-bottom: 24px;
		gap: 14px;
	}

	.gr-site-footer__legal {
		justify-content: flex-start;
		gap: 12px 20px;
	}
}