footer.footer {
  width: 100%;
  display: block;
}

.app-footer-inner {
  max-width: 1750px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  /* Igual que .app-header-inner en navbarv2.css */
  padding-left: 1rem;
  padding-right: 1rem;
  box-sizing: border-box;
  display: block !important;
}

.app-footer-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  align-items: start;
  column-gap: 1.5rem;
  row-gap: 1.5rem;
  width: 100% !important;
  box-sizing: border-box;
}

.app-footer-grid > * {
  min-width: 0;
}

.app-footer-grid a {
  overflow-wrap: anywhere;
}

.app-footer-brand,
.app-footer-copy {
  grid-column: 1 / -1;
}

@media (min-width: 1200px) {
  /* El header tiene 2rem de padding, pero su primer link suma 1rem propio de
     .nav-link, mientras que el boton Get API Key llega al borde del contenedor.
     De ahi la asimetria: iguala el texto a la izquierda y el boton a la derecha. */
  .app-footer-inner {
    padding-left: 3rem;
    padding-right: 2rem;
  }

  .app-footer-grid {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    column-gap: 1.5rem;
    row-gap: 1.5rem;
  }

  .app-footer-grid > *:not(.app-footer-copy) {
    flex: 0 1 auto;
    max-width: none;
    grid-column: auto;
  }

  /* Sin el tope, el parrafo de la marca se estira en una linea y empuja al resto */
  .app-footer-grid > .app-footer-brand {
    flex: 0 1 260px;
  }

  .app-footer-copy {
    flex: 1 1 100%;
    max-width: none;
    grid-column: auto;
  }
}
