/* JM Rutas v4 · Ruta Talento · solo composición (tokens de v4.css) */

/* Héroe: pensado primero para celular (llegan por QR) */
.rt-heroe .titular em { color: var(--cobre-claro); }
.rt-firma { margin-top: var(--e-5); font-size: var(--t-chico); color: var(--luz-suave); max-width: 34ch; }
@media (max-width: 767px) {
  .rt-heroe { min-height: 100svh; }
  .rt-heroe .acciones { flex-direction: column; align-items: flex-start; }
  .rt-heroe .boton { width: 100%; justify-content: center; }
}

/* KM 01 · pasos numerados dentro de la lista de ruta */
.rt-pasos { counter-reset: rt; }
.rt-pasos li { counter-increment: rt; }
.rt-pasos li::before { content: counter(rt, decimal-leading-zero); width: auto; height: auto; margin-top: .1rem; border: 0; border-radius: 0; color: var(--acento); font-weight: 800; font-size: .875rem; font-variant-numeric: tabular-nums; }
.rt-fecha { display: flex; align-items: baseline; gap: var(--e-4); margin-top: var(--e-7); padding-top: var(--e-5); border-top: 2px solid var(--tinta); }
.rt-fecha__valor { font-size: clamp(3rem, 2rem + 3.5vw, 4.5rem); font-weight: 800; letter-spacing: -.05em; line-height: .9; }
.rt-fecha__valor small { font-size: .38em; letter-spacing: .02em; text-transform: uppercase; color: var(--acento); }
.rt-fecha__texto { font-weight: 600; max-width: 22ch; }
.rt-fecha__texto .dato { display: block; margin-top: var(--e-2); }
.rt-fecha.is-pasada { display: none; }

/* KM 02 · Encuentra tu ruta (diagnóstico corto) */
.rt-diag-rejilla { display: grid; gap: var(--e-7); }
@media (min-width: 960px) { .rt-diag-rejilla { grid-template-columns: 5fr 7fr; gap: var(--e-9); align-items: start; } }
.rt-diag { background: var(--piedra-claro); padding: clamp(1.25rem, 1rem + 2vw, 2.5rem); border-top: 3px solid var(--cobre); min-height: 19rem; }
.rt-diag__ruta { position: relative; display: flex; justify-content: space-between; margin-bottom: var(--e-6); max-width: 14rem; }
.rt-diag__ruta i { position: absolute; left: 1rem; right: 1rem; top: 50%; height: 2px; background: var(--linea); }
.rt-diag__ruta i::after { content: ""; position: absolute; inset: 0; transform-origin: left; transform: scaleX(var(--p, 0)); background: var(--cobre); transition: transform var(--dur) var(--curva); }
.rt-diag__ruta span { position: relative; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; border: 2px solid var(--linea); background: var(--piedra-claro); font-size: .8125rem; font-weight: 800; color: var(--suave); transition: border-color .2s, background-color .2s, color .2s; }
.rt-diag__ruta span.is-actual { border-color: var(--cobre); color: var(--tinta); }
.rt-diag__ruta span.is-hecho { background: var(--tinta); border-color: var(--tinta); color: var(--luz); }
.rt-diag__p { border: 0; margin: 0; padding: 0; min-width: 0; }
.rt-diag__p + .rt-diag__p { margin-top: var(--e-6); }
.js .rt-diag__p + .rt-diag__p { margin-top: 0; }
.rt-diag__p legend { font-size: var(--t-s); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin-bottom: var(--e-5); padding: 0; }
.rt-diag__p legend:focus { outline: none; }
.rt-diag__p.is-entrando { animation: rt-entra .35s var(--curva) both; }
@keyframes rt-entra { from { opacity: 0; transform: translateX(1rem); } }
.rt-diag__error { margin-top: var(--e-4); color: var(--acento); font-weight: 700; font-size: var(--t-chico); }
.rt-diag__acciones { display: flex; justify-content: space-between; align-items: center; gap: var(--e-4); margin-top: var(--e-7); }
.rt-diag__acciones [data-diag-sig] { margin-left: auto; }
.rt-diag button.enlace { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.rt-res .dato { color: var(--acento); }
.rt-res__t { font-size: var(--t-m); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; margin-top: var(--e-3); }
.rt-res__t:focus { outline: none; }
.rt-res__b { margin-top: var(--e-4); max-width: 48ch; }
.rt-res__op { list-style: none; padding: 0; margin: var(--e-6) 0; border-top: 1px solid var(--linea); }
.rt-res__op li { padding-block: var(--e-4); border-bottom: 1px solid var(--linea); }
.rt-res__op a { font-weight: 700; color: inherit; text-underline-offset: .2em; }
.rt-res__op span { display: block; color: var(--suave); font-size: .9375rem; margin-top: var(--e-1); }
.rt-res .acciones { align-items: center; }

/* KM 03 · Tus datos: foto y promesas */
.rt-datos { display: grid; gap: var(--e-7); }
.rt-datos__foto { aspect-ratio: 4 / 3; overflow: hidden; margin-inline: calc(var(--canal) * -1); }
.rt-datos__foto img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
@media (min-width: 960px) {
  .rt-datos { grid-template-columns: 6fr 5fr; gap: var(--e-9); align-items: center; }
  .rt-datos__foto { aspect-ratio: 5 / 6; margin-inline: 0; }
}
.rt-promesas { list-style: none; padding: 0; margin: var(--e-7) 0 0; }
.rt-promesas li { position: relative; padding: var(--e-4) 0 var(--e-4) var(--e-6); border-top: 1px solid var(--linea); color: var(--suave); }
.rt-promesas li::before { content: ""; position: absolute; left: 0; top: 1.45em; width: .9rem; height: 2px; background: var(--cobre-claro); }
.rt-promesas b { display: block; color: var(--luz); font-size: 1.125rem; }

/* KM 06 · Banda de impacto */
.rt-banda .titular { color: var(--luz); }
.rt-contexto { margin-top: var(--e-6); font-size: clamp(1.125rem, 1rem + .8vw, 1.5rem); line-height: 1.35; color: var(--luz); max-width: 30ch; }
.rt-contexto b { display: block; font-size: clamp(3.5rem, 2rem + 6vw, 7rem); line-height: .9; letter-spacing: -.05em; color: var(--cobre-claro); font-weight: 800; }
.rt-contexto b + b, .rt-contexto b:last-child { display: inline; font-size: 1em; letter-spacing: 0; color: var(--luz); }
.rt-fuente { margin-top: var(--e-4); }
.rt-nota { margin-bottom: var(--e-7); color: var(--suave); max-width: 46ch; }

/* KM 07 · Sostenible */
.rt-sost { display: grid; gap: var(--e-8); }
@media (min-width: 960px) { .rt-sost { grid-template-columns: 7fr 4fr; gap: var(--e-9); align-items: center; } }
.rt-aporte { margin-top: var(--e-7); padding-top: var(--e-5); border-top: 2px solid var(--tinta); }
.rt-aporte .rt-moneda { margin: 0 .15em 0 0; }
.rt-aporte .cifra__texto { margin-top: var(--e-3); }
.rt-aporte .estado { margin-top: var(--e-3); }
.rt-sost__foto .foto-placeholder { max-width: 24rem; }

/* Cierre */
.rt + .pie, .cierre .titular { text-wrap: balance; }
.no-js .rt-diag__acciones { display: none; }
@media (max-width: 959px) { .rt-sost__foto .foto-placeholder { aspect-ratio: 16 / 9; max-width: none; } }
.rt-aporte .cifra__valor small.rt-moneda { display: inline; margin: 0 .15em 0 0; }
