:root {
  --bg: #07060A; --ink-2: #110E17; --ink-3: #18131F; --line: rgba(255,255,255,.09);
  --txt: #F4EEF8; --muted: #A99DB5; --pink: #EF4F9A; --violet: #A33EE6;
  --grad: linear-gradient(120deg, #EF4F9A, #A33EE6);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column; color: var(--txt);
  font: 16px/1.55 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: radial-gradient(60% 50% at 85% -10%, rgba(163,62,230,.28), transparent 70%), radial-gradient(50% 40% at -10% 20%, rgba(239,79,154,.18), transparent 70%), var(--bg);
}
a { color: #F7A3CB; }
h1 { font-family: 'Unbounded', 'Arial Black', sans-serif; font-weight: 800; font-size: clamp(30px, 5vw, 46px); line-height: 1.05; letter-spacing: -.03em; margin: 0 0 12px; }
h1 em, h2 em { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-weight: 400; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
h2 { font-family: 'Unbounded', sans-serif; font-size: 20px; margin: 0 0 10px; }
small { display: block; color: var(--muted); font-size: 13px; }
.muted { color: var(--muted); } .small { font-size: 14px; } .center { text-align: center; }
.eyebrow { margin: 0 0 10px; font: 12px/1 'JetBrains Mono', ui-monospace, Consolas, monospace; letter-spacing: .16em; text-transform: uppercase; color: var(--pink); }

.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px clamp(16px, 4vw, 40px); border-bottom: 1px solid var(--line); background: rgba(7,6,10,.7); backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 5; }
.brand { font-family: 'Unbounded', sans-serif; font-weight: 900; color: #fff; text-decoration: none; letter-spacing: .02em; font-size: 18px; }
.brand span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand small { display: inline; font: 500 10px 'JetBrains Mono', monospace; letter-spacing: .4em; color: var(--pink); margin-left: 6px; }
.top nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.top nav a, .top nav .link { padding: 8px 14px; border-radius: 99px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; }
.top nav a.on, .top nav a:hover { color: #fff; background: var(--ink-3); }
.top form { margin: 0; }

.wrap { width: 100%; max-width: 860px; margin: 0 auto; padding: clamp(24px, 5vw, 56px) 16px 60px; flex: 1; }
.card { background: linear-gradient(180deg, var(--ink-3), var(--ink-2)); border: 1px solid var(--line); border-radius: 24px; padding: clamp(22px, 4vw, 40px); margin-bottom: 20px; }
.card.narrow { max-width: 520px; margin-left: auto; margin-right: auto; }
.hello { margin-bottom: 18px; }
.back { display: inline-block; margin-bottom: 14px; color: var(--muted); text-decoration: none; font-size: 14px; }

.msg { padding: 13px 16px; border-radius: 14px; margin: 0 0 18px; font-weight: 600; background: rgba(63,203,139,.12); color: #8EF0C1; border: 1px solid rgba(63,203,139,.3); }
.msg--error { background: rgba(255,90,110,.12); color: #FF9AA8; border-color: rgba(255,90,110,.35); }

.form { display: grid; gap: 16px; margin-top: 20px; }
.form label { display: grid; gap: 7px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row--3 { grid-template-columns: 1fr 1.3fr 1.3fr; }
input, select { width: 100%; padding: 13px 15px; border-radius: 14px; border: 1px solid var(--line); background: #0B0910; color: var(--txt); font: 500 16px/1.3 'Manrope', sans-serif; color-scheme: dark; }
input:focus, select:focus { outline: 2px solid var(--pink); outline-offset: 1px; border-color: transparent; }
.req { color: var(--pink); font-weight: 700; }
.req-nota { margin: -4px 0 0; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; color: #D9D0E2; line-height: 1.45; }
.form .check input { width: 19px; height: 19px; margin-top: 1px; flex: none; accent-color: var(--pink); }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; border: 0; border-radius: 99px; background: var(--grad); color: #fff; font: 700 15px/1 'Manrope', sans-serif; text-decoration: none; cursor: pointer; box-shadow: 0 12px 30px -12px rgba(239,79,154,.8); }
.btn--block { width: 100%; }
.btn--ghost { background: transparent; border: 1px solid var(--line); box-shadow: none; }
.btn--danger { background: #3A1420; border: 1px solid rgba(255,90,110,.4); box-shadow: none; color: #FF9AA8; }
.link { background: none; border: 0; color: var(--muted); cursor: pointer; font: inherit; padding: 0; text-decoration: underline; }
.inline { margin: -6px 0 16px; }
.alt { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); text-align: center; }
.alt p { margin: 0 0 12px; color: var(--muted); }
.danger-zone { border-color: rgba(255,90,110,.2); }

.orders { display: grid; gap: 10px; }
.order { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center; padding: 18px 20px; border-radius: 18px; background: var(--ink-3); border: 1px solid var(--line); color: var(--txt); text-decoration: none; transition: border-color .3s, transform .3s; }
.order:hover { border-color: rgba(239,79,154,.5); transform: translateY(-2px); }
.r { text-align: right; white-space: nowrap; }
.st { padding: 5px 11px; border-radius: 99px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.st--pendiente { background: rgba(255,178,63,.15); color: #FFC56E; }
.st--pagado { background: rgba(163,62,230,.18); color: #D3A4F5; }
.st--enviado { background: rgba(79,163,224,.18); color: #9CCBF0; }
.st--entregado { background: rgba(63,203,139,.15); color: #8EF0C1; }
.st--cancelado { background: rgba(255,90,110,.14); color: #FF9AA8; }

.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 0; margin: 22px 0; }
.steps li { display: grid; gap: 8px; font-size: 13px; color: var(--muted); }
.steps li span { height: 6px; border-radius: 9px; background: var(--line); }
.steps li.done { color: #fff; font-weight: 600; }
.steps li.done span { background: var(--grad); }
.box { padding: 14px 16px; border-radius: 14px; background: var(--ink-2); border: 1px solid var(--line); margin: 0 0 16px; }
.box--pink { background: rgba(239,79,154,.1); border-color: rgba(239,79,154,.35); }
.lines { width: 100%; border-collapse: collapse; margin: 6px 0 16px; }
.lines td { padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.lines .sum td { color: var(--muted); border-bottom: 0; padding: 6px 0; }
.lines .tot td { font-size: 19px; font-weight: 800; border-bottom: 0; }
.addr { color: #D9D0E2; font-size: 14.5px; margin: 0 0 18px; }

.pie { padding: 26px 16px; text-align: center; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.pie p { margin: 0; }

@media (max-width: 640px) {
  .row, .row--3 { grid-template-columns: 1fr; }
  .order { grid-template-columns: 1fr auto; }
  .order .r { grid-column: 1 / -1; text-align: left; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

.loyalty h2 { font-size: 18px; }
.stamps { display: grid; grid-template-columns: repeat(10, 1fr); gap: 8px; margin: 18px 0 14px; }
.stamp { display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%; border: 1.5px dashed rgba(255,255,255,.22); color: var(--muted); font: 600 13px 'JetBrains Mono', Consolas, monospace; }
.stamp.on { border: 0; color: #fff; font-size: 17px; background: var(--grad); box-shadow: 0 8px 20px -8px rgba(239,79,154,.9); }
@media (max-width: 640px) { .stamps { grid-template-columns: repeat(5, 1fr); } }
.codes h2 { font-size: 18px; }
.code-row { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; padding: 12px 14px; border-radius: 14px; border: 1px dashed rgba(239,79,154,.5); background: rgba(239,79,154,.07); margin-bottom: 8px; }
.code-row b { font: 700 18px/1.2 'JetBrains Mono', Consolas, monospace; letter-spacing: 2px; color: #fff; }
.code-row span { color: #D9D0E2; font-size: 14px; }
