.tep-header {
    height: 680px;
    padding: 12rem 0 5rem;
    background: radial-gradient(at left bottom, #e3dfc9, #b0a769);
    position: relative;
    overflow: hidden;
}

.tep-header-text {
    position: absolute;
    top: 10rem;
    right: 3rem;
    width: 30vw;
}

.tep-header-text h1 {
    font-size: 3.4rem;
    line-height: 3.4rem;
    font-weight: 900;
    text-align: right;
    color: var(--white);
}

.tep-header-text p {
    font-size: 1.2rem;
    line-height: 1.2rem;
    font-weight: normal;
    letter-spacing: .8rem;
    text-align: right;
    color: var(--dark);
    margin: 0 0 .8rem;
}

.tep-header-note {
    position: absolute;
    bottom: 0rem;
    right: 2rem;
    font-size: .8rem;
    letter-spacing: 0 !important;
    font-size: .8rem !important;
    width: 400px;
}

.tep-header-simbols-text {
    position: absolute;
    bottom: 2rem;
    right: 14rem;
    width: 40vw;
    padding: 2rem 3rem;
    text-align: right;
    display: flex;
    justify-content: flex-end;
    z-index: -9;
}

.tep-header-simbols-text p {
    width: 76%;
}

.tep-header-image {
    position: absolute;
    max-width: 100%;
    max-height: 100%;
    bottom: 0;
}

.tep-header-image img {
    width: auto;
    height: 700px;
}

.tep-diplo-ob {
    padding: 5rem 0;
    position: relative;
}

.tep-diplo-content {
    width: 80%;
    margin: 0 auto;
}

.tep-diplo-content p {
    font-size: 1.2rem;
    line-height: 2rem;
    letter-spacing: .15rem;
    text-align: justify;
}

.tep-diplo-simbols {
    width: 30%;
    margin: 0 auto;
}

.tep-diplo-simbols img {
    width: 100%;
}

.tep-convoca {
    width: 100%;
    background: var(--dark) url(/tepeyac/images/convocatoria-contenido.png) bottom center no-repeat;
    background-size: cover;
    padding: 5rem 0 10rem;
}

.tep-convoca-content {
    width: 70%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tep-convoca-text {
    background-color: var(--orange);
    padding: 2rem;
    border-radius: .5rem;
    width: 55%;
}

.tep-convoca-text ul, .tep-convoca-text ul li {
    margin: 0;
    color: var(--white);
}

.tep-convoca-title {
    width: 45%;
    padding: 0 3rem;
    text-align: right;
}

.tep-convoca-title h2 {
    font-family: "Consultant";
    color: var(--orange);
    font-size: 3.5rem;
}

.tep-diplo-concept {
    padding: 8rem 0;
}

.tep-diplo-text {
    width: 80%;
    margin: 0 auto;
}

.tep-diplo-text h2 {
    font-size: 3rem;
    color: var(--orange);
    font-weight: 600;
}

.tep-diplo-text p {
    margin-bottom: 1rem;
    text-align: justify;
}

.tep-diplo-text ol {
    list-style: lower-alpha;
}

.tep-diplo-text ol li {
    margin: 1rem 0;
}

.tep-diplo-general {
    background-color: var(--orange);
    padding: 10rem 0;
}

.tep-diplo-general-text {
    width: 70%;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.tep-diplo-general-col1 {
    padding: 0;
}

.tep-diplo-general-col1 h2 {
    font-size: 3rem;
    transform: rotate(-90deg);
    font-weight: 900;
}

.tep-diplo-general-col1 span {
    font-size: 3rem;
    font-weight: 900;
    margin-left: 3.5rem;
}

.tep-diplo-general-col2 p {
    color: var(--white);
}

.tep-diplo-especf {
    padding: 10rem 0;
}

.tep-diplo-especf-content {
    width: 80%;
    margin: 0 auto;
}

.tep-diplo-especf-title {
    padding: 2rem 5rem;
    background-color: var(--black);
    border-radius: 1rem;
}

.tep-diplo-especf-title h2 {
    font-size: 3rem;
    color: var(--white);
}

.tep-diplo-especf-title h2 span {
    font-size: 3rem;
    color: var(--white);
    display: block;
}

.tep-diplo-especf-items {
    width: 100%;
    max-width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    justify-items: center;
    margin: 2rem 0;
}

.tep-diplo-especf-it {
    background: linear-gradient(135deg, #ff7b00, #ffb347);
    height: 150px;
    padding: 2rem 4rem;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: .9rem;
    font-weight: normal;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
    text-align: center;
}

.tep-diplo-especf-it:hover {
    transform: translateY(-8px) scale(1.05);
}

.tep-diplo-especf-it:nth-child(7) {
    grid-column: 2 / 3;
}

.tep-diplo-especf-it p {
    margin: 0;
}

.tep-timeline {
    padding: 8rem 0;
    background-color: var(--light);
    text-align: center;
}

.tep-timeline h2 {
    font-size: 3rem;
    color: var(--orange);
    font-weight: 600;
}

.tep-timeline-info {
  position: relative;
  width: 80%;
  max-width: 800px;
  margin: 2rem auto 0;
}

.tep-timeline-info::before {
  content: '';
  position: absolute;
  left: 50%;
  width: 4px;
  height: 100%;
  background: var(--orange);
  transform: translateX(-50%);
}

.tep-timeline-item {
  position: relative;
  width: 50%;
  padding: 20px 40px;
}

.tep-timeline-item.left {
  left: 0;
  text-align: right;
}

.tep-timeline-item.right {
  left: 50%;
  text-align: left;
}

.tep-timeline-item::before {
  content: '';
  position: absolute;
  top: 25px;
  width: 16px;
  height: 16px;
  background: var(--orange);
  border-radius: 50%;
  z-index: 1;
}

.tep-timeline-item.left::before {
  right: -8px;
}

.tep-timeline-item.right::before {
  left: -8px;
}

.tep-timeline-content {
  background: rgba(255,255,255,0.05);
  padding: 0 20px 20px;
  border-radius: 10px;
  backdrop-filter: blur(10px);
  transition: 0.3s;
}

.tep-timeline-content:hover {
  transform: translateY(-5px);
  background: rgba(255,255,255,0.1);
}

.tep-timeline-text {
    width: 40%;
    margin: 3rem auto 0;
}

@media (max-width: 768px) {
  .tep-timeline-timeline-info::before {
    left: 20px;
  }

  .tep-timeline-item {
    width: 100%;
    padding-left: 60px;
    padding-right: 20px;
  }

  .tep-timeline-item.left,
  .tep-timeline-item.right {
    left: 0;
    text-align: left;
  }

  .tep-timeline-item::before {
    left: 12px;
  }
}

@media (max-width: 768px) {
    .tep-diplo-especf-items {
        grid-template-columns: repeat(2, 1fr);
    }

    .tep-diplo-especf-it:nth-child(7) {
        grid-column: span 2;
        justify-self: center;
        width: 50%;
    }
}

@media (max-width: 480px) {
    .tep-diplo-especf-items {
        grid-template-columns: 1fr;
    }

    .tep-diplo-especf-it:nth-child(7) {
        grid-column: auto;
        width: 100%;
    }
}

.tep-diplo-tema {
  width: 100%;
  overflow-x: auto;
  padding: 8rem 0;
  background-color: var(--light);
}

.tep-diplo-tema-container {
    width: 80%;
    margin: 0 auto;
}

.tep-diplo-tema-text {
    width: 80%;
    margin: 0 auto;
}

.tep-diplo-tema-text h2 {
    font-size: 3rem;
    color: var(--orange);
    font-weight: 600;
}

.tep-diplo-tema-container table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  overflow: hidden;
}

.tep-diplo-tema-container thead {
  background: var(--orange);
  color: var(--white);
}

.tep-diplo-tema-container th {
  padding: 15px;
  text-align: left;
  font-weight: bold;
}

.tep-diplo-tema-container td {
  padding: 15px;
  border-bottom: 1px solid #F1F1F1;
}

.tep-diplo-tema-container td ul {
    margin: 0;
}

.tep-diplo-tema-container tbody tr:nth-child(even) {
  background: var(--white);
}

.tep-diplo-biblio {
    margin-bottom: 1rem;
}

.tep-diplo-biblio-text {
    margin-bottom: .5rem !important;
}

.tep-diplo-biblio td {
    padding: 0rem 1rem;
}

@media (max-width: 768px) {

  table, thead, tbody, th, td, tr {
    display: block;
    width: 100%;
  }

  thead {
    display: none;
  }

  tr {
    margin-bottom: 15px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    padding: 10px;
  }

  td {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  td::before {
    content: attr(data-label);
    font-weight: bold;
    color: #ffb347;
  }
}