.programs-v2 {
  width: 100%;
  padding: 112px 40px;
  display: flex;
  justify-content: center;
  overflow: hidden;
  border-top: 1px solid #d9dcdf;
  border-bottom: 1px solid #d9dcdf;
  background-color: #f4f5f6;
  color: #171717;
}

.programs-v2-inner {
  width: 100%;
  max-width: 1280px;
}

.programs-v2-top {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 56px;
  text-align: center;
}

.programs-v2-head {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.programs-v2 .section-kicker {
  color: #a50f0f;
  font-size: 18px;
  font-weight: 600;
  line-height: 24px;
  text-transform: uppercase;
  letter-spacing: 3px;
}

.programs-v2 .section-title {
  max-width: 650px;
  margin-top: 12px;
  color: #171717;
  font-size: 68px;
  line-height: 66px;
  letter-spacing: 0;
}

.programs-v2-body {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  gap: 24px;
}

.programs-v2-level {
  width: 100%;
  display: flex;
  align-items: stretch;
  background-color: #ffffff;
}

.programs-v2-level-head {
  width: 31%;
  min-width: 300px;
  padding: 34px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 42px;
  border-right: 1px solid #d9dcdf;
}

.programs-v2-level-head span {
  display: block;
  color: #a50f0f;
  font-family: "PT Serif", Georgia, serif;
  font-size: 72px;
  font-weight: 700;
  line-height: 72px;
}

.programs-v2-level-head h3 {
  margin-top: 8px;
  color: #171717;
  font-family:
    "GillSans", "Gill Sans", "Gill Sans MT", Calibri, Arial, sans-serif;
  font-size: 22px;
  font-weight: 500;
  line-height: 28px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.programs-v2-list {
  flex: 1;
  padding: 26px 30px 28px 34px;
}

.programs-v2-group-list {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 0 22px;
}

.programs-v2-group-list a {
  width: calc(50% - 11px);
  min-width: 250px;
  padding: 18px 0 17px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-bottom: 1px solid #d9dcdf;
  color: #6f6f6f;
  font-size: 16px;
  line-height: 21px;
  transition:
    color 0.25s ease,
    border-color 0.25s ease;
}

.programs-v2-group-list a:hover,
.programs-v2-group-list a:focus-visible {
  border-color: #a50f0f;
  color: #171717;
}

.programs-v2-group-list a span {
  display: block;
  color: #171717;
  font-size: 18px;
  font-weight: 500;
  line-height: 23px;
}

.programs-v2-group-list a span em {
  display: block;
  margin-top: 3px;
  color: #6f6f6f;
  font-size: 15px;
  font-style: normal;
  font-weight: 400;
  line-height: 19px;
}

.programs-v2-group-list a small {
  display: block;
  margin-top: 4px;
  color: #a50f0f;
  font-size: 13px;
  font-weight: 500;
  line-height: 17px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

  .programs-v2-top,
  .programs-v2-body {
    flex-direction: column;
    gap: 42px;
  }

  .programs-v2-level {
    flex-direction: column;
  }

  .programs-v2-head,
  .programs-v2-level-head {
    width: 100%;
    min-width: 0;
  }

  .programs-v2-level-head {
    border-right: 0;
    border-bottom: 1px solid #d9dcdf;
  }
}

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

  .programs-v2 .section-title {
    font-size: 42px;
    line-height: 44px;
  }

  .programs-v2 .section-kicker {
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 2px;
  }

  .programs-v2-level-head {
    padding: 28px 24px;
    gap: 26px;
  }

  .programs-v2-list {
    padding: 12px 24px 16px;
  }

  .programs-v2-group-list a {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 480px) {
  .programs-v2 .section-title {
    font-size: 34px;
    line-height: 37px;
  }
}

@media (max-width: 360px) {
  .programs-v2 {
    padding-right: 16px;
    padding-left: 16px;
  }

  .programs-v2 .section-title {
    font-size: 31px;
    line-height: 34px;
  }
}


/* Tarjetas de programas UNISANT */
.programs-v2-group-list {
  align-items: stretch;
  gap: 28px 22px;
}

.program-card {
  width: calc(50% - 11px);
  min-width: 250px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #d9dcdf;
  background-color: #ffffff;
}

.program-card-cover {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background-color: #e8eaec;
}

.program-card-cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.program-card-info {
  flex: 1;
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.program-card-info h4 {
  color: #171717;
  font-family: "GillSans", "Gill Sans", "Gill Sans MT", Calibri, Arial, sans-serif;
  font-size: 19px;
  font-weight: 600;
  line-height: 25px;
}

.program-card-info .rvoe {
  margin-top: 12px;
}

.program-card-context {
  display: block;
  margin-top: 5px;
  color: #646464;
  font-size: 13px;
  line-height: 18px;
}

@media (max-width: 760px) {
  .program-card {
    width: 100%;
    min-width: 0;
  }

  .program-card-cover {
    height: 240px;
  }
}

@media (max-width: 480px) {
  .program-card-cover {
    height: 210px;
  }

  .program-card-info {
    padding: 18px;
  }
}


/* Organización centrada por nivel y portadas verticales tamaño carta */
.programs-v2-level {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #ffffff;
}

.programs-v2-level-head {
  width: 100%;
  min-width: 0;
  padding: 0 20px 34px;
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  border: 0;
  text-align: center;
}

.programs-v2-level-head span {
  display: inline;
  font-size: 38px;
  line-height: 1;
}

.programs-v2-level-head h3 {
  margin: 0;
  font-size: 25px;
  line-height: 1.2;
  letter-spacing: 1px;
}

.programs-v2-list {
  width: 100%;
  padding: 0;
}

.programs-v2-group-list {
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 30px 24px;
}

.program-card {
  flex: 0 1 230px;
  width: 230px;
  min-width: 0;
  border: 0;
  overflow: visible;
  background: transparent;
}

.program-card-cover {
  width: 100%;
  height: auto;
  aspect-ratio: 8.5 / 11;
  overflow: hidden;
  background-color: #e8eaec;
}

.program-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.program-card-info {
  padding: 16px 4px 0;
  text-align: center;
  align-items: center;
}

.program-card-info h4 {
  text-align: center;
  font-size: 17px;
  line-height: 23px;
}

@media (max-width: 760px) {
  .programs-v2-level-head {
    padding: 0 8px 26px;
  }

  .programs-v2-level-head span {
    font-size: 32px;
  }

  .programs-v2-level-head h3 {
    font-size: 21px;
  }

  .programs-v2-group-list {
    gap: 26px 18px;
  }

  .program-card {
    flex-basis: 220px;
    width: 220px;
  }
}

@media (max-width: 480px) {
  .programs-v2-level-head {
    flex-wrap: wrap;
    gap: 6px 10px;
  }

  .program-card {
    flex-basis: min(100%, 280px);
    width: min(100%, 280px);
  }
}


/* Ajustes de presentación: títulos limpios, divisor y tarjetas integradas al fondo */
.programs-v2-level {
  background: transparent;
}

.programs-v2-level-head {
  flex-direction: column;
  align-items: center;
  padding: 0 20px 0;
}

.programs-v2-level-head > div {
  width: 100%;
  text-align: center;
}

.programs-v2-level-head::after {
  content: '';
  display: block;
  width: 100%;
  max-width: 100%;
  margin-top: 22px;
  border-bottom: 1px solid #d7dadd;
}

.program-card {
  background: transparent;
  box-shadow: none;
}


/* Espaciado final de la oferta académica */
.programs-v2-body {
  gap: 72px;
}

.programs-v2-group-list {
  margin-top: 28px;
}

/* Tarjetas de programas: cuatro por fila, fondo blanco y texto alineado a la izquierda */
.programs-v2-group-list {
  display: flex;
  flex-flow: row wrap;
  justify-content: flex-start;
  align-items: stretch;
  gap: 30px 24px;
}

.program-card {
  box-sizing: border-box;
  flex: 0 0 calc((100% - 72px) / 4);
  width: calc((100% - 72px) / 4);
  min-width: 0;
  border: 1px solid #b8b8b8;
  background: #ffffff;
  box-shadow: none;
  overflow: hidden;
}

.program-card-cover {
  width: 100%;
  aspect-ratio: 8.5 / 11;
  height: auto;
  background: #ffffff;
}

.program-card-info {
  padding: 16px;
  text-align: left;
  align-items: flex-start;
  color: #111111;
  background: #ffffff;
}

.program-card-info h4 {
  text-align: left;
  color: #111111;
}

.program-card-info .rvoe {
  display: block;
  color: #c62828;
  text-align: left;
}

.program-card-context {
  color: #111111;
}

@media (max-width: 900px) {
  .program-card {
    flex-basis: calc((100% - 24px) / 2);
    width: calc((100% - 24px) / 2);
  }
}

@media (max-width: 560px) {
  .program-card {
    flex-basis: 100%;
    width: 100%;
  }
}

/* Alinear las tarjetas al centro de cada fila */
.programs-v2-group-list {
  justify-content: center;
}
