/* Soluciones index page styles */

/* ─── SOLUTIONS INDEX V2 ──────────────────────────────────────────────────── */

#page-solutions {
  overflow-x: hidden;
}
@supports (overflow: clip) {
  #page-solutions { overflow-x: clip; }
}

/* ── Hero ── */
.solutions-index-hero {
  padding: 24px 0 0;
  overflow: hidden;
  position: relative;
  background: #ffffff;
}
.solutions-index-hero::before {
  content: '';
  position: absolute;
  top: 22.5%; right: 20%; bottom: 22.5%; left: 20%;
  border-radius: 10%;
  background: radial-gradient(ellipse 100% 100%,
    rgba(119,183,252,0.26) 0%,
    rgba(255,255,255,0.09) 42%,
    transparent 90%);
  filter: blur(100px);
  transform-origin: center center;
  animation: pearlOrbit1 30s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
.solutions-index-hero::after {
  content: '';
  position: absolute;
  top: 25%; right: 22%; bottom: 25%; left: 22%;
  border-radius: 10%;
  background: radial-gradient(ellipse 100% 100%,
    rgba(213,128,242,0.24) 0%,
    rgba(255,255,255,0.08) 42%,
    transparent 90%);
  filter: blur(100px);
  transform-origin: center center;
  animation: pearlOrbit2 30s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.solutions-index-hero__grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
  min-height: 460px;
  position: relative;
  z-index: 1;
  padding-top: 20px;
}
.solutions-index-hero__copy {
  max-width: 52ch;
}
.solutions-index-hero__copy .eyebrow {
  margin-top: 0;
}
.solutions-index-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.6vw, 4.3rem);
  font-weight: 700;
  line-height: 1.01;
  letter-spacing: -0.03em;
  margin-top: 0;
  margin-bottom: 14px;
  color: var(--text);
  text-shadow: 0 2px 18px rgba(160,180,255,0.16);
}
.solutions-index-lede {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 350;
  color: rgba(28,30,42,0.62);
  line-height: 1.72;
  max-width: 70ch;
}
.solutions-index-hero__visual {
  width: clamp(360px, 40vw, 540px);
  flex-shrink: 0;
  animation: heroFloat 9s ease-in-out infinite;
  filter:
    drop-shadow(0 32px 64px rgba(90,108,180,.18))
    drop-shadow(0 8px 24px rgba(160,180,255,.14));
  padding-top: 13px;
  right:3%;
  position: absolute;
  z-index: 1;
}
.solutions-index-hero__visual img {
  display: block;
  width: 100%;
  height: auto;
  transform: scale(1.18) translateX(6%);
  transform-origin: center top;
  opacity: 0.86;
}

/* ── Solutions base shelf ── */
.solutions-index-hero__shelf {
  margin-top: -56px;
  position: relative;
  z-index: 2;
  padding: 20px 0 48px;
}
.solutions-index-hero__shelf .eyebrow {
  margin-bottom: 22px;
}
.solutions-base-strip {
  display: flex;
  gap: 10px;
  opacity: 0.92;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  overflow: visible;
}
.solutions-base-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 24px;
  background: rgba(255,255,255,0.86);
  border: 1px solid rgba(255,255,255,0.90);
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(80,80,160,0.06), inset 0 1px 0 rgba(255,255,255,0.96);
  cursor: pointer;
  color: var(--text);
  text-align: center;
  text-decoration: none;
  transition: background var(--tr), color var(--tr);
}
.solutions-base-item:hover {
  background: rgba(255,255,255,.52);
  color: var(--accent);
}
.solutions-base-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 38% 22%, rgba(255,255,255,.96) 0%, rgba(245,248,255,.84) 52%, rgba(225,235,255,.70) 100%);
  border: 1px solid rgba(180,195,235,.28);
  border-radius: 50%;
  flex-shrink: 0;
  color: #3d4fa8;
  box-shadow:
    0 6px 18px rgba(90,105,170,.12),
    0 2px 6px rgba(255,255,255,.72),
    inset 0 1px 0 rgba(255,255,255,.98),
    inset 0 -6px 12px rgba(180,200,240,.16);
  transition: background var(--tr), border-color var(--tr), box-shadow var(--tr);
}
.solutions-base-icon svg {
  width: 38px;
  height: 38px;
}
.solutions-base-item:hover .solutions-base-icon {
  background:
    radial-gradient(circle at 38% 22%, rgba(255,255,255,1) 0%, rgba(245,250,255,.92) 52%, rgba(232,240,255,.82) 100%);
  border-color: rgba(120,145,215,.36);
  box-shadow:
    0 8px 22px rgba(90,105,170,.18),
    0 2px 8px rgba(255,255,255,.86),
    inset 0 1px 0 rgba(255,255,255,1),
    inset 0 -8px 14px rgba(160,185,240,.22);
}
.solutions-base-label {
  font-family: var(--sans);
  font-size: 0.90rem;
  font-weight: 500;
  color: inherit;
  line-height: 1.35;
  letter-spacing: 0.005em;
}

/* ─────────────────────────────────────────────
   POPULAR ROUTES — Modular editorial route selector
   12-col Tetris grid · building blocks · pearl iridescence
   ───────────────────────────────────────────── */
.popular-routes-section {
  padding: 100px 0 120px;
  position: relative;
  isolation: isolate;
}
.popular-routes-section::before {
  content: '';
  position: absolute;
  inset: -10% -22% auto -22%;
  height: 78%;
  background:
    radial-gradient(ellipse 56% 64% at 12% 24%, rgba(190,220,255,.16) 0%, transparent 62%),
    radial-gradient(ellipse 48% 56% at 88% 70%, rgba(220,228,250,.16) 0%, transparent 62%),
    radial-gradient(ellipse 28% 26% at 50% 6%,  rgba(255,242,232,.10) 0%, transparent 72%);
  pointer-events: none;
  z-index: -1;
  filter: blur(48px);
}
.popular-routes-section::after {
  content: '';
  position: absolute;
  inset: 18% -30% auto auto;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background:
    conic-gradient(from 220deg at 50% 50%,
      rgba(255,235,225,.0) 0%,
      rgba(255,235,225,.10) 12%,
      rgba(214,232,255,.16) 32%,
      rgba(232,222,255,.10) 56%,
      rgba(255,235,225,.0) 100%);
  filter: blur(60px);
  opacity: 0.6;
  pointer-events: none;
  z-index: -1;
}

/* ── Heading ── editorial, anchored ── */
.popular-routes-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 56px;
  align-items: end;
  margin-bottom: 32px;
  padding-top: 4px;
}
.popular-routes-heading__lede {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.popular-routes-heading__lede .eyebrow {
  margin: 0;
}
.popular-routes-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 1.9vw, 1.75rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.022em;
  color: var(--text);
  text-shadow: 0 2px 14px rgba(160,180,255,.14);
}
.popular-routes-heading__rule {
  display: block;
  width: 72px;
  height: 1px;
  margin-top: 8px;
  background: linear-gradient(90deg, rgba(61,79,168,.55) 0%, rgba(61,79,168,.05) 100%);
  position: relative;
}
.popular-routes-heading__rule::before {
  content: '';
  position: absolute;
  left: 0;
  top: -2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffffff 0%, #b6c4ec 100%);
  box-shadow: 0 0 8px rgba(132,152,218,.55);
}
.popular-routes-heading__copy {
  font-family: var(--sans);
  font-size: 0.96rem;
  font-weight: 350;
  color: rgba(74,77,94,0.80);
  line-height: 1.66;
  max-width: 46ch;
  margin: 0 0 6px;
  justify-self: end;
  text-align: right;
}

/* ── Filterbar (pearl chips on glass tray) ── */
.popular-routes-filterbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 7px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(255,255,255,0.90);
  box-shadow: 0 1px 4px var(--shadow-soft);
}
.popular-routes-filter {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  font-family: var(--sans);
  font-size: 0.80rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  color: rgba(56,62,90,.78);
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--tr), background var(--tr), border-color var(--tr),
              box-shadow var(--tr), transform var(--tr);
}
.popular-routes-filter:hover {
  color: #2c3680;
  background: rgba(255,255,255,.70);
  border-color: rgba(180,196,232,.30);
}
.popular-routes-filter.is-active {
  color: #1d2870;
  background:
    radial-gradient(circle at 30% 18%, rgba(255,255,255,1) 0%, rgba(232,240,255,.94) 50%, rgba(208,222,250,.88) 100%);
  border-color: rgba(132,152,218,.46);
  box-shadow:
    0 6px 14px rgba(90,105,170,.16),
    0 1px 2px rgba(90,105,170,.10),
    inset 0 1px 0 rgba(255,255,255,1),
    inset 0 -3px 6px rgba(180,200,240,.22);
}
.popular-routes-filter:focus-visible {
  outline: 2px solid rgba(61,79,168,.55);
  outline-offset: 2px;
}

/* ── Shell wraps filterbar → count → board → pagination ── */
.popular-routes-shell {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ── Status bar — count (left) + pagination (right) ── */
.popular-routes-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── Count pill ── */
.popular-routes-count {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(61,79,168,.74);
  padding: 6px 14px 6px 12px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.78) 0%, rgba(244,248,255,.62) 100%);
  border: 1px solid rgba(255,255,255,.82);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.96),
    0 1px 2px rgba(90,105,170,.06);
}
.popular-routes-count__range strong {
  font-weight: 600;
  color: #1d2870;
  letter-spacing: 0.06em;
}
.popular-routes-count__sep {
  color: rgba(61,79,168,.30);
  font-weight: 300;
}
.popular-routes-count__total {
  color: rgba(61,79,168,.72);
}

/* ─────────────────────────────────────────────
   BOARD — 12-col Tetris grid
   Each card's grid-column span is set inline by
   the renderer's packer to ensure rows fill 12.
   ───────────────────────────────────────────── */
.popular-routes-board {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: row dense;
  gap: 18px;
  align-items: stretch;
}

/* ─────────────────────────────────────────────
   ROUTE CARD — building block (shared base)
   ───────────────────────────────────────────── */
.popular-route-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.90);
  background: #ffffff;
  box-shadow: 0 1px 4px var(--shadow-soft);
  backdrop-filter: none;
  transition: border-color 0.26s ease, box-shadow 0.26s ease, transform 0.26s ease;
  isolation: isolate;
}
.popular-route-card:focus-visible {
  outline: 2px solid rgba(61,79,168,.55);
  outline-offset: 3px;
}
.popular-route-card:hover {
  border-color: rgba(255,255,255,0.98);
  box-shadow: 0 2px 8px var(--shadow-med);
  transform: translateY(-3px);
}

/* Iridescent sheen — sweeping reflection on hover */
.popular-route-card__sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(118deg,
    transparent 0%,
    rgba(255,255,255,.38) 38%,
    rgba(200,230,250,.20) 52%,
    rgba(255,255,255,.32) 64%,
    transparent 78%);
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  transform: translateX(-12%);
  transition: opacity 0.30s ease, transform 0.55s ease;
  z-index: 1;
}
.popular-route-card:hover .popular-route-card__sheen {
  opacity: 1;
  transform: translateX(10%);
}

/* Top-edge highlight — feels like a beveled glass tile */
.popular-route-card__edge {
  position: absolute;
  top: -1px;
  left: 7%;
  right: 7%;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255,255,255,.98) 36%,
    rgba(255,255,255,.98) 64%,
    transparent 100%);
  z-index: 2;
}

/* Editorial corner tag — "R·01" mono micro-label */
.popular-route-card__corner-tag {
  position: absolute;
  top: 16px;
  right: 18px;
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.20em;
  color: rgba(61,79,168,.36);
  z-index: 3;
  pointer-events: none;
  transition: color var(--tr), transform var(--tr);
}
.popular-route-card:hover .popular-route-card__corner-tag {
  color: rgba(61,79,168,.66);
  transform: translateY(-1px);
}


/* ─────────────────────────────────────────────
   LAYOUT VARIANTS — size + density + typography
   featured → 7 cols natural (large)
   wide     → 5 cols natural (medium)
   compact  → 4 cols natural (small)
   Span is set inline by JS; these classes drive
   typography & padding only.
   ───────────────────────────────────────────── */
.popular-route-card--compact {
  min-height: 230px;
  padding: 22px 24px 22px;
  gap: 14px;
}
.popular-route-card--wide {
  min-height: 268px;
  padding: 26px 28px 26px;
  gap: 16px;
}
.popular-route-card--featured {
  min-height: 296px;
  padding: 30px 34px 28px;
  gap: 20px;
  border-radius: 30px;
}

/* ─────────────────────────────────────────────
   META row — icon + ruta-type chip
   ───────────────────────────────────────────── */
.popular-route-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 2;
}
.popular-route-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #3d4fa8;
  border-radius: 11px;
  border: 1px solid rgba(160,178,228,.32);
  background:
    radial-gradient(circle at 32% 22%, rgba(255,255,255,1) 0%, rgba(238,244,255,.92) 52%, rgba(216,228,250,.84) 100%);
  box-shadow:
    0 4px 12px rgba(90,105,170,.14),
    inset 0 1px 0 rgba(255,255,255,1),
    inset 0 -4px 8px rgba(178,198,238,.22);
  transition: transform var(--tr), box-shadow var(--tr);
}
.popular-route-icon svg { width: 17px; height: 17px; }
.popular-route-card--wide     .popular-route-icon     { width: 40px; height: 40px; border-radius: 12px; }
.popular-route-card--wide     .popular-route-icon svg { width: 19px; height: 19px; }
.popular-route-card--featured .popular-route-icon     { width: 46px; height: 46px; border-radius: 14px; }
.popular-route-card--featured .popular-route-icon svg { width: 22px; height: 22px; }
.popular-route-card:hover .popular-route-icon {
  transform: scale(1.06) rotate(-1.5deg);
  box-shadow:
    0 6px 18px rgba(90,105,170,.20),
    inset 0 1px 0 rgba(255,255,255,1),
    inset 0 -4px 8px rgba(178,198,238,.30);
}

.popular-route-type {
  font-family: var(--mono);
  font-size: 0.59rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(61,79,168,.78);
  padding: 4px 11px 4px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,.66);
  border: 1px solid rgba(160,178,228,.24);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.96);
}

/* ─────────────────────────────────────────────
   BODY — title + description
   ───────────────────────────────────────────── */
.popular-route-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  z-index: 2;
}
.popular-route-title {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.04rem;
  font-weight: 620;
  line-height: 1.24;
  letter-spacing: -0.012em;
  color: rgba(22,25,40,.94);
}
.popular-route-card--wide .popular-route-title {
  font-size: 1.22rem;
  line-height: 1.22;
  letter-spacing: -0.014em;
}
.popular-route-card--featured .popular-route-title {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2vw, 1.95rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.024em;
  color: var(--text);
  text-shadow: 0 2px 12px rgba(160,180,255,.12);
  max-width: 22ch;
}
.popular-route-desc {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.58;
  color: rgba(74,77,94,.78);
  max-width: 34ch;
}
.popular-route-card--wide .popular-route-desc     { font-size: 0.88rem; max-width: 40ch; }
.popular-route-card--featured .popular-route-desc { font-size: 0.95rem; max-width: 46ch; line-height: 1.62; }

/* ─────────────────────────────────────────────
   ROUTE block group — bottom-anchored piezas
   ───────────────────────────────────────────── */
.popular-route-card__route {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  position: relative;
  z-index: 2;
  padding-right: 44px;
}
.popular-route-card--featured .popular-route-card__route {
  padding: 16px 18px 14px;
  padding-right: 64px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.74);
  background:
    radial-gradient(circle at 18% 12%, rgba(255,255,255,.86) 0%, rgba(248,252,255,.62) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.94),
    inset 0 -2px 6px rgba(200,216,240,.16);
}
.popular-route-label {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(61,79,168,.66);
}

/* ─────────────────────────────────────────────
   ROUTE blocks — the LEGO pieces
   ───────────────────────────────────────────── */
.route-blocks {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.route-block {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px 7px 9px;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 520;
  color: #324094;
  letter-spacing: -0.003em;
  border-radius: 11px;
  border: 1px solid rgba(132,152,218,.30);
  background:
    radial-gradient(circle at 28% 18%, rgba(255,255,255,1) 0%, rgba(244,248,255,.96) 60%, rgba(228,238,255,.88) 100%);
  box-shadow:
    0 2px 6px rgba(90,105,170,.10),
    0 1px 2px rgba(90,105,170,.06),
    inset 0 1px 0 rgba(255,255,255,1),
    inset 0 -3px 6px rgba(188,206,240,.22);
  white-space: nowrap;
  transition: transform var(--tr), box-shadow var(--tr), border-color var(--tr);
}
.popular-route-card--featured .route-block {
  padding: 9px 14px 9px 11px;
  font-size: 0.82rem;
  border-radius: 12px;
}
.route-block__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #4456b8;
  opacity: 0.92;
}
.route-block__icon svg { width: 13px; height: 13px; }
.popular-route-card--featured .route-block__icon svg { width: 14px; height: 14px; }
.route-block__name {
  position: relative;
  top: -0.5px;
}
.route-block__note {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: rgba(74,77,94,.66);
  letter-spacing: 0.02em;
  padding-left: 4px;
  font-weight: 400;
}
.route-block-plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 400;
  color: rgba(61,79,168,.48);
  flex-shrink: 0;
  user-select: none;
  position: relative;
  top: -1px;
}
.popular-route-card:hover .route-block {
  border-color: rgba(132,152,218,.48);
  box-shadow:
    0 4px 12px rgba(90,105,170,.14),
    0 1px 2px rgba(90,105,170,.06),
    inset 0 1px 0 rgba(255,255,255,1),
    inset 0 -3px 7px rgba(188,206,240,.28);
}
.popular-route-card:hover .route-block-plus {
  color: rgba(61,79,168,.72);
}

/* ─────────────────────────────────────────────
   ACTION arrow — pearl coin (bottom-right)
   ───────────────────────────────────────────── */
.popular-route-action {
  position: absolute;
  bottom: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(61,79,168,.68);
  font-family: var(--sans);
  font-size: 1.10rem;
  line-height: 1;
  font-weight: 400;
  border-radius: 50%;
  border: 1px solid rgba(160,175,228,.30);
  background:
    radial-gradient(circle at 34% 22%, rgba(255,255,255,.98) 0%, rgba(228,238,255,.84) 100%);
  box-shadow:
    0 2px 8px rgba(90,105,170,.12),
    inset 0 1px 0 rgba(255,255,255,.98);
  transition: transform var(--tr), background var(--tr), color var(--tr),
              border-color var(--tr), box-shadow var(--tr);
  z-index: 3;
}
.popular-route-card--featured .popular-route-action {
  bottom: 22px;
  right: 22px;
  width: 40px;
  height: 40px;
  font-size: 1.20rem;
}
.popular-route-card:hover .popular-route-action {
  color: #1d2870;
  border-color: rgba(132,152,218,.55);
  background:
    radial-gradient(circle at 34% 22%, rgba(255,255,255,1) 0%, rgba(214,226,255,.94) 100%);
  box-shadow:
    0 6px 14px rgba(90,105,170,.20),
    inset 0 1px 0 rgba(255,255,255,1);
  transform: translateX(3px);
}

/* ─────────────────────────────────────────────
   PAGINATION — compact inline cluster (right side
   of the status bar). Pearl arrow coins + mono
   page status. No labels, just glyphs.
   ───────────────────────────────────────────── */
.popular-routes-pagination {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px 4px 4px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.72) 0%, rgba(244,248,255,.56) 100%);
  border: 1px solid rgba(255,255,255,.82);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.96),
    0 2px 6px rgba(90,105,170,.06);
}
.popular-routes-pagination[hidden] { display: none; }

.popular-routes-page-btn {
  appearance: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  font-family: var(--sans);
  font-size: 1.0rem;
  font-weight: 400;
  line-height: 1;
  color: rgba(44,54,128,.86);
  border-radius: 50%;
  border: 1px solid rgba(155,172,228,.36);
  background:
    radial-gradient(circle at 32% 22%, rgba(255,255,255,.98) 0%, rgba(232,242,255,.90) 100%);
  box-shadow:
    0 2px 6px rgba(90,105,170,.10),
    inset 0 1px 0 rgba(255,255,255,1);
  transition: box-shadow var(--tr), transform var(--tr), border-color var(--tr),
              background var(--tr), color var(--tr), opacity var(--tr);
}
.popular-routes-page-btn > span {
  position: relative;
  top: -1px;
}
.popular-routes-page-btn:hover:not(:disabled) {
  color: #1d2870;
  border-color: rgba(130,152,218,.55);
  background:
    radial-gradient(circle at 32% 22%, rgba(255,255,255,1) 0%, rgba(214,228,255,.94) 100%);
  box-shadow:
    0 4px 12px rgba(90,105,170,.18),
    inset 0 1px 0 rgba(255,255,255,1);
}
.popular-routes-page-btn--prev:hover:not(:disabled) { transform: translateX(-1px); }
.popular-routes-page-btn--next:hover:not(:disabled) { transform: translateX(1px); }
.popular-routes-page-btn:focus-visible {
  outline: 2px solid rgba(61,79,168,.55);
  outline-offset: 3px;
}
.popular-routes-page-btn:disabled {
  cursor: not-allowed;
  opacity: 0.38;
  color: rgba(74,77,94,.55);
  border-color: rgba(180,195,228,.22);
  background:
    radial-gradient(circle at 32% 22%, rgba(255,255,255,.86) 0%, rgba(244,248,255,.72) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.92);
}

.popular-routes-page-status {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(38,48,120,.78);
  white-space: nowrap;
}

/* ─────────────────────────────────────────────
   RESPONSIVE — board flexes down gracefully
   (Hero / Base strip / Final CTA breakpoints
    live in the page-wide responsive block below)
   ───────────────────────────────────────────── */
@media (max-width: 1100px) {
  .popular-routes-heading {
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: start;
  }
  .popular-routes-heading__copy {
    justify-self: start;
    text-align: left;
    max-width: 58ch;
  }
  .popular-routes-board { gap: 14px; }
  .popular-route-card--featured { padding: 26px 28px 24px; min-height: 280px; }
  .popular-route-card--wide     { padding: 22px 24px 22px; min-height: 250px; }
  .popular-route-card--compact  { padding: 20px 22px 20px; min-height: 220px; }
}

@media (max-width: 860px) {
  .popular-routes-title { font-size: clamp(1.75rem, 7vw, 2.25rem); }
  .popular-routes-heading__copy { font-size: 0.88rem; }

  /* Filterbar — horizontal scroll */
  .popular-routes-filterbar {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-radius: 22px;
    padding: 6px;
    margin-left: -4px;
    margin-right: -4px;
  }
  .popular-routes-filterbar::-webkit-scrollbar { display: none; }
  .popular-routes-filter { flex-shrink: 0; font-size: 0.78rem; padding: 9px 14px; }

  /* Board collapses to single column — inline span hint ignored */
  .popular-routes-board {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .popular-route-card,
  .popular-route-card--featured,
  .popular-route-card--wide,
  .popular-route-card--compact {
    grid-column: 1 / -1 !important;
    min-height: 0;
  }
  .popular-route-card--featured {
    padding: 24px 22px 22px;
    border-radius: 24px;
  }
  .popular-route-card--featured .popular-route-title {
    font-size: 1.42rem;
    max-width: none;
  }
  .popular-route-card--featured .popular-route-card__route {
    padding: 14px 14px 12px;
    border-radius: 14px;
    padding-right: 56px;
  }
  .popular-route-card--wide    { padding: 22px 22px 22px; }
  .popular-route-card--compact { padding: 20px 22px 22px; }

  .route-blocks { gap: 6px; }
  .route-block {
    font-size: 0.78rem;
    padding: 7px 12px 7px 9px;
    white-space: normal;
  }
  .popular-route-card--featured .route-block { font-size: 0.80rem; padding: 8px 13px 8px 10px; }

  .popular-route-action { bottom: 16px; right: 16px; width: 32px; height: 32px; }
  .popular-route-card--featured .popular-route-action { width: 36px; height: 36px; }
  .popular-route-card__route { padding-right: 44px; }

  .popular-routes-statusbar { gap: 10px; }
  .popular-routes-pagination { gap: 8px; padding: 3px 6px 3px 3px; }
  .popular-routes-page-btn { width: 30px; height: 30px; font-size: 0.95rem; }
  .popular-routes-page-status { font-size: 0.58rem; letter-spacing: 0.12em; }

  /* Editorial corner tag hidden on mobile (less clutter) */
  .popular-route-card__corner-tag { display: none; }
}

/* ── Responsive — Hero / Base strip ──
   (popular-routes responsive rules live inside the
    POPULAR ROUTES section above) */
@media (max-width: 860px) {
  /* Hero */
  .solutions-index-hero { padding: 48px 0 0; }
  .solutions-index-hero::after { display: none; }
  .solutions-index-hero__grid {
    grid-template-columns: 1fr;
    gap: 0;
    min-height: clamp(210px, 40vw, 260px);
  }
  .solutions-index-hero__copy {
    max-width: none;
    padding-right: 0;
  }
  .solutions-index-lede{
    font-size:0.88rem;
  }
  .solutions-index-hero__visual {
    display: block;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    padding-top: 0;
    opacity: 0.12;
  }
  .solutions-index-hero__visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: right center;
    transform: none;
    filter: none;
  }
  .solutions-index-hero__cards { margin-top: 24px; }
  .solutions-index-hero__shelf { margin-top: 0; padding: 24px 0 36px; }

  /* Base strip — horizontal scroll, fixed-width items */
  .solutions-base-strip {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-radius: var(--r);
  }
  .solutions-base-strip::-webkit-scrollbar { display: none; }
  .solutions-base-item {
    flex: 0 0 120px;
    padding: 22px 12px 18px;
  }
  .solutions-base-icon { width: 60px; height: 60px; }
  .solutions-base-icon svg { width: 26px; height: 26px; }

}

/* ── Solutions quick access (hero bottom strip) ── */
.solutions-index-hero__cards {
  border-top: 1px solid var(--line2);
  padding: 24px 0 32px;
  margin-top: 48px;
}
.solutions-quick-access__grid {
  display: flex;
  gap: 12px;
}
.solutions-quick-access__card {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line3);
  border-radius: var(--r);
  box-shadow: 0 1px 4px var(--shadow-soft);
  color: var(--text2);
  text-decoration: none;
  white-space: nowrap;
  transition: border-color var(--tr), box-shadow var(--tr), color var(--tr);
}
.solutions-quick-access__card:hover {
  border-color: var(--line4);
  box-shadow: 0 2px 8px var(--shadow-med);
  color: var(--accent);
}
.solutions-quick-access__card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.solutions-quick-access__card-icon {
  display: flex;
  align-items: center;
  width: 18px;
  height: 18px;
  color: var(--accent);
  opacity: 0.8;
  flex-shrink: 0;
}
.solutions-quick-access__card-icon svg {
  width: 18px;
  height: 18px;
}
.solutions-quick-access__card-label {
  font-family: var(--sans);
  font-size: 0.83rem;
  font-weight: 400;
}
@media (max-width: 860px) {
  .solutions-quick-access__grid {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }
  .solutions-quick-access__grid::-webkit-scrollbar { display: none; }
  .solutions-quick-access__card {
    flex: 0 0 auto;
  }
}

/* ── Mobile visual hierarchy (≤ 767px) ── */
@media (max-width: 767px) {
  /* Cap popular-routes-title below hero title at upper mobile range.
     860px block peaks at 2.25rem at 767px; hero title is 2.205rem there. */
  .popular-routes-title {
    font-size: clamp(1.65rem, 5.2vw, 1.85rem);
  }
}
