/* =============================================================================
   TMZ - pie de pagina (footer)
   Sustituye al footer del tema Avada. Marcado: <footer class="tmz-footer">
   ========================================================================== */

.tmz-footer {
  --tmz-red: #e00;
  --tmz-bg: #262626;
  --tmz-bg-bar: #1b1b1b;
  --tmz-text: #d9d9d9;
  --tmz-muted: #a9a9a9;
  clear: both;
  background: var(--tmz-bg);
  border-top: 4px solid var(--tmz-red);
  color: var(--tmz-text);
  font-family: Montserrat, Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  text-align: left;
}

.tmz-footer *,
.tmz-footer *::before,
.tmz-footer *::after {
  box-sizing: border-box;
}

.tmz-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tmz-footer li {
  margin: 0;
  padding: 0;
}

.tmz-footer a {
  color: var(--tmz-text);
  text-decoration: none;
  transition: color .15s ease;
}

.tmz-footer a:hover,
.tmz-footer a:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--tmz-red);
  text-underline-offset: 4px;
}

.tmz-footer p {
  margin: 0 0 12px;
  color: var(--tmz-text);
}

/* ---- zona principal -------------------------------------------------------- */
.tmz-footer__inner {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) minmax(0, 1.35fr) minmax(0, .9fr) minmax(0, 1.5fr);
  gap: 40px 48px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 32px 48px;
}

.tmz-footer__logo {
  display: inline-block;
  line-height: 0;
  border-radius: 4px;
}

.tmz-footer__logo img {
  display: block;
  width: 150px;
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

/* titulos de columna */
.tmz-footer h2 {
  position: relative;
  margin: 0 0 20px;
  padding: 0 0 12px;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.tmz-footer h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 3px;
  background: var(--tmz-red);
}

/* listas de enlaces */
.tmz-footer__col li a {
  display: inline-block;
  padding: 5px 0;
}

/* direccion / contacto */
.tmz-footer address {
  margin: 0;
  font-style: normal;
}

.tmz-footer address a {
  display: inline-block;
  padding: 2px 0;
  font-weight: 600;
}

/* redes sociales */
.tmz-footer__social {
  display: flex;
  gap: 12px;
  margin-top: 24px !important;
}

.tmz-footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 2px solid #5a5a5a;
  border-radius: 50%;
  color: #fff;
  font-size: 18px;
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease;
}

.tmz-footer__social a:hover,
.tmz-footer__social a:focus-visible {
  background: var(--tmz-red);
  border-color: var(--tmz-red);
  text-decoration: none;
}

/* ---- barra inferior ------------------------------------------------------- */
.tmz-footer__bar {
  background: var(--tmz-bg-bar);
  color: var(--tmz-muted);
}

.tmz-footer__bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 32px;
  max-width: 1280px;
  margin: 0 auto;
  /* margen derecho: deja libre el boton fijo "volver arriba" */
  padding: 12px 88px 12px 32px;
  font-size: 13px;
}

.tmz-footer__bar p {
  margin: 0;
  color: var(--tmz-muted);
}

.tmz-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
}

.tmz-footer__legal a {
  display: inline-block;
  padding: 8px 0;
  color: var(--tmz-muted);
}

.tmz-footer__legal a:hover,
.tmz-footer__legal a:focus-visible {
  color: #fff;
}

/* ---- tablet --------------------------------------------------------------- */
@media (max-width: 1024px) {
  .tmz-footer__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 32px;
    padding: 48px 28px 40px;
  }

  .tmz-footer__brand {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
  }

  .tmz-footer__social {
    margin-top: 0 !important;
  }

  .tmz-footer__inner > nav:first-of-type {
    grid-column: 1 / -1;
  }
}

/* ---- movil ---------------------------------------------------------------- */
@media (max-width: 600px) {
  .tmz-footer__inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 20px 32px;
  }

  .tmz-footer__brand {
    flex-direction: column;
    align-items: flex-start;
  }

  .tmz-footer__social {
    margin-top: 4px !important;
  }

  .tmz-footer__col li a,
  .tmz-footer address a {
    padding: 10px 0;
  }

  .tmz-footer__bar-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 20px 20px;
  }

  .tmz-footer__legal {
    flex-direction: column;
    width: 100%;
  }

  .tmz-footer__legal a {
    padding: 10px 0;
  }
}

/* dejar sitio al boton "volver arriba" en movil */
@media (max-width: 820px) {
  .tmz-footer__bar {
    padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px));
  }
}
