/* Ticketera Helix · panel del equipo. Móvil primero, colores de Helix. */
:root { --violeta: #300468; --naranja: #ff6200; --hueso: #f2f0ed; --tinta: #1b1226; --gris: #6b6478; --borde: #e3dee9; --verde: #15803d; --rojo: #b91c1c; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--tinta); background: var(--hueso); }
a { color: var(--violeta); }
h1 { font-size: clamp(1.4rem, 4vw, 2rem); line-height: 1.15; margin: 0 0 1rem; color: var(--violeta); }
h2 { font-size: 1.15rem; margin: 0 0 .75rem; }
h3 { font-size: 1rem; margin: 1.25rem 0 .5rem; }
.barra { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; padding: .6rem 1rem; background: var(--violeta); color: #fff; }
.barra__marca { color: #fff; text-decoration: none; font-weight: 600; margin-right: auto; }
.barra__marca b { color: var(--naranja); }
.menu { display: flex; gap: .25rem; overflow-x: auto; max-width: 100%; }
.menu a { color: #fff; text-decoration: none; padding: .4rem .7rem; border-radius: 999px; white-space: nowrap; font-size: .92rem; opacity: .85; }
.menu a.activo, .menu a:hover { background: rgba(255, 255, 255, .16); opacity: 1; }
.menu__yo { border: 1px solid rgba(255, 255, 255, .35); }
.contenido { max-width: 1100px; margin: 0 auto; padding: 1rem 1rem 5rem; }
.tarjeta { background: #fff; border-radius: 16px; padding: 1rem 1.1rem; margin: 0 0 1rem; box-shadow: 0 2px 10px rgba(30, 10, 60, .06); }
.nota { color: var(--gris); font-size: .9rem; margin: .4rem 0 1rem; }
.aviso { padding: .75rem 1rem; border-radius: 12px; margin: 0 0 1rem; font-weight: 600; }
.aviso--ok { background: #dcfce7; color: #14532d; }
.aviso--error { background: #fee2e2; color: #7f1d1d; }
.boton { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 44px; padding: .55rem 1rem; border: 0; border-radius: 12px; background: var(--violeta); color: #fff; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; transition: transform .1s ease-out, opacity .15s; }
.boton:active { transform: scale(.97); }
.boton:disabled { opacity: .5; cursor: not-allowed; }
.boton--borde { background: #fff; color: var(--violeta); box-shadow: inset 0 0 0 1.5px var(--borde); }
.boton--verde { background: var(--verde); color: #fff; }
.boton--rojo { background: var(--rojo); color: #fff; }
.boton--grande { min-height: 52px; font-size: 1.05rem; width: 100%; }
.boton--chico { min-height: 36px; padding: .3rem .7rem; font-size: .85rem; }
.globo { background: var(--naranja); color: #fff; border-radius: 999px; padding: 0 .5rem; font-size: .8rem; }
.botones { display: flex; flex-wrap: wrap; gap: .5rem; }
.sello { display: inline-block; padding: .15rem .55rem; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.sello--verde { background: #dcfce7; color: #166534; }
.sello--rojo { background: #fee2e2; color: #991b1b; }
.sello--amarillo { background: #fef3c7; color: #92400e; }
.sello--azul { background: #dbeafe; color: #1e40af; }
.sello--gris { background: #eeeaf2; color: #4b4458; }
label { display: grid; gap: .3rem; font-size: .9rem; font-weight: 600; }
input, select, textarea { width: 100%; min-height: 44px; padding: .55rem .7rem; border: 1.5px solid var(--borde); border-radius: 10px; font: inherit; font-weight: 400; background: #fff; color: var(--tinta); }
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid #8a45ff; outline-offset: 1px; border-color: transparent; }
input[type=checkbox], input[type=radio] { width: 20px; min-height: 20px; height: 20px; flex: 0 0 auto; accent-color: var(--violeta); }
label.check { display: flex; align-items: center; gap: .6rem; font-weight: 500; }
.formulario { display: grid; gap: 1rem; }
.rejilla { display: grid; gap: .9rem; }
@media (min-width: 720px) {
  .rejilla { grid-template-columns: 1fr 1fr; }
  .rejilla .ancho { grid-column: 1 / -1; }
  .dos { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1rem; align-items: start; }
}
.opciones { border: 0; padding: 0; margin: 0; display: grid; gap: .6rem; }
.acciones-fijas { position: sticky; bottom: 0; display: flex; gap: .6rem; justify-content: flex-end; padding: .75rem 0; background: linear-gradient(transparent, var(--hueso) 30%); }
.filtros { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 .75rem; }
.filtros select { flex: 1 1 200px; width: auto; }
.filtros input { flex: 2 1 220px; width: auto; }
.pestanas { display: flex; gap: .3rem; overflow-x: auto; margin: 0 0 .5rem; padding-bottom: .25rem; }
.pestanas a { padding: .35rem .8rem; border-radius: 999px; text-decoration: none; white-space: nowrap; background: #fff; font-size: .88rem; }
.pestanas a.activo { background: var(--violeta); color: #fff; }
.tabla-scroll { overflow-x: auto; background: #fff; border-radius: 14px; margin: 0 0 1rem; }
.tabla { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tabla th, .tabla td { padding: .6rem .7rem; border-bottom: 1px solid var(--borde); text-align: left; vertical-align: top; }
.tabla th { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--gris); }
.tabla small { color: var(--gris); }
.tabla .num { text-align: right; white-space: nowrap; }
.tabla .centro { text-align: center; }
.tabla--clic tbody tr { cursor: pointer; }
.tabla--clic tbody tr:hover { background: #faf8fc; }
.tabla--form td { padding: .4rem; }
.tabla--form input { min-width: 110px; }
.tabla form { display: flex; gap: .4rem; flex-wrap: wrap; }
.tabla select { width: auto; }
tr.apagado { opacity: .5; }
.evento__cab { display: flex; justify-content: space-between; gap: 1rem; }
.cifras { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: .6rem; margin: .5rem 0 1rem; }
.cifras div { background: var(--hueso); border-radius: 12px; padding: .6rem .75rem; }
.cifras b { display: block; font-size: 1.4rem; color: var(--violeta); font-variant-numeric: tabular-nums; }
.cifras small { color: var(--gris); }
.datos { display: grid; grid-template-columns: auto 1fr; gap: .3rem 1rem; margin: .75rem 0; }
.datos dt { color: var(--gris); font-size: .88rem; }
.datos dd { margin: 0; overflow-wrap: anywhere; }
.lista { margin: .5rem 0; padding-left: 1.2rem; }
.lista--hist { font-size: .88rem; }
.lista--hist small { color: var(--gris); overflow-wrap: anywhere; }
.acciones { display: grid; gap: .6rem; margin-top: 1rem; }
.accion { display: flex; flex-wrap: wrap; gap: .5rem; }
.accion input { flex: 1 1 200px; width: auto; }
.comprobante { max-width: 100%; border-radius: 12px; border: 1px solid var(--borde); }
.miniatura { margin: 0 0 .4rem; display: flex; gap: .8rem; align-items: center; }
.miniatura img { max-height: 110px; max-width: 200px; border-radius: 8px; border: 1px solid var(--borde); }
.clave { border: 2px solid var(--naranja); }
.clave__texto { font: 700 1.6rem/1.2 ui-monospace, monospace; letter-spacing: .08em; color: var(--violeta); user-select: all; }
.paginas { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.pantalla-entrar { display: grid; place-items: center; min-height: 100vh; background: var(--violeta); }
.pantalla-entrar .contenido { width: 100%; max-width: 380px; padding-bottom: 1rem; }
.entrar { display: grid; gap: 1rem; padding: 1.6rem; }
.entrar__marca { margin: 0; font-size: 1.4rem; font-weight: 600; color: var(--violeta); }
.entrar__marca b { color: var(--naranja); }

/* Escáner: pantalla completa, botones grandes, resultado que se ve a dos metros */
.pantalla-escaner { background: #0d0420; color: #fff; }
.pantalla-escaner .contenido { max-width: 640px; padding: 0 0 2rem; }
.esc__cab { display: flex; align-items: center; gap: .75rem; padding: .7rem 1rem; padding-top: max(.7rem, env(safe-area-inset-top)); background: var(--violeta); }
.esc__volver { color: #fff; text-decoration: none; font-size: 1.5rem; padding: 0 .3rem; }
.esc__tit { flex: 1; display: grid; min-width: 0; }
.esc__tit b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.esc__tit small { opacity: .8; font-size: .8rem; }
.esc__rojo { color: #fecaca; font-weight: 700; opacity: 1 !important; }
.esc__cifra { text-align: right; display: grid; }
.esc__cifra b { font-size: 1.5rem; line-height: 1; font-variant-numeric: tabular-nums; }
.esc__cifra small { opacity: .8; font-size: .75rem; }
.esc__camara { position: relative; aspect-ratio: 3 / 4; max-height: 62vh; width: 100%; background: #000; overflow: hidden; display: grid; place-items: center; }
.esc__camara video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.esc__mira { position: absolute; width: 62%; aspect-ratio: 1; border: 3px solid rgba(255, 255, 255, .85); border-radius: 22px; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .35); pointer-events: none; opacity: 0; }
.esc--activo .esc__mira { opacity: 1; }
.esc__activar { position: relative; z-index: 2; width: auto; background: var(--naranja); margin: 1rem; }
.esc__res { position: fixed; inset: 0; z-index: 20; display: grid; place-content: center; text-align: center; padding: 2rem; gap: .5rem; color: #fff; }
.esc__res[hidden] { display: none; }
.esc__res--ok { background: #15803d; }
.esc__res--mal { background: #b91c1c; }
.esc__res--aviso { background: #b45309; }
.esc__icono { font-size: 6rem; line-height: 1; margin: 0; font-weight: 800; }
.esc__msg { font-size: 1.6rem; font-weight: 800; margin: 0; line-height: 1.2; }
.esc__det { font-size: 1.15rem; margin: 0; opacity: .95; }
.esc__barra { display: flex; gap: .6rem; align-items: end; padding: .8rem 1rem; }
.esc__puerta { flex: 1; color: #fff; font-weight: 500; }
.esc__pend { margin: 0 1rem; padding: .5rem .8rem; border-radius: 10px; background: #b45309; font-weight: 700; }
.esc__pend[hidden] { display: none; }
.esc__log { list-style: none; margin: .5rem 1rem; padding: 0; font-size: .85rem; display: grid; gap: .25rem; }
.esc__log li { padding: .35rem .6rem; border-radius: 8px; background: rgba(255, 255, 255, .07); }
.esc__log--ok { border-left: 4px solid #22c55e; }
.esc__log--mal { border-left: 4px solid #ef4444; }
.esc__log--aviso { border-left: 4px solid #f59e0b; }
.esc__buscar { width: min(640px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0 auto; padding: 0; border: 0; background: var(--hueso); color: var(--tinta); }
.esc__buscar::backdrop { background: rgba(0, 0, 0, .6); }
.esc__buscar-cab { position: sticky; top: 0; display: flex; gap: .5rem; padding: .8rem; background: #fff; }
.esc__lista { list-style: none; margin: 0; padding: .5rem .8rem 2rem; display: grid; gap: .5rem; }
.esc__lista li { display: flex; align-items: center; justify-content: space-between; gap: .75rem; background: #fff; padding: .7rem .8rem; border-radius: 12px; }
.esc__lista li div { display: grid; min-width: 0; }
.esc__lista small { color: var(--gris); overflow-wrap: anywhere; }
@media (prefers-reduced-motion: reduce) { .boton { transition: none; } }
