/* Caja de herramientas, fase 4 (13-nov-2026): rastreo, evaluador y renta. Usa los tokens de xoxaz.css y las piezas de caja.css. */
.cj-reglas { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cj-reglas li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); font-size: var(--fs-sm); line-height: 1.4; }
.cj-reglas li svg { flex: none; margin-top: 2px; color: var(--brand-700); }
.cj-check { display: flex; gap: 12px; align-items: flex-start; font-size: var(--fs-sm); line-height: 1.45; cursor: pointer; }
.cj-check input { width: 24px; height: 24px; flex: none; margin-top: 1px; accent-color: var(--brand); }

.ras-estado { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: var(--r-lg); background: var(--bg-soft); border: 1px solid var(--line); }
.ras-estado.on { background: var(--brand-50); border-color: var(--brand); }
.ras-estado .grow b { display: block; font-size: var(--fs-lg); }
.ras-estado .grow small { display: block; color: var(--muted); font-size: var(--fs-xs); margin-top: 2px; }
.ras-punto { width: 16px; height: 16px; border-radius: 50%; background: var(--brand); flex: none; box-shadow: 0 0 0 0 rgba(11, 127, 87, .5); animation: ras-pulso 1.8s infinite; }
@keyframes ras-pulso { 70% { box-shadow: 0 0 0 14px rgba(11, 127, 87, 0); } 100% { box-shadow: 0 0 0 0 rgba(11, 127, 87, 0); } }
@media (prefers-reduced-motion: reduce) { .ras-punto { animation: none; } }
.ras-btns { display: grid; gap: 8px; }

/* Evaluador */
.ev-card { display: block; padding: 6px 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.ev-card > * + * { margin-top: 10px; }
.ev-card[open] { padding-bottom: 14px; }
.ev-card h3 { margin: 0; font-size: var(--fs-md); }
.ev-fila { display: flex; justify-content: space-between; gap: 12px; font-size: var(--fs-sm); line-height: 1.35; }
.ev-fila span:last-child { font-weight: 700; text-align: right; }
.ev-fila .mal { color: var(--err); } .ev-fila .bien { color: var(--brand-700); }
.ev-marcas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ev-marcas button { min-height: 52px; padding: 6px 8px; white-space: normal; line-height: 1.15; }
.ev-zona { font-size: var(--fs-sm); padding: 10px 12px; border-radius: var(--r-md); background: var(--bg-soft); }

/* Renta */
.rn-item { display: flex; gap: 12px; align-items: center; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); color: var(--ink); text-decoration: none; min-width: 0; }
.rn-item img, .rn-sin-foto { width: 64px; height: 64px; border-radius: var(--r-sm); object-fit: cover; flex: none; background: var(--bg-soft); display: grid; place-items: center; color: var(--muted); }
.rn-item .grow { min-width: 0; }
.rn-item .grow b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rn-item .grow small { display: block; color: var(--muted); font-size: var(--fs-xs); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rn-precio { font-weight: 800; white-space: nowrap; text-align: right; }
.rn-precio small { display: block; font-weight: 500; color: var(--muted); font-size: var(--fs-xs); }
.rn-fotos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.rn-fotos figure { margin: 0; position: relative; }
.rn-fotos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-md); display: block; background: var(--bg-soft); }
.rn-fotos form { position: absolute; top: 6px; right: 6px; }
.rn-cifras { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.rn-cifras div { padding: 10px; border-radius: var(--r-md); background: var(--bg-soft); text-align: center; }
.rn-cifras b { display: block; font-size: var(--fs-lg); }
.rn-cifras small { color: var(--muted); font-size: var(--fs-xs); }
.rn-chat { display: grid; gap: 8px; max-height: 360px; overflow-y: auto; padding: 4px; }
.rn-msg { max-width: 85%; padding: 10px 12px; border-radius: 14px; background: var(--bg-soft); font-size: var(--fs-sm); line-height: 1.4; white-space: pre-line; overflow-wrap: anywhere; }
.rn-msg.yo { justify-self: end; background: var(--brand-50); }
.rn-msg small { display: block; color: var(--muted); font-size: 11px; margin-top: 4px; }
.rn-pasos { display: flex; gap: 6px; flex-wrap: wrap; }
.rn-pasos span { font-size: var(--fs-xs); padding: 6px 10px; border-radius: var(--r-pill); background: var(--bg-soft); color: var(--muted); }
.rn-pasos span.si { background: var(--brand-50); color: var(--brand-700); font-weight: 700; }
.rn-tabs { margin-bottom: 12px; }
