:root {
  --ticket-metric-size: clamp(40px, 12vw, 64px);
  font-family: system-ui, sans-serif;
  color: #162e2a;
  background: #f4f5ef;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
main {
  max-width: 480px;
  margin: auto;
  padding: 28px 24px;
}
header {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 3px;
}
.logo {
  background: #183f35;
  color: white;
  border-radius: 15px;
  padding: 5px 12px;
  font-size: 32px;
  letter-spacing: -3px;
}
.logo span {
  color: #c6ed83;
  font-size: 14px;
}
.badge {
  margin-top: 48px;
  color: #537261;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
}
h1 {
  font-size: 46px;
  line-height: 1.06;
  letter-spacing: -2px;
  margin: 16px 0;
}
p {
  color: #67776e;
  line-height: 1.6;
}
section {
  margin-top: 28px;
  text-align: center;
  background: white;
  border: 1px solid #dfe5da;
  border-radius: 26px;
  padding: 28px 24px;
  box-shadow: 0 12px 35px #173b3010;
}
#label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #778775;
}
#number {
  font-size: 92px;
  font-weight: 750;
  letter-spacing: -5px;
  color: #234e3f;
}
h2 {
  font-size: 22px;
  margin: 0;
}
button {
  width: 100%;
  padding: 17px;
  border: 0;
  border-radius: 14px;
  background: #234e3f;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  margin-top: 12px;
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
}
.secondary {
  background: #e6f1d5;
  color: #234e3f;
}
.quiet {
  background: transparent;
  color: #738172;
  font-size: 13px;
}
footer {
  text-align: center;
  color: #7d897e;
  font-size: 12px;
  line-height: 1.9;
  margin-top: 28px;
}
footer strong {
  display: block;
  margin-top: 20px;
  color: #234e3f;
}
#error {
  color: #a13428;
  font-size: 14px;
}
[hidden] {
  display: none !important;
}

dialog { max-width: 440px; width: calc(100% - 40px); max-height: 85vh; overflow: auto; border: 1px solid #dfe5da; border-radius: 24px; padding: 26px; color: #162e2a; }
dialog::backdrop { background: #162e2a99; }
dialog li { margin: 14px 0; line-height: 1.5; }

/* Número, tiempo restante y regreso comparten la misma jerarquía visual. */
.metric-label { font-size: 11px; font-weight: 750; letter-spacing: 1.6px; color: #537261; }
.wait-duration { font-size: var(--ticket-metric-size); font-weight: 800; letter-spacing: -2px; line-height: 1.15; margin: 12px 0 24px; color: #183f35; font-variant-numeric: tabular-nums; }
.return-card { background: #e6f1d5; padding: 20px 12px; border-radius: 18px; }
.return-time { font-size: var(--ticket-metric-size); font-weight: 800; letter-spacing: -2px; line-height: 1.15; margin: 8px 0 0; color:#183f35; font-variant-numeric:tabular-nums; }
#return-date { font-size: 13px; color:#537261; margin-top: 6px; }
.estimate-caption { font-size: 12px; margin: 14px 0 22px; }
.has-ticket .badge, .has-ticket h1 { display:none; }
.has-ticket #shop { margin: 20px 0 0; }
.has-ticket section { margin-top: 18px; padding-top: 26px; }
.has-ticket .ticket-meta { border-bottom:1px solid #edf0e8; padding-bottom:20px; margin-bottom:20px; }
.has-ticket #number { font-size:var(--ticket-metric-size); font-weight:800; letter-spacing:-2px; line-height:1.15; margin-top:8px; font-variant-numeric:tabular-nums; }
.has-ticket #status { font-size:16px; font-weight:600; margin-top:10px; }
.has-ticket #detail { font-size:13px; margin:8px 0; }

.current-number-row { display:flex; align-items:center; justify-content:center; gap:10px; font-size:14px; color:#67776e; margin-top:8px; }
#current-number { color:#234e3f; font-size:24px; font-variant-numeric:tabular-nums; }
