/* ============================================================
   Dangofe 26 · Taller Power Wave · «ESTADO EN EL TELÉFONO» en la ficha (taller-estado-local.js · prefijo tesl-) · v1.2.0 · 2026-11-11 · Dangofe-Visual
   © 2026 Power Wave y DANGOFE. Todos los derechos reservados.
   Va después de taller-caja-roja.css. Todo bajo #tal-detzone .tal-dash__id: 0 cambios fuera de la ficha del Taller. Tokens de la marca con su valor de respaldo
   (el sistema no carga tokens.css): ámbar #B45309 / #FCD34D para lo que espera confirmación; naranja #C2410C / #FDBA74 con ⚠ solo para lo rechazado; la capa de aviso
   al 94 % para que el naranja se lea con foto detrás. Sin sombras; nada se anima. Noche azul con html[data-theme='dark'].
   Tres formas (data-tesl-v en .tal-dash__id): A · Contorno y sello · B · Dos estados lado a lado · C · Banda bajo la cabecera.
   v1.1.0 (10-nov, encargo 19): lo rechazado en la forma B (.tesl-rech): primero y grande el porqué que manda el servidor, debajo en chico qué dice cada lado,
   y el botón principal que lleva a resolverlo (.tesl-bt--pri, rojo lleno con letra blanca, 48 px). Lo demás, igual. Al final del archivo.
   v1.1.1 (11-nov, encargo 20): de cuándo es el rechazo (.tesl-rech__cuando, con su reloj, justo debajo del porqué) y, si tiene más de 48 horas,
   «Es de hace más de dos días…» (.tesl-rech__viejo, en ámbar oscuro #8A3F06 / #FEF08A, medido sobre la capa de aviso). Nada más cambia.
   v1.2.0 (11-nov): lo rechazado en tres formas. A · Recuadro (la de la v1.1.1) · B · La fecha arriba (.tesl-rech--b: franja naranja llena con letra blanca, el porqué y las dos cajas)
   · C · En tres pasos (.tesl-rech--c: tres puntos unidos por una rayita; el del medio, naranja, lleva el porqué en grande). El naranja con ⚠ es el error; el rojo lleno, la acción
   (el botón de resolver, como los botones principales de la Caja roja). Al final del archivo, antes del teléfono.
   ============================================================ */
#tal-detzone .tal-dash__id { --tesl-txt: var(--pwt-txt, #111111); --tesl-txt2: var(--pwt-txt2, #5F5F5F); --tesl-ambar: var(--pwt-ambar, #B45309); --tesl-error: var(--pwt-error, #C2410C); --tesl-verde: var(--pwt-verde, #127A47);
  --tesl-aviso: var(--pwt-aviso, rgba(255, 255, 255, .94)); --tesl-raya: var(--pwt-raya, rgba(17, 17, 17, .08)); --tesl-vidrio: rgba(255, 255, 255, .55); --tesl-ambar-suave: rgba(180, 83, 9, .12); --tesl-error-suave: rgba(194, 65, 12, .1); }
[data-theme='dark'] #tal-detzone .tal-dash__id { --tesl-txt: var(--pwt-txt, #EEF1FF); --tesl-txt2: var(--pwt-txt2, #B6BFDF); --tesl-ambar: var(--pwt-ambar, #FCD34D); --tesl-error: var(--pwt-error, #FDBA74); --tesl-verde: var(--pwt-verde, #86EFAC);
  --tesl-aviso: var(--pwt-aviso, rgba(10, 18, 46, .94)); --tesl-raya: var(--pwt-raya, rgba(255, 255, 255, .1)); --tesl-vidrio: rgba(255, 255, 255, .06); --tesl-ambar-suave: rgba(252, 211, 77, .14); --tesl-error-suave: rgba(253, 186, 116, .12); }
/* la píldora del estado cuando el estado vive solo en este aparato: contorno punteado (ámbar); rechazado, en naranja */
#tal-detzone .tal-dash__id .tal-pill.tesl-local { outline: 2px dashed var(--tesl-ambar); outline-offset: 2px; }
#tal-detzone .tal-dash__id .tal-pill.tesl-local--mal { outline-color: var(--tesl-error); }
/* el sello junto a la píldora */
#tal-detzone .tal-dash__id .tesl-s { display: inline-flex; align-items: center; min-width: 0; }
#tal-detzone .tal-dash__id .tesl-sello { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px 0 7px; border-radius: 999px; font-size: 11.5px; font-weight: 800; line-height: 1; white-space: nowrap; max-width: 100%; border: 1px solid var(--tesl-ambar); color: var(--tesl-ambar); background: var(--tesl-ambar-suave); }
#tal-detzone .tal-dash__id .tesl-sello em { font-style: normal; font-weight: 700; opacity: .9; }
#tal-detzone .tal-dash__id .tesl-sello--mal { border-color: var(--tesl-error); color: var(--tesl-error); background: var(--tesl-error-suave); }
#tal-detzone .tal-dash__id .tesl-sello--mini { width: 24px; padding: 0; justify-content: center; }
#tal-detzone .tal-dash__id .tesl-sello svg { flex: none; }
#tal-detzone .tal-dash__id .tesl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* la línea debajo: a lo ancho de la cabecera (la fila del número es flex con salto) */
#tal-detzone .tal-dash__id .tesl-l { display: block; flex: 1 1 100%; min-width: 0; }
#tal-detzone .tal-dash__id .tesl-linea { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; min-width: 0; font-size: 13px; line-height: 1.4; color: var(--tesl-txt2); }
#tal-detzone .tal-dash__id .tesl-linea b { font-weight: 700; color: var(--tesl-txt); }
#tal-detzone .tal-dash__id .tesl-srv { display: inline-flex; align-items: center; gap: 5px; }
#tal-detzone .tal-dash__id .tesl-srv svg { color: var(--tesl-txt2); }
/* las notas: rechazado (naranja con ⚠, en la capa de aviso para leerse sobre la foto) y choque (ámbar) */
#tal-detzone .tal-dash__id .tesl-nota { display: flex; align-items: flex-start; gap: 7px; flex: 1 1 100%; padding: 9px 12px; border-radius: 14px; background: var(--tesl-aviso); border: 1px solid var(--tesl-raya); color: var(--tesl-txt); overflow-wrap: anywhere; }
#tal-detzone .tal-dash__id .tesl-nota svg { flex: none; margin-top: 2px; }
#tal-detzone .tal-dash__id .tesl-nota--mal { border-color: var(--tesl-error); } #tal-detzone .tal-dash__id .tesl-nota--mal svg, #tal-detzone .tal-dash__id .tesl-nota--mal b { color: var(--tesl-error); }
#tal-detzone .tal-dash__id .tesl-nota--choque { border-color: var(--tesl-ambar); } #tal-detzone .tal-dash__id .tesl-nota--choque svg, #tal-detzone .tal-dash__id .tesl-nota--choque b { color: var(--tesl-ambar); }
/* acciones: cápsulas de vidrio, 44 px de toque */
#tal-detzone .tal-dash__id .tesl-acc { display: inline-flex; flex-wrap: wrap; gap: 8px; }
#tal-detzone .tal-dash__id .tesl-bt { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--tesl-raya); background: var(--tesl-vidrio); color: var(--tesl-txt); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; }
#tal-detzone .tal-dash__id .tesl-bt--liso { background: transparent; color: var(--tesl-txt2); }
#tal-detzone .tal-dash__id .tesl-bt:focus-visible { outline: 2px solid var(--pwt-foco, #111111); outline-offset: 2px; }
[data-theme='dark'] #tal-detzone .tal-dash__id .tesl-bt:focus-visible { outline-color: var(--pwt-foco, #FFFFFF); }
#tal-detzone .tal-dash__id .tesl-bt:active { opacity: .8; }
/* B · dos estados lado a lado */
#tal-detzone .tal-dash__id .tesl-dos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; flex: 1 1 100%; max-width: 560px; }
#tal-detzone .tal-dash__id .tesl-caja { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 9px 12px; border-radius: 14px; border: 1px dashed var(--tesl-ambar); background: var(--tesl-ambar-suave); }
#tal-detzone .tal-dash__id .tesl-caja--mal { border-color: var(--tesl-error); background: var(--tesl-error-suave); }
#tal-detzone .tal-dash__id .tesl-caja--srv { border-style: solid; border-color: var(--tesl-raya); background: var(--tesl-vidrio); }
#tal-detzone .tal-dash__id .tesl-caja small { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--tesl-txt2); }
#tal-detzone .tal-dash__id .tesl-caja b { font-size: 15px; font-weight: 800; line-height: 1.2; color: var(--tesl-txt); overflow-wrap: anywhere; }
#tal-detzone .tal-dash__id .tesl-caja--pend b, #tal-detzone .tal-dash__id .tesl-caja--choque b { color: var(--tesl-ambar); } #tal-detzone .tal-dash__id .tesl-caja--mal b { color: var(--tesl-error); }
#tal-detzone .tal-dash__id .tesl-caja > span { font-size: 12px; color: var(--tesl-txt2); }
/* C · banda bajo la cabecera */
#tal-detzone .tal-dash__id .tesl-linea--c { padding: 9px 12px; border-radius: 14px; border: 1px solid var(--tesl-ambar); background: var(--tesl-ambar-suave); justify-content: space-between; }
#tal-detzone .tal-dash__id .tesl-linea--c.tesl-linea--mal { border-color: var(--tesl-error); background: var(--tesl-aviso); }
#tal-detzone .tal-dash__id .tesl-banda__t { display: flex; align-items: flex-start; gap: 7px; flex: 1 1 260px; min-width: 0; overflow-wrap: anywhere; }
#tal-detzone .tal-dash__id .tesl-banda__t svg { flex: none; margin-top: 2px; color: var(--tesl-ambar); }
#tal-detzone .tal-dash__id .tesl-linea--mal .tesl-banda__t svg, #tal-detzone .tal-dash__id .tesl-linea--mal .tesl-banda__t > span > b:first-child { color: var(--tesl-error); }
/* v1.1.0 · rechazado (forma B): EL PORQUÉ primero y grande, en la capa de aviso (94 %) para leerse sobre cualquier foto; naranja solo en el borde y el ⚠ */
#tal-detzone .tal-dash__id .tesl-rech { display: flex; flex-direction: column; gap: 8px; flex: 1 1 100%; min-width: 0; max-width: 720px; padding: 14px 16px; border-radius: 16px; border: 1.5px solid var(--tesl-error); background: var(--tesl-aviso); color: var(--tesl-txt); }
#tal-detzone .tal-dash__id .tesl-rech__por { display: flex; align-items: flex-start; gap: 9px; min-width: 0; font-size: 17px; font-weight: 800; line-height: 1.3; letter-spacing: -.01em; color: var(--tesl-txt); }
#tal-detzone .tal-dash__id .tesl-rech__por > span { min-width: 0; overflow-wrap: anywhere; }
#tal-detzone .tal-dash__id .tesl-rech__por svg { flex: none; margin-top: 1px; color: var(--tesl-error); }
#tal-detzone .tal-dash__id .tesl-rech__dos { padding-left: 29px; font-size: 13px; line-height: 1.4; color: var(--tesl-txt2); overflow-wrap: anywhere; }
#tal-detzone .tal-dash__id .tesl-rech .tesl-acc { margin-top: 4px; align-items: center; }
/* v1.1.1 · de cuándo es el rechazo: debajo del porqué, alineado con su texto; lo viejo (más de 48 h), en ámbar */
#tal-detzone .tal-dash__id .tesl-rech { --tesl-viejo: #8A3F06; }
[data-theme='dark'] #tal-detzone .tal-dash__id .tesl-rech { --tesl-viejo: #FEF08A; }
#tal-detzone .tal-dash__id .tesl-rech__cuando { display: flex; align-items: flex-start; gap: 6px; padding-left: 29px; min-width: 0; font-size: 14px; font-weight: 700; line-height: 1.35; color: var(--tesl-txt); }
#tal-detzone .tal-dash__id .tesl-rech__cuando svg { flex: none; margin-top: 2px; color: var(--tesl-txt2); }
#tal-detzone .tal-dash__id .tesl-rech__cuando > span { min-width: 0; overflow-wrap: anywhere; }
#tal-detzone .tal-dash__id .tesl-rech__viejo { padding-left: 29px; margin-top: -4px; font-size: 13px; font-weight: 700; line-height: 1.35; color: var(--tesl-viejo); overflow-wrap: anywhere; }
/* el botón principal: lleva a resolverlo. Rojo Oscuro lleno con letra blanca (5,6:1), 48 px */
#tal-detzone .tal-dash__id .tesl-bt--pri { min-height: 48px; padding: 0 20px; border-color: var(--pwt-rojo, #C8232B); background: var(--pwt-rojo, #C8232B); color: #FFFFFF; font-size: 15px; font-weight: 800; }
#tal-detzone .tal-dash__id .tesl-bt--pri:active { opacity: 1; background: #A81C23; border-color: #A81C23; }
/* v1.2.0 · la línea «se volvió a intentar solo» (en las tres formas) */
#tal-detzone .tal-dash__id .tesl-rech__solo { display: flex; align-items: flex-start; gap: 6px; padding-left: 29px; min-width: 0; font-size: 13px; font-weight: 600; line-height: 1.35; color: var(--tesl-txt2); }
#tal-detzone .tal-dash__id .tesl-rech__solo svg { flex: none; margin-top: 2px; }
#tal-detzone .tal-dash__id .tesl-rech__solo > span { min-width: 0; overflow-wrap: anywhere; }
/* v1.2.0 · B · la fecha arriba: franja naranja llena (letra blanca, 5,2:1), el porqué grande sin ícono y las dos cajas */
#tal-detzone .tal-dash__id .tesl-rech { --tesl-franja: #C2410C; --tesl-franja-tx: #FFFFFF; }
[data-theme='dark'] #tal-detzone .tal-dash__id .tesl-rech { --tesl-franja: #FDBA74; --tesl-franja-tx: #0A122E; }
#tal-detzone .tal-dash__id .tesl-rech--b { padding: 0 0 14px; gap: 10px; overflow: hidden; }
#tal-detzone .tal-dash__id .tesl-rech--b > * { margin-left: 16px; margin-right: 16px; }
#tal-detzone .tal-dash__id .tesl-rech--b > .tesl-rech__franja { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0; padding: 9px 16px; background: var(--tesl-franja); color: var(--tesl-franja-tx); font-size: 13.5px; font-weight: 700; line-height: 1.3; }
#tal-detzone .tal-dash__id .tesl-rech__franja svg { flex: none; }
#tal-detzone .tal-dash__id .tesl-rech__franja b { font-weight: 800; color: inherit; overflow-wrap: anywhere; }
#tal-detzone .tal-dash__id .tesl-rech__fecha { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; }
#tal-detzone .tal-dash__id .tesl-rech--b .tesl-rech__viejo, #tal-detzone .tal-dash__id .tesl-rech--b .tesl-rech__solo { padding-left: 0; margin-top: 0; }
#tal-detzone .tal-dash__id .tesl-rech--b .tesl-dos { max-width: none; flex: none; }
#tal-detzone .tal-dash__id .tesl-rech { --tesl-apoyo: #3D3D3D; }
[data-theme='dark'] #tal-detzone .tal-dash__id .tesl-rech { --tesl-apoyo: #D5DCF0; }
#tal-detzone .tal-dash__id .tesl-rech--b .tesl-caja small, #tal-detzone .tal-dash__id .tesl-rech--b .tesl-caja > span { color: var(--tesl-apoyo); }
#tal-detzone .tal-dash__id .tesl-rech { --tesl-error-txt: #A8380A; }
[data-theme='dark'] #tal-detzone .tal-dash__id .tesl-rech { --tesl-error-txt: #FED7AA; }
#tal-detzone .tal-dash__id .tesl-rech--b .tesl-caja--mal b { color: var(--tesl-error-txt); }
/* v1.2.0 · C · en tres pasos: un punto por paso, unidos por una rayita; el del medio es el rechazo */
#tal-detzone .tal-dash__id .tesl-pasos { display: flex; flex-direction: column; min-width: 0; }
#tal-detzone .tal-dash__id .tesl-paso { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; padding-bottom: 12px; min-width: 0; }
#tal-detzone .tal-dash__id .tesl-paso:last-child { padding-bottom: 0; }
#tal-detzone .tal-dash__id .tesl-paso:not(:last-child)::before { content: ''; position: absolute; left: 13px; top: 30px; bottom: 2px; width: 2px; border-radius: 2px; background: var(--tesl-raya); }
#tal-detzone .tal-dash__id .tesl-paso > i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 999px; border: 1.5px solid var(--tesl-txt2); color: var(--tesl-txt2); font-style: normal; }
#tal-detzone .tal-dash__id .tesl-paso--tel > i { border-style: dashed; border-color: var(--tesl-viejo); color: var(--tesl-viejo); }
#tal-detzone .tal-dash__id .tesl-paso--mal > i { border-color: var(--tesl-franja); background: var(--tesl-franja); color: var(--tesl-franja-tx); }
#tal-detzone .tal-dash__id .tesl-paso > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding-top: 3px; }
#tal-detzone .tal-dash__id .tesl-paso small { font-size: 12.5px; font-weight: 700; line-height: 1.3; color: var(--tesl-txt2); overflow-wrap: anywhere; }
#tal-detzone .tal-dash__id .tesl-paso b { font-size: 14px; font-weight: 800; line-height: 1.3; color: var(--tesl-txt); overflow-wrap: anywhere; }
#tal-detzone .tal-dash__id .tesl-paso b.tesl-paso__por { font-size: 17px; letter-spacing: -.01em; }
#tal-detzone .tal-dash__id .tesl-rech--c .tesl-rech__viejo, #tal-detzone .tal-dash__id .tesl-rech--c .tesl-rech__solo { padding-left: 0; margin-top: 2px; }
/* teléfono */
@media (max-width: 520px) {
  #tal-detzone .tal-dash__id .tesl-rech__solo { padding-left: 0; }
  #tal-detzone .tal-dash__id .tesl-rech.tesl-rech--b { padding: 0 0 12px; }
  #tal-detzone .tal-dash__id .tesl-rech--b > * { margin-left: 12px; margin-right: 12px; }
  #tal-detzone .tal-dash__id .tesl-rech--b > .tesl-rech__franja { padding: 9px 12px; }
  #tal-detzone .tal-dash__id .tesl-rech__fecha { margin-left: 0; }
  #tal-detzone .tal-dash__id .tesl-paso b.tesl-paso__por { font-size: 16px; }
  #tal-detzone .tal-dash__id .tesl-dos { grid-template-columns: 1fr; }
  #tal-detzone .tal-dash__id .tesl-acc, #tal-detzone .tal-dash__id .tesl-bt { width: 100%; justify-content: center; }
  #tal-detzone .tal-dash__id .tesl-rech { padding: 12px; }
  #tal-detzone .tal-dash__id .tesl-rech__por { font-size: 16px; }
  #tal-detzone .tal-dash__id .tesl-rech__dos, #tal-detzone .tal-dash__id .tesl-rech__cuando, #tal-detzone .tal-dash__id .tesl-rech__viejo { padding-left: 0; }
  #tal-detzone .tal-dash__id .tesl-bt { white-space: normal; text-align: center; }
}
