section {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.container-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: white;
  text-align: center;
  background: black;
  font-family: Georgia, serif;
}
.title-hero {
  font-size: 60px;
  font-weight: 400;
  line-height: 100%;
  letter-spacing: -1.47px;
}
.text-hero {
  font-size: 40px;
  font-weight: 300;
  letter-spacing: -0.8px;
}
.card-hero-section {
  position: relative;
  background: white;
  text-align: center;
  overflow: hidden;
}
.hero-background {
  position: relative;
  width: 100%;
}
.hero-background {
  width: 100%;
  display: block;
  height: auto;
  background-size: cover;
  height: 731px;
}
.hero-background::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.9) 0%,
    transparent 40%
  );
  z-index: 1;
  pointer-events: none;
}
.card-overlay {
  position: absolute;
  bottom: -45%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.img-tarjeta {
  width: 1092px !important;
  height: 640px !important;
  object-fit: contain;
  z-index: 2;
  position: relative;
}
.container-second-title {
  margin-top: 220px;
  padding: 0 20px;
}
.second-title {
  color: var(--color-primary);
  font-size: 54px;
  font-weight: 600;
  line-height: 100%;
  letter-spacing: -1.08px;
}
.second-description {
  font-size: 40px;
  line-height: 50px;
  letter-spacing: -0.8px;
  color: var(--color-primary);
  margin-top: 15px;
}
.carousel-composite {
  position: relative;
  height: 705px;
}
.top-bg,
.bottom-bg {
  position: absolute;
  left: 0;
  width: 100%;
  z-index: 0;
}
.top-bg {
  top: -1px;
  height: 50%;
  background-color: white;
}
.bottom-bg {
  bottom: 0;
  height: 50%;
  background-color: #123450;
}
.carousel-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  z-index: 1;
  display: flex;
  justify-content: center;

  padding: 10px;
  /* padding-left: 98px; */
}
.carousel-track {
  display: flex;
  flex-direction: row;
  gap: 25px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0px 40px;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border-radius: 18px;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}
.carousel-card {
  position: relative;
  flex: 0 0 auto;
  scroll-snap-align: center;
  width: 460px;
  height: 526px;
  border-radius: 18px;
  overflow: hidden;
}
.carousel-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.carousel-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 45px;
  width: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent 80%);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  box-sizing: border-box;
  align-items: start;
}
.carousel-card-content h3 {
  margin: 0 0 4px;
  font-size: 40px;
  font-weight: 590;
  text-align: start;
  line-height: 53.761px;
}
.carousel-card-content p {
  margin: 0 0 12px;
  font-size: 28px;
  white-space: pre-line;
  text-align: start;
  font-weight: 400;
  line-height: 39.8px;
}
.carousel-card-content button {
  align-self: start;
  padding: 6px 16px;
  background: white;
  color: #123450;
  border: none;
  border-radius: 4px;
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  height: 50px;
}

/* Personal Cards Section */
.personal-cards-section {
  background-color: #123450;
  color: white;
  padding: 0px 40px;
  padding-bottom: 80px;
  text-align: center;
  padding-top: 100px;
}

.personal-cards-header h1 {
  font-size: 54px;
  font-weight: bold;
  margin-bottom: 14px;
  color: white;
}

.personal-cards-header p {
  font-size: 32px;
  font-weight: 300;
  line-height: 38px;
  color: white;
  margin-bottom: 60px;
}

.personal-cards-carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 27px;
  scroll-behavior: smooth;

  scrollbar-width: none;
  -ms-overflow-style: none;
  border-radius: 18px;
}

.personal-cards-carousel::-webkit-scrollbar {
  display: none;
}

.personal-card {
  scroll-snap-align: center;
  background: white;
  border-radius: 12px;
  color: black;
  width: 384px;
  height: 459px;
  flex: 0 0 auto;
  text-align: center;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.personal-card img {
  width: 258px;
  height: 160px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
}

.personal-card h3 {
  font-size: 24px;
  font-weight: 400;
  color: white;
  line-height: 40px;

  display: flex;
  align-items: center;
  text-align: center;
}

.personal-card button {
  background-color: #123450;
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 297px;
  height: 60px;
  font-weight: 500;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 6px;
  font-size: 20px;
  margin-bottom: 20px;
}

/* Dots indicator */
.carousel-arrow {
  background-color: #0e2d45; /* mismo fondo oscuro */
  color: white;
  border: none;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;

  transition: background-color 0.3s ease;
  width: 60px;
  height: 60px;
}
.carousel-arrow:hover {
  background-color: #19486a;
}
.carousel-arrow.left {
  order: -1;
}
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin-top: 30px;
}

.personal-card-title {
  color: white;
  font-size: 24px;
  font-weight: 400;
  height: 158px;
}
.head-card {
  height: 158px;
  display: flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 39px;
  padding: 5px;
}

@media screen and (max-width: 768px) {
  header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
  }
  .carousel-track {
    justify-content: start !important;
  }

  .hero-background {
    height: 261px;
  }
  .title-hero {
    font-size: 32px;
    line-height: 42px;
  }
  .text-hero {
    font-size: 24px;
  }
  .second-title {
    font-size: 32px;
    line-height: 42px;
    letter-spacing: -0.64px;
  }
  .second-description {
    font-size: 24px;
    line-height: 28px;
    margin-top: 17px !important;
  }
  .card-overlay {
    bottom: -50%;
  }
  .img-tarjeta {
    width: 400px !important;
    height: 219px !important;
    aspect-ratio: 150 / 73 !important;
  }
  .container-second-title {
    margin-top: 115px;
  }
  .carousel-card {
    width: 280px !important;
    height: 318px !important;
  }
  .carousel-card-content h3 {
    font-size: 30px !important;
    line-height: 27.944px;
  }
  .carousel-card-content p {
    font-size: 20px !important;
    line-height: 20.687px !important;
  }
  .carousel-card-content button {
    height: 37px !important;
    font-size: 18px;
  }
  .carousel-card-content {
    padding: 23px !important;
  }
  /* .carousel-wrapper {
    padding-left: 15px;
  } */
  .carousel-composite {
    height: 445px;
  }

  .personal-cards-section {
    padding: 60px 20px;
  }

  .personal-cards-header h1 {
    font-size: 32px;
    font-weight: 510;
    margin-bottom: 10px;
  }

  .personal-cards-header p {
    font-size: 24px;
    margin-bottom: 40px;
    font-weight: 300;
  }

  .personal-cards-carousel {
    gap: 20px;
    padding: 0 10px;
    justify-content: flex-start;
  }

  .personal-card {
    width: 250px;
    min-width: 250px;
  }

  .personal-card img {
    width: 136px;
    height: 86px;
  }

  .personal-card h3 {
    font-size: 20px;
    line-height: 26px;
  }

  .personal-card {
    width: 256px;
    height: 306px;
  }
  .personal-card-title {
    color: white;
    font-size: 20px;
    font-weight: 400;
    height: 129px;
  }
  .head-card {
    height: 129px;
    margin-bottom: 26px;
  }
  .personal-card button {
    font-size: 16px;
    width: 196px;
    height: 35px;
  }
  .hero-background img {
    height: 261px;
  }
}
.justify-start {
  justify-content: flex-start;
}
.justify-center {
  justify-content: center;
}
