/* ═══════════════════════════════════════════════════════════════════
   RUTA SMART · experiencia de scroll (rail sticky con kilómetros)
   Replica el mockup de referencia, con el sistema de marca de Smartecnia.
   ═══════════════════════════════════════════════════════════════════ */

/* ── Hero navy ────────────────────────────────────────────────── */
.rhero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: calc(var(--nav-h) + var(--space-8)) var(--space-5) var(--space-9);
  position: relative;
  color: #fff;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(40,122,237,0.38), transparent 60%),
    var(--navy);
}

/* Pastillas del logo que "respiran" — el rayo/chispa de la marca */
.rhero__pills { display: flex; gap: 10px; margin-bottom: var(--space-6); }
.rhero__pills span {
  width: 14px; height: 34px;
  border-radius: 20px;
  animation: bob 2.4s var(--ease-soft) infinite;
}
.rhero__pills span:nth-child(1) { background: var(--chispa-roja);  animation-delay: 0s; }
.rhero__pills span:nth-child(2) { background: var(--chispa-oro);   animation-delay: .2s; }
.rhero__pills span:nth-child(3) { background: var(--chispa-verde); animation-delay: .4s; }
.rhero__pills span:nth-child(4) { background: var(--azul);         animation-delay: .6s; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.rhero__title {
  font-size: clamp(2rem, 5.4vw, 4rem);
  line-height: 1.05;
  max-width: 16ch;
  margin-bottom: var(--space-5);
}
.rhero__title em { font-style: normal; color: var(--chispa-oro); }
.rhero__sub {
  color: rgba(255,255,255,0.8);
  font-size: var(--text-lg);
  max-width: 52ch;
  margin-bottom: var(--space-6);
}
.rhero__actions { display: flex; gap: var(--space-3); flex-wrap: wrap; justify-content: center; }
.rhero__hint {
  position: absolute;
  inset-block-end: var(--space-5);
  color: var(--ink-mute);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: bob 2s infinite;
}

.rintro .h-lead { text-wrap: balance; }

/* ── La ruta: rail sticky + pasos ─────────────────────────────── */
.ruta { position: relative; background: var(--bg); }

.rail {
  position: sticky;
  inset-block-start: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  pointer-events: none;
  z-index: 5;
}
.rail__inner {
  position: absolute;
  inset-inline-start: clamp(16px, 4vw, 48px);
  inset-block-start: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.rail__dot {
  display: flex;
  align-items: center;
  gap: 14px;
  opacity: 0.35;
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.rail__pill {
  width: 16px; height: 26px;
  border-radius: 16px;
  background: #c9d2e0;
  transition: height 0.4s var(--ease-out), background-color 0.4s var(--ease-out),
              box-shadow 0.4s var(--ease-out);
  flex: none;
}
.rail__lbl {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-mute);
  white-space: nowrap;
  transition: color 0.4s var(--ease-out), font-size 0.4s var(--ease-out);
}
.rail__dot.is-active { opacity: 1; transform: translateX(6px); }
.rail__dot.is-active .rail__pill { height: 40px; box-shadow: 0 6px 16px rgba(10,21,38,0.18); }
.rail__dot.is-active .rail__lbl { color: var(--ink); font-size: 14px; }
/* Cada kilómetro se ilumina en su color de marca */
.rail__dot[data-c="0"].is-active .rail__pill { background: #6b7a90; }
.rail__dot[data-c="1"].is-active .rail__pill { background: var(--chispa-roja); }
.rail__dot[data-c="2"].is-active .rail__pill { background: var(--chispa-oro); }
.rail__dot[data-c="3"].is-active .rail__pill { background: var(--azul); }
.rail__dot[data-c="4"].is-active .rail__pill { background: var(--chispa-verde); }
.rail__dot[data-c="5"].is-active .rail__pill { background: var(--navy); }

/* Los pasos se solapan con el rail: el rail va sticky y los pasos scrollean */
.steps {
  position: relative;
  margin-block-start: -100vh;
  padding: 0;
  list-style: none;
  counter-reset: none;
}
.step {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 8vw 0 clamp(84px, 18vw, 240px);
  position: relative;
}
.step__num {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 14vw, 10rem);
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.04em;
  opacity: 0.08;
  position: absolute;
  inset-inline-end: 6vw;
  inset-block-start: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}
.step__content { max-width: 600px; }
.step__kicker {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}
.step__title {
  font-size: clamp(1.9rem, 5vw, 3.25rem);
  letter-spacing: -0.025em;
  margin-bottom: var(--space-1);
}
.step__sub {
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--ink-mute);
  margin-bottom: var(--space-4);
}
.step__text {
  font-size: var(--text-base);
  color: var(--ink-soft);
  line-height: 1.65;
  max-width: 46ch;
}
.step__text + .step__text { margin-top: var(--space-3); }
.step__svc {
  display: inline-block;
  margin-top: var(--space-5);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-2) var(--space-4);
  border-radius: 999px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}
/* Color de acento por paso, en marca */
.step--0 .step__kicker, .step--0 .step__svc { color: #6b7a90; }
.step--1 .step__kicker, .step--1 .step__svc { color: var(--chispa-roja); }
.step--2 .step__kicker, .step--2 .step__svc { color: #b9861a; }
.step--3 .step__kicker, .step--3 .step__svc { color: var(--azul); }
.step--4 .step__kicker, .step--4 .step__svc { color: var(--chispa-verde); }
.step--5 .step__kicker, .step--5 .step__svc { color: var(--navy); }

/* ── Dos formas de recorrerla ─────────────────────────────────── */
.twoways {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  margin-top: var(--space-6);
}
.twoways__card {
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}
.twoways__card h3 { font-size: var(--text-lg); margin-bottom: var(--space-3); }
.twoways__card p { color: var(--ink-soft); font-size: var(--text-sm); }
/* Antes mostraba precio ("Desde USD 1.500" / "Cotizable según tu caso")
   — cada proyecto es distinto, así que ahora manda directo a cotizar
   en vez de anclar una cifra que no aplica parejo a todos los casos. */
.twoways__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--space-4);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--azul);
  text-decoration: none;
}
.twoways__cta .arrow { display: inline-block; transition: transform 200ms var(--ease-out); }
.twoways__cta:hover .arrow { transform: translateX(3px); }
@media (max-width: 720px) { .twoways { grid-template-columns: 1fr; } }

/* ── FAQ ──────────────────────────────────────────────────────── */
.faq { margin-top: var(--space-6); }
.faq__item {
  border-bottom: 1px solid var(--line);
  padding: var(--space-4) 0;
}
.faq__item summary {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-lg);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  font-weight: 400;
  color: var(--azul);
  font-size: var(--text-2xl);
  line-height: 1;
  transition: transform 240ms var(--ease-out);
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p {
  margin-top: var(--space-3);
  color: var(--ink-soft);
  font-size: var(--text-base);
  max-width: 62ch;
}
.faq__item a { color: var(--azul); font-weight: 600; }

/* En móvil el rail se simplifica: solo las pastillas, sin etiquetas. */
@media (max-width: 720px) {
  .rail__lbl { display: none; }
  .rail__inner { inset-inline-start: 16px; }
}

/* Reduce-motion: las pastillas dejan de respirar. */
@media (prefers-reduced-motion: reduce) {
  .rhero__pills span, .rhero__hint { animation: none; }
}
