/* VALDNOR · App del equipo — diseño aprobado por Fernando el 2026-11-13 (lienzo "App del equipo VALDNOR",
   copia en docs/diseno/app-equipo/lienzo/). Cada valor sale de los estilos en línea de los .dc.html: no cambiar sin
   comparar contra el lienzo (prueba/capturas_diseno.py). */

body.modo-eq .app { max-width: 560px; padding: 0; }
body.modo-eq { background: #ffffff; }
body.modo-eq .aviso { bottom: calc(96px + env(safe-area-inset-bottom)); }

.eq { min-height: 100vh; min-height: 100dvh; box-sizing: border-box; font-family: 'Montserrat', Arial, sans-serif; color: #0d0d0d;
  background: #ffffff; position: relative; display: flex; flex-direction: column; line-height: normal; }
.eq *, .eq *::before, .eq *::after { box-sizing: content-box; }   /* como el lienzo: borde y relleno se suman */
.eq input[type=checkbox], .eq input[type=radio] { box-sizing: border-box; }
/* en el lienzo estos son <button> o llevan box-sizing: border-box */
.eq-volver, .eq-grande.blanco, .eq-badge, .eq-apagado, .eq-confirmar, .eq-desplegar, .eq-reimprimir, .eq-sacado, .eq-pestanas button,
.eq-elegida button, .eq-hoja button, .eq-buscar input, .eq-mini, .eq-hoja > span:first-child, .eq-doc, .eq-disparar,
.eq-esc-botones .repetir, .eq-lima.f14, .eq-bborde.f14 { box-sizing: border-box; }
.eq button { font-family: 'Montserrat', Arial, sans-serif; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.eq h1, .eq h2, .eq p { margin: 0; }
.eq svg { display: block; flex: none; }
.eq b { font-weight: 800; }

/* ------------------------------------------------------------ encabezado */
.eq-cab { background: #0d0d0d; color: #ffffff; padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.eq-cab-fila { display: flex; align-items: center; justify-content: space-between; }
.eq-cab-fila img { height: 18px; width: auto; display: block; }
.eq-cab-app { font-size: 11px; font-weight: 800; letter-spacing: 2px; color: #c9f24b; }
.eq-paso { font-size: 11px; font-weight: 800; letter-spacing: 1.5px; color: #a8a8a2; }
.eq-cab h1 { margin: 0; font-size: 26px; line-height: 1.15; font-weight: 900; overflow-wrap: anywhere; }
.eq-cab h1.t24 { font-size: 24px; }
.eq-cab.grande { padding: 16px 16px 20px; gap: 14px; }
.eq-cab.grande .eq-cab-fila img { height: 20px; }
.eq-cab.grande h1 { font-size: 28px; line-height: 1.1; }
.eq-cab-sub { font-size: 13px; font-weight: 600; color: #d6d6d0; }
.eq-cab h1:focus { outline: none; }

/* ------------------------------------------------------------ cuerpo */
.eq-main { flex: 1; min-height: 0; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.eq-main.g14 { gap: 14px; }
.eq-main.g12 { gap: 12px; }
.eq-main.g16 { gap: 16px; }
.eq-main.g6 { gap: 6px; padding: 14px 16px 16px; }
.eq-main.lista { padding: 8px 16px 16px; gap: 0; font-size: 14px; line-height: 1.45; }
.eq-main.form { padding: 18px 16px; gap: 16px; }

/* ------------------------------------------------------------ pie */
.eq-pie { position: sticky; bottom: 0; z-index: 20; background: #ffffff; border-top: 1px solid #e4e4e0;
  box-shadow: 0 -6px 16px rgba(13,13,13,.08); padding: 12px 16px calc(16px + env(safe-area-inset-bottom));
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.eq-pie.c12 { grid-template-columns: 1fr 2fr; }
.eq-pie.c3 { grid-template-columns: 1fr 1.3fr 1.3fr; gap: 8px; }

.eq-volver, .eq-bborde { display: flex; align-items: center; justify-content: center; min-height: 52px; border-radius: 8px;
  border: 2px solid #0d0d0d; color: #0d0d0d; background: #ffffff; text-decoration: none;
  font-size: 15px; font-weight: 800; letter-spacing: 1px; padding: 0; }
.eq-pie.c12 .eq-volver { min-height: 56px; }
.eq-pie.c3 .eq-volver { min-height: 60px; font-size: 14px; }
.eq-lima { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; border-radius: 8px; border: 0;
  background: #c9f24b; color: #0d0d0d; text-decoration: none; font-size: 16px; font-weight: 900; letter-spacing: 1px;
  box-shadow: 0 4px 0 #7f9c1e; padding: 0 8px; }
.eq-lima.f15 { font-size: 15px; }
.eq-lima.f14 { font-size: 14px; letter-spacing: .5px; }
.eq-lima:active, .eq-grande:active, .eq-negro:active { transform: translateY(2px); box-shadow: 0 2px 0 #7f9c1e; }
.eq-apagado { min-height: 56px; border-radius: 8px; border: 0; background: #e4e4e0; color: #3a3a38; font-size: 14px;
  font-weight: 800; letter-spacing: .5px; }
.eq-bborde.f14 { font-size: 14px; letter-spacing: .5px; min-height: 56px; gap: 8px; }

/* ------------------------------------------------------------ 1. inicio */
.eq-grande { display: flex; align-items: center; gap: 14px; min-height: 70px; padding: 0 16px; border-radius: 12px;
  background: #0d0d0d; color: #ffffff; text-decoration: none; box-shadow: 0 4px 0 #3a3a38; border: 0; text-align: left; }
.eq-grande:active { box-shadow: 0 2px 0 #3a3a38; }
.eq-grande.blanco { background: #ffffff; color: #0d0d0d; border: 2px solid #0d0d0d; box-shadow: none; }
.eq-grande.blanco:active { transform: none; background: #f4f4f2; }
.eq-grande.resaltado { outline: 4px solid #c9f24b; outline-offset: 2px; }
.eq-ic { flex: none; width: 44px; height: 44px; border-radius: 9999px; background: #c9f24b; display: flex; align-items: center; justify-content: center; }
.eq-grande.blanco .eq-ic { background: #f4f4f2; }
.eq-grande > b { flex: 1; font-size: 15px; font-weight: 900; letter-spacing: .5px; }
.eq-badge { flex: none; min-width: 32px; height: 32px; padding: 0 8px; box-sizing: border-box; border-radius: 9999px;
  background: #c8321e; color: #ffffff; font-size: 15px; font-weight: 900; display: flex; align-items: center; justify-content: center; }

/* aviso de que no están activados los avisos (estado que el lienzo no muestra: mismos componentes que "SI NADIE CONTESTA") */
.eq-activar { border: 2px solid #0d0d0d; border-radius: 12px; padding: 12px 14px; display: flex; align-items: center; gap: 12px; }
.eq-activar > span { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.eq-activar b { font-size: 13px; letter-spacing: .5px; }
.eq-activar small { font-size: 13px; line-height: 1.5; font-weight: 500; }
.eq-activar .eq-lima { min-height: 44px; font-size: 13px; padding: 0 12px; flex: none; }

/* aviso que llega con la app abierta (pantalla 3 del lienzo) */
.eq-noti { position: fixed; left: 10px; right: 10px; top: 10px; z-index: 60; max-width: 540px; margin: 0 auto; background: #ffffff;
  color: #0d0d0d; border-radius: 16px; padding: 12px; display: flex; gap: 10px; box-shadow: 0 10px 30px rgba(13,13,13,.35);
  border: 0; text-align: left; font-family: 'Montserrat', Arial, sans-serif; cursor: pointer; }
.eq-noti-ic { flex: none; width: 36px; height: 36px; border-radius: 9px; background: #0d0d0d; display: flex; align-items: center; justify-content: center; }
.eq-noti-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.eq-noti-cab { display: flex; justify-content: space-between; font-size: 11px; font-weight: 700; color: #6b6b66; }
.eq-noti-txt b { font-size: 14px; font-weight: 800; }
.eq-noti-txt > span:last-child { font-size: 13px; font-weight: 500; line-height: 1.35; }

/* ------------------------------------------------------------ pedidos */
.eq-tarjeta { border: 2px solid #e4e4e0; border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 8px;
  text-decoration: none; color: #0d0d0d; background: #ffffff; text-align: left; }
.eq-tarjeta.nuevo { border-color: #0d0d0d; box-shadow: 0 4px 0 #0d0d0d; }
.eq-tarjeta-fila { display: flex; align-items: center; justify-content: space-between; }
.eq-estado { font-size: 11px; font-weight: 900; letter-spacing: 1px; background: #c8321e; color: #ffffff; border-radius: 4px; padding: 4px 8px; }
.eq-estado.lima { background: #c9f24b; color: #0d0d0d; }
.eq-ref { font-size: 12px; font-weight: 700; color: #3a3a38; }
.eq-tarjeta h2 { margin: 0; font-size: 20px; font-weight: 900; }
.eq-entrega { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #3a3a38; }
.eq-resumen { font-size: 13px; font-weight: 500; color: #3a3a38; }
.eq-link { margin-top: auto; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 16px; border-radius: 10px;
  background: #f4f4f2; color: #0d0d0d; text-decoration: none; border: 0; text-align: left; }
.eq-link > b { flex: 1; font-size: 14px; font-weight: 800; letter-spacing: .5px; }
.eq-link.mt14 { margin-top: 14px; }
.eq-vacio { font-size: 13px; line-height: 1.5; color: #3a3a38; font-weight: 500; }

.eq-ficha { background: #f4f4f2; border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.eq-ficha-fila { display: flex; gap: 10px; align-items: center; }
.eq-ficha-fila.arriba { align-items: flex-start; }
.eq-ficha-fila > span { font-size: 14px; line-height: 1.4; }
.eq-ficha-fila > span.fuerte { font-weight: 600; line-height: normal; }
.eq-ficha-origen { font-size: 12px; font-weight: 700; color: #3a3a38; }
.eq-art-cab { display: flex; justify-content: space-between; align-items: baseline; }
.eq-art-cab h2 { margin: 0; font-size: 18px; font-weight: 900; }
.eq-art-cab span { font-size: 13px; font-weight: 800; color: #3a3a38; }
.eq-art { display: flex; align-items: center; gap: 12px; min-height: 76px; padding: 8px 12px; border-radius: 12px; border: 2px solid #e4e4e0;
  background: #ffffff; cursor: pointer; }
.eq-art.hecho { border-color: #0d0d0d; background: #f3fbd9; }
.eq-art img { flex: none; width: 52px; height: 52px; object-fit: contain; background: #ffffff; border-radius: 8px; }
.eq-art-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.eq-art-txt b { font-size: 15px; font-weight: 800; line-height: 1.25; }
.eq-art-txt span { font-size: 12px; font-weight: 600; color: #3a3a38; }
.eq-art-cant { flex: none; font-size: 22px; font-weight: 900; }
.eq-art input { flex: none; width: 28px; height: 28px; margin: 0 0 0 4px; accent-color: #0d0d0d; }
.eq-imprimir { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; border-radius: 8px;
  border: 2px solid #0d0d0d; color: #0d0d0d; background: #ffffff; text-decoration: none; font-size: 14px; font-weight: 800;
  letter-spacing: 1px; }
.eq-nota12 { font-size: 12px; line-height: 1.5; color: #3a3a38; font-weight: 500; }
.eq-main.detalle { padding: 16px 16px 16px; gap: 14px; }

/* historiales en texto */
.eq .eq-dia { margin: 16px 0 6px; font-size: 12px; font-weight: 900; letter-spacing: 1.5px; color: #3a3a38; }
.eq .eq-dia.primero { margin-top: 12px; }
.eq-linea { margin: 0; padding: 8px 0; border-bottom: 1px solid #e4e4e0; }
.eq-linea b { font-weight: 700; }
.eq-linea b.rojo { color: #c8321e; }
.eq-pie-nota { margin-top: 12px; font-size: 12px; font-weight: 500; color: #3a3a38; }

/* ------------------------------------------------------------ vencimientos */
.eq-venc { border: 2px solid #0d0d0d; border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.eq-venc.rojo { border-color: #c8321e; }
.eq-venc-et { font-size: 12px; font-weight: 900; letter-spacing: 1px; color: #3a3a38; }
.eq-venc.rojo .eq-venc-et { color: #c8321e; }
.eq-prod { display: flex; gap: 12px; align-items: center; }
.eq-prod img { flex: none; width: 60px; height: 60px; object-fit: contain; background: #f4f4f2; border-radius: 8px; }
.eq-prod > span { display: flex; flex-direction: column; gap: 2px; }
.eq-prod > span b { font-size: 17px; font-weight: 900; }
.eq-prod > span span { font-size: 13px; font-weight: 600; color: #3a3a38; }
.eq-confirmar { min-height: 56px; border-radius: 8px; border: 0; background: #c9f24b; color: #0d0d0d; font-size: 15px; font-weight: 900;
  letter-spacing: 1px; box-shadow: 0 4px 0 #7f9c1e; }
.eq-hecho { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; border-radius: 8px; background: #0d0d0d;
  color: #c9f24b; font-size: 14px; font-weight: 800; letter-spacing: 1px; text-align: center; }
.eq-hecho.c52 { min-height: 52px; font-size: 13px; }
.eq-texto13 { margin: 0; font-size: 13px; line-height: 1.5; color: #3a3a38; font-weight: 500; }

/* ------------------------------------------------------------ precios */
.eq-h2gris { margin: 0; font-size: 12px; font-weight: 900; letter-spacing: 1.5px; color: #3a3a38; }
.eq-tanda { border: 2px solid #0d0d0d; border-radius: 12px; padding: 12px 14px; display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: #0d0d0d; background: #ffffff; box-shadow: 0 4px 0 #0d0d0d; text-align: left; }
.eq-tanda.rojo { border-color: #c8321e; box-shadow: none; }
.eq-tanda-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.eq-tanda-cuando { font-size: 11px; font-weight: 900; letter-spacing: 1px; color: #3a3a38; }
.eq-tanda.rojo .eq-tanda-cuando { color: #c8321e; }
.eq-tanda-txt b { font-size: 16px; font-weight: 900; }
.eq-tanda-txt > span:last-child { font-size: 13px; font-weight: 600; color: #3a3a38; }
.sube { color: #1f7a2e; }
.baja { color: #c8321e; }
.eq-tanda-n { flex: none; display: flex; flex-direction: column; align-items: center; min-width: 54px; }
.eq-tanda-n b { font-size: 22px; font-weight: 900; }
.eq-tanda-n span { font-size: 10px; font-weight: 800; letter-spacing: .5px; }
.eq-desplegar { margin-top: 8px; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 14px; border-radius: 10px; border: 0;
  background: #f4f4f2; color: #0d0d0d; font-size: 14px; font-weight: 800; letter-spacing: .5px; text-align: left; }
.eq-desplegar span:nth-child(2) { flex: 1; }
.eq-desplegar span:last-child { font-size: 18px; }
.eq-impresa { display: flex; align-items: center; gap: 10px; padding: 10px 2px; border-bottom: 1px solid #e4e4e0; }
.eq-impresa > span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.eq-impresa > span b { font-size: 14px; }
.eq-impresa > span span { font-size: 12px; font-weight: 600; color: #3a3a38; }
.eq-reimprimir { flex: none; min-height: 44px; padding: 0 12px; border-radius: 8px; border: 2px solid #0d0d0d; background: #ffffff;
  color: #0d0d0d; font-size: 12px; font-weight: 800; letter-spacing: .5px; }
.eq-banda { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; background: #0d0d0d; color: #c9f24b;
  font-size: 13px; font-weight: 800; letter-spacing: .5px; margin-bottom: 6px; }
.eq .eq-prov { margin: 4px 0 2px; font-size: 13px; font-weight: 900; letter-spacing: 1.5px; display: flex; justify-content: space-between; }
.eq .eq-prov.siguiente { margin-top: 14px; }
.eq-precio { display: flex; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px solid #e4e4e0; }
.eq-precio > span:first-child { flex: 1; min-width: 0; font-size: 14px; font-weight: 700; line-height: 1.3; }
.eq-precio > span:last-child { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.eq-precio .ab { font-size: 12px; font-weight: 600; color: #3a3a38; white-space: nowrap; }
.eq-precio .ab b { font-size: 15px; color: #0d0d0d; }
.eq-precio .pc { font-size: 12px; font-weight: 800; }

/* ------------------------------------------------------------ promos */
.eq-negro { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 0 16px; border-radius: 12px; background: #0d0d0d;
  color: #ffffff; text-decoration: none; box-shadow: 0 4px 0 #3a3a38; border: 0; text-align: left; }
.eq-negro:active { box-shadow: 0 2px 0 #3a3a38; }
.eq-negro .eq-ic { width: 40px; height: 40px; }
.eq-negro > b { flex: 1; font-size: 15px; font-weight: 900; letter-spacing: .5px; }
.eq-negro.lima { background: #c9f24b; color: #0d0d0d; box-shadow: 0 4px 0 #7f9c1e; }
.eq-negro.lima .eq-ic { background: #0d0d0d; }
.eq-negro.lima > b { font-size: 16px; letter-spacing: 1px; }
.eq-h2gris.m4 { margin: 4px 0 0; }
.eq-h2gris.m10 { margin: 10px 0 0; }
.eq-promo { border: 2px solid #0d0d0d; border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.eq-promo.rojo { border-color: #c8321e; }
.eq-promo-cab { display: flex; justify-content: space-between; align-items: center; }
.eq-promo-et { font-size: 11px; font-weight: 900; letter-spacing: 1px; background: #c9f24b; border-radius: 4px; padding: 4px 8px; }
.eq-promo-et.rojo { background: #c8321e; color: #ffffff; }
.eq-promo-cuando { font-size: 12px; font-weight: 700; color: #3a3a38; }
.eq-promo .eq-prod > b, .eq-promo > b { font-size: 17px; font-weight: 900; line-height: 1.25; }
.eq-promo .eq-prod.g8 { gap: 8px; }
.eq-promo p { margin: 0; font-size: 15px; line-height: 1.5; font-weight: 500; }
.eq-promo p b { font-weight: 700; }
.eq-promo-rot { font-size: 12px; font-weight: 800; letter-spacing: 1px; color: #3a3a38; }
.eq-dos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.eq-dos .eq-lima, .eq-dos .eq-bborde { min-height: 52px; font-size: 15px; font-weight: 900; }
.eq-sacado { min-height: 52px; border-radius: 8px; border: 2px solid #0d0d0d; background: #ffffff; color: #0d0d0d; font-size: 14px;
  font-weight: 800; letter-spacing: 1px; }

/* carteles: buscador y selección */
.eq-buscar { position: relative; }
.eq-buscar svg { position: absolute; left: 14px; top: 16px; }
.eq-buscar input { width: 100%; box-sizing: border-box; border: 2px solid #0d0d0d; border-radius: 8px; padding: 14px 14px 14px 44px;
  font: 600 16px 'Montserrat', Arial, sans-serif; color: #0d0d0d; background: #ffffff; -webkit-appearance: none; appearance: none; }
.eq-rot12 { font-size: 12px; font-weight: 800; letter-spacing: 1px; color: #3a3a38; }
.eq-opcion { display: flex; align-items: center; gap: 12px; min-height: 62px; padding: 8px 12px; border-radius: 10px; border: 2px solid #e4e4e0;
  background: #ffffff; cursor: pointer; }
.eq-opcion.sel { border-color: #0d0d0d; background: #f3fbd9; }
.eq-opcion input { flex: none; width: 24px; height: 24px; margin: 0; accent-color: #0d0d0d; }
.eq-opcion > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.eq-opcion > span:nth-child(2) b { font-size: 14px; font-weight: 800; line-height: 1.25; }
.eq-opcion > span:nth-child(2) span { font-size: 12px; font-weight: 600; color: #3a3a38; }
.eq-tipo { flex: none; font-size: 10px; font-weight: 900; letter-spacing: .5px; border: 2px solid #0d0d0d; border-radius: 4px; padding: 3px 5px; }
.eq-elegidas { margin-top: 8px; border-top: 2px solid #0d0d0d; padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.eq-elegidas > span { font-size: 12px; font-weight: 900; letter-spacing: 1px; }
.eq-elegida { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px 0 12px; border-radius: 8px; background: #f4f4f2; }
.eq-elegida > span:first-child { flex: none; font-size: 12px; font-weight: 900; width: 18px; }
.eq-elegida > span:nth-child(2) { flex: 1; min-width: 0; font-size: 13px; font-weight: 700; line-height: 1.25; }
.eq-elegida button { flex: none; width: 44px; height: 44px; border: 0; background: transparent; display: flex; align-items: center; justify-content: center; }
.eq-elegidas p { margin: 2px 0 0; font-size: 12px; line-height: 1.5; font-weight: 500; color: #3a3a38; }
.eq-hojas { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 60px; border-radius: 8px; border: 0;
  background: #c9f24b; color: #0d0d0d; text-decoration: none; box-shadow: 0 4px 0 #7f9c1e; }
.eq-hojas b { font-size: 14px; font-weight: 900; letter-spacing: 1px; }
.eq-hojas.mitad b { letter-spacing: .5px; }
.eq-hojas span { font-size: 11px; font-weight: 700; }

/* ------------------------------------------------------------ caja */
.eq-escanear { display: flex; align-items: center; gap: 16px; min-height: 92px; padding: 0 20px; border-radius: 12px; background: #c9f24b;
  color: #0d0d0d; text-decoration: none; box-shadow: 0 5px 0 #7f9c1e; border: 0; text-align: left; }
.eq-escanear .eq-ic48 { flex: none; width: 48px; height: 48px; border-radius: 9999px; background: #0d0d0d; display: flex; align-items: center; justify-content: center; }
.eq-escanear > span:last-child { display: flex; flex-direction: column; gap: 4px; }
.eq-escanear b { font-size: 17px; font-weight: 900; letter-spacing: 1px; }
.eq-escanear small { font-size: 13px; font-weight: 600; }
.eq-envio { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #e4e4e0; }
.eq-doc { flex: none; width: 40px; height: 50px; border-radius: 4px; border: 1px solid #c9c9c4; background: #ffffff; display: flex; flex-direction: column;
  gap: 4px; padding: 7px 6px; box-sizing: border-box; }
.eq-doc span { height: 3px; background: #c9c9c4; }
.eq-doc span:first-child { background: #6b6b66; }
.eq-doc span.corta { width: 60%; }
.eq-envio > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.eq-envio > span:nth-child(2) b { font-size: 14px; }
.eq-envio > span:nth-child(2) span { font-size: 12px; font-weight: 600; color: #3a3a38; }

/* cámara y foto escaneada (fondo negro) */
.eq.oscuro { background: #0d0d0d; color: #ffffff; height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; }
.eq-cam-arriba { padding: 16px; display: flex; align-items: center; justify-content: space-between; }
.eq-cerrar { width: 44px; height: 44px; border-radius: 9999px; background: #3a3a38; display: flex; align-items: center; justify-content: center; border: 0; }
.eq-cam-arriba > span { font-size: 14px; font-weight: 800; letter-spacing: 1px; }
.eq-cam-arriba > i { width: 44px; }
.eq-visor { flex: 1; min-height: 0; position: relative; margin: 0 16px; border-radius: 12px; background: #4a4038; overflow: hidden; }
.eq-visor video, .eq-visor .eq-visor-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.eq-visor svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.eq-detectado { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); background: rgba(13,13,13,.8); color: #c9f24b; font-size: 12px;
  font-weight: 800; letter-spacing: 1px; padding: 8px 12px; border-radius: 9999px; white-space: nowrap; }
.eq-detectado.no { color: #ffffff; }
.eq-visor label.eq-elegir { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  color: #ffffff; font-size: 14px; font-weight: 800; letter-spacing: 1px; text-align: center; padding: 24px; cursor: pointer; }
.eq-visor label.eq-elegir input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.eq-cam-abajo { padding: 16px calc(16px) calc(16px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.eq-miniaturas { display: flex; gap: 6px; width: 110px; }
.eq-mini { width: 44px; height: 56px; border-radius: 6px; background: #ffffff; border: 2px solid #c9f24b; box-sizing: border-box; overflow: hidden; }
.eq-mini img { width: 100%; height: 100%; object-fit: cover; display: block; }
.eq-disparar { flex: none; width: 76px; height: 76px; border-radius: 9999px; border: 5px solid #ffffff; box-sizing: border-box; display: flex;
  align-items: center; justify-content: center; background: transparent; padding: 0; }
.eq-disparar span { width: 56px; height: 56px; border-radius: 9999px; background: #c9f24b; }
.eq-disparar:active span { background: #b5de33; }
.eq-listo-cam { width: 110px; display: flex; align-items: center; justify-content: center; min-height: 52px; border-radius: 8px; background: #ffffff;
  color: #0d0d0d; border: 0; font-size: 14px; font-weight: 900; letter-spacing: 1px; }
.eq-listo-cam[disabled] { visibility: hidden; }
.eq-esc-arriba { padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.eq-esc-arriba > span:first-child { font-size: 11px; font-weight: 800; letter-spacing: 1.5px; color: #a8a8a2; }
.eq-esc-arriba > span:last-child { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: #c9f24b; }
.eq-esc-hoja { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0 30px; }
.eq-esc-hoja img { max-width: 100%; max-height: 100%; background: #ffffff; display: block; }
.eq-esc-botones { padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.eq-esc-botones button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 64px; border-radius: 8px;
  font-size: 12px; font-weight: 900; letter-spacing: .5px; border: 0; }
.eq-esc-botones .repetir { border: 2px solid #ffffff; box-sizing: border-box; color: #ffffff; background: transparent; font-weight: 800; }
.eq-esc-botones .otra { background: #ffffff; color: #0d0d0d; }
.eq-esc-botones .terminar { background: #c9f24b; color: #0d0d0d; box-shadow: 0 4px 0 #7f9c1e; }

.eq-hojas-grilla { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.eq-hoja { position: relative; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.eq-hoja > span:first-child { width: 100%; aspect-ratio: 3 / 4; border: 1px solid #c9c9c4; border-radius: 6px; background: #ffffff; box-sizing: border-box; overflow: hidden; display: block; }
.eq-hoja > span:first-child img { width: 100%; height: 100%; object-fit: contain; display: block; }
.eq-hoja > span:nth-child(2) { font-size: 12px; font-weight: 800; }
.eq-hoja button { position: absolute; top: -8px; right: -8px; width: 32px; height: 32px; border-radius: 9999px; border: 0; background: #0d0d0d;
  display: flex; align-items: center; justify-content: center; }
.eq-campo { display: flex; flex-direction: column; gap: 6px; }
.eq-campo label, .eq-campo legend { font-size: 12px; font-weight: 800; letter-spacing: 1.5px; color: #3a3a38; }
.eq-campo input[type=text], .eq-campo input[type=email] { border: 2px solid #0d0d0d; border-radius: 8px; padding: 13px 14px;
  font: 600 16px 'Montserrat', Arial, sans-serif; color: #0d0d0d; background: #ffffff; -webkit-appearance: none; appearance: none; }
.eq-campo > span { font-size: 12px; font-weight: 500; color: #3a3a38; }
.eq-info { margin: 0; background: #f4f4f2; border-radius: 8px; padding: 12px; font-size: 13px; line-height: 1.5; font-weight: 500; }
.eq-info b { font-weight: 700; }
.eq-error { margin: 0; font-size: 13px; font-weight: 700; color: #c8321e; }
.eq-error:empty { display: none; }

/* ------------------------------------------------------------ usuarios y roles */
.eq-usuario { display: flex; align-items: center; gap: 12px; padding: 10px 0; border: 0; border-bottom: 1px solid #e4e4e0; background: transparent;
  color: #0d0d0d; text-align: left; }
.eq-ini { flex: none; width: 40px; height: 40px; border-radius: 9999px; background: #0d0d0d; color: #c9f24b; font-size: 15px; font-weight: 900;
  display: flex; align-items: center; justify-content: center; }
.eq-usuario > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.eq-usuario > span:nth-child(2) b { font-size: 15px; }
.eq-usuario > span:nth-child(2) span { font-size: 12px; font-weight: 600; color: #3a3a38; overflow-wrap: anywhere; }
.eq-rol { flex: none; font-size: 11px; font-weight: 900; letter-spacing: .5px; border: 2px solid #0d0d0d; border-radius: 4px; padding: 4px 6px; }
.eq-roles { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 8px; }
.eq-roles legend { margin-bottom: 6px; padding: 0; font-size: 12px; font-weight: 800; letter-spacing: 1.5px; color: #3a3a38; }
.eq-radio { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 14px; border-radius: 10px; border: 2px solid #e4e4e0;
  background: #ffffff; cursor: pointer; }
.eq-radio.sel { border-color: #0d0d0d; background: #f3fbd9; }
.eq-radio input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: #0d0d0d; }
.eq-radio > span { display: flex; flex-direction: column; gap: 2px; }
.eq-radio > span b { font-size: 15px; font-weight: 900; letter-spacing: .5px; }
.eq-radio > span span { font-size: 12px; font-weight: 600; color: #3a3a38; }
.eq-quitar { align-self: flex-start; border: 0; background: transparent; color: #c8321e; font-size: 13px; font-weight: 800; letter-spacing: .5px;
  padding: 8px 0; text-decoration: underline; }
.eq-pestanas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; background: #f4f4f2; border-radius: 10px; padding: 4px; }
.eq-pestanas button { min-height: 46px; border-radius: 8px; border: 0; background: transparent; color: #0d0d0d; font-size: 12px; font-weight: 800; letter-spacing: .5px; }
.eq-pestanas button[aria-selected="true"] { background: #0d0d0d; color: #c9f24b; }
.eq-cuantas { font-size: 13px; font-weight: 600; color: #3a3a38; margin: 4px 0; }
.eq-funcion { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 6px 12px; border-radius: 10px; border: 2px solid #e4e4e0;
  cursor: pointer; }
.eq-funcion.on { border-color: #0d0d0d; }
.eq-funcion > span { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.eq-funcion > span b { font-size: 14px; font-weight: 800; }
.eq-funcion > span span { font-size: 12px; font-weight: 500; color: #3a3a38; }
.eq-funcion input { flex: none; width: 26px; height: 26px; margin: 0; accent-color: #0d0d0d; }

/* contenedores de listas (mismo espacio que los hijos directos del cuerpo en el lienzo) */
.eq-resultados, .eq-funciones { display: flex; flex-direction: column; gap: 10px; }
.eq-radios { display: flex; flex-direction: column; gap: 8px; }
.eq-impresas { display: flex; flex-direction: column; }
.solo-lector { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Inventario (pantalla de siempre) con VOLVER al inicio de la app; encabezado como la pantalla 18 del lienzo */
.cab.cab-inicio { padding: 16px 16px 22px; gap: 18px; }
.cab.cab-inicio .cab-logo { height: 20px; }
.cab.cab-inicio .titulo { font-size: 30px; line-height: 1.1; }
body.modo-inv .pie-in > .volver-app { grid-column: 1; }
.inicio > .b-grande, .inicio > .b-grande > .cara { min-height: 92px; }
