/* ============================================================
   CONSTRUFACH — FOOTER
   ============================================================ */

.footer {
  background: var(--white);
  border-top: 3px solid var(--red);
  position: relative;
}

/* ── Nav grid ──────────────────────────────────────────────── */
.footer-links-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem 3rem 3rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem;
  list-style: none;
}

/* ── Columna individual ────────────────────────────────────── */
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Logo */
.footer-links:first-child img {
  height: 52px;
  width: auto;
  display: block;
  /* Invertir si el logo es claro — quitá este filtro si el logo ya tiene colores */
  transition: opacity 0.25s ease;
}

.footer-links:first-child img:hover {
  opacity: 0.8;
}

/* ── Título de columna ─────────────────────────────────────── */
.footer-links-title p {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--navy);
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--red);
  display: inline-block;
  margin-bottom: 0.25rem;
}

/* ── Links ─────────────────────────────────────────────────── */
.footer-links-a a {
  font-family: 'Barlow', sans-serif;
  font-size: 0.88rem;
  font-weight: 400;
  color: #6a7a8a;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  position: relative;
  transition: color 0.25s ease, gap 0.25s ease;
}

.footer-links-a a::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--red);
  transition: width 0.3s var(--ease-out-expo);
}

.footer-links-a a:hover {
  color: var(--red);
  gap: 0.5rem;
}

.footer-links-a a:hover::after {
  width: 100%;
}

/* ── Barra inferior ────────────────────────────────────────── */
.footer-info-container {
  border-top: 1px solid #e8e4df;
  padding: 1.25rem 3rem;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.copyright-p {
  font-family: 'Barlow', sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  color: #9aaabb;
  text-align: center;
}

.copyright-p a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.25s ease;
}

.copyright-p a:hover {
  color: var(--red);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .footer-links-container {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 3rem 1.5rem 2rem;
  }

  /* Logo ocupa las dos columnas */
  .footer-links:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .footer-links-container {
    grid-template-columns: 1fr;
    padding: 2.5rem 1.25rem 2rem;
  }

  .footer-links:first-child {
    grid-column: auto;
  }

  .footer-info-container {
    padding: 1.25rem;
  }
}