/* Footer global (footer.php). Cada columna es un menú de WordPress. */

.mol-footer {
	padding: clamp(60px, 7vw, 90px) 0 28px;
	background: var(--color-brand-red);
	color: rgba(255, 255, 255, .88);
	font-size: 15px;
}

.mol-footer__inner {
	max-width: var(--wrap-max);
	margin-inline: auto;
	padding-inline: var(--wrap-pad);
}

/* Mobile: logo centrado arriba; Marcas y Empresa a la izquierda, Ayuda a la derecha. */
.mol-footer__cols {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 34px 22px;
}

.mol-footer__brand {
	grid-column: 1 / -1;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding-bottom: 10px;
	text-align: center;
}
.mol-footer__col { min-width: 0; }

.mol-footer__logo img {
	display: block;
	height: 56px;
	width: auto;
	max-width: 220px;
	object-fit: contain;
}

.mol-footer__tagline { margin: 16px 0 0; }

.mol-footer__social { margin-top: 22px; }
.mol-footer__social-title { margin: 0 0 12px; font-size: 15px; font-weight: 700; color: #fff; }
.mol-footer__social-list {
	display: flex;
	justify-content: center;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.mol-footer__social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border: 1px solid rgba(255, 255, 255, .5);
	border-radius: 50%;
	color: #fff;
	transition: background-color .2s, border-color .2s, transform .2s;
}
.mol-footer__social-link:hover,
.mol-footer__social-link:focus-visible {
	background: rgba(255, 255, 255, .14);
	border-color: #fff;
	color: #fff;
	transform: translateY(-2px);
}
.mol-footer__social-link svg { display: block; width: 21px; height: 21px; }

.mol-footer__title {
	margin: 0 0 14px;
	font-family: var(--font-body);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0;
	color: #fff;
}

.mol-footer__menu {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.mol-footer__menu a { color: inherit; text-decoration: none; }
.mol-footer__menu a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

/* Barra legal: razón social y RUC a la izquierda, dirección a la derecha. */
.mol-footer__bar {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 24px;
	margin-top: 36px;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, .32);
	font-size: 14px;
	color: rgba(255, 255, 255, .9);
}
.mol-footer__legal,
.mol-footer__address { margin: 0; }
.mol-footer__legal strong { color: #fff; }

.mol-footer__note {
	margin: 12px 0 0;
	font-size: 13px;
	line-height: 1.55;
	color: rgba(255, 255, 255, .82);
}

@media (min-width: 768px) {
	.mol-footer__brand {
		align-items: flex-start;
		text-align: left;
	}
	.mol-footer__logo img { height: 52px; }
	.mol-footer__social-list { justify-content: flex-start; }
	.mol-footer__bar { margin-top: 44px; }
}

@media (min-width: 1025px) {
	.mol-footer__cols { grid-template-columns: 1.3fr repeat(4, minmax(0, 1fr)); gap: 32px; }
	.mol-footer__brand { grid-column: auto; padding-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.mol-footer__social-link { transition: none; }
}
