/* Footer del sitio (footer.php). No aplica a las páginas de modelo, que usan footer-modelo.php */

.ec-footer {
	--ec-rojo: #E4002B;
	--ec-pizarra: #333F48;
	--ec-pizarra-oscuro: #2a343c;
	position: relative;
	margin-top: 0;
	background: var(--ec-pizarra);
	border-top: 4px solid var(--ec-rojo);
	color: rgba(255, 255, 255, .78);
	font-family: "Roboto", sans-serif;
	font-size: 16px; /* base fija: el tema X usa un rem de 22,4px; aquí todo se mide en em */
	line-height: 1.5;
}

.ec-footer .container {
	max-width: 1260px;
}

@media (min-width: 1200px) {
	.ec-footer-columna {
		white-space: nowrap;   /* títulos y enlaces de menú en una sola línea */
	}

	.ec-footer-contacto {
		white-space: normal;
	}
}

.ec-footer a {
	text-decoration: none;
}

/* El "CSS Adicional" de cada página (exportado del tema X) fuerza p, ul y li con !important
   y con valores distintos por página; aquí se fijan los tamaños solo dentro del footer */
.ec-footer .ec-footer-menu,
.ec-footer .ec-footer-menu li,
.ec-footer .ec-footer-menu a {
	font-size: 16px !important;
}

.ec-footer p.ec-footer-titulo {
	font-size: 14px !important;
}

/* ---------- Bloque principal ---------- */
.ec-footer-principal {
	padding: 4em 0 3em;
}

.ec-footer-logo img {
	display: block;
	width: 150px;
	height: auto;
}

.ec-footer-redes {
	display: flex;
	gap: .6em;
}

.ec-footer-redes a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .08);
	color: #fff;
	font-size: 17px;
	transition: background .2s ease, transform .2s ease;
}

.ec-footer-redes a:hover,
.ec-footer-redes a:focus-visible {
	background: var(--ec-rojo);
	color: #fff;
	transform: translateY(-2px);
}

.ec-footer-redes .x-graphic,
.ec-footer-redes .x-icon {
	color: inherit;
	line-height: 1;
}

.ec-footer .sello-ccs {
	margin-top: 1.75em;
}

/* Columnas de menú */
.ec-footer p.ec-footer-titulo {
	position: relative;
	margin: 0 0 1.25em;
	padding-bottom: .75em;
	font-family: Futura, "Trebuchet MS", Arial, sans-serif;
	font-size: .9em;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.ec-footer-titulo::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 28px;
	height: 3px;
	border-radius: 2px;
	background: var(--ec-rojo);
}

.ec-footer-titulo a {
	color: #fff;
}

.ec-footer-titulo a:hover {
	color: #fff;
	opacity: .85;
}

.ec-footer-menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ec-footer-menu li {
	margin: 0 0 .55em;
	padding: 0;
	line-height: 1.4;
}

.ec-footer-menu a {
	display: inline-block;
	color: rgba(255, 255, 255, .72);
	font-size: 1em;
	line-height: 1.4;
	transition: color .2s ease, transform .2s ease;
}

.ec-footer-menu a:hover,
.ec-footer-menu a:focus-visible,
.ec-footer-menu .current-menu-item > a {
	color: #fff;
	transform: translateX(3px);
}

/* ---------- Barra legal ---------- */
.ec-footer-legal {
	background: var(--ec-rojo);
	color: #fff;
}

.ec-footer-legal .container {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: .5em 1.5em;
	padding-top: .85em;
	padding-bottom: .85em;
	font-family: Futura, "Trebuchet MS", Arial, sans-serif;
	font-size: .9em;
	font-weight: 700;
}

.ec-footer-legal a {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.ec-footer-legal a:hover {
	color: #fff;
	opacity: .85;
}

/* ---------- Pantallas medianas y móvil: la marca pasa a una fila propia ---------- */
@media (max-width: 1199.98px) {
	.ec-footer-marca {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: 1.25em 2em;
	}

	.ec-footer-redes,
	.ec-footer .sello-ccs {
		margin-top: 0;
	}
}

@media (max-width: 575.98px) {
	.ec-footer-principal {
		padding: 3em 0 2em;
	}

	.ec-footer-marca {
		flex-direction: column;
		text-align: center;
	}

	.ec-footer-logo img {
		margin: 0 auto;
	}

	.ec-footer-legal .container {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
}

/* ---------- Columna de contacto ---------- */
.ec-footer-contacto .ec-footer-menu li {
	display: flex;
	align-items: flex-start;
	gap: .65em;
	margin-bottom: .8em;
	color: rgba(255, 255, 255, .72);
}

.ec-footer-contacto svg {
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	margin-top: 1px;
	fill: var(--ec-rojo);
}

.ec-footer .ec-footer-contacto li span {
	font-size: 15px !important;
	line-height: 1.45;
}

.ec-footer-contacto .ec-footer-menu a:hover {
	transform: none;
}

.ec-footer-whatsapp {
	display: inline-flex;
	align-items: center;
	gap: .5em;
	margin-top: .6em;
	padding: .55em 1.1em;
	border: 1px solid rgba(255, 255, 255, .3);
	border-radius: 999px;
	color: #fff;
	font-size: 14px;
	font-weight: 500;
	white-space: nowrap;
	transition: background .2s ease, border-color .2s ease;
}

.ec-footer-whatsapp svg {
	width: 18px;
	height: 18px;
	fill: #25D366;
}

.ec-footer-whatsapp:hover,
.ec-footer-whatsapp:focus-visible {
	background: #25D366;
	border-color: #25D366;
	color: #fff;
}

.ec-footer-whatsapp:hover svg {
	fill: #fff;
}
