/* Salir juntos en Recorrer (js/juntos.js; RECORRER-JUNTOS.md, PR A, 2026-11-04; mockup recorrer-salir-juntos.html).
   Todo cuelga de las variables de la piel. El color por persona (data-color 0 a 9) es la excepción deliberada, como el color del
   barrio en Pintar: sirve para saber quién es quién en el mapa y en la lista. Nada por debajo de 12 px. */

.jt-ava { --jt-c: var(--acc); width: 34px; height: 34px; border-radius: 50%; background: var(--jt-c); color: #fff; display: inline-grid; place-items: center;
  font-size: 12px; font-weight: 500; letter-spacing: .02em; flex: none; overflow: hidden; }
.jt-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jt-ava.chico { width: 26px; height: 26px; font-size: 12px; }
.jt-ava[data-color="0"], .jt-pin[data-color="0"] { --jt-c: #2E7BE8; }
.jt-ava[data-color="1"], .jt-pin[data-color="1"] { --jt-c: #8A5CD6; }
.jt-ava[data-color="2"], .jt-pin[data-color="2"] { --jt-c: #2A9D6F; }
.jt-ava[data-color="3"], .jt-pin[data-color="3"] { --jt-c: #D2477A; }
.jt-ava[data-color="4"], .jt-pin[data-color="4"] { --jt-c: #1496A6; }
.jt-ava[data-color="5"], .jt-pin[data-color="5"] { --jt-c: #B9791C; }
.jt-ava[data-color="6"], .jt-pin[data-color="6"] { --jt-c: #5C6BC0; }
.jt-ava[data-color="7"], .jt-pin[data-color="7"] { --jt-c: #7C8B2E; }
.jt-ava[data-color="8"], .jt-pin[data-color="8"] { --jt-c: #C2503A; }
.jt-ava[data-color="9"], .jt-pin[data-color="9"] { --jt-c: #5E6B73; }

/* ── La hoja Salir y A quién invitas ── */
.jt-grupo { margin-top: 16px; }
.jt-et { display: block; font-size: 12px; font-weight: 500; color: var(--muted); margin-bottom: 8px; }
.jt-et small { font-size: 12px; font-weight: 400; margin-left: 6px; }
.jt-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.jt-seg button, .jt-op { border: 1.5px solid var(--line); background: var(--surf); color: var(--ink); border-radius: var(--r-sm); font: inherit; cursor: pointer; }
.jt-seg button { min-height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 14px; font-weight: 500; padding: 8px 4px; }
.jt-seg button .pt-trazo { width: 22px; height: 22px; }
.jt-seg button[aria-checked="true"], .jt-op[aria-checked="true"] { border-color: var(--acc); background: color-mix(in srgb, var(--acc) 10%, var(--surf)); }
.jt-ops { display: flex; flex-direction: column; gap: 8px; }
.jt-op { display: flex; align-items: center; gap: 12px; text-align: left; padding: 10px 14px; min-height: 56px; width: 100%; }
.jt-op .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.jt-op .tx b { font-size: 15px; font-weight: 500; }
.jt-op .tx small { font-size: 12px; color: var(--muted); }
.jt-op .radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); flex: none; }
.jt-op[aria-checked="true"] .radio { border-color: var(--acc); background: radial-gradient(circle, var(--acc) 0 45%, transparent 50%); }
.jt-op[disabled] { opacity: .55; cursor: default; }
.jt-pronto { font-size: 12px; font-style: normal; font-weight: 500; color: var(--muted); background: var(--field); border-radius: 999px; padding: 2px 10px; }

.jt-amigos { display: flex; flex-direction: column; gap: 6px; max-height: 232px; overflow-y: auto; margin: 0 -2px; padding: 2px; }
.jt-amigo { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 6px 12px; border: 1.5px solid transparent; border-radius: var(--r-sm);
  background: var(--field); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.jt-amigo .nom { flex: 1; min-width: 0; font-size: 15px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jt-amigo .marca { width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--line); display: grid; place-items: center; flex: none; color: transparent; }
.jt-amigo .marca .trazo { width: 16px; height: 16px; stroke-width: 3; }
.jt-amigo[aria-checked="true"] { border-color: var(--acc); background: color-mix(in srgb, var(--acc) 10%, var(--surf)); }
.jt-amigo[aria-checked="true"] .marca { background: var(--acc); border-color: var(--acc); color: var(--acc-ink, #fff); }
.jt-amigo:disabled { opacity: .5; cursor: default; }

.jt-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.jt-chips button { min-height: 40px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surf); color: var(--ink); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.jt-chips button[aria-pressed="true"] { border-color: var(--acc); background: color-mix(in srgb, var(--acc) 10%, var(--surf)); }
.jt-otra { margin-top: 8px; width: 100%; min-height: 44px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--surf); color: var(--ink); font: inherit; font-size: 15px; padding: 0 12px; }
.jt-wa { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; min-height: 44px; border-radius: 999px; color: var(--ink); background: var(--field);
  font-size: 14px; font-weight: 500; text-decoration: none; text-align: center; padding: 8px 14px; }
.jt-wa .pt-trazo { width: 18px; height: 18px; }
.jt-vacio { font-size: 14px; color: var(--muted); line-height: 1.45; margin: 4px 0 0; }
.jt-vacio + .pt-boton { margin-top: 12px; }
.jt-atras { border: 0; background: none; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; padding: 4px 0; min-height: 32px; display: inline-flex; align-items: center; gap: 4px; }
.jt-atras .pt-trazo { width: 18px; height: 18px; }
.jt-cargando { text-align: center; padding: 28px 0; }

/* ── La invitación ── */
.jt-inv-quien { display: flex; align-items: center; gap: 12px; }
.jt-inv-quien .jt-ava { width: 44px; height: 44px; font-size: 15px; }
.jt-inv-datos { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.jt-inv-datos span { display: flex; align-items: center; gap: 8px; color: var(--ink); }
.jt-inv-datos .pt-trazo { width: 18px; height: 18px; color: var(--muted); flex: none; }
.jt-inv-van { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--field); }
.jt-inv-van .avas { display: flex; flex: none; }
.jt-inv-van .avas .jt-ava { margin-left: -8px; border: 2px solid var(--field); }
.jt-inv-van .avas .jt-ava:first-child { margin-left: 0; }
.jt-inv-van p { margin: 0; font-size: 13px; line-height: 1.4; }

/* ── La tarjeta de la junta en Recorrer ── */
.jt-tarj { margin-top: 10px; }
.jt-tarj-fila { display: flex; align-items: center; gap: 12px; }
.jt-tarj-fila .avas { display: flex; flex: none; }
.jt-tarj-fila .avas .jt-ava { margin-left: -8px; border: 2px solid var(--surf); width: 32px; height: 32px; }
.jt-tarj-fila .avas .jt-ava:first-child { margin-left: 0; }
.jt-tarj-fila .tx { min-width: 0; flex: 1; }
.jt-tarj-fila strong { display: block; font-size: 15px; font-weight: 500; line-height: 1.25; }
.jt-tarj-fila small { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ── La salida en vivo ── */
.jt-pin { --jt-c: var(--acc); width: 28px; height: 28px; border-radius: 50%; background: var(--jt-c); color: #fff; border: 3px solid var(--surf);
  box-shadow: 0 2px 8px rgba(0,0,0,.28); display: grid; place-items: center; font-size: 12px; font-weight: 500; letter-spacing: .02em; }
.jt-vivo { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); max-height: 34vh; overflow-y: auto; text-align: left; }
.jt-vivo:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.jt-pild { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 12px; border-radius: 999px; background: var(--ink); color: var(--surf); font-size: 13px; font-weight: 500; max-width: 100%; }
.jt-pild span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jt-lugar { font-size: 12px; color: var(--muted); margin: 8px 0 0; }
.jt-filas { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.jt-fila { display: flex; align-items: center; gap: 10px; }
.jt-fila .jt-ava { width: 30px; height: 30px; }
.jt-fila .tx { flex: 1; min-width: 0; }
.jt-vivo .jt-fila strong { display: inline; font-size: 14px; font-weight: 500; letter-spacing: 0; line-height: 1.2; }
.jt-vivo .jt-fila small { display: block; margin-top: 1px; font-size: 12px; color: var(--muted); }
.jt-partes { display: inline-flex; gap: 2px; flex: none; }
.jt-partes i { width: 7px; height: 14px; border-radius: 2px; background: var(--field); border: 1px solid var(--line); box-sizing: border-box; display: block; }
.jt-partes i.on { background: var(--acc); border-color: var(--acc); }
.jt-msgs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.jt-msgs button { min-height: 36px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--field); color: var(--ink); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; }
.jt-msgs button:disabled { opacity: .5; cursor: default; }

/* ── El resumen compartido ── */
.jt-res { padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.jt-res-cab { display: flex; align-items: center; gap: 12px; }
.jt-res-cab .avas { display: flex; flex: none; }
.jt-res-cab .avas .jt-ava { margin-left: -8px; border: 2px solid var(--surf); }
.jt-res-cab .avas .jt-ava:first-child { margin-left: 0; }
.jt-res-cab strong { display: block; font-size: 18px; font-weight: 500; line-height: 1.2; }
.jt-res-cab small { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.jt-res-filas { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.jt-res-fila { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.jt-res-fila .jt-ava { width: 28px; height: 28px; }
.jt-res-fila .nom { flex: 1; min-width: 0; font-weight: 500; }
.jt-res-fila small { font-size: 12px; color: var(--muted); text-align: right; }
.jt-res .pt-dos { margin-top: 12px; }
.jt-res .pt-boton { min-height: 44px; font-size: 14px; padding: 0 8px; }
