/* ==========================================================================
   Footer Mercury
   Variante del footer para el sitio mercury: tarjeta gris con bordes
   redondeados sobre fondo celeste. Grilla de 3 columnas (marca / links /
   acciones) que se repite en la fila de legales para que las columnas
   queden alineadas entre si.
   Usa clases propias (.mercury-footer*) para no pisar ni heredar los
   estilos de css/v2_footer.css, que es global.

   Mobile-first. Mismos breakpoints que headerMercury.css: 760 / 996 / 1366.
   ========================================================================== */

:root {
  --mf-bg-outer: #EDF4FC;
  --mf-bg-card: #79838E;
  --mf-text: #FFFFFF;
  --mf-container-max: 1308px;
  --mf-font: "Inter", "Segoe UI", Arial, sans-serif;
}

.mercury-footer-wrap {
  background: var(--mf-bg-outer);
  /* padding: 8px 12px 12px; */
  padding: 0;
  margin-top:32px;
}

.mercury-footer {
  box-sizing: border-box;
  max-width: var(--mf-container-max);
  margin: 0 auto;
  padding: 32px 20px 24px;
  background: var(--mf-bg-card);
  border-radius: 24px;
  color: var(--mf-text);
  font-family: var(--mf-font);
}

.mercury-footer *,
.mercury-footer *::before,
.mercury-footer *::after {
  box-sizing: inherit;
}

.mercury-footer p {
  margin: 0;
}

/* Reset de links y botones: todos blancos, sin subrayado en reposo. */
.mercury-footer a,
.mercury-footer button {
  color: var(--mf-text);
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  text-decoration: none;
  cursor: pointer;
}

.mercury-footer button {
  background: none;
  border: 0;
  margin: 0;
  padding: 0;
}

/* ---------- Grilla compartida por la fila superior y la de legales ---------- */

.mercury-footer__row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

/* ---------- Fila superior: marca / links / boton ---------- */

.mercury-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.mercury-footer__logo img {
  display: block;
  width: 100px;
  height: auto;
}

.mercury-footer__social {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mercury-footer__social a {
  display: block;
  line-height: 0;
}

.mercury-footer__social img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.mercury-footer__nav {
  display: flex;
  justify-content: center;
  gap: 32px;
  text-align: left;
}

.mercury-footer__nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mercury-footer__nav a {
  display: inline-block;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
}

.mercury-footer__about {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--mf-text);
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

/* El reset de links lo pone en blanco: el boton lleva texto gris. */
.mercury-footer a.mercury-footer__about {
  color: var(--mf-bg-card);
}

/* ---------- Separador ---------- */

.mercury-footer__divider {
  height: 1px;
  margin: 24px 0;
  border: 0;
  background: rgba(255, 255, 255, 0.7);
  opacity: 1;
}

/* ---------- Fila de legales: copyright / datos fiscales / sellos ---------- */

.mercury-footer__legal {
  max-width: 320px;
}

.mercury-footer__copyright {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}

.mercury-footer__legal-links {
  font-size: 9px;
  font-weight: 400;
  line-height: 1.5;
}

.mercury-footer__company {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 11px;
  line-height: 1.3;
}

.mercury-footer__seals {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.mercury-footer__seals a {
  display: block;
  line-height: 0;
}

.mercury-footer__seals img {
  height: 36px;
  width: auto;
}

/* ---------- Direccion ---------- */

/* p.clase: tiene que ganarle al reset ".mercury-footer p { margin: 0 }". */
.mercury-footer p.mercury-footer__address {
  max-width: 240px;
  margin: 24px auto 0;
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

/* ==========================================================================
   >= 760px : mismo layout que mobile, solo mas aire.
   ========================================================================== */
@media (min-width: 760px) {
  /* .mercury-footer-wrap {
    padding: 8px 24px 12px;
  } */

  .mercury-footer {
    padding: 36px 32px 24px;
    border-radius: 32px;
  }

  .mercury-footer__nav {
    gap: 48px;
  }
}

/* ==========================================================================
   >= 996px : layout desktop en 3 columnas, igual a la imagen de referencia.
   ========================================================================== */
@media (min-width: 996px) {
  .mercury-footer {
    max-width: 1308px;
    padding: 48px 38px 30px;
    border-radius: 40px;
  }

  /* Col 1 un poco mas ancha que col 2: los links y los datos fiscales
     arrancan en el mismo eje vertical, apenas antes del centro de la
     tarjeta. Col 3 se ajusta al contenido (boton/sellos). */
  .mercury-footer__row {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) auto;
    align-items: start;
    column-gap: 24px;
    padding: 0 24px;
    text-align: left;
  }

  .mercury-footer__brand {
    align-items: flex-start;
    gap: 10px;
  }

  .mercury-footer__logo img {
    width: 142px;
  }

  .mercury-footer__social {
    gap: 13px;
  }

  .mercury-footer__social img {
    width: 30px;
    height: 30px;
  }

  .mercury-footer__nav {
    justify-content: flex-start;
    gap: 48px;
  }

  .mercury-footer__nav a {
    font-size: 16px;
    line-height: 1.5;
  }

  .mercury-footer__about {
    justify-self: end;
    height: 32px;
    padding: 0 12px;
    font-size: 15px;
  }

  .mercury-footer__divider {
    margin: 34px 0 32px;
  }

  .mercury-footer__legal {
    max-width: 410px;
  }

  .mercury-footer__copyright {
    font-size: 13px;
  }

  .mercury-footer__legal-links {
    font-size: 11.5px;
    line-height: 1.55;
  }

  .mercury-footer__company {
    gap: 12px;
    font-size: 14px;
  }

  .mercury-footer__seals {
    justify-self: end;
    gap: 30px;
  }

  .mercury-footer__seals img {
    height: 50px;
  }

  .mercury-footer p.mercury-footer__address {
    max-width: 310px;
    margin-top: 32px;
    font-size: 14px;
  }
}

/* ==========================================================================
   >= 1366px : mismo layout, un poco mas de aire en los costados.
   ========================================================================== */
@media (min-width: 1366px) {
  .mercury-footer__row {
    padding: 0 35px;
  }
}

/* ---------- Hover: solo subrayado ----------
   Anula los hover de Bootstrap/v2_footer.css (color, outline). */
.mercury-footer a:hover,
.mercury-footer a:focus,
.mercury-footer button:hover,
.mercury-footer button:focus {
  color: var(--mf-text);
  text-decoration: underline;
  outline: none;
}

.mercury-footer__social a:hover,
.mercury-footer__social a:focus,
.mercury-footer__seals a:hover,
.mercury-footer__seals a:focus {
  opacity: 0.85;
  text-decoration: none;
}

.mercury-footer a.mercury-footer__about:hover,
.mercury-footer a.mercury-footer__about:focus {
  color: var(--mf-bg-card);
  text-decoration: none;
}
