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

footer {
  width: 100%;

  padding: 3rem var(--page-padding-mobile);

  background-color: var(--color5);

  color: var(--color8);
}

/* ========================================
   CONTENEDOR GENERAL
======================================== */

.contenedor-footer {
  width: 100%;
  max-width: var(--max-width);

  margin: 0 auto;

  display: flex;
  flex-direction: column;

  align-items: center;

  gap: 2.5rem;

  text-align: center;
}

/* ========================================
   BLOQUES
======================================== */

.footer-bloque {
  width: 100%;
}

/* ========================================
   LOGO
======================================== */

.footer-bloque img {
  width: 150px;

  margin: 0 auto;
}

/* ========================================
   MENÚ
======================================== */

.footer-menu {
  display: grid;
  grid-template-columns: repeat(2, auto);

  justify-content: center;

  gap: 0.7rem 2.5rem;
}

.footer-menu li {
  text-align: left;
}

.footer-menu a {
  color: var(--color8);

  font-size: 0.9rem;
  line-height: 1.6;

  transition:
    color 0.2s ease,
    opacity 0.2s ease;
}

.footer-menu a:hover {
  color: var(--color2);
}

/* ========================================
   CRÉDITOS
======================================== */

.footer-bloque p {
  margin: 0 0 0.45rem;

  color: var(--color8);

  font-size: 0.8rem;
  line-height: 1.5;
}

.footer-bloque p:last-child {
  margin-bottom: 0;
}

/* ========================================
   TABLET
======================================== */

@media screen and (min-width: 768px) {
  footer {
    padding: 3.5rem var(--page-padding-tablet);
  }

  .contenedor-footer {
    gap: 3rem;
  }

  .footer-bloque img {
    width: 180px;
  }

  .footer-menu {
    gap: 0.8rem 4rem;
  }

  .footer-menu a {
    font-size: 0.95rem;
  }

  .footer-bloque p {
    font-size: 0.85rem;
  }
}

/* ========================================
   DESKTOP
======================================== */

@media screen and (min-width: 1024px) {
  footer {
    padding: 3rem var(--page-padding-desktop);
  }

  .contenedor-footer {
    flex-direction: row;

    align-items: center;
    justify-content: space-between;

    gap: 3rem;

    text-align: left;
  }

  .footer-bloque {
    flex: 1;
  }

  /* Logo */

  .footer-bloque:first-child {
    display: flex;
    justify-content: flex-start;
  }

  .footer-bloque img {
    width: 180px;

    margin: 0;
  }

  /* Menú */

  .footer-bloque:nth-child(2) {
    display: flex;
    justify-content: center;
  }

  .footer-menu {
    grid-template-columns: repeat(2, auto);

    justify-content: center;

    gap: 0.6rem 4rem;
  }

  /* Créditos */

  .footer-bloque:last-child {
    text-align: right;
  }

  .footer-bloque p {
    font-size: 0.85rem;
  }
}
