/* ============================================================
   Footer component.
   ============================================================ */

.footer {
  background: var(--black);
  color: var(--white);
  padding: 5rem var(--pad-x) 2.5rem;
}
.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3.75rem;
  padding-bottom: 3.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer__brand h3 {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--green);
  margin-bottom: 1.25rem;
  max-width: 18ch;
  text-wrap: balance;
}
.footer__brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9375rem;
  max-width: 38ch;
  line-height: 1.5;
}
.footer__bcorp {
  display: block;
  height: 5.375rem;
  width: auto;
  margin-top: 1.625rem;
  opacity: 0.95;
}
.footer__col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 1.125rem;
}
.footer__col ul {
  list-style: none;
}
.footer__col li {
  margin-bottom: 0.625rem;
}
.footer__col a {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.2s var(--ease);
}
.footer__col a:hover {
  color: var(--green);
}
.footer__bottom {
  padding-top: 1.875rem;
  display: flex;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
}
.footer__paises {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.footer__paises img {
  width: 1.375rem;
  height: 0.875rem;
  object-fit: cover;
  opacity: 0.85;
  border-radius: 2px;
}
.footer__legal {
  display: flex;
  gap: 0.875rem;
  align-items: center;
  flex-wrap: wrap;
}
.footer__legal a {
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s ease;
}
.footer__legal a:hover {
  color: var(--green);
}

@media (max-width: 980px) {
  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}
@media (max-width: 640px) {
  .footer__bcorp {
    height: 4.5rem;
    margin-top: 1.375rem;
  }
}
/* Single column on small phones: at 360px the four columns
   dropped to ~140px and the footer title overflowed its box. */
@media (max-width: 560px) {
  .footer__top {
    grid-template-columns: 1fr;
    gap: 2.125rem;
  }
  .footer__brand h3 {
    font-size: clamp(1.625rem, 7.5vw, 2rem);
    max-width: 16ch;
  }
}
