/* Pie de página: reglas unificadas. No depende de márgenes acumulados del logo. */
.site-footer {
  padding-top: 48px;
  color: #b0c3d2;
  background: var(--navy-deep);
}
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  align-items: start;
  column-gap: clamp(28px, 3.5vw, 52px);
  row-gap: 32px;
  padding-bottom: 34px;
}
.site-footer .footer-grid > div { min-width: 0; }
.site-footer .footer-intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
  grid-column: auto;
}
.site-footer .footer-intro > .logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 280px);
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 9px 12px;
  gap: 0;
  background: #ffffff;
  border: 0;
  border-radius: 14px;
  box-shadow: none;
  transform: none;
  line-height: 0;
}
.site-footer .footer-intro > .logo:hover { transform: none; }
.site-footer .footer-intro > .logo > .site-logo-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 92px;
  margin: 0;
  padding: 0;
  border: 0;
  object-fit: contain;
  filter: none;
  box-shadow: none;
  background: transparent;
}
.site-footer .footer-intro > p {
  width: 100%;
  max-width: 360px;
  margin: 0;
  padding: 0;
  color: #b0c3d2;
  font-size: 1rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}
.site-footer .footer-grid h2 {
  color: #ffffff;
  font-size: 1.0625rem;
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 16px;
}
.site-footer .footer-grid > div > a:not(.logo),
.site-footer .footer-button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  color: #b0c3d2;
  background: none;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  text-align: left;
  overflow-wrap: break-word;
}
.site-footer .footer-grid > div > a:last-child,
.site-footer .footer-button:last-child { margin-bottom: 0; }
.site-footer .footer-grid a:hover, .site-footer .footer-button:hover { color: #ffffff; }
.site-footer .footer-button .icon { width: 13px; height: 13px; }
.site-footer .footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 20px;
  margin: 0 auto;
  padding: 20px 72px 24px 0;
  border-top: 1px solid #ffffff1a;
  color: #8ba5ba;
  font-size: .8125rem;
  line-height: 1.5;
}
.site-footer .admin-access-link {
  font-size: .8125rem;
  text-underline-offset: 4px;
}
.site-footer .footer-legal {
  grid-column: 1 / -1;
  grid-row: 2;
  justify-self: stretch;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .65rem 2.25rem;
  padding: .35rem 0 0;
}
.site-footer .footer-legal a {
  color: inherit;
  font-size: .6875rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .015em;
  white-space: nowrap;
  text-underline-offset: 4px;
}
.site-footer .footer-legal a:hover,
.site-footer .footer-legal a:focus-visible,
.site-footer .footer-legal a[aria-current="page"] { color: var(--blue); }
@media (max-width: 720px) {
  .site-footer .footer-legal { grid-column: 1 / -1; grid-row: 3; }
}
@media (max-width: 1100px) {
  .site-footer .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 36px;
  }
  .site-footer .footer-intro > .logo { width: min(100%, 270px); }
}
@media (max-width: 650px) {
  .site-footer { padding-top: 32px; }
  .site-footer .footer-grid { gap: 26px 22px; padding-bottom: 28px; }
  .site-footer .footer-intro { grid-column: 1 / -1; gap: 14px; }
  .site-footer .footer-intro > .logo { width: min(100%, 260px); border-radius: 12px; }
  .site-footer .footer-intro > p { max-width: 36ch; }
  .site-footer .footer-grid > div:last-child { grid-column: 1 / -1; }
  .site-footer .footer-grid h2 { margin-bottom: 12px; }
  .site-footer .footer-bottom { padding-right: 62px; padding-bottom: 26px; }
  .site-footer .footer-legal {
    display: grid;
    justify-content: center;
    justify-items: center;
    gap: .65rem;
    padding-top: .4rem;
  }
}
@media print {
  .site-footer { display: none !important; }
}
