/* =========================================================
   FOOTER
========================================================= */

.footer {
  width: 100%;
  padding: 34px 0 18px;
  color: var(--color-white);

  background: linear-gradient(
    90deg,
    var(--color-navy-dark),
    var(--color-navy)
  );
}

/* =========================================================
   CONTENEDOR PRINCIPAL
========================================================= */

.footer .footer__container {
  width: min(100% - 64px, var(--container));
  margin: 0 auto;
  padding: 0;

  display: block;
}

/* =========================================================
   TÍTULO
========================================================= */

.footer__title {
  width: 100%;
  margin: 0 0 30px;

  color: var(--color-white);

  font-family: var(--font-title);
  font-size: clamp(1.85rem, 3vw, 2.35rem);
  font-weight: 600;
  line-height: 1.2;

  text-align: center;
}

/* =========================================================
   FILA DE CONTACTO
========================================================= */

.footer__contact-row {
  width: min(100%, 1180px);
  margin: 0 auto;

  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;

  column-gap: 42px;
}

/* =========================================================
   BLOQUES DE CONTACTO
========================================================= */

.footer__contact {
  min-width: 0;
  height: 58px;
  margin: 0;

  display: flex;
  align-items: center;
  gap: 12px;

  color: var(--color-white);

  font-family: var(--font-title);
  font-size: 1.04rem;
  line-height: 1.2;
}

/* Teléfonos: columna izquierda */
.footer__contact--phones {
  justify-content: flex-start;
  justify-self: start;

  text-align: left;
}

/* Correo: columna central */
.footer__contact--email {
  justify-content: center;
  justify-self: center;

  text-align: center;
}

/* Ubicación: columna derecha */
.footer__contact--location {
  justify-content: flex-end;
  justify-self: end;

  text-align: right;
}

/* =========================================================
   ICONOS
========================================================= */

.footer__icon {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;

  margin: 0;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  color: var(--color-gold);

  font-size: 1.7rem;
  line-height: 1;
}

/* =========================================================
   TELÉFONOS
========================================================= */

.footer__phones {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  white-space: nowrap;
}

.footer__separator {
  color: rgba(255, 255, 255, 0.72);
}

/* =========================================================
   CORREO
========================================================= */

.footer__contact a {
  color: var(--color-white);
  text-decoration: none;

  transition: color 0.25s ease;
}

.footer__contact a:hover,
.footer__contact a:focus-visible {
  color: var(--color-gold);
}

/* =========================================================
   DERECHOS RESERVADOS
========================================================= */

.footer__bottom {
  width: min(100% - 64px, var(--container));

  margin: 28px auto 0;
  padding-top: 17px;

  border-top: 1px solid rgba(255, 255, 255, 0.18);

  text-align: center;
}

.footer__bottom p {
  width: 100%;
  margin: 0;

  color: rgba(255, 255, 255, 0.74);

  font-size: 0.86rem;
  line-height: 1.5;

  text-align: center;
}

/* =========================================================
   PANTALLAS MEDIANAS
========================================================= */

@media (max-width: 1100px) and (min-width: 761px) {
  .footer .footer__container,
  .footer__bottom {
    width: min(100% - 40px, var(--container));
  }

  .footer__contact-row {
    width: 100%;
    column-gap: 20px;
  }

  .footer__contact {
    gap: 8px;
    font-size: 0.9rem;
  }

  .footer__icon {
    width: 28px;
    height: 28px;
    flex-basis: 28px;

    font-size: 1.45rem;
  }

  .footer__phones {
    gap: 5px;
  }
}

/* =========================================================
   MÓVIL
========================================================= */

@media (max-width: 760px) {
  .footer {
    padding: 30px 0 18px;
  }

  .footer .footer__container,
  .footer__bottom {
    width: min(100% - 32px, var(--container));
  }

  .footer__title {
    margin-bottom: 26px;
    font-size: 1.8rem;
  }

  .footer__contact-row {
    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 22px;
  }

  .footer__contact,
  .footer__contact--phones,
  .footer__contact--email,
  .footer__contact--location {
    width: 100%;
    height: auto;

    margin: 0;

    justify-content: center;
    justify-self: center;

    text-align: center;
  }

  .footer__phones {
    justify-content: center;
    flex-wrap: wrap;

    white-space: normal;
  }

  .footer__bottom {
    margin-top: 26px;
    padding-top: 15px;
  }
}

/* =========================================================
   TELÉFONOS PEQUEÑOS
========================================================= */

@media (max-width: 430px) {
  .footer__title {
    font-size: 1.68rem;
  }

  .footer__contact {
    gap: 10px;
    font-size: 0.97rem;
  }

  .footer__icon {
    width: 28px;
    height: 28px;
    flex-basis: 28px;

    font-size: 1.5rem;
  }

  .footer__phones {
    flex-direction: column;
    gap: 3px;
  }

  .footer__separator {
    display: none;
  }

  .footer__bottom p {
    font-size: 0.84rem;
    line-height: 1.5;
  }
}