/**
 * Footer SEO — layout al estilo referencia (logo + redes a la izquierda).
 */

.nj-footer {
	--nj-footer-bg: #1b2a49;
	--nj-footer-text: #ffffff;
	--nj-footer-muted: #b4b9c9;
	--nj-footer-accent: #7cb342;
	--nj-footer-border: #3a4a66;
	background-color: var(--nj-footer-bg);
	color: var(--nj-footer-muted);
	padding: 2.75rem 0 0;
	font-size: 0.9375rem;
	line-height: 1.5;
}

.nj-footer a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}

.nj-footer a:hover,
.nj-footer a:focus-visible {
	color: var(--nj-footer-text);
}

.nj-footer__inner {
	width: 100%;
	/* Hereda max-width/padding de .ast-container del sitio (1480px) */
	margin-inline: auto;
	box-sizing: border-box;
}

/* Proporciones de la referencia: marca 25% / empresa 15% / horario 24% / ayuda 14% / sedes 21% */
.nj-footer__grid {
	display: grid;
	grid-template-columns: minmax(240px, 1.65fr) minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, 0.95fr) minmax(0, 1.4fr);
	gap: 1.75rem 2rem;
	align-items: start;
}

.nj-footer__title {
	margin: 0 0 0.85rem;
	color: var(--nj-footer-text);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.3;
}

/* Marca: logo + redes a la izquierda, centrados en vertical en la columna */
.nj-footer__col--brand {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	align-self: center;
	gap: 0.5rem;
	padding: 0 3rem 0 0;
	margin: 0;
}

.nj-footer__logo-link {
	display: block;
	width: min(220px, 100%);
	max-width: 100%;
	line-height: 0;
	margin: 0;
	padding: 0;
}

.nj-footer__logo {
	display: block;
	width: 100%;
	height: auto;
	margin: 0;
	padding: 0;
	vertical-align: top;
	object-fit: contain;
	object-position: left top;
}

.nj-footer__logo-text {
	display: block;
	color: var(--nj-footer-text);
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.3;
}

.nj-footer__social {
	width: auto;
	max-width: 100%;
	margin: 0;
	padding: 0;
}

.nj-footer__social-list {
	display: flex;
	flex-wrap: nowrap;
	justify-content: flex-start;
	align-items: center;
	gap: 0.4rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nj-footer__social-list li {
	display: flex;
	flex: 0 0 auto;
	margin: 0;
	padding: 0;
	line-height: 0;
}

.nj-footer__social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	margin: 0;
	padding: 0;
	border-radius: 50%;
	background-color: var(--nj-footer-accent);
	color: #fff !important;
	flex-shrink: 0;
	line-height: 0;
}

.nj-footer__social-link[aria-disabled="true"] {
	pointer-events: none;
	cursor: default;
}

.nj-footer__social-link:hover,
.nj-footer__social-link:focus-visible {
	filter: brightness(1.08);
	color: #fff !important;
}

.nj-footer__social-link svg {
	display: block;
	width: 0.95rem;
	height: 0.95rem;
}

.nj-footer__links,
.nj-footer__hours,
.nj-footer__sedes {
	margin: 0;
	padding: 0;
	list-style: none;
}

.nj-footer__links li + li {
	margin-top: 0.5rem;
}

.nj-footer__hours-item + .nj-footer__hours-item {
	margin-top: 0.85rem;
}

.nj-footer__hours-name {
	margin: 0 0 0.15rem;
	color: var(--nj-footer-text);
	font-size: 0.875rem;
}

.nj-footer__hours-address {
	font-weight: 400;
	color: var(--nj-footer-muted);
}

.nj-footer__hours-line {
	margin: 0;
	font-size: 0.8125rem;
}

.nj-footer__sede + .nj-footer__sede {
	margin-top: 0.75rem;
}

.nj-footer__address {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.1rem;
	margin: 0;
	font-style: normal;
	font-size: 0.8125rem;
	line-height: 1.4;
}

.nj-footer__sede-line {
	color: var(--nj-footer-muted);
}

.nj-footer__sede-phone {
	color: var(--nj-footer-muted);
}

.nj-footer__bottom {
	margin-top: 2rem;
	padding: 1rem 0 1.15rem;
	border-top: 1px solid var(--nj-footer-border);
	text-align: center;
}

.nj-footer__legal {
	margin: 0;
	font-size: 0.8125rem;
	color: var(--nj-footer-muted);
}

.nj-footer__sep {
	margin-inline: 0.45rem;
	opacity: 0.7;
}

.nj-footer__powered {
	margin: 0.65rem 0 0;
	font-size: 0.75rem;
	opacity: 0.75;
	color: var(--nj-footer-muted);
}

/* Tablet: 2 columnas */
@media (max-width: 1100px) {
	.nj-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1.75rem 1.5rem;
	}

	.nj-footer__col--brand {
		grid-column: 1 / -1;
		align-self: start;
		align-items: flex-start;
	}

	.nj-footer__social-list {
		flex-wrap: wrap;
	}
}

/* Móvil */
@media (max-width: 640px) {
	.nj-footer {
		padding-top: 2.25rem;
	}

	.nj-footer__grid {
		grid-template-columns: 1fr;
		gap: 1.75rem;
	}

	.nj-footer__bottom {
		margin-top: 1.75rem;
	}

	.nj-footer__legal {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 0.35rem;
	}

	.nj-footer__sep {
		display: none;
	}
}

/* Oculta restos visuales del builder Astra si quedaran en DOM */
body.nj-custom-footer .site-above-footer-wrap,
body.nj-custom-footer .site-primary-footer-wrap,
body.nj-custom-footer .site-below-footer-wrap {
	display: none !important;
}
