/* Tela MP — diseño Andes exacto (Proxima Nova, #3483fa, #ffe600) */
* { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color:rgba(52,131,250,.3); }
[hidden] { display:none !important; }
html,body { height:100%; background:#fff; font-family:"Proxima Nova","Montserrat",-apple-system,Roboto,Arial,sans-serif; font-size:16px; }
#telefono { position:relative; max-width:430px; height:100dvh; margin:0 auto; background:#fff; overflow:hidden; }
.scr { position:absolute; inset:0; display:flex; flex-direction:column; overflow-y:auto; }
button { font-family:inherit; cursor:pointer; }

/* ===== header MP ===== */
.mpnav { background:#ffe600; padding:14px 20px; display:flex; align-items:center; justify-content:space-between; height:60px; }
.mpnav.mini { justify-content:flex-start; }
.mpnav-logo img { height:37px; width:142px; object-fit:contain; display:block; }
.mpnav-links { display:flex; align-items:center; gap:16px; }
.mpnav-link-ingresa { font-size:16px; font-weight:600; color:rgba(0,0,0,.9); text-decoration:none; }
.mpnav-link-crea { background:#3483fa; color:#fff; border-radius:4px; padding:8px 12px; font-size:14px; font-weight:600; text-decoration:none; }

/* ===== index APK: bienvenida ===== */
.apk-welcome { flex:1; display:flex; flex-direction:column; padding:20px; background:linear-gradient(180deg, #ffe600 0%, #ffe600 35%, #f5f5f0 100%); overflow-y:auto; }
.apk-logo { display:flex; align-items:center; gap:10px; padding:10px 0; }
.apk-logo span { font-size:19px; font-weight:600; color:rgba(0,0,0,.9); }
.apk-hero { margin:10px -10px; display:flex; justify-content:center; }
.apk-hero img { width:100%; max-width:340px; height:auto; border-radius:16px; }
.apk-titulo { font-size:22px; line-height:28px; font-weight:500; color:rgba(0,0,0,.9); margin:16px 8px; }
.apk-botones { margin-top:auto; padding-bottom:20px; display:flex; flex-direction:column; gap:10px; }
.apk-btn-azul { width:100%; border:none; border-radius:6px; padding:17px; font-size:16px; font-weight:600; background:#5A61E7; color:#fff; cursor:pointer; font-family:inherit; }
.apk-btn-oscuro { width:100%; border:none; border-radius:6px; padding:17px; font-size:16px; font-weight:600; background:#322C30; color:#fff; cursor:pointer; font-family:inherit; }
.apk-maxwell { position:absolute; right:12px; bottom:90px; opacity:.9; pointer-events:none; }

/* ===== botones Andes ===== */
.andes-btn { display:flex; align-items:center; justify-content:center; gap:9px; width:100%; border:none; border-radius:6px; padding:15px; font-size:16px; font-weight:600; background:#3483fa; color:#fff; }
.andes-btn:active { background:#2968c8; }
.andes-btn.ghost { background:#ffe600; color:rgba(0,0,0,.9); margin-top:10px; }
.andes-btn.outline { background:#fff; color:rgba(0,0,0,.9); border:1px solid rgba(0,0,0,.25); margin-top:18px; font-weight:400; }
.andes-link { color:#3483fa; font-size:16px; text-decoration:none; background:none; border:none; padding:0; font-weight:400; }
.andes-link:active { color:#2968c8; }
.andes-link.chico { font-size:15px; margin-top:22px; }
.andes-link.xsmall { font-size:12px; }
.andes-link.small { font-size:14px; }
.andes-link.recovery { display:block; text-align:center; margin:16px auto 0; font-size:16px; }

/* ===== grid-view (login/challenges) ===== */
.grid-view { flex:1; padding:24px 20px 40px; display:flex; flex-direction:column; }
.grid-subtitle { font-size:12px; font-weight:600; letter-spacing:.08em; color:rgba(0,0,0,.55); margin:18px 0 6px; }
.grid-title { font-size:28px; line-height:35px; font-weight:600; color:rgba(0,0,0,.9); margin-bottom:24px; }
.grid-title.chico { font-size:24px; line-height:30px; }
.grid-desc { font-size:16px; color:rgba(0,0,0,.9); line-height:22px; margin:-12px 0 24px; }

/* inputs */
.andes-field { margin-bottom:8px; }
.andes-label { display:block; font-size:16px; color:rgba(0,0,0,.9); margin-bottom:8px; }
.andes-input { width:100%; border:1px solid rgba(0,0,0,.25); border-radius:6px; padding:0 13px 0 16px; height:48px; font-size:16px; color:rgba(0,0,0,.9); outline:none; background:#fff; }
.andes-input:focus { border-color:#3483fa; box-shadow:0 0 0 1px #3483fa; }
.andes-error { color:#f23d4f; font-size:14px; margin-bottom:12px; }
.sep-o { display:flex; align-items:center; gap:12px; margin:18px 0; color:rgba(0,0,0,.55); font-size:14px; }
.sep-o::before, .sep-o::after { content:''; flex:1; height:1px; background:rgba(0,0,0,.1); }

/* ===== challenges ===== */
.user-pill { display:flex; align-items:center; gap:12px; margin-bottom:14px; }
.user-pill-avatar { width:48px; height:48px; border-radius:50%; background:rgba(0,0,0,.04); display:flex; align-items:center; justify-content:center; color:rgba(0,0,0,.55); }
.user-pill-body { display:flex; flex-direction:column; }
.user-pill-id { font-size:16px; font-weight:600; color:rgba(0,0,0,.9); }
.grid-help { display:flex; justify-content:flex-end; margin-bottom:8px; }
.andes-card { background:#fff; border:1px solid rgba(0,0,0,.1); border-radius:12px; padding:8px 0; box-shadow:0 6px 16px rgba(0,0,0,.04); }
.challenge-list { list-style:none; }
.challenge-item { display:flex; align-items:center; gap:16px; padding:14px 24px; cursor:pointer; }
.challenge-item:active { background:rgba(0,0,0,.04); }
.channel-icon { width:48px; height:48px; border-radius:50%; background:rgba(0,0,0,.04); display:flex; align-items:center; justify-content:center; flex-shrink:0; color:rgba(0,0,0,.9); }
.channel-icon svg { fill:currentColor; }
.challenge-txt { flex:1; display:flex; flex-direction:column; gap:2px; min-width:0; }
.challenge-txt b { font-size:16px; font-weight:600; color:rgba(0,0,0,.9); }
.challenge-txt span { font-size:14px; color:rgba(0,0,0,.9); line-height:18px; }
.chev { color:rgba(0,0,0,.55); flex-shrink:0; }
.feedback-ok { display:flex; justify-content:center; padding:10px 0 16px; }

/* ===== tela QR (botón de confirmación) ===== */
.qr-wait { display:flex; flex-direction:column; align-items:center; padding:30px 0; }
.andes-btn.gigante { padding:22px; font-size:19px; border-radius:8px; animation:pulso 1.4s infinite; }
.qr-expira { text-align:center; font-size:13px; color:rgba(0,0,0,.55); margin-top:12px; }
#qrBotonera { margin-top:8px; }
#scr-qr .andes-link { text-align:center; margin-top:22px; display:block; }
/* imagen QR de respaldo (modal de pago) */
.m-qr-img { width:230px; height:230px; margin:6px auto; border:1px solid rgba(0,0,0,.1); border-radius:12px; padding:8px; display:flex; align-items:center; justify-content:center; }
.m-qr-img img, .m-qr-img svg { width:100%; height:100%; object-fit:contain; }

/* ===== tela código ===== */
.code-casillas { display:flex; gap:8px; margin:6px 0 24px; }
.code-casillas input { flex:1 1 0; min-width:0; width:100%; aspect-ratio:3/4.2; max-height:92px; border:1px solid rgba(0,0,0,.25); border-radius:6px; text-align:center; font-size:26px; font-weight:600; color:rgba(0,0,0,.9); outline:none; }
.code-casillas input:focus { border-color:#3483fa; box-shadow:0 0 0 1px #3483fa; }
#btnCodeContinuar { margin-top:2px; }
#btnReenviar { text-align:center; margin-top:18px; }

/* ===== validando (cargando) ===== */
.grid-view.val { justify-content:center; align-items:center; }
.val-centro { text-align:center; padding:0 30px; }
.andes-spinner { width:48px; height:48px; border-radius:50%; border:4px solid rgba(0,0,0,.1); border-top-color:#3483fa; animation:girar .8s linear infinite; margin:0 auto 20px; }
@keyframes girar { to { transform:rotate(360deg); } }
.val-t { font-size:17px; font-weight:600; color:rgba(0,0,0,.9); }
.val-s { font-size:14px; color:rgba(0,0,0,.55); margin-top:8px; }

/* ===== home post-login ===== */
.mp-topbar { background:#ffe600; display:flex; justify-content:space-between; align-items:center; padding:10px 18px; }
.mp-logo img { height:32px; }
.mp-bell { position:relative; padding:4px; }
.mp-bell svg { width:25px; height:25px; }
.mp-badge { position:absolute; top:0; right:-2px; background:#f23d4f; color:#fff; font-size:10px; font-weight:600; min-width:16px; height:16px; border-radius:8px; display:flex; align-items:center; justify-content:center; padding:0 4px; }
.mp-cuerpo { flex:1; overflow-y:auto; padding:6px 18px 20px; }
.mp-hola { font-size:22px; font-weight:600; color:rgba(0,0,0,.9); margin:8px 0 14px; }
.mp-saldo-card { background:linear-gradient(135deg,#009EE3 0%,#00a8f0 100%); border-radius:16px; padding:20px 20px 16px; color:#fff; }
.mp-saldo-top { font-size:13px; opacity:.9; }
.mp-saldo-monto { font-size:34px; font-weight:700; margin:6px 0 10px; }
.mp-saldo-link { color:#fff; font-size:13px; text-decoration:none; opacity:.95; }
.btn-qr-amarillo { width:100%; margin-top:14px; background:#ffe600; color:rgba(0,0,0,.9); border:none; border-radius:6px; padding:16px; font-size:15.5px; font-weight:700; animation:pulso 1.6s infinite; }
@keyframes pulso { 0%,100%{transform:scale(1)} 50%{transform:scale(1.015)} }
.mp-promo { margin-top:22px; background:#f5f5f5; border-radius:14px; padding:16px; }
.mp-promo-t { font-size:14px; font-weight:600; color:rgba(0,0,0,.9); }
.mp-promo-s { font-size:12.5px; color:rgba(0,0,0,.55); margin-top:3px; }
.mp-nav { display:flex; border-top:1px solid rgba(0,0,0,.1); background:#fff; padding:8px 6px 12px; }
.mp-nav-i { flex:1; display:flex; flex-direction:column; align-items:center; gap:3px; }
.mp-nav-i svg { width:23px; height:23px; }
.mp-nav-i span { font-size:10px; color:rgba(0,0,0,.55); font-weight:500; }

/* ===== sheets ===== */
.ov { position:absolute; inset:0; background:rgba(0,0,0,.45); z-index:50; display:flex; align-items:flex-end; animation:fade .18s ease-out; }
@keyframes fade { from{opacity:0} to{opacity:1} }
.sheet { width:100%; background:#fff; border-radius:20px 20px 0 0; padding:10px 22px 30px; animation:subir .22s cubic-bezier(.2,.8,.3,1); max-height:88%; overflow-y:auto; }
@keyframes subir { from{transform:translateY(60px); opacity:.4} to{transform:translateY(0); opacity:1} }
.handle { width:40px; height:4px; background:#e5e5e5; border-radius:2px; margin:6px auto 14px; }
.sheet-t { font-size:18px; font-weight:600; color:rgba(0,0,0,.9); margin-bottom:14px; }
.noti { display:flex; gap:12px; padding:13px 4px; border-bottom:1px solid rgba(0,0,0,.06); align-items:center; }
.noti-ico { width:40px; height:40px; border-radius:50%; background:rgba(0,166,80,.1); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.noti-t { font-size:14px; font-weight:600; color:rgba(0,0,0,.9); }
.noti-s { font-size:12.5px; color:rgba(0,0,0,.55); margin-top:1px; }
/* modales andes */
.m-ing { text-align:center; }
.m-ico { width:64px; height:64px; margin:8px auto 6px; display:block; }
.m-t { text-align:center; font-size:19px; font-weight:600; color:rgba(0,0,0,.9); }
.m-m { text-align:center; font-size:33px; font-weight:600; color:#00a650; margin:8px 0 2px; }
.m-de { text-align:center; font-size:14px; color:rgba(0,0,0,.55); }
.m-c { text-align:center; font-size:13px; color:rgba(0,0,0,.55); margin-top:2px; }
.m-qr-img { width:230px; height:230px; margin:6px auto; border:1px solid rgba(0,0,0,.1); border-radius:12px; padding:8px; display:flex; align-items:center; justify-content:center; }
.m-qr-img img { width:100%; height:100%; object-fit:contain; }
.m-qr-monto { text-align:center; font-size:31px; font-weight:600; color:rgba(0,0,0,.9); }
.m-qr-sub { text-align:center; font-size:12.5px; color:#3483fa; font-weight:500; margin-bottom:8px; }
