/* =========================================================================
   Con Tradición – Bloque 8: Pie de página
   Áreas de widgets nativas de Genesis (Pie 1, Pie 2, Pie 3) + créditos.
   - Móvil: las tres columnas una debajo de otra.
   - Desde 768px: logotipo | enlaces | enlaces.
   ========================================================================= */

.footer-widgets,
.site-footer {
	background-color: var(--cs-pie);
	border-top: 0;
	color: var(--cs-claro);
}

/* Widgets
--------------------------------------------- */

.footer-widgets {
	padding: 48px var(--cs-margen-lateral) 24px;
}

.footer-widgets .wrap {
	display: grid;
	gap: 32px;
	grid-template-columns: 1fr;
	margin: 0 auto;
	max-width: var(--cs-ancho-contenido);
}

/* Los clearfix del tema romperían el grid. */
.footer-widgets .wrap::before,
.footer-widgets .wrap::after {
	display: none;
}

.footer-widget-area {
	float: none;
	margin: 0;
	padding: 0;
	width: auto;
}

.footer-widgets .widget {
	margin-bottom: 16px;
}

.footer-widgets .widget:last-child {
	margin-bottom: 0;
}

.footer-widgets .widget-title {
	color: inherit;
	font-family: var(--cs-fuente-titulos);
	font-weight: 400;
}

/* Logotipo (bloque Imagen en "Pie 1") */
.footer-widgets img {
	display: block;
	height: auto;
	max-width: 180px !important;
}

/* Enlaces (widgets de menú en "Pie 2" y "Pie 3") */
.footer-widgets .widget ul > li {
	margin-bottom: 8px;
}

.footer-widgets a {
	color: var(--cs-claro);
	font-size: 15px;
	text-decoration: none;
}

.footer-widgets a:focus,
.footer-widgets a:hover {
	color: var(--cs-claro);
	text-decoration: underline;
	text-decoration-color: var(--cs-detalle);
	text-underline-offset: 4px;
}

@media only screen and (min-width: 768px) {

	.footer-widgets .wrap {
		align-items: center;
		grid-template-columns: 1.4fr 1fr 1fr;
	}

}

/* Créditos (copyright)
--------------------------------------------- */

.site-footer {
	font-size: 13px;
	padding: 16px var(--cs-margen-lateral) 24px;
	text-align: center;
}

.site-footer a {
	color: inherit;
}
