/* ============================================================
   Marselius Protocol · Sistema de diseño
   Tema por defecto: Acero (azul marino + plata). Otros temas abajo.
   ============================================================ */
:root {
  --bg: #060c19; --bg-2: #0a1326; --card: #0d1830; --card-2: #11203e; --card-3: #172a4f;
  --line: rgba(190, 205, 230, .12); --line-2: rgba(190, 205, 230, .24);
  --text: #f2f5fa; --muted: #9ca8bf; --dim: #6a7791; --silver: #cdd4df;
  --accent: #5b8dd6; --accent-hi: #86aee8; --accent-ink: #06101f; --accent-soft: rgba(91, 141, 214, .16);
  --gold: #d9a54c; --gold-hi: #e8b762; --gold-dark: #9c7d3e; --gold-soft: rgba(217, 165, 76, .14);
  --ok: #3be37f; --ok-soft: rgba(59, 227, 127, .14); --bad: #ff7676; --bad-soft: rgba(255, 118, 118, .14);
  --fig: #e4e9f0; --fig-far: #6f7f98; --ill-bg: #11203e; --ill-floor: #22304a; --steel: #5d6e88; --pad: #445a7b; --cable: #8696ad; --band: #d0ad66; --ball: #7d93b3;
  --brand: "Cinzel", "Trajan Pro", Georgia, serif; --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; --cond: "Barlow Condensed", Impact, sans-serif;
  --r: 18px; --r-sm: 12px; --shadow: 0 18px 48px rgba(0, 0, 0, .45), 0 2px 6px rgba(0, 0, 0, .3);
  --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}
:root[data-theme="zafiro"] { --bg: #040a1f; --bg-2: #07122e; --card: #0b1740; --card-2: #10204f; --card-3: #162a62; --accent: #3f82f7; --accent-hi: #6ea3ff; --accent-soft: rgba(63, 130, 247, .18); --ill-bg: #10204f; --ill-floor: #1c3066; }
:root[data-theme="oro"] { --bg: #0a0a0c; --bg-2: #101013; --card: #15151a; --card-2: #1c1c23; --card-3: #25252e; --line: rgba(230, 215, 180, .12); --line-2: rgba(230, 215, 180, .24); --accent: #d9a54c; --accent-hi: #e8b762; --accent-ink: #1a1203; --accent-soft: rgba(217, 165, 76, .16); --ill-bg: #1c1c23; --ill-floor: #2b2b33; --fig-far: #6d6a62; }
:root[data-theme="grafito"] { --bg: #0e1013; --bg-2: #14171b; --card: #191d22; --card-2: #20252c; --card-3: #2a3039; --line: rgba(210, 220, 235, .12); --line-2: rgba(210, 220, 235, .24); --accent: #c9d1dc; --accent-hi: #e6ebf2; --accent-ink: #0e1013; --accent-soft: rgba(201, 209, 220, .14); --ill-bg: #20252c; --ill-floor: #2e343d; --fig-far: #6b7380; }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
html { height: 100%; overflow-x: hidden; }
body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); font: 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; overscroll-behavior-y: none; -webkit-text-size-adjust: 100%; }
body::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(900px 500px at 50% -10%, rgba(91, 141, 214, .18), transparent 60%), radial-gradient(600px 400px at 100% 100%, rgba(217, 165, 76, .07), transparent 60%); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: var(--accent-hi); text-decoration: none; }
[hidden] { display: none !important; }
::selection { background: var(--accent-soft); }

/* ---------- Escenario ---------- */
#app { position: relative; z-index: 1; min-height: 100svh; overflow-x: clip; }
.screen { position: relative; width: 100%; max-width: 540px; margin: 0 auto; min-height: 100svh; padding: calc(20px + var(--sat)) 18px calc(28px + var(--sab)); }
.screen.center { display: flex; flex-direction: column; justify-content: center; }
.screen.leaving { position: absolute; inset: 0 0 auto 0; margin: 0 auto; left: 0; right: 0; pointer-events: none; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; min-height: 44px; }
.topbar .brandmini { display: flex; align-items: center; gap: 10px; }
.topbar .brandmini img { width: 26px; height: 36px; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .5)); }
.topbar .brandmini span { display: flex; flex-direction: column; line-height: 1.15; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.topbar .brandmini span::before { content: "Marselius"; font-family: var(--brand); font-size: 13px; letter-spacing: .3em; color: var(--silver); text-transform: none; font-weight: 600; }
.btn-icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); background: var(--card); border: 1px solid var(--line); transition: .2s; }
.btn-icon:active { transform: scale(.94); }
.btn-icon svg { width: 20px; height: 20px; }

/* ---------- Tipografía ---------- */
.brand { font-family: var(--brand); letter-spacing: .14em; text-transform: uppercase; color: var(--silver); font-weight: 600; }
.eyebrow { font-size: 11.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 8px; }
h1 { font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-weight: 500; font-size: clamp(34px, 9.4vw, 44px); line-height: 1.04; letter-spacing: -.01em; margin: 0 0 12px; color: var(--text); }
h1 em { font-style: italic; color: var(--gold-hi); }
h2 { font-size: clamp(21px, 5.8vw, 26px); line-height: 1.2; font-weight: 700; margin: 0 0 8px; letter-spacing: -.01em; }
h2.serif { font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-weight: 500; font-size: clamp(30px, 8vw, 38px); letter-spacing: 0; }
h3 { font-size: 17px; font-weight: 700; margin: 0 0 6px; }
p { margin: 0 0 12px; color: var(--muted); }
p.lead { font-size: 17px; color: var(--text); line-height: 1.5; }
p.lead b { color: var(--gold-hi); font-weight: 600; }
.small { font-size: 13px; } .muted { color: var(--muted); } .dim { color: var(--dim); } .num { font-family: var(--cond); font-weight: 600; letter-spacing: .02em; }
.center-text { text-align: center; }
.gold { color: var(--gold); } .ok { color: var(--ok); } .bad { color: var(--bad); }
.rule { height: 1px; background: linear-gradient(90deg, var(--gold), transparent); opacity: .7; margin: 14px 0 18px; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 58px; padding: 0 22px; border-radius: 999px; font-weight: 700; font-size: 17px; letter-spacing: .01em; color: #06101f; background: linear-gradient(180deg, #ffffff 0%, #d9dfe8 60%, #c3ccd9 100%); box-shadow: 0 14px 36px rgba(205, 212, 223, .2), inset 0 1px 0 #fff; transition: transform .18s ease, box-shadow .18s ease, filter .18s; position: relative; overflow: hidden; }
.btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(217, 165, 76, .35) 50%, transparent 70%); transform: translateX(-120%); }
.btn.shine::after { animation: shine 2.8s ease-in-out infinite; }
@keyframes shine { 0% { transform: translateX(-120%); } 45%, 100% { transform: translateX(120%); } }
.btn:active { transform: translateY(1px) scale(.985); }
.btn:disabled { opacity: .4; filter: grayscale(.5); pointer-events: none; }
.btn.ghost { background: var(--card); color: var(--text); border: 1px solid var(--line-2); box-shadow: none; }
.btn.ghost::after { display: none; }
.btn.gold { background: linear-gradient(180deg, var(--gold-hi), var(--gold) 70%, #c08f3a); color: #1a1203; box-shadow: 0 14px 34px rgba(217, 165, 76, .28), inset 0 1px 0 rgba(255, 255, 255, .45); }
.btn.gold::after { background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%); }
.btn.blue { background: linear-gradient(180deg, var(--accent-hi), var(--accent)); color: var(--accent-ink); box-shadow: 0 10px 30px var(--accent-soft); }
.btn.ok { background: linear-gradient(180deg, #4ff08f, #25d366); color: #03200e; box-shadow: 0 10px 30px rgba(37, 211, 102, .3); }
.btn.sm { min-height: 44px; font-size: 15px; width: auto; padding: 0 18px; }
.btn.link { background: none; box-shadow: none; color: var(--muted); font-weight: 600; min-height: 44px; }
.btn.link::after { display: none; }
.btn.link:hover { color: var(--text); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-row { display: flex; gap: 10px; }
.btn-row .btn { flex: 1; }
.actions { margin-top: auto; padding-top: 18px; display: grid; gap: 10px; }
.sticky-actions { position: sticky; bottom: 0; padding: 14px 0 calc(6px + var(--sab)); background: linear-gradient(180deg, transparent, var(--bg) 30%); margin-top: 14px; z-index: 5; }

/* ---------- Tarjetas ---------- */
.card { position: relative; background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: 0 16px 40px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .05); }
.card.lux::before { content: ""; position: absolute; left: 22px; right: 22px; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.card.flat { box-shadow: none; }
.card + .card { margin-top: 12px; }
.stack { display: grid; gap: 12px; }
.row { display: flex; align-items: center; gap: 12px; }
.row.between { justify-content: space-between; }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-sm); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); color: var(--text); font-size: 14.5px; }
.notice.gold { background: var(--gold-soft); border-color: rgba(217, 165, 76, .35); }
.notice.ok { background: var(--ok-soft); border-color: rgba(59, 227, 127, .35); }
.notice svg { width: 22px; height: 22px; flex: none; color: var(--accent-hi); }
.notice.gold svg { color: var(--gold); } .notice.ok svg { color: var(--ok); }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); margin: 18px 0; }

/* ---------- Formularios ---------- */
.field { display: grid; gap: 7px; margin-bottom: 14px; }
.field label { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; }
.in { width: 100%; min-height: 58px; padding: 14px 16px; border-radius: 16px; background: rgba(6, 12, 25, .55); border: 1.5px solid var(--line-2); color: var(--text); outline: none; transition: border-color .2s, box-shadow .2s; font-size: 17px; box-shadow: inset 0 2px 6px rgba(0, 0, 0, .25); }
.in::placeholder { color: var(--dim); }
.in:focus { border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft), inset 0 2px 6px rgba(0, 0, 0, .25); }
textarea.in { min-height: 130px; resize: vertical; line-height: 1.45; }
.in.big { font-size: 24px; text-align: center; font-family: var(--cond); font-weight: 600; letter-spacing: .02em; }
.err { color: var(--bad); font-size: 14px; margin-top: 4px; min-height: 20px; }
.help { color: var(--dim); font-size: 13.5px; }
.pw-wrap { position: relative; } .pw-wrap .in { padding-right: 52px; }
.pw-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; display: grid; place-items: center; color: var(--muted); }
.pw-eye svg { width: 20px; height: 20px; }

/* Opciones grandes (radio / checkbox) */
.opts { display: grid; gap: 10px; }
.opt { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 12px 16px; border-radius: 16px; background: rgba(6, 12, 25, .5); border: 1.5px solid var(--line-2); text-align: left; font-size: 16.5px; font-weight: 500; color: var(--text); transition: transform .15s, border-color .2s, background .2s, box-shadow .2s; width: 100%; }
.opt .mark { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; flex: none; transition: .2s; }
.opt.multi .mark { border-radius: 8px; }
.opt .mark svg { width: 15px; height: 15px; opacity: 0; transform: scale(.4); transition: .2s; color: #1a1203; }
.opt.on { border-color: var(--gold); background: var(--gold-soft); box-shadow: 0 10px 26px rgba(0, 0, 0, .25); }
.opt.on .mark { background: var(--gold); border-color: var(--gold); }
.opt.on .mark svg { opacity: 1; transform: scale(1); }
.opt:active { transform: scale(.985); }
.opt .sub { display: block; font-size: 13px; color: var(--muted); font-weight: 400; }

/* Escala 1–N */
.scale { display: grid; grid-template-columns: repeat(auto-fit, minmax(44px, 1fr)); gap: 8px; }
.scale button { min-height: 56px; border-radius: 14px; background: rgba(6, 12, 25, .5); border: 1.5px solid var(--line-2); font-family: var(--cond); font-size: 23px; font-weight: 600; color: var(--text); transition: .18s; }
.scale button.on { background: linear-gradient(180deg, var(--gold-hi), var(--gold)); color: #1a1203; border-color: var(--gold); transform: translateY(-3px); box-shadow: 0 10px 22px rgba(217, 165, 76, .3); }
.scale-labels { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--dim); margin-top: 8px; }

/* ---------- Progreso ---------- */
.bar { height: 6px; border-radius: 999px; background: var(--card-3); overflow: hidden; }
.bar > span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-hi)); transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.bar.gold > span { background: linear-gradient(90deg, var(--gold), var(--gold-hi)); }
.steps-dots { display: flex; gap: 6px; }
.steps-dots i { flex: 1; height: 4px; border-radius: 4px; background: var(--card-3); }
.steps-dots i.on { background: var(--accent); }

/* ---------- Formulario interactivo (tarjetas 3D) ---------- */
.q-stage { position: relative; min-height: calc(100svh - 150px); }
.q-card { position: relative; }
.q-card.leaving { position: absolute; inset: 0 0 auto 0; pointer-events: none; }
.q-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; font-size: 11.5px; color: var(--gold); letter-spacing: .22em; text-transform: uppercase; font-weight: 600; }
.q-head .num { color: var(--muted); font-size: 15px; letter-spacing: .04em; }
.q-title { font-size: clamp(22px, 6vw, 27px); font-weight: 600; line-height: 1.22; margin: 0 0 8px; letter-spacing: -.015em; }
.q-help { color: var(--muted); font-size: 15px; margin-bottom: 18px; white-space: pre-line; line-height: 1.5; }
.q-sec { display: inline-flex; align-items: center; gap: 8px; }
.q-sec i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); display: block; }
.q-nav { display: flex; gap: 10px; margin-top: 22px; }
.q-nav .btn.ghost { width: 60px; flex: none; padding: 0; border-radius: 50%; }
.sec-intro { text-align: center; padding: 40px 0 26px; }
.sec-ring { width: 118px; height: 118px; margin: 0 auto 18px; border-radius: 50%; border: 1px solid rgba(217, 165, 76, .55); display: grid; place-items: center; position: relative; box-shadow: 0 0 60px rgba(91, 141, 214, .18), inset 0 0 40px rgba(217, 165, 76, .06); }
.sec-ring::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; border: 1px solid rgba(205, 212, 223, .14); }
.sec-ring span { font-family: var(--cond); font-size: 56px; font-weight: 700; color: var(--gold-hi); line-height: 1; }
.sec-ring small { position: absolute; bottom: 16px; font-size: 9px; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }
.sec-intro p { font-size: 16.5px; color: var(--text); }
.f-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }

/* ---------- Personalización ---------- */
.avatar-pick { width: 150px; height: 150px; margin: 0 auto 10px; border-radius: 50%; background: var(--card-2); border: 2px dashed var(--line-2); display: grid; place-items: center; position: relative; overflow: hidden; cursor: pointer; }
.avatar-pick img { width: 100%; height: 100%; object-fit: cover; }
.avatar-pick > span:not(.plus) svg { width: 56px; height: 56px; }
.avatar-pick .plus { position: absolute; right: 6px; bottom: 6px; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; box-shadow: 0 6px 16px rgba(0, 0, 0, .4); }
.avatar-pick .plus svg { width: 20px; height: 20px; }
.themes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.theme { padding: 14px; border-radius: 16px; border: 2px solid var(--line-2); background: var(--bg-2); text-align: left; transition: .2s; position: relative; }
.theme.on { border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }
.theme .sw { display: flex; gap: 6px; margin-bottom: 10px; }
.theme .sw i { width: 26px; height: 26px; border-radius: 8px; display: block; border: 1px solid rgba(255, 255, 255, .12); }
.theme b { display: block; font-size: 15px; } .theme span { font-size: 12.5px; color: var(--muted); }

/* ---------- Panel de pasos ---------- */
.step-card { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 18px; background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--line); text-align: left; width: 100%; transition: transform .18s, border-color .2s; position: relative; overflow: hidden; box-shadow: 0 12px 30px rgba(0, 0, 0, .25); }
.step-card:active { transform: scale(.985); }
.step-card .n { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; background: rgba(6, 12, 25, .55); border: 1px solid var(--line-2); color: var(--silver); flex: none; position: relative; }
.step-card .n svg { width: 24px; height: 24px; }
.step-card .n b { position: absolute; top: -7px; right: -7px; width: 20px; height: 20px; border-radius: 50%; background: var(--card-3); color: var(--silver); font-family: var(--cond); font-size: 12px; display: grid; place-items: center; border: 1px solid var(--line-2); }
.step-card.done .n { background: var(--ok-soft); border-color: rgba(59, 227, 127, .4); color: var(--ok); }
.step-card.done .n b { background: var(--ok); color: #03200e; border-color: var(--ok); }
.step-card.next { border-color: rgba(217, 165, 76, .6); box-shadow: 0 0 0 4px var(--gold-soft), 0 16px 36px rgba(0, 0, 0, .35); }
.step-card.next .n { background: linear-gradient(180deg, var(--gold-hi), var(--gold)); color: #1a1203; border-color: var(--gold); }
.step-card.next .n b { background: var(--gold-hi); color: #1a1203; border-color: var(--gold); }
.step-card.locked { opacity: .55; }
.step-card .t { flex: 1; min-width: 0; }
.step-card .t b { display: block; font-size: 16.5px; }
.step-card .t span { font-size: 13.5px; color: var(--muted); }
.step-card .chev { color: var(--dim); width: 22px; height: 22px; flex: none; }
.step-card .pill { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; background: var(--gold-soft); color: var(--gold); font-weight: 700; flex: none; }
.ring { --p: 0; width: 96px; height: 96px; border-radius: 50%; background: conic-gradient(var(--gold) calc(var(--p) * 1%), var(--card-3) 0); display: grid; place-items: center; margin: 0 auto; box-shadow: 0 0 40px rgba(217, 165, 76, .12); }
.ring > div { width: 80px; height: 80px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; font-family: var(--cond); font-size: 27px; font-weight: 700; color: var(--silver); }

/* ---------- Fotos ---------- */
.photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.photo-card { position: relative; border-radius: 18px; overflow: hidden; background: var(--card-2); border: 1.5px solid var(--line); aspect-ratio: 3 / 4; display: flex; flex-direction: column; }
.photo-card canvas { width: 100%; height: 100%; display: block; }
.photo-card.mirror canvas { transform: scaleX(-1); }
.photo-card .lbl { position: absolute; left: 10px; top: 10px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; background: rgba(0, 0, 0, .45); backdrop-filter: blur(6px); color: var(--silver); font-weight: 700; }
.photo-card .add { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; padding: 0 16px; height: 44px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 14px; white-space: nowrap; box-shadow: 0 8px 20px rgba(0, 0, 0, .45); }
.photo-card .add svg { width: 18px; height: 18px; }
.photo-card img.shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-card.has .add { background: var(--card); color: var(--text); border: 1px solid var(--line-2); }
.photo-card .ok-badge { position: absolute; right: 10px; top: 10px; width: 30px; height: 30px; border-radius: 50%; background: var(--ok); color: #03200e; display: grid; place-items: center; box-shadow: 0 6px 14px rgba(0, 0, 0, .4); }
.photo-card .ok-badge svg { width: 16px; height: 16px; }
.photo-card .busy { position: absolute; inset: 0; background: rgba(6, 12, 25, .6); display: grid; place-items: center; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--accent); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.tips { display: grid; gap: 8px; margin-top: 14px; }
.tip { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--muted); }
.tip svg { width: 18px; height: 18px; color: var(--gold); flex: none; margin-top: 3px; }

/* ---------- Peso ---------- */
.weight-big { text-align: center; font-family: var(--cond); font-size: 96px; line-height: 1; font-weight: 700; letter-spacing: .01em; }
.weight-big small { font-size: 28px; color: var(--muted); margin-left: 6px; }
.stepper { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 14px 0; }
.stepper button { width: 64px; height: 64px; border-radius: 50%; background: var(--card-2); border: 1.5px solid var(--line-2); font-size: 30px; color: var(--text); display: grid; place-items: center; transition: .15s; }
.stepper button:active { transform: scale(.92); background: var(--card-3); }
input[type="range"].slider { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; margin: 6px 0; }
input[type="range"].slider::-webkit-slider-runnable-track { height: 10px; border-radius: 999px; background: linear-gradient(90deg, var(--accent) var(--fill, 50%), var(--card-3) var(--fill, 50%)); }
input[type="range"].slider::-webkit-slider-thumb { -webkit-appearance: none; width: 38px; height: 38px; border-radius: 50%; background: #fff; border: 4px solid var(--accent); margin-top: -14px; box-shadow: 0 6px 18px rgba(0, 0, 0, .45); }
input[type="range"].slider::-moz-range-track { height: 10px; border-radius: 999px; background: var(--card-3); }
input[type="range"].slider::-moz-range-thumb { width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 4px solid var(--accent); }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--bg-2); border: 1.5px solid var(--line-2); }
.toggle .sw { width: 54px; height: 32px; border-radius: 999px; background: var(--card-3); position: relative; transition: .2s; flex: none; }
.toggle .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; transition: .2s; }
.toggle.on .sw { background: var(--ok); } .toggle.on .sw::after { left: 25px; }
.date-chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: none; }
.date-chips::-webkit-scrollbar { display: none; }
.chip { flex: none; min-width: 64px; padding: 10px 12px; border-radius: 14px; background: var(--bg-2); border: 1.5px solid var(--line-2); text-align: center; color: var(--text); font-size: 13px; }
.chip b { display: block; font-family: var(--cond); font-size: 22px; line-height: 1; }
.chip.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* ---------- Medidas ---------- */
.measure-list { display: grid; gap: 10px; }
.measure-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--card-2); border: 1.5px solid var(--line); width: 100%; text-align: left; }
.measure-item .ico { width: 54px; height: 54px; border-radius: 14px; background: var(--ill-bg); overflow: hidden; flex: none; }
.measure-item .ico canvas { width: 100%; height: 100%; }
.measure-item .t { flex: 1; } .measure-item .t b { display: block; font-size: 16px; } .measure-item .t span { font-size: 13px; color: var(--muted); }
.measure-item .val { font-family: var(--cond); font-size: 24px; font-weight: 700; color: var(--accent-hi); min-width: 70px; text-align: right; }
.measure-item.done { border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
.fig-stage { height: 320px; border-radius: 18px; background: var(--ill-bg); overflow: hidden; border: 1px solid var(--line); position: relative; }
.fig-stage canvas { width: 100%; height: 100%; display: block; }
.fig-stage .cap { position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(6, 12, 25, .72); backdrop-filter: blur(8px); font-size: 14px; color: var(--text); }
.cm-input { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 16px 0; }
.cm-input .in { width: 150px; }
.cm-input .unit { font-family: var(--cond); font-size: 24px; color: var(--muted); }

/* ---------- Analíticas ---------- */
.lab-list { display: grid; gap: 8px; }
.lab-list .it { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); }
.lab-list .it .k { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-hi); font-family: var(--cond); font-weight: 700; font-size: 17px; flex: none; }
.lab-list .it b { display: block; font-size: 15px; } .lab-list .it span { font-size: 13.5px; color: var(--muted); }
.drop { border: 2px dashed var(--line-2); border-radius: 18px; padding: 24px 16px; text-align: center; background: var(--bg-2); cursor: pointer; transition: .2s; }
.drop:active { transform: scale(.985); }
.drop svg { width: 40px; height: 40px; color: var(--accent-hi); margin: 0 auto 8px; }
.file-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--ok-soft); border: 1px solid rgba(59, 227, 127, .3); font-size: 14px; }
.file-row svg { width: 20px; height: 20px; color: var(--ok); flex: none; }

/* ---------- Agenda ---------- */
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.slot { min-height: 50px; border-radius: 12px; background: var(--bg-2); border: 1.5px solid var(--line-2); font-family: var(--cond); font-size: 20px; font-weight: 600; color: var(--text); transition: .15s; }
.slot.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); transform: translateY(-2px); }
.booking-sum { text-align: center; padding: 22px; }
.booking-sum .d { font-family: var(--cond); font-size: 46px; font-weight: 700; line-height: 1; }
.booking-sum .h { font-family: var(--cond); font-size: 34px; color: var(--accent-hi); }

/* ---------- Inicio (tras arranque) ---------- */
.profile-head { display: flex; align-items: center; gap: 14px; }
.profile-head img, .profile-head .ini { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; background: var(--card-3); display: grid; place-items: center; font-family: var(--cond); font-size: 24px; }
.timeline { display: grid; gap: 0; }
.tl { display: flex; gap: 14px; }
.tl .dot { width: 14px; display: flex; flex-direction: column; align-items: center; }
.tl .dot i { width: 14px; height: 14px; border-radius: 50%; background: var(--card-3); border: 2px solid var(--line-2); display: block; }
.tl .dot b { flex: 1; width: 2px; background: var(--line); display: block; }
.tl.done .dot i { background: var(--ok); border-color: var(--ok); }
.tl.now .dot i { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.tl .body { padding-bottom: 18px; } .tl .body b { display: block; } .tl .body span { font-size: 13.5px; color: var(--muted); }

/* ---------- Utilidades y animaciones ---------- */
.toast { position: fixed; left: 50%; bottom: calc(24px + var(--sab)); transform: translate(-50%, 20px); background: var(--card-3); color: var(--text); padding: 12px 18px; border-radius: 999px; font-size: 14.5px; font-weight: 600; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: .25s; z-index: 50; max-width: 90vw; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.overlay { position: fixed; inset: 0; z-index: 40; background: rgba(3, 6, 14, .72); backdrop-filter: blur(6px); display: flex; align-items: flex-end; justify-content: center; opacity: 0; transition: .25s; }
.overlay.show { opacity: 1; }
.sheet-box { width: 100%; max-width: 540px; background: var(--card); border-radius: 24px 24px 0 0; padding: 18px 18px calc(22px + var(--sab)); transform: translateY(40px); transition: .3s cubic-bezier(.2, .8, .2, 1); max-height: 92dvh; overflow: auto; }
.overlay.show .sheet-box { transform: none; }
.sheet-box .grab { width: 44px; height: 5px; border-radius: 5px; background: var(--line-2); margin: 0 auto 14px; }
.demo-badge { position: fixed; top: calc(6px + var(--sat)); right: 8px; z-index: 60; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; background: var(--gold-soft); color: var(--gold); border: 1px solid rgba(217, 165, 76, .35); font-weight: 700; }
.fade-up { animation: fadeUp .6s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.pop { animation: pop .5s cubic-bezier(.2, .9, .3, 1.4) both; }
@keyframes pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }
.d1 { animation-delay: .1s; } .d2 { animation-delay: .2s; } .d3 { animation-delay: .32s; } .d4 { animation-delay: .45s; } .d5 { animation-delay: .6s; }
.check-anim { width: 110px; height: 110px; margin: 0 auto 14px; }
.check-anim circle { fill: none; stroke: var(--ok); stroke-width: 3; stroke-dasharray: 320; stroke-dashoffset: 320; animation: draw 1s .1s ease forwards; }
.check-anim path { fill: none; stroke: var(--ok); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 80; stroke-dashoffset: 80; animation: draw .6s .7s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 45; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 8px; height: 14px; border-radius: 2px; background: var(--gold); animation: fall 2.6s linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
@media (min-width: 600px) { .screen { padding-top: 32px; } .photo-grid { gap: 14px; } }

/* ============================================================
   Portada (hero editorial): foto a sangre, titular serif, nube elegante
   ============================================================ */
.screen.hero-screen { padding: 0 18px calc(22px + var(--sab)); max-width: 560px; }
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; padding-bottom: 8px; }
.hero::after { content: ""; position: absolute; inset: -40px -18px 0; pointer-events: none; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='160' height='160' filter='url(%23n)' opacity='.9'/></svg>"); }
.hero-glow { position: absolute; border-radius: 50%; pointer-events: none; }
.hero-glow.a { width: 520px; height: 520px; right: -200px; top: -120px; background: radial-gradient(circle, rgba(91, 141, 214, .28), transparent 62%); }
.hero-glow.b { width: 460px; height: 460px; left: -230px; top: 42%; background: radial-gradient(circle, rgba(217, 165, 76, .13), transparent 62%); }
.hero-top { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; padding: calc(16px + var(--sat)) 0 0; }
.wordmark { display: flex; align-items: center; gap: 10px; }
.wordmark img { width: 30px; height: 42px; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .5)); }
.wordmark span { display: flex; flex-direction: column; font-family: var(--brand); font-size: 14px; letter-spacing: .3em; color: var(--silver); line-height: 1.1; }
.wordmark small { font-size: 8.5px; letter-spacing: .42em; color: var(--muted); margin-top: 2px; }
.chip-gold { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; padding: 7px 11px; border-radius: 999px; border: 1px solid rgba(217, 165, 76, .5); color: var(--gold-hi); background: rgba(217, 165, 76, .08); font-weight: 600; white-space: nowrap; }
.hero-visual { position: relative; height: min(40vh, 380px); margin: 2px -18px 0; overflow: hidden; z-index: 1; }
.hero-ring { position: absolute; left: 50%; top: 2%; width: min(300px, 78vw); height: min(300px, 78vw); border-radius: 50%; transform: translateX(-50%); border: 1px solid rgba(217, 165, 76, .42); box-shadow: 0 0 80px rgba(91, 141, 214, .25), inset 0 0 60px rgba(91, 141, 214, .12); }
.hero-ring::after { content: ""; position: absolute; inset: 14px; border-radius: 50%; border: 1px solid rgba(205, 212, 223, .12); }
.hero-photo { position: absolute; bottom: 0; left: 50%; height: 100%; width: auto; max-width: none; transform: translateX(-50%); filter: contrast(1.06) saturate(.9) drop-shadow(0 24px 36px rgba(0, 0, 0, .55));
  -webkit-mask-image: linear-gradient(to bottom, #000 64%, transparent 97%); mask-image: linear-gradient(to bottom, #000 64%, transparent 97%); }
.hero-copy { position: relative; z-index: 2; margin-top: -58px; }
.hero-title { font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-weight: 500; font-size: clamp(34px, 9.6vw, 44px); line-height: 1.02; letter-spacing: -.01em; margin: 4px 0 0; color: var(--text); text-shadow: 0 2px 20px rgba(0, 0, 0, .6); }
.hero-title em { font-style: italic; color: var(--gold-hi); }
.cloud { position: relative; z-index: 2; margin-top: 14px; padding: 20px 18px 14px 20px; border-radius: 22px; background: linear-gradient(180deg, rgba(23, 42, 79, .78), rgba(13, 24, 48, .92)); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid rgba(205, 212, 223, .18); box-shadow: 0 30px 60px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .07); }
.cloud::before { content: ""; position: absolute; left: 22px; right: 22px; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .9; }
.cloud-tail { position: absolute; top: -9px; right: 44px; width: 18px; height: 18px; background: rgba(23, 42, 79, .96); border-left: 1px solid rgba(205, 212, 223, .2); border-top: 1px solid rgba(205, 212, 223, .2); transform: rotate(45deg); }
.cloud-quote { position: absolute; left: 14px; top: 2px; font-family: var(--brand); font-size: 58px; line-height: 1; color: var(--gold); opacity: .55; }
.cloud-lines { position: relative; padding-left: 10px; min-height: 60px; }
.cloud-lines p { margin: 0 0 8px; font-size: 15.5px; line-height: 1.45; color: var(--text); opacity: 0; }
.cloud-lines p b { color: var(--gold-hi); font-weight: 600; }
.cloud-sign { display: flex; align-items: center; gap: 10px; margin-top: 6px; padding-left: 10px; opacity: 0; }
.cloud-sign i { width: 26px; height: 1px; background: var(--gold); display: block; }
.cloud-sign span { font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-hi); font-weight: 600; }
.hero-cta { position: sticky; bottom: 0; z-index: 4; margin: 18px -18px 0; padding: 12px 18px calc(10px + var(--sab)); display: grid; gap: 2px; opacity: 0; background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--bg) 92%, transparent) 35%, var(--bg)); }
.hero-cta .btn.link { min-height: 38px; }
.btn.silver { background: linear-gradient(180deg, #ffffff 0%, #d9dfe8 60%, #c3ccd9 100%); color: #06101f; box-shadow: 0 14px 36px rgba(205, 212, 223, .22), inset 0 1px 0 #fff; }
.hero-stats { display: none; }
.hero-stats b { display: block; font-family: var(--cond); font-size: 24px; line-height: 1; color: var(--silver); }
.hero-stats span { display: block; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); margin-top: 4px; line-height: 1.3; }
@media (min-width: 720px) {
  .screen.hero-screen { max-width: 980px; }
  .hero { display: grid; grid-template-columns: 1.02fr .98fr; grid-template-areas: "top top" "copy visual" "cloud visual" "cta visual"; column-gap: 32px; align-content: start; }
  .hero-top { grid-area: top; margin-bottom: 36px; }
  .hero-visual { grid-area: visual; height: auto; min-height: 560px; margin: 0; }
  .hero-ring { width: 380px; height: 380px; top: 2%; }
  .hero-copy { grid-area: copy; margin-top: 0; }
  .hero-title { font-size: 56px; }
  .cloud { grid-area: cloud; }
  .cloud-tail { display: none; }
  .hero-cta { grid-area: cta; max-width: 420px; position: relative; margin: 18px 0 0; padding: 0; background: none; }
}

/* ============================================================
   Tutorial de instalación: móvil realista + pasos sincronizados
   ============================================================ */
.seg { display: flex; width: 100%; padding: 4px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); gap: 4px; }
.seg button { flex: 1; padding: 8px 6px; border-radius: 12px; color: var(--muted); font-weight: 600; font-size: 13px; line-height: 1.2; }
.seg button small { display: block; font-size: 11px; font-weight: 500; color: var(--dim); }
.seg button.on { background: var(--card-3); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.seg button.on small { color: var(--muted); }
.tut-wrap { display: grid; gap: 14px; }
.tut-now { min-height: 52px; text-align: center; font-size: 16.5px; font-weight: 600; color: var(--text); padding: 0 6px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.tut-now i { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-family: var(--cond); font-style: normal; font-size: 15px; flex: none; }
.ph { position: relative; width: 216px; height: 446px; margin: 0 auto; border-radius: 42px; background: #0c111b; padding: 9px; box-shadow: 0 30px 70px rgba(0, 0, 0, .6), inset 0 0 0 1.5px rgba(255, 255, 255, .08), inset 0 0 0 4px #1a2131; }
.ph::before { content: ""; position: absolute; left: 50%; top: 18px; transform: translateX(-50%); width: 76px; height: 22px; border-radius: 12px; background: #000; z-index: 6; }
.ph-screen { position: relative; width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: #0a1326; }
.ph-status { position: absolute; top: 0; left: 0; right: 0; height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 8px 22px 0; font-size: 12px; font-weight: 600; color: #fff; z-index: 5; }
.ph-status i { display: inline-block; width: 22px; height: 10px; border: 1.5px solid #fff; border-radius: 3px; position: relative; vertical-align: middle; }
.ph-status i::after { content: ""; position: absolute; inset: 1.5px; right: 5px; background: #fff; border-radius: 1px; }
.ph-app { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding-bottom: 56px; background: radial-gradient(260px 200px at 50% 20%, rgba(91, 141, 214, .22), transparent 70%), #0a1326; }
.ph-app img { width: 56px; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .5)); }
.ph-app .wm { font-family: var(--brand); font-size: 11px; letter-spacing: .32em; color: var(--silver); }
.ph-app .mini-btn { margin-top: 10px; padding: 9px 22px; border-radius: 999px; background: linear-gradient(180deg, #fff, #cdd4df); color: #06101f; font-size: 11px; font-weight: 700; }
.ph-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 74px; background: rgba(18, 26, 43, .96); border-top: 1px solid rgba(255, 255, 255, .08); z-index: 3; }
.ph-bar .url { position: absolute; left: 12px; right: 12px; top: 8px; height: 30px; border-radius: 10px; background: #26324a; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 10.5px; color: var(--silver); }
.ph-bar .url svg { width: 12px; height: 12px; color: var(--dim); }
.ph-bar .tools { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: space-around; padding: 0 14px; }
.ph-bar .tools svg { width: 22px; height: 22px; color: #5b8dd6; }
.ph-bar .tools .dots { width: 22px; height: 22px; display: grid; place-items: center; }
.ph-bar .tools .dots svg { color: #5b8dd6; }
.ph-topbar { position: absolute; left: 0; right: 0; top: 44px; height: 46px; display: flex; align-items: center; gap: 8px; padding: 0 12px; background: #141c2e; z-index: 3; }
.ph-topbar .url { flex: 1; height: 30px; border-radius: 999px; background: #26324a; display: flex; align-items: center; padding: 0 12px; font-size: 10.5px; color: var(--silver); gap: 6px; }
.ph-topbar .url svg { width: 12px; height: 12px; color: var(--dim); }
.ph-topbar .dots svg { width: 22px; height: 22px; color: #e9edf2; }
.ph-dim { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); opacity: 0; z-index: 4; pointer-events: none; }
.ph-sheet { position: absolute; left: 6px; right: 6px; bottom: 0; height: 320px; border-radius: 18px 18px 0 0; background: #1c2538; z-index: 5; transform: translateY(110%); overflow: hidden; }
.ph-sheet .hd { display: flex; align-items: center; gap: 10px; padding: 14px 14px 10px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.ph-sheet .hd img { width: 34px; height: 34px; border-radius: 8px; }
.ph-sheet .hd b { display: block; font-size: 12px; color: #fff; }
.ph-sheet .hd span { font-size: 10px; color: var(--muted); }
.ph-sheet .apps { display: flex; gap: 14px; padding: 12px 14px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.ph-sheet .apps i { width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(145deg, #3a4a6a, #263348); display: block; flex: none; }
.ph-sheet .scroll { will-change: transform; }
.ph-sheet .list { padding: 8px 10px; }
.ph-sheet .it { display: flex; align-items: center; justify-content: space-between; height: 36px; padding: 0 10px; border-radius: 9px; font-size: 11.5px; color: #e9edf2; white-space: nowrap; }
.ph-sheet .it svg { width: 18px; height: 18px; color: #e9edf2; }
.ph-sheet .it.hl { background: rgba(91, 141, 214, .18); outline: 2px solid var(--accent); outline-offset: -2px; font-weight: 700; }
.ph-sheet .it.hl svg { color: var(--accent-hi); }
.ph-menu { position: absolute; z-index: 5; width: 176px; background: #1c2538; border-radius: 14px; box-shadow: 0 20px 50px rgba(0, 0, 0, .6); padding: 6px; opacity: 0; transform: scale(.9); }
.ph-menu.bottom { right: 10px; bottom: 82px; transform-origin: 90% 100%; }
.ph-menu.top { right: 10px; top: 92px; transform-origin: 90% 0%; }
.ph-menu .it { display: flex; align-items: center; justify-content: space-between; height: 32px; padding: 0 10px; border-radius: 8px; font-size: 11.5px; color: #e9edf2; }
.ph-menu .it svg { width: 16px; height: 16px; color: #e9edf2; }
.ph-menu .it.hl { background: rgba(91, 141, 214, .18); outline: 2px solid var(--accent); outline-offset: -2px; font-weight: 700; }
.ph-confirm { position: absolute; inset: 0; background: #0f172a; z-index: 6; opacity: 0; display: flex; flex-direction: column; }
.ph-confirm .top { display: flex; align-items: center; justify-content: space-between; padding: 54px 12px 12px; font-size: 11px; color: #5b8dd6; white-space: nowrap; }
.ph-confirm .top b { color: #fff; }
.ph-confirm .top .add { font-weight: 700; padding: 6px 12px; border-radius: 999px; background: rgba(91, 141, 214, .18); }
.ph-confirm .body { display: flex; gap: 12px; align-items: center; margin: 10px 14px; padding: 12px; border-radius: 12px; background: #1c2538; }
.ph-confirm .body img { width: 50px; height: 50px; border-radius: 12px; }
.ph-confirm .body b { display: block; font-size: 12px; color: #fff; white-space: nowrap; }
.ph-confirm .body span { font-size: 10px; color: var(--muted); }
.ph-confirm.android .top { display: none; }
.ph-confirm.android { justify-content: flex-end; background: rgba(0, 0, 0, .5); }
.ph-confirm.android .card { margin: 0 10px 14px; border-radius: 16px; background: #1c2538; padding: 14px; }
.ph-confirm.android .card h5 { margin: 0 0 10px; font-size: 13px; color: #fff; font-weight: 600; }
.ph-confirm.android .btns { display: flex; justify-content: flex-end; gap: 6px; margin-top: 8px; font-size: 11.5px; }
.ph-confirm.android .btns span { padding: 7px 12px; border-radius: 999px; color: #5b8dd6; }
.ph-confirm.android .btns .inst { background: var(--accent); color: #06101f; font-weight: 700; }
.ph-home { position: absolute; inset: 0; z-index: 7; opacity: 0; background: radial-gradient(320px 260px at 50% 0%, #1a2a4a, #070b14 70%); padding: 60px 16px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 10px; align-content: start; }
.ph-home i { aspect-ratio: 1; border-radius: 13px; background: linear-gradient(145deg, #2a3650, #1a2336); display: block; }
.ph-home .app { position: relative; }
.ph-home .app img { width: 100%; height: 100%; border-radius: 13px; display: block; transform: scale(0); box-shadow: 0 0 0 2px var(--gold), 0 10px 20px rgba(0, 0, 0, .5); }
.ph-home .app span { position: absolute; left: -10px; right: -10px; top: calc(100% + 4px); text-align: center; font-size: 9.5px; color: #fff; opacity: 0; }
.ph-finger { position: absolute; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .22); border: 2px solid rgba(255, 255, 255, .85); box-shadow: 0 0 0 6px rgba(255, 255, 255, .08); z-index: 9; transform: translate(-50%, -50%) scale(0); pointer-events: none; left: 0; top: 0; }
.steps-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: s; }
.steps-list li { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); color: var(--muted); font-size: 15px; transition: .25s; }
.steps-list li i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--card-3); color: var(--silver); font-family: var(--cond); font-size: 16px; font-weight: 700; flex: none; font-style: normal; }
.steps-list li.on { color: var(--text); border-color: color-mix(in srgb, var(--accent) 60%, transparent); background: var(--accent-soft); }
.steps-list li.on i { background: var(--accent); color: var(--accent-ink); }
.steps-list li.done { color: var(--muted); }
.steps-list li.done i { background: var(--ok); color: #03200e; }
@media (min-width: 720px) { .tut-wrap { grid-template-columns: 240px 1fr; align-items: center; } }

/* ---------- Formulario: escalera, respuesta rápida y efectos ---------- */
.f-glow { position: absolute; left: 50%; top: 24%; width: 520px; height: 520px; margin-left: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(91, 141, 214, .16), rgba(217, 165, 76, .05) 45%, transparent 68%); pointer-events: none; z-index: 0; }
.q-stage { z-index: 1; }
.q-title .w { display: inline-block; }
.stairs { user-select: none; -webkit-user-select: none; touch-action: pan-y; margin-top: 4px; }
.stairs-val { display: flex; align-items: baseline; justify-content: center; gap: 6px; min-height: 60px; margin-bottom: 4px; flex-wrap: wrap; }
.stairs-val b { font-family: var(--cond); font-size: 58px; line-height: 1; color: var(--gold-hi); display: inline-block; min-width: 50px; text-align: center; }
.stairs-val > span { color: var(--muted); font-size: 16px; font-family: var(--cond); }
.stairs-val em { flex-basis: 100%; text-align: center; font-style: normal; font-size: 14px; color: var(--muted); margin-top: 2px; min-height: 20px; }
.stairs-bars { display: flex; align-items: flex-end; gap: 5px; height: 150px; padding: 0 2px; cursor: pointer; outline: none; }
.st { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; padding: 0; min-width: 0; }
.st i { display: block; width: 100%; height: var(--h); border-radius: 7px 7px 3px 3px; background: linear-gradient(180deg, var(--card-3), var(--card-2)); border: 1px solid var(--line-2); transition: background .25s, box-shadow .25s, border-color .25s; transform-origin: bottom; }
.st span { font-family: var(--cond); font-size: 13.5px; color: var(--dim); line-height: 1; transition: color .2s; }
.st.lit i { background: linear-gradient(180deg, var(--gold-hi), var(--gold) 70%, #b8893a); border-color: var(--gold); box-shadow: 0 8px 20px rgba(217, 165, 76, .3); }
.st.lit span { color: var(--silver); }
.st.sel i { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .8), 0 12px 26px rgba(217, 165, 76, .5); }
.st.sel span { color: var(--gold-hi); font-weight: 700; font-size: 15px; }
.stairs-labels { display: flex; justify-content: space-between; margin-top: 12px; font-size: 13.5px; color: var(--text); font-weight: 600; }
.stairs-labels span { display: inline-flex; align-items: center; gap: 4px; }
.stairs-labels svg { width: 16px; height: 16px; color: var(--gold); }
.opt.quick { border-style: solid; background: linear-gradient(180deg, rgba(23, 42, 79, .7), rgba(13, 24, 48, .8)); min-height: 66px; }
.opt.quick b { display: block; font-size: 17px; }
.or { display: flex; align-items: center; gap: 12px; margin: 14px 0 10px; color: var(--dim); font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; }
.or i { flex: 1; height: 1px; background: var(--line-2); display: block; }
.opt.pulse { animation: optPulse .6s ease-out; }
@keyframes optPulse { 0% { box-shadow: 0 0 0 0 rgba(217, 165, 76, .55); } 100% { box-shadow: 0 0 0 18px rgba(217, 165, 76, 0); } }
.sec-ring svg { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); transform: rotate(-90deg); }
.sec-ring svg circle { fill: none; stroke-width: 1.5; }
.sec-ring svg .track { stroke: rgba(205, 212, 223, .12); }
.sec-ring svg .prog { stroke: var(--gold); stroke-dasharray: 364; stroke-dashoffset: 0; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(217, 165, 76, .6)); }
.sec-ring { border-color: transparent; }
.bar.gold > span { position: relative; overflow: visible; }
.bar.gold > span::after { content: ""; position: absolute; right: -3px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--gold-hi); box-shadow: 0 0 12px 3px rgba(217, 165, 76, .55); }

/* ---------- Dibujos de pregunta, candado y tarjeta de WhatsApp ---------- */
.q-sub { display: flex; flex-direction: column; margin: 0 0 14px; }
.q-sub .q-help, .q-sub .info-text { margin-bottom: 0; }
.q-sub .q-help { margin-top: 2px; }
.ill { width: min(250px, 78%); aspect-ratio: 200 / 140; margin: -4px -4px 6px auto; transform: rotate(-6deg); transform-origin: 55% 50%; color: var(--silver); opacity: .94; display: flex; justify-content: center; position: relative; }
.ill::before { content: ""; position: absolute; inset: 0 -4%; border-radius: 50%; background: radial-gradient(closest-side, rgba(91, 141, 214, .16), transparent); z-index: -1; }
.ill svg { width: 100%; height: 100%; overflow: visible; }
.ill .g { stroke: var(--gold); }
@media (min-width: 600px) { .ill { width: 300px; } }
.info-text p { font-size: 17px; line-height: 1.55; color: var(--text); margin: 0 0 12px; }
.info-text p:first-child::first-letter { color: var(--gold-hi); }
.lock { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(6, 12, 25, .55); border: 1px solid var(--line-2); color: var(--muted); flex: none; transition: background .4s, color .4s, border-color .4s; }
.lock svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.lock .shackle { transform-origin: 16px 11px; transition: transform .6s cubic-bezier(.2, .8, .2, 1.4); }
.lock.open { background: var(--gold-soft); border-color: rgba(217, 165, 76, .6); color: var(--gold-hi); box-shadow: 0 0 0 4px rgba(217, 165, 76, .12); }
.lock.open .shackle { transform: translate(2px, -3px) rotate(-38deg); }
.lock.pop { animation: lockPop .7s cubic-bezier(.2, .9, .3, 1.4); }
@keyframes lockPop { 0% { transform: scale(1); } 40% { transform: scale(1.25); } 100% { transform: scale(1); } }
.lock.shake { animation: lockShake .5s ease; }
@keyframes lockShake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-5px) rotate(-6deg); } 40% { transform: translateX(5px) rotate(6deg); } 60% { transform: translateX(-4px); } 80% { transform: translateX(4px); } }
.wa-card { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 12px 14px; border-radius: 18px; background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--line); color: var(--text); text-decoration: none; position: relative; box-shadow: 0 12px 30px rgba(0, 0, 0, .25); }
.wa-card::before { content: ""; position: absolute; left: 22px; right: 22px; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--silver), transparent); opacity: .6; }
.wa-card img { width: 34px; height: 46px; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .5)); }
.wa-card .t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.wa-card .t b { font-size: 15px; }
.wa-card .t span { font-size: 13px; color: var(--muted); }
.wa-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 8px 20px rgba(37, 211, 102, .35); flex: none; }
.wa-btn svg { width: 24px; height: 24px; }
