/* ========================================
   FOOTER
   MOBILE FIRST
======================================== */

footer {
  width: 100%;
  box-sizing: border-box;

  background-color: var(--color13);
  color: var(--color2);

  padding: 3rem 1.25rem;

  scroll-margin-top: 100px;
}

.footer-container {
  width: 100%;
  max-width: 1200px;

  margin: 0 auto;
}


/* ========================================
   ESTRUCTURA
======================================== */

.grid-footer {
  display: flex;
  flex-direction: column;

  gap: 2.5rem;

  text-align: center;
}


/* ========================================
   TÍTULOS
======================================== */

footer h3 {
  margin: 0 0 1.5rem;

  color: var(--color2);

  font-size: var(--font-md);
  font-weight: 700;

  text-align: center;
}


/* ========================================
   CONTACTO
======================================== */

.footer-contacto {
  width: 100%;
}

.footer-contacto .contacto {
  display: flex;

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

  gap: 10px;

  margin: 1rem 0;
}

.contacto-a {
  color: var(--color2);

  font-size: var(--font-sm);

  text-decoration: none;

  word-break: break-word;
}

.contacto-a:hover {
  text-decoration: underline;
}

.icon-whatsapp,
.icon-envelope {
  color: var(--color2);

  font-size: 1.5rem;
}


/* ========================================
   PERFILES PROFESIONALES
======================================== */

.redes {
  width: 100%;
}

.redes-links {
  display: flex;

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

  gap: 1.5rem;
}

.redes-links a {
  display: flex;

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

  text-decoration: none;
}

.redes-links img {
  width: 34px;
  height: 34px;

  object-fit: contain;

  /* Convierte los SVG negros en blancos */
  filter: brightness(0) invert(1);

  transition: transform 0.2s ease;
}

.redes-links a:hover img {
  transform: translateY(-2px);
}


/* ========================================
   COPYRIGHT
======================================== */

.derechos {
  margin-top: 3rem;
  padding-top: 1.5rem;

  border-top: 1px solid var(--color7);

  text-align: center;
}

.derechos p {
  margin: 0;

  color: var(--color2);

  font-size: var(--font-xs);
  line-height: 1.5;
}


/* ========================================
   TABLET
   768px
======================================== */

@media screen and (min-width: 768px) {

  footer {
    padding: 3.5rem 2rem;
  }

  footer h3 {
    font-size: var(--font-lg);
  }

  .contacto-a {
    font-size: var(--font-md);
  }

  .icon-whatsapp,
  .icon-envelope {
    font-size: 1.8rem;
  }

  .redes-links {
    gap: 1.75rem;
  }

  .redes-links img {
    width: 40px;
    height: 40px;
  }

  .derechos p {
    font-size: var(--font-sm);
  }
}


/* ========================================
   DESKTOP
   1024px
======================================== */

@media screen and (min-width: 1024px) {

  footer {
    padding: 4rem 2rem 2rem;
  }

  .grid-footer {
    flex-direction: row;

    align-items: stretch;
    justify-content: center;

    gap: 0;
  }

  .footer-contacto,
  .redes {
    flex: 1;

    display: flex;
    flex-direction: column;

    justify-content: center;
  }

  .footer-contacto {
    padding-right: 2rem;
  }

  .redes {
    padding-left: 2rem;

    border-left: 1px solid var(--color7);
  }

  footer h3 {
    font-size: var(--font-lg);
  }

  .redes-links {
    gap: 2rem;
  }

  .redes-links img {
    width: 42px;
    height: 42px;
  }

  .derechos {
    margin-top: 3rem;
  }
}