/**
 * Footer — Moni Sarai.
 *
 * Portado del `Footer` de Lovable. Equivalencias Tailwind → px:
 * mt-24=96 · py-16=64 · px-6=24 · gap-12=48 · mt-5=20 · space-y-3=12
 * h-20=80 · max-w-sm=384 · max-w-6xl=1152 · text-sm=14 · text-xs=12
 *
 * ⚠ Todo en px, nunca rem: OceanWP declara `html { font-size: 62.5% }`.
 *
 * Este archivo es autocontenido —trae su propio contenedor— porque se carga en
 * todas las páginas, también donde no entra components.css.
 *
 * Las transparencias del diseño (texto al 75%, enlaces al 85%, antetítulo al
 * 60%…) se hacen con `color-mix` sobre el crema de marca, no con `opacity`:
 * así el texto no se ve «lavado» y el contraste sigue siendo el real.
 */

.ms-footer {
	margin-top: 96px;
	background-color: var(--ms-primary, #396040);
	color: var(--ms-primary-foreground, #fdfcf8);
	font-family: var(--ms-font-sans);
}

.ms-footer *,
.ms-footer *::before,
.ms-footer *::after {
	box-sizing: border-box;
}

/* -------------------------------------------------------------------------
 * 1. Rejilla
 * ---------------------------------------------------------------------- */

.ms-footer__inner {
	display: grid;
	gap: 48px;
	width: 100%;
	max-width: 1152px;
	margin-inline: auto;
	padding: 64px 24px;
}

@media (min-width: 768px) {

	.ms-footer__inner {
		grid-template-columns: 1.2fr 1fr 1fr;
	}
}

.ms-footer__marca,
.ms-footer__col {
	min-width: 0;
}

/* -------------------------------------------------------------------------
 * 2. Marca
 * ---------------------------------------------------------------------- */

.ms-footer__logo {
	display: block;
	width: auto;
	height: 80px;
	max-width: 100%;
}

/* Respaldo cuando no hay logo subido. */
.ms-footer__sitename {
	display: block;
	font-family: var(--ms-font-display);
	font-size: 32px;
	line-height: 1.1;
	color: var(--ms-primary-foreground, #fdfcf8);
}

.ms-footer__texto {
	margin: 20px 0 0;
	max-width: 384px;
	font-size: 14px;
	line-height: 1.75;
	color: color-mix(in srgb, var(--ms-primary-foreground, #fdfcf8) 75%, transparent);
}

/* -------------------------------------------------------------------------
 * 3. Columnas de enlaces
 * ---------------------------------------------------------------------- */

.ms-footer__eyebrow {
	margin: 0;
	font-family: var(--ms-font-sans);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: var(--ms-tracking-eyebrow, 0.22em);
	line-height: 1.4;
	text-transform: uppercase;
	color: color-mix(in srgb, var(--ms-primary-foreground, #fdfcf8) 60%, transparent);
}

.ms-footer__lista {
	margin: 20px 0 0;
	padding: 0;
	list-style: none;
}

.ms-footer__item {
	margin: 0 0 12px;
	font-size: 14px;
	line-height: 1.6;
}

.ms-footer__item:last-child {
	margin-bottom: 0;
}

/* La línea de la ciudad no es un enlace, pero se lee igual que ellos. */
.ms-footer__item--plano {
	color: color-mix(in srgb, var(--ms-primary-foreground, #fdfcf8) 85%, transparent);
}

.ms-footer__link {
	color: color-mix(in srgb, var(--ms-primary-foreground, #fdfcf8) 85%, transparent);
	text-decoration: none;
	transition: color 0.2s ease;
}

.ms-footer__link:hover,
.ms-footer__link:focus-visible {
	color: var(--ms-primary-foreground, #fdfcf8);
}

.ms-footer__link:focus-visible {
	outline: 2px solid color-mix(in srgb, var(--ms-primary-foreground, #fdfcf8) 70%, transparent);
	outline-offset: 3px;
}

/* -------------------------------------------------------------------------
 * 4. Línea legal
 * ---------------------------------------------------------------------- */

.ms-footer__legal {
	padding: 24px;
	border-top: 1px solid color-mix(in srgb, var(--ms-primary-foreground, #fdfcf8) 15%, transparent);
	font-size: 12px;
	line-height: 1.6;
	text-align: center;
	color: color-mix(in srgb, var(--ms-primary-foreground, #fdfcf8) 55%, transparent);
}

/* -------------------------------------------------------------------------
 * 5. Fuera el footer de OceanWP
 *
 * Por si alguna extensión del tema padre lo vuelve a imprimir: el del sitio
 * es este, y dos pies de página seguidos se notan.
 * ---------------------------------------------------------------------- */

#footer-widgets,
.footer-widgets,
#footer-bottom {
	display: none;
}
