/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER — one definition, loaded by every public page.

   This used to be two: home carried .foot-* here in site.css, /aprendizaje
   carried a near-identical .footer-* in landing.css, and the markup was
   copy-pasted into both documents. They had already drifted — different
   stacking behaviour on narrow screens, inline styles on one side — and a fix
   applied to one simply did not reach the other. The markup is now built once
   in site.js (see ctaForms/siteFooter there); these are its styles.

   Relies on --indigo-dark, --spark, --serif and --mono, which site.css and
   landing.css both define.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Footer ──────────────────────────────────────────────────────────────── */

footer {
  background: var(--indigo-dark);
  padding: 56px 48px 36px;
}

.foot-top {
  display: flex;
  flex-wrap: wrap;
  /* Not the default stretch: a short block sharing a row with a tall one would
     grow to match it and leave dead space under its own text. */
  align-items: flex-start;
  gap: 40px;
  max-width: 1160px;
  margin: 0 auto 36px;
}

.foot-brand {
  flex: 1 1 280px;
}

/* Was an inline style on the wrapper div in both documents. The colour is
   here so the logo path, drawn with currentColor, follows the wordmark. */
.foot-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: #f6f5f1;
}

.foot-brand h3 {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 350;
  letter-spacing: 0.19em;
  color: #f6f5f1;
  margin-bottom: 10px;
}

.foot-brand p {
  font-size: 14px;
  line-height: 1.64;
  color: rgba(246, 245, 241, 0.45);
  max-width: 300px;
}

.foot-col {
  flex: 1 1 145px;
}

.foot-col h4 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(246, 245, 241, 0.35);
  margin-bottom: 13px;
}

.foot-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.foot-col a {
  font-size: 14px;
  color: rgba(246, 245, 241, 0.55);
  text-decoration: none;
}

.foot-col a:hover {
  color: var(--spark);
}

.foot-bottom {
  max-width: 1160px;
  margin: 0 auto;
  border-top: 1px solid rgba(246, 245, 241, 0.08);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  justify-content: center;
  align-items: center;
  font-size: 12.5px;
  color: rgba(246, 245, 241, 0.4);
}

.foot-bottom nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.foot-bottom a {
  color: rgba(246, 245, 241, 0.4);
  text-decoration: none;
}

.foot-bottom a:hover {
  color: var(--spark);
}

@media (max-width: 960px) {
  footer {
    padding: 44px 24px 30px;
  }
}

@media (max-width: 860px) {
  .foot-top {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 32px 20px;
  }

  .foot-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 460px) {
  .foot-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
