.rol {
  display: block;
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.rol select { width: 100%; margin-top: 0.35rem; }

#pass-raiz[hidden] { display: none !important; pointer-events: none !important; }

.pass-x {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 30;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: #101318;
  color: #F4C430;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.pass-cortina {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(20, 18, 14, 0.55);
  display: flex;
  justify-content: center;
  padding: 1.2rem;
  overflow: auto;
}

.pass-dialogo {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.pass-controles, .pass-preview {
  border-radius: 18px;
  padding: 1.1rem 1.15rem;
}
.pass-controles { background: #fff; border: 1px solid #e6e8ec; }
.pass-preview { background: #e8ebf0; }

.pass-controles { position: sticky; top: 0; z-index: 2; max-height: calc(100vh - 2.4rem); overflow: auto; }
.pass-preview { position: relative; z-index: 1; min-width: 0; }

.pass-kicker {
  margin: 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--muted);
}

.pass-controles h2 { font-weight: 650; letter-spacing: -0.02em; margin: 0.2rem 0 0.6rem; }

.pass-nota { color: var(--muted); font-size: 0.92rem; }

.pass-bloqueo {
  background: var(--red-bg);
  color: var(--red);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
}

.pass-bloqueo ul, .pass-versiones { margin: 0.4rem 0 0; padding-left: 1.1rem; }

.pass-confirm {
  margin-top: 0.8rem;
  background: var(--amber-bg);
  color: var(--amber);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
}

.pass-confirm p { margin: 0.25rem 0; }

.pass-bitacora { display: block; overflow-x: auto; margin-top: 0.8rem; font-size: 0.82rem; }

.pass-bitacora th, .pass-bitacora td { padding: 0.4rem; }

.pass-controles label { display: block; margin-top: 0.8rem; font-size: 0.9rem; }


.pase {
  width: min(100%, 440px);
  margin: 0 auto;
  color: #101318;
  background: #fff;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
.pase-hoja { background: #fff; overflow: hidden; border-radius: 22px; box-shadow: 0 18px 50px rgba(16,19,24,.16); }
.pase-cabeza {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: #101318;
  color: #fff;
  padding: 18px 22px 16px;
}
.pase-marca { display: flex; align-items: center; }
.pase-logo { height: 34px; width: auto; }
.pase-wordmark { line-height: .9; }
.pase-xtreme, .pase-pass { margin: 0; font-weight: 750; letter-spacing: .2em; font-size: 1.15rem; }
.pase-pass { color: #F4C430; }
.pase-sello {
  margin: 0;
  max-width: 7.4rem;
  border: 1.5px solid #F4C430;
  color: #F4C430;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: .62rem;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.25;
}
.pase-escena {
  position: relative;
  min-height: 148px;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(118deg, #101318 0 68%, #F4C430 68% 70.5%, #101318 70.5%);
  color: #fff;
}
.pase-escena img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pase-escena-texto { position: relative; z-index: 1; padding: 28px 22px 18px; }
.pase-escena:has(img) .pase-escena-texto {
  width: 100%;
  background: linear-gradient(transparent, rgba(16,19,24,.72));
}
.pase-agencia { margin: 0; color: #F4C430; font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; }
.pase-destino { margin: 6px 0 0; max-width: 11ch; font-size: 2.15rem; line-height: .92; letter-spacing: -.04em; font-weight: 750; }
.pase-folio { padding: 16px 22px 4px; }
.pase-etiqueta { margin: 0; color: #687384; font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; }
.pase-codigo { margin: 1px 0 0; font-size: 1.7rem; line-height: 1; letter-spacing: .01em; font-weight: 750; }
.pase-datos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; padding: 14px 22px 6px; }
.pase-datos span, .pase-dinero h2, .pase-notas h2, .pase-qr-item span {
  display: block;
  color: #687384;
  font-size: .64rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  font-weight: 700;
}
.pase-datos strong { display: block; margin-top: 3px; font-size: 1rem; font-weight: 680; letter-spacing: -.01em; }
.pase-datos small { display: block; margin-top: 2px; color: #687384; font-size: .78rem; }
.pase-ancho { grid-column: 1 / -1; }
.pase-dinero { margin: 8px 22px 0; padding-top: 12px; border-top: 1px solid #eceff3; }
.pase-dinero h2, .pase-notas h2 { margin: 0 0 8px; }
.pase-monto, .pase-saldo { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.pase-monto { padding: 3px 0; font-size: .95rem; }
.pase-saldo { margin-top: 10px; padding: 12px 14px; background: #101318; color: #fff; border-radius: 14px; }
.pase-saldo strong { color: #F4C430; font-size: 1.15rem; }
.pase-limite { margin: 8px 2px 0; font-size: .84rem; }
.pase-notas { padding: 14px 22px 4px; }
.pase-lista { margin: 0; padding-left: 1.05rem; }
.pase-lista li { margin: 4px 0; font-size: .9rem; }
.pase-cierre { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 22px 16px; }
.pase-cierre-texto p { margin: 0; font-size: .92rem; }
.pase-cierre-texto p + p { color: #687384; font-size: .8rem; margin-top: 2px; }
.pase-aviso-cliente { margin: 0; color: #687384; font-size: .84rem; }
.pase-qrs { display: flex; gap: 12px; }
.pase-qr-item { text-align: center; }
.pase-qr, .pase-qr svg { width: 68px; height: 68px; }
.pase-qr svg { display: block; background: #fff; }
.pase-qr-item span { margin-bottom: 4px; }
.pase-pie {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  background: #101318;
  color: #fff;
  padding: 13px 22px;
}
.pase-pie p { margin: 0; font-size: .68rem; letter-spacing: .08em; }
.pase-pie p:nth-child(2) { color: #F4C430; }

.cat-pendiente { color: #8a5a12; font-weight: 600; }
.nota { color: var(--muted); font-size: .9rem; }
.cat-ficha { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 1rem; margin: 0 0 .8rem; }
.cat-ficha h2 { margin: 0 0 .3rem; font-weight: 680; letter-spacing: -0.02em; }
.cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem .8rem; margin: .5rem 0; }
.cat-grid div { font-size: .92rem; }
.cat-grid span { display: block; color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; }
.cat-tabs { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .8rem; }
.cat-ficha label { display: block; margin-top: .55rem; font-size: .85rem; }
.cat-ficha input { display: block; width: 100%; margin-top: .2rem; border: 1px solid var(--line); background: white; border-radius: 8px; padding: 0.55rem 0.7rem; }
.cat-tabs button[aria-pressed="true"] { background: #111; color: #ffe14a; border-color: #111; }

@page { size: A4 portrait; margin: 0; }

@media print {
  body.imprimir-pass .aviso,
  body.imprimir-pass .app,
  body.imprimir-pass .pass-controles,
  body.imprimir-pass .pass-x { display: none !important; }
  body.imprimir-pass #pass-raiz { display: block !important; }
  body.imprimir-pass .pass-cortina { position: static; background: #fff; padding: 0; overflow: visible; }
  body.imprimir-pass .pass-dialogo { display: block; width: auto; }
  body.imprimir-pass .pass-preview { padding: 0; background: #fff; border-radius: 0; }
  body.imprimir-pass .pase { width: 188mm; margin: 7mm auto; }
  body.imprimir-pass .pase-hoja { box-shadow: none; border-radius: 0; }
  body.imprimir-pass .pase-cabeza { padding: 12px 16px; }
  body.imprimir-pass .pase-escena { min-height: 34mm; }
  body.imprimir-pass .pase-destino { font-size: 28px; }
  body.imprimir-pass .pase-datos { gap: 8px 14px; padding-top: 8px; }
  body.imprimir-pass .pase-lista li { margin: 2px 0; }
  body.imprimir-pass .pase-cabeza,
  body.imprimir-pass .pase-escena,
  body.imprimir-pass .pase-saldo,
  body.imprimir-pass .pase-pie {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

@media (max-width: 860px) {
  .pass-dialogo { grid-template-columns: 1fr; }
  .pass-controles { position: static; max-height: none; }
  .cat-grid { grid-template-columns: 1fr; }
}
