/* Recorrer unido, paso 5 "Pasos y reloj" (js/pasos.js, js/pasos-panel.js; RECORRER-UNIDO.md §5; mockup recorrer-retos-taxi.html, sección 07).
   Todo cuelga de clases ps-, que solo existen con la portada unida y el interruptor `recorrer.pasos`: apagado no cambia nada.
   Un solo acento; nada por debajo de 12 px. */

/* ── El anillo: pista gris y avance con el acento; la persona en el centro ── */
.ps-anillo { width: 64px; height: 64px; flex: none; }
.ps-anillo .ps-pista { fill: none; stroke: var(--line, #ECE7DD); stroke-width: 7; }
.ps-anillo .ps-avance { fill: none; stroke: var(--acc); stroke-width: 7; stroke-linecap: round; transition: stroke-dasharray .4s ease; }
.ps-anillo .ps-anillo-ic { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ps-fila-anillo { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.ps-fila-tx { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; text-align: left; }
.ps-fila-tx b { font-size: 16px; font-weight: 600; line-height: 1.25; color: var(--ink); }
.ps-fila-tx small { font-size: 12px; color: var(--muted); }
.ps-racha {
  font-style: normal; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px;
  background: color-mix(in srgb, var(--acc) 14%, transparent); color: var(--acc-osc, var(--ink));
}
.ps-chev { width: 18px; height: 18px; color: var(--muted2, var(--muted)); flex: none; }
.ps-ic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; background: color-mix(in srgb, var(--acc) 13%, transparent); color: var(--ink); }
.ps-ic .trazo { width: 20px; height: 20px; }

/* ── En la hoja Pasear: la tarjeta con el anillo o una fila que dice qué falta ── */
.ps-slot { margin: 0 0 12px; }
.ps-pasear {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 18px; border: 1px solid var(--line);
  background: var(--surf); color: var(--ink); font: inherit; cursor: pointer; text-align: left; box-sizing: border-box;
}
.ps-pasear.ps-cargando { height: 64px; cursor: default; background: color-mix(in srgb, var(--line) 45%, transparent); border-color: transparent; }
.ps-pasear .ps-fila-tx { flex: 1; }
.ps-pasear.ps-fila .ps-fila-tx b { font-size: 15px; font-weight: 500; }

/* ── Durante el paseo: pasos como un número más y el latido debajo ── */
.ps-vivo-celda b { font-variant-numeric: tabular-nums; }
.ps-latidos { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.ps-latidos .trazo { width: 16px; height: 16px; color: var(--ink); }

/* ── Al terminar ── */
.ps-res { margin: 4px 0 10px; }
.ps-res-fila { width: 100%; display: flex; align-items: center; padding: 0; border: 0; background: transparent; font: inherit; cursor: pointer; }
.ps-res-lat { display: flex; align-items: center; gap: 6px; margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.ps-res-lat b { color: var(--ink); font-weight: 600; font-size: 15px; }
.ps-res-lat .trazo { width: 16px; height: 16px; color: var(--ink); }

/* ── La pantalla "Pasos y latidos" ── */
.ps-hoja { display: flex; flex-direction: column; gap: 10px; }
.ps-fuente { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--surf); border: 1px solid var(--line); }
.ps-fuente-tx { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.ps-fuente-tx b { font-size: 15px; font-weight: 600; }
.ps-fuente-tx small { font-size: 13px; color: var(--muted); }
.ps-sw { position: relative; width: 50px; height: 30px; border-radius: 999px; border: 0; padding: 0; background: var(--line); cursor: pointer; flex: none; transition: background .2s; }
.ps-sw i { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.ps-sw.on { background: var(--acc); }
.ps-sw.on i { transform: translateX(20px); }
.ps-sw:disabled { opacity: .6; cursor: default; }
.ps-sw:focus-visible { outline: 3px solid var(--acc); outline-offset: 2px; }
.ps-et { margin: 8px 0 0; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.ps-lee { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ps-lee span { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 14px; background: var(--surf); border: 1px solid var(--line); font-size: 14px; }
.ps-lee b { font-weight: 500; }
.ps-lee .trazo { width: 18px; height: 18px; }
.ps-escudo { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; background: color-mix(in srgb, var(--acc) 9%, var(--surf)); font-size: 14px; line-height: 1.35; }
.ps-escudo b { font-weight: 600; }
.ps-p { margin: 0; font-size: 13px; line-height: 1.45; color: var(--muted); }
.ps-p b { color: var(--ink); font-weight: 600; }
.ps-mut { color: var(--muted); }
.ps-nob { color: var(--ink); }
.ps-msg { margin: 0 0 10px; padding: 10px 12px; border-radius: 14px; font-size: 13px; line-height: 1.4; background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--ink); }
.ps-msg.ok { background: color-mix(in srgb, var(--acc) 12%, transparent); }
.ps-aviso { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 16px; background: color-mix(in srgb, var(--acc) 10%, var(--surf)); font-size: 14px; line-height: 1.4; }
.ps-aviso b { font-size: 15px; font-weight: 600; }
.ps-reloj { border-top: 1px solid var(--line); padding-top: 8px; font-size: 13px; color: var(--muted); }
.ps-reloj summary { cursor: pointer; color: var(--ink); font-weight: 500; font-size: 14px; padding: 4px 0; }
.ps-reloj ul { margin: 6px 0 0; padding-left: 18px; line-height: 1.5; }
.ps-grande { padding: 4px 0; }
.ps-semana { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; height: 74px; align-items: end; }
.ps-semana li { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; height: 100%; }
.ps-semana li i { display: block; width: 100%; max-width: 26px; border-radius: 6px 6px 3px 3px; background: color-mix(in srgb, var(--ink) 16%, transparent); min-height: 3px; }
.ps-semana li.ok i { background: var(--acc); }
.ps-semana li small { font-size: 12px; color: var(--muted); text-transform: capitalize; }
.ps-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 4px; }
.ps-meta b { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ps-redondo { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surf); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.ps-redondo:disabled { opacity: .4; cursor: default; }
.ps-redondo .trazo { width: 20px; height: 20px; }
.ps-desc { margin-top: 6px; }

/* ── Reto de pasos en la ficha ── */
.ps-marca .trazo { width: 14px; height: 14px; }
.ps-ficha { margin: 4px 0 12px; display: flex; flex-direction: column; gap: 10px; }
.ps-ficha-que { margin: 0; font-size: 15px; font-weight: 600; color: var(--ink); }
.ps-avance-caja { padding: 10px 12px; border-radius: 16px; background: var(--surf); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.ps-avance-caja b { font-size: 14px; font-weight: 600; }
.ps-avance-caja small { font-size: 13px; color: var(--muted); }
.ps-dias { display: flex; flex-wrap: wrap; gap: 6px; }
.ps-dias i { width: 30px; height: 30px; border-radius: 50%; border: 2px dashed var(--line); display: grid; place-items: center; box-sizing: border-box; }
.ps-dias i.on { border: 0; background: var(--acc); color: var(--acc-ink, #fff); }
.ps-dias i .trazo { width: 16px; height: 16px; }
.ps-dejar { display: block; align-self: flex-start; padding: 4px 0; margin: 2px 0 0; background: transparent; border: 0; color: var(--muted); font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; }
.ps-ficha-nota { margin: 0 0 8px; font-size: 13px; color: var(--muted); text-align: center; }

/* ── Premios ── */
.ps-pr-pasos { width: 100%; }

/* ── Panel del negocio: el tipo de reto y los números del reto de pasos ── */
.ps-panel-tipo { display: flex; gap: 6px; padding: 4px; border-radius: 14px; background: color-mix(in srgb, var(--text-muted, #888) 12%, transparent); margin-bottom: 14px; }
.ps-panel-tipo button { flex: 1; min-height: 40px; border: 0; border-radius: 10px; background: transparent; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; color: inherit; }
.ps-panel-tipo button[aria-checked="true"] { background: var(--surf, #fff); box-shadow: 0 1px 4px rgba(0,0,0,.12); font-weight: 600; }
.ps-panel-campos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 8px; }
.ps-panel-campos .form-group { margin-bottom: 0; }
.ps-panel-nota { font-size: 13px; line-height: 1.45; margin: 0 0 12px; opacity: .8; }
.ps-panel-badge { font-size: 12px; font-weight: 500; margin-left: 6px; }
.ps-panel-cuenta { display: block; font-size: 13px; margin-top: 2px; opacity: .8; }
@media (max-width: 330px) { .ps-panel-campos { grid-template-columns: 1fr; } }
