/* Échale Ojo — sistema visual inspirado en Apple / Revolut */
:root {
  --bg: #FFFFFF; --bg2: #F5F5F7; --ink: #1D1D1F; --ink2: #6E6E73; --ink3: #AEAEB2; --line: #E8E8ED;
  --accent: #0A5CFF; --accent-press: #0047D6; --accent-soft: #EAF1FF;
  --green: #1F9254; --green-bg: #E7F6EC; --green-glow: rgba(90, 220, 150, .28);
  --amber: #B15C00; --amber-bg: #FFF1E0;
  --red: #D70015; --red-bg: #FFEBEE;
  --gray-bg: #F0F0F2;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --r-lg: 22px; --r-md: 14px; --r-full: 999px;
  --chrome: linear-gradient(150deg, #F4F4F6 0%, #D7D8DC 16%, #A8AAB0 38%, #75767C 58%, #4B4C51 82%, #38393D 100%);
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #EDEDF0; color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input { font-family: inherit; }
a { color: var(--accent); }
.icon { width: 20px; height: 20px; flex-shrink: 0; }
.sr { position: absolute; top: 0; left: 0; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- contenedor ---------- */
.shell { min-height: 100dvh; display: flex; justify-content: center; }
.app { position: relative; width: 100%; max-width: 480px; min-height: 100dvh; background: var(--bg2); display: flex; flex-direction: column; }
@media (min-width: 600px) {
  body { background: radial-gradient(1200px 600px at 50% -10%, #FFFFFF 0%, #EDEDF0 60%); }
  .app { margin: 32px 0; min-height: calc(100dvh - 64px); border-radius: 36px; overflow: hidden; box-shadow: 0 40px 90px -30px rgba(0,0,0,.28), 0 0 0 1px rgba(0,0,0,.04); }
}
html.is-hero body { background: #000; }
@media (min-width: 600px) { html.is-hero body { background: radial-gradient(1200px 700px at 50% -10%, #2A2B30 0%, #050506 65%); } }
html.is-hero .app { background: #0B0B0C; }

.topbar { display: flex; align-items: center; gap: 6px; padding: 12px 14px 6px; min-height: 52px; position: sticky; top: 0; z-index: 20; background: rgba(245,245,247,.82); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
.topbar .back { width: 38px; height: 38px; border-radius: 50%; border: 0; background: transparent; color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.topbar .back:active { background: rgba(0,0,0,.06); }
.topbar .back[hidden] { visibility: hidden; display: flex; }
.topbar .wordmark { font-weight: 700; font-size: 17px; letter-spacing: -.01em; flex: 1; text-align: center; margin-right: 44px; }
.progress { display: flex; gap: 4px; padding: 0 20px 12px; position: sticky; top: 52px; z-index: 19; background: rgba(245,245,247,.82); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.progress .s { flex: 1; height: 3px; border-radius: 2px; background: var(--line); transition: background .3s; }
.progress .s.done { background: var(--accent); }
html.is-hero .topbar, html.is-hero .progress { display: none; }

main { flex: 1; padding: 6px 20px calc(32px + var(--safe-b)); }
.screen { animation: enter .38s cubic-bezier(.2,.9,.3,1) both; }
@keyframes enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .screen { animation: none; } }

h1 { font-size: 29px; line-height: 1.16; letter-spacing: -.022em; font-weight: 700; margin: 6px 0 10px; }
p.lead { color: var(--ink2); font-size: 16px; line-height: 1.5; margin: 0 0 22px; }
.microlabel { font-size: 12px; font-weight: 600; letter-spacing: .07em; color: var(--ink2); text-transform: uppercase; margin: 26px 4px 10px; }
.microhint { font-size: 13px; color: var(--ink2); margin: -4px 4px 12px; line-height: 1.45; display: flex; gap: 6px; align-items: flex-start; }
.microhint .icon { width: 15px; height: 15px; margin-top: 2px; }
.tiny { font-size: 12.5px; color: var(--ink2); text-align: center; margin-top: 16px; line-height: 1.5; }
.screentop { display: flex; flex-direction: column; align-items: center; text-align: center; margin: 6px 0 8px; }
.screentop .chrome-badge { margin-bottom: 18px; }
.kicker { font-size: 13px; font-weight: 600; color: var(--accent); margin: 4px 0 2px; }

/* ---------- botones ---------- */
.btn { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; background: var(--accent); color: #fff; border: 0; padding: 16px; border-radius: var(--r-full); font-size: 17px; font-weight: 600; cursor: pointer; transition: transform .12s, background .2s, opacity .2s; min-height: 54px; }
.btn:active { transform: scale(.98); background: var(--accent-press); }
.btn:disabled { background: var(--line); color: var(--ink3); cursor: not-allowed; transform: none; }
.btn.tonal { background: var(--accent-soft); color: var(--accent); }
.btn.tonal:active { background: #DCE8FF; }
.btn.dark { background: var(--ink); }
.btn.white { background: #fff; color: var(--ink); }
.btn .icon { width: 18px; height: 18px; }
.btn.loading { color: transparent !important; pointer-events: none; }
.btn.loading::after { content: ""; position: absolute; width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; animation: sp .8s linear infinite; }
.btn.tonal.loading::after { border-color: rgba(10,92,255,.25); border-top-color: var(--accent); }
.linkbtn { display: block; width: 100%; text-align: center; background: none; border: 0; color: var(--ink2); font-size: 15px; font-weight: 500; padding: 14px 0 0; cursor: pointer; }
.linkbtn.accent { color: var(--accent); font-weight: 600; }
.stack { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
@keyframes sp { to { transform: rotate(360deg); } }

/* ---------- chrome (insignias metálicas) ---------- */
.chrome-badge { border-radius: 50%; flex-shrink: 0; background: var(--chrome); box-shadow: inset 0 1.5px 1px rgba(255,255,255,.75), inset 0 -3px 6px rgba(0,0,0,.35), 0 10px 22px -8px rgba(0,0,0,.4); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.chrome-badge::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 32%, rgba(255,255,255,.5) 46%, rgba(255,255,255,.65) 49%, transparent 62%); mix-blend-mode: overlay; }
.chrome-badge svg { color: #2B2C30; filter: drop-shadow(0 -1px 0 rgba(0,0,0,.5)) drop-shadow(0 1px 0 rgba(255,255,255,.5)); position: relative; z-index: 1; }
.chrome-badge.lg { width: 76px; height: 76px; border-radius: 24px; }
.chrome-badge.lg svg { width: 34px; height: 34px; }
.chrome-badge.xl { width: 92px; height: 92px; border-radius: 28px; box-shadow: inset 0 1.5px 1px rgba(255,255,255,.75), inset 0 -3px 6px rgba(0,0,0,.35), 0 14px 30px -10px rgba(0,0,0,.4), 0 0 34px 4px var(--green-glow); }
.chrome-badge.xl svg { width: 40px; height: 40px; }
.chrome-badge.xl.warn { box-shadow: inset 0 1.5px 1px rgba(255,255,255,.75), inset 0 -3px 6px rgba(0,0,0,.35), 0 14px 30px -10px rgba(0,0,0,.4), 0 0 34px 4px rgba(255,170,60,.3); }
.chrome-badge.sm { width: 38px; height: 38px; }
.chrome-badge.sm svg { width: 18px; height: 18px; }
.chrome-badge.pulse { animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.045); } }

/* ---------- portada ---------- */
html.is-hero main { padding: 0; }
.hero { position: relative; overflow: hidden; margin: 0; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 20px 28px calc(26px + var(--safe-b)); background: radial-gradient(120% 85% at 50% 8%, #26272C 0%, #0B0B0C 62%); color: #fff; }
@media (min-width: 600px) { .hero { min-height: calc(100dvh - 64px); } }
.hero-dots { position: absolute; inset: 0; opacity: .5; background-image: radial-gradient(rgba(255,255,255,.16) 1px, transparent 1.4px); background-size: 20px 20px; -webkit-mask-image: radial-gradient(70% 55% at 50% 30%, #000 35%, transparent 78%); mask-image: radial-gradient(70% 55% at 50% 30%, #000 35%, transparent 78%); pointer-events: none; }
.hero-mid { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; padding: 7vh 0 18px; position: relative; z-index: 2; }
.hero-icon-stage { position: relative; width: 128px; height: 128px; display: flex; align-items: center; justify-content: center; }
.hero-ring { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 236px; height: 236px; border-radius: 50%; border: 1px solid rgba(255,255,255,.14); }
.hero-ring::before { content: ""; position: absolute; inset: -34px; border-radius: 50%; border: 1px solid rgba(255,255,255,.06); }
.chrome-icon { width: 128px; height: 128px; border-radius: 30px; position: relative; z-index: 2; background: var(--chrome); box-shadow: inset 0 1.5px 1px rgba(255,255,255,.75), inset 0 -3px 6px rgba(0,0,0,.45), 0 40px 70px -18px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.06), 0 0 44px 6px rgba(130,165,255,.28); display: flex; align-items: center; justify-content: center; }
.chrome-icon::after { content: ""; position: absolute; inset: 0; border-radius: 30px; background: linear-gradient(115deg, transparent 32%, rgba(255,255,255,.55) 46%, rgba(255,255,255,.7) 49%, transparent 62%); mix-blend-mode: overlay; }
@media (prefers-reduced-motion: no-preference) { .chrome-icon::after { animation: sheen 5s ease-in-out infinite; } }
@keyframes sheen { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }
.chrome-icon svg { width: 54px; height: 54px; color: #2B2C30; filter: drop-shadow(0 -1px 0 rgba(0,0,0,.55)) drop-shadow(0 1.5px 0 rgba(255,255,255,.55)); position: relative; z-index: 1; }
.hero-word { font-size: 15px; font-weight: 600; letter-spacing: .02em; color: rgba(255,255,255,.85); }
.hero h1 { font-size: 30px; line-height: 1.18; letter-spacing: -.025em; color: #fff; margin: 0; }
.hero-lead { font-size: 15.5px; line-height: 1.55; color: rgba(255,255,255,.62); max-width: 350px; margin: 12px auto 0; }
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 4px; }
.trust span { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; color: rgba(255,255,255,.72); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.08); padding: 6px 11px; border-radius: var(--r-full); }
.trust .icon { width: 14px; height: 14px; }
.hero-bottom { width: 100%; position: relative; z-index: 2; }
.hero .btn { background: #fff; color: #0B0B0C; }
.hero .btn:active { background: #E9E9EC; }
.hero-links { display: flex; justify-content: center; gap: 18px; margin-top: 18px; font-size: 12.5px; }
.hero-links a { color: rgba(255,255,255,.45); text-decoration: none; }

/* ---------- selección de servicios ---------- */
.svc { position: relative; display: block; margin-bottom: 10px; }
.svc input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.svc .row { display: flex; align-items: center; gap: 14px; background: var(--bg); border-radius: var(--r-lg); padding: 16px; cursor: pointer; border: 1.5px solid transparent; transition: background .15s, border-color .15s, transform .12s; }
.svc .row:active { transform: scale(.99); }
.svc input:focus-visible + .row { outline: 3px solid rgba(10,92,255,.35); outline-offset: 2px; }
.svc input:checked + .row { background: var(--accent-soft); border-color: var(--accent); }
.svc .ic { width: 42px; height: 42px; border-radius: 50%; background: var(--bg2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--ink2); transition: color .15s, background .15s; }
.svc input:checked + .row .ic { color: var(--accent); background: #fff; }
.svc .txt { flex: 1; min-width: 0; }
.svc .q { font-weight: 600; font-size: 15.5px; letter-spacing: -.005em; line-height: 1.3; }
.svc .d { color: var(--ink2); font-size: 13.5px; margin-top: 3px; line-height: 1.4; }
.svc .tag { display: inline-flex; align-items: center; gap: 4px; margin-top: 7px; font-size: 11.5px; font-weight: 600; color: var(--ink2); background: var(--bg2); padding: 3px 8px; border-radius: var(--r-full); }
.svc input:checked + .row .tag { background: #fff; }
.svc .tag .icon { width: 12px; height: 12px; }
.svc .right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; }
.svc .price { font-weight: 700; font-size: 15px; }
.svc .chk { width: 22px; height: 22px; border-radius: 50%; border: 1.6px solid var(--line); background: #fff; display: flex; align-items: center; justify-content: center; color: #fff; transition: background .15s, border-color .15s; }
.svc .chk svg { width: 12px; height: 12px; opacity: 0; }
.svc input:checked + .row .chk { background: var(--accent); border-color: var(--accent); }
.svc input:checked + .row .chk svg { opacity: 1; }

.sticky { position: sticky; bottom: calc(14px + var(--safe-b)); margin-top: 20px; z-index: 5; }
.sticky .card { background: var(--ink); color: #fff; border-radius: var(--r-lg); padding: 16px 18px; box-shadow: 0 20px 40px -12px rgba(0,0,0,.35); }
.sticky .row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.sticky .n { font-size: 13px; color: #AEAEB2; }
.sticky .v { font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
.sticky .btn { background: #fff; color: var(--ink); }
.sticky .btn:disabled { background: #3A3A3C; color: #8E8E93; }

/* ---------- formularios ---------- */
.group { background: var(--bg); border-radius: var(--r-lg); padding: 6px 16px; margin-bottom: 14px; }
.field { padding: 12px 0; border-bottom: 1px solid var(--line); position: relative; }
.field:last-child { border-bottom: 0; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink2); margin-bottom: 4px; }
.field .inwrap { display: flex; align-items: center; gap: 10px; }
.field .inwrap .icon { color: var(--ink3); }
.field input { width: 100%; padding: 6px 0; border: 0; background: transparent; font-size: 17px; color: var(--ink); outline: none; min-height: 32px; }
.field input::placeholder { color: var(--ink3); }
.field input.upper { text-transform: uppercase; }
.field input.upper::placeholder { text-transform: none; }
.field .hint { font-size: 12.5px; color: var(--ink2); margin-top: 4px; line-height: 1.4; }
.field.invalid label { color: var(--red); }
.field .err { font-size: 13px; color: var(--red); margin-top: 4px; display: none; }
.field.invalid .err { display: block; }
.eye { background: none; border: 0; color: var(--ink2); padding: 6px; cursor: pointer; display: flex; }

.checkline { display: flex; gap: 12px; align-items: flex-start; margin: 16px 4px; cursor: pointer; }
.checkline input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.checkline .box { width: 22px; height: 22px; border-radius: 7px; border: 1.6px solid var(--ink3); flex-shrink: 0; margin-top: 1px; display: flex; align-items: center; justify-content: center; color: #fff; background: #fff; transition: background .15s, border-color .15s; }
.checkline .box svg { width: 13px; height: 13px; opacity: 0; }
.checkline input:checked + .box { background: var(--accent); border-color: var(--accent); }
.checkline input:checked + .box svg { opacity: 1; }
.checkline input:focus-visible + .box { outline: 3px solid rgba(10,92,255,.35); outline-offset: 2px; }
.checkline span.t { font-size: 14px; line-height: 1.5; color: var(--ink2); }
.checkline.invalid .box { border-color: var(--red); }

.infocard { display: flex; gap: 12px; background: var(--amber-bg); border-radius: var(--r-lg); padding: 15px 16px; margin: 4px 0 16px; }
.infocard .icon { color: var(--amber); margin-top: 1px; }
.infocard .t { font-size: 14px; line-height: 1.45; color: #7A4210; }
.infocard b { color: var(--amber); }
.infocard.blue { background: var(--accent-soft); }
.infocard.blue .icon { color: var(--accent); }
.infocard.blue .t { color: #13336E; }
.infocard.blue b { color: var(--accent); }
.note { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--ink2); margin: 0 4px 20px; line-height: 1.4; }
.note .icon { width: 16px; height: 16px; }
.turnstile { display: flex; justify-content: center; min-height: 0; margin: 4px 0 8px; }

/* ---------- verificación de identidad ---------- */
.list { background: var(--bg); border-radius: var(--r-lg); padding: 4px 16px; margin: 4px 0 14px; }
.list-item { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.list-item:last-child { border-bottom: 0; }
.list-item .n { width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.list-item .t { font-weight: 600; font-size: 15px; }
.list-item .d { font-size: 13.5px; color: var(--ink2); margin-top: 1px; }

.viewfinder { position: relative; height: min(62vh, 430px); min-height: 320px; border-radius: 28px; overflow: hidden; margin: 4px 0 20px; background: radial-gradient(120% 90% at 50% 15%, #2B2C32 0%, #0B0B0C 72%); display: flex; align-items: center; justify-content: center; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.viewfinder video, .viewfinder img.still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.viewfinder video.mirror, .viewfinder img.mirror { transform: scaleX(-1); }
.vf-dots { position: absolute; inset: 0; opacity: .45; background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1.4px); background-size: 18px 18px; -webkit-mask-image: radial-gradient(60% 50% at 50% 45%, #000 30%, transparent 80%); mask-image: radial-gradient(60% 50% at 50% 45%, #000 30%, transparent 80%); }
.vf-shade { position: absolute; inset: 0; pointer-events: none; }
.vf-card { position: relative; width: 86%; aspect-ratio: 1.586; border-radius: 16px; margin-top: -26px; box-shadow: 0 0 0 999px rgba(0,0,0,.42); z-index: 2; }
.vf-card .c { position: absolute; width: 30px; height: 30px; border: 3px solid rgba(255,255,255,.95); transition: border-color .3s; }
.vf-card .tl { top: -3px; left: -3px; border-right: 0; border-bottom: 0; border-top-left-radius: 16px; }
.vf-card .tr { top: -3px; right: -3px; border-left: 0; border-bottom: 0; border-top-right-radius: 16px; }
.vf-card .bl { bottom: -3px; left: -3px; border-right: 0; border-top: 0; border-bottom-left-radius: 16px; }
.vf-card .br { bottom: -3px; right: -3px; border-left: 0; border-top: 0; border-bottom-right-radius: 16px; }
.vf-card.ok .c { border-color: #34C77B; }
.vf-card .preview { position: absolute; inset: 0; border-radius: 13px; overflow: hidden; background: #000; animation: pop .35s cubic-bezier(.2,.9,.3,1.2); }
.vf-card .preview img { width: 100%; height: 100%; object-fit: cover; }
.vf-scan { position: absolute; left: 6%; right: 6%; height: 2px; top: 10%; border-radius: 2px; background: linear-gradient(90deg, transparent, #7FA6FF, transparent); box-shadow: 0 0 16px 3px rgba(110,150,255,.55); animation: scan 2.2s ease-in-out infinite alternate; }
@keyframes scan { to { top: 88%; } }
@keyframes pop { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
.vf-hint { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 7px; white-space: nowrap; background: rgba(30,30,32,.55); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: #fff; font-size: 13.5px; font-weight: 600; padding: 8px 14px; border-radius: var(--r-full); z-index: 3; }
.vf-hint .dot-ok { width: 17px; height: 17px; border-radius: 50%; background: #34C77B; display: flex; align-items: center; justify-content: center; }
.vf-hint .dot-ok svg { width: 10px; height: 10px; color: #fff; }
.mini-spin { width: 13px; height: 13px; border-radius: 50%; border: 2px solid rgba(255,255,255,.3); border-top-color: #fff; animation: sp .8s linear infinite; }
.vf-oval { position: relative; width: 58%; max-width: 250px; aspect-ratio: 3/4; margin-top: -26px; border-radius: 50%; box-shadow: 0 0 0 999px rgba(0,0,0,.45); z-index: 2; }
.vf-oval .sil { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; color: rgba(255,255,255,.13); display: flex; align-items: flex-end; justify-content: center; }
.vf-oval .sil svg { width: 80%; }
.vf-oval .ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.vf-oval .ring ellipse { fill: none; stroke: rgba(255,255,255,.9); stroke-width: 2.4; vector-effect: non-scaling-stroke; }
.vf-oval.busy .ring ellipse { stroke: #34C77B; stroke-width: 4; stroke-dasharray: 100; stroke-dashoffset: 100; animation: trace 6s cubic-bezier(.3,.1,.3,1) forwards; }
@keyframes trace { to { stroke-dashoffset: 0; } }
.vf-msg { position: relative; z-index: 3; color: rgba(255,255,255,.85); text-align: center; padding: 0 30px; font-size: 15px; line-height: 1.5; }
.vf-msg .btn { margin-top: 16px; }
@media (prefers-reduced-motion: reduce) { .vf-scan, .vf-oval.busy .ring ellipse { animation: none; stroke-dashoffset: 0; } }

.shutter-row { display: flex; align-items: center; justify-content: center; gap: 28px; }
.shutter { width: 76px; height: 76px; border-radius: 50%; padding: 5px; border: 4px solid var(--ink); background: transparent; cursor: pointer; transition: transform .12s; flex-shrink: 0; }
.shutter span { display: block; width: 100%; height: 100%; border-radius: 50%; background: var(--ink); }
.shutter:active { transform: scale(.92); }
.shutter:disabled { opacity: .3; }
.side-btn { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--bg); color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 1px 0 rgba(0,0,0,.04); }
.side-btn .icon { width: 22px; height: 22px; }
.side-btn.ghost { visibility: hidden; }

.checklist { background: var(--bg); border-radius: var(--r-lg); padding: 4px 16px; margin: 8px 0 20px; }
.ck { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; font-weight: 500; }
.ck:last-child { border-bottom: 0; }
.ck .tx { flex: 1; }
.ps { width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.ps.spin { border: 2px solid var(--line); border-top-color: var(--accent); animation: sp .8s linear infinite; }
.ps.done { background: var(--green); color: #fff; }
.ps.done svg { width: 12px; height: 12px; }
.ps.err { background: var(--gray-bg); color: var(--ink2); }
.ps.err svg { width: 12px; height: 12px; }
.ps.wait { background: var(--accent-soft); color: var(--accent); }
.ps.wait svg { width: 13px; height: 13px; }
.ps.idle { border: 2px solid var(--line); }

/* ---------- pago ---------- */
.summary { background: var(--bg); border-radius: var(--r-lg); padding: 4px 16px; margin-bottom: 14px; }
.sumrow { display: flex; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.sumrow span:first-child { color: var(--ink); }
.sumrow span:last-child { font-weight: 600; white-space: nowrap; }
.sumrow.muted span { color: var(--ink2); font-weight: 500; font-size: 14px; }
.sumtotal { display: flex; justify-content: space-between; padding: 15px 0 13px; font-weight: 700; font-size: 19px; letter-spacing: -.01em; }
.paybox { background: var(--bg); border-radius: var(--r-lg); padding: 18px 16px 16px; }
.payhead { display: flex; align-items: center; gap: 12px; margin: 0 2px 16px; }
.payhead .icon { width: 36px; height: 36px; padding: 8px; border-radius: 50%; background: var(--bg2); color: var(--ink); }
.payhead .t { font-weight: 600; font-size: 15px; }
.payhead .d { font-size: 13px; color: var(--ink2); margin-top: 1px; }
.paynote { font-size: 13px; color: var(--ink2); text-align: center; margin: 12px 8px 0; line-height: 1.45; }
.paynote b { color: var(--ink); }
.checkout { background: var(--bg); border-radius: var(--r-lg); padding: 8px; min-height: 120px; overflow: hidden; }
.checkout-loading { display: flex; align-items: center; justify-content: center; min-height: 160px; }
.spin { width: 30px; height: 30px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: sp .8s linear infinite; }
.guarantee { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink2); margin: 14px 4px 0; line-height: 1.45; }
.guarantee .icon { width: 17px; height: 17px; color: var(--green); margin-top: 1px; }

/* ---------- procesando ---------- */
.proc-stage { position: relative; width: 110px; height: 110px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.proc-ring { position: absolute; width: 100%; height: 100%; border-radius: 50%; border: 1.5px solid var(--accent); animation: ping 2.2s cubic-bezier(.3,0,.6,1) infinite; }
.proc-ring.r2 { animation-delay: 1.1s; }
@keyframes ping { 0% { transform: scale(.62); opacity: .7; } 100% { transform: scale(1.55); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .proc-ring, .chrome-badge.pulse { animation: none; } }
.proclist { background: var(--bg); border-radius: var(--r-lg); padding: 4px 16px; margin-top: 10px; }
.procrow { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; color: var(--ink2); transition: color .3s; }
.procrow:last-child { border-bottom: 0; }
.procrow.done { color: var(--ink); font-weight: 500; }
.procrow .sub { display: block; font-size: 12.5px; color: var(--ink2); font-weight: 400; margin-top: 1px; }

/* ---------- resultados ---------- */
.idchip { display: inline-flex; align-items: center; gap: 6px; margin: -6px 0 12px; padding: 6px 12px; border-radius: var(--r-full); background: var(--green-bg); color: var(--green); font-size: 13px; font-weight: 600; }
.idchip .icon { width: 16px; height: 16px; }
.result { background: var(--bg); border-radius: var(--r-lg); padding: 16px; margin-bottom: 12px; }
.result .rh { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.result .rh .l { display: flex; align-items: center; gap: 11px; min-width: 0; }
.result .rh .t { font-weight: 600; font-size: 15px; line-height: 1.3; }
.pill { font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: var(--r-full); white-space: nowrap; flex-shrink: 0; margin-top: 2px; }
.pill.ok { background: var(--green-bg); color: var(--green); }
.pill.warn { background: var(--amber-bg); color: var(--amber); }
.pill.info { background: var(--accent-soft); color: var(--accent); }
.pill.error { background: var(--gray-bg); color: var(--ink2); }
.result .resumen { font-size: 14.5px; color: var(--ink); line-height: 1.55; }
.result .resumen.muted { color: var(--ink2); }
.kv { margin-top: 12px; border-top: 1px solid var(--line); }
.kv .r { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.kv .r:last-child { border-bottom: 0; }
.kv .r .k { color: var(--ink2); flex-shrink: 0; }
.kv .r .v { color: var(--ink); font-weight: 600; text-align: right; word-break: break-word; }
.kv .r .v.copy { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-family: var(--mono); letter-spacing: .02em; }
.kv .r .v.copy .icon { width: 14px; height: 14px; color: var(--accent); }
.matches { margin-top: 12px; border-top: 1px solid var(--line); }
.matches .m { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.matches .m:last-child { border-bottom: 0; }
.matches .m b { display: block; font-weight: 600; }
.matches .m span { color: var(--ink2); }
.docbtn { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 12px; background: var(--bg2); border: 0; border-radius: var(--r-md); padding: 12px 14px; cursor: pointer; text-align: left; font-size: 14px; font-weight: 600; color: var(--ink); }
.docbtn:active { background: var(--line); }
.docbtn .icon { color: var(--accent); }
.docbtn .fn { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.docbtn .dl { color: var(--accent); }
.disclaimer { font-size: 12px; color: var(--ink2); line-height: 1.5; margin: 18px 4px 0; text-align: center; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: calc(24px + var(--safe-b)); transform: translate(-50%, 20px); max-width: min(440px, calc(100% - 32px)); background: rgba(29,29,31,.94); color: #fff; padding: 13px 18px; border-radius: 16px; font-size: 14.5px; line-height: 1.4; box-shadow: 0 16px 40px -10px rgba(0,0,0,.4); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 100; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- carga inicial ---------- */
.boot { display: flex; align-items: center; justify-content: center; min-height: 60vh; }
.notice { background: var(--amber-bg); color: #7A4210; font-size: 12.5px; text-align: center; padding: 7px 12px; font-weight: 500; }
html.is-hero .notice { display: none; }
