/* Bresh · Mis QR (pulseras y tickets apilados) y la barra (escáner, ticket y sello de goma) */

.bw-pagina, .barra-v { background: radial-gradient(80% 40% at 80% 0%, rgba(216,0,122,.22), transparent 70%), var(--noche); min-height: calc(100svh - var(--top-h)); }
.bw-volver { display: inline-flex; align-items: center; min-height: 44px; justify-self: start; font-weight: 700; font-size: .9rem; color: var(--peluche); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.bw-cab { display: grid; gap: 10px; margin-bottom: clamp(24px, 5vw, 44px); }
.bw-cab .d-l { font-size: clamp(60px, 18vw, 130px); }
.bw-cab .txt { max-width: 44ch; }
.bw-grupo { display: grid; gap: 18px; margin-bottom: clamp(30px, 6vw, 56px); }
.bw-t { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-stretch: 125%; font-weight: 900; font-size: 1.3rem; text-transform: uppercase; letter-spacing: -.01em; }
.bw-t span { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding-inline: 8px; border-radius: 9px; background: var(--fucsia); color: #fff; font-size: .9rem; }
.bw-pie { max-width: 52ch; }
.bw-vacio { padding-top: 10px; }
.bw-acc { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* pilas de objetos */
.pila { display: grid; gap: 0; width: min(100%, 520px); }
.pila-it { position: relative; rotate: var(--rot, 0deg); z-index: var(--z, 0); }
.pila-pulseras .pila-it + .pila-it { margin-top: -6px; }
.pila-tickets .pila-it + .pila-it { margin-top: -156px; }

/* entrada: pulsera con la etiqueta del QR */
.pb.pulsera { width: 100%; height: 96px; padding: 0 16px 0 20px; justify-content: flex-start; gap: 14px; text-align: left; border-radius: 8px; transition: transform .5s var(--rebote); }
.pb.pulsera:active { transform: scale(.98); }
@media (hover: hover) { .pb.pulsera:hover { transform: translateY(-5px) rotate(-.6deg); } }
.pb .pb-txt { display: grid; gap: 1px; flex: 1; min-width: 0; font-size: .74rem; line-height: 1.15; }
.pb .pb-txt b { font-stretch: 125%; font-size: 1.12rem; line-height: 1; margin-bottom: 3px; }
.pb .pb-txt span { font-stretch: 112%; font-weight: 800; text-overflow: ellipsis; overflow: hidden; }
.pb .pb-txt small { font-family: var(--texto); font-weight: 600; font-size: .7rem; letter-spacing: 0; text-transform: none; opacity: .85; }
.pb .precinto { order: 3; margin-left: 0; width: 22px; height: 34px; }
.pb .pb-eti { order: 2; position: relative; flex: none; width: 76px; height: 76px; padding: 5px; border-radius: 8px; background: #fff; box-shadow: 0 3px 0 rgba(0,0,0,.2), 0 10px 14px -8px rgba(0,0,0,.6); rotate: 2.5deg; }
.pb .pb-eti svg { width: 100%; height: 100%; }
.pb .pb-ojal { position: absolute; left: -6px; top: 50%; width: 11px; height: 11px; margin-top: -5px; border-radius: 50%; background: rgba(0,0,0,.35); box-shadow: inset 0 1px 2px rgba(0,0,0,.6); }
.pb.usada { filter: saturate(.4) brightness(.85); }
.pb.usada .pb-eti { opacity: .55; }

/* previa: ticket de papel térmico (los de abajo de la pila muestran solo la cabecera) */
.tk.ticket-barra { display: grid; align-content: start; gap: 4px; height: 240px; overflow: hidden; width: 100%; text-align: left; padding: 18px 18px 26px; transition: transform .5s var(--rebote); cursor: pointer; }
.tk.ticket-barra:active { transform: scale(.985); }
@media (hover: hover) { .tk.ticket-barra:hover { transform: translateY(-6px); } }
.tk .tk-cab, .tk-grande .tk-cab { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; text-transform: uppercase; letter-spacing: .06em; font-size: .76rem; }
.tk .tk-cab b, .tk-grande .tk-cab b { font-family: var(--display); font-stretch: 125%; font-weight: 900; font-size: 1rem; letter-spacing: 0; color: var(--fucsia); }
.tk .tk-cod, .tk-grande .tk-cod { font-weight: 700; font-size: 1.02rem; letter-spacing: .1em; }
.tk .tk-items { display: grid; gap: 1px; font-size: .84rem; }
.tk .tk-items em, .tk-grande em { font-style: normal; font-weight: 800; color: var(--fucsia); margin-right: 4px; }
.tk .tk-mas { color: rgba(26,10,18,.6); }
.tk .tk-pie, .tk-grande .tk-pie { display: flex; justify-content: space-between; gap: 12px; font-weight: 700; text-transform: uppercase; font-size: .8rem; }
.tk.entregada { opacity: .8; }

/* pantalla completa del QR */
dialog.qr-pleno { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; color: #fff; overflow-y: auto; overscroll-behavior: contain; background: radial-gradient(80% 50% at 50% 0%, #5a0033, #1a0412 60%, #0B0609); }
dialog.qr-pleno[open] { display: block; animation: sube-in .4s var(--suave) both; }
dialog.qr-pleno.saliendo { animation: sube-out .24s var(--suave) both; }
dialog.qr-pleno .fiesta { position: fixed; z-index: 0; }
.qp-in > * { min-width: 0; max-width: 100%; }
.qp-tit { overflow-wrap: anywhere; }
.qp-in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 12px; text-align: center; width: min(100%, 560px); margin-inline: auto; padding: calc(var(--seg-t) + 18px) var(--lado) calc(var(--seg-b) + 34px); }
.qp-x { position: absolute; top: calc(var(--seg-t) + 12px); right: var(--lado); width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.12); color: #fff; transition: transform .4s var(--rebote); }
.qp-x:active { transform: rotate(90deg) scale(.9); }
.qp-x svg { width: 22px; height: 22px; }
.qp-sobre { margin-top: 44px; }
.qp-tit { font-size: clamp(34px, 9vw, 56px); }
.qp-qr { display: grid; justify-items: center; gap: 12px; margin-block: 6px; }
.qp-marco { width: min(78vw, 52svh, 400px); aspect-ratio: 1; padding: 14px; border-radius: 26px; background: #fff; box-shadow: 0 0 0 6px rgba(255,31,154,.55), 0 30px 60px -20px rgba(216,0,122,.7); }
.qp-marco svg { width: 100%; height: 100%; }
.qp-cod { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-weight: 700; font-size: 1.25rem; letter-spacing: .12em; }
.qp-resto { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; justify-items: center; width: 100%; }
.qp-items { display: grid; gap: 8px; width: 100%; text-align: left; }
.qp-items li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.07); outline: 1.5px solid rgba(255,255,255,.12); outline-offset: -1.5px; }
.qp-items li.ok { background: rgba(123,224,176,.12); outline-color: rgba(123,224,176,.5); }
.qp-it-n { font-weight: 600; font-size: .95rem; line-height: 1.3; }
.qp-it-n i { font-style: normal; font-size: .62rem; font-family: var(--display); font-stretch: 115%; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; background: var(--fucsia); padding: 2px 7px; border-radius: 6px; margin-left: 4px; }
.qp-it-e { display: inline-flex; align-items: center; gap: 5px; flex: none; font-size: .78rem; font-weight: 700; color: var(--t2); }
.qp-items li.ok .qp-it-e { color: var(--ok); }
.qp-it-e .ico { width: 18px; height: 18px; }
.qp-brillo { display: flex; align-items: center; gap: 8px; max-width: 34ch; }
.qp-brillo .ico { flex: none; width: 18px; height: 18px; }
.qp-acc { display: grid; gap: 12px; width: 100%; }
.qp-acc { grid-template-columns: minmax(0, 1fr); }
.qp-acc .btn { width: 100%; white-space: normal; text-align: center; font-size: .92rem; min-height: 54px; padding: 8px 14px; line-height: 1.15; }

/* ───────── barra ───────── */
.barra-grid { display: grid; gap: 30px; }
.barra-lector { display: grid; gap: 14px; align-content: start; width: min(100%, 420px); }
.escaner { position: relative; aspect-ratio: 1; border-radius: 26px; overflow: hidden; background: #050203; box-shadow: 0 0 0 1.5px rgba(255,31,154,.4), 0 30px 60px -24px rgba(216,0,122,.55); }
.escaner video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s; }
.escaner.activo video { opacity: 1; }
.esq { position: absolute; width: 54px; height: 54px; border: 0 solid var(--vivo); filter: drop-shadow(0 0 8px rgba(255,31,154,.9)); z-index: 2; pointer-events: none; }
.esq.a { top: 18px; left: 18px; border-width: 6px 0 0 6px; border-top-left-radius: 20px; }
.esq.b { top: 18px; right: 18px; border-width: 6px 6px 0 0; border-top-right-radius: 20px; }
.esq.c { bottom: 18px; left: 18px; border-width: 0 0 6px 6px; border-bottom-left-radius: 20px; }
.esq.d { bottom: 18px; right: 18px; border-width: 0 6px 6px 0; border-bottom-right-radius: 20px; }
.linea { position: absolute; left: 22px; right: 22px; top: 22px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, transparent, var(--vivo), transparent); box-shadow: 0 0 14px var(--vivo); z-index: 2; animation: escanear 2.6s ease-in-out infinite alternate; }
@keyframes escanear { from { top: 22px; } to { top: calc(100% - 25px); } }
.escaner-vacio { position: absolute; inset: 0; z-index: 1; display: grid; place-content: center; justify-items: center; gap: 12px; text-align: center; padding: 30px; color: var(--t2); }
.escaner-vacio .ico { width: 54px; height: 54px; color: var(--vivo); }
.escaner-vacio p { font-weight: 600; }
.escaner-msg { min-height: 1.4em; font-size: .9rem; font-weight: 600; color: var(--peluche); }
.escaner-msg.mal { color: #FF9FBC; }
.manual { display: grid; gap: 8px; }
.manual-fila { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.codigo-in { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.barra-res { display: grid; gap: 16px; align-content: start; justify-items: center; width: min(100%, 460px); }
.res-vacio { display: grid; gap: 6px; justify-items: center; text-align: center; padding: 40px 10px; border-radius: 22px; outline: 2px dashed rgba(255,255,255,.2); outline-offset: -2px; width: 100%; }
.res-vacio .mano { font-size: 1.8rem; }
.res-nota { text-align: center; }

.tk-grande { position: relative; width: 100%; display: block; padding: 22px 22px 30px; }
.tk-grande .tk-quien { font-size: .8rem; color: rgba(26,10,18,.7); }
.tk-lista { display: grid; gap: 10px; }
.tk-lista li { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tk-it { display: flex; align-items: baseline; gap: 6px; min-width: 0; font-weight: 600; }
.tk-it em { font-size: 1.1rem; min-width: 1.6em; }
.tk-it i { font-style: normal; font-size: .6rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; background: var(--fucsia); color: #fff; padding: 2px 6px; border-radius: 5px; margin-left: 4px; }
.tk-lista li.ok .tk-it { text-decoration: line-through; text-decoration-color: var(--fucsia); text-decoration-thickness: 2px; opacity: .55; }
.tk-ok { display: inline-flex; align-items: center; gap: 4px; font-family: var(--display); font-stretch: 115%; font-weight: 800; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: #0F7A4A; }
.tk-ok .ico { width: 18px; height: 18px; }
.tk-dar { min-height: 40px; padding: 0 14px; font-size: .74rem; flex: none; }
.sello-goma-lugar { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; z-index: 5; }
.sello-goma { position: relative; display: grid; place-items: center; padding: 8px 20px; border: 5px solid var(--fucsia); border-radius: 12px; color: var(--fucsia); rotate: -8deg; mix-blend-mode: multiply; filter: url(#barra-goma); opacity: .92; background: rgba(216,0,122,.04); }
.sello-goma::before { content: ''; position: absolute; inset: 4px; border: 2px solid var(--fucsia); border-radius: 7px; }
.sello-goma b { position: relative; font-family: var(--display); font-stretch: 125%; font-weight: 900; font-size: clamp(1.7rem, 8vw, 2.4rem); letter-spacing: .06em; text-transform: uppercase; line-height: 1; }
.ing { display: grid; gap: 10px; justify-items: center; text-align: center; width: 100%; }
.ing-pulsera { position: relative; width: 100%; display: grid; place-items: center; padding: 26px 0; }
.bw-grande { width: min(100%, 340px); height: 76px !important; }
.ing-pulsera .sello-goma-lugar { position: absolute; }
.ing-pulsera .sello-goma { background: rgba(11,6,9,.55); border-color: #FF7DBD; color: #FF7DBD; mix-blend-mode: normal; }
.ing-pulsera .sello-goma::before { border-color: #FF7DBD; }
.ing-estado { font-weight: 600; max-width: 36ch; }
.ing-estado.mal { color: #FF9FBC; }
.ing-estado.bien { color: var(--ok); }
.ing-acc { display: grid; gap: 12px; width: min(100%, 320px); }

@media (min-width: 900px) {
  .bw-pagina .sec { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); column-gap: clamp(40px, 6vw, 100px); align-items: start; }
  .bw-cab { position: sticky; top: calc(var(--top-h) + 30px); grid-row: 1 / 8; }
  .bw-grupo, .bw-pie, .bw-vacio { grid-column: 2; }
  .barra-grid { grid-template-columns: minmax(0, 420px) minmax(0, 460px); column-gap: clamp(40px, 6vw, 100px); }
}
@media (prefers-reduced-motion: reduce) { .linea { animation: none; top: 50%; } }

/* encabezado compacto (pedido de Santiago: «achicá esto») */
.bw-cab { gap: 4px !important; margin-bottom: 18px !important; }
.bw-cab .bw-tit { font-size: clamp(30px, 8vw, 44px) !important; line-height: 1; }
.bw-cab .txt-s { max-width: 40ch; }
.bw-pagina .sec { padding-top: 18px !important; }
