/* boletos.express, direction B ("Express"): the shared shell.
   Layout, tokens, header, footer, buttons, pills and the bottom sheet.
   Page-specific rules live in their own file (boletos_express_event.css, ...). */

:root {
  --bx-blue: #005ee4;
  --bx-blue-700: #0049b8;
  --bx-blue-50: #eef4ff;
  --bx-blue-100: #dce8ff;
  --bx-bg: #f4f7fb;
  --bx-surface: #fff;
  --bx-ink: #0b1b33;
  --bx-ink-2: #2b3a52;
  --bx-muted: #5b6b82;
  --bx-line: #e3e8f0;
  --bx-line-strong: #c9d3e1;
  --bx-green: #0f9d58;
  --bx-green-50: #e7f6ee;
  --bx-amber: #c96f00;
  --bx-amber-50: #fff3e0;
  --bx-amber-ink: #7a4300;
  --bx-red: #d93a3f;
  --bx-red-50: #fdecec;
  --bx-disabled: #b7c6dc;
  --bx-disabled-ink: #a9b6c8;
  --bx-grab: #d3dbe6;
  --bx-scrim: rgb(11 27 51 / 45%);
  --bx-topbar-bg: rgb(255 255 255 / 92%);
  --bx-on-blue: #fff;
  --bx-r-sm: 10px;
  --bx-r-md: 16px;
  --bx-r-lg: 24px;
  --bx-shadow-sm: 0 1px 2px rgb(11 27 51 / 6%), 0 1px 1px rgb(11 27 51 / 4%);
  --bx-shadow: 0 6px 24px -8px rgb(11 27 51 / 18%), 0 2px 6px rgb(11 27 51 / 5%);
  --bx-shadow-cta: 0 8px 20px -8px rgb(0 94 228 / 60%);
  --bx-display: "Outfit", system-ui, sans-serif;
  --bx-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --bx-gutter: 16px;
}

@media (width >= 768px) {
  :root { --bx-gutter: 32px; }
}

.bx {
  margin: 0;
  font-family: var(--bx-body);
  color: var(--bx-ink);
  background: var(--bx-bg);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.bx.bx--locked { overflow: hidden; }
.bx-main { flex: 1; }
:where(.bx) :is(h1, h2, h3, h4) { font-family: var(--bx-display); margin: 0; letter-spacing: -0.01em; line-height: 1.15; }
:where(.bx) p { margin: 0; }
:where(.bx) img { display: block; max-width: 100%; }
:where(.bx) a { color: inherit; text-decoration: none; }
:where(.bx) button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
:where(.bx) [hidden] { display: none !important; }

.bx-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--bx-gutter); }

/* ---------- top bar ---------- */
.bx-topbar {
  position: sticky; top: 0; z-index: 40;
  background: var(--bx-topbar-bg);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--bx-line);
}
.bx-topbar .bx-wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.bx-topbar__brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.bx-topbar__brand img { height: 30px; width: auto; flex: none; }
.bx-topbar__name { font-family: var(--bx-display); font-weight: 700; font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bx-topbar__actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }

.bx-icon-btn {
  width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center;
  color: var(--bx-ink-2); font-size: 17px;
}
.bx-icon-btn:hover { background: var(--bx-bg); }

.bx-nav-link {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 40px; height: 40px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--bx-ink-2);
}
.bx-nav-link:hover { background: var(--bx-bg); }
.bx-nav-link__label { display: none; }

@media (width >= 900px) {
  .bx-nav-link { width: auto; padding: 0 14px; }
  .bx-nav-link__label { display: inline; }
}

/* ---------- buttons ---------- */
.bx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 700; font-size: 15px; white-space: nowrap;
  transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.bx-btn:active { transform: scale(0.98); }
.bx-btn--primary { background: var(--bx-blue); color: var(--bx-on-blue); box-shadow: var(--bx-shadow-cta); }
.bx-btn--primary:hover { background: var(--bx-blue-700); }
.bx-btn--primary[disabled] { background: var(--bx-disabled); box-shadow: none; cursor: not-allowed; }
.bx-btn--soft { background: var(--bx-blue-50); color: var(--bx-blue); }
.bx-btn--soft:hover { background: var(--bx-blue-100); }
.bx-btn--ghost { background: transparent; color: var(--bx-ink-2); border: 1.5px solid var(--bx-line); }
.bx-btn--ghost:hover { border-color: var(--bx-line-strong); }
.bx-btn--sm { height: 38px; padding: 0 16px; font-size: 14px; }
.bx-btn--lg { height: 56px; font-size: 16px; }
.bx-btn--block { width: 100%; }
.bx :is(a, button, input):focus-visible { outline: 3px solid var(--bx-blue); outline-offset: 2px; }

/* ---------- pills and cards ---------- */
.bx-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; white-space: nowrap; }
.bx-pill--blue { background: var(--bx-blue-50); color: var(--bx-blue); }
.bx-pill--green { background: var(--bx-green-50); color: var(--bx-green); }
.bx-pill--amber { background: var(--bx-amber-50); color: var(--bx-amber); }
.bx-pill--red { background: var(--bx-red-50); color: var(--bx-red); }
.bx-pill--plain { background: var(--bx-surface); border: 1px solid var(--bx-line); color: var(--bx-ink-2); }

.bx-card { background: var(--bx-surface); border: 1px solid var(--bx-line); border-radius: var(--bx-r-lg); padding: 22px; box-shadow: var(--bx-shadow); }
.bx-notice { display: flex; gap: 12px; align-items: flex-start; border-radius: var(--bx-r-md); padding: 12px 14px; font-size: 14px; }
.bx-notice i { margin-top: 3px; }
.bx-notice--amber { background: var(--bx-amber-50); color: var(--bx-amber-ink); }
.bx-notice--amber i { color: var(--bx-amber); }
.bx-notice--red { background: var(--bx-red-50); color: var(--bx-red); }

/* ---------- bottom sheet ---------- */
.bx-scrim { position: fixed; inset: 0; background: var(--bx-scrim); z-index: 60; opacity: 0; pointer-events: none; transition: opacity 0.2s ease; }
.bx-scrim.is-open { opacity: 1; pointer-events: auto; }

.bx-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; background: var(--bx-surface);
  border-radius: 28px 28px 0 0; max-height: 92vh; display: flex; flex-direction: column;
  transform: translateY(105%); visibility: hidden;
  transition: transform 0.28s cubic-bezier(0.2, 0.9, 0.3, 1), visibility 0s linear 0.28s;
}
.bx-sheet.is-open { transform: translateY(0); visibility: visible; transition-delay: 0s; }
.bx-sheet__grab { width: 44px; height: 5px; border-radius: 99px; background: var(--bx-grab); margin: 10px auto 4px; }
.bx-sheet__head { display: flex; align-items: center; justify-content: space-between; padding: 8px 20px 12px; gap: 12px; }
.bx-sheet__head h3 { font-size: 20px; }
.bx-sheet__head p { font-size: 13px; color: var(--bx-muted); }
.bx-sheet__body { overflow-y: auto; padding: 0 20px 8px; }
.bx-sheet__foot { border-top: 1px solid var(--bx-line); padding: 14px 20px calc(16px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 14px; }
.bx-sheet__total small { display: block; font-size: 12px; color: var(--bx-muted); }
.bx-sheet__total b { font-family: var(--bx-display); font-size: 22px; }
.bx-sheet__foot .bx-btn { flex: 1; }

@media (width >= 760px) {
  .bx-sheet {
    inset: 50% auto auto 50%; width: 540px; border-radius: 28px;
    transform: translate(-50%, -46%) scale(0.98); opacity: 0; pointer-events: none;
    transition: transform 0.22s ease, opacity 0.22s ease, visibility 0s linear 0.22s; max-height: 86vh;
  }
  .bx-sheet.is-open { transform: translate(-50%, -50%) scale(1); opacity: 1; pointer-events: auto; }
  .bx-sheet__grab { display: none; }
  .bx-sheet__head { padding-top: 22px; }
}

/* ---------- footer ---------- */
.bx-footer { margin-top: 56px; border-top: 1px solid var(--bx-line); background: var(--bx-surface); padding: 28px 0 32px; font-size: 13px; color: var(--bx-muted); }
.bx-footer .bx-wrap { display: grid; gap: 18px; }
.bx-footer__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.bx-footer__top img { height: 24px; width: auto; flex: none; }
.bx-footer__links { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.bx-footer__links a:hover { color: var(--bx-blue); }

/* ---------- flash ---------- */
.bx-flash { position: fixed; left: 50%; top: 76px; transform: translateX(-50%); z-index: 80; max-width: calc(100% - 32px); }

@media (prefers-reduced-motion: reduce) {
  .bx * { transition: none !important; }
}
