/* ===== FOOTER ===== */
@font-face {
    font-family: 'Montserrat-Bold';
    src: url(../fonts/Montserrat/static/Montserrat-Bold.ttf) format('truetype');
}

@font-face {
    font-family: 'Montserrat-SemiBold';
    src: url(../fonts/Montserrat/static/Montserrat-SemiBold.ttf) format('truetype');
}

@font-face {
    font-family: 'Montserrat-Medium';
    src: url(../fonts/Montserrat/static/Montserrat-Medium.ttf) format('truetype');
}

@font-face {
    font-family: 'Jakarta-SemiBold';
    src: url(../fonts/Plus_Jakarta_Sans/static/PlusJakartaSans-SemiBold.ttf) format('truetype');
}

@font-face {
    font-family: 'Jakarta-Medium';
    src: url(../fonts/Plus_Jakarta_Sans/static/PlusJakartaSans-Medium.ttf) format('truetype');
}

@font-face {
    font-family: 'Jakarta-Regular';
    src: url(../fonts/Plus_Jakarta_Sans/static/PlusJakartaSans-Regular.ttf) format('truetype');
}

.footer {
  background: #062638;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  padding: 3rem 5%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* === Top section === */
.footer-top {
  width: 100%;
  max-width: 1180px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.footer-address {
  flex: 1;
  min-width: 250px;
  text-align: left;
  cursor: pointer;
}

.footer-address:hover p {
  color: #18c35a;
  transition: color .3s;
}

.footer-address h4 {
  font-family: 'Montserrat-Medium', sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.footer-address p {
  font-family: 'Jakarta-Regular', sans-serif;
  line-height: 1.5;
  color: white;
  font-size: 16px;
  text-decoration: underline;
  opacity: 0.9;
}

.footer-email {
  flex: 1;
  min-width: 250px;
  text-align: right;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: auto;
}

.footer-email a {
  font-family: 'Jakarta-SemiBold', sans-serif;
  font-weight: 200;
  font-size: 38px;
  color: #fff;
  text-decoration: underline;
  /* reducir el grosor del underline */
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  transition: color .3s;
}

.footer-email a:hover {
  color: #18c35a;
}

.footer hr {
  width: 100%;
  max-width: 1180px;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.7);
  margin: 10px 0;
}

/* === Bottom section === */
.footer-bottom {
  width: 100%;
  max-width: 1180px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 4rem 2rem;
  margin-top: 35px;
  margin-bottom: 15px;
}

.footer-logo {
  display: flex;
  align-items: center;
}

.footer-logo img {
  max-width: 125px;
  height: auto;
}

.footer-contact,
.footer-advisor {
  flex: 1;
  text-align: left;
  margin-bottom: auto;
}

.footer-contact h5,
.footer-advisor h5 {
  font-family: 'Montserrat-Medium', sans-serif; 
  font-size: 20px;
  font-weight: 600;
  white-space: nowrap;
  text-align: left;
}

.footer-contact p,
.footer-advisor p {
  font-family: 'Jakarta-Regular', sans-serif;
  font-size: 16px;
  color: white;
  opacity: 0.9;
  text-decoration: underline;
  text-underline-offset: 3px;
  display: flex;
  gap: 8px;
  margin-top: 15px;
  white-space: nowrap;
  cursor: pointer;
}

.footer-contact p:hover,
.footer-advisor p:hover {
  color: #18c35a;
  transition: color .3s;
}

.footer-contact p img,
.footer-advisor p img {
  width: 23px;
  height: 23px;
}

.footer-contact a,
.footer-advisor a {
  color: #fff;
  text-decoration: underline;
  transition: color 0.3s;
}

.footer-contact a:hover,
.footer-advisor a:hover {
  color: #18c35a;
}

/* === Social icons === */
.footer-social {
  display: flex;
  justify-content: end;
  align-items: start;
  gap: 15px;
  margin-left: auto;
  margin-bottom: auto;
}

.footer-social .social {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s, background .2s;
  
}

.footer-social .social:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.1);
  
}

.footer-social .social img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
  margin: 0;
}

.footer > p {
  width: 100%;
  max-width: 1180px;
  margin-top: 30px;
  font-family: 'Jakarta-Regular', sans-serif;
  font-size: 12px;
  color: #fff;
  opacity: 0.7;
  display: flex;
  justify-content: end;
}

/* === Responsivo === */
@media (max-width: 800px) {
  .footer-top {
    flex-direction: column;
  }

  .footer-email {
    justify-content: center;
    text-align: center;
    margin-top: 1rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-contact,
  .footer-advisor {
    text-align: center;
  }
}

@media (max-width: 500px) {
  .footer-email {
    justify-content: flex-start;
  }
  
  .footer-email a {
    font-size: 26px;
  }

  .footer-contact h5,
  .footer-advisor h5 {
    text-align: left;
  }
}