:root {
	--dilumek-footer-bg: #0A1F3D;
	--dilumek-footer-red: #e61e25;
	--dilumek-footer-text: #ffffff;
	--dilumek-body-font: "DM Sans", Arial, sans-serif;
}

.dilumek-footer {
	background-color: var(--dilumek-footer-bg);
	color: var(--dilumek-footer-text);
	font-family: var(--dilumek-body-font);
	isolation: isolate;
	overflow: hidden;
	position: relative;
	width: 100%;
}

.dilumek-footer__texture {
	background-position: right center;
	background-repeat: no-repeat;
	background-size: 100% 100%;
	/* Stretch well past the social column so the pattern fills the footer
	   while staying behind “Visita nuestras redes”. */
	inset: -220px -160px -280px -80px;
	opacity: 1;
	pointer-events: none;
	position: absolute;
	z-index: 0;
}

.dilumek-footer__inner {
	display: grid;
	gap: clamp(32px, 4vw, 48px);
	grid-template-columns: minmax(240px, 1.35fr) minmax(120px, 0.7fr) minmax(180px, 1fr) minmax(140px, 0.85fr);
	margin-inline: auto;
	max-inline-size: 1280px;
	padding-block: clamp(48px, 7vw, 72px) clamp(28px, 4vw, 40px);
	padding-inline: clamp(20px, 4vw, 48px);
	position: relative;
	width: 100%;
	z-index: 1;
}

.dilumek-footer__credit {
	color: #f0f0f0;
	font-family: "DM Sans", Arial, sans-serif;
	font-size: 13px;
	font-weight: 400;
	letter-spacing: 0;
	line-height: 20px;
	margin: 0;
	padding-block: 0 clamp(20px, 4vw, 20px);
	padding-inline: clamp(20px, 4vw, 48px);
	position: relative;
	text-align: center;
	z-index: 1;
}

.dilumek-footer__brand {
	max-inline-size: 400px;
	padding-inline-end: clamp(24px, 3vw, 48px);
}

.dilumek-footer__logo {
	line-height: 0;
	margin-block-end: 28px;
}

.dilumek-footer__logo-link,
.dilumek-footer__logo .custom-logo-link {
	display: inline-flex;
	line-height: 0;
}

.dilumek-footer__logo-img,
.dilumek-footer__logo .custom-logo {
	display: block;
	height: auto;
	max-block-size: 48px;
	width: auto;
}

.dilumek-footer__logo .custom-logo {
	filter: brightness(0) invert(1);
}

.dilumek-footer-logo {
	color: var(--dilumek-footer-text);
	display: inline-flex;
	flex-direction: column;
	gap: 4px;
	text-decoration: none;
}

.dilumek-footer-logo__mark {
	background: var(--dilumek-footer-red);
	block-size: 6px;
	inline-size: 52%;
	margin-inline-start: 28%;
}

.dilumek-footer-logo__text {
	font-family: var(--dilumek-body-font);
	font-size: clamp(1.7rem, 2.4vw, 2.05rem);
	font-style: italic;
	font-weight: 800;
	letter-spacing: 0.02em;
	line-height: 1;
	text-transform: uppercase;
	-webkit-text-stroke: 1px #1e4f8f;
	paint-order: stroke fill;
}

.dilumek-footer__description,
.dilumek-footer__link,
.dilumek-footer__address {
	color: #f0f0f0;
	font-family: "DM Sans", Arial, sans-serif;
	font-size: 14px;
	font-style: normal;
	font-weight: 400;
	letter-spacing: 0;
	line-height: 20px;
}

.dilumek-footer__description {
	margin: 0;
	max-inline-size: 34ch;
}

.dilumek-footer__col {
	min-inline-size: 0;
}

.dilumek-footer__heading {
	color: var(--dilumek-footer-red);
	font-family: "DM Sans", Arial, sans-serif;
	font-size: 16px;
	font-style: normal;
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1.2;
	margin: 0 0 14px;
	padding-block-end: 10px;
	position: relative;
}

.dilumek-footer__heading::after {
	background: var(--dilumek-footer-red);
	block-size: 1px;
	content: "";
	inline-size: 123px;
	inset-block-end: 0;
	inset-inline-start: 0;
	position: absolute;
}

.dilumek-footer__heading--icon {
	align-items: center;
	display: inline-flex;
	gap: 8px;
	min-inline-size: min(100%, 220px);
}

.dilumek-footer__heading--icon::after {
	inline-size: 100%;
	max-inline-size: none;
}

.dilumek-footer__col--social {
	isolation: isolate;
	overflow: visible;
	position: relative;
	z-index: 0;
}

.dilumek-footer__col--social > :not(.dilumek-footer__texture) {
	position: relative;
	z-index: 1;
}

.dilumek-footer__heading--social {
	font-family: "DM Sans", Arial, sans-serif;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.25;
	max-inline-size: none;
	text-transform: uppercase;
	white-space: normal;
}

.dilumek-footer__heading--social::after {
	display: none;
}

.dilumek-footer__pin {
	color: var(--dilumek-footer-red);
	display: inline-flex;
	flex: 0 0 auto;
	line-height: 0;
}

.dilumek-footer__links {
	display: flex;
	flex-direction: column;
	gap: 10px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.dilumek-footer__links .sub-menu {
	display: none;
}

.dilumek-footer__link,
.dilumek-footer__links a {
	color: #f0f0f0;
	display: inline-block;
	font-family: "DM Sans", Arial, sans-serif;
	font-size: 14px;
	font-style: normal;
	font-weight: 400;
	letter-spacing: 0;
	line-height: 20px;
	text-decoration: none;
	transition: color 0.2s ease, opacity 0.2s ease;
}

.dilumek-footer__link:hover,
.dilumek-footer__link:focus-visible,
.dilumek-footer__links a:hover,
.dilumek-footer__links a:focus-visible {
	color: var(--dilumek-footer-red);
}

.dilumek-footer__address {
	margin: 0;
	max-inline-size: 28ch;
}

.dilumek-footer__social {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	list-style: none;
	margin: 16px 0 0;
	padding: 0;
}

.dilumek-footer__social-link {
	align-items: center;
	background: var(--dilumek-footer-red);
	border-radius: 50%;
	color: var(--dilumek-footer-text);
	display: inline-flex;
	height: 42px;
	justify-content: center;
	overflow: hidden;
	padding: 0;
	transition: transform 0.2s ease, background-color 0.2s ease;
	width: 42px;
}

.dilumek-footer__social-link,
.dilumek-footer__social-link:hover,
.dilumek-footer__social-link:focus,
.dilumek-footer__social-link:focus-visible,
.dilumek-footer__social-link:active,
.dilumek-footer__social-link:visited {
	color: var(--dilumek-footer-text) !important;
}

.dilumek-footer__social-link svg {
	block-size: 20px;
	display: block;
	flex: 0 0 auto;
	inline-size: 20px;
	margin: auto;
}

.dilumek-footer__social-icon {
	block-size: 100%;
	display: block;
	flex: 0 0 auto;
	inline-size: 100%;
	object-fit: cover;
}

.dilumek-footer__social-link--image {
	background: transparent;
}

.dilumek-footer__social-link:hover,
.dilumek-footer__social-link:focus-visible {
	background: #c9181f;
	transform: translateY(-2px);
}

.dilumek-footer__social-link--image:hover,
.dilumek-footer__social-link--image:focus-visible {
	background: transparent;
	opacity: 0.88;
}

/* Hide Astra footer remnants. */
.site-footer,
.ast-footer-overlay,
.ast-small-footer,
[data-section="section-footer-builder"] {
	display: none !important;
}

footer.dilumek-footer.site-footer,
.dilumek-footer {
	display: block !important;
}

@media (max-width: 1100px) {
	.dilumek-footer__inner {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.dilumek-footer__brand {
		grid-column: 1 / -1;
		max-inline-size: 520px;
	}

	.dilumek-footer__col--social {
		grid-column: 1 / -1;
	}
}

@media (max-width: 720px) {
	.dilumek-footer__inner {
		gap: 28px;
		grid-template-columns: 1fr;
		padding-block: 40px;
	}

	.dilumek-footer__brand,
	.dilumek-footer__col--social,
	.dilumek-footer__description,
	.dilumek-footer__address {
		max-inline-size: none;
	}

	.dilumek-footer__heading--social {
		max-inline-size: none;
	}

	.dilumek-footer__texture {
		background-position: right bottom;
		background-size: 100% 100%;
		opacity: 0.9;
	}
}

@media (max-width: 480px) {
	.dilumek-footer__social-link {
		height: 40px;
		width: 40px;
	}
}
