@font-face { font-family: "Outfit"; src: url(../vendor/fonts/outfit-latin.woff2) format("woff2"); font-weight: 500 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url(../vendor/fonts/inter-latin.woff2) format("woff2"); font-weight: 400 800; font-display: swap; }
:root {
  --navy: #1F2034; --navy2: #2A2B40; --coral: #E56248; --coral-ink: #B9452E;
  --teal: #2F9286; --cream: #FAF8F5; --sand: #F1EDE6; --paper: #FFFFFF;
  --ink2: #555666; --ink3: #7D7E92; --line: #E3E0D9; --gold: #F4C152; --green: #1FA463;
  --accent: var(--coral);
  --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px);
  --display: "Outfit", "Segoe UI", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .9, .25, 1);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; }
body {
  font-family: var(--sans); color: var(--navy);
  background: linear-gradient(180deg, #7FCBEE 0%, #A9DDF2 45%, #CDEEF4 100%);
  -webkit-font-smoothing: antialiased; overscroll-behavior: none; user-select: none; -webkit-user-select: none;
}
input, button, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
img { display: block; }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -.01em; }

#world { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; display: block; touch-action: none; outline: none; }

/* ---------------------------------------------------------------- botones */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  min-height: 50px; padding: 12px 20px; border-radius: 999px; font-weight: 700; font-size: 16px;
  transition: transform .12s, box-shadow .2s, background .2s, opacity .2s; text-decoration: none;
}
.btn:active { transform: scale(.97); }
.btn.big { min-height: 58px; font-size: 17.5px; font-family: var(--display); font-weight: 800; letter-spacing: .01em; }
.btn.primary { background: var(--coral); color: #fff; box-shadow: 0 8px 0 -2px var(--coral-ink), 0 14px 28px -10px rgba(229, 98, 72, .7); }
.btn.primary:active { box-shadow: 0 3px 0 -1px var(--coral-ink), 0 8px 18px -10px rgba(229, 98, 72, .7); transform: translateY(3px); }
.btn.primary:disabled { background: #D9D5CE; box-shadow: 0 6px 0 -2px #BEB9B0; color: #8C8A86; cursor: default; transform: none; }
.btn.ghost { background: var(--paper); color: var(--navy); border: 2px solid var(--line); margin-top: 10px; }
.btn.link { background: none; color: var(--ink3); font-weight: 600; min-height: 40px; margin-top: 6px; text-decoration: underline; text-underline-offset: 3px; }
.btn.wa { background: #1FA463; color: #fff; box-shadow: 0 8px 0 -2px #13804b, 0 14px 28px -12px rgba(31, 164, 99, .7); margin-bottom: 10px; }
.btn.glow { animation: glow 2.2s infinite; }
.pulse { animation: pulse 1.3s infinite; }
@keyframes glow { 0%, 100% { box-shadow: 0 8px 0 -2px var(--coral-ink), 0 0 0 0 rgba(229, 98, 72, .55); } 50% { box-shadow: 0 8px 0 -2px var(--coral-ink), 0 0 0 14px rgba(229, 98, 72, 0); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); } 60% { box-shadow: 0 0 0 10px transparent; } }
.btn.primary.pulse { animation: pulseBtn 1.3s infinite; }
@keyframes pulseBtn { 0%, 100% { box-shadow: 0 8px 0 -2px var(--coral-ink), 0 0 0 0 rgba(229, 98, 72, .6); } 60% { box-shadow: 0 8px 0 -2px var(--coral-ink), 0 0 0 12px rgba(229, 98, 72, 0); } }

.kicker { margin: 0 0 6px; font: 800 12px/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.muted { color: var(--ink3); font-size: 14px; margin: 4px 0 14px; }

/* ---------------------------------------------------------------- loader */
.loader { position: fixed; inset: 0; z-index: 90; background: var(--navy); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; transition: opacity .6s, visibility .6s; }
.loader img { width: 84px; height: 84px; border-radius: 20px; animation: bob 1.4s ease-in-out infinite; }
.loader .bar { width: 160px; height: 6px; border-radius: 9px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.loader .bar i { display: block; height: 100%; width: 8%; background: var(--coral); border-radius: 9px; transition: width .5s var(--ease); }
.loader p { color: rgba(255, 255, 255, .6); font-size: 14px; margin: 0; }
.loader.gone { opacity: 0; visibility: hidden; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-10px) rotate(3deg); } }

/* ---------------------------------------------------------------- pantallas */
.screen { position: fixed; inset: 0; z-index: 20; display: none; }
.screen.on { display: flex; }
#scr-play { display: none !important; }

.splash { align-items: flex-end; justify-content: center; background: linear-gradient(0deg, rgba(31, 32, 52, .97) 0%, rgba(31, 32, 52, .86) 38%, rgba(31, 32, 52, .25) 66%, rgba(31, 32, 52, 0) 82%); }
.splash-in { width: 100%; max-width: 480px; padding: 0 22px calc(26px + var(--sab)); color: #fff; animation: rise .8s var(--ease) both; }
.brand { position: absolute; color: #fff; top: calc(16px + var(--sat)); left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; background: rgba(31, 32, 52, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding: 6px 14px 6px 6px; border-radius: 999px; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand span { font: 800 20px var(--display); letter-spacing: -.02em; }
.eyebrow { margin: 0 0 6px; font: 700 12px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.splash h1 { font-size: clamp(58px, 17vw, 84px); line-height: .9; font-weight: 900; letter-spacing: -.035em; }
.splash h1 span { color: var(--coral); margin-left: .08em; }
.splash .sub { font-size: 17px; line-height: 1.45; color: rgba(255, 255, 255, .82); margin: 14px 0 16px; }
.splash .sub b { color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chips span { font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .14); }
.foot { text-align: center; color: rgba(255, 255, 255, .45); font-size: 12px; margin: 16px 0 0; }
@keyframes rise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }

.card-screen { align-items: flex-end; justify-content: center; pointer-events: none; }
.card-screen .card {
  pointer-events: auto; width: 100%; max-width: 520px; background: var(--cream); border-radius: 28px 28px 0 0;
  padding: 22px 20px calc(18px + var(--sab)); box-shadow: 0 -20px 50px -20px rgba(31, 32, 52, .45);
  animation: sheetIn .55s var(--ease) both; max-height: 64dvh; overflow-y: auto;
}
#scr-rubro .card { max-height: 74dvh; }
.card h2 { font-size: 26px; margin-bottom: 14px; }
@keyframes sheetIn { from { transform: translateY(100%); } to { transform: none; } }
.field { display: block; font-weight: 700; font-size: 14px; color: var(--ink2); margin-bottom: 14px; }
.field input, .lead-form input:not([type=checkbox]) {
  display: block; width: 100%; margin-top: 6px; font-size: 17px; font-weight: 600; color: var(--navy);
  padding: 14px 16px; border-radius: 16px; border: 2px solid var(--line); background: #fff; outline: none; transition: border-color .2s, box-shadow .2s;
  user-select: text; -webkit-user-select: text;
}
.field input:focus, .lead-form input:focus { border-color: var(--coral); box-shadow: 0 0 0 4px rgba(229, 98, 72, .15); }
.row-opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.row-opt > span { font-weight: 700; font-size: 14px; color: var(--ink2); }
.sws { display: flex; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
.sw { width: 32px; height: 32px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .08); transition: transform .15s; }
.sw.on { box-shadow: 0 0 0 3px var(--cream), 0 0 0 5px var(--navy); transform: scale(1.08); }
.toggle { width: 54px; height: 32px; border-radius: 99px; background: #D9D5CE; position: relative; transition: background .2s; }
.toggle i { position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); transition: transform .25s var(--ease); }
.toggle.on { background: var(--coral); }
.toggle.on i { transform: translateX(22px); }
#btn-avatar { margin-top: 8px; }

.rubros { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.rb {
  display: flex; align-items: center; gap: 10px; text-align: left; padding: 12px; min-height: 58px; border-radius: 16px;
  background: #fff; border: 2px solid var(--line); font-weight: 700; font-size: 14px; line-height: 1.2;
  animation: rise .45s var(--ease) both; animation-delay: calc(var(--d) * 35ms); transition: border-color .15s, transform .12s;
}
.rb span { font-size: 24px; width: 36px; height: 36px; display: grid; place-items: center; background: var(--sand); border-radius: 11px; flex: none; }
.rb:active { transform: scale(.97); }
.rb.on { border-color: var(--coral); background: #FFF3F0; }

/* ---------------------------------------------------------------- HUD */
.hud { position: fixed; inset: 0; z-index: 30; pointer-events: none; }
.hud > * { pointer-events: auto; }
.hud[hidden] { display: none; }
.hud-top { position: absolute; top: calc(10px + var(--sat)); left: 10px; right: 10px; display: flex; align-items: center; gap: 10px; pointer-events: none; }
.hud-top > * { pointer-events: auto; }
.hud-player { display: flex; align-items: center; gap: 8px; padding: 5px 14px 5px 5px; border-radius: 999px; background: rgba(31, 32, 52, .78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #fff; }
.hud-player img { width: 34px; height: 34px; border-radius: 10px; }
.hud-player b { display: block; font: 800 14px/1.1 var(--display); max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hud-player span { display: inline-block; font: 800 13px/1.2 var(--display); color: var(--gold); }
.hud-player span.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }
.prog { flex: 1; height: 8px; border-radius: 9px; background: rgba(31, 32, 52, .25); overflow: hidden; }
.prog i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--coral), var(--gold)); border-radius: 9px; transition: width .8s var(--ease); }
.hud-btn { width: 44px; height: 44px; border-radius: 50%; background: rgba(31, 32, 52, .78); color: #fff; font-size: 20px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

.missions { position: absolute; top: calc(64px + var(--sat)); left: 50%; transform: translateX(-50%); display: flex; gap: 4px; padding: 5px; border-radius: 22px; background: rgba(255, 255, 255, .78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 8px 24px -12px rgba(31, 32, 52, .35); max-width: calc(100vw - 20px); }
.ms { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; width: 62px; padding: 5px 2px 4px; border-radius: 16px; transition: background .2s; }
.ms-ic { width: 38px; height: 38px; display: grid; place-items: center; font-size: 20px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2.5px var(--c); filter: grayscale(.5); opacity: .8; }
.ms-lb { font: 700 9.5px/1.1 var(--sans); color: var(--ink2); max-width: 60px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms.next { background: #fff; }
.ms.next .ms-ic { filter: none; opacity: 1; animation: pulseRing 1.6s infinite; }
@keyframes pulseRing { 0%, 100% { box-shadow: inset 0 0 0 2.5px var(--c), 0 0 0 0 var(--c); } 70% { box-shadow: inset 0 0 0 2.5px var(--c), 0 0 0 9px transparent; } }
.ms.done .ms-ic { filter: none; opacity: 1; background: var(--c); box-shadow: none; }
.ms.done::after { content: "✓"; position: absolute; top: 1px; right: 7px; width: 17px; height: 17px; border-radius: 50%; background: #2BD47D; color: #fff; font: 900 11px/17px var(--sans); text-align: center; border: 2px solid #fff; }

.hint {
  position: absolute; left: 50%; bottom: calc(16px + var(--sab)); transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px; text-align: left; width: min(440px, calc(100vw - 24px));
  padding: 9px 9px 9px 10px; border-radius: 22px; background: #fff; box-shadow: 0 14px 30px -12px rgba(31, 32, 52, .45), 0 0 0 1px rgba(31, 32, 52, .05);
  animation: rise .5s var(--ease) both;
}
.hint .h-ic, .totem-card .tt-ic { width: 44px; height: 44px; flex: none; display: grid; place-items: center; font-size: 24px; border-radius: 14px; background: var(--sand); }
.hint > span:nth-child(2), .totem-card > span:nth-child(2) { flex: 1; min-width: 0; }
.hint small, .totem-card small { display: block; font-size: 12px; color: var(--ink3); font-weight: 600; line-height: 1.25; }
.hint b, .totem-card b { display: block; font: 800 16px/1.2 var(--display); }
.h-go { flex: none; padding: 11px 16px; border-radius: 15px; background: var(--coral); color: #fff; font: 800 15px var(--display); }
.totem-card {
  position: absolute; left: 50%; bottom: calc(92px + var(--sab)); display: flex; align-items: center; gap: 12px; text-align: left;
  width: min(440px, calc(100vw - 24px)); padding: 9px; border-radius: 20px; background: var(--navy); color: #fff;
  transform: translate(-50%, 30px); opacity: 0; pointer-events: none; transition: transform .35s var(--ease), opacity .25s;
}
.totem-card.on { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.totem-card .tt-ic { background: var(--c); }
.totem-card small { color: rgba(255, 255, 255, .65); }
.totem-card .h-go { background: #fff; color: var(--navy); }

.toast { position: absolute; top: calc(134px + var(--sat)); left: 50%; transform: translate(-50%, -12px); padding: 10px 18px; border-radius: 999px; background: var(--navy); color: #fff; font: 700 15px var(--display); opacity: 0; transition: .3s var(--ease); white-space: nowrap; pointer-events: none; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.float-pts { position: absolute; top: calc(48px + var(--sat)); left: 70px; font: 900 20px var(--display); color: var(--gold); text-shadow: 0 2px 0 var(--navy); animation: floatUp .9s var(--ease) forwards; pointer-events: none; }
@keyframes floatUp { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-34px); } }

.joy { position: fixed; width: 116px; height: 116px; margin: -58px 0 0 -58px; border-radius: 50%; background: rgba(255, 255, 255, .22); border: 2px solid rgba(255, 255, 255, .55); opacity: 0; transition: opacity .15s; pointer-events: none !important; }
.joy.on { opacity: 1; }
.joy i { position: absolute; left: 50%; top: 50%; width: 50px; height: 50px; margin: -25px 0 0 -25px; border-radius: 50%; background: #fff; box-shadow: 0 6px 16px rgba(31, 32, 52, .3); }

.tuto { position: fixed; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(31, 32, 52, .45); opacity: 0; pointer-events: none !important; transition: opacity .3s; }
.tuto.on { opacity: 1; pointer-events: auto !important; }
.tuto-card { width: min(360px, 100%); background: #fff; border-radius: 26px; padding: 22px 20px 20px; text-align: center; transform: scale(.9); transition: transform .4s var(--ease); }
.tuto.on .tuto-card { transform: none; }
.tuto-card h3 { font-size: 22px; margin: 6px 0 10px; }
.tuto-card ul { list-style: none; padding: 0; margin: 0 0 18px; text-align: left; }
.tuto-card li { padding: 9px 0 9px 30px; position: relative; font-size: 15px; color: var(--ink2); border-bottom: 1px dashed var(--line); }
.tuto-card li::before { content: "✦"; position: absolute; left: 6px; color: var(--coral); }
.tuto-card li b { color: var(--navy); }
.tuto-anim { height: 70px; position: relative; }
.hand { position: absolute; left: 40%; top: 18px; font-size: 38px; animation: drag 2s ease-in-out infinite; }
.trail { position: absolute; left: 40%; top: 30px; width: 70px; height: 70px; margin-left: -10px; border-radius: 50%; border: 3px dashed rgba(229, 98, 72, .35); animation: none; }
@keyframes drag { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(40px, -6px); } 50% { transform: translate(30px, 26px); } 75% { transform: translate(-10px, 16px); } }

/* ---------------------------------------------------------------- hoja inferior */
.sheet { position: fixed; inset: 0; z-index: 50; pointer-events: none; }
.sheet-scrim { position: absolute; inset: 0; background: rgba(31, 32, 52, .5); opacity: 0; transition: opacity .35s; }
.sheet-panel {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0 auto; max-width: 520px; max-height: min(92dvh, 860px); min-height: 50dvh;
  background: var(--cream); border-radius: 28px 28px 0 0; transform: translateY(105%); transition: transform .45s var(--ease);
  box-shadow: 0 -24px 60px -20px rgba(31, 32, 52, .5); overflow: hidden; overflow: clip; display: flex; flex-direction: column;
}
.sheet.open { pointer-events: auto; }
.sheet.open .sheet-scrim { opacity: 1; }
.sheet.open .sheet-panel { transform: translateY(0); }
.sheet-grab { width: 44px; height: 5px; border-radius: 9px; background: var(--line); margin: 10px auto 0; flex: none; }
.sheet-x { position: absolute; top: 12px; right: 12px; z-index: 6; width: 38px; height: 38px; border-radius: 50%; background: var(--sand); color: var(--ink2); font-size: 16px; font-weight: 700; }
.sheet-body { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 10px 20px calc(24px + var(--sab)); overscroll-behavior: contain; }
.step { position: relative; animation: stepIn .4s var(--ease) both; }
@keyframes stepIn { from { opacity: 0; left: 26px; } to { opacity: 1; left: 0; } }
.step h2 { font-size: 26px; line-height: 1.12; margin-bottom: 10px; }
.step h2.sm { font-size: 22px; margin: 6px 0 4px; }
.step .lead { font-size: 16px; line-height: 1.5; color: var(--ink2); margin: 0 0 18px; }
.step .btn.big { margin-top: 6px; }

.stepper { display: flex; gap: 6px; margin: 4px 46px 16px 0; }
.stepper span { flex: 1; display: flex; align-items: center; gap: 6px; font: 700 12px var(--sans); color: var(--ink3); padding: 6px 8px; border-radius: 12px; background: var(--sand); white-space: nowrap; }
.stepper i { font-style: normal; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: #fff; font-size: 11px; flex: none; }
.stepper .on { background: color-mix(in srgb, var(--accent) 14%, #fff); color: var(--navy); }
.stepper .on i { background: var(--accent); color: #fff; }
.stepper .done i { background: #2BD47D; color: #fff; }

/* intro de estación */
.chaos-hero { position: relative; width: 132px; height: 132px; margin: 18px auto 18px; }
.chaos-ic { width: 100%; height: 100%; border-radius: 38px; display: grid; place-items: center; font-size: 64px; background: var(--c); box-shadow: 0 16px 30px -12px var(--c); animation: shake 2.4s infinite; filter: saturate(.75) brightness(.95); }
.storm { position: absolute; font-size: 28px; animation: orbit 3s ease-in-out infinite; }
.storm.s1 { top: -16px; left: -18px; }
.storm.s2 { top: 10px; right: -26px; animation-delay: -1s; }
.storm.s3 { bottom: -8px; left: -22px; animation-delay: -2s; }
@keyframes shake { 0%, 86%, 100% { transform: rotate(0); } 88% { transform: rotate(-6deg); } 92% { transform: rotate(6deg); } 96% { transform: rotate(-3deg); } }
@keyframes orbit { 0%, 100% { transform: translate(0, 0) rotate(0); } 50% { transform: translate(6px, -10px) rotate(14deg); } }
.intro-step { text-align: center; }

/* preguntas */
.q-title { font-size: 24px !important; }
.opts { display: flex; flex-direction: column; gap: 10px; margin: 16px 0 14px; }
.opt {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 14px; border-radius: 18px;
  background: #fff; border: 2px solid var(--line); font-weight: 650; font-size: 16px; line-height: 1.25;
  animation: rise .4s var(--ease) both; animation-delay: calc(var(--d) * 45ms); transition: border-color .15s, background .15s, transform .12s;
}
.opt:active { transform: scale(.98); }
.opt-ic { width: 42px; height: 42px; flex: none; display: grid; place-items: center; font-size: 22px; border-radius: 13px; background: var(--sand); }
.opt-tx { flex: 1; }
.opt-check { width: 24px; height: 24px; flex: none; border-radius: 50%; border: 2px solid var(--line); transition: .2s; }
.opt.sel { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, #fff); }
.opt.sel .opt-check { background: var(--accent); border-color: var(--accent); box-shadow: inset 0 0 0 4px #fff; }
.opt:disabled { cursor: default; }

/* resultado */
.win-hero { text-align: center; margin: 10px 0 12px; }
.win-ring { width: 104px; height: 104px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: #2BD47D; box-shadow: 0 0 0 10px rgba(43, 212, 125, .18), 0 0 0 22px rgba(43, 212, 125, .08); animation: popIn .6s var(--ease) both; }
.win-ring span { color: #fff; font: 900 56px var(--display); }
.pts { display: inline-block; margin-top: 16px; padding: 6px 14px; border-radius: 99px; background: var(--navy); color: var(--gold); font: 900 18px var(--display); animation: popIn .6s .2s var(--ease) both; }
@keyframes popIn { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
.result-step { text-align: center; }
.result-step .bullets { text-align: left; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 4px 0 16px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px 6px; }
.stat b { display: block; font: 900 21px/1.1 var(--display); color: var(--accent); }
.stat span { display: block; font-size: 11.5px; line-height: 1.3; color: var(--ink2); margin-top: 4px; }
.bullets { list-style: none; padding: 0; margin: 0 0 18px; }
.bullets li { position: relative; padding: 8px 0 8px 32px; font-size: 15px; color: var(--ink2); }
.bullets li::before { content: "✓"; position: absolute; left: 0; top: 7px; width: 22px; height: 22px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 15%, #fff); color: var(--accent); font: 900 13px/22px var(--sans); text-align: center; }

/* demos: comunes */
.demo-step { position: relative; }
.demo-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.live { font: 800 11px var(--sans); letter-spacing: .1em; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, #fff); padding: 6px 10px; border-radius: 99px; }
.timer { font: 800 15px var(--display); color: var(--navy); font-variant-numeric: tabular-nums; }
.instr { font-size: 15px; color: var(--ink2); margin: 4px 0 12px; line-height: 1.4; }
.instr b { color: var(--navy); }

/* Facturin POS */
.pos { background: #fff; border-radius: 22px; padding: 10px; border: 1px solid var(--line); }
.pos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pos-item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px 9px; border-radius: 16px; background: var(--cream); border: 2px solid transparent; transition: border-color .15s; }
.pos-item .e { font-size: 30px; line-height: 1.1; }
.pos-item .n { font: 700 12.5px var(--sans); }
.pos-item .p { font: 600 12px var(--sans); color: var(--ink3); }
.pos-item .q { position: absolute; top: -6px; right: -4px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 99px; background: var(--coral); color: #fff; font: 800 12px/22px var(--sans); font-style: normal; display: none; }
.pos-item.in { border-color: var(--coral); background: #FFF3F0; }
.pos-item.in .q { display: block; }
.pos-bottom { padding: 12px 4px 4px; }
.pos-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.pos-total span { color: var(--ink3); font-weight: 600; font-size: 14px; }
.pos-total b { font: 900 26px var(--display); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; border-radius: 16px; background: var(--sand); margin-bottom: 10px; }
.seg button { padding: 11px; border-radius: 12px; font-weight: 700; font-size: 15px; color: var(--ink2); }
.seg button.on { background: #fff; color: var(--navy); box-shadow: 0 2px 8px rgba(31, 32, 52, .12); }
.ruc { font: 600 13px var(--sans); color: var(--teal); text-align: center; margin: -2px 0 10px; }

.emit-overlay, .night-overlay, .start-ov { position: fixed; inset: 0; z-index: 4; display: grid; place-items: center; padding: 18px; background: rgba(250, 248, 245, .9); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: fadeIn .25s both; }
.emit-overlay[hidden], .night-overlay[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } }
.emit-card { width: min(380px, 100%); background: #fff; border-radius: 26px; padding: 22px 18px 18px; text-align: center; box-shadow: 0 20px 50px -20px rgba(31, 32, 52, .45); animation: popIn .4s var(--ease) both; }
.emit-card p { color: var(--ink2); font-size: 15px; line-height: 1.45; }
.emit-card h3 { font-size: 22px; margin: 4px 0 6px; }
.spinner { width: 44px; height: 44px; margin: 6px auto 12px; border-radius: 50%; border: 4px solid var(--sand); border-top-color: var(--coral); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.stamp { display: inline-block; padding: 8px 18px; border: 4px solid #1FA463; border-radius: 12px; color: #1FA463; font: 900 24px/1 var(--display); letter-spacing: .06em; transform: rotate(-8deg); animation: stampIn .45s var(--ease) both; margin-bottom: 14px; }
.stamp small { font-size: 14px; letter-spacing: .1em; }
@keyframes stampIn { from { transform: rotate(-8deg) scale(2.2); opacity: 0; } to { transform: rotate(-8deg) scale(1); opacity: 1; } }
.wa-mini { background: #ECE5DA; border-radius: 18px; padding: 10px; text-align: left; animation: rise .5s .35s var(--ease) both; }
.wa-top { font: 700 12px var(--sans); color: var(--ink2); margin-bottom: 8px; }
.wa-bubble { position: relative; background: #fff; border-radius: 4px 14px 14px 14px; padding: 9px 12px 18px; font-size: 14px; line-height: 1.4; max-width: 90%; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); }
.wa-time { position: absolute; right: 8px; bottom: 3px; font-size: 10.5px; color: #4FB6EC; }
.speed { display: grid; grid-template-columns: 1fr auto; align-items: center; text-align: left; margin: 14px 0; padding: 12px 14px; border-radius: 16px; background: var(--navy); color: #fff; }
.speed span { font-size: 13px; color: rgba(255, 255, 255, .7); }
.speed b { grid-row: span 2; font: 900 30px var(--display); color: var(--gold); }
.speed em { font-style: normal; font-size: 12.5px; color: rgba(255, 255, 255, .6); }

/* VendeSolo chat */
.phone { border-radius: 28px; background: var(--navy); padding: 8px; box-shadow: 0 20px 40px -20px rgba(31, 32, 52, .6); }
.phone-top { display: flex; align-items: center; gap: 10px; padding: 6px 8px 10px; color: #fff; }
.phone-top b { display: block; font: 800 15px var(--display); }
.phone-top small { display: block; font-size: 11.5px; color: #7BE3A9; }
.ph-av { width: 36px; height: 36px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 20px; }
.ph-clock { margin-left: auto; font: 700 13px var(--sans); color: rgba(255, 255, 255, .7); }
.chat { height: min(46dvh, 400px); overflow-y: auto; background: #ECE5DA; border-radius: 20px 20px 6px 6px; padding: 12px 10px; display: flex; flex-direction: column; gap: 8px; scroll-behavior: smooth; }
.bub { max-width: 84%; padding: 9px 12px; border-radius: 16px; font-size: 14.5px; line-height: 1.4; background: #fff; align-self: flex-start; border-top-left-radius: 4px; box-shadow: 0 1px 1px rgba(0, 0, 0, .07); animation: bubIn .3s var(--ease) both; }
.bub.me { align-self: flex-end; background: #D5F5C4; border-radius: 16px; border-top-right-radius: 4px; }
.bub.wide { max-width: 100%; padding: 8px; }
@keyframes bubIn { from { opacity: 0; transform: translateY(10px) scale(.96); } }
.dots { display: inline-flex; gap: 4px; padding: 4px 2px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: #9A9AA8; animation: dot 1s infinite; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-4px); opacity: 1; } }
.cards { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.pcard { flex: 0 0 112px; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 8px; border-radius: 14px; background: var(--cream); text-align: center; }
.pimg { width: 100%; height: 56px; border-radius: 10px; background: #fff; display: grid; place-items: center; font-size: 32px; margin-bottom: 4px; }
.pcard b { font: 800 13px var(--display); }
.pcard span { font: 700 13px var(--sans); color: var(--green); }
.pcard small { font-size: 11px; color: var(--ink3); }
.pick { margin-top: 6px; width: 100%; padding: 7px; border-radius: 10px; background: var(--green); color: #fff; font: 700 13px var(--sans); }
.pick:disabled { opacity: .5; }
.replies { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 2px 2px; min-height: 52px; justify-content: center; }
.reply { padding: 10px 14px; border-radius: 99px; background: #fff; color: var(--navy); font: 700 14.5px var(--sans); animation: popIn .3s var(--ease) both; box-shadow: 0 0 0 2px var(--green) inset; }
.reply:active { background: #E8F8EF; }
.qr-pay { display: flex; align-items: center; gap: 10px; }
.fake-qr { width: 70px; height: 70px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; padding: 4px; background: #fff; border: 2px solid #742284; border-radius: 8px; flex: none; }
.fake-qr i.k { background: #1F2034; border-radius: 1px; }
.night-overlay { background: radial-gradient(circle at 50% 0%, #34365a 0%, #1F2034 60%); }
.night-card { text-align: center; color: #fff; width: min(380px, 100%); animation: popIn .5s var(--ease) both; }
.night-card .moon { font-size: 64px; animation: bob 3s ease-in-out infinite; }
.night-card h3 { font-size: 24px; margin: 8px 0 8px; line-height: 1.2; }
.night-card p { color: rgba(255, 255, 255, .75); font-size: 16px; line-height: 1.45; margin: 0 0 16px; }
.night-card p b { color: #7BE3A9; }
.night-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 18px; }
.night-stats div { padding: 12px 4px; border-radius: 16px; background: rgba(255, 255, 255, .08); }
.night-stats b { display: block; font: 900 20px var(--display); color: var(--gold); }
.night-stats span { font-size: 11.5px; color: rgba(255, 255, 255, .65); }

/* Stock minijuego */
.shelf { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sh-item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 10px 12px; border-radius: 20px; background: #fff; border: 2.5px solid var(--line); transition: border-color .2s, background .2s; }
.sh-item .e { font-size: 40px; line-height: 1; }
.sh-item .n { font: 800 15px var(--display); }
.sh-item .bar { width: 100%; height: 12px; border-radius: 9px; background: var(--sand); overflow: hidden; margin-top: 4px; }
.sh-item .bar i { display: block; height: 100%; background: linear-gradient(90deg, #2BD47D, #1FA463); border-radius: 9px; }
.sh-item .st { font: 800 11px var(--sans); letter-spacing: .06em; color: var(--ink3); }
.sh-item .bell { position: absolute; top: 6px; right: 8px; font-size: 20px; opacity: 0; }
.sh-item.low { border-color: #FF4D4F; background: #FFF1F0; animation: shake2 .5s infinite; }
.sh-item.low .bar i { background: #FF4D4F; }
.sh-item.low .st { color: #FF4D4F; }
.sh-item.low .bell { opacity: 1; animation: ring .4s infinite; }
.sh-item.out { background: #EEE; border-color: #BBB; filter: grayscale(1); }
.sh-item.out .st { color: #555; }
@keyframes shake2 { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-1.5deg); } 75% { transform: rotate(1.5deg); } }
@keyframes ring { 50% { transform: rotate(18deg); } }
.score-line { display: flex; justify-content: space-between; gap: 10px; margin: 14px 2px 4px; font-size: 14px; color: var(--ink2); }
.start-ov { background: rgba(250, 248, 245, .55); backdrop-filter: blur(2px); }
.start-ov .btn { width: min(320px, 100%); }
.start-ov.done { background: rgba(250, 248, 245, .92); }
.big-emoji { font-size: 60px; }

/* Rubro: cartas */
.flips { display: flex; flex-direction: column; gap: 10px; margin: 8px 0 16px; perspective: 900px; }
.flip { position: relative; height: 96px; border-radius: 20px; animation: rise .45s var(--ease) both; animation-delay: calc(var(--d) * 80ms); }
.flip .face { position: absolute; inset: 0; display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 20px; backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: transform .6s var(--ease); text-align: left; }
.flip .front { background: linear-gradient(135deg, var(--teal), #237268); color: #fff; justify-content: center; }
.flip .front .qm { font: 900 40px var(--display); width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .15); }
.flip .front small { font: 800 15px var(--display); }
.flip .back { background: #fff; border: 2px solid var(--teal); transform: rotateX(180deg); flex-wrap: wrap; align-content: center; }
.flip .back .e { font-size: 34px; }
.flip .back b { font: 800 17px var(--display); flex: 1; }
.flip .back small { flex-basis: 100%; font-size: 13.5px; color: var(--ink2); margin-top: -6px; padding-left: 48px; }
.flip.on .front { transform: rotateX(-180deg); }
.flip.on .back { transform: rotateX(0); }

/* Totem */
.totem-hero { width: 96px; height: 96px; border-radius: 30px; display: grid; place-items: center; font-size: 50px; background: var(--c); margin: 16px 0 16px; box-shadow: 0 16px 30px -14px var(--c); }

/* Torre: diagnóstico */
.tower-hero { position: relative; width: 120px; height: 120px; margin: 18px auto 18px; border-radius: 34px; overflow: hidden; box-shadow: 0 18px 36px -14px rgba(229, 98, 72, .8); }
.tower-hero img { width: 100%; height: 100%; }
.scan { position: absolute; left: 0; right: 0; height: 30%; background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .55), transparent); animation: scan 1.8s ease-in-out infinite; }
@keyframes scan { 0% { top: -30%; } 100% { top: 100%; } }
.sheet-body .step:has(.tower-hero) { text-align: center; }
.mini-progress { display: flex; justify-content: center; gap: 8px; margin: 0 0 18px; }
.mini-progress span { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; background: #fff; border: 2px dashed var(--line); filter: grayscale(1); opacity: .6; }
.mini-progress span.ok { border: 2px solid #2BD47D; filter: none; opacity: 1; background: #EFFCF4; }
.analyze { text-align: center; padding-top: 18px; }
.radar { position: relative; width: 150px; height: 150px; margin: 0 auto 18px; border-radius: 50%; background: radial-gradient(circle, #2A2B40 0%, var(--navy) 70%); display: grid; place-items: center; overflow: hidden; box-shadow: 0 0 0 6px rgba(31, 32, 52, .08); }
.radar img { width: 56px; height: 56px; border-radius: 14px; position: relative; z-index: 2; }
.radar i { position: absolute; inset: 0; background: conic-gradient(from 0deg, rgba(229, 98, 72, 0) 0deg, rgba(229, 98, 72, .55) 60deg, rgba(229, 98, 72, 0) 61deg); animation: spin 1.4s linear infinite; }
.checks { list-style: none; padding: 0; margin: 18px auto 0; max-width: 320px; text-align: left; }
.checks li { padding: 9px 0 9px 34px; position: relative; color: var(--ink3); font-weight: 600; transition: color .3s; }
.checks li::before { content: ""; position: absolute; left: 0; top: 8px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); transition: .3s; }
.checks li.ok { color: var(--navy); }
.checks li.ok::before { background: #2BD47D; border-color: #2BD47D; }
.checks li.ok::after { content: "✓"; position: absolute; left: 6px; top: 9px; color: #fff; font: 900 13px var(--sans); }

.gauge { position: relative; width: 230px; margin: 4px auto 6px; text-align: center; }
.gauge svg { width: 100%; display: block; }
.g-bg, .g-fg { fill: none; stroke-width: 16; stroke-linecap: round; }
.g-bg { stroke: var(--line); }
.g-fg { stroke: var(--coral); }
.g-num { position: absolute; left: 0; right: 0; top: 52px; }
.g-num b { font: 900 52px/1 var(--display); }
.g-num span { font: 700 16px var(--display); color: var(--ink3); }
.g-lbl { font: 700 13px var(--sans); color: var(--ink2); margin-top: -2px; }
.profile { display: flex; gap: 12px; align-items: flex-start; background: #fff; border-radius: 18px; padding: 14px; border: 1px solid var(--line); margin: 14px 0 10px; }
.profile > span { font-size: 32px; }
.profile b { font: 800 18px var(--display); }
.profile p { margin: 3px 0 0; font-size: 14px; color: var(--ink2); line-height: 1.4; }
.hours { padding: 11px 14px; border-radius: 14px; background: #FFF6DE; color: #7A5600; font-size: 14.5px; margin-bottom: 16px; }
.recs-title { font-size: 18px; margin: 4px 0 10px; }
.recs { position: relative; display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.rec { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 18px; background: #fff; border: 2px solid color-mix(in srgb, var(--c) 35%, #fff); }
.rec-ic { width: 48px; height: 48px; flex: none; border-radius: 15px; display: grid; place-items: center; font-size: 26px; background: color-mix(in srgb, var(--c) 14%, #fff); }
.rec-tx small { display: block; font: 800 11px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--c); }
.rec-tx b { display: block; font: 800 17px/1.2 var(--display); }
.rec-tx span { display: block; font-size: 13px; color: var(--ink2); line-height: 1.35; margin-top: 2px; }
.locked-wrap { position: relative; display: flex; flex-direction: column; gap: 8px; }
.locked-wrap .rec { filter: blur(5px); opacity: .7; pointer-events: none; }
.lock-msg { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 10px 16px; border-radius: 99px; background: var(--navy); color: #fff; font: 700 14px var(--display); white-space: nowrap; box-shadow: 0 10px 24px -10px rgba(31, 32, 52, .6); }

.lead-form { background: #fff; border-radius: 24px; padding: 18px 16px 12px; border: 2px solid var(--coral); box-shadow: 0 18px 40px -24px rgba(229, 98, 72, .7); }
.lead-form h3 { font-size: 21px; }
.lead-form label { display: block; font-weight: 700; font-size: 13.5px; color: var(--ink2); margin-bottom: 12px; }
.lead-form label em { font-weight: 500; color: var(--ink3); }
.lead-form .consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: 13px; line-height: 1.4; }
.lead-form .consent input { width: 22px; height: 22px; flex: none; margin: 0; accent-color: var(--coral); }
.lead-form .consent a { color: var(--teal); }
.err { color: #D9363E; font-weight: 700; font-size: 14px; min-height: 18px; margin: 0 0 6px; }

.ticket { position: relative; margin: 12px 0 14px; padding: 0 0 18px; border-radius: 22px; background: #fff; text-align: center; overflow: hidden; box-shadow: 0 20px 40px -18px rgba(31, 32, 52, .45); border: 2px dashed var(--coral); animation: popIn .6s var(--ease) both; }
.t-top { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; background: linear-gradient(135deg, var(--coral), #F08A5D); color: #fff; font: 800 13px var(--sans); letter-spacing: .14em; }
.t-top img { width: 26px; height: 26px; border-radius: 7px; box-shadow: 0 0 0 2px #fff; }
.ticket p { margin: 14px 0 2px; color: var(--ink3); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; }
.code { font: 900 38px/1.1 "JetBrains Mono", ui-monospace, Consolas, monospace; letter-spacing: .06em; color: var(--navy); user-select: text; -webkit-user-select: text; }
.ticket small { display: block; padding: 8px 18px 0; color: var(--ink2); font-size: 13.5px; line-height: 1.4; }
.score-final { text-align: center; font: 800 15px var(--display); color: var(--ink2); margin-bottom: 14px; }
.fine { text-align: center; color: var(--ink3); font-size: 13px; margin: 14px 0 0; }
.prize-step h2 { text-align: center; }
.prize-step .lead { text-align: center; }

/* Ranking */
.board { display: flex; flex-direction: column; gap: 6px; margin: 14px 0; min-height: 80px; }
.board .row { display: grid; grid-template-columns: 36px 1fr auto; grid-template-rows: auto auto; align-items: center; column-gap: 8px; padding: 10px 12px; border-radius: 14px; background: #fff; }
.board .row .pos { grid-row: span 2; font: 900 20px var(--display); text-align: center; }
.board .row b { font: 800 15px var(--display); }
.board .row small { grid-column: 2; font-size: 12px; color: var(--ink3); }
.board .row .sc { grid-row: 1 / span 2; grid-column: 3; font: 900 18px var(--display); color: var(--coral); }
.board .row.me { box-shadow: inset 0 0 0 2px var(--coral); }

/* Menú */
.menu { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; background: rgba(31, 32, 52, .5); }
.menu[hidden] { display: none; }
.menu-card { width: min(320px, 100%); background: #fff; border-radius: 24px; padding: 18px; display: flex; flex-direction: column; gap: 8px; animation: popIn .3s var(--ease) both; }
.menu-card h3 { font-size: 20px; margin: 0 0 4px 4px; }
.menu-card button { text-align: left; padding: 14px 16px; border-radius: 14px; background: var(--cream); font-weight: 700; font-size: 16px; }
.menu-card button.muted { background: none; color: var(--ink3); text-align: center; margin: 0; }

.confetti-canvas { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 100; }

/* Sin WebGL: se juega desde la barra de misiones */
body.no3d #world { display: none; }
body.no3d .missions { top: 40%; transform: translate(-50%, -50%) scale(1.25); }

.rotate-hint { display: none; }
@media (orientation: landscape) and (max-height: 480px) and (pointer: coarse) {
  .rotate-hint { display: grid; place-items: center; position: fixed; inset: 0; z-index: 200; background: var(--navy); color: #fff; font: 800 22px var(--display); }
}
@media (min-width: 760px) {
  .splash-in { padding-bottom: 48px; }
  .missions { top: calc(12px + var(--sat)); }
  .hud-top .prog { max-width: 180px; margin-left: auto; }
  .ms { width: 78px; } .ms-lb { max-width: 76px; font-size: 10.5px; }
  .toast { top: 96px; }
}
@media (max-width: 360px) {
  .ms { width: 56px; }
  .pos-item .n { font-size: 11.5px; }
  .step h2 { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}


/* =====================================================================
   Ruta China → Chancay (Expo China 2026)
   ===================================================================== */
[hidden] { display: none !important; }
.route-tag { margin: 4px 0 0; font: 700 13.5px var(--sans); color: rgba(255, 255, 255, .85); letter-spacing: .01em; }

/* Compra en China */
#scr-compra .card { max-height: 72dvh; }
.cargo { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 2px 0 12px; }
.cg { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 8px 10px; border-radius: 18px; background: #fff; border: 2px solid var(--line); text-align: center; animation: rise .45s var(--ease) both; animation-delay: calc(var(--d) * 60ms); transition: border-color .2s, background .2s, transform .2s; }
.cg:active { transform: scale(.97); }
.cg .e { font-size: 30px; line-height: 1.15; }
.cg b { font: 800 14.5px/1.15 var(--display); }
.cg small { font-size: 11.5px; color: var(--ink3); font-weight: 600; }
.cg .ck { position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 50%; background: var(--coral); color: #fff; font: 900 13px/22px var(--sans); font-style: normal; transform: scale(0); transition: transform .3s cubic-bezier(.34, 1.56, .64, 1); }
.cg.on { border-color: var(--coral); background: #FFF3F0; }
.cg.on .ck { transform: scale(1); }
.fill { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 13px; font-weight: 700; color: var(--ink2); }
.fill-bar { height: 12px; border-radius: 9px; background: var(--sand); overflow: hidden; }
.fill-bar i { display: block; height: 100%; width: 0; border-radius: 9px; background: linear-gradient(90deg, var(--coral), var(--gold)); transition: width .45s var(--ease); }
.fill b { font: 800 14px var(--display); color: var(--navy); min-width: 3.2em; text-align: right; }

/* Travesía */
.voyage { position: fixed; inset: 0; z-index: 25; pointer-events: none; display: flex; flex-direction: column; justify-content: space-between; padding: calc(12px + var(--sat)) 12px calc(18px + var(--sab)); }
.voyage > * { pointer-events: auto; }
.voy-card { width: min(440px, 100%); margin: 0 auto; padding: 14px 16px 10px; border-radius: 22px; background: rgba(31, 32, 52, .86); color: #fff; box-shadow: 0 16px 40px -18px rgba(0, 0, 0, .6); animation: rise .5s var(--ease) both; }
.voy-card .kicker { color: var(--gold); }
.voy-card h3 { font-size: 21px; margin: 0 0 2px; }
.voy-msg { margin: 0 0 6px; min-height: 20px; font-size: 14px; color: rgba(255, 255, 255, .8); }
.voy-msg.in { animation: rise .45s var(--ease) both; }
.voy-map { width: 100%; height: auto; display: block; }
.voy-map .land { fill: #E5CF9E; opacity: .9; }
.voy-map .route { fill: none; stroke: rgba(255, 255, 255, .35); stroke-width: 2.5; stroke-dasharray: 5 5; }
.voy-map .route-done { fill: none; stroke: var(--gold); stroke-width: 3.5; stroke-linecap: round; }
.voy-map .pin { fill: var(--coral); stroke: #fff; stroke-width: 1.5; }
.voy-map .pin.pe { fill: var(--teal); }
.voy-map .lbl { fill: #fff; font: 700 10px var(--sans); }
.voy-map .ship-bg { fill: #fff; }
.voy-map .ship { font-size: 12px; text-anchor: middle; }
.skip-voy { align-self: center; background: rgba(31, 32, 52, .82); color: #fff; min-height: 48px; padding: 0 22px; border-radius: 99px; font: 800 15px var(--display); }

/* Chancay */
.retos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 16px; }
.retos span { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 14px; background: #fff; border: 1.5px solid var(--line); font: 700 13.5px var(--sans); animation: rise .45s var(--ease) both; animation-delay: calc(var(--d) * 70ms + 150ms); }
.retos i { font-style: normal; width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 10px; background: color-mix(in srgb, var(--c) 18%, #fff); font-size: 16px; }

/* HUD */
.hud-pill { flex: none; height: 44px; padding: 0 14px; border-radius: 99px; background: rgba(31, 32, 52, .82); color: #fff; font: 800 13.5px var(--display); white-space: nowrap; box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .5); }
.ms.skip .ms-ic { opacity: .45; }
.ms.skip::after { content: "↷"; position: absolute; top: 1px; right: 7px; width: 17px; height: 17px; border-radius: 50%; background: var(--ink3); color: #fff; font: 900 11px/17px var(--sans); text-align: center; }

/* Reto: problema */
.prob { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; margin: 0 0 14px; border-radius: 18px; background: color-mix(in srgb, var(--c) 10%, #fff); border: 1.5px solid color-mix(in srgb, var(--c) 35%, #fff); }
.prob-ic { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 14px; background: #fff; font-size: 24px; }
.prob small { display: block; font: 800 11px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink3); }
.prob p { margin: 3px 0 0; font-size: 15px; line-height: 1.4; color: var(--navy); font-weight: 600; }
.btn.link.skip-demo { display: block; width: auto; min-height: 32px; margin: -2px 0 4px auto; padding: 0 2px; font-size: 13px; text-decoration: underline; }
.pos-grid.two { grid-template-columns: repeat(2, 1fr); }

/* Reto: solución */
.sol-hero { position: relative; width: 92px; height: 92px; margin: 6px auto 12px; display: grid; place-items: center; border-radius: 28px; background: var(--c); font-size: 46px; box-shadow: 0 14px 30px -14px var(--c); animation: popIn .5s cubic-bezier(.34, 1.56, .64, 1) both; }
.sol-hero b { position: absolute; right: -36px; top: -6px; padding: 4px 10px; border-radius: 99px; background: var(--gold); color: var(--navy); font: 900 13px var(--display); }
.help-box { margin: 4px 0 14px; padding: 14px 16px; border-radius: 16px; background: #fff; border: 1.5px solid var(--line); font-size: 16px; line-height: 1.45; text-align: left; color: var(--navy); }
.src { margin: -10px 0 12px; font-size: 11.5px; color: var(--ink3); }

/* Diagnóstico */
.aff { height: 6px; margin: 5px 0 4px; border-radius: 6px; background: var(--sand); overflow: hidden; }
.aff i { display: block; height: 100%; border-radius: 6px; background: var(--c); animation: grow 1.1s .3s var(--ease) both; transform-origin: left; }
@keyframes grow { from { transform: scaleX(0); } }
.hours small { color: #9A7A2F; font-size: 12px; }
.sent { text-align: center; padding: 18px 14px 6px; margin-bottom: 14px; border-radius: 22px; background: #fff; border: 2px solid #2BD47D; }
.sent .win-ring { width: 72px; height: 72px; }
.sent .win-ring span { font-size: 38px; }
.sent h3 { font-size: 21px; margin: 10px 0 4px; }
.sent p { font-size: 14.5px; color: var(--ink2); line-height: 1.45; margin: 0 0 14px; }
.lead-form .btn.link { display: block; text-align: center; text-decoration: underline; }
@media (max-width: 440px) { .hud-top .prog { display: none; } .hud-top { gap: 8px; } .hud-pill { margin-left: auto; } }
