@import url('https://fonts.googleapis.com/css2?family=Anton&family=Space+Mono:wght@400;700&family=Rubik:wght@400;500;700;900&family=Playfair+Display:ital,wght@0,600;1,600&display=swap');

/* Paleta oficial de marca TigerBox (manual Lumbral, 2021) */
:root {
  --bg: #0f1218;
  --bg-card: #191d26;
  --navy: #0f1820;
  --orange: #fd5200;
  --orange-dark: #d94500;
  --peach: #ffcfaf;
  --green: #4ade80;
  --red: #f87171;
  --text: #f4f1ea;
  --text-dim: #b3aeb9;
  --border: #2a2e38;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Rubik', sans-serif;
  background: radial-gradient(circle at top, #1a1f29 0%, var(--bg) 70%);
  color: var(--text);
  min-height: 100vh;
}

.arcade, .display {
  font-family: 'Anton', 'Rubik', sans-serif;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.mono-tag {
  font-family: 'Space Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 2px;
}

header.top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 18px 28px;
  border-bottom: 3px solid var(--orange);
  background: var(--navy);
}

header.top .brand {
  grid-column: 2;
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 14px;
}

header.top .clock {
  grid-column: 3;
  justify-self: end;
  font-family: 'Space Mono', monospace;
}

header.top .logo {
  font-family: 'Anton', cursive;
  color: var(--orange);
  font-size: 18px;
  letter-spacing: 1px;
}

header.top .sub {
  color: var(--peach);
  font-family: 'Space Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 12px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}

h1, h2, h3 {
  font-family: 'Anton', 'Rubik', sans-serif;
  text-transform: uppercase;
  letter-spacing: .5px;
  font-weight: 400;
}

h1.title {
  font-family: 'Anton', cursive;
  color: var(--orange);
  font-size: 30px;
  margin-bottom: 6px;
}

label {
  display: block;
  margin: 14px 0 6px;
  font-size: 14px;
  color: var(--text-dim);
}

input, select, button {
  font-family: inherit;
  font-size: 16px;
}

input[type=text], input[type=tel], input[type=date], input[type=time], input[type=number], select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 2px solid var(--border);
  background: #0b0e13;
  color: var(--text);
}

input:focus, select:focus { outline: none; border-color: var(--orange); }

button.btn {
  margin-top: 20px;
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 10px;
  background: var(--orange);
  color: #fff;
  font-family: 'Anton', 'Rubik', sans-serif;
  text-transform: uppercase;
  letter-spacing: .5px;
  font-size: 17px;
  cursor: pointer;
  transition: transform .1s ease;
}
button.btn:hover { background: var(--orange-dark); }
button.btn:active { transform: scale(.98); }

button.btn.secondary {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--text);
}

button.btn.small {
  width: auto;
  padding: 8px 14px;
  margin: 0 4px 0 0;
  font-size: 13px;
}

button.btn.danger { background: var(--red); color: #2a0f0f; }
button.btn.green { background: var(--green); color: #0c2417; }

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
}
th, td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
th {
  color: var(--orange);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .5px;
  font-family: 'Space Mono', monospace;
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  font-family: 'Space Mono', monospace;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.badge.wait { background: #4b3a1f; color: #ffcf7a; }
.badge.ok { background: #1f4b30; color: var(--green); }
.badge.confirm { background: #1f3a4b; color: #7ac9ff; }
.badge.cancel { background: #4b1f1f; color: var(--red); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 800px) { .grid-2 { grid-template-columns: 1fr; } }

.qr-box {
  text-align: center;
  padding: 30px;
}
.qr-box img { width: 260px; height: 260px; border-radius: 12px; background: #fff; padding: 10px; }

/* ---------------- Ticket de folio (diseño de ticket TigerBox) ---------------- */
.ticket-card {
  max-width: 420px;
  margin: 0 auto;
}

.ticket-card__art {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  container-type: inline-size;
  background-image: url('/assets/img/ticket-bg-pattern.png');
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

.ticket-card__tiger {
  position: absolute;
  left: 45%;
  top: 1.9%;
  width: 10%;
  height: auto;
}

.ticket-card__headline {
  position: absolute;
  left: 8%;
  width: 84%;
  top: 19.7%;
  text-align: center;
  font-family: 'Anton', sans-serif;
  color: #ff5100;
  font-size: 5.5cqw;
  line-height: 1.1;
  letter-spacing: .3px;
}

.ticket-card__ticket {
  position: absolute;
  left: 10%;
  top: 31.4%;
  width: 80%;
  height: 50.4%;
  background-image: url('/assets/img/ticket-shape.png');
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

/* Folio y squad van "impresos" sobre el boleto, inclinados igual que el ticket
   (mismo ángulo que el sello TigerBox), anclados por su esquina inferior izquierda. */
.ticket-card__folio {
  position: absolute;
  left: 16.1%;
  bottom: 49.4%;
  transform-origin: 0% 100%;
  transform: rotate(-9.75deg);
  font-family: 'Anton', sans-serif;
  color: #fff;
  font-size: 4.3cqw;
  line-height: 1;
  white-space: nowrap;
}

.ticket-card__squad {
  position: absolute;
  left: 41.8%;
  bottom: 21.6%;
  transform-origin: 0% 100%;
  transform: rotate(-9.75deg);
  font-family: 'Anton', sans-serif;
  color: #fff;
  font-size: 1.9cqw;
  line-height: 1;
  white-space: nowrap;
}

.ticket-card__wordmark {
  position: absolute;
  left: 27%;
  top: 59.1%;
  width: 30.7%;
  height: auto;
  transform: rotate(-9.7deg);
  transform-origin: top left;
}

.ticket-card__pill {
  margin-top: 16px;
  background: #ffeee6;
  color: #ff5100;
  border-radius: 999px;
  padding: 14px 24px;
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.35;
}

.hidden { display: none !important; }

.login-overlay {
  position: fixed; inset: 0; background: rgba(10,9,14,.92);
  display: flex; align-items: center; justify-content: center; z-index: 50;
}
.login-overlay .card { width: 320px; }

.kpi-row { display: flex; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.kpi {
  flex: 1; min-width: 140px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px;
  padding: 16px; text-align: center;
}
.kpi .num { font-family: 'Anton', sans-serif; font-size: 30px; color: var(--orange); }
.kpi .label {
  font-size: 11px; color: var(--text-dim); text-transform: uppercase;
  font-family: 'Space Mono', monospace; letter-spacing: 1px;
}

.weekday-picker { display: flex; gap: 6px; flex-wrap: wrap; }
.weekday-picker label {
  margin: 0; display: flex; align-items: center; gap: 6px;
  background: #0b0e13; border: 2px solid var(--border); border-radius: 8px; padding: 6px 10px;
  font-size: 13px; cursor: pointer;
}
.weekday-picker input { width: auto; }

.filters-row { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-end; }
.filters-row > div { flex: 1; min-width: 140px; }

.next-list { margin-top: 20px; }
.next-list .row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; border-radius: 12px; background: #0b0e13; margin-bottom: 10px;
  border-left: 6px solid var(--orange);
}
.next-list .row .name { font-weight: 700; font-size: 18px; }
.next-list .row .folio {
  color: var(--peach); font-size: 13px; font-family: 'Space Mono', monospace; letter-spacing: 1px;
}
.next-list .row .people { font-family: 'Anton', sans-serif; font-size: 24px; color: var(--orange); }

.footer-note { text-align: center; color: var(--text-dim); font-size: 12px; margin-top: 20px; }

.brand-icon {
  position: absolute;
  opacity: .9;
  pointer-events: none;
}
