/* ============================================================
   .mp-footer — Footer global (tema blanco)
   Prefijo de clase: .mp-footer — no reutilizar en otro widget.
   Encolado en todo el front mientras el tema hijo esté activo
   (footer global vía bookworm-child/footer.php)
   (ver modules/headerfooter/class-footer-renderer.php).
   Breakpoints del proyecto: tablet 1024 · mobile 767.
   ============================================================ */
.mp-footer {
  --navy-dark: #14265e;
  --navy: #1c3a8a;
  --navy-light: #2b4fa8;
  --gold: #f5a623;
  --gold-dark: #e0951a;

  --text-dark: #16204a;
  --text-body: #3d4560;
  --text-muted: #7a8296;
  --border: #e7e9f0;
  --bg-soft: #f6f7fb;
  --blue-bg: #e8ecfc;

  font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
  color: var(--text-body);
  background: #fff;
  border-top: 1px solid var(--border);
  box-sizing: border-box;
}
.mp-footer *, .mp-footer *::before, .mp-footer *::after { box-sizing: inherit; }
.mp-footer a { text-decoration: none; cursor: pointer; }
.mp-footer ul { list-style: none; margin: 0; padding: 0; }
.mp-footer svg { display: block; }
.mp-footer a:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; border-radius: 4px; }

.mp-footer__inner { max-width: 1180px; margin: 0 auto; padding: 56px 32px 40px; }

/* minmax(0, 1fr): evita que el mínimo automático del 1fr lo inflle el
   contenido y desborde el viewport en mobile (patrón de .mp-account). */
.mp-footer__grid { display: grid; grid-template-columns: 1.6fr minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }

/* --- Marca --- */
.mp-footer__brand { min-width: 0; }
.mp-footer__logo { display: inline-block; margin-bottom: 20px; }
.mp-footer__logo img { width: 260px; max-width: 100%; height: auto; display: block; }
.mp-footer__desc { font-size: 13.5px; line-height: 1.65; color: var(--text-muted); margin: 0 0 22px; max-width: 360px; }

.mp-footer .mp-footer__contact { display: flex; flex-direction: column; gap: 12px; margin: 0 0 24px; }
.mp-footer__contact li { display: flex; align-items: flex-start; gap: 12px; font-size: 13.5px; line-height: 1.5; color: var(--text-body); }
.mp-footer__contact svg { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 2px; color: var(--navy); }
.mp-footer__contact a { color: var(--text-body); word-break: break-word; }
.mp-footer__contact a:hover { color: var(--navy); text-decoration: underline; }

.mp-footer__social { display: flex; gap: 10px; }
.mp-footer__social a {
  width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; color: var(--navy);
  transition: background .15s, color .15s, border-color .15s;
}
.mp-footer__social a svg { width: 17px; height: 17px; }
.mp-footer__social a:hover { background: var(--navy); border-color: var(--navy); color: #fff; }

/* --- Columnas de links --- */
.mp-footer__title {
  font-size: 12.5px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase;
  color: var(--text-dark); margin: 0 0 18px; padding-bottom: 12px; position: relative;
}
.mp-footer__title::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 28px; height: 3px;
  border-radius: 999px; background: var(--gold);
}
.mp-footer__links { display: flex; flex-direction: column; gap: 12px; }
.mp-footer__links li { list-style: none; }
.mp-footer__links a { font-size: 14px; color: var(--text-body); transition: color .15s; }
.mp-footer__links a:hover { color: var(--navy); text-decoration: underline; }

/* --- Barra inferior --- */
.mp-footer__bottom { background: var(--bg-soft); border-top: 1px solid var(--border); }
.mp-footer__bottom-inner {
  max-width: 1180px; margin: 0 auto; padding: 18px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--text-muted);
}
.mp-footer__bottom a { color: var(--gold-dark); font-weight: 700; }
.mp-footer__bottom a:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  .mp-footer__social a, .mp-footer__links a { transition: none; }
}

/* --- Responsive --- Breakpoints del proyecto: tablet 1024 · mobile 767 */
@media (max-width: 1024px) {
  .mp-footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px 32px; }
  .mp-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .mp-footer__inner { padding: 40px 18px 28px; }
  .mp-footer__bottom-inner { padding: 16px 18px; flex-direction: column; align-items: flex-start; }
  .mp-footer__logo img { width: 220px; }
}