/* Estilos compartidos por Mis pedidos, administración y pago simulado (mismo look que la portada). */
:root {
  --ink: #141a33; --panel: #1e2648; --panel-2: #29335f; --line: #3a4680;
  --text: #f3efe2; --muted: #aab1d6; --gift: #e2483d; --gold: #f6c945; --pine: #4fbf7a;
  --display: "Pixelify Sans", "Courier New", monospace;
  --body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { background: var(--ink); color: var(--text); font: 17px/1.55 var(--body); margin: 0; }
.wrap { max-width: 960px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); line-height: 1.05; }
h2 { font-size: 1.35rem; }
p { margin: 0; max-width: 62ch; }
a { color: var(--gold); }
.muted { color: var(--muted); }
.err { color: #ff9a8f; font-weight: 700; }
.ok { color: var(--pine); font-weight: 700; }
.topnav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: .9rem; font-family: var(--display); }
.topnav a { color: var(--muted); text-decoration: none; } .topnav a:hover { color: var(--gold); }
.brand { color: var(--gold) !important; letter-spacing: .08em; text-transform: uppercase; display: flex; gap: .5rem; align-items: center; }
.brand i { width: 12px; height: 12px; background: var(--gift); box-shadow: 3px 3px 0 var(--gold); display: inline-block; }
main { padding-block: 1.5rem 3rem; display: grid; gap: 1.4rem; }
.btn { font: 700 1rem var(--display); border: 0; cursor: pointer; padding: .7rem 1.1rem; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; color: var(--ink); background: var(--gold); box-shadow: 0 4px 0 #b08a1f; border-radius: 4px; }
.btn.alt { background: var(--panel-2); color: var(--text); box-shadow: 0 4px 0 #11162c; }
.btn.danger { background: none; color: #ff9a8f; box-shadow: none; padding-inline: .4rem; }
.btn:active { transform: translateY(2px); }
.btn:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.card { background: var(--panel); border-radius: 6px; padding: 1.2rem; display: grid; gap: .8rem; min-width: 0; }
.card.hi { border: 3px solid var(--gold); }
.actions { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; }
.busy { opacity: .6; pointer-events: none; }
.chip { display: inline-block; font: 700 .8rem var(--display); letter-spacing: .04em; padding: .2rem .55rem; border-radius: 3px; background: var(--panel-2); color: var(--gold); }
.chip.entregado { color: var(--pine); } .chip.cancelado { color: #ff9a8f; }
.pasos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.pasos span { height: 8px; background: var(--panel-2); border-radius: 2px; }
.pasos span.on { background: var(--gold); }
.link { display: flex; gap: .5rem; flex-wrap: wrap; }
.link input { flex: 1 1 14rem; min-width: 0; font: .9rem ui-monospace, Menlo, monospace; color: var(--text); background: var(--ink); border: 2px solid var(--line); border-radius: 4px; padding: .5rem; }
.qr { background: #fff; padding: 10px; border-radius: 4px; width: max-content; }
.qr img, .qr canvas { display: block; width: 160px; height: 160px; image-rendering: pixelated; }
select, input[type=text] { font: 1rem var(--body); color: var(--text); background: var(--panel-2); border: 2px solid var(--line); border-radius: 4px; padding: .45rem .55rem; }
dl { display: grid; grid-template-columns: max-content 1fr; gap: .2rem 1rem; margin: 0; font-size: .95rem; }
dt { color: var(--muted); } dd { margin: 0; overflow-wrap: anywhere; }
#gameModal { position: fixed; inset: 0; z-index: 50; background: #0b0f20; display: grid; grid-template-rows: auto 1fr; padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); }
#gameModal .gm-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .5rem 12px; font-family: var(--display); color: var(--gold); }
#gameModal iframe { width: 100%; height: 100%; border: 0; background: #17122b; }
.modal { position: fixed; inset: 0; z-index: 60; background: rgba(5, 8, 20, .75); display: grid; place-items: center; padding: 16px; }
.modal .card { border: 3px solid var(--gold); max-width: 420px; width: 100%; }
.lm-btns { display: grid; gap: .6rem; }
.btn.sso { background: var(--text); color: var(--ink); box-shadow: 0 4px 0 #9a9686; }
.x { background: none; border: 0; color: var(--muted); cursor: pointer; font: 700 .9rem var(--display); }
footer { padding-block: 1rem 3rem; color: var(--muted); font-size: .9rem; }
@media (max-width: 560px) { dl { grid-template-columns: 1fr; } dt { margin-top: .4rem; } }
