/* ==========================================================
   FOOTER
   ========================================================== */

.site-footer {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(0, 46, 94, 0.98) 0%, #001e3f 100%);
  color: #fff;
  font-family: var(--maetel-font-main);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--maetel-turquoise) 50%,
    transparent 100%
  );
  opacity: 0.8;
}

/* ==========================================================
   CONTAINER
   ========================================================== */

.site-footer__container {
  position: relative;
  z-index: 1;
  padding-top: clamp(56px, 7vw, 92px);
  padding-bottom: 32px;
}

/* ==========================================================
   GRID
   Columna 1: logo + dirección
   Columna 2: hueco vacío
   Columna 3: enlaces del header
   Columna 4: redes sociales
   ========================================================== */

.site-footer__grid {
  display: grid;
  grid-template-columns:
    minmax(280px, 1.25fr)
    minmax(190px, 1fr)
    minmax(170px, 0.85fr)
    minmax(180px, 0.7fr);
  gap: clamp(30px, 5vw, 76px);
  align-items: start;
  padding-bottom: clamp(42px, 5vw, 70px);
}

/* ==========================================================
   BLOCKS
   ========================================================== */

.site-footer__block {
  min-width: 0;
}

.site-footer__block--brand {
  display: grid;
  align-content: start;
}

/* ==========================================================
   BRAND / LOGO
   Logo original. No tocar.
   ========================================================== */

.site-footer__brand {
  display: inline-flex;
  width: fit-content;
  margin: -44px 0 22px;
  text-decoration: none;
}

.site-footer__logo {
  display: block;
  width: clamp(170px, 15vw, 205px);
  height: auto;
}

/* ==========================================================
   ADDRESS
   Texto de dirección reducido.
   ========================================================== */

.site-footer__address {
  display: grid;
  gap: 6px;
  margin-left: clamp(22px, 2vw, 28px);
  color: rgba(255, 255, 255, 0.74);
  font-style: normal;
  font-size: 13px;
  line-height: 1.5;
}

.site-footer__address span,
.site-footer__address a {
  display: block;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
  text-decoration: none;
}

/* ==========================================================
   EMPTY COLUMN
   Hueco visual de la segunda columna.
   ========================================================== */

.site-footer__block--empty {
  min-height: 1px;
}

/* ==========================================================
   GLOBAL FOOTER LINKS
   ========================================================== */

.site-footer a {
  color: inherit;
  text-decoration: none;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--maetel-turquoise);
}

/* ==========================================================
   LIST RESET
   ========================================================== */

.site-footer__links,
.site-footer__social-list,
.site-footer__legal {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ==========================================================
   FOOTER MENU
   Enlaces del header en columna.
   ========================================================== */

.site-footer__links {
  display: grid;
  gap: 10px;
}

.site-footer__links a {
  display: inline-flex;
  width: fit-content;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
}

.site-footer__links a:hover,
.site-footer__links a:focus-visible {
  color: var(--maetel-turquoise);
  transform: translateX(3px);
}

/* ==========================================================
   SOCIAL LINKS
   Mismo tamaño que dirección.
   Color más oculto: blanco al 50%.
   ========================================================== */

.site-footer__social-list {
  display: grid;
  gap: 10px;
}

.site-footer__social-list a {
  display: inline-flex;
  width: fit-content;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
}

.site-footer__social-list a:hover,
.site-footer__social-list a:focus-visible {
  color: rgba(255, 255, 255, 0.74);
  transform: translateX(3px);
}

/* ==========================================================
   FOOTER BOTTOM
   Copyright + legales
   ========================================================== */

.site-footer__bottom {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.site-footer__copyright {
  margin: 0;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: center;
}

.site-footer__legal a {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  line-height: 1.5;
}

.site-footer__legal a:hover,
.site-footer__legal a:focus-visible {
  color: var(--maetel-turquoise);
}

/* ==========================================================
   RESPONSIVE FOOTER - TABLET
   ========================================================== */

@media (max-width: 980px) {
  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer__block--empty {
    display: none;
  }
}

/* ==========================================================
   RESPONSIVE FOOTER - MOBILE
   ========================================================== */

@media (max-width: 620px) {
  .site-footer__container {
    padding-top: 54px;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 38px;
    padding-bottom: 38px;
    text-align: center;
  }

  .site-footer__block,
  .site-footer__block--brand {
    justify-items: center;
    text-align: center;
  }

  .site-footer__brand {
    margin: -4px auto 24px;
  }

  .site-footer__logo {
    width: 170px;
  }

  .site-footer__address {
    margin-left: 0;
    justify-items: center;
    text-align: center;
    font-size: 12px;
    line-height: 1.5;
  }

  .site-footer__links,
  .site-footer__social-list {
    justify-items: center;
  }

  .site-footer__links a,
  .site-footer__social-list a {
    justify-content: center;
    text-align: center;
  }

  .site-footer__social-list a {
    font-size: 12px;
    line-height: 1.5;
  }

  .site-footer__legal {
    justify-content: center;
    gap: 8px 14px;
  }
}
