/* ============================================================
   public/css/layout/footer.css
   FOOTER — alineado 100% con footer.php (BEM)
   Objetivo: footer compacto, en línea, 4 columnas desktop,
   responsive a 2 columnas tablet y 1 columna móvil.
   ============================================================ */

.footer {
  background: var(--grey-900);
  color: var(--grey-300);
  padding: 28px 0 14px;
  font-size: 0.95rem;
}

/* Inner: “contenedor” real del footer */
.footer__inner {
  max-width: var(--container-width, 1200px);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);

  display: grid;
  grid-template-columns: 160px repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 44px);
  align-items: start;
}

/* Tablet */
@media (max-width: 900px) {
  .footer__inner {
    grid-template-columns: 160px 1fr;
    row-gap: 26px;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .footer {
    padding-top: 22px;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
}

/* =========================
   Brand / Logo
========================= */
.footer__brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.footer__logo {
  width: 120px;     /* clave: evitar el “logo gigante” */
  max-width: 100%;
  height: auto;
  display: block;
  filter: brightness(0) invert(1);
}

@media (max-width: 600px) {
  .footer__brand {
    justify-content: center;
  }

  .footer__logo {
    width: 110px;
  }
}

/* =========================
   Titles
========================= */
.footer__title {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--grey-100);
}

/* =========================
   Text / Address
========================= */
.footer__text {
  font-style: normal;
  line-height: 1.7;
  color: var(--grey-300);
}

.footer__text p {
  margin: 0 0 8px;
}

/* Links del footer: no dependemos de main a {} */
.footer a {
  color: var(--grey-300);
  text-decoration: none;
  transition: color .2s ease, opacity .2s ease;
}

.footer a:hover,
.footer a:focus-visible {
  color: var(--primary-300);
  text-decoration: underline;
}

/* =========================
   List
========================= */
.footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__list li {
  margin: 0 0 8px;
}

/* =========================
   Social
========================= */
.footer__social {
  display: flex;
  gap: 12px;
  align-items: center;
}

.footer__social a {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  text-decoration: none;

  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.footer__social a:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.18);
}

.footer__social a:focus-visible {
  outline: 3px solid var(--primary-400);
  outline-offset: 3px;
}

.footer__social i {
  font-size: 1.15rem;
  line-height: 1;
  color: var(--grey-100);
}

@media (max-width: 600px) {
  .footer__social {
    justify-content: center;
  }
}

/* =========================
   Bottom
========================= */
.footer__bottom {
  max-width: var(--container-width, 1200px);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);

  margin-top: 18px;
  padding-top: 12px;

  border-top: 1px solid rgba(255,255,255,0.10);
  text-align: center;
  font-size: 0.85rem;
  color: var(--grey-400);
}

.footer__bottom p {
  margin: 0 0 8px;
}

.footer__bottom a {
  color: var(--grey-300);
}

.footer__bottom a:hover {
  color: var(--grey-100);
}

