/* ============================================================
   SNEP - Sistema Nacional de Economia Popular
   Demo web navegable - Stratexa Soluciones Gerenciales
   ============================================================ */

*{margin:0;padding:0;box-sizing:border-box;-webkit-tap-highlight-color:transparent}

:root{
  --navy:#0d1b3e;
  --navy-dark:#081228;
  --navy-mid:#12244d;
  --navy-soft:#1a3470;
  --gold:#c9971c;
  --gold-light:#f5c842;
  --gold-pale:#fbf4dd;
  --bg:#f4f6fb;
  --white:#fff;
  --text:#1a1a2e;
  --text-mid:#5a5a7a;
  --text-light:#8a8aaa;
  --line:#e6e9f2;
  --green:#10b981;
  --green-soft:#ecfdf5;
  --red:#ef4444;
  --amber:#f59e0b;
  --blue:#3b82f6;
  --shadow:0 2px 14px rgba(13,27,62,.07);
  --shadow-lg:0 10px 40px rgba(13,27,62,.14);
}

html,body{height:100%}
body{
  font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  background:var(--bg);color:var(--text);
  overflow-x:hidden;-webkit-font-smoothing:antialiased;
}

/* En pantallas grandes: fondo navy y "telefono" centrado */
@media(min-width:900px){
  body{background:radial-gradient(circle at 50% 0%,#1a3470,#081228 70%);padding:24px 0}
}

.app{
  max-width:480px;margin:0 auto;min-height:100vh;
  background:var(--bg);position:relative;overflow:hidden;
}
@media(min-width:900px){
  .app{
    min-height:calc(100vh - 48px);height:calc(100vh - 48px);
    border-radius:30px;box-shadow:var(--shadow-lg);
    border:1px solid rgba(255,255,255,.1);
  }
}

/* ---------- Barra superior ---------- */
.nav{
  position:absolute;top:0;left:0;right:0;z-index:60;
  background:var(--navy);padding:12px 14px;
  display:flex;align-items:center;gap:10px;height:58px;
}
.nav-logo{
  width:34px;height:34px;border-radius:10px;flex-shrink:0;
  background:linear-gradient(135deg,var(--gold),var(--gold-light));
  display:flex;align-items:center;justify-content:center;
  font-weight:900;color:var(--navy);font-size:12px;letter-spacing:.5px;
}
.nav-titles{flex:1;min-width:0}
.nav-title{color:var(--white);font-weight:800;font-size:13px;line-height:1.2}
.nav-sub{color:rgba(255,255,255,.55);font-size:10px;line-height:1.3;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nav-back{
  width:34px;height:34px;border-radius:10px;border:none;flex-shrink:0;
  background:rgba(255,255,255,.12);color:var(--white);
  font-size:18px;cursor:pointer;display:none;align-items:center;justify-content:center;
}
.nav-back.show{display:flex}
.nav-bell{
  width:34px;height:34px;border-radius:10px;border:none;flex-shrink:0;
  background:rgba(255,255,255,.12);color:var(--white);font-size:15px;
  cursor:pointer;position:relative;display:flex;align-items:center;justify-content:center;
}
.nav-bell .dot{
  position:absolute;top:5px;right:5px;width:8px;height:8px;border-radius:50%;
  background:var(--gold-light);border:1.5px solid var(--navy);display:none;
}
.nav-bell.has .dot{display:block}

/* ---------- Contenedor de pantallas ---------- */
.screens{
  position:absolute;top:58px;bottom:66px;left:0;right:0;
  overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;
}
/* Pantallas internas: sin barra de tabs, con espacio para la barra de compra */
.app.sub .tabs{display:none}
.app.sub .screens{bottom:0}
.app.sub.hasbuy .screens{bottom:74px}

.screen{display:none;animation:fade .22s ease}
.screen.active{display:block}
@keyframes fade{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}

/* ---------- Tabs inferiores ---------- */
.tabs{
  position:absolute;bottom:0;left:0;right:0;z-index:60;
  background:var(--white);border-top:1px solid var(--line);
  display:flex;padding:7px 0 9px;height:66px;
}
.tab{
  flex:1;text-align:center;cursor:pointer;border:none;background:none;
  color:var(--text-light);font-size:9.5px;font-weight:700;
  font-family:inherit;padding:2px 0;transition:color .15s;
}
.tab .ti{font-size:19px;display:block;margin-bottom:3px;line-height:1}
.tab.active{color:var(--gold)}
.tab.pub{position:relative}
.tab.pub .ti{
  width:38px;height:38px;margin:-8px auto 2px;border-radius:13px;
  background:linear-gradient(135deg,var(--navy),var(--navy-soft));
  color:var(--gold-light);display:flex;align-items:center;justify-content:center;
  font-size:20px;box-shadow:0 4px 12px rgba(13,27,62,.3);
}
.tab.pub.active .ti{background:linear-gradient(135deg,var(--gold),var(--gold-light));color:var(--navy)}

/* ---------- Bloques base ---------- */
.section{padding:18px 16px}
.section-title{font-size:16px;font-weight:800;color:var(--navy);margin-bottom:12px}
.section-head{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:12px}
.section-head .section-title{margin:0}
.link{background:none;border:none;color:var(--gold);font-size:12px;font-weight:700;
  cursor:pointer;font-family:inherit;padding:0}
.hint{font-size:11px;color:var(--text-light);line-height:1.5}
.muted{color:var(--text-mid)}
.center{text-align:center}

/* ---------- Cabecera / hero ---------- */
.hero{
  padding:20px 18px 24px;
  background:linear-gradient(140deg,#060c1c,var(--navy) 55%,var(--navy-soft));
  border-radius:0 0 26px 26px;color:var(--white);position:relative;overflow:hidden;
}
.hero::after{
  content:'';position:absolute;right:-40px;top:-40px;width:170px;height:170px;
  border-radius:50%;background:radial-gradient(circle,rgba(245,200,66,.16),transparent 70%);
}
.hero h1{font-size:23px;font-weight:900;line-height:1.22;margin-bottom:5px;position:relative}
.hero h1 span{color:var(--gold-light)}
.hero p{font-size:12.5px;color:rgba(255,255,255,.7);line-height:1.5;position:relative}
.hero-stats{display:flex;gap:8px;margin-top:16px;position:relative}
.hstat{
  flex:1;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.1);
  border-radius:13px;padding:10px 6px;text-align:center;
}
.hstat b{display:block;font-size:17px;font-weight:900;color:var(--gold-light);line-height:1.2}
.hstat span{font-size:9px;color:rgba(255,255,255,.6);text-transform:uppercase;letter-spacing:.6px}

/* ---------- Buscador ---------- */
.searchbar{
  display:flex;align-items:center;gap:9px;background:var(--white);
  border:1px solid var(--line);border-radius:14px;padding:11px 13px;box-shadow:var(--shadow);
}
.searchbar input{
  flex:1;border:none;outline:none;font-size:13.5px;font-family:inherit;
  color:var(--text);background:none;min-width:0;
}
.searchbar input::placeholder{color:var(--text-light)}

/* ---------- Chips ---------- */
.chips{display:flex;gap:7px;overflow-x:auto;padding-bottom:4px;scrollbar-width:none}
.chips::-webkit-scrollbar{display:none}
.chips.wrap{flex-wrap:wrap;overflow:visible}
.chip{
  flex-shrink:0;padding:8px 13px;border-radius:20px;background:var(--white);
  border:1px solid var(--line);font-size:11.5px;font-weight:700;color:var(--text-mid);
  cursor:pointer;font-family:inherit;white-space:nowrap;transition:all .15s;
}
.chip.active{background:var(--navy);border-color:var(--navy);color:var(--white)}
.chip.gold.active{background:var(--gold);border-color:var(--gold);color:var(--navy)}

/* ---------- Tarjetas de sector ---------- */
.sector-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.sector{
  background:var(--white);border:1px solid var(--line);border-radius:14px;
  padding:11px 4px;text-align:center;cursor:pointer;transition:transform .15s;
}
.sector:active{transform:scale(.95)}
.sector.active{border-color:var(--gold);background:var(--gold-pale)}
.sector .ic{font-size:21px;display:block;margin-bottom:4px}
.sector .nm{font-size:8.5px;font-weight:700;color:var(--text-mid);line-height:1.25}

/* ---------- Tarjeta de producto ---------- */
.prod-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px}
.pcard{
  background:var(--white);border-radius:15px;overflow:hidden;
  box-shadow:var(--shadow);cursor:pointer;transition:transform .15s;
  display:flex;flex-direction:column;
}
.pcard:active{transform:scale(.97)}
.pcard-img{width:100%;aspect-ratio:4/3;object-fit:cover;display:block;background:var(--line)}
.pcard-body{padding:9px 10px 11px;flex:1;display:flex;flex-direction:column}
.pcard-title{font-size:12.5px;font-weight:700;color:var(--text);line-height:1.3;
  margin-bottom:3px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.pcard-line{font-size:9.5px;color:var(--text-light);margin-bottom:6px;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pcard-foot{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:4px}
.pcard-price{font-size:13.5px;font-weight:900;color:var(--navy)}
.pcard-rate{font-size:9.5px;color:var(--text-mid);font-weight:700;white-space:nowrap}

/* lista horizontal */
.hscroll{display:flex;gap:11px;overflow-x:auto;padding:2px 0 6px;scrollbar-width:none}
.hscroll::-webkit-scrollbar{display:none}
.hscroll .pcard{width:152px;flex-shrink:0}

/* ---------- Tarjeta genérica ---------- */
.card{background:var(--white);border-radius:15px;padding:14px;box-shadow:var(--shadow);margin-bottom:11px}
.card.flat{box-shadow:none;border:1px solid var(--line)}
.card-row{display:flex;align-items:center;gap:11px}
.card-row .ic{
  width:40px;height:40px;border-radius:12px;flex-shrink:0;
  display:flex;align-items:center;justify-content:center;font-size:18px;
  background:linear-gradient(135deg,var(--navy),var(--navy-soft));
}
.card-row .tx{flex:1;min-width:0}
.card-row .tx b{display:block;font-size:13px;font-weight:700;color:var(--text);line-height:1.3}
.card-row .tx span{font-size:11px;color:var(--text-mid);line-height:1.4}

/* ---------- Banner ---------- */
.banner{
  background:linear-gradient(135deg,var(--navy),var(--navy-soft));
  border-radius:17px;padding:16px;color:var(--white);position:relative;overflow:hidden;
}
.banner h3{font-size:14.5px;font-weight:800;margin-bottom:4px}
.banner p{font-size:11.5px;color:rgba(255,255,255,.72);line-height:1.5;margin-bottom:11px}
.banner .bar{height:7px;border-radius:4px;background:rgba(255,255,255,.15);overflow:hidden}
.banner .bar i{display:block;height:100%;border-radius:4px;
  background:linear-gradient(90deg,var(--gold),var(--gold-light));transition:width .5s}
.banner .barlbl{display:flex;justify-content:space-between;font-size:10px;
  color:rgba(255,255,255,.6);margin-top:6px}

/* ---------- Botones ---------- */
.btn{
  display:block;width:100%;padding:14px;border-radius:14px;border:none;
  font-size:14.5px;font-weight:800;font-family:inherit;cursor:pointer;
  text-align:center;transition:transform .15s,opacity .15s;
}
.btn:active{transform:scale(.98)}
.btn:disabled{opacity:.45;cursor:not-allowed}
.btn-gold{background:linear-gradient(135deg,var(--gold),var(--gold-light));color:var(--navy)}
.btn-navy{background:var(--navy);color:var(--white)}
.btn-out{background:transparent;border:1.5px solid var(--navy);color:var(--navy)}
.btn-soft{background:var(--white);border:1px solid var(--line);color:var(--text)}
.btn-sm{padding:10px;font-size:12.5px;border-radius:11px}
.btn-row{display:flex;gap:9px}
.btn-row .btn{flex:1}

/* ---------- Formularios ---------- */
.label{font-size:12px;font-weight:800;color:var(--text);margin:14px 0 6px;display:block}
.label .req{color:var(--red)}
.input,textarea.input,select.input{
  width:100%;background:var(--white);border:1.5px solid var(--line);border-radius:12px;
  padding:12px 13px;font-size:13.5px;font-family:inherit;color:var(--text);outline:none;
  transition:border-color .15s;
}
.input:focus{border-color:var(--navy)}
.input.err{border-color:var(--red)}
textarea.input{resize:vertical;min-height:88px;line-height:1.5}
.field-err{font-size:10.5px;color:var(--red);font-weight:600;margin-top:4px;display:none}
.field-err.show{display:block}
.row2{display:flex;gap:9px}
.row2>*{flex:1;min-width:0}

.switch-row{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  background:var(--white);border:1px solid var(--line);border-radius:12px;
  padding:12px 13px;margin-top:9px;
}
.switch-row .tx b{font-size:12.5px;font-weight:700;display:block}
.switch-row .tx span{font-size:10.5px;color:var(--text-light)}
.sw{width:44px;height:25px;border-radius:13px;background:var(--line);
  border:none;cursor:pointer;position:relative;flex-shrink:0;transition:background .18s}
.sw i{position:absolute;top:2.5px;left:2.5px;width:20px;height:20px;border-radius:50%;
  background:var(--white);box-shadow:0 1px 3px rgba(0,0,0,.25);transition:left .18s}
.sw.on{background:var(--navy)}
.sw.on i{left:21.5px}

/* selección tipo tarjeta */
.opt-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.opt{
  background:var(--white);border:2px solid var(--line);border-radius:14px;
  padding:13px 11px;cursor:pointer;text-align:left;font-family:inherit;transition:all .15s;
}
.opt.active{border-color:var(--navy);background:var(--gold-pale)}
.opt .oi{font-size:20px;display:block;margin-bottom:5px}
.opt b{font-size:12.5px;font-weight:800;color:var(--text);display:block}
.opt span{font-size:10px;color:var(--text-light);line-height:1.35;display:block;margin-top:2px}

/* ---------- Wizard ---------- */
.wiz-head{padding:16px 16px 0}
.wiz-steps{display:flex;align-items:center;gap:5px;margin-bottom:14px}
.wstep{flex:1;height:4px;border-radius:3px;background:var(--line);transition:background .3s}
.wstep.done{background:var(--gold)}
.wstep.now{background:var(--navy)}
.wiz-num{font-size:10.5px;font-weight:800;color:var(--gold);letter-spacing:.8px;
  text-transform:uppercase;margin-bottom:3px}
.wiz-title{font-size:19px;font-weight:900;color:var(--navy);line-height:1.25}
.wiz-sub{font-size:12px;color:var(--text-mid);margin-top:4px;line-height:1.5}
.wiz-body{padding:4px 16px 16px}
.wiz-foot{display:flex;gap:9px;padding:12px 16px 24px}
.wiz-foot .btn{flex:1}

/* ---------- Fotos ---------- */
.photos{display:flex;gap:8px;overflow-x:auto;padding:4px 0;scrollbar-width:none}
.photos::-webkit-scrollbar{display:none}
.photo-add{
  width:84px;height:84px;border-radius:13px;background:var(--white);flex-shrink:0;
  border:2px dashed #cfd6e6;display:flex;flex-direction:column;
  align-items:center;justify-content:center;cursor:pointer;font-family:inherit;
}
.photo-add .pi{font-size:20px}
.photo-add span{font-size:9.5px;color:var(--text-mid);font-weight:700;margin-top:3px}
.photo{position:relative;flex-shrink:0}
.photo img{width:84px;height:84px;border-radius:13px;object-fit:cover;display:block}
.photo .del{
  position:absolute;top:-6px;right:-6px;width:22px;height:22px;border-radius:50%;
  background:var(--red);color:#fff;border:2px solid var(--bg);font-size:11px;
  cursor:pointer;display:flex;align-items:center;justify-content:center;font-weight:700;
}
.photo .main{
  position:absolute;bottom:4px;left:4px;background:rgba(13,27,62,.85);color:var(--gold-light);
  font-size:8px;font-weight:800;padding:2px 6px;border-radius:5px;letter-spacing:.4px;
}

/* galería sugerida */
.sugg{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin-top:8px}
.sugg img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:10px;cursor:pointer;
  border:2px solid transparent;transition:border-color .15s}
.sugg img:active{border-color:var(--gold)}

/* ---------- Vista previa en vivo ---------- */
.preview-wrap{
  background:linear-gradient(135deg,var(--navy),var(--navy-soft));
  border-radius:16px;padding:13px;margin-top:6px;
}
.preview-lbl{font-size:9.5px;font-weight:800;color:var(--gold-light);
  text-transform:uppercase;letter-spacing:.8px;margin-bottom:9px;display:flex;
  align-items:center;gap:5px}
.preview-wrap .pcard{width:100%;max-width:190px;margin:0 auto}

/* ---------- Detalle de producto ---------- */
.gallery{position:relative;background:var(--line)}
.gallery img{width:100%;aspect-ratio:1/1;object-fit:cover;display:block}
.gal-dots{position:absolute;bottom:11px;left:0;right:0;display:flex;
  justify-content:center;gap:5px}
.gal-dots i{width:6px;height:6px;border-radius:50%;background:rgba(255,255,255,.5);
  transition:all .2s}
.gal-dots i.on{background:var(--white);width:16px;border-radius:3px}
.gal-nav{position:absolute;top:50%;transform:translateY(-50%);width:34px;height:34px;
  border-radius:50%;background:rgba(13,27,62,.5);color:#fff;border:none;cursor:pointer;
  font-size:16px;display:flex;align-items:center;justify-content:center}
.gal-nav.l{left:9px}.gal-nav.r{right:9px}

.detail-head{padding:15px 16px 0}
.detail-title{font-size:19px;font-weight:900;color:var(--text);line-height:1.28}
.detail-price{font-size:25px;font-weight:900;color:var(--navy);margin:7px 0 3px}
.detail-price small{font-size:12px;font-weight:600;color:var(--text-light)}
.badges{display:flex;gap:6px;flex-wrap:wrap;margin-top:9px}
.badge{font-size:9.5px;font-weight:800;padding:5px 9px;border-radius:7px;
  background:var(--gold-pale);color:#8a6510;letter-spacing:.2px}
.badge.green{background:var(--green-soft);color:#047857}
.badge.blue{background:#eff6ff;color:#1d4ed8}
.badge.gray{background:#f1f3f9;color:var(--text-mid)}

.seller{display:flex;align-items:center;gap:11px;background:var(--white);
  border-radius:15px;padding:12px;box-shadow:var(--shadow)}
.avatar{width:44px;height:44px;border-radius:50%;flex-shrink:0;object-fit:cover;
  background:var(--navy)}
.stars{color:var(--gold);font-size:11.5px;letter-spacing:1px}

/* barra fija de compra */
.buybar{
  position:absolute;bottom:0;left:0;right:0;z-index:55;background:var(--white);
  border-top:1px solid var(--line);padding:11px 14px 14px;display:none;gap:9px;
  box-shadow:0 -4px 20px rgba(13,27,62,.08);
}
.buybar.show{display:flex}
.buybar .btn{flex:1}
.buybar .btn.icon{flex:0 0 52px;padding:14px 0;font-size:19px}

/* ---------- Checkout ---------- */
.co-step{display:flex;align-items:center;gap:8px;margin-bottom:14px}
.co-step .n{width:24px;height:24px;border-radius:50%;background:var(--navy);color:#fff;
  font-size:11px;font-weight:800;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.co-step b{font-size:14px;font-weight:800;color:var(--navy)}

.item-row{display:flex;gap:11px;align-items:center}
.item-row img{width:62px;height:62px;border-radius:12px;object-fit:cover;flex-shrink:0}
.item-row .tx{flex:1;min-width:0}
.item-row .tx b{font-size:13px;font-weight:700;display:block;line-height:1.3}
.item-row .tx span{font-size:11px;color:var(--text-light)}

.qty{display:flex;align-items:center;gap:11px;background:var(--bg);
  border-radius:11px;padding:5px 8px}
.qty button{width:27px;height:27px;border-radius:8px;border:none;background:var(--white);
  color:var(--navy);font-size:16px;font-weight:800;cursor:pointer;box-shadow:var(--shadow);
  display:flex;align-items:center;justify-content:center;font-family:inherit}
.qty b{font-size:14px;min-width:20px;text-align:center}

.totals{border-top:1px dashed var(--line);margin-top:12px;padding-top:12px}
.trow{display:flex;justify-content:space-between;font-size:12.5px;color:var(--text-mid);
  margin-bottom:7px}
.trow b{color:var(--text);font-weight:700}
.trow.total{font-size:16.5px;color:var(--navy);font-weight:900;margin:10px 0 0;
  padding-top:10px;border-top:1px solid var(--line)}
.trow.total b{font-size:19px;font-weight:900;color:var(--navy)}
.trow.free b{color:var(--green)}

.pay-opt{
  display:flex;align-items:center;gap:11px;background:var(--white);
  border:2px solid var(--line);border-radius:14px;padding:12px;margin-bottom:9px;
  cursor:pointer;text-align:left;width:100%;font-family:inherit;transition:all .15s;
}
.pay-opt.active{border-color:var(--navy);background:var(--gold-pale)}
.pay-opt.disabled{opacity:.5;cursor:not-allowed}
.pay-opt .pi{font-size:21px;flex-shrink:0;width:26px;text-align:center}
.pay-opt .tx{flex:1;min-width:0}
.pay-opt .tx b{font-size:13px;font-weight:800;display:block;color:var(--text)}
.pay-opt .tx span{font-size:10.5px;color:var(--text-mid);line-height:1.4;display:block;margin-top:1px}
.pay-opt .rd{width:19px;height:19px;border-radius:50%;border:2px solid var(--line);
  flex-shrink:0;position:relative}
.pay-opt.active .rd{border-color:var(--navy)}
.pay-opt.active .rd::after{content:'';position:absolute;inset:3px;border-radius:50%;
  background:var(--navy)}

.sim-note{
  background:#fff8e6;border:1px solid #f5d98a;border-radius:12px;padding:11px 13px;
  font-size:11px;color:#8a6510;line-height:1.5;display:flex;gap:8px;align-items:flex-start;
}
.sim-note b{font-weight:800}

/* ---------- Exito ---------- */
.success{padding:36px 22px;text-align:center}
.success .big{
  width:82px;height:82px;border-radius:50%;margin:0 auto 18px;
  background:linear-gradient(135deg,var(--green),#34d399);
  display:flex;align-items:center;justify-content:center;font-size:38px;color:#fff;
  animation:pop .4s cubic-bezier(.2,1.4,.4,1);
}
@keyframes pop{from{transform:scale(0);opacity:0}to{transform:scale(1);opacity:1}}
.success h2{font-size:22px;font-weight:900;color:var(--navy);margin-bottom:7px}
.success p{font-size:13px;color:var(--text-mid);line-height:1.6;margin-bottom:20px}

/* ---------- Pedidos ---------- */
.order-card{background:var(--white);border-radius:15px;padding:13px;
  box-shadow:var(--shadow);margin-bottom:11px;cursor:pointer}
.order-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}
.order-ref{font-size:10.5px;color:var(--text-light);font-weight:700;letter-spacing:.3px}
.pill{font-size:9.5px;font-weight:800;padding:4px 9px;border-radius:20px;white-space:nowrap}

/* ---------- Rastreo ---------- */
.track-map{position:relative;border-radius:16px;overflow:hidden;background:#e8edf7;
  box-shadow:var(--shadow)}
.track-map svg{display:block;width:100%;height:auto}
.eta{
  position:absolute;top:11px;left:11px;background:rgba(13,27,62,.92);color:var(--white);
  border-radius:11px;padding:8px 12px;backdrop-filter:blur(4px);
}
.eta b{display:block;font-size:16px;font-weight:900;color:var(--gold-light);line-height:1.1}
.eta span{font-size:9.5px;color:rgba(255,255,255,.65);text-transform:uppercase;letter-spacing:.5px}
.live{
  position:absolute;top:11px;right:11px;background:rgba(255,255,255,.95);
  border-radius:20px;padding:5px 10px;font-size:9.5px;font-weight:800;color:var(--navy);
  display:flex;align-items:center;gap:5px;
}
.live i{width:7px;height:7px;border-radius:50%;background:var(--green);
  animation:blink 1.2s infinite}
@keyframes blink{0%,100%{opacity:1}50%{opacity:.25}}

.timeline{position:relative;padding-left:28px;margin-top:6px}
.timeline::before{
  content:'';position:absolute;left:9px;top:11px;bottom:11px;width:2px;background:var(--line);
}
.tl-item{position:relative;padding:9px 0}
.tl-item .dot{
  position:absolute;left:-28px;top:11px;width:20px;height:20px;border-radius:50%;
  background:var(--white);border:2px solid var(--line);display:flex;
  align-items:center;justify-content:center;font-size:10px;z-index:2;
}
.tl-item.done .dot{background:var(--green);border-color:var(--green);color:#fff}
.tl-item.now .dot{background:var(--gold);border-color:var(--gold);color:var(--navy);
  box-shadow:0 0 0 4px rgba(201,151,28,.18)}
.tl-item b{font-size:13px;font-weight:700;color:var(--text-light);display:block;line-height:1.3}
.tl-item.done b,.tl-item.now b{color:var(--text)}
.tl-item span{font-size:10.5px;color:var(--text-light);display:block;margin-top:2px}

/* ---------- Mapa de proveedores ---------- */
.map-wrap{position:relative;border-radius:0;overflow:hidden;background:#eef2f9}
.map-wrap svg{display:block;width:100%;height:auto}
.map-ctl{
  position:absolute;bottom:11px;left:11px;right:11px;background:rgba(255,255,255,.96);
  border-radius:13px;padding:10px 12px;box-shadow:var(--shadow-lg);
  display:flex;align-items:center;gap:10px;
}
.map-ctl .tx{flex:1;min-width:0}
.map-ctl .tx b{font-size:11.5px;font-weight:800;display:block;color:var(--navy)}
.map-ctl .tx span{font-size:10px;color:var(--text-mid)}
.map-ctl input[type=range]{width:100%;accent-color:var(--gold);margin-top:3px}

.pin{cursor:pointer}
.pin circle.halo{opacity:.18}
.pin.sel circle.halo{opacity:.4}

.prov-row{
  display:flex;align-items:center;gap:11px;background:var(--white);
  border:1px solid var(--line);border-radius:14px;padding:11px;margin-bottom:9px;
  cursor:pointer;transition:border-color .15s;width:100%;text-align:left;font-family:inherit;
}
.prov-row.sel{border-color:var(--gold);background:var(--gold-pale)}
.prov-row .tx{flex:1;min-width:0}
.prov-row .tx b{font-size:12.5px;font-weight:800;display:block;line-height:1.3}
.prov-row .tx span{font-size:10.5px;color:var(--text-mid);display:block;margin-top:1px}
.prov-row .dist{font-size:11px;font-weight:800;color:var(--gold);white-space:nowrap}

/* ---------- Billetera ---------- */
.wallet-card{
  background:linear-gradient(135deg,var(--navy),var(--navy-soft));
  border-radius:19px;padding:19px;color:var(--white);position:relative;overflow:hidden;
}
.wallet-card::after{
  content:'';position:absolute;right:-30px;bottom:-50px;width:150px;height:150px;
  border-radius:50%;background:radial-gradient(circle,rgba(245,200,66,.18),transparent 70%);
}
.wallet-card .lbl{font-size:10.5px;color:rgba(255,255,255,.6);
  text-transform:uppercase;letter-spacing:1px}
.wallet-card .amt{font-size:33px;font-weight:900;color:var(--gold-light);
  margin:5px 0 3px;line-height:1.1}
.wallet-acts{display:flex;gap:8px;margin-top:16px;position:relative}
.wallet-acts button{
  flex:1;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.14);
  border-radius:12px;padding:10px 4px;color:var(--white);font-size:10.5px;font-weight:700;
  cursor:pointer;font-family:inherit;
}
.wallet-acts button .wi{font-size:16px;display:block;margin-bottom:3px}

.tx-row{display:flex;align-items:center;gap:11px;padding:11px 0;border-bottom:1px solid var(--line)}
.tx-row:last-child{border-bottom:none}
.tx-row .ic{width:37px;height:37px;border-radius:11px;flex-shrink:0;
  display:flex;align-items:center;justify-content:center;font-size:15px;background:var(--bg)}
.tx-row .tx{flex:1;min-width:0}
.tx-row .tx b{font-size:12.5px;font-weight:700;display:block;line-height:1.3}
.tx-row .tx span{font-size:10.5px;color:var(--text-light)}
.tx-amt{font-size:13.5px;font-weight:800;white-space:nowrap}
.tx-amt.in{color:var(--green)}
.tx-amt.out{color:var(--text)}

/* ---------- Gamificacion ---------- */
.level-hero{
  background:linear-gradient(140deg,#2b1a02,#6b4a09 55%,var(--gold));
  border-radius:20px;padding:20px;color:var(--white);text-align:center;position:relative;
  overflow:hidden;
}
.level-hero::after{
  content:'';position:absolute;inset:0;
  background:radial-gradient(circle at 50% 0%,rgba(255,255,255,.2),transparent 60%);
}
.level-medal{width:88px;height:88px;margin:0 auto 11px;position:relative}
.level-hero h2{font-size:21px;font-weight:900;position:relative}
.level-hero .pts{font-size:12px;color:rgba(255,255,255,.8);position:relative;margin-top:2px}
.level-bar{height:9px;border-radius:5px;background:rgba(0,0,0,.25);
  overflow:hidden;margin-top:14px;position:relative}
.level-bar i{display:block;height:100%;border-radius:5px;background:var(--white);
  transition:width .6s cubic-bezier(.2,1,.3,1)}
.level-next{font-size:10.5px;color:rgba(255,255,255,.85);margin-top:7px;
  position:relative;font-weight:600}

.levels-strip{display:flex;gap:8px;overflow-x:auto;padding:3px 0 6px;scrollbar-width:none}
.levels-strip::-webkit-scrollbar{display:none}
.lvl{flex-shrink:0;width:76px;text-align:center;opacity:.4;transition:opacity .2s}
.lvl.reached{opacity:1}
.lvl.current{opacity:1}
.lvl svg{width:52px;height:52px;display:block;margin:0 auto 4px}
.lvl b{font-size:9.5px;font-weight:800;color:var(--text);display:block;line-height:1.2}
.lvl span{font-size:8.5px;color:var(--text-light)}
.lvl.current b{color:var(--gold)}

.badge-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.bdg{background:var(--white);border-radius:15px;padding:13px 7px;text-align:center;
  box-shadow:var(--shadow);position:relative}
.bdg.locked{opacity:.45;filter:grayscale(1)}
.bdg svg{width:46px;height:46px;display:block;margin:0 auto 6px}
.bdg b{font-size:10px;font-weight:800;color:var(--text);display:block;line-height:1.25}
.bdg span{font-size:8.5px;color:var(--text-light);display:block;margin-top:2px;line-height:1.3}

.rank-row{display:flex;align-items:center;gap:11px;padding:10px 0;border-bottom:1px solid var(--line)}
.rank-row:last-child{border-bottom:none}
.rank-row.me{background:var(--gold-pale);margin:0 -14px;padding:10px 14px;border-radius:11px}
.rank-n{width:25px;font-size:13px;font-weight:900;color:var(--text-light);text-align:center;flex-shrink:0}
.rank-row .tx{flex:1;min-width:0}
.rank-row .tx b{font-size:12.5px;font-weight:700;display:block}
.rank-row .tx span{font-size:10px;color:var(--text-light)}
.rank-pts{font-size:12.5px;font-weight:800;color:var(--gold);white-space:nowrap}

.podium{display:flex;align-items:flex-end;justify-content:center;gap:9px;margin-bottom:16px}
.pod{text-align:center;flex:1;max-width:96px}
.pod img{width:48px;height:48px;border-radius:50%;object-fit:cover;
  border:2.5px solid var(--gold);margin-bottom:5px}
.pod .base{border-radius:11px 11px 0 0;background:linear-gradient(180deg,var(--navy),var(--navy-soft));
  color:var(--gold-light);font-weight:900;display:flex;align-items:center;justify-content:center}
.pod.p1 .base{height:62px;font-size:21px}
.pod.p2 .base{height:46px;font-size:17px}
.pod.p3 .base{height:36px;font-size:15px}
.pod b{font-size:10px;display:block;line-height:1.25;margin-bottom:3px;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pod span{font-size:9px;color:var(--gold);font-weight:800}

/* ---------- Perfil ---------- */
.prof-head{
  background:linear-gradient(140deg,#060c1c,var(--navy) 60%,var(--navy-soft));
  padding:22px 18px;color:var(--white);border-radius:0 0 24px 24px;
  display:flex;align-items:center;gap:14px;
}
.prof-head img{width:62px;height:62px;border-radius:50%;object-fit:cover;
  border:2.5px solid var(--gold)}
.prof-head .tx{flex:1;min-width:0}
.prof-head h2{font-size:18px;font-weight:900;line-height:1.25}
.prof-head p{font-size:11.5px;color:rgba(255,255,255,.62);margin-top:2px}

.stat-row{display:flex;gap:9px;margin-top:-16px;padding:0 16px;position:relative;z-index:2}
.stat-box{flex:1;background:var(--white);border-radius:14px;padding:12px 6px;
  text-align:center;box-shadow:var(--shadow)}
.stat-box b{display:block;font-size:17px;font-weight:900;color:var(--navy)}
.stat-box span{font-size:9.5px;color:var(--text-light);font-weight:600}

.menu-item{
  display:flex;align-items:center;gap:12px;background:var(--white);
  border-radius:14px;padding:13px;margin-bottom:8px;cursor:pointer;width:100%;
  border:none;font-family:inherit;text-align:left;box-shadow:var(--shadow);
}
.menu-item .mi{width:36px;height:36px;border-radius:11px;flex-shrink:0;
  display:flex;align-items:center;justify-content:center;font-size:16px;background:var(--bg)}
.menu-item .tx{flex:1;min-width:0}
.menu-item .tx b{font-size:13px;font-weight:700;display:block;color:var(--text)}
.menu-item .tx span{font-size:10.5px;color:var(--text-light)}
.menu-item .ar{color:var(--text-light);font-size:15px}

/* ---------- Estados vacios ---------- */
.empty{text-align:center;padding:44px 26px}
.empty .ei{font-size:44px;margin-bottom:11px;opacity:.35}
.empty b{display:block;font-size:15px;font-weight:800;color:var(--text);margin-bottom:5px}
.empty p{font-size:12.5px;color:var(--text-light);line-height:1.6;margin-bottom:16px}

/* ---------- Toast ---------- */
.toast{
  position:fixed;left:50%;transform:translateX(-50%) translateY(80px);
  bottom:88px;z-index:200;background:var(--navy);color:var(--white);
  border-radius:13px;padding:12px 18px;font-size:12.5px;font-weight:700;
  box-shadow:var(--shadow-lg);opacity:0;transition:all .28s cubic-bezier(.2,1,.3,1);
  max-width:340px;text-align:center;pointer-events:none;
}
.toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
.toast.ok{background:#065f46}
.toast.err{background:#991b1b}

/* ---------- Hoja modal ---------- */
.sheet-bg{
  position:absolute;inset:0;background:rgba(8,18,40,.55);z-index:120;
  opacity:0;pointer-events:none;transition:opacity .25s;
}
.sheet-bg.show{opacity:1;pointer-events:auto}
.sheet{
  position:absolute;left:0;right:0;bottom:0;z-index:130;background:var(--white);
  border-radius:22px 22px 0 0;padding:8px 16px 24px;max-height:82%;overflow-y:auto;
  transform:translateY(100%);transition:transform .3s cubic-bezier(.2,1,.3,1);
}
.sheet.show{transform:none}
.sheet-grip{width:38px;height:4px;border-radius:3px;background:var(--line);
  margin:6px auto 14px}
.sheet h3{font-size:16.5px;font-weight:900;color:var(--navy);margin-bottom:5px}
.sheet .sub{font-size:12px;color:var(--text-mid);margin-bottom:14px;line-height:1.5}

/* ---------- Buscador de lineas ---------- */
.line-list{max-height:230px;overflow-y:auto;margin-top:9px;
  border:1px solid var(--line);border-radius:13px;background:var(--white)}
.line-item{padding:11px 13px;border-bottom:1px solid var(--line);cursor:pointer;
  font-size:12.5px;color:var(--text);display:flex;align-items:center;gap:9px}
.line-item:last-child{border-bottom:none}
.line-item.active{background:var(--gold-pale);font-weight:800;color:var(--navy)}
.line-item .ls{font-size:9.5px;color:var(--text-light);margin-left:auto;flex-shrink:0}

/* ---------- Skeleton ---------- */
.skel{background:linear-gradient(90deg,#eceff6 25%,#f6f8fc 50%,#eceff6 75%);
  background-size:200% 100%;animation:sk 1.3s infinite;border-radius:11px}
@keyframes sk{from{background-position:200% 0}to{background-position:-200% 0}}

/* ---------- Pie ---------- */
.foot{padding:20px 16px 26px;text-align:center}
.foot p{font-size:10px;color:var(--text-light);line-height:1.7}
.foot b{color:var(--text-mid)}

.spacer{height:14px}
.spacer-lg{height:26px}
