.oferta {
  width: 100%;
  padding: 112px 40px;
  display: flex;
  justify-content: center;
  overflow: hidden;
  background-color: #f2f2f2;
}

.oferta-content {
  width: 100%;
  max-width: 1280px;
}

.oferta-top {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 56px;
}

.oferta-header {
  width: 58%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.oferta-label {
  color: #a50f0f;
  font-size: 22px;
  font-weight: 500;
  line-height: 28px;
  text-transform: uppercase;
  letter-spacing: 3px;
}

.oferta h2 {
  max-width: 780px;
  margin-top: 10px;
  color: #171717;
  font-family: "PT Serif", Georgia, serif;
  font-size: 60px;
  font-weight: 700;
  line-height: 58px;
  letter-spacing: -1.2px;
}

.oferta-media {
  width: 42%;
  min-width: 360px;
  min-height: 330px;
  overflow: hidden;
  background-color: #171717;
}

.oferta-media img {
  width: 100%;
  height: 330px;
  object-fit: cover;
  object-position: center;
}

.oferta-cuerpo {
  margin-top: 54px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.oferta-programas {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.oferta-nivel {
  width: 100%;
  padding: 28px 28px 18px;
  background-color: #ffffff;
}

.oferta-nivel-header {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid #ded7d1;
}

.oferta-nivel-header span {
  color: #a50f0f;
  font-family: "PT Serif", Georgia, serif;
  font-size: 42px;
  font-weight: 700;
  line-height: 46px;
}

.oferta-nivel-header h3 {
  color: #171717;
  font-size: 24px;
  font-weight: 600;
  line-height: 30px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.oferta-nivel ul {
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 22px;
  list-style: none;
}

.oferta-nivel li {
  min-width: 240px;
  flex: 1;
  padding: 16px 0;
  border-bottom: 1px solid #ded7d1;
  color: #6f6f6f;
  font-size: 16px;
  line-height: 21px;
}

.oferta-nivel-bachillerato li {
  min-width: 100%;
}

.oferta-nivel li span {
  display: block;
  color: #171717;
  font-size: 18px;
  font-weight: 500;
  line-height: 23px;
}

.oferta-nivel li small {
  display: block;
  margin-top: 4px;
  color: #a50f0f;
  font-size: 13px;
  font-weight: 500;
  line-height: 17px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.oferta-posgrados {
  display: flex;
  align-items: stretch;
  gap: 18px;
}

.oferta-posgrados .oferta-nivel {
  flex: 1;
}

.oferta-posgrados .oferta-nivel li {
  min-width: 100%;
}

@media (max-width: 1080px) {
  .oferta {
    padding: 96px 32px;
  }

  .oferta-top,
  .oferta-cuerpo {
    flex-direction: column;
    gap: 42px;
  }

  .oferta-header,
  .oferta-media,
  .oferta-programas {
    width: 100%;
    min-width: 0;
  }

  .oferta h2 {
    font-size: 52px;
    line-height: 52px;
  }
}

@media (max-width: 760px) {
  .oferta {
    padding: 78px 20px;
  }

  .oferta h2 {
    font-size: 42px;
    line-height: 44px;
    letter-spacing: -0.6px;
  }

  .oferta-label {
    font-size: 16px;
    line-height: 22px;
    letter-spacing: 2px;
  }

  .oferta-media {
    min-height: 280px;
  }

  .oferta-media img {
    height: 280px;
  }

  .oferta-posgrados {
    flex-direction: column;
  }

  .oferta-nivel {
    padding: 26px 22px 16px;
  }
}

@media (max-width: 520px) {
  .oferta {
    padding: 68px 18px;
  }

  .oferta h2 {
    font-size: 34px;
    line-height: 37px;
  }

  .oferta-cuerpo {
    margin-top: 40px;
  }

  .oferta-media {
    min-height: 240px;
  }

  .oferta-media img {
    height: 240px;
  }

  .oferta-nivel-header {
    flex-direction: column;
    gap: 4px;
  }

  .oferta-nivel-header span {
    font-size: 36px;
    line-height: 40px;
  }

  .oferta-nivel-header h3 {
    font-size: 20px;
    line-height: 25px;
  }

  .oferta-nivel li {
    min-width: 100%;
  }
}

@media (max-width: 1180px) {
  .oferta {
    padding: 96px 32px;
  }

  .oferta-top {
    gap: 38px;
  }

  .oferta h2 {
    font-size: 50px;
    line-height: 50px;
  }
}

@media (max-width: 900px) {
  .oferta-top {
    flex-direction: column;
  }

  .oferta-header,
  .oferta-media {
    width: 100%;
    min-width: 0;
  }

  .oferta-media,
  .oferta-media img {
    min-height: 330px;
    height: 330px;
  }

  .oferta-posgrados {
    flex-direction: column;
  }
}

@media (max-width: 760px) {
  .oferta {
    padding: 72px 24px;
  }

  .oferta h2 {
    font-size: 40px;
    line-height: 42px;
  }

  .oferta-cuerpo {
    margin-top: 36px;
  }

  .oferta-nivel li {
    min-width: 100%;
  }
}

@media (max-width: 420px) {
  .oferta {
    padding: 58px 18px;
  }

  .oferta h2 {
    font-size: 32px;
    line-height: 35px;
  }

  .oferta-media,
  .oferta-media img {
    min-height: 240px;
    height: 240px;
  }

  .oferta-nivel {
    padding: 24px 20px 14px;
  }
}
