/*--------------------------------------------------------------
# Global Footer
--------------------------------------------------------------*/
#footer-container {
  position: relative;
  bottom: 0;
  width: 100%;
}

.footer {
  font-family: 'Inter', sans-serif;
  color: var(--heading-color);
  background-color: var(--background-color);
  font-size: 14px;
  padding: 24px 0;
  position: relative;
}

.footer div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 20px;
}

.footer .location,
.footer .link,
.footer .copyright {
  flex: 1;
  min-width: 0; /* evita desbordes si el texto es largo */
}

/* alineaciones específicas */
.footer .location {
  display: flex;
  justify-content: flex-start;
}
.footer .link {
  display: flex;
  justify-content: center;
  text-align: center;
}
.footer .copyright {
  display: flex;
  justify-content: flex-end;
  text-align: right;
}

/* reseteos útiles */
.footer p {
  margin: 0;
}
.footer .copyright p {
  white-space: nowrap;
}

@media (max-width: 767.98px) {
  .footer div {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 6px;
    padding: 0;
  }

  /* DACSA.COM arriba */
  .footer .link {
    grid-area: link;
    justify-content: center;
    text-align: center;
  }

  /* Buenos Aires, Argentina + año abajo */
  .footer .location {
    grid-area: loc;
    justify-content: flex-end; /* empuja hacia el centro */
    text-align: right;
  }

  .footer .copyright {
    grid-area: copy;
    justify-content: flex-start; /* empuja hacia el centro */
    text-align: left;
    white-space: nowrap; /* evita salto en “© 2025” */
  }

  .footer .location,
  .footer .link,
  .footer .copyright {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 0;
  }

  .footer .fcontainer {
    display: grid !important;
    grid-template-columns: auto auto; /* dos columnas para “loc” y “copy” */
    grid-template-rows: auto auto; /* fila 1: link / fila 2: loc + copy */
    grid-template-areas:
      'link link'
      'loc  copy';
    justify-content: center;
    align-items: center;
    row-gap: 6px;
    column-gap: 6px; /* separa levemente “loc” y “copy” */
    padding: 0 10px;
  }
}

@media (max-width: 480px) {
  #footer-container {
    position: absolute;
  }
}
