/* Isolated route-section enhancements for cicloturismo.html. */
body {
  background: #faf9f6;
}

.section-4,
.service-wrapper,
.cycle-routes,
.cycle-routes__grid {
  background: transparent;
}

.cycle-routes {
  width: 100%;
  margin-top: clamp(4rem, 9vw, 8rem);
  overflow-x: clip;
  color: var(--hsg-ink);
}

.cycle-routes__intro {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(14rem, 0.55fr);
  align-items: end;
  gap: clamp(3rem, 8vw, 8rem);
  margin-bottom: clamp(3.5rem, 7vw, 6.5rem);
  padding: clamp(2.5rem, 7vw, 6rem) 0 clamp(2rem, 4vw, 3.5rem);
  background: transparent;
  border: 0;
}

.cycle-routes__copy {
  position: relative;
  max-width: 52rem;
  padding-left: clamp(1.2rem, 2.5vw, 2rem);
}

.cycle-routes__copy::before {
  position: absolute;
  top: 0.2rem;
  bottom: 0.25rem;
  left: 0;
  width: 2px;
  background: var(--hsg-gold);
  content: "";
}

.cycle-routes__eyebrow {
  margin: 0 0 0.8rem;
  color: var(--hsg-gold-dark);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}

.cycle-routes__title {
  max-width: 15ch;
  margin: 0;
  color: var(--hsg-ink);
  font-family: var(--hsg-font);
  font-size: clamp(2.4rem, 5.5vw, 5.4rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.94;
  text-wrap: balance;
}

.cycle-routes__lead {
  max-width: 61ch;
  margin: clamp(1.25rem, 3vw, 2rem) 0 0;
  color: var(--hsg-ink-soft);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.75;
  text-wrap: pretty;
}

.cycle-routes__visual {
  position: relative;
  width: min(100%, 22rem);
  aspect-ratio: 1;
  justify-self: end;
  margin: 0;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.cycle-routes__visual::after {
  position: absolute;
  inset: 0.85rem 0.35rem -0.7rem 0.85rem;
  z-index: -1;
  border: 1px solid color-mix(in srgb, var(--hsg-gold) 55%, transparent);
  content: "";
  pointer-events: none;
}

.cycle-routes__visual img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
  background: transparent;
}

.cycle-routes__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  width: 100%;
}

.route-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0.7rem 0.7rem 1.25rem;
  background: #fff;
  border: 1px solid rgba(51, 51, 51, 0.08);
  border-radius: 1.6rem;
  box-shadow: 0 16px 40px rgba(31, 31, 30, 0.08);
}

.route-card__photo {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 1.15rem;
  background: #1f1f1e;
}

.route-card__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.route-card__photo::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 58%;
  background: linear-gradient(to top, rgba(31, 31, 30, 0.82), rgba(31, 31, 30, 0));
  content: "";
  pointer-events: none;
}

.route-card__photo-bar {
  position: absolute;
  right: 0.85rem;
  bottom: 0.85rem;
  left: 0.95rem;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
}

.route-card__title {
  margin: 0;
  color: #faf9f6;
  font-family: var(--hsg-font);
  font-size: clamp(1.25rem, 1.6vw, 1.55rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-wrap: balance;
}

.route-card__place {
  margin: 0.28rem 0 0;
  color: rgba(250, 249, 246, 0.82);
  font-size: 0.82rem;
  line-height: 1.3;
}

.route-card__map {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.4rem;
  padding: 0.45rem 0.9rem;
  color: #1f1f1e;
  background: #fff;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.route-card__map svg {
  width: 0.9rem;
  height: 0.9rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.route-card__body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.05rem 0.45rem 0.15rem;
}

.route-card__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(5.5rem, 1fr));
  gap: 0.75rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.route-card__facts li {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.route-card__facts strong {
  color: #1f1f1e;
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.route-card__fact-label {
  color: #626262;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.3;
}

.route-card__foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 7.75rem;
  gap: 0.85rem;
  align-items: end;
}

.route-card__foot--sketch {
  grid-template-columns: 1fr;
  justify-items: end;
}

.route-card__foot--sketch .route-card__sketch {
  width: 7.75rem;
}

.route-card__level {
  margin: 0;
  color: #333;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.3;
}

.route-card__bar {
  display: block;
  width: min(100%, 8.5rem);
  height: 0.28rem;
  margin-top: 0.45rem;
  overflow: hidden;
  background: rgba(51, 51, 51, 0.1);
  border-radius: 999px;
}

.route-card__bar::after {
  display: block;
  width: var(--fill, 50%);
  height: 100%;
  background: #c9a96a;
  border-radius: inherit;
  content: "";
}

.route-card__bar[data-level="open"] { --fill: 34%; }
.route-card__bar[data-level="mid"] { --fill: 58%; }
.route-card__bar[data-level="hard"] { --fill: 92%; }

.route-card__sketch {
  display: block;
  width: 100%;
  height: 4.1rem;
  padding: 0.45rem 0.4rem;
  background: #f5f5f5;
  border-radius: 0.85rem;
}

.route-card__sketch svg {
  display: block;
  width: 100%;
  height: 100%;
}

.route-card__sketch path {
  fill: none;
  stroke: #9a783e;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.route-card__kicker {
  margin: 0;
  color: #9a783e;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
}

.route-card__description {
  max-width: 68ch;
  margin: 0;
  color: #333;
  font-size: 0.98rem;
  line-height: 1.68;
  text-wrap: pretty;
}

@media (hover: hover) {
  .route-card__map:hover {
    background: #faf9f6;
  }
}

.route-card__map:active {
  transform: translateY(1px) scale(0.98);
}

.route-card__map:focus-visible {
  outline: 3px solid #c9a96a;
  outline-offset: 3px;
}

@media screen and (max-width: 991px) {
  .cycle-routes__intro {
    grid-template-columns: minmax(0, 1fr) minmax(10rem, 0.45fr);
    align-items: center;
  }
}

@media screen and (max-width: 800px) {
  .cycle-routes {
    margin-top: 3.5rem;
  }

  .cycle-routes__intro {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 3.5rem 0 2rem;
  }

  .cycle-routes__visual {
    width: min(100%, 18rem);
    max-width: 18rem;
    aspect-ratio: 1;
    justify-self: center;
  }

  .cycle-routes__visual::after {
    display: none;
  }

  .cycle-routes__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .route-card__photo-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .route-card__map,
  .route-card__map:active {
    transition: none;
    transform: none;
  }
}
