/* Pasaporte de feria, con los colores de Expo Norte 2027 (feria inventada). */
:root {
  --navy: #14213d;
  --navy-2: #22335a;
  --orange: #fca311;
  --orange-dark: #c77d00;
  --gray: #e5e5e5;
  --muted: #4d5872;
  --accent: var(--orange);
  --accent-ink: var(--navy);
  --accent-shadow: var(--orange-dark);
  --bg: var(--gray);
  --ink: var(--navy);
  --page: #0b1428;
  --line: var(--navy);
  --field: #fff;
  --field-ink: var(--navy);
  --focus: #1f6feb;
  --ok: #1d7a46;
}
.spacer { flex: 1; }
.center { text-align: center; }
.screen { padding: 0; gap: 0; }
.hero { background: var(--navy); color: #fff; padding: 22px 20px 28px; display: flex; flex-direction: column; gap: 14px; }
.body { flex: 1; display: flex; flex-direction: column; gap: 14px; padding: 22px 20px 24px; }
.hero-sub { font-size: 1.02rem; line-height: 1.45; color: #dfe3ec; }
.hero :focus-visible, .scan-top :focus-visible, .scan-bottom :focus-visible { outline-color: var(--orange); }

/* Logo */
.logo { display: flex; align-items: center; gap: 12px; }
.logo p { display: flex; flex-direction: column; }
.logo-icon svg { display: block; width: 46px; height: 46px; }
.logo-word { font: 800 1.6rem/1 "Jakarta", sans-serif; letter-spacing: .1em; color: #fff; }
.logo-year { font: 800 .95rem/1.3 "Jakarta", sans-serif; letter-spacing: .14em; color: var(--orange); }
.logo-small .logo-icon svg { width: 34px; height: 34px; }
.logo-small .logo-word { font-size: 1.25rem; }
.logo-center { justify-content: center; }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; }
.topbar-gap { width: 48px; flex: none; }
.round-btn {
  width: 48px; height: 48px; flex: none; border-radius: 50%; border: 2px solid currentColor;
  background: transparent; color: inherit; font: 800 1.2rem/1 "Jakarta", sans-serif;
  display: grid; place-items: center;
}
.round-dark { border: 0; background: rgb(20 33 61 / .85); color: #fff; }
.avatar {
  width: 52px; height: 52px; border-radius: 50%; border: 2.5px solid var(--orange);
  background: transparent; color: #fff; font: 800 1.05rem/1 "Jakarta", sans-serif;
}
.kicker { font: 800 .95rem/1 "Jakarta", sans-serif; letter-spacing: .08em; color: var(--orange); margin-top: 4px; }
.kicker-dark { color: var(--navy); font-weight: 700; font-size: .8rem; }

/* Barra de 8 sellos: llena o con borde discontinuo (no solo color) */
.bar { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; list-style: none; margin: 0; padding: 0; }
.bar li { height: 16px; border-radius: 999px; border: 2px dashed #c9cfdb; }
.bar li.is-on { background: var(--orange); border: 2px solid var(--orange); }
.bar-small li { height: 12px; }

/* 1. Registro */
.reg-title-row { display: flex; align-items: flex-start; gap: 6px; margin-top: 10px; }
.reg-title { font-size: clamp(1.95rem, 9.4vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.05; flex: 1; }
.reg-art { width: 84px; flex: none; margin: -4px -4px 0 0; }
.reg-form { gap: 16px; }
.field label { font-family: "Jakarta", sans-serif; font-weight: 700; font-size: 1rem; }
.field input { border-radius: 12px; }
.check-card { padding: 14px 16px; border-radius: 14px; background: #fff; min-height: 44px; }
.check-card input { width: 26px; height: 26px; }
.pill {
  display: inline-block; padding: 2px 10px; border: 1.5px solid var(--navy); border-radius: 999px;
  font: 700 .8rem/1.4 "Jakarta", sans-serif; color: var(--navy); margin-bottom: 4px;
}
.pill-solid { background: var(--navy); color: #fff; }
.reg-foot { text-align: center; color: var(--muted); }
.link-inline { padding: 10px 4px; color: var(--navy); font-weight: 800; }
.pending-note { padding: 12px 14px; border-radius: 12px; background: #fff3d9; border: 2px solid var(--orange); font-weight: 600; }
.form-error { color: #a4161a; font-weight: 700; }
.login-title { font-size: 2.2rem; font-weight: 800; }
.hero-short { padding-bottom: 24px; }

/* 2. Pasaporte */
.pass-title { font-size: clamp(1.8rem, 9vw, 2.35rem); font-weight: 800; letter-spacing: -.02em; }
.ticket-link {
  align-self: flex-start; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 2px solid var(--orange);
  background: transparent; color: var(--orange); font-weight: 800;
}
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.sec-head h3 { font-size: 1.3rem; font-weight: 800; }
.sec-head p { color: var(--navy); font-size: .95rem; }
.stands { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; list-style: none; margin: 0; padding: 0; }
.stand {
  display: flex; flex-direction: column; justify-content: space-between; gap: 8px; min-height: 96px;
  padding: 10px 10px 10px; border-radius: 12px; border: 2px dashed #8a93a6; background: #f2f2f2; color: var(--navy);
}
.stand.is-on { border: 2.5px solid var(--navy); background: #fff; }
.stand.is-new { animation: pop .4s ease; }
.stand-state { display: flex; gap: 6px; align-items: center; font-size: .82rem; line-height: 1.1; }
.stand-state b { display: block; font-weight: 700; }
.stand.is-off .stand-state b { font-weight: 500; color: var(--muted); }
.stand-state small { font-size: .78rem; color: var(--muted); }
.stand-mark { width: 22px; height: 22px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 800; }
.is-on .stand-mark { background: var(--orange); border: 2px solid var(--navy); color: var(--navy); }
.is-off .stand-mark { border: 2px dashed #8a93a6; }
.stand-name { font: 700 .9rem/1.2 "Jakarta", sans-serif; overflow-wrap: anywhere; hyphens: auto; }
@keyframes pop { 0% { transform: scale(.85); } 70% { transform: scale(1.05); } 100% { transform: scale(1); } }

.map-card { background: #fff; border-radius: 16px; padding: 14px 14px 12px; display: flex; flex-direction: column; gap: 10px; }
.map-card h3 { font-size: 1.1rem; font-weight: 800; }
.map { background: #eef0f4; border-radius: 10px; padding: 8px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; }
.cell {
  display: flex; align-items: center; justify-content: center; min-height: 30px; border-radius: 5px; border: 1.5px dashed #8a93a6;
  font: 700 .68rem/1 "Inter", sans-serif; color: var(--navy); background: #fff; white-space: nowrap;
}
.cell.is-on { background: var(--navy); border: 1.5px solid var(--navy); color: #fff; }
.cell.is-on::before { content: "✓"; color: var(--orange); margin-right: 2px; }
.aisle { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); min-height: 24px; align-items: center; }
.here { display: flex; align-items: center; gap: 2px; font-size: .74rem; font-weight: 700; white-space: nowrap; }
.here svg { flex: none; }
.map-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .88rem; align-items: center; }
.map-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.lg { width: 16px; height: 16px; border-radius: 4px; display: inline-grid; place-items: center; font-size: .65rem; font-weight: 800; }
.lg-on { background: var(--navy); color: var(--orange); }
.lg-off { border: 1.5px dashed var(--navy); }
.lg-in { margin-left: auto; }
.demo-link { align-self: center; color: var(--muted); font-weight: 600; font-size: .9rem; }
.sticky-cta { position: sticky; bottom: 0; margin: 0 -20px -24px; padding: 12px 20px 20px; background: linear-gradient(rgb(229 229 229 / 0), var(--gray) 30%); }
.btn { border-radius: 16px; }
.btn-big { min-height: 68px; font-size: 1.45rem; }

/* 3. Escáner */
.screen-scan { position: relative; background: #2a3552; color: #fff; min-height: 100dvh; overflow: hidden; }
.cam { position: absolute; inset: 0; overflow: hidden; }
.cam-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cam-fake { position: absolute; inset: 0; filter: blur(6px); background: linear-gradient(#1b2847 0 64%, #556078 64%); }
.cam-fake span { position: absolute; display: block; }
.f-banner { left: 6%; right: 6%; top: 13%; height: 9%; background: #9a6a1c; }
.f-panel { left: 56%; width: 31%; top: 27%; height: 10%; background: #8b93a3; }
.f-person { width: 22%; height: 48%; top: 32%; border-radius: 50% 50% 10px 10px / 18% 18% 10px 10px; background: #3b4660; }
.f-p1 { left: -10%; } .f-p2 { right: -10%; top: 36%; }
.f-desk { left: 16%; right: 24%; top: 51%; height: 15%; background: linear-gradient(#8a6421 0 25%, #8a90a0 25%); }
.cam.is-live .cam-fake { display: none; }
.scan-top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 20px 20px 0; }
.scan-top h2 { font-size: 1.35rem; font-weight: 800; }
.scan-mid { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 24px 20px 20px; }
.frame { position: relative; width: min(70vw, 280px); aspect-ratio: 1; margin: 10px 0 18px; }
.frame {
  --c: var(--orange); --w: 6px; --l: 22%;
  background:
    linear-gradient(var(--c) 0 0) left top / var(--l) var(--w), linear-gradient(var(--c) 0 0) left top / var(--w) var(--l),
    linear-gradient(var(--c) 0 0) right top / var(--l) var(--w), linear-gradient(var(--c) 0 0) right top / var(--w) var(--l),
    linear-gradient(var(--c) 0 0) left bottom / var(--l) var(--w), linear-gradient(var(--c) 0 0) left bottom / var(--w) var(--l),
    linear-gradient(var(--c) 0 0) right bottom / var(--l) var(--w), linear-gradient(var(--c) 0 0) right bottom / var(--w) var(--l);
  background-repeat: no-repeat;
}
.laser { position: absolute; left: 10%; right: 10%; top: 45%; height: 4px; border-radius: 2px; background: var(--orange); animation: scan 2.4s ease-in-out infinite alternate; }
@keyframes scan { from { top: 18%; } to { top: 78%; } }
.scan-pill { padding: 12px 22px; border-radius: 999px; background: var(--navy); font: 800 1.3rem/1.15 "Jakarta", sans-serif; text-align: center; }
.scan-help { padding: 10px 14px; border-radius: 10px; background: rgb(20 33 61 / .8); text-align: center; font-size: .95rem; max-width: 360px; }
.scan-help.is-warn { background: #fff3d9; color: var(--navy); font-weight: 600; }
.scan-bottom { position: relative; z-index: 2; background: var(--navy); border-radius: 22px 22px 0 0; padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 14px; }
.scan-progress { display: flex; align-items: center; gap: 12px; }
.scan-progress strong { font-family: "Jakarta", sans-serif; white-space: nowrap; }
.scan-progress .bar { flex: 1; gap: 4px; }
.btn-outline { background: transparent; color: #fff; border: 2px solid #fff; box-shadow: none; font-size: 1.1rem; }
.btn-outline-dark { background: transparent; color: var(--navy); border: 2px solid var(--navy); box-shadow: none; font-size: 1.05rem; }
.manual { display: flex; flex-direction: column; gap: 12px; }
.manual .field input { text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.manual .form-error { color: #ffcf7a; }

/* 4. Sello */
.hero-seal { padding-bottom: 70px; }
.round-line { border-color: #fff; }
.seal-where { font: 700 1rem/1.2 "Jakarta", sans-serif; text-align: center; }
.seal-art { position: relative; display: grid; place-items: center; padding: 4px 0; }
.seal-big { width: min(62vw, 250px); aspect-ratio: 1; animation: stamp .5s cubic-bezier(.3, 1.6, .5, 1); }
.seal-big svg { display: block; width: 100%; height: 100%; }
@keyframes stamp { from { transform: scale(1.6) rotate(-12deg); opacity: 0; } to { transform: scale(1) rotate(0); opacity: 1; } }
.spark { position: absolute; font-size: 2.2rem; color: var(--orange); }
.s1 { left: 8%; top: 22%; } .s2 { right: 10%; bottom: 22%; color: #fff; font-size: 1.6rem; }
.dot { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: #e5e5e5; }
.d1 { left: 14%; bottom: 18%; } .d2 { right: 14%; top: 14%; width: 14px; height: 14px; }
.dash { position: absolute; right: 18%; top: 32%; width: 20px; height: 6px; border-radius: 3px; background: var(--orange); transform: rotate(30deg); }
.seal-title { font-size: clamp(2.4rem, 12vw, 3.1rem); font-weight: 800; text-align: center; letter-spacing: -.02em; }
.body-overlap { margin-top: -52px; position: relative; }
.quiz { background: #fff; border-radius: 18px; padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; box-shadow: 0 6px 20px rgb(20 33 61 / .12); }
.quiz-q { font-size: 1.4rem; font-weight: 800; line-height: 1.2; }
.answers { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.answer {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 14px;
  border-radius: 12px; border: 2px solid var(--navy); background: #fff; color: var(--navy); text-align: left;
  font: 700 1.1rem/1.2 "Jakarta", sans-serif;
}
.answer-letter { width: 32px; height: 32px; flex: none; border-radius: 50%; border: 2px solid var(--navy); display: grid; place-items: center; font-size: .95rem; }
.answer-txt { flex: 1; }
.answer-tag { font-size: .9rem; white-space: nowrap; }
.answer:disabled { cursor: default; }
.answer.is-right { background: var(--navy); color: #fff; }
.answer.is-right .answer-letter { background: var(--orange); border-color: var(--orange); color: var(--navy); }
.answer.is-right .answer-tag { color: var(--orange); }
.answer.is-wrong { border-style: dashed; color: #7a2026; }
.answer.is-wrong .answer-letter { border-color: #7a2026; }
.answer.is-dim { opacity: .6; }
.quiz-fb { font-size: 1rem; line-height: 1.45; }
.quiz-fb:empty { display: none; }

/* 5. Completo */
.hero-done { position: relative; align-items: center; text-align: center; padding-bottom: 76px; overflow: hidden; }
.ticket {
  display: flex; align-items: stretch; margin: 8px 0 4px; background: var(--orange); color: var(--navy);
  border-radius: 14px; transform: rotate(-3deg); box-shadow: 0 8px 0 rgb(0 0 0 / .15);
}
.ticket p { padding: 14px 18px; text-align: left; }
.ticket-left { font: 600 .95rem/1.4 "Jakarta", sans-serif; border-right: 3px dashed var(--navy); }
.ticket-left span, .ticket-right span { display: block; font-weight: 800; letter-spacing: .12em; font-size: .85rem; }
.ticket-right { text-align: center !important; }
.ticket-right strong { font: 800 2.4rem/1 "Jakarta", sans-serif; letter-spacing: .02em; }
.done-title { font-size: clamp(2.4rem, 12vw, 3.1rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.05; }
.conf { position: absolute; display: block; }
.c1 { left: 10%; top: 18%; width: 22px; height: 7px; border-radius: 4px; background: var(--orange); transform: rotate(-30deg); }
.c2 { right: 12%; top: 9%; width: 22px; height: 7px; border-radius: 4px; background: #dfe3ec; transform: rotate(30deg); }
.c3 { right: 10%; top: 30%; width: 14px; height: 14px; border-radius: 50%; background: var(--orange); }
.c4 { left: 15%; top: 50%; width: 18px; height: 6px; border-radius: 4px; background: #dfe3ec; transform: rotate(25deg); }
.c5 { left: 8%; top: 38%; width: 0; height: 0; border: 8px solid transparent; border-bottom: 13px solid var(--orange); }
.card { background: #fff; border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 6px 20px rgb(20 33 61 / .12); }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.card-head h3 { font-size: 1.08rem; font-weight: 800; }
.badge { padding: 4px 12px; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 800; white-space: nowrap; }
.mini-stamps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 6px; list-style: none; margin: 0; padding: 0; }
.mini-stamps li { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: .78rem; font-weight: 600; line-height: 1.2; }
.mini {
  width: 56px; height: 56px; border-radius: 50%; background: var(--orange); border: 3px solid var(--navy);
  display: grid; place-items: center; box-shadow: inset 0 0 0 4px var(--orange), inset 0 0 0 6px var(--navy);
  font: 800 1.15rem/1 "Jakarta", sans-serif; color: var(--navy);
}
.draw { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 16px; border: 2px solid var(--navy); background: #fff; }
.draw-icon { width: 50px; height: 50px; flex: none; border-radius: 50%; background: var(--navy); display: grid; place-items: center; }
.draw-when { font: 800 1.25rem/1.2 "Jakarta", sans-serif; margin: 2px 0 4px; }
.draw-note { color: var(--muted); }

/* Cuenta */
.sheet { width: min(92vw, 380px); border: 0; border-radius: 20px; padding: 22px; background: #fff; color: var(--navy); }
.sheet::backdrop { background: rgb(0 0 0 / .55); }
.sheet h2 { font-size: 1.4rem; margin-bottom: 6px; }
.sheet p { color: var(--muted); margin-bottom: 16px; overflow-wrap: anywhere; }
.sheet-actions { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.sheet .link { text-align: center; color: var(--navy); }
.sheet .danger { color: #a4161a; }
.sheet form { margin-top: 8px; }
