
.trip-archive-hero {
  background:
    linear-gradient(90deg, rgb(8 20 29 / 82%), rgb(8 20 29 / 32%)),
    url("../img/hero-viajes.jpg") center 46% / cover;
}

.trip-toolbar {
  display: grid;
  grid-template-columns: minmax(300px, 1.7fr) repeat(3, minmax(155px, 1fr)) auto;
  gap: 12px;
  align-items: end;
}

.trip-toolbar label {
  display: grid;
  gap: 8px;
  color: var(--ink-soft);
  font-weight: 800;
}

.trip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.trip-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d9d4ca;
  border-radius: 18px;
  background: rgb(255 255 255 / 55%);
  color: var(--ink);
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}

.trip-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 48px rgb(20 30 40 / 13%);
}

.trip-card-visual {
  position: relative;
  height: 180px;
  overflow: hidden;
  background: linear-gradient(180deg, #273b49, #12232f);
  color: rgb(255 255 255 / 24%);
}

.trip-card-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgb(4 14 22 / 48%));
}

.trip-card-visual svg {
  position: absolute;
  right: -5%;
  bottom: -2px;
  width: 110%;
  height: 88%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.trip-year {
  position: absolute;
  z-index: 2;
  top: 17px;
  left: 18px;
  color: white;
  font-size: 1.05rem;
  font-weight: 900;
}

.trip-card-body {
  padding: 22px;
}

.trip-date {
  margin: 0 0 7px;
  color: var(--orange);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.trip-card h2 {
  margin: 0 0 6px;
  font-size: 1.65rem;
  line-height: 1.08;
}

.trip-place {
  min-height: 1.5em;
  margin-bottom: 20px;
  color: var(--muted);
}

.trip-card-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 17px;
}

.trip-card-stats div {
  display: grid;
  padding: 12px;
  border-radius: 11px;
  background: #efede7;
}

.trip-card-stats strong {
  font-size: 1.7rem;
  line-height: 1;
}

.trip-card-stats span {
  margin-top: 4px;
  color: var(--muted);
  font-size: .76rem;
}

.trip-summits {
  min-height: 3.7em;
  margin: 0 0 17px;
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.45;
}

.trip-card-footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .84rem;
}

.trip-card-footer strong {
  color: var(--orange);
  white-space: nowrap;
}

.popup-inline-link,
.ascent-trip a {
  color: inherit;
  text-decoration-color: rgb(207 78 8 / 45%);
  text-underline-offset: 3px;
}

/* Detail */
.trip-detail-hero {
  padding: 76px 0 64px;
  color: white;
  background:
    linear-gradient(90deg, rgb(6 18 27 / 88%), rgb(6 18 27 / 25%)),
    url("./../img/hero-viajes.jpg.jpg") center 47% / cover;
}

.trip-detail-date {
  margin: 38px 0 12px;
  color: #ff9a61;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.trip-detail-hero h1 {
  max-width: 1050px;
  margin: 0 0 12px;
  font-size: clamp(4rem, 8vw, 8rem);
  line-height: .88;
}

.trip-detail-place {
  color: rgb(255 255 255 / 72%);
  font-size: 1.2rem;
}

.trip-detail-numbers {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.trip-detail-numbers div {
  min-width: 130px;
  padding: 15px 18px;
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 13px;
  background: rgb(255 255 255 / 8%);
  backdrop-filter: blur(7px);
}

.trip-detail-numbers strong,
.trip-detail-numbers span {
  display: block;
}

.trip-detail-numbers strong {
  font-size: 2.3rem;
  line-height: 1;
}

.trip-detail-numbers span {
  margin-top: 5px;
  color: rgb(255 255 255 / 70%);
  font-size: .8rem;
}

.trip-description > p:last-child {
  max-width: 800px;
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.75;
}

#trip-map {
  height: 500px;
  overflow: hidden;
  border-radius: 18px;
}

.trip-summit-list {
  border-top: 1px solid var(--line-dark);
}

.trip-summit-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 15px;
  align-items: center;
  padding: 17px 2px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.trip-summit-row:hover .trip-summit-name {
  color: var(--orange);
}

.trip-summit-index {
  color: #a3abb0;
  font-size: .76rem;
  font-weight: 900;
}

.trip-summit-name {
  font-size: 1.08rem;
  font-weight: 850;
}

.trip-summit-row strong {
  font-size: 1.05rem;
}

.trip-summit-row small {
  font-size: .72em;
}

.trip-people-card,
.trip-notes-card {
  padding: 26px;
  border: 1px solid #dcd6cb;
  border-radius: 16px;
  background: rgb(255 255 255 / 48%);
}

.trip-people-card h2 {
  margin: 0 0 18px;
  font-size: 2rem;
}

.trip-people-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.trip-people-list span {
  padding: 8px 10px;
  border-radius: 999px;
  background: #ece9e2;
  font-size: .84rem;
  font-weight: 800;
}

.trip-notes-card h3 {
  margin-bottom: 7px;
}

.trip-notes-card p {
  color: var(--muted);
  line-height: 1.55;
}

@media (max-width: 1100px) {
  .trip-toolbar {
    grid-template-columns: repeat(2, 1fr);
  }

  .trip-toolbar .archive-search {
    grid-column: 1 / -1;
  }

  .trip-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .trip-toolbar {
    grid-template-columns: 1fr;
  }

  .trip-toolbar .archive-search {
    grid-column: auto;
  }

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

  .trip-detail-hero h1 {
    font-size: clamp(3.7rem, 16vw, 6rem);
  }

  #trip-map {
    height: 380px;
  }
}


/* v12 · Distinct section identity */
.trip-archive-hero {
  background:
    linear-gradient(90deg, rgb(30 20 12 / 86%), rgb(20 18 12 / 22%)),
    url("../img/hero-viajes.jpg") center 58% / cover;
}

.trip-detail-hero {
  background:
    linear-gradient(90deg, rgb(28 18 10 / 90%), rgb(14 20 22 / 18%)),
    url("../img/hero-viajes.jpg") center 62% / cover;
}

/* Sprint 001 · enlaces entre viajes y personas */
.trip-people-list a,
.trip-people-list > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border-radius: 999px;
  background: #ece9e2;
  color: inherit;
  font-size: .84rem;
  font-weight: 800;
  text-decoration: none;
}

.trip-people-list a {
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.trip-people-list a:hover,
.trip-people-list a:focus-visible {
  background: var(--green-dark, #075c36);
  color: #fff;
  transform: translateY(-1px);
}

.trip-people-list a span {
  padding: 0;
  background: transparent;
  transition: transform .2s ease;
}

.trip-people-list a:hover span,
.trip-people-list a:focus-visible span {
  transform: translateX(2px);
}

/* Sprint 002 · fotografías, tracks y enlaces de alojamiento */
.trip-card-visual.has-photo {
  background-size: cover;
  background-repeat: no-repeat;
  transition: background-size .35s ease;
}

.trip-card:hover .trip-card-visual.has-photo {
  background-size: 105%;
}

.trip-detail-hero.has-photo {
  background-size: cover;
  background-repeat: no-repeat;
}

.fact-link {
  color: var(--green-dark, #075c36);
  font-weight: 850;
  text-decoration-color: rgb(7 92 54 / 35%);
  text-underline-offset: 3px;
}

.fact-link:hover,
.fact-link:focus-visible {
  color: var(--orange);
}

.trip-track-list {
  display: grid;
  gap: 10px;
}

.trip-track-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 15px;
  align-items: center;
  padding: 17px 18px;
  border: 1px solid #d9d4ca;
  border-radius: 14px;
  background: rgb(255 255 255 / 55%);
  color: var(--ink);
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.trip-track-card:hover,
.trip-track-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgb(7 92 54 / 42%);
  box-shadow: 0 12px 30px rgb(20 30 40 / 9%);
}

.trip-track-number {
  color: var(--orange);
  font-size: .78rem;
  font-weight: 950;
  letter-spacing: .05em;
}

.trip-track-copy {
  display: grid;
  gap: 4px;
}

.trip-track-copy strong {
  font-size: 1rem;
}

.trip-track-copy small {
  color: var(--muted);
  font-size: .78rem;
}

.trip-track-arrow {
  color: var(--green-dark, #075c36);
  font-size: 1.15rem;
  transition: transform .18s ease;
}

.trip-track-card:hover .trip-track-arrow,
.trip-track-card:focus-visible .trip-track-arrow {
  transform: translate(2px, -2px);
}

.trip-track-notice {
  margin: 14px 0 0;
  padding: 14px 16px;
  border-left: 4px solid #c7b78c;
  border-radius: 0 10px 10px 0;
  background: #f0ece2;
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.55;
}

.trip-track-notice strong {
  color: var(--ink-soft);
}

@media (max-width: 620px) {
  .trip-card:hover .trip-card-visual.has-photo {
    background-size: cover;
  }

  .trip-detail-numbers {
    flex-wrap: wrap;
  }

  .trip-detail-numbers div {
    min-width: 110px;
  }

  .trip-track-card {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    padding: 15px;
  }
}
