:root {
  --oscuro: #17120e;
  --marfil: #fcefe0;
  --oro: #edc78b;
  --oro-oscuro: #764820;
  --papel: #f5eee2;
  --tinta: #281b12;
  --borde: #bdab94;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 0;
  background: var(--papel);
  color: var(--tinta);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

.marco {
  width: min(1200px, 100% - 112px);
  margin-inline: auto;
}

.encabezado {
  border-bottom: 1px solid #7f624532;
  background: #100d0b;
  color: var(--oro);
}

.encabezado-interior {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 74px;
  isolation: isolate;
}

.logotipo {
  width: 40px;
  height: 42px;
  object-fit: contain;
  mix-blend-mode: screen;
}

.marca {
  font: 1.2rem var(--serif);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.portada {
  position: relative;
  display: grid;
  align-items: center;
  min-height: clamp(520px, 64vh, 650px);
  isolation: isolate;
  overflow: hidden;
  background: var(--oscuro);
  color: var(--marfil);
}

.portada-imagen {
  position: absolute;
  z-index: -1;
  inset: 0;
}

.portada-imagen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 74%;
}

.portada-imagen::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #15100df7 0%, #15100de6 24%, #15100dae 43%, #15100d24 68%, transparent 100%),
    linear-gradient(0deg, #130d093f, transparent 46%);
  content: "";
}

.portada-contenido {
  padding-block: 60px 65px;
}

.dedicatoria {
  margin: 0 0 22px;
  color: #e9cda5;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.portada h1 {
  margin: 0;
  font: 400 clamp(3.88rem, 7.7vw, 7.2rem) / .88 var(--serif);
  letter-spacing: -.067em;
}

.portada h1 em {
  display: inline-block;
  margin-top: .12em;
  color: var(--oro);
  font-weight: 400;
}

.mensaje {
  max-width: 29rem;
  margin: 25px 0 27px;
  color: #f4dcbe;
  font-size: clamp(1.02rem, 1.45vw, 1.2rem);
  line-height: 1.62;
  text-wrap: pretty;
}

.boton {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid #d6ab72;
  border-radius: 3px;
  background: #e9bd83;
  color: #21160d;
  font-size: .92rem;
  font-weight: 650;
  text-decoration: none;
}

.boton:hover {
  background: #f5d5a8;
}

.flecha {
  width: .5rem;
  height: .5rem;
  margin-top: -.22rem;
  border-right: 1.5px solid;
  border-bottom: 1.5px solid;
  transform: rotate(45deg);
}

.avances {
  border-top: 1px solid #c4a781;
  padding-block: 37px 30px;
}

.avances h2 {
  margin: 0 0 21px;
  font: 400 clamp(1.8rem, 3.15vw, 2.7rem) / 1.08 var(--serif);
  letter-spacing: -.05em;
}

.hitos {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .84fr) minmax(0, 1.18fr);
  margin: 0;
  border-block: 1px solid var(--borde);
}

.hito {
  min-width: 0;
  min-height: 104px;
  padding: 17px 22px 19px;
}

.hito:first-child {
  padding-inline-start: 0;
}

.hito + .hito {
  border-inline-start: 1px solid var(--borde);
}

.hito dt {
  margin-bottom: 6px;
  color: var(--oro-oscuro);
  font-weight: 680;
}

.hito dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: #3e2d22;
  font-size: .98rem;
  line-height: 1.5;
}

.hito a {
  color: #553217;
  font-weight: 620;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}

.hito a:hover {
  color: #8b4b1c;
}

a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.nota {
  margin: 19px 0 0;
  color: #6b5543;
  font-size: .85rem;
  line-height: 1.5;
}

@media (max-width: 850px) {
  .marco {
    width: min(1200px, 100% - 64px);
  }

  .portada-imagen img {
    object-position: 63% 75%;
  }

  .portada h1 {
    font-size: clamp(3.65rem, 9.15vw, 5.45rem);
  }

  .hito {
    padding-inline: 14px;
  }
}

@media (max-width: 640px) {
  .marco {
    width: calc(100% - 40px);
  }

  .encabezado-interior {
    min-height: 62px;
  }

  .logotipo {
    width: 32px;
    height: 34px;
  }

  .marca {
    font-size: 1.05rem;
  }

  .portada {
    min-height: 0;
  }

  .portada-imagen {
    position: relative;
    grid-row: 2;
    height: clamp(195px, 59vw, 330px);
  }

  .portada-imagen img {
    object-position: 100% 72%;
  }

  .portada-imagen::after {
    background: linear-gradient(180deg, var(--oscuro), transparent 28%);
  }

  .portada-contenido {
    padding-block: 36px 14px;
  }

  .dedicatoria {
    margin-bottom: 17px;
    font-size: .7rem;
    letter-spacing: .12em;
  }

  .portada h1 {
    font-size: clamp(2.9rem, 11.65vw, 4.75rem);
  }

  .mensaje {
    margin: 21px 0 20px;
  }

  .avances {
    padding-block: 30px 25px;
  }

  .hitos {
    grid-template-columns: 1fr;
  }

  .hito {
    padding: 13px 0 15px;
    min-height: 0;
  }

  .hito + .hito {
    border-inline-start: 0;
    border-top: 1px solid var(--borde);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
