/* ============================================================
   Ludik — Footer (cierre oscuro + easter-egg "Nivel completado")
   ============================================================ */

.site-footer {
	background: var(--c-neutral-900);
	color: rgba(255, 255, 255, 0.78);
	padding-top: var(--sp-4xl);
}

/* ---------- Bloque superior ---------- */
.site-footer__top {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--sp-2xl);
	padding-bottom: var(--sp-3xl);
}

.site-footer__logo { height: 30px; width: auto; color: var(--color-text-on-dark); display: block; }
.site-footer__logo-link { display: inline-flex; transition: opacity 0.3s var(--ease-out); }
.site-footer__logo-link:hover { opacity: 0.7; }

.site-footer__tagline {
	margin: var(--sp-lg) 0 var(--sp-lg);
	max-width: 38ch;
	font-size: var(--fs-body);
	line-height: var(--lh-relaxed);
	color: rgba(255, 255, 255, 0.65);
}

/* Redes */
.site-footer__social {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: var(--sp-sm);
}
.site-footer__social a {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	color: var(--color-text-on-dark);
	border: 1px solid rgba(255, 255, 255, 0.18);
	transition: color 0.3s var(--ease-out), background 0.3s var(--ease-out), border-color 0.3s var(--ease-out), transform 0.3s var(--ease-spring);
}
.site-footer__social svg { width: 20px; height: 20px; }
.site-footer__social a:hover {
	color: var(--c-neutral-900);
	background: var(--color-accent-green);
	border-color: var(--color-accent-green);
	transform: translateY(-3px);
}

/* Navegación */
.site-footer__nav {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--sp-xl) var(--sp-lg);
}
.site-footer__title {
	font-family: var(--font-display);
	text-transform: uppercase;
	font-size: var(--fs-small);
	letter-spacing: 0.06em;
	color: var(--color-text-on-dark);
	margin-bottom: var(--sp-md);
}
.site-footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--sp-sm); }
/* Solo enlaces de las listas (NO el botón CTA, que tiene su propio color). */
.site-footer__col ul a,
.site-footer__col ul span { color: rgba(255, 255, 255, 0.7); font-size: var(--fs-body); transition: color 0.25s var(--ease-out); }
.site-footer__col ul a:hover { color: var(--color-accent-green); }
.site-footer__nowrap { white-space: nowrap; }
.site-footer__col--cta .btn { margin-top: var(--sp-2xs); }

/* ---------- Barra inferior ---------- */
.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--sp-md);
	padding-block: var(--sp-lg);
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	font-size: var(--fs-small);
	color: rgba(255, 255, 255, 0.55);
}
.site-footer__copy { margin: 0; }

/* Easter-egg "Nivel completado" */
.site-footer__level {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	font-family: var(--font-display);
	font-weight: var(--fw-bold);
	font-size: var(--fs-caption);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 0.45em 0.9em;
	border-radius: var(--radius-pill);
	color: var(--c-neutral-900);
	background: var(--color-accent-green);
	box-shadow: 0 0 0 0 rgba(33, 236, 200, 0.5);
	animation: ludik-level-pulse 2.6s var(--ease-out) infinite;
}
.site-footer__level-icon { display: inline-grid; place-items: center; width: 1.1em; height: 1.1em; }
.site-footer__level-icon svg { width: 100%; height: 100%; }
@keyframes ludik-level-pulse {
	0%   { box-shadow: 0 0 0 0 rgba(33, 236, 200, 0.5); }
	70%  { box-shadow: 0 0 0 10px rgba(33, 236, 200, 0); }
	100% { box-shadow: 0 0 0 0 rgba(33, 236, 200, 0); }
}

.site-footer__legal { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--sp-md); }
.site-footer__legal a { color: rgba(255, 255, 255, 0.55); transition: color 0.25s var(--ease-out); }
.site-footer__legal a:hover { color: var(--color-text-on-dark); }

/* ---------- Desktop ---------- */
@media (min-width: 768px) {
	.site-footer__top { grid-template-columns: 1.3fr 1.7fr; gap: var(--sp-4xl); }
	.site-footer__nav { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
	.site-footer__level { animation: none; }
}
