.tm-footer {
  position: relative;
  margin-top: 2.2rem;
  overflow: hidden;
}

.tm-footer__bg {
  position: absolute;
  inset: 0;
  background: url('/static/img/footer/fondo_footer.jpg') center/cover no-repeat;
  opacity: 1;
  pointer-events: none;
}

.tm-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.05) 100%),
    repeating-linear-gradient(-45deg, rgba(16, 136, 176, 0.98) 0 8px, rgba(12, 116, 152, 0.98) 8px 16px);
  border-top: 2px solid rgba(46, 194, 236, 0.95);
  border-bottom: 2px solid rgba(11, 125, 162, 0.95);
  z-index: 1;
}

.tm-footer::after {
  content: "";
  position: absolute;
  top: 26px;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(69, 198, 238, 0.62);
  z-index: 1;
}

.tm-footer__card {
  position: relative;
  z-index: 2;
  width: min(1120px, 95vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.52fr;
  box-shadow: 0 18px 28px rgba(0, 0, 0, 0.34);
}

.tm-footer__left {
  background: #05034d;
  padding: 1.25rem 2.5rem 0.9rem;
}

.tm-footer__right {
  background: #3432a4;
  padding: 1.3rem 2.8rem 1.4rem;
}

.tm-footer__title {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2rem, 2.15vw, 2.85rem);
  font-weight: 700;
}

.tm-footer__title--spaced {
  margin-top: 1.8rem;
}

.tm-footer__rule {
  width: min(260px, 100%);
  margin: 0.35rem 0 1.2rem;
  display: block;
}

.tm-footer__form input,
.tm-footer__form textarea {
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: #f1f1f1;
  color: #2b2b2b;
  font-size: 0.82rem;
  padding: 0.55rem 0.75rem;
  margin-bottom: 0.72rem;
}

.tm-footer__form textarea {
  resize: vertical;
  min-height: 126px;
}

.tm-footer__form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.78rem;
}

.tm-footer__form button {
  border: 0;
  border-radius: 999px;
  padding: 0.56rem 1.45rem;
  background: linear-gradient(180deg, #dddddd 0%, #bbbbbb 100%);
  color: #2d2ca8;
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 7px 12px rgba(0, 0, 0, 0.34);
  cursor: pointer;
}

.tm-footer__contact-row {
  display: flex;
  align-items: center;
  gap: 0.76rem;
  margin-top: 1.25rem;
}

.tm-footer__contact-row img {
  width: 19px;
  height: 19px;
  object-fit: contain;
}

.tm-footer__contact-row a,
.tm-footer__contact-row span {
  color: #ffffff;
  font-size: 0.9rem;
  text-decoration: none;
  line-height: 1.23;
}

.tm-footer__social-copy {
  color: #f0f0f0;
  font-size: 0.9rem;
  line-height: 1.3;
  max-width: 400px;
  margin: 0 0 0.9rem;
}

.tm-footer__socials {
  display: flex;
  align-items: center;
  gap: 0.52rem;
}

.tm-footer__social-link img {
  width: 33px;
  height: 33px;
  object-fit: contain;
}

.tm-footer__links {
  list-style: none;
  margin: 0.9rem 0 0;
  padding: 0;
}

.tm-footer__links li {
  margin-bottom: 0.5rem;
}

.tm-footer__links a {
  color: #ffffff;
  text-decoration: none;
  font-size: 1rem;
}

.tm-footer__bottom {
  position: relative;
  z-index: 1;
  margin-top: 1.8rem;
  text-align: center;
  color: #eef7fb;
  font-size: 1rem;
  padding: 2rem 0 1rem;
  background: #0f96c7;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.tm-footer__bottom span + span::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 0.9em;
  background: rgba(238, 247, 251, 0.7);
  margin: 0 0.8rem 0 0.2rem;
  vertical-align: middle;
}

@media (max-width: 991px) {
  .tm-footer__card {
    grid-template-columns: 1fr;
    width: min(780px, 95vw);
  }

  .tm-footer__left,
  .tm-footer__right {
    padding: 1.2rem 1.25rem;
  }

  .tm-footer__title {
    font-size: clamp(1.7rem, 5vw, 2.2rem);
  }

  .tm-footer__links a {
    font-size: 0.95rem;
  }
}

@media (max-width: 576px) {

  .tm-footer::before {
    height: 18px;
  }

  .tm-footer::after {
    top: 18px;
  }

  .tm-footer__form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .tm-footer__contact-row {
    align-items: flex-start;
  }

  .tm-footer__bottom {
    font-size: 0.88rem;
    padding-top: 1.65rem;
    gap: 0.4rem;
  }

  .tm-footer__bottom span + span::before {
    margin-right: 0.48rem;
  }
}
