.modelos {
  padding: 5rem 0;
  background: #f7f7f7;
}

.modelos h2 {
  color: #021f3e;
  text-align: center;
  font-family: "Inter", sans-serif;
  font-size: 1.75rem;
  font-style: normal;
  font-weight: 700;
  line-height: 106%;
  letter-spacing: 0.24px;
  max-width: 815px;
  margin: 0 auto 32px;
}

.modelos h2 + p {
  color: #3d3d3d;
  text-align: center;
  font-family: "Inter", sans-serif;
  font-size: 0.875rem;
  font-style: normal;
  font-weight: 400;
  line-height: 28px;
  letter-spacing: 0.08px;
  max-width: 925px;
  margin: 0 auto 40px;
}

.modelos-tabs {
  max-width: 1300px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  overflow-x: auto;
  position: relative;
  transition: transform 0.3s ease-out;
}

.modelos-tabs::-webkit-scrollbar {
  display: none;
}

.modelos-tabs.initial-scroll-hint {
  animation: scrollHint 2s linear infinite;
}

@keyframes scrollHint {
  0% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-15px);
  }
  75% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(0);
  }
}

.modelos-tabs__tab-link.active {
  color: #021f3e;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  font-style: normal;
  font-weight: 700;
  line-height: 52px;
  letter-spacing: 0.24px;
  border-bottom: 6px solid #00a6fb;
}

.modelos-tabs__tab-link {
  color: #666;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  font-style: normal;
  font-weight: 500;
  line-height: 52px;
  letter-spacing: 0.24px;
  border-bottom: 6px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  margin-bottom: 24px;
}

.modelos-tabs__tab {
  max-width: 1300px;
  width: 100%;
  display: none;
  margin-top: 80px;
}

.modelos-tabs__tab.active {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
}

.modelos-tabs__tab img {
  margin: 0 auto;
  border-radius: 15px;
  box-shadow: 0px 21px 14.9px -4px rgba(0, 0, 0, 0.3);
}

.modelos-tabs__tab-content {
  order: 1;
}

.modelos-tabs__tab-content h3 {
  color: #3b3b3b;
  font-family: "Inter", sans-serif;
  font-size: 1.25rem;
  font-style: normal;
  font-weight: 700;
  line-height: 52px;
  letter-spacing: 0.24px;
  margin-bottom: 32px;
}

.modelos-tabs__tab-content p {
  color: #3d3d3d;
  font-family: "Inter", sans-serif;
  font-size: 0.875rem;
  font-style: normal;
  font-weight: 400;
  line-height: 28px;
  letter-spacing: 0.08px;
  margin-bottom: 32px;
}

.secondary-btn {
  display: inline-flex;
  width: fit-content;
  justify-content: center;
  align-items: center;
  padding: 16px 32px;
  gap: 20px;
  background-color: transparent;
  border: 1px solid #002a3f;
  border-radius: 4px 20px 20px 20px;
  font-size: 1rem;
  font-style: normal;
  font-weight: 700;
  font-family: "Inter", sans-serif;
  color: #002a3f;
  letter-spacing: 0.22px;
  text-transform: uppercase;
  transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

.secondary-btn svg path {
  fill: #002a3f;
  transition: fill 0.3s ease-in-out;
}

.secondary-btn:hover {
  background-color: #002a3f;
  color: #fff;
}

.secondary-btn:hover svg path {
  fill: #fff;
}

.modelos-cards__card-container {
  position: fixed;
  z-index: 1;
  background-color: rgba(0, 0, 0, 0.8);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modelos-cards__card-expanded {
  position: absolute;
  z-index: 10;
  width: 90%;
  max-width: 768px;
}

.modelos-cards__card-expanded .primary-btn {
  position: absolute;
  bottom: 20px;
  z-index: 20;
  left: 50%;
  transform: translateX(-50%);
}

.modelos-cards__card-expanded__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 64px;
  padding: 16px 24px;
  border-radius: 30px 30px 0 0;
  background-color: #fff;
}

.modelos-cards__card-expanded__header-content h3 {
  color: #021f3e;
  font-family: "Inter", sans-serif;
  font-size: 1.5rem;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  margin-bottom: 8px;
}

.modelos-cards__card-expanded__header-content p {
  color: #3d3d3d;
  font-family: "Inter", sans-serif;
  font-size: 0.875rem;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.modelos-cards__card-expanded__header-close {
  cursor: pointer;
}

.modelos-cards__card-expanded__content {
  max-height: 450px;
  overflow-y: auto;
  width: 100%;
  transform: translateY(-1px);
  border-radius: 0 0 0 30px;
}

@media screen and (min-width: 768px) {
  .modelos h2 {
    font-size: 2rem;
  }
  .modelos-tabs {
    gap: 48px;
  }
  .modelos h2 + p {
    font-size: 1rem;
  }
  .modelos-tabs::-webkit-scrollbar {
    display: block;
    background-color: #f7f7f7;
  }
  .modelos-cards__card-expanded__header {
    padding: 32px 48px;
  }
  .modelos-cards__card-expanded__header-content h3 {
    font-size: 1.5rem;
  }
  .modelos-cards__card-expanded__header-content p {
    font-size: 1rem;
  }
}

@media screen and (min-width: 1024px) {
  .modelos h2 {
    font-size: 2.5rem;
  }
  .modelos-tabs__tab-content {
    order: 0;
  }
  .modelos-tabs__tab.active {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    place-items: center;
    gap: 64px;
  }
  .modelos-tabs__tab-content h3 {
    font-size: 2rem;
  }
  .modelos-tabs {
    mask-image: none;
  }
  .modelos-tabs__tab-content p {
    font-size: 1rem;
  }
}
