/* Urbina Cargo y Encargo — naranja y turquesa: cajas que viajan, cintas y QR. */
:root { --fondo: #04090c; --vidrio: rgba(8, 20, 26, .78); --borde: rgba(34, 211, 238, .22); --borde2: rgba(255, 122, 0, .45); }
.caja-viva { display: inline-block; animation: saltaCaja 1.8s ease-in-out infinite; }
@keyframes saltaCaja { 0%, 100% { transform: translateY(0) rotate(0); } 40% { transform: translateY(-5px) rotate(-6deg); } 60% { transform: translateY(-2px) rotate(4deg); } }
.enc-t { display: grid; gap: 6px; border-radius: 20px; padding: 14px 16px; background: linear-gradient(150deg, rgba(34, 211, 238, .08), var(--vidrio) 55%); border: 1px solid var(--borde); text-decoration: none; color: var(--texto); transition: .2s; animation: entraE .4s both; cursor: pointer; }
.enc-t:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0, 0, 0, .5), 0 0 22px rgba(255, 122, 0, .25); }
.enc-t.debe { border-color: #f43f5e; box-shadow: 0 0 0 1px rgba(244, 63, 94, .5); }
@keyframes entraE { from { opacity: 0; transform: translateY(10px); } }
.codigo { font-family: Orbitron, system-ui; font-weight: 900; letter-spacing: .05em; color: var(--naranja2); }
.est { display: inline-flex; padding: 3px 10px; border-radius: 999px; font-weight: 800; font-size: 12px; background: rgba(255, 255, 255, .08); }
.est--pre_registro, .est--por_recoger { background: rgba(56, 189, 248, .16); color: #7dd3fc; }
.est--recibida, .est--por_pagar { background: rgba(250, 204, 21, .16); color: #fde047; }
.est--pagada, .est--en_camino, .est--devolucion { background: rgba(255, 122, 0, .2); color: #ffb000; }
.est--en_destino, .est--en_reparto { background: rgba(168, 85, 247, .18); color: #d8b4fe; animation: latido 1.8s infinite; }
.est--entregada, .est--devuelta { background: rgba(34, 197, 94, .18); color: #4ade80; }
.est--abandonada, .est--anulada { background: rgba(244, 63, 94, .16); color: #fb7185; }
.qr-caja { background: #fff; border-radius: 18px; padding: 10px; width: min(240px, 70vw); margin: 10px auto; box-shadow: 0 0 30px rgba(34, 211, 238, .35); }
.qr-caja svg { display: block; width: 100%; height: auto; }
.qr-codigo { text-align: center; font-family: Orbitron, system-ui; font-weight: 900; font-size: 22px; letter-spacing: .08em; color: var(--naranja2); }
.precio-linea { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; border-bottom: 1px dashed rgba(255, 255, 255, .08); }
.estimado { position: sticky; bottom: 92px; z-index: 5; border-radius: 18px; padding: 12px 16px; background: linear-gradient(135deg, rgba(255, 122, 0, .95), rgba(255, 176, 0, .95)); color: #1a0500; font-weight: 900; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
.mapa-elegir { height: 230px; border-radius: 16px; border: 1px solid var(--borde); overflow: hidden; margin: 8px 0; position: relative; z-index: 0; isolation: isolate; }
.lector video { width: 100%; max-height: 50vh; border-radius: 16px; background: #000; }
.pestanas-of { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; }
.pestanas-of button { flex: none; padding: 9px 14px; border-radius: 14px; border: 1px solid var(--borde); background: var(--vidrio); font-weight: 800; color: var(--suave); cursor: pointer; }
.pestanas-of button.activa { background: linear-gradient(135deg, var(--naranja2), var(--naranja)); color: #1a0500; border-color: transparent; }
.pestanas-of b { display: inline-grid; place-items: center; min-width: 20px; height: 20px; border-radius: 10px; background: rgba(0, 0, 0, .3); font-size: 11px; margin-inline-start: 4px; }
/* Etiqueta: se arma con el tamaño elegido y el contenido se autoajusta */
.etiqueta { background: #fff; color: #000; border: 1px dashed #999; box-sizing: border-box; padding: 2.5mm; display: grid; overflow: hidden; font-family: Arial, Helvetica, sans-serif; line-height: 1.15; margin: 10px auto; }
.etiqueta .e-qr svg { width: 100%; height: 100%; display: block; }
.etiqueta .e-cod { font-weight: 900; letter-spacing: .04em; }
.etiqueta .e-dest { font-weight: 900; text-transform: uppercase; }
.etiqueta .e-lin { border-top: 1px solid #000; padding-top: .6mm; }
.etiqueta .e-mini { font-size: .72em; }
#impresion { display: none; }
@media print {
  body > *:not(#impresion) { display: none !important; }
  #impresion { display: block !important; }
  #impresion .etiqueta { border: 0; margin: 0; }
}
