/* ============================================================
   DANGOFE OS · Portal del técnico de SERVICIOS · «Tu ruta de hoy» (2026-10-15)
   Tres versiones (data-tr): A · Pista · B · Baraja · C · Línea del día. Liquid glass, sin sombras en claro, «Noche azul»
   en oscuro, sobre la foto de fondo. Entrada en 3D (perspectiva, giro y profundidad, escalonada por --i); se respeta
   prefers-reduced-motion. Mobile-first. Los botones conservan las clases que ya usa el portal (.ptx-waze__btn…).
   ============================================================ */
.tr {
  --tr-az: 3, 38, 155; --tr-azul: #03269b; --tr-cel: 51, 204, 255; --tr-ver: 22, 163, 74; --tr-amb: 217, 119, 6; --tr-roj: 220, 38, 38; --tr-wa: 37, 211, 102;
  --tr-txt: #0b1540; --tr-txt2: #3b4a7a; --tr-txt3: #6b7aa6;
  --tr-card: rgba(255, 255, 255, .62); --tr-card2: rgba(255, 255, 255, .80); --tr-suave: rgba(255, 255, 255, .55); --tr-borde: rgba(255, 255, 255, .75); --tr-borde2: rgba(3, 38, 155, .18);
  --tr-blur: 18px; --tr-r: 22px;
  position: relative; display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 620px; margin: 0 auto; color: var(--tr-txt);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif; perspective: 1200px; perspective-origin: 50% 0;
}
html[data-theme='dark'] .tr, [data-tono='medianoche'] .tr, .tr.is-noche {
  --tr-azul: #2f6df6; --tr-az: 96, 165, 250; --tr-txt: #eef2ff; --tr-txt2: #b7c3ea; --tr-txt3: #8a98c9;
  --tr-card: rgba(12, 22, 64, .62); --tr-card2: rgba(18, 30, 84, .78); --tr-suave: rgba(255, 255, 255, .06); --tr-borde: rgba(140, 170, 255, .26); --tr-borde2: rgba(140, 170, 255, .40);
  --tr-ver: 74, 222, 128; --tr-amb: 251, 191, 36; --tr-rojt: 252, 165, 165;
}
.tr *, .tr *::before, .tr *::after { box-sizing: border-box; }
.tr svg { width: 1em; height: 1em; vertical-align: -.15em; }
/* ---------- piezas de cristal ---------- */
.tr-cab, .tr-sig, .tr-card, .tr-nodo__txt, .tr-par, .tr-hechas, .tr-aviso, .tr-road, .tr-ver, .tr-todo { border: 1px solid var(--tr-borde); background: var(--tr-card); -webkit-backdrop-filter: blur(var(--tr-blur)); backdrop-filter: blur(var(--tr-blur)); border-radius: var(--tr-r); }
/* ---------- la cabecera: anillo, resumen y pasos ---------- */
.tr-cab { display: grid; grid-template-columns: 64px minmax(0, 1fr); grid-template-areas: "aro txt" "pasos pasos"; gap: 10px 14px; align-items: center; padding: 14px 16px 12px; }
.tr-aro { grid-area: aro; position: relative; width: 64px; height: 64px; }
.tr-aro svg { position: absolute; inset: 0; width: 64px; height: 64px; transform: rotate(-90deg); }
.tr-aro__f { fill: none; stroke: rgba(var(--tr-az), .14); stroke-width: 6; }
.tr-aro__v { fill: none; stroke: rgb(var(--tr-ver)); stroke-width: 6; stroke-linecap: round; transition: stroke-dashoffset 1s cubic-bezier(.2, .8, .2, 1); }
.tr-aro b { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; line-height: 1; font-size: 19px; font-weight: 800; color: var(--tr-txt); font-variant-numeric: tabular-nums; }
.tr-aro b small { font-size: 9.5px; font-weight: 700; letter-spacing: .04em; color: var(--tr-txt3); margin: 0; }
.tr-cab__txt { grid-area: txt; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tr-cab__txt small { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--tr-txt3); }
.tr-cab__txt b { font-size: 19px; font-weight: 800; line-height: 1.15; }
.tr-cab__txt span { font-size: 12.5px; color: var(--tr-txt2); }
.tr-pasos { grid-area: pasos; display: flex; gap: 5px; }
.tr-pasos i { flex: 1 1 0; height: 6px; border-radius: 999px; background: rgba(var(--tr-az), .14); }
.tr-pasos i.is-hecha { background: rgb(var(--tr-ver)); }
.tr-pasos i.is-sig { background: var(--tr-azul); animation: tr-late 1.6s ease-in-out infinite; }
@keyframes tr-late { 50% { opacity: .45; } }
/* ---------- aviso ---------- */
.tr-aviso { display: flex; gap: 8px; align-items: flex-start; padding: 10px 14px; font-size: 13.5px; line-height: 1.35; border-color: rgba(var(--tr-amb), .55); background: rgba(var(--tr-amb), .12); }
.tr-aviso svg { flex: none; margin-top: 2px; color: rgb(var(--tr-amb)); }
.tr-aviso.is-mal { border-color: rgba(var(--tr-roj), .55); background: rgba(var(--tr-roj), .12); }
.tr-aviso.is-mal svg { color: rgb(var(--tr-roj)); }
/* ---------- la tarjeta de la parada que sigue ---------- */
.tr-sig { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; }
.tr-sig__cab { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tr-sig__rot { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--tr-azul); }
.tr-sig__rot svg { width: 14px; height: 14px; }
.tr-sig__reloj { font-size: 13px; font-weight: 800; color: rgb(var(--tr-ver)); font-variant-numeric: tabular-nums; }
.tr-sig__cli { margin: 2px 0 0; font-size: 28px; font-weight: 800; line-height: 1.1; letter-spacing: -.01em; overflow-wrap: anywhere; }
.tr-sig__eq { margin: 0; font-size: 13.5px; font-weight: 600; color: var(--tr-txt3); }
.tr-sig__dir { margin: 0; display: flex; gap: 6px; align-items: flex-start; font-size: 15px; color: var(--tr-txt2); line-height: 1.3; overflow-wrap: anywhere; }
.tr-sig__dir svg { flex: none; margin-top: 3px; color: var(--tr-azul); }
.tr-sig__prob { margin: 0; display: flex; gap: 6px; align-items: flex-start; font-size: 13.5px; color: var(--tr-txt2); }
.tr-sig__prob svg { flex: none; margin-top: 2px; color: var(--tr-txt3); }
.tr-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.tr-chips span { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--tr-txt2); background: var(--tr-suave); border: 1px solid var(--tr-borde); }
.tr-chips span b { font-weight: 800; color: var(--tr-txt); }
.tr-chips .tr-chip--cita { background: rgba(var(--tr-amb), .14); border-color: rgba(var(--tr-amb), .45); color: var(--tr-txt); }
.tr-chips .tr-chip--tarde { background: rgba(var(--tr-roj), .12); border-color: rgba(var(--tr-roj), .45); color: rgb(var(--tr-roj)); font-weight: 800; }
.tr-chips svg { width: 13px; height: 13px; }
/* v1.5 · cuándo salir (la misma hora que el bloqueo «Ya debías salir»): se pinta solo en la tarjeta de la parada que sigue */
.tr-sal { margin: 2px 0 0; display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 16px; border: 1px solid rgba(var(--tr-az), .30); background: rgba(var(--tr-az), .09); }
.tr-sal__ic { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--tr-azul); }
.tr-sal__ic svg { width: 18px; height: 18px; }
.tr-sal__t { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.tr-sal__t b { font-size: 16px; font-weight: 800; line-height: 1.2; color: var(--tr-txt); font-variant-numeric: tabular-nums; }
.tr-sal__t small { font-size: 12.5px; font-weight: 600; line-height: 1.3; color: var(--tr-txt2); overflow-wrap: anywhere; }
.tr-sal.is-tarde { border-color: rgba(var(--tr-roj), .55); background: rgba(var(--tr-roj), .10); }
.tr-sal.is-tarde .tr-sal__ic { background: rgb(var(--tr-roj)); }
.tr-sal.is-tarde .tr-sal__t b { color: rgb(var(--tr-rojt, var(--tr-roj))); }
.tr-nav, .tr-acc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
/* botones: cristal, pastilla; Waze celeste, WhatsApp verde, acción principal azul (o verde al culminar) */
.tr .tr-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; flex: 1 1 auto; min-height: 44px; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--tr-borde2); background: var(--tr-card2); color: var(--tr-txt); font: inherit; font-size: 14.5px; font-weight: 800; text-decoration: none; cursor: pointer; transition: transform .25s, background .25s, border-color .25s; -webkit-backdrop-filter: blur(var(--tr-blur)); backdrop-filter: blur(var(--tr-blur)); }
.tr .tr-btn:hover { transform: translateY(-2px); }
.tr .tr-btn:disabled { opacity: .6; cursor: default; transform: none; }
.tr .tr-btn svg { width: 17px; height: 17px; }
.tr .tr-btn--waze { background: rgb(var(--tr-cel)); border-color: transparent; color: #062030; }
.tr .tr-btn--maps { }
.tr .tr-btn--tel { flex: 0 1 auto; }
.tr .tr-btn--primaria { flex: 1 1 100%; min-height: 54px; font-size: 17px; background: var(--tr-azul); border-color: transparent; color: #fff; }
.tr .tr-btn--primaria.tr-btn--hecho { background: rgb(var(--tr-ver)); color: #052e16; }
html[data-theme='dark'] .tr .tr-btn--primaria.tr-btn--hecho, .tr.is-noche .tr-btn--primaria.tr-btn--hecho { color: #04200f; }
.tr .tr-btn--wa { flex: 1 1 100%; background: rgb(var(--tr-wa)); border-color: transparent; color: #052e16; }
.tr .tr-btn--wa.is-destacado { outline: 3px solid rgba(var(--tr-wa), .35); outline-offset: 2px; }
/* ---------- la lista de paradas (A plegada, B y C a su modo) ---------- */
.tr-par { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; list-style: none; }
.tr-par__n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 12.5px; font-weight: 800; background: rgba(var(--tr-az), .12); color: var(--tr-azul); }
.tr-par.is-hecha .tr-par__n { background: rgb(var(--tr-ver)); color: #fff; }
.tr-par.is-sig .tr-par__n { background: var(--tr-azul); color: #fff; }
.tr-par.is-aviso .tr-par__n { background: rgba(var(--tr-amb), .2); color: rgb(var(--tr-amb)); }
.tr-par__txt { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.tr-par__txt b { font-size: 14.5px; font-weight: 800; }
.tr-par__txt small { font-size: 12px; color: var(--tr-txt2); overflow-wrap: anywhere; }
.tr-par__hora { color: var(--tr-txt3); }
.tr-par.is-hecha .tr-par__txt b { color: var(--tr-txt2); }
.tr-mini { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--tr-borde2); background: var(--tr-card2); color: var(--tr-azul); text-decoration: none; }
.tr-mini svg { width: 16px; height: 16px; }
.tr-mini--wa { color: #15803d; border-color: rgba(var(--tr-wa), .55); }
html[data-theme='dark'] .tr-mini--wa, .tr.is-noche .tr-mini--wa { color: #86efac; }
.tr-ver, .tr-todo { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 42px; padding: 9px 14px; font: inherit; font-size: 13.5px; font-weight: 800; color: var(--tr-azul); text-decoration: none; cursor: pointer; }
.tr-ver svg, .tr-todo svg { width: 15px; height: 15px; }
.tr-paradas { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.tr-lista { display: none; flex-direction: column; gap: 8px; }
.tr-lista.is-abierta { display: flex; }
/* ---------- A · Pista ---------- */
.tr-road { position: relative; height: 54px; padding: 0 22px; }
.tr-road__linea { position: absolute; left: 30px; right: 30px; top: 25px; height: 4px; border-radius: 999px; background: rgba(var(--tr-az), .14); overflow: hidden; }
.tr-road__avance { display: block; height: 100%; background: rgb(var(--tr-ver)); border-radius: 999px; transition: width 1s cubic-bezier(.2, .8, .2, 1); }
.tr-road__pt { position: absolute; top: 27px; transform: translate(-50%, -50%); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 10.5px; font-weight: 800; background: var(--tr-card2); border: 2px solid rgba(var(--tr-az), .25); color: var(--tr-txt2); }
.tr-road__pt svg { width: 11px; height: 11px; }
.tr-road__pt.is-hecha { background: rgb(var(--tr-ver)); border-color: rgb(var(--tr-ver)); color: #fff; }
.tr-road__pt.is-sig { background: var(--tr-azul); border-color: var(--tr-azul); color: #fff; transform: translate(-50%, -50%) scale(1.15); }
.tr-road__pt--base { border-color: var(--tr-azul); color: var(--tr-azul); }
.tr-road__pt--base.is-llego { background: rgb(var(--tr-ver)); border-color: rgb(var(--tr-ver)); color: #fff; }
.tr-road__pt { left: calc(30px + (100% - 60px) * var(--p, 0)); }
.tr-road__camion { position: absolute; top: 4px; left: calc(30px + (100% - 60px) * var(--p, 0)); transform: translateX(-50%); width: 28px; height: 20px; display: grid; place-items: center; color: var(--tr-azul); transition: left 1s cubic-bezier(.2, .8, .2, 1); }
.tr-road__camion svg { width: 20px; height: 20px; }
/* ---------- B · Baraja ---------- */
.tr-hechas { padding: 12px 14px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tr-hechas small { flex: 1 1 100%; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--tr-txt3); }
.tr-hechas span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: rgba(var(--tr-ver), .12); color: var(--tr-txt); font-size: 13px; font-weight: 700; }
.tr-hechas span > svg { color: rgb(var(--tr-ver)); }
.tr-hechas .tr-mini { width: 28px; height: 28px; }
/* ---------- C · Línea del día ---------- */
.tr-linea { list-style: none; margin: 0; padding: 0 0 0 4px; position: relative; display: flex; flex-direction: column; gap: 10px; }
.tr-linea::before { content: ''; position: absolute; left: 20px; top: 24px; bottom: 24px; width: 3px; border-radius: 999px; background: rgba(var(--tr-az), .18); transform-origin: 50% 0; animation: tr-traza .9s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes tr-traza { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.tr-nodo { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: start; }
.tr-nodo__pt { position: relative; z-index: 1; width: 34px; height: 34px; margin-top: 10px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; background: var(--tr-card2); border: 2px solid rgba(var(--tr-az), .25); color: var(--tr-txt2); }
.tr-nodo__pt svg { width: 15px; height: 15px; }
.tr-nodo.is-hecha .tr-nodo__pt { background: rgb(var(--tr-ver)); border-color: rgb(var(--tr-ver)); color: #fff; }
.tr-nodo.is-sig .tr-nodo__pt { background: var(--tr-azul); border-color: var(--tr-azul); color: #fff; }
.tr-nodo--base .tr-nodo__pt { border-color: var(--tr-azul); color: var(--tr-azul); }
.tr-nodo__txt { padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tr-nodo__txt b { font-size: 15px; font-weight: 800; }
.tr-nodo__txt small { font-size: 12.5px; color: var(--tr-txt2); overflow-wrap: anywhere; }
.tr-nodo.is-hecha .tr-nodo__txt { opacity: .78; }
.tr-nodo--base .tr-nodo__txt { background: var(--tr-suave); }
.tr-nodo__nav { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tr-nodo__nav .tr-btn { min-height: 36px; padding: 6px 12px; font-size: 13px; flex: 0 1 auto; }
.tr-nodo__nav .tr-btn svg { width: 14px; height: 14px; }
.tr-nodo .tr-mini--wa { display: inline-flex; align-items: center; width: auto; height: 32px; padding: 0 12px; border-radius: 999px; gap: 6px; font-size: 12.5px; font-weight: 800; margin-top: 6px; justify-self: start; }
.tr-nodo.is-sig .tr-sig { width: 100%; }
/* ---------- ENTRADA EN 3D (cada versión con su gesto) ---------- */
.tr--entra.tr--A > *, .tr--entra.tr--C > * { animation: tr-entra-a .8s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * .09s); }
@keyframes tr-entra-a { from { opacity: 0; transform: rotateX(22deg) translateY(28px) translateZ(-160px); filter: blur(8px); } 60% { filter: blur(0); } to { opacity: 1; transform: none; filter: blur(0); } }
.tr--entra.tr--A .tr-par, .tr--entra.tr--C .tr-nodo { animation: tr-entra-c .7s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * .08s); }
@keyframes tr-entra-c { from { opacity: 0; transform: rotateX(-18deg) translateX(-18px) translateZ(-120px); } to { opacity: 1; transform: none; } }
.tr--entra .tr-aro__v { animation: tr-aro 1.2s cubic-bezier(.2, .8, .2, 1) both .3s; }
@keyframes tr-aro { from { stroke-dashoffset: 163.4; } }
@media (prefers-reduced-motion: reduce) { .tr *, .tr *::before { animation: none !important; transition: none !important; } }
/* ---------- pantallas ---------- */
@media (max-width: 400px) {
  .tr-sig__cli { font-size: 24px; }
  .tr .tr-btn { font-size: 13.5px; padding: 9px 12px; }
  .tr .tr-btn--primaria { font-size: 16px; }
}
@media (min-width: 700px) {
  .tr { max-width: 680px; }
  .tr--C .tr-linea { padding-left: 8px; }
}

/* ============================================================
   v1.1 (22-oct) · el cobro de la parada: «Cobrar RD$ 2,500.00 · Efectivo» (verde = dinero; en la que está en servicio, más fuerte)
   ============================================================ */
.tr-cobro { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; min-width: 0; padding: 9px 12px; border-radius: 16px; border: 1px solid rgba(var(--tr-ver), .5); background: rgba(var(--tr-ver), .12); color: var(--tr-txt); }
.tr-cobro__ico { flex: none; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgb(var(--tr-ver)); color: #052e16; }
.tr-cobro__ico svg { width: 19px; height: 19px; }
.tr-cobro__txt { flex: 1 1 132px; min-width: min-content; display: flex; flex-direction: column; gap: 1px; line-height: 1.15; }
.tr-cobro__txt small { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--tr-txt3); }
.tr-cobro__txt b { font-size: 22px; font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tr-cobro__forma { flex: none; max-width: 100%; margin-left: auto; display: inline-flex; align-items: center; padding: 6px 13px; border-radius: 999px; font-size: 13.5px; font-weight: 800; color: var(--tr-txt); background: var(--tr-card2); border: 1px solid rgba(var(--tr-ver), .6); overflow-wrap: anywhere; }
.tr-sig .tr-cobro { margin: 2px 0; }
.tr-cobro.is-activo { background: rgba(var(--tr-ver), .22); border-color: rgb(var(--tr-ver)); border-width: 1.5px; }
.tr-cobro.is-activo .tr-cobro__txt small { color: var(--tr-txt2); }
.tr-cobro--mini { display: inline-flex; flex-wrap: nowrap; align-items: flex-start; gap: 6px; align-self: flex-start; max-width: 100%; margin-top: 3px; padding: 4px 11px 4px 8px; border-radius: 999px; font-size: 12.5px; font-weight: 700; line-height: 1.25; }
.tr-cobro--mini svg { flex: none; width: 14px; height: 14px; margin-top: 1px; color: rgb(var(--tr-ver)); }
.tr-cobro--mini > span { min-width: 0; overflow-wrap: anywhere; }
.tr-cobro--mini b { font-weight: 800; font-variant-numeric: tabular-nums; }
html[data-theme='dark'] .tr-cobro__ico, .tr.is-noche .tr-cobro__ico { color: #04200f; }
@media (max-width: 400px) {
  .tr-cobro { padding: 8px 10px; }
  .tr-cobro__txt b { font-size: 20px; }
}

/* ============================================================
   v1.2 (22-oct) · Baraja: las paradas que siguen se ven SIEMPRE, en orden. Karla: «que el efecto 3D sea así y que él pueda ver siempre las que siguen en
   orden». Debajo de la tarjeta de arriba van las tiras (número, cliente, dirección corta, hora y su Waze) con un poco de profundidad; un toque abre la que
   quieras con todo (Google Maps, Llamar, cobro) y «Ver el detalle de cada parada» las abre todas. La entrada en 3D (las tarjetas se reparten desde la
   derecha) corre una sola vez: solo con .tr--entra, que la pieza pone la primera vez y no en los repintados.
   ============================================================ */
.tr-stack { position: relative; display: flex; flex-direction: column; gap: 8px; transform-style: preserve-3d; }
.tr-card { position: relative; display: block; padding: 0; border-radius: 20px; transform-origin: 50% 0; }
.tr-card.is-frente { border: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; z-index: 5; margin-bottom: 2px; }
.tr-card.is-frente .tr-sig--carta { margin: 0; }
.tr-card:not(.is-frente) { margin: 0 min(calc(var(--k, 1) * 7px), 28px); background: var(--tr-card2); }
.tr-card.is-abierta, .tr-stack.is-desplegada .tr-card:not(.is-frente) { margin-left: 0; margin-right: 0; }
.tr-peek { display: flex; align-items: center; gap: 6px; padding: 5px 8px 5px 5px; }
.tr-peek__btn { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 3px 6px 3px 3px; border: 0; border-radius: 16px; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.tr-peek__btn:focus-visible { outline: 3px solid rgba(var(--tr-az), .45); outline-offset: 1px; }
.tr-peek__n { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 800; background: rgba(var(--tr-az), .13); color: var(--tr-azul); }
.tr-peek__txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.tr-peek__txt b { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 15px; font-weight: 800; line-height: 1.25; overflow: hidden; overflow-wrap: anywhere; }
.tr-peek__txt small { display: block; font-size: 12px; color: var(--tr-txt3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-peek__cobro { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-left: 6px; border-radius: 50%; vertical-align: -4px; background: rgb(var(--tr-ver)); color: #052e16; font-style: normal; }
.tr-peek__cobro svg { width: 11px; height: 11px; }
.tr-peek__hora { flex: none; display: flex; flex-direction: column; align-items: flex-end; font-size: 13.5px; font-weight: 800; line-height: 1.15; color: var(--tr-txt); white-space: nowrap; }
.tr-peek__hora small { font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--tr-txt3); }
.tr-peek__mas { flex: none; display: grid; place-items: center; width: 22px; height: 22px; color: var(--tr-txt3); }
.tr-peek__mas svg { width: 16px; height: 16px; transition: transform .3s; }
.tr-card.is-abierta .tr-peek__mas svg, .tr-stack.is-desplegada .tr-peek__mas svg { transform: rotate(180deg); }
.tr-card__cuerpo { display: none; flex-direction: column; gap: 8px; padding: 2px 16px 16px; }
.tr-card.is-abierta .tr-card__cuerpo, .tr-stack.is-desplegada .tr-card__cuerpo { display: flex; }
.tr-card__hora { margin: 0; font-size: 12.5px; font-weight: 700; color: var(--tr-txt3); }
html[data-theme='dark'] .tr-peek__cobro, .tr.is-noche .tr-peek__cobro { color: #04200f; }
/* la entrada en 3D, una sola vez */
.tr--entra.tr--B > * { animation: tr-entra-a .8s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * .09s); }
.tr--entra.tr--B .tr-stack { animation: none; }
.tr--entra.tr--B .tr-card { animation: tr-reparte .9s cubic-bezier(.2, .8, .2, 1) backwards; animation-delay: calc(.2s + var(--k, 0) * .12s); }
@keyframes tr-reparte { from { opacity: 0; transform: translateX(70%) rotateY(-38deg) translateZ(-220px); } }
.tr--entra.tr--B .tr-stack.is-desplegada .tr-card { animation: none; }
.tr:not(.tr--entra) .tr-linea::before { animation: none; }
@media (max-width: 400px) {
  .tr-peek__btn { gap: 8px; }
  .tr-peek__txt b { font-size: 14px; }
  .tr-peek__hora { font-size: 12.5px; }
}

/* v1.3 (22-oct) · el cobro según cómo pagó el cliente: el resto (con lo que ya pagó) y al recibir */
.tr-cobro__pago { display: flex; align-items: center; gap: 4px; margin-top: 3px; font-size: 12px; font-style: normal; font-weight: 700; line-height: 1.2; color: var(--tr-txt2); overflow-wrap: anywhere; }
.tr-cobro__pago svg { flex: none; width: 12px; height: 12px; color: rgb(var(--tr-ver)); }
.tr-cobro--al_recibir .tr-cobro__txt small, .tr-cobro--resto .tr-cobro__txt small { color: var(--tr-txt2); }

/* v1.4 (22-oct) · «ya te toca»: aro en el botón de iniciar o de terminar el servicio (el servidor manda toca:'iniciar' | 'terminar'). Late 4 veces (unos 6 segundos) la primera vez y
   se queda como aro fijo (tr-pulso--fijo lo pone vincular() en los repintados); con «Reducir movimiento», solo el aro fijo. Sirve para cualquier botón, dentro o fuera de .tr. */
.tr-pulso { position: relative; outline: 3px solid rgba(var(--tr-amb, 217, 119, 6), .85); outline-offset: 3px; }
.tr-pulso::after { content: ''; position: absolute; top: -3px; right: -3px; bottom: -3px; left: -3px; border-radius: inherit; border: 3px solid rgba(var(--tr-amb, 217, 119, 6), .9); pointer-events: none; animation: tr-pulso 1.5s ease-out 4 both; }
.tr-pulso--fijo::after { animation: none; opacity: 0; }
@keyframes tr-pulso { from { top: -3px; right: -3px; bottom: -3px; left: -3px; opacity: .95; } to { top: -16px; right: -16px; bottom: -16px; left: -16px; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .tr-pulso::after { animation: none; opacity: 0; } }
/* v1.8 · agenda avanzada: «Vas X min tarde» con el botón «¿Por qué?» y la línea de lo que ya dijo */
.tr-tarde { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin: 0; padding: 10px 14px; border-radius: 16px; border: 1px solid rgba(var(--tr-amb), .5); background: rgba(var(--tr-amb), .13); }
.tr-tarde__t { display: flex; align-items: flex-start; gap: 8px; flex: 1 1 200px; min-width: 0; }
.tr-tarde__t > svg { flex: none; margin-top: 2px; color: rgb(var(--tr-amb)); }
.tr-tarde__t b { display: block; font-size: 15px; font-weight: 800; color: var(--tr-txt); }
.tr-tarde__t small { display: block; font-size: 12.5px; line-height: 1.35; color: var(--tr-txt2); }
.tr-tarde__bt { flex: 0 0 auto; }
.tr-tarde__bt svg { width: 15px; height: 15px; }
.tr-tarde--dicho { justify-content: flex-start; gap: 6px; padding: 8px 12px; border-color: rgba(var(--tr-ver), .45); background: rgba(var(--tr-ver), .12); font-size: 13.5px; font-weight: 600; color: var(--tr-txt2); }
.tr-tarde--dicho svg { flex: none; width: 16px; height: 16px; color: rgb(var(--tr-ver)); }
