:root {
  --tesis-ink: #17333a;
  --tesis-muted: #5c6f73;
  --tesis-deep: #003034;
  --tesis-teal: #006d75;
  --tesis-mint: #d8eef1;
  --tesis-coral: #d85f45;
  --tesis-paper: #f7fbfb;
  --tesis-white: #ffffff;
  --tesis-border: rgba(23, 51, 58, 0.14);
  --tesis-shadow: 0 18px 45px rgba(0, 48, 52, 0.12);
}

body {
  background: var(--tesis-paper);
}

.tesis-page {
  color: var(--tesis-ink);
  font-family: Arial, Helvetica, sans-serif;
}

.tesis-hero {
  width: min(1120px, calc(100% - 40px));
  margin: 52px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: stretch;
}

.tesis-hero__content {
  min-height: 330px;
  padding: 48px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(0, 48, 52, 0.92), rgba(0, 109, 117, 0.74)),
    url("../img/Unidad Académica.jpg") center / cover;
  color: var(--tesis-white);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tesis-kicker,
.tesis-area {
  margin: 0 0 12px;
  color: var(--tesis-coral);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.tesis-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.tesis-hero p {
  max-width: 680px;
  margin: 20px 0 0;
  font-size: 1.12rem;
  line-height: 1.6;
}

.tesis-summary {
  padding: 30px;
  border: 1px solid var(--tesis-border);
  border-radius: 8px;
  background: var(--tesis-white);
  box-shadow: var(--tesis-shadow);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tesis-summary strong {
  color: var(--tesis-teal);
  font-size: 4rem;
  line-height: 1;
}

.tesis-summary span {
  margin-top: 10px;
  color: var(--tesis-muted);
  font-weight: 800;
}

.tesis-list {
  width: min(1120px, calc(100% - 40px));
  margin: 42px auto 0;
  display: grid;
  gap: 18px;
}

.tesis-card {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--tesis-border);
  border-radius: 8px;
  background: var(--tesis-white);
  box-shadow: 0 10px 28px rgba(0, 48, 52, 0.08);
}

.tesis-card__number {
  background: var(--tesis-deep);
  color: var(--tesis-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
}

.tesis-card__body {
  padding: 28px;
}

.tesis-card h2 {
  margin: 0 0 22px;
  color: var(--tesis-ink);
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  line-height: 1.22;
  letter-spacing: 0;
}

.tesis-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 22px;
  margin: 0;
}

.tesis-card dl div {
  min-width: 0;
  padding-top: 14px;
  border-top: 1px solid var(--tesis-border);
}

.tesis-card dt {
  margin-bottom: 5px;
  color: var(--tesis-teal);
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
}

.tesis-card dd {
  margin: 0;
  color: var(--tesis-muted);
  line-height: 1.55;
}

@media (max-width: 860px) {
  .tesis-hero {
    grid-template-columns: 1fr;
  }

  .tesis-summary {
    min-height: 150px;
  }

  .tesis-card {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .tesis-card dl {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .tesis-hero,
  .tesis-list {
    width: min(100% - 28px, 1120px);
  }

  .tesis-hero {
    margin-top: 30px;
  }

  .tesis-hero__content {
    min-height: 360px;
    padding: 30px 22px;
  }

  .tesis-hero h1 {
    font-size: clamp(2rem, 13vw, 3rem);
  }

  .tesis-card {
    grid-template-columns: 1fr;
  }

  .tesis-card__number {
    min-height: 58px;
    justify-content: flex-start;
    padding-left: 22px;
  }

  .tesis-card__body {
    padding: 22px;
  }
}
