.route-intro {
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(110deg, color-mix(in srgb, var(--gold) 9%, transparent), transparent 42%),
    var(--bg-soft);
}

.route-intro-inner {
  display: grid;
  min-height: 250px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
  align-items: end;
  gap: 40px;
  padding-block: 72px 54px;
}

.route-title {
  max-width: 820px;
  margin: 0;
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: clamp(58px, 7vw, 104px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: .88;
  text-wrap: balance;
}

.route-description {
  max-width: 440px;
  margin: 0 0 5px;
  color: var(--muted-strong);
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.55;
}

.nav-links a[aria-current="page"] {
  color: var(--gold);
}

.nav-links a[aria-current="page"]::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 7px;
  left: 0;
  height: 2px;
  background: var(--gold);
}

.nav-links a {
  position: relative;
}

body[data-route-mode="section"] main > [data-site-section],
body[data-route-mode="detail"] main > [data-site-section],
body[data-route-mode="not-found"] main > [data-site-section] {
  display: none !important;
}

body[data-route-mode="section"] main > [data-route-visible="true"] {
  display: block !important;
}

body[data-route-mode="section"] .route-intro {
  display: block;
}

body[data-route-mode="section"][data-page-key="services"] #servicios > .container > .section-heading,
body[data-route-mode="section"][data-page-key="products"] #productos > .container > .section-heading,
body[data-route-mode="section"][data-page-key="promotions"] #promociones > .container > .section-heading,
body[data-route-mode="section"][data-page-key="gallery"] #galeria > .container > .section-heading,
body[data-route-mode="section"][data-page-key="reels"] #reels > .container > .section-heading {
  display: none;
}

body[data-route-mode="section"][data-page-key="gallery"] #galeria {
  padding-top: 36px;
}

body[data-route-mode="section"][data-page-key="gallery"] .gallery-toolbar {
  margin-bottom: 24px;
}

body[data-route-mode="detail"] .route-detail,
body[data-route-mode="not-found"] .route-detail {
  display: block;
}

body[data-route-mode="section"] #servicios .service-grid,
body[data-route-mode="section"] #productos .product-grid,
body[data-route-mode="section"] #galeria .gallery-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: row;
  grid-auto-columns: auto;
  overflow: visible;
}

body[data-route-mode="section"] #productos .products-layout {
  grid-template-columns: minmax(300px, .8fr) minmax(0, 1.4fr);
}

body[data-route-mode="section"] #productos .products-layout.products-layout--catalog-only {
  grid-template-columns: minmax(0, 1fr);
}

body[data-route-mode="section"] #promociones .promotion-public-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body[data-route-mode="section"] #reels .reels-feed {
  height: 100%;
}

.route-detail-card {
  display: grid;
  grid-template-columns: minmax(320px, 1.05fr) minmax(320px, .95fr);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.route-back {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  margin: 0 0 16px;
  padding: 0 15px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .08);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.route-back svg {
  width: 17px;
  height: 17px;
  color: var(--gold);
}

.route-back:hover {
  transform: translateX(-3px);
  border-color: var(--gold);
  box-shadow: 0 10px 26px color-mix(in srgb, var(--gold) 20%, transparent);
}

.route-back:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--gold) 45%, transparent);
  outline-offset: 3px;
}

.route-detail-media {
  height: clamp(400px, 35vw, 470px);
  min-height: 400px;
  background: var(--bg-soft);
}

.route-detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.route-detail-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 5vw, 72px);
}

.route-detail-copy h1,
.not-found-card h1 {
  margin: 0;
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: clamp(58px, 6vw, 88px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: .9;
}

.route-detail-lead {
  margin: 18px 0;
  color: var(--muted-strong);
  font-size: 17px;
  line-height: 1.6;
}

.route-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.route-detail-meta span {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted-strong);
  font-size: 12px;
}

.route-detail-meta svg {
  width: 16px;
  color: var(--gold);
}

.route-detail-benefits {
  display: grid;
  gap: 10px;
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
}

.route-detail-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--muted-strong);
  font-size: 14px;
}

.route-detail-benefits svg {
  width: 17px;
  flex: 0 0 auto;
  color: var(--gold);
}

.route-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.route-completed-work {
  margin-top: 54px;
}

.route-tuning-selector {
  margin-top: 48px;
}

.route-tuning-selector-heading > p {
  max-width: 390px;
  margin: 0;
  color: var(--muted-strong);
  font-size: 14px;
  line-height: 1.55;
}

.route-tuning-choice-grid {
  display: grid;
  max-width: 950px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.route-tuning-choice {
  display: grid;
  min-height: 278px;
  grid-template-rows: 146px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.route-tuning-choice:hover,
.route-tuning-choice:focus-visible {
  border-color: var(--gold);
  box-shadow: 0 16px 38px color-mix(in srgb, var(--gold) 17%, transparent);
  outline: 0;
  transform: translateY(-3px);
}

.route-tuning-choice-media,
.route-tuning-choice-media img {
  display: block;
  width: 100%;
  height: 146px;
}

.route-tuning-choice-media {
  overflow: hidden;
  background: var(--bg-soft);
}

.route-tuning-choice-media img {
  object-fit: cover;
  transition: transform .3s ease;
}

.route-tuning-choice:hover .route-tuning-choice-media img {
  transform: scale(1.035);
}

.route-tuning-choice-copy {
  display: grid;
  align-content: start;
  gap: 5px;
  padding: 15px 18px 17px;
}

.route-tuning-choice-copy small {
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.route-tuning-choice-copy strong {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: 31px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
}

.route-tuning-choice-copy > span {
  color: var(--muted-strong);
  font-size: 13px;
  line-height: 1.45;
}

.route-tuning-choice-copy b {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 4px;
  color: var(--gold);
  font-size: 12px;
  text-transform: uppercase;
}

.route-tuning-choice-copy b svg {
  width: 17px;
}

.route-hierarchy {
  margin-top: 54px;
}

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

.route-hierarchy-card {
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.route-hierarchy-card:hover,
.route-hierarchy-card:focus-visible {
  border-color: var(--gold);
  box-shadow: 0 16px 34px color-mix(in srgb, var(--gold) 14%, transparent);
  transform: translateY(-2px);
}

.route-hierarchy-card.is-featured {
  border-color: color-mix(in srgb, var(--gold) 78%, var(--border));
}

.route-hierarchy-media {
  display: block;
  width: 100%;
  height: clamp(128px, 12vw, 182px);
  overflow: hidden;
  background: var(--bg-soft);
}

.route-hierarchy-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.route-hierarchy-card:hover .route-hierarchy-media img {
  transform: scale(1.035);
}

.route-hierarchy-copy {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 16px;
}

.route-hierarchy-copy small {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.route-hierarchy-copy strong {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
}

.route-hierarchy-copy > span {
  color: var(--muted-strong);
  font-size: 13px;
  line-height: 1.45;
}

.route-hierarchy-price {
  color: var(--gold-strong);
  font-size: 14px;
  font-weight: 700;
  margin-top: 2px;
}

.route-hierarchy-copy b {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.route-packages {
  margin-top: 54px;
}

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

.route-package-card {
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.route-package-card:hover,
.route-package-card:focus-within {
  border-color: var(--gold);
  box-shadow: 0 16px 34px color-mix(in srgb, var(--gold) 14%, transparent);
  transform: translateY(-2px);
}

.route-package-card.is-featured {
  border-color: color-mix(in srgb, var(--gold) 78%, var(--border));
}

.route-package-media {
  position: relative;
  height: clamp(128px, 12vw, 182px);
  overflow: hidden;
  background: #0a0b0b;
}

.route-package-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, color-mix(in srgb, #000 54%, transparent));
  pointer-events: none;
}

.route-package-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05) saturate(.9);
  transition: transform .35s ease, filter .35s ease;
}

.route-package-card:hover .route-package-media img {
  filter: contrast(1.08) saturate(1.05);
  transform: scale(1.035);
}

.route-package-media small {
  position: absolute;
  z-index: 1;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border: 1px solid color-mix(in srgb, var(--gold) 70%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, #070707 80%, transparent);
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.route-package-media small svg {
  width: 12px;
}

.route-package-copy {
  display: grid;
  align-content: start;
  gap: 7px;
  min-height: 194px;
  padding: 16px;
}

.route-package-type {
  margin: 0;
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.route-package-copy h3 {
  margin: 0;
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: 31px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
}

.route-package-copy > p:not(.route-package-type) {
  display: -webkit-box;
  min-height: 38px;
  margin: 0;
  overflow: hidden;
  color: var(--muted-strong);
  font-size: 13px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.route-package-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.route-package-price {
  color: var(--gold);
  font-size: 17px;
  line-height: 1.1;
  white-space: nowrap;
}

.route-package-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
}

.route-package-action:hover,
.route-package-action:focus-visible {
  color: var(--gold);
  outline: 0;
}

.route-package-action svg {
  width: 15px;
  color: var(--gold);
}

.route-work-empty {
  display: grid;
  min-height: 116px;
  max-width: 420px;
  place-items: center;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--muted-strong);
  text-align: center;
}

.route-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.route-section-heading .eyebrow {
  margin-bottom: 5px;
}

.route-section-heading h2 {
  margin: 0;
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: 42px;
  font-weight: 400;
  letter-spacing: 0;
}

.route-work-controls {
  display: flex;
  gap: 8px;
}

.route-work-controls button {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, opacity .2s ease;
}

.route-work-controls button:hover:not(:disabled),
.route-work-controls button:focus-visible {
  border-color: var(--gold);
  color: var(--gold);
}

.route-work-controls button:disabled {
  opacity: .35;
  cursor: default;
}

.route-work-controls button[hidden] {
  display: none;
}

.route-work-controls svg {
  width: 19px;
}

.route-work-rail {
  display: grid;
  grid-auto-columns: calc((100% - 36px) / 4);
  grid-auto-flow: column;
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 1px 1px 10px;
  scroll-behavior: smooth;
  scroll-snap-type: inline mandatory;
  scrollbar-width: none;
}

.route-work-rail::-webkit-scrollbar {
  display: none;
}

.route-work-card {
  display: grid;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  scroll-snap-align: start;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.route-work-card:hover,
.route-work-card:focus-visible {
  border-color: var(--gold);
  box-shadow: 0 16px 34px color-mix(in srgb, var(--gold) 12%, transparent);
  transform: translateY(-2px);
}

.route-work-card.is-featured {
  border-color: color-mix(in srgb, var(--gold) 78%, var(--border));
}

.route-work-media,
.route-work-media picture {
  display: block;
  width: 100%;
}

.route-work-media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.route-work-copy {
  display: grid;
  align-content: start;
  gap: 6px;
  min-height: 112px;
  padding: 15px;
}

.route-work-copy small {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.route-work-copy small svg {
  width: 13px;
}

.route-work-copy strong {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: 27px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
}

.route-work-copy > span {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.route-related {
  margin-top: 54px;
}

.route-related h2 {
  margin: 0 0 20px;
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: 42px;
  font-weight: 400;
}

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

.route-related-card {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}

.route-related-card img {
  width: 100%;
  aspect-ratio: 1.7;
  object-fit: cover;
}

.route-related-card span {
  padding: 14px;
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: 25px;
}

.product-detail-link {
  justify-content: center;
  margin: 0 0 10px;
  color: var(--gold);
}

.route-state {
  display: grid;
  min-height: 320px;
  place-items: center;
  padding: 40px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.not-found-card {
  display: grid;
  min-height: 56vh;
  place-items: center;
  padding: 60px 20px;
  text-align: center;
}

.not-found-card > div {
  max-width: 640px;
}

.not-found-code {
  display: block;
  color: var(--gold);
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: clamp(90px, 16vw, 190px);
  line-height: .75;
}

.not-found-card p {
  margin: 18px auto 28px;
  color: var(--muted);
  font-size: 16px;
}

@media (max-width: 1040px) {
  body[data-route-mode="section"] #servicios .service-grid,
  body[data-route-mode="section"] #productos .product-grid,
  body[data-route-mode="section"] #galeria .gallery-grid,
  body[data-route-mode="section"] #promociones .promotion-public-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .route-detail-card {
    grid-template-columns: minmax(280px, .9fr) minmax(320px, 1.1fr);
  }

  .route-package-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .route-work-rail {
    grid-auto-columns: calc((100% - 12px) / 2);
  }
}

@media (max-width: 780px) {
  .route-intro-inner {
    min-height: 220px;
    grid-template-columns: 1fr;
    gap: 20px;
    padding-block: 52px 38px;
  }

  .route-title {
    font-size: clamp(54px, 17vw, 80px);
  }

  .nav-links a[aria-current="page"]::after {
    right: auto;
    bottom: 5px;
    width: 42px;
  }

  body[data-route-mode="section"] #servicios .service-grid,
  body[data-route-mode="section"] #productos .product-grid,
  body[data-route-mode="section"] #galeria .gallery-grid,
  body[data-route-mode="section"] #promociones .promotion-public-grid,
  .route-related-grid,
  .route-hierarchy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-route-mode="section"] #productos .products-layout,
  .route-detail-card {
    grid-template-columns: 1fr;
  }

  .route-detail-media {
    height: 330px;
    min-height: 330px;
  }

  .route-work-rail {
    grid-auto-columns: calc((100% - 12px) / 2);
  }

  .route-tuning-choice-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  body[data-route-mode="section"] #servicios .service-grid,
  body[data-route-mode="section"] #productos .product-grid,
  body[data-route-mode="section"] #galeria .gallery-grid,
  body[data-route-mode="section"] #promociones .promotion-public-grid,
  .route-related-grid,
  .route-hierarchy-grid {
    grid-template-columns: 1fr;
  }

  .route-detail-copy {
    padding: 28px 20px;
  }

  .route-detail-actions {
    display: grid;
  }

  .route-detail-actions .button {
    width: 100%;
  }

  .route-section-heading {
    align-items: center;
  }

  .route-section-heading h2 {
    font-size: 36px;
  }

  .route-work-rail {
    grid-auto-columns: 100%;
  }

  .route-tuning-selector-heading {
    align-items: flex-start;
  }

  .route-package-grid {
    grid-template-columns: 1fr;
  }

  .route-package-media {
    height: 178px;
  }
}
