/* ───────────────────────────────────────────────────────────────
   Revisit · Guías · el gráfico propio de cada guía (_visuales.js)
   Tarjetas como las reales de Google Wallet, móviles con el mismo marco
   de titanio que la web y lo dibujado, a lápiz. Nada se queda a medias
   sin JavaScript: el <figcaption> dice lo mismo en texto.
   ─────────────────────────────────────────────────────────────── */
.vis{margin:40px 0 18px; background:#fbfaf7; border:1px solid var(--border); border-radius:22px; padding:28px 26px 22px; position:relative; overflow:hidden;}
.vis-titulo{font-family:'Caveat',cursive; font-size:30px; line-height:1.05; color:#2f2d2a; margin:0 0 4px;}
.vis-sub{font-size:15px; color:var(--muted-fg); margin:0 0 22px; max-width:56ch;}
.vis figcaption{font-size:13.5px; color:var(--muted-fg); margin-top:18px; line-height:1.5;}
.vis-escena{display:flex; flex-wrap:wrap; gap:26px; align-items:center; justify-content:center;}
.vis-escena > *{min-width:0;}
.vis-mano{font-family:'Caveat',cursive; color:#2f2d2a;}
.vis-terra{color:#b5623c;}
.vis button{font:inherit; cursor:pointer;}
.vis-boton{display:inline-flex; align-items:center; gap:8px; min-height:44px; padding:0 18px; border-radius:999px; border:1px solid var(--ink); background:var(--ink); color:var(--bg); font-weight:600; font-size:15px;}
.vis-boton.sec{background:transparent; color:var(--ink); border-color:var(--border-strong);}
.vis-boton:focus-visible,.vis-chip:focus-visible,.vis input:focus-visible{outline:2px solid #b5623c; outline-offset:3px;}
.vis-acciones{display:flex; flex-wrap:wrap; gap:10px; justify-content:center; margin-top:20px;}
.vis-chips{display:flex; flex-wrap:wrap; gap:8px;}
.vis-chip{min-height:42px; padding:0 16px; border-radius:999px; border:1px solid var(--border-strong); background:var(--card); color:var(--ink); font-size:15px;}
.vis-chip[aria-pressed="true"]{background:var(--ink); color:var(--bg); border-color:var(--ink);}
@media (max-width:560px){.vis{padding:22px 16px 18px; border-radius:18px;} .vis-titulo{font-size:27px;}}

/* ── Tarjeta: réplica de la tarjeta real en Google Wallet ── */
.wcard{width:100%; max-width:262px; border-radius:22px; overflow:hidden; color:var(--wc-texto,#fff); background:var(--wc-color,#2b2420); box-shadow:0 22px 44px -24px rgba(0,0,0,.55), 0 2px 6px rgba(0,0,0,.08); font-family:'Google Sans',Roboto,'Satoshi',system-ui,sans-serif; text-align:left;}
.wc-top{display:flex; align-items:center; gap:9px; padding:12px 15px 10px}
.wc-logo{width:28px; height:28px; border-radius:50%; background:#fff; color:#1c1a17; display:grid; place-items:center; font-size:8.5px; font-weight:700; letter-spacing:-.02em; flex-shrink:0; box-shadow:0 0 0 1px rgba(0,0,0,.06)}
.wc-neg{font-size:13px; font-weight:500; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.wc-sep{height:1px; margin:0 15px; background:currentColor; opacity:.18}
.wc-cuerpo{padding:10px 15px 4px}
.wc-prog{font-size:21px; font-weight:500; line-height:1.12; letter-spacing:-.01em}
.wc-etq{font-size:10.5px; opacity:.78; margin-top:9px}
.wc-val{font-size:12.5px; line-height:1.3; min-height:16px}
.wc-qr{display:flex; justify-content:center; padding:12px 0 13px}
.wc-qr > div{padding:7px; border-radius:17px; background:conic-gradient(from 200deg,#f6c4d8,#c9d8ff,#c8f3e2,#fff1b8,#f9c9b9,#f6c4d8)}
.wc-qr svg{display:block; width:88px; height:88px; padding:8px; border-radius:11px; background:#fff; box-sizing:content-box}
.wc-pie{padding:11px 12px 13px; background:radial-gradient(120% 90% at 30% 20%,rgba(255,255,255,.22),transparent 55%),radial-gradient(90% 80% at 85% 90%,rgba(0,0,0,.35),transparent 60%),var(--wc-foto,#5b4a3f)}
.wc-sellos{display:grid; grid-template-columns:repeat(5,1fr); gap:7px; justify-items:center}
.wc-sello{width:32px; height:32px; border-radius:50%; display:grid; place-items:center; font-size:12px; font-weight:600; color:#fff; background:rgba(255,255,255,.26); transition:background .35s, color .35s, transform .35s cubic-bezier(.34,1.56,.64,1)}
.wc-sello.on{background:#fff; color:#1c1a17; transform:scale(1.06)}
.wc-sello.regalado{background:#fff; color:#b5623c}
.wc-sello svg{width:15px; height:15px}
.wc-premio{color:#fff}
.wc-premio small{display:block; font-size:10.5px; opacity:.85}
.wc-premio b{font-size:20px; font-variant-numeric:tabular-nums}
.wc-premio b span{font-size:12px; font-weight:500; opacity:.8}
.wc-barra{height:6px; border-radius:9px; background:rgba(255,255,255,.3); margin-top:6px; overflow:hidden}
.wc-barra i{display:block; height:100%; border-radius:9px; background:#fff; transition:width .6s cubic-bezier(.22,1,.36,1)}

/* ── Móvil: el mismo marco que MarcoIphone.tsx en la web ── */
.iphone{--r:30px; width:236px; flex-shrink:0; padding:4px; border-radius:calc(var(--r) + 11px); background:linear-gradient(135deg,#c9c6c0 0%,#9a978f 14%,#dedbd5 30%,#8c8983 48%,#b8b5af 66%,#7d7a74 84%,#aeaba5 100%); box-shadow:inset 0 0 0 1px rgba(255,255,255,.45), inset 0 0 0 2px rgba(0,0,0,.18), 0 34px 70px -36px rgba(26,25,23,.6), 0 12px 24px -12px rgba(26,25,23,.35); position:relative}
.iphone::before,.iphone::after{content:""; position:absolute; width:3px; border-radius:2px 0 0 2px; left:-3px; background:linear-gradient(135deg,#c9c6c0,#8c8983)}
.iphone::before{top:21%; height:8%} .iphone::after{top:31%; height:8%}
.iphone-bisel{background:#0b0b0b; padding:7px; border-radius:calc(var(--r) + 7px)}
.iphone-pantalla{position:relative; overflow:hidden; border-radius:var(--r); height:480px; background:#1d1b19; color:#fff; font-family:-apple-system,'SF Pro Display',system-ui,sans-serif}
.iphone-pantalla::after{content:""; position:absolute; inset:0; border-radius:var(--r); pointer-events:none; background:linear-gradient(118deg,rgba(255,255,255,.11) 0%,rgba(255,255,255,.04) 22%,rgba(255,255,255,0) 38%); box-shadow:inset 0 0 0 1px rgba(255,255,255,.07); z-index:5}
.ip-isla{position:absolute; left:50%; top:10px; width:78px; height:22px; margin-left:-39px; border-radius:99px; background:#000; z-index:4}
.ip-hora-s{padding:13px 0 0 24px; font-size:12px; font-weight:600}
.ip-titulo{font-size:24px; font-weight:700; padding:22px 0 0 16px}
.ip-cuerpo{padding:10px 8px 0}
.ip-cuerpo .wcard{max-width:none; transform-origin:top center}
.ip-home{position:absolute; bottom:6px; left:50%; width:96px; height:4px; margin-left:-48px; border-radius:9px; background:rgba(255,255,255,.8); z-index:4}
.ip-bloqueo{text-align:center; padding-top:46px}
.ip-bloqueo .fecha{font-size:12px; opacity:.85}
.ip-bloqueo .hora{font-size:62px; font-weight:600; letter-spacing:-.02em; line-height:1}
.ip-aviso{margin:22px 8px 0; text-align:left; background:rgba(255,255,255,.72); color:#1a1917; border-radius:18px; padding:9px 11px; display:flex; gap:9px; backdrop-filter:blur(14px); box-shadow:0 8px 24px -12px rgba(0,0,0,.5); opacity:0; transform:translateY(14px) scale(.96); transition:opacity .45s, transform .55s cubic-bezier(.34,1.56,.64,1)}
.ip-aviso.ver{opacity:1; transform:none}
.ip-aviso .ic{width:28px; height:28px; border-radius:8px; background:#1a1917; color:#f5f1ea; display:grid; place-items:center; font-size:12px; font-weight:700; flex-shrink:0}
.ip-aviso b{font-size:12.5px; display:flex; justify-content:space-between; gap:6px}
.ip-aviso b span{font-weight:400; opacity:.5; font-size:11px}
.ip-aviso p{margin:1px 0 0 !important; font-size:12.5px !important; line-height:1.3 !important; color:#1a1917}
.ip-camara{position:absolute; inset:0; background:radial-gradient(80% 60% at 50% 40%,#5b5246,#262320)}
.ip-visor{position:absolute; left:50%; top:42%; width:150px; height:150px; margin:-75px 0 0 -75px; border-radius:18px}
.ip-visor::before{content:""; position:absolute; inset:0; border:3px solid #fff; border-radius:18px; clip-path:polygon(0 0,30% 0,30% 6%,6% 6%,6% 30%,0 30%,0 70%,6% 70%,6% 94%,30% 94%,30% 100%,70% 100%,70% 94%,94% 94%,94% 70%,100% 70%,100% 30%,94% 30%,94% 6%,70% 6%,70% 0,100% 0,100% 100%,0 100%)}
.ip-visor svg{position:absolute; inset:24px; width:auto; height:auto; background:#fff; padding:8px; border-radius:6px; transform:rotate(-6deg)}
.ip-boton-wallet{position:absolute; left:14px; right:14px; bottom:34px; height:44px; border-radius:12px; background:#000; color:#fff; display:flex; align-items:center; justify-content:center; gap:8px; font-size:13px; font-weight:600; border:1px solid rgba(255,255,255,.18)}
.ip-boton-wallet i{width:22px; height:16px; border-radius:4px; background:linear-gradient(180deg,#34a853 0 25%,#fbbc04 25% 50%,#ea4335 50% 75%,#4285f4 75%)}
.vis-paso{display:flex; flex-direction:column; align-items:center; gap:12px}
.vis-paso .vis-mano{font-size:23px; text-align:center; max-width:220px; line-height:1.1}
.vis-paso .num{font-family:var(--display); font-weight:800; color:#b5623c; font-size:15px; letter-spacing:.04em}
@media (max-width:560px){.iphone{width:216px} .iphone-pantalla{height:440px}}

/* ── Piezas a lápiz ── */
.lapiz path,.lapiz line,.lapiz polyline,.lapiz rect,.lapiz circle,.lapiz ellipse{vector-effect:non-scaling-stroke}
.vis svg text{font-family:'Caveat',cursive}
.vis-barras{display:grid; gap:12px; width:100%; max-width:520px}
.vis-barra-fila{display:grid; grid-template-columns:minmax(0,9.5rem) 1fr auto; gap:12px; align-items:center; font-size:15px}
.vis-barra-fila .pista{height:12px; border-radius:99px; background:var(--muted); overflow:hidden}
.vis-barra-fila .pista i{display:block; height:100%; border-radius:99px; background:var(--ink); width:0; transition:width .8s cubic-bezier(.22,1,.36,1)}
.vis-barra-fila.buena .pista i{background:#b5623c}
.vis-barra-fila b{font-family:var(--display); font-size:19px; font-variant-numeric:tabular-nums; white-space:nowrap}
@media (max-width:560px){.vis-barra-fila{grid-template-columns:1fr auto} .vis-barra-fila .pista{grid-column:1 / -1; grid-row:2}}
.vis-slider{display:grid; gap:6px; width:100%; max-width:420px}
.vis-slider label{display:flex; justify-content:space-between; font-size:15px}
.vis-slider label b{font-family:var(--display); font-size:19px}
.vis input[type=range]{width:100%; accent-color:#b5623c; height:28px}
.vis-resultado{font-size:16.5px; line-height:1.5; max-width:52ch; text-align:center; margin:18px auto 0}
.vis-resultado strong{font-family:var(--display); font-size:19px}
.vis-preg{display:grid; gap:9px; margin-bottom:18px}
.vis-preg p{margin:0 !important; font-weight:600; font-size:16px}
@media (prefers-reduced-motion:reduce){.vis *{transition:none !important}}
/* Dentro del móvil la tarjeta es más compacta, como en la Cartera de verdad. */
.ip-cuerpo .wcard{border-radius:18px}
.ip-cuerpo .wc-top{padding:9px 12px 8px} .ip-cuerpo .wc-cuerpo{padding:8px 12px 2px}
.ip-cuerpo .wc-prog{font-size:18px} .ip-cuerpo .wc-etq{margin-top:6px}
.ip-cuerpo .wc-qr{padding:8px 0 9px} .ip-cuerpo .wc-qr svg{width:68px; height:68px; padding:6px}
.ip-cuerpo .wc-pie{padding:9px 9px 10px} .ip-cuerpo .wc-sellos{gap:5px} .ip-cuerpo .wc-sello{width:28px; height:28px}
.ip-cuerpo .wc-sello svg{width:13px; height:13px}
/* El recorrido lleva tres móviles en fila. */
.vis-escena.tres{gap:14px; flex-wrap:nowrap; justify-content:space-between}
.vis-escena.tres .iphone{width:196px} .vis-escena.tres .iphone-pantalla{height:404px}
.vis-escena.tres .ip-bloqueo .hora{font-size:50px} .vis-escena.tres .ip-boton-wallet{font-size:11.5px; left:10px; right:10px}
.vis-escena.tres .vis-paso .vis-mano{font-size:21px; max-width:190px}
@media (max-width:680px){.vis-escena.tres{flex-wrap:wrap; justify-content:center}}
.vis-escena.tres .ip-isla{width:62px; margin-left:-31px; height:19px}
.vis-escena.tres .ip-hora-s{padding-left:18px}
@media (max-width:680px){.vis-escena svg.lapiz{margin-top:0 !important}}
/* En el móvil el recorrido de tres pantallas se desliza en horizontal. */
@media (max-width:680px){
  .vis-escena.tres{flex-wrap:nowrap; justify-content:flex-start; overflow-x:auto; scroll-snap-type:x mandatory; margin:0 -16px; padding:4px 16px 10px; scrollbar-width:none}
  .vis-escena.tres::-webkit-scrollbar{display:none}
  .vis-escena.tres .vis-paso{scroll-snap-align:center; flex:0 0 auto}
}
.vis-desliza{display:none; text-align:center; font-family:'Caveat',cursive; font-size:21px; color:#8a857d; margin-top:2px}
@media (max-width:680px){.vis-desliza{display:block}}
