/**
 * Footer — administrable.
 * Barra superior: color Secundario. Sin newsletter / back-to-top.
 */

.hec-footer {
	font-family: "Plus Jakarta Sans", sans-serif;
	color: #5b6472;
	background: #f6f7f9;
}

.hec-footer__container {
	width: 100%;
	max-width: var(--hec-content-width, 1320px);
	margin: 0 auto;
	padding-left: 24px;
	padding-right: 24px;
	box-sizing: border-box;
}

/* ===== Top bar ===== */
.hec-footer-top {
	background: var(--hec-secondary, #141d3c);
	color: #ffffff;
}

.hec-footer-top__inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 24px;
	min-height: 92px;
	padding-top: 36px;
	padding-bottom: 36px;
}

.hec-footer-top__email {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
}

.hec-footer-top__email-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border: 1px solid rgba(255, 255, 255, 0.45);
	border-radius: 50%;
	flex-shrink: 0;
	color: #fff;
}

.hec-footer-top__email-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.hec-footer-top__email-label {
	font-size: 0.8rem;
	font-weight: 500;
	opacity: 0.9;
	line-height: 1.2;
}

.hec-footer-top__email-link {
	color: #fff;
	font-size: 1.05rem;
	font-weight: 700;
	text-decoration: none;
	word-break: break-word;
	line-height: 1.3;
}

.hec-footer-top__email-link:hover {
	color: var(--hec-primary, #eecb68);
}

.hec-footer-top__logo {
	display: flex;
	justify-content: center;
	padding: 0 16px;
	border-left: 1px solid rgba(255, 255, 255, 0.25);
	border-right: 1px solid rgba(255, 255, 255, 0.25);
}

.hec-footer-top__logo .hec-brand-logo__img {
	max-height: 44px;
	width: auto;
	filter: brightness(0) invert(1);
}

.hec-footer-top__logo .hec-logo-text {
	color: #fff;
	font-weight: 800;
	font-size: 1.25rem;
}

.hec-footer-top__social {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 10px;
}

.hec-footer-top__social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.4);
	color: #fff;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.hec-footer-top__social-link:hover {
	background: var(--hec-primary, #eecb68);
	border-color: var(--hec-primary, #eecb68);
	color: var(--hec-secondary, #141d3c);
}

/* ===== Main ===== */
.hec-footer-main {
	position: relative;
	padding: 64px 0 48px;
	background-color: #f6f7f9;
	background-image:
		radial-gradient(circle at 8% 70%, rgba(20, 29, 60, 0.04) 0, rgba 28%),
		linear-gradient(135deg, rgba(20, 29, 60, 0.035) 1px, transparent 1px),
		linear-gradient(45deg, rgba(20, 29, 60, 0.035) 1px, transparent 1px);
	background-size: auto, 42px 42px, 42px 42px;
}

.hec-footer-main__grid {
	display: grid;
	grid-template-columns: 1.35fr 1fr 1fr 1.25fr;
	gap: 36px 40px;
}

.hec-footer-col__title {
	margin: 0 0 18px;
	color: var(--hec-secondary, #141d3c);
	font-size: 24px;
	font-weight: 600;
	line-height: 1.3;
}

.hec-footer-col__text {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.75;
	color: #6b7280;
}

.hec-footer-menu,
.hec-footer-legal {
	list-style: none;
	margin: 0;
	padding: 0;
}

.hec-footer-menu li {
	margin: 0 0 12px;
}

.hec-footer-menu a {
	color: #6b7280;
	text-decoration: none;
	font-size: 0.95rem;
	font-weight: 500;
	line-height: 1.4;
	transition: color 0.2s ease;
}

.hec-footer-menu a:hover {
	color: var(--hec-secondary, #141d3c);
}

/* Latest posts */
.hec-footer-posts {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.hec-footer-posts__item {
	display: flex;
	align-items: flex-start;
	gap: 14px;
}

.hec-footer-posts__thumb {
	display: block;
	width: 72px;
	height: 72px;
	flex-shrink: 0;
	border-radius: 8px;
	overflow: hidden;
	background: #e5e7eb;
}

.hec-footer-posts__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.hec-footer-posts__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #e5e7eb, #d1d5db);
}

.hec-footer-posts__body {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding-top: 2px;
}

.hec-footer-posts__title {
	color: var(--hec-secondary, #141d3c);
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.4;
	text-decoration: none;
}

.hec-footer-posts__title:hover {
	color: var(--hec-primary, #eecb68);
}

.hec-footer-posts__date {
	font-size: 0.82rem;
	color: #8a939c;
	font-weight: 500;
}

/* ===== Bottom ===== */
.hec-footer-bottom {
	border-top: 1px solid #e5e7eb;
	background: #f6f7f9;
}

.hec-footer-bottom__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px 24px;
	flex-wrap: wrap;
	padding-top: 20px;
	padding-bottom: 22px;
}

.hec-footer-bottom__copy {
	margin: 0;
	font-size: 0.875rem;
	color: #6b7280;
	line-height: 1.5;
}

.hec-footer-legal {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 18px;
}

.hec-footer-legal li {
	margin: 0;
}

.hec-footer-legal a {
	color: #6b7280;
	text-decoration: none;
	font-size: 0.875rem;
	font-weight: 500;
}

.hec-footer-legal a:hover {
	color: var(--hec-secondary, #141d3c);
}

/* ===== Estilo Secundario (admin) ===== */
.hec-footer--secondary {
	background: var(--hec-secondary, #141d3c);
	color: #ffffff;
}

.hec-footer--secondary .hec-footer-main {
	background-color: var(--hec-secondary, #141d3c);
	background-image:
		radial-gradient(circle at 8% 70%, rgba(255, 255, 255, 0.06) 0, transparent 28%),
		linear-gradient(135deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
		linear-gradient(45deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
	background-size: auto, 42px 42px, 42px 42px;
	color: rgba(255, 255, 255, 0.85);
}

.hec-footer--secondary .hec-footer-col__title {
	color: #ffffff;
}

.hec-footer--secondary .hec-footer-col__text,
.hec-footer--secondary .hec-footer-menu a,
.hec-footer--secondary .hec-footer-posts__date,
.hec-footer--secondary .hec-footer-bottom__copy,
.hec-footer--secondary .hec-footer-legal a {
	color: rgba(255, 255, 255, 0.78);
}

.hec-footer--secondary .hec-footer-menu a:hover,
.hec-footer--secondary .hec-footer-legal a:hover,
.hec-footer--secondary .hec-footer-posts__title {
	color: #ffffff;
}

.hec-footer--secondary .hec-footer-posts__title:hover {
	color: var(--hec-primary, #eecb68);
}

.hec-footer--secondary .hec-footer-posts__thumb {
	background: rgba(255, 255, 255, 0.12);
}

.hec-footer--secondary .hec-footer-bottom {
	background: var(--hec-secondary, #141d3c);
	border-top-color: rgba(255, 255, 255, 0.18);
}

.hec-footer--secondary.hec-footer--no-top .hec-footer-main {
	padding-top: 56px;
}

@media (max-width: 1100px) {
	.hec-footer-main__grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 768px) {
	.hec-footer-top__inner {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		justify-content: flex-start;
		grid-template-columns: none;
		text-align: left;
		gap: 28px;
		min-height: 0;
		padding-top: 36px;
		padding-bottom: 36px;
	}

	.hec-footer-top__email {
		justify-content: flex-start;
		width: 100%;
		text-align: left;
	}

	.hec-footer-top__email-icon {
		width: 56px;
		height: 56px;
		border: 0;
		background: rgba(255, 255, 255, 0.12);
	}

	.hec-footer-top__logo {
		display: flex;
		justify-content: flex-start;
		width: 100%;
		border: 0;
		padding: 0;
	}

	.hec-footer-top__social {
		justify-content: flex-start;
		width: 100%;
		gap: 12px;
	}

	.hec-footer-top__social-link {
		width: 42px;
		height: 42px;
		border: 0;
		background: rgba(255, 255, 255, 0.12);
	}

	.hec-footer-top__social-link:hover {
		background: var(--hec-primary, #eecb68);
		color: var(--hec-secondary, #141d3c);
	}

	.hec-footer-main {
		padding: 48px 0 36px;
	}

	.hec-footer-main__grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.hec-footer-bottom__inner {
		flex-direction: column;
		align-items: flex-start;
	}
}
