/* ==========================================================
   WIND by AURI | trajectory-new.css
   Nueva versión de la sección "Una trayectoria que continúa"
   ========================================================== */

.trajectory-section {
  position: relative;
  overflow: hidden;
  background: #f7f6f3;
}

.trajectory-heading {
  align-items: end;
}

.trajectory-intro {
  max-width: 430px;
  margin: 0;
  color: #666;
  line-height: 1.7;
}

.trajectory-projects {
  position: relative;
  width: min(100%, 1500px);
  margin: 48px auto 0;
  padding: 34px 10px 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 16px;
  box-sizing: border-box;
}

.trajectory-projects::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 30px;
  right: 30px;
  top: 74px;
  height: 1px;
  background: rgba(40,40,40,.22);
}

.trajectory-card {
  position: relative;
  z-index: 1;
  flex: 1 1 130px;
  min-width: 125px;
  max-width: 175px;
  min-height: 152px;
  padding: 24px 12px 18px;
  border: 1px solid rgba(30,30,30,.12);
  background: rgba(255,255,255,.94);
  box-sizing: border-box;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  transition:
    transform .3s ease,
    box-shadow .3s ease,
    border-color .3s ease;
}

.trajectory-card:hover {
  transform: translateY(-7px);
  border-color: rgba(30,30,30,.28);
  box-shadow: 0 16px 35px rgba(0,0,0,.10);
}

.trajectory-year {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  min-height: 58px;
  padding: 8px;
  border-radius: 50%;
  background: #171717;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1;
  box-sizing: border-box;
  margin-bottom: 17px;
  position: relative;
  z-index: 2;
}

.trajectory-card h3 {
  margin: 0;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 600;
  color: #171717;
}

.trajectory-card p {
  margin: 8px 0 0;
  font-size: 11px;
  line-height: 1.45;
  color: #777;
}

.trajectory-card.is-current {
  background: #171717;
  border-color: #171717;
}

.trajectory-card.is-current .trajectory-year {
  background: #fff;
  color: #171717;
}

.trajectory-card.is-current h3,
.trajectory-card.is-current p {
  color: #fff;
}

.trajectory-footer {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}

@media (max-width: 1100px) {
  .trajectory-projects {
    gap: 13px;
    padding-left: 4px;
    padding-right: 4px;
  }

  .trajectory-card {
    flex: 1 1 140px;
    max-width: 170px;
  }
}

@media (max-width: 900px) {
  .trajectory-projects::before {
    display: none;
  }

  .trajectory-projects {
    padding-top: 10px;
  }

  .trajectory-card {
    flex: 0 1 calc(20% - 13px);
  }
}

@media (max-width: 700px) {
  .trajectory-heading {
    align-items: start;
  }

  .trajectory-intro {
    margin-top: 18px;
  }

  .trajectory-projects {
    gap: 12px;
  }

  .trajectory-card {
    flex: 0 1 calc(33.333% - 8px);
    max-width: none;
    min-width: 0;
  }
}

@media (max-width: 520px) {
  .trajectory-card {
    flex: 0 1 calc(50% - 6px);
  }
}

@media (max-width: 360px) {
  .trajectory-card {
    flex: 1 1 100%;
  }
}
