/* Compra de boletos en la página (diálogo). Usa las variables --as-* de cada tema.
   Sin sombras ni desenfoques; todo el texto en rem (escala con la fuente del usuario). */

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Aviso permanente de demostración */
.demo-banner {
  z-index: 35;
  margin: 0;
  padding: 10px 16px;
  background: #ffd54a;
  color: #1b1416;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}
.demo-banner-page { position: sticky; top: 0; }
.demo-banner-in { position: static; }

body.cp-open { overflow: hidden; }
.cp-overlay { position: fixed; inset: 0; z-index: 70; background: rgba(0, 0, 0, 0.6); }
.cp-panel {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background: var(--as-bg, #141414);
  color: var(--as-fg, #f5f5f5);
  font-size: 1rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.cp-panel :focus-visible { outline: 3px solid var(--as-focus, #fff); outline-offset: 2px; }
.cp-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 4px 4px 16px;
  background: var(--as-head, #1c1c1c);
  color: var(--as-head-fg, #f5f5f5);
  border-bottom: 1px solid var(--as-line, #2a2a2a);
}
.cp-head :focus-visible { outline-color: var(--as-head-focus, #fff); }
.cp-marca { margin: 0; line-height: 0; }
.cp-logo { display: block; }
.cp-logo img { display: block; width: 84px; height: auto; }
.cp-close { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; }
.cp-close svg { width: 24px; height: 24px; fill: currentColor; }
.cp-progreso { padding: 12px 16px 0; }
.cp-paso { margin: 0 0 8px; font-weight: 700; }
.cp-barra { height: 8px; border-radius: 99px; background: var(--as-line, #2a2a2a); overflow: hidden; }
.cp-barra span { display: block; height: 100%; background: #25d366; }
.cp-p1 span { width: 20%; } .cp-p2 span { width: 40%; } .cp-p3 span { width: 60%; } .cp-p4 span { width: 80%; } .cp-p5 span { width: 100%; }

.cp-cuerpo { width: 100%; max-width: 680px; margin: 0 auto; padding: 16px 16px 40px; }
.cp-titulo { margin: 8px 0 16px; font-size: 1.5rem; line-height: 1.2; letter-spacing: 0; }
.cp-titulo:focus { outline: none; }
.cp-panel h3 { margin: 16px 0 8px; font-size: 1.125rem; letter-spacing: 0; }
.cp-panel h4 { margin: 12px 0 4px; font-size: 1rem; letter-spacing: 0; }
.cp-panel p { max-width: none; }
.cp-form, .cp-bloque { display: flex; flex-direction: column; gap: 16px; }
.cp-form p, .cp-bloque p { margin: 0; }

.cp-grupo { margin: 0; padding: 12px 14px 14px; border: 2px solid var(--as-line-strong, #4a4a4a); border-radius: var(--as-radius, 12px); min-width: 0; }
.cp-grupo legend { padding: 0 8px; font-weight: 800; }
.cp-campo { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.cp-campo label, .cp-campo > label { font-weight: 700; }
.cp-input {
  width: 100%;
  min-height: 48px;
  padding: 8px 12px;
  border: 2px solid var(--as-line-strong, #4a4a4a);
  border-radius: 10px;
  background: var(--as-input, #0a0a0a);
  color: var(--as-fg, #f5f5f5);
  font: inherit;
}
.cp-input[aria-invalid="true"] { border-color: var(--as-error, #ff9e94); }
.cp-ayuda { font-size: 0.9375rem; }
.cp-error, .cp-aviso { color: var(--as-error, #ff9e94); font-size: 0.9375rem; font-weight: 700; }
.cp-aviso { padding: 10px 12px; border: 2px solid var(--as-error, #ff9e94); border-radius: 10px; }
.cp-aviso:focus { outline: 3px solid var(--as-focus, #fff); }
.cp-nota { padding: 10px 12px; border: 2px dashed var(--as-line-strong, #4a4a4a); border-radius: 10px; font-size: 0.9375rem; }
.cp-nota-fuerte { border: 2px solid var(--as-error, #ff9e94); font-weight: 700; }

.cp-opcion { display: flex; align-items: center; gap: 12px; min-height: 48px; }
.cp-opcion input { flex: none; width: 24px; height: 24px; margin: 0; accent-color: #25d366; }
.cp-opcion label { flex: 1; display: flex; align-items: center; min-height: 48px; padding: 6px 0; cursor: pointer; font-weight: 600; }
.cp-opcion input:disabled + label { opacity: 1; text-decoration: line-through; }
.cp-consent a { color: inherit; font-weight: 700; }
.cp-resumen { font-weight: 700; }
.cp-total, .cp-total-g { margin: 0; font-size: 1.125rem; }
.cp-total-g { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; }
.cp-total-g strong { font-size: 1.5rem; }

.cp-acciones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.cp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 22px;
  border: 2px solid transparent;
  border-radius: var(--btn-radius, 12px);
  background: #25d366;
  color: #062b14;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.cp-btn:not(.cp-btn-2):hover:not(:disabled) { background: #3fe07c; }
.cp-btn:disabled { cursor: not-allowed; background: transparent; border: 2px dashed var(--as-line-strong, #4a4a4a); color: var(--as-fg, #f5f5f5); }
.cp-btn-2 { background: transparent; color: var(--as-fg, #f5f5f5); border-color: var(--as-chip, #4a4a4a); }
.cp-btn-2:hover:not(:disabled) { background: var(--as-msg, #1c1c1c); }
.cp-copiar {
  min-width: 44px;
  min-height: 44px;
  padding: 6px 14px;
  border: 2px solid var(--as-chip, #4a4a4a);
  border-radius: 999px;
  background: transparent;
  color: var(--as-fg, #f5f5f5);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.cp-copiar:hover { background: var(--as-msg, #1c1c1c); }

.cp-instrucciones { padding: 4px 14px 14px; border: 2px solid var(--as-line-strong, #4a4a4a); border-radius: var(--as-radius, 12px); }
.cp-dato { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 6px 0; border-bottom: 1px solid var(--as-line, #2a2a2a); }
.cp-dato:last-child { border-bottom: 0; }
.cp-dato-e { font-size: 0.9375rem; font-weight: 600; }
.cp-dato-v { flex: 1 1 10rem; font-weight: 800; }
.cp-codigo-bloque { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px 14px; border: 2px solid var(--as-chip, #4a4a4a); border-radius: var(--as-radius, 12px); }
.cp-codigo { margin: 0; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 1.625rem; font-weight: 800; letter-spacing: 0.06em; overflow-wrap: anywhere; }
.cp-reloj { font-weight: 700; }
.cp-politica summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 700; }

.cp-archivo { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.cp-archivo:focus-visible + .cp-archivo-label { outline: 3px solid var(--as-focus, #fff); outline-offset: 2px; }
.cp-archivo-w { display: flex; }
.cp-vista { border: 2px solid var(--as-line-strong, #4a4a4a); border-radius: 10px; padding: 8px; background: #fff; }
.cp-vista-img { max-height: 320px; width: auto; margin: 0 auto; }
.cp-progress { width: 100%; height: 16px; accent-color: #25d366; }
.cp-estado-subida { min-height: 1.5em; font-weight: 600; }

.cp-estado { display: inline-block; align-self: flex-start; padding: 4px 14px; border: 2px solid currentColor; border-radius: 999px; font-weight: 800; }
.cp-est-verificado { color: var(--as-ok, #7be0a0); }
.cp-est-rechazado, .cp-est-cancelada, .cp-est-expirada { color: var(--as-error, #ff9e94); }

/* Boleto: siempre blanco con tinta negra para que se lea y se escanee bien */
.cp-boleto {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px 16px;
  border: 3px solid #111;
  border-radius: 14px;
  background: #fff;
  color: #111;
  text-align: center;
}
.cp-boleto-t { margin: 0; font-weight: 800; letter-spacing: 0.04em; }
.cp-boleto-logo { display: block; line-height: 0; }
.cp-boleto-logo img { display: block; width: 160px; max-width: 100%; height: auto; }
.cp-qr { display: block; width: 220px; max-width: 100%; height: auto; image-rendering: pixelated; }
.cp-boleto .cp-codigo { font-size: 1.5rem; }
.cp-boleto-d { width: 100%; margin: 0; text-align: left; }
.cp-boleto-d dt { margin-top: 8px; font-size: 0.9375rem; font-weight: 700; }
.cp-boleto-d dd { margin: 0; font-weight: 800; }
.cp-marca-agua {
  position: absolute;
  top: 50%;
  left: 50%;
  margin: 0;
  transform: translate(-50%, -50%) rotate(-30deg);
  color: rgba(0, 0, 0, 0.1);
  font-size: 6rem;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.cp-boleto .cp-btn-2 { color: #111; border-color: #111; }
.cp-boleto .cp-btn-2:hover { background: #eee; }
.cp-boleto :focus-visible { outline-color: #111; }

@media (max-width: 479px) {
  .cp-acciones > .cp-btn { flex: 1 1 100%; }
}
@media (min-width: 720px) {
  .cp-overlay { background: rgba(0, 0, 0, 0.55); }
  .cp-panel { inset: 24px auto 24px 50%; width: min(700px, calc(100% - 48px)); transform: translateX(-50%); border: 2px solid var(--as-line-strong, #4a4a4a); border-radius: var(--as-radius, 12px); }
  .cp-head { border-radius: var(--as-radius, 12px) var(--as-radius, 12px) 0 0; }
}
@media print {
  body > *:not(.cp-panel) { display: none !important; }
  body.cp-open { overflow: visible; }
  .cp-panel { position: static !important; display: block !important; transform: none !important; width: auto !important; border: 0 !important; overflow: visible !important; background: #fff !important; color: #000 !important; }
  .cp-head, .cp-progreso, .cp-banner-slot, .cp-no-imprimir, .cp-acciones, .cp-titulo, .cp-estado, .cp-bloque > p { display: none !important; }
  .cp-boleto { border-color: #000; }
}
@media (prefers-reduced-motion: reduce) {
  .cp-panel, .cp-overlay { transition: none; }
}
