.tm-casos {
  padding-bottom: 1.7rem;
}

.tm-casos__header {
  padding: 0.6rem 0 0.2rem;
}

.tm-casos__title {
  margin: 0;
  color: #0b98cd;
  font-size: clamp(1.9rem, 2.7vw, 3rem);
  font-weight: 800;
}

.tm-casos__headline {
  width: 230px;
  max-width: 75vw;
  margin: 0.5rem auto 0;
  height: 3px;
  border-radius: 999px;
  background: #312b9f;
  position: relative;
}

.tm-casos__headline::before,
.tm-casos__headline::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: #312b9f;
}

.tm-casos__headline::before {
  left: -4px;
}

.tm-casos__headline::after {
  right: -4px;
}

.tm-casos__container {
  width: min(1880px, 100%);
  margin: 1rem auto 0;
  background: #d9d9d9;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.09);
  padding: 1.7rem 1.2rem 2.5rem;
}

.tm-casos__subtitle {
  margin: 0;
  text-align: center;
  color: #494949;
  font-weight: 800;
  font-size: clamp(1.55rem, 2.1vw, 2.9rem);
}

.tm-casos__tabs {
  width: min(1070px, 95%);
  margin: 1.2rem auto 2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid rgba(95, 95, 95, 0.26);
}

.tm-casos__tab {
  border: 0;
  background: transparent;
  color: #575757;
  font-size: clamp(0.9rem, 1.1vw, 1.45rem);
  padding: 1rem 0.9rem;
  font-weight: 500;
  transition: 0.2s ease;
}

.tm-casos__tab.is-active {
  color: #fff;
  background: #11115b;
}

.tm-casos__card {
  background: #efefef;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
  padding: 1.5rem 1.4rem;
  display: grid;
  gap: 1.4rem;
  grid-template-columns: minmax(0, 1fr) 460px;
  align-items: start;
}

.tm-casos__copy {
  color: #515151;
}

.tm-casos__copy-title {
  margin: 0 0 0.9rem;
  color: #3f3f3f;
  font-size: clamp(1.1rem, 1.3vw, 1.7rem);
  font-weight: 700;
}

.tm-casos__label {
  margin: 0.65rem 0 0.28rem;
  color: #4b4b4b;
  font-size: clamp(1.08rem, 1.2vw, 1.48rem);
  font-weight: 700;
}

.tm-casos__paragraph {
  margin: 0;
  color: #636363;
  font-size: clamp(0.93rem, 1.02vw, 1.3rem);
  line-height: 1.3;
  text-align: justify;
}

.tm-casos__list {
  margin: 0.35rem 0 0;
  padding-left: 1.25rem;
  color: #5d5d5d;
  font-size: clamp(0.92rem, 1.03vw, 1.22rem);
  line-height: 1.28;
}

.tm-casos__list li {
  margin-bottom: 0.36rem;
  text-align: justify;
}

.tm-casos__paragraph p,
.tm-casos__list p {
  margin: 0 0 0.4rem;
}

.tm-casos__list ul {
  margin: 0;
  padding-left: 1.15rem;
}

.tm-casos__visual {
  position: relative;
  min-height: 470px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tm-casos__circle {
  width: min(435px, 90vw);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 16px solid #312da8;
  position: relative;
  z-index: 2;
}

.tm-casos__circle::before {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.9);
  pointer-events: none;
}

.tm-casos__circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 46% 54%;
}

.tm-casos__shape {
  position: absolute;
  pointer-events: none;
}

.tm-casos__shape--shadow {
  width: 280px;
  height: 220px;
  border-radius: 50%;
  background: rgba(154, 218, 241, 0.65);
  left: 36px;
  bottom: 0;
  z-index: 1;
}

.tm-casos__shape--dots {
  width: 55px;
  height: 55px;
  right: 6px;
  bottom: 0;
  background-image: radial-gradient(#3031ab 2px, transparent 2px);
  background-size: 10px 10px;
  z-index: 2;
}

.tm-casos__shape--arc-img {
  right: -8px;
  bottom: -6px;
  width: 150px;
  height: auto;
  z-index: 1;
}

.tm-casos__shape--handle {
  left: -3px;
  top: 144px;
  width: 16px;
  height: 98px;
  border: 4px solid #3c3ab6;
  border-right: 0;
  border-radius: 16px 0 0 16px;
  background: #efefef;
  z-index: 3;
}

.tm-casos__empty {
  background: #efefef;
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  color: #505050;
}

@media (max-width: 1200px) {
  .tm-casos__card {
    grid-template-columns: 1fr;
  }

  .tm-casos__visual {
    order: -1;
    min-height: auto;
    padding-top: 0.3rem;
  }

  .tm-casos__shape--shadow {
    left: 50%;
    transform: translateX(-50%);
    bottom: -12px;
  }
}

@media (max-width: 900px) {
  .tm-casos__tabs {
    grid-template-columns: 1fr;
    gap: 0.2rem;
    border-bottom: 0;
  }

  .tm-casos__tab {
    border: 1px solid rgba(95, 95, 95, 0.22);
    border-radius: 8px;
  }

  .tm-casos__container {
    padding: 1.1rem 0.75rem 1.5rem;
  }

  .tm-casos__card {
    padding: 0.95rem 0.8rem 1rem;
  }

  .tm-casos__circle {
    width: min(320px, 85vw);
    border-width: 10px;
  }

  .tm-casos__shape--handle {
    left: 22px;
    top: 120px;
    height: 78px;
    width: 14px;
    border-width: 3px;
  }

  .tm-casos__shape--shadow {
    width: 200px;
    height: 150px;
  }

  .tm-casos__shape--arc-img {
    width: 120px;
    right: -2px;
    bottom: -6px;
  }
}
