/* ─── FOOTER ─────────────────────────────────────────────────────────────
   Store badges (E1, E2) · Síguenos + socials · legal links · copyright bar
   ───────────────────────────────────────────────────────────────────── */

.footer { background: var(--white); }

.footer__grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 32px;
  padding-block: clamp(36px, 4vw, 56px) clamp(48px, 6vw, 88px);
}

.footer__stores {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding-left: clamp(0px, 4.6vw, 64px);
}
.footer__stores a { display: block; border-radius: 8px; transition: transform 0.18s; }
.footer__stores a:hover { transform: translateY(-1px); }
.footer__stores img { width: 156px; }

.footer__social { text-align: center; }

.footer__title {
  color: var(--text-header-dark);
  font-weight: 700;
  font-size: clamp(24px, 2.2vw, 30px);
}

.social {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}
.social a {
  display: block;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: #000;
  transition: transform 0.18s, color 0.18s;
}
.social a:hover { transform: translateY(-2px); color: var(--app-theme); }
.social svg { width: 100%; height: 100%; fill: currentColor; }

.footer__side {
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-self: end;
  padding-top: 8px;
  padding-right: clamp(0px, 6vw, 90px);
}

/* Contact (email + WhatsApp) above the legal links */
.footer__contact { display: flex; flex-direction: column; gap: 10px; }
.footer__contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-header-dark);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}
.footer__contact-link:hover { color: var(--app-theme); text-decoration: underline; text-underline-offset: 3px; }
.footer__contact-link svg {
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer__legal {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer__link {
  color: #111;
  font-size: 17px;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.footer__link:hover { color: var(--app-theme); }

.footer__bar {
  padding: 9px var(--gutter);
  background: var(--footer-bar);
  color: var(--text-white);
  text-align: center;
  font-size: clamp(15px, 1.5vw, 20px);
  font-weight: 400;
}

/* ─── TABLET / MOBILE ─── */
@media (max-width: 760px) {
  .footer__grid {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    text-align: center;
    gap: 40px;
  }
  .footer__social { order: -1; }
  .footer__stores { flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: center; padding-left: 0; }
  .footer__stores img { width: 150px; }
  .footer__side { justify-self: center; align-items: center; padding: 0; }
  .footer__contact, .footer__legal { align-items: center; }
}
