/* Billetera digital: marco de teléfono + interfaz de la app */
.escena { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.info .pasos { padding-left: 1.2rem; display: grid; gap: .45rem; font-size: .92rem; }
.info .incluye { list-style: none; display: grid; gap: .7rem; font-size: .9rem; }
.info .incluye li { padding-left: 1.4rem; position: relative; }
.info .incluye li::before { content: ''; position: absolute; left: 0; top: .45em; width: .6rem; height: .6rem; border-radius: 50%; background: #6d3fd6; }
.celular-qr { display: grid; grid-template-columns: 132px 1fr; gap: 1.1rem; align-items: center; }
.qr-caja { width: 132px; height: 132px; border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid var(--border); }
.qr-caja svg { width: 100%; height: 100%; display: block; }

.telefono {
  position: sticky; top: 1rem; width: 390px; height: 820px; padding: 12px; border-radius: 60px;
  background: linear-gradient(145deg, #2b2b33, #0d0d12);
  box-shadow: 0 0 0 2px #3a3a44, 0 40px 90px -30px rgba(59, 29, 120, .6), inset 0 0 0 1.5px #55555f;
}
.telefono::before, .telefono::after { content: ''; position: absolute; width: 4px; border-radius: 2px; background: #2a2a31; }
.telefono::before { left: -5px; top: 170px; height: 64px; box-shadow: 0 84px 0 #2a2a31; }
.telefono::after { right: -5px; top: 210px; height: 96px; }

.app {
  --p: #6d3fd6; --p2: #3b1d78; --p3: #efe9ff; --bg: #f5f3fb; --card: #fff; --tx: #1b1530; --mu: #6e6887; --linea: #ebe7f5;
  --in: #16a34a; --out: #1b1530;
  position: relative; width: 100%; height: 100%; border-radius: 48px; overflow: hidden; isolation: isolate;
  background: var(--bg); color: var(--tx); font-family: 'DM Sans', system-ui, sans-serif; font-size: 15px;
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.app.oscuro { --p3: #2a2145; --bg: #0f0c19; --card: #1b1629; --tx: #f2effa; --mu: #a39cbb; --linea: #2a2440; --out: #f2effa; }
.app button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.app input { font: inherit; color: var(--tx); background: var(--card); border: 1.5px solid var(--linea); border-radius: 14px; padding: .8rem 1rem; width: 100%; }
.app input:focus { outline: none; border-color: var(--p); box-shadow: none; }

.isla { position: absolute; top: 11px; left: 50%; transform: translateX(-50%); width: 118px; height: 34px; border-radius: 20px; background: #000; z-index: 80; }
.estado { position: absolute; inset: 0 0 auto; height: 54px; display: flex; justify-content: space-between; align-items: center; padding: 6px 32px 0 38px; font-weight: 700; font-size: 15px; z-index: 70; pointer-events: none; }
.estado-ic { display: flex; gap: 6px; align-items: center; }
.estado svg { fill: currentColor; }
.app.en-oscura .estado { color: #fff; }
.indicador-home { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); width: 134px; height: 5px; border-radius: 3px; background: var(--tx); opacity: .85; z-index: 90; pointer-events: none; }
.app.en-oscura .indicador-home, .app .capa:not([hidden]) ~ .indicador-home { background: #fff; }

/* Pantallas */
.vistas-app { position: absolute; inset: 0; }
.scr { position: absolute; inset: 0; display: none; overflow-y: auto; overflow-x: hidden; padding: 58px 20px 110px; background: var(--bg); scrollbar-width: none; overscroll-behavior: contain; }
.scr::-webkit-scrollbar { display: none; }
.scr.activa, .scr.sale-der, .scr.sale-izq, .scr.sale-fade { display: block; }
.scr.activa { z-index: 2; }
.app.sin-nav .scr { padding-bottom: 36px; }
.entra-der { animation: entraDer .34s cubic-bezier(.2, .8, .2, 1); }
.sale-der { animation: saleDer .34s cubic-bezier(.2, .8, .2, 1) forwards; z-index: 1; }
.entra-izq { animation: entraIzq .34s cubic-bezier(.2, .8, .2, 1); z-index: 1 !important; }
.sale-izq { animation: saleIzq .34s cubic-bezier(.2, .8, .2, 1) forwards; z-index: 3 !important; }
.entra-fade { animation: entraFade .25s ease; }
@keyframes entraDer { from { transform: translateX(100%); } }
@keyframes saleDer { to { transform: translateX(-28%); opacity: .5; } }
@keyframes entraIzq { from { transform: translateX(-28%); opacity: .5; } }
@keyframes saleIzq { to { transform: translateX(100%); } }
@keyframes entraFade { from { opacity: 0; transform: translateY(8px); } }

.barra { display: flex; align-items: center; gap: .6rem; margin: 0 -6px 1rem; min-height: 44px; }
.barra h2 { font-size: 1.15rem; font-weight: 700; flex: 1; }
.icono-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; position: relative; flex: none; }
.icono-btn:active { background: var(--p3); }
.titulo-grande { font-size: 1.7rem; font-weight: 700; letter-spacing: -.02em; margin: .3rem 0 1rem; }

/* Inicio */
.saludo { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.1rem; }
.saludo small { display: block; color: var(--mu); font-size: .8rem; }
.saludo b { font-size: 1.1rem; }
.saludo .icono-btn { margin-left: auto; background: var(--card); box-shadow: 0 2px 10px rgba(59, 29, 120, .08); }
.punto { position: absolute; top: 9px; right: 10px; width: 9px; height: 9px; border-radius: 50%; background: #ef4444; border: 2px solid var(--card); }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; background: linear-gradient(135deg, #f59e0b, #ef4444); flex: none; }
.saldo-card {
  position: relative; overflow: hidden; border-radius: 26px; padding: 1.3rem 1.3rem 1.1rem; color: #fff;
  background: radial-gradient(circle at 110% -10%, #a78bfa 0, transparent 45%), linear-gradient(135deg, var(--p2), var(--p));
  box-shadow: 0 18px 36px -18px rgba(109, 63, 214, .9);
}
.saldo-card::after { content: ''; position: absolute; width: 180px; height: 180px; border-radius: 50%; right: -60px; bottom: -90px; background: rgba(255, 255, 255, .08); }
.saldo-card small { opacity: .8; font-size: .82rem; }
.saldo { display: flex; align-items: center; gap: .5rem; font-size: 2.05rem; font-weight: 700; letter-spacing: -.02em; margin: .15rem 0 .9rem; font-variant-numeric: tabular-nums; }
.saldo button { color: #fff; opacity: .85; display: grid; }
.saldo-pie { display: flex; justify-content: space-between; font-size: .8rem; opacity: .9; position: relative; z-index: 1; }
.acciones { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; margin: 1.3rem 0; }
.accion { display: grid; justify-items: center; gap: .45rem; font-size: .76rem; font-weight: 600; }
.accion span { width: 58px; height: 58px; border-radius: 20px; display: grid; place-items: center; background: var(--card); color: var(--p); box-shadow: 0 4px 14px rgba(59, 29, 120, .08); transition: transform .15s; }
.accion:active span { transform: scale(.92); }
.promo { display: flex; align-items: center; gap: .8rem; padding: .9rem 1rem; border-radius: 20px; background: var(--p3); margin-bottom: 1.3rem; }
.promo .emoji { font-size: 1.7rem; }
.promo b { display: block; font-size: .9rem; }
.promo small { color: var(--mu); font-size: .78rem; }
.titulo-sec { display: flex; justify-content: space-between; align-items: center; margin-bottom: .4rem; }
.titulo-sec h3 { font-size: 1rem; }
.titulo-sec button { color: var(--p); font-weight: 700; font-size: .85rem; }

/* Movimientos */
.lista { background: var(--card); border-radius: 22px; padding: .3rem .9rem; }
.mov { display: grid; grid-template-columns: 42px 1fr auto; gap: .75rem; align-items: center; width: 100%; text-align: left; padding: .7rem 0; border-bottom: 1px solid var(--linea); }
.mov:last-child { border-bottom: 0; }
.mov-ic { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.mov-tx { min-width: 0; }
.mov-tx b { display: block; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mov-tx small { display: block; color: var(--mu); font-size: .76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mov-monto { font-weight: 700; font-size: .92rem; font-variant-numeric: tabular-nums; color: var(--out); }
.mov-monto.in { color: var(--in); }
.grupo-dia { font-size: .78rem; font-weight: 700; color: var(--mu); text-transform: uppercase; letter-spacing: .06em; margin: 1.1rem 0 .4rem .3rem; }
.buscador { position: relative; margin-bottom: .8rem; }
.buscador svg { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--mu); }
.buscador input { padding-left: 2.6rem; }
.pildoras { display: flex; gap: .4rem; margin-bottom: .3rem; }
.pildora { padding: .45rem .95rem; border-radius: 100px; background: var(--card); font-weight: 600; font-size: .82rem; border: 1.5px solid var(--linea) !important; }
.pildora.activa { background: var(--p); color: #fff !important; border-color: var(--p) !important; }
.vacio-app { text-align: center; color: var(--mu); padding: 2rem 1rem; font-size: .9rem; }

/* Resumen */
.tarjeta { background: var(--card); border-radius: 22px; padding: 1.1rem; margin-bottom: 1rem; }
.tarjeta h3 { font-size: .95rem; margin-bottom: .6rem; }
.dos { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin-bottom: 1rem; }
.dos .tarjeta { margin: 0; }
.dos small { color: var(--mu); font-size: .76rem; display: block; }
.dos b { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.app .dona { flex-direction: column; gap: .8rem; }
.app .dona svg { width: 170px; height: 170px; }
.app .leyenda { width: 100%; min-width: 0; font-size: .8rem; }
.app.oscuro .dona text { fill: #f2effa; }
.app.oscuro .dona text:first-of-type { fill: #a39cbb; }
.semana { display: grid; grid-template-columns: repeat(7, 1fr); gap: .45rem; align-items: end; height: 130px; }
.semana div { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: .3rem; height: 100%; font-size: .7rem; color: var(--mu); }
.semana i { width: 100%; max-width: 26px; border-radius: 8px 8px 4px 4px; background: var(--p3); min-height: 4px; transition: height .6s cubic-bezier(.2, .8, .2, 1); }
.semana .hoy i { background: var(--p); }

/* Perfil */
.perfil-cab { text-align: center; margin: .5rem 0 1.4rem; }
.perfil-cab .avatar { width: 84px; height: 84px; font-size: 1.8rem; margin: 0 auto .7rem; box-shadow: 0 10px 24px -10px rgba(239, 68, 68, .7); }
.perfil-cab b { font-size: 1.2rem; display: block; }
.perfil-cab small { color: var(--mu); }
.ajustes { background: var(--card); border-radius: 22px; padding: .2rem 1rem; margin-bottom: 1rem; }
.ajuste { display: flex; align-items: center; gap: .8rem; width: 100%; text-align: left; padding: .9rem 0; border-bottom: 1px solid var(--linea); font-weight: 600; font-size: .92rem; }
.ajuste:last-child { border-bottom: 0; }
.ajuste .aj-ic { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--p3); color: var(--p); flex: none; }
.ajuste.peligro { color: #dc2626; }
.ajuste.peligro .aj-ic { background: #fee2e2; color: #dc2626; }
.interruptor { margin-left: auto; width: 50px; height: 30px; border-radius: 20px; background: var(--linea); position: relative; transition: background .25s; flex: none; }
.interruptor::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); transition: transform .25s cubic-bezier(.3, 1.4, .5, 1); }
.interruptor.on { background: var(--p); }
.interruptor.on::after { transform: translateX(20px); }

/* Enviar y monto */
.contacto { display: grid; grid-template-columns: 46px 1fr auto; gap: .8rem; align-items: center; width: 100%; text-align: left; padding: .65rem 0; border-bottom: 1px solid var(--linea); }
.contacto:last-child { border-bottom: 0; }
.contacto .avatar { width: 46px; height: 46px; font-size: .9rem; background: var(--c); }
.contacto small { display: block; color: var(--mu); font-size: .78rem; }
.nuevo-num { display: flex; gap: .5rem; margin-bottom: 1rem; }
.nuevo-num button { flex: none; width: 52px; border-radius: 14px; background: var(--p) !important; color: #fff !important; display: grid; place-items: center; }
.destino { display: flex; align-items: center; gap: .7rem; background: var(--card); padding: .7rem .9rem; border-radius: 18px; }
.destino .avatar { width: 40px; height: 40px; font-size: .85rem; background: var(--c); }
.destino small { display: block; color: var(--mu); font-size: .78rem; }
.monto-grande { text-align: center; margin: 1.6rem 0 .3rem; font-size: 2.9rem; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; transition: color .2s; }
.monto-grande.error { color: #dc2626; animation: temblor .35s; }
.monto-sub { text-align: center; color: var(--mu); font-size: .85rem; min-height: 1.3em; }
.teclado { display: grid; grid-template-columns: repeat(3, 1fr); gap: .35rem; margin: 1.2rem 0 1rem; }
.teclado button { height: 58px; border-radius: 18px; font-size: 1.45rem; font-weight: 600; display: grid; place-items: center; transition: background .12s; }
.teclado button:active { background: var(--p3); }
.btn-app { width: 100%; padding: 1rem; border-radius: 18px; background: var(--p) !important; color: #fff !important; font-weight: 700 !important; font-size: 1rem !important; box-shadow: 0 12px 24px -12px rgba(109, 63, 214, .9); transition: opacity .2s, transform .15s; }
.btn-app:active { transform: scale(.98); }
.btn-app:disabled { opacity: .4; box-shadow: none; cursor: not-allowed; }
.btn-app.sec { background: var(--p3) !important; color: var(--p) !important; box-shadow: none; }
.fichas { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; margin-bottom: 1rem; }
.ficha { padding: .95rem; border-radius: 18px; background: var(--card); font-weight: 700; border: 2px solid transparent !important; }
.ficha.activa { border-color: var(--p) !important; color: var(--p) !important; background: var(--p3); }
.metodo { display: flex; align-items: center; gap: .8rem; width: 100%; padding: .85rem 1rem; border-radius: 18px; background: var(--card); margin-bottom: .55rem; text-align: left; border: 2px solid transparent !important; }
.metodo.activa { border-color: var(--p) !important; }
.metodo small { display: block; color: var(--mu); font-size: .78rem; }
.metodo .aj-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--p3); color: var(--p); flex: none; }
.etq-app { font-size: .82rem; font-weight: 700; color: var(--mu); margin: 1rem 0 .5rem; display: block; }

/* Escáner QR */
.scr-oscura { background: #07060c; color: #fff; }
.visor { position: relative; height: 470px; margin: 0 -20px; overflow: hidden; background: radial-gradient(circle at 50% 45%, #2c2640, #07060c 70%); }
.visor::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 4px); }
.marco-qr { position: absolute; left: 50%; top: 50%; width: 230px; height: 230px; transform: translate(-50%, -50%); }
.marco-qr i { position: absolute; width: 44px; height: 44px; border: 5px solid #fff; }
.marco-qr i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; border-radius: 18px 0 0 0; }
.marco-qr i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; border-radius: 0 18px 0 0; }
.marco-qr i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 18px; }
.marco-qr i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; border-radius: 0 0 18px 0; }
.qr-falso { position: absolute; inset: 38px; opacity: .22; background: conic-gradient(#fff 25%, transparent 0 50%, #fff 0 75%, transparent 0) 0 0 / 22px 22px; border-radius: 6px; }
.linea-scan { position: absolute; left: 14px; right: 14px; top: 10px; height: 3px; border-radius: 3px; background: #a78bfa; box-shadow: 0 0 18px 4px rgba(167, 139, 250, .8); animation: escanear 1.8s ease-in-out infinite alternate; }
.visor.detectado .marco-qr i { border-color: #4ade80; }
.visor.detectado .linea-scan { display: none; }
@keyframes escanear { to { top: calc(100% - 13px); } }
.qr-texto { text-align: center; margin-top: 1.2rem; opacity: .85; font-size: .92rem; }
.scr-oscura .icono-btn:active { background: rgba(255, 255, 255, .12); }

/* Bolsillos */
.total-bols { text-align: center; margin: .3rem 0 1.2rem; }
.total-bols small { color: var(--mu); }
.total-bols b { display: block; font-size: 2rem; letter-spacing: -.02em; }
.bolsillo { display: block; width: 100%; text-align: left; background: var(--card); border-radius: 22px; padding: 1rem; margin-bottom: .7rem; }
.bolsillo-cab { display: flex; align-items: center; gap: .7rem; margin-bottom: .7rem; }
.bolsillo-cab .emoji { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 1.4rem; background: var(--p3); }
.bolsillo-cab small { display: block; color: var(--mu); font-size: .78rem; }
.bolsillo-cab .pct { margin-left: auto; font-weight: 700; color: var(--p); }
.progreso-app { height: 9px; border-radius: 9px; background: var(--linea); overflow: hidden; }
.progreso-app i { display: block; height: 100%; border-radius: 9px; background: linear-gradient(90deg, var(--p), #a78bfa); transition: width .7s cubic-bezier(.2, .8, .2, 1); }
.emojis { display: flex; gap: .4rem; flex-wrap: wrap; }
.emojis button { width: 46px; height: 46px; border-radius: 14px; font-size: 1.4rem; background: var(--bg) !important; border: 2px solid transparent !important; }
.emojis button.activa { border-color: var(--p) !important; }

/* Éxito */
.exito { text-align: center; padding-top: 2.5rem; }
.check-anim { width: 104px; height: 104px; margin: 0 auto 1.3rem; border-radius: 50%; display: grid; place-items: center; background: #16a34a; color: #fff; box-shadow: 0 0 0 14px rgba(22, 163, 74, .15), 0 0 0 30px rgba(22, 163, 74, .07); animation: pop .5s cubic-bezier(.3, 1.6, .5, 1); }
.check-anim svg path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: trazo .45s .25s ease forwards; }
@keyframes pop { from { transform: scale(0); } }
@keyframes trazo { to { stroke-dashoffset: 0; } }
.exito h2 { font-size: 1.5rem; margin-bottom: .2rem; }
.exito .monto-ok { font-size: 2.3rem; font-weight: 700; letter-spacing: -.02em; margin: .6rem 0 1.2rem; }
.recibo { background: var(--card); border-radius: 22px; padding: .4rem 1.1rem; text-align: left; margin-bottom: 1.3rem; }
.recibo div { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px dashed var(--linea); font-size: .88rem; }
.recibo div:last-child { border-bottom: 0; }
.recibo span { color: var(--mu); }
.recibo b { text-align: right; }
.confeti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 5; }
.confeti i { position: absolute; top: -12px; width: 8px; height: 14px; border-radius: 2px; animation: caer 1.6s ease-in forwards; }
@keyframes caer { to { transform: translateY(820px) rotate(540deg); opacity: .6; } }

/* Barra de navegación */
.nav {
  position: absolute; inset: auto 0 0; z-index: 30; height: 88px; padding: 8px 10px 26px; display: grid; grid-template-columns: repeat(4, 1fr);
  background: color-mix(in srgb, var(--card) 88%, transparent); backdrop-filter: blur(14px); border-top: 1px solid var(--linea);
  transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}
.app.sin-nav .nav { transform: translateY(100%); }
.nav button { display: grid; justify-items: center; gap: 3px; font-size: .7rem; font-weight: 600; color: var(--mu); }
.nav-ic { width: 60px; height: 30px; border-radius: 16px; display: grid; place-items: center; transition: background .25s; }
.nav button.activo { color: var(--tx); }
.nav button.activo .nav-ic { background: var(--p3); color: var(--p); }

/* Notificación, hoja inferior, procesando */
.notif {
  position: absolute; top: 52px; left: 12px; right: 12px; z-index: 75; display: flex; gap: .7rem; align-items: center; text-align: left;
  padding: .8rem .9rem; border-radius: 22px; background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: blur(16px);
  box-shadow: 0 14px 34px -10px rgba(0, 0, 0, .35); animation: bajar .45s cubic-bezier(.2, .9, .3, 1.2); cursor: pointer; width: auto;
}
.notif .logo-mini { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(135deg, var(--p2), var(--p)); color: #fff; flex: none; }
.notif b { display: block; font-size: .85rem; }
.notif small { color: var(--mu); font-size: .8rem; }
.notif.sale { animation: subirNotif .35s ease forwards; }
@keyframes bajar { from { transform: translateY(-130%); } }
@keyframes subirNotif { to { transform: translateY(-130%); opacity: 0; } }
.hoja { position: absolute; inset: 0; z-index: 60; }
.velo { position: absolute; inset: 0; background: rgba(10, 6, 25, .45); animation: aparecer .25s ease; }
.hoja-panel { position: absolute; inset: auto 0 0; max-height: 88%; overflow-y: auto; background: var(--card); border-radius: 30px 30px 0 0; padding: .7rem 1.3rem 2.2rem; animation: hojaSube .35s cubic-bezier(.2, .9, .3, 1); }
.hoja-panel::before { content: ''; display: block; width: 42px; height: 5px; border-radius: 3px; background: var(--linea); margin: 0 auto 1rem; }
.hoja-panel h3 { font-size: 1.15rem; margin-bottom: .9rem; }
.hoja.cerrando .hoja-panel { animation: hojaBaja .25s ease forwards; }
.hoja.cerrando .velo { opacity: 0; transition: opacity .25s; }
@keyframes hojaSube { from { transform: translateY(100%); } }
@keyframes hojaBaja { to { transform: translateY(100%); } }
.procesando { position: absolute; inset: 0; z-index: 85; display: grid; place-content: center; justify-items: center; gap: 1rem; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(6px); }
.giro { width: 46px; height: 46px; border-radius: 50%; border: 4px solid var(--p3); border-top-color: var(--p); animation: girar .8s linear infinite; }

.deslizar { position: relative; height: 62px; border-radius: 31px; background: var(--p3); overflow: hidden; margin-top: 1.2rem; touch-action: none; }
.deslizar-tx { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 700; color: var(--p); font-size: .92rem; padding-left: 40px; }
.deslizar-relleno { position: absolute; inset: 0 auto 0 0; width: 62px; border-radius: 31px; background: color-mix(in srgb, var(--p) 25%, transparent); }
.deslizar-bola { position: absolute; top: 5px; left: 5px; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--p) !important; color: #fff !important; box-shadow: 0 6px 14px -4px rgba(109, 63, 214, .8); cursor: grab; touch-action: none; }
.deslizar.volver .deslizar-bola, .deslizar.volver .deslizar-relleno { transition: transform .3s ease, width .3s ease; }

/* Capas de bloqueo */
.capa { position: absolute; inset: 0; z-index: 88; background: linear-gradient(160deg, var(--p2), var(--p) 60%, #8b5cf6); color: #fff; display: grid; justify-items: center; align-content: start; padding: 90px 28px 40px; transition: opacity .4s, transform .4s; }
.capa.fuera { opacity: 0; transform: scale(1.06); pointer-events: none; }
.capa[hidden] { display: none !important; }
.splash { align-content: center; gap: .5rem; z-index: 89; }
.logo-app { width: 96px; height: 96px; border-radius: 30px; display: grid; place-items: center; background: rgba(255, 255, 255, .15); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); animation: latido 1.3s ease infinite; margin-bottom: .6rem; }
.splash b { font-size: 1.7rem; letter-spacing: -.02em; }
.splash small { opacity: .8; }
@keyframes latido { 50% { transform: scale(1.06); } }
.pin-av { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; font-weight: 700; background: linear-gradient(135deg, #f59e0b, #ef4444); box-shadow: 0 0 0 5px rgba(255, 255, 255, .18); margin-bottom: 1rem; }
.capa h2 { font-size: 1.3rem; margin-bottom: .2rem; }
.capa p { opacity: .8; font-size: .88rem; }
.puntos { display: flex; gap: 1rem; margin: 1.6rem 0 .6rem; }
.puntos i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .7); transition: background .15s, transform .15s; }
.puntos i.lleno { background: #fff; transform: scale(1.1); }
.puntos.error { animation: temblor .4s; }
.puntos.error i { border-color: #fca5a5; background: #fca5a5; }
.pista { font-size: .8rem; opacity: .75; min-height: 1.2em; }
.capa .teclado { width: 100%; max-width: 300px; margin-top: 1.4rem; }
.capa .teclado button { color: #fff; height: 64px; border-radius: 50%; }
.capa .teclado button:active { background: rgba(255, 255, 255, .18); }
.huella-anim { animation: latido .8s ease infinite; color: #4ade80 !important; }
@keyframes temblor { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

.salir-app { display: none; }

/* Celular real: sin marco, la app ocupa la pantalla */
@media (max-width: 1000px) {
  .escena { grid-template-columns: 1fr; justify-items: center; }
  .info { width: 100%; max-width: 640px; }
  .telefono { position: relative; top: 0; }
}
@media (max-width: 560px) {
  .telefono { width: 100%; height: min(820px, calc(100svh - 16px)); padding: 0; border-radius: 28px; background: none; box-shadow: 0 16px 40px -18px rgba(59, 29, 120, .6); }
  .telefono::before, .telefono::after, .isla { display: none; }
  .app { border-radius: 28px; }
  .celular-qr { grid-template-columns: 1fr; }
  .celular-qr .qr-caja { display: none; }
}

/* Modo app (instalada o pantalla completa) */
body.solo-app { margin: 0; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; gap: 1rem; padding: 1.5rem 0; background: radial-gradient(circle at 30% 20%, #6d3fd6, #1a0d3a 70%); }
.solo-app .telefono { position: relative; top: 0; }
.solo-app .salir-app { display: block; color: #fff; opacity: .8; font: 600 .9rem 'DM Sans', sans-serif; text-decoration: none; }
@media (max-width: 560px), (display-mode: standalone) {
  body.solo-app { display: block; padding: 0; background: #3b1d78; }
  .solo-app .telefono { position: fixed; inset: 0; width: 100%; height: 100%; padding: 0; border-radius: 0; background: none; box-shadow: none; }
  .solo-app .app { border-radius: 0; }
  .solo-app .isla, .solo-app .estado, .solo-app .indicador-home, .solo-app .salir-app { display: none; }
  .solo-app .scr { padding-top: calc(env(safe-area-inset-top) + 18px); }
  .solo-app .nav { padding-bottom: calc(env(safe-area-inset-bottom) + 10px); height: auto; }
  .solo-app .notif { top: calc(env(safe-area-inset-top) + 8px); }
  .solo-app .capa { padding-top: calc(env(safe-area-inset-top) + 50px); }
}

@media (prefers-reduced-motion: reduce) {
  .app *, .app *::before, .app *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
