:root{
  --bg:#FBF7EF; --surface:#FFFFFF; --ink:#152925; --muted:#6E7D77; --line:#EBE4D6;
  --teal:#1F6F5C; --teal-deep:#123D32; --gold:#F5A623; --coral:#FF6B4A; --sage:#2FAE7A; --violet:#7B67D6; --sky:#2E86DE;
  --cx-orange:#FF7A1A; --cx-purple:#4C3B8C;
}
*{ box-sizing:border-box; margin:0; padding:0; }
html,body{ height:100%; }
body{
  background:var(--bg); color:var(--ink); font-family:'Inter',sans-serif;
  -webkit-tap-highlight-color:transparent;
  overscroll-behavior-y:none;
  position:relative;
}
button{ font-family:inherit; }

/* ---------- FONDO CON MOVIMIENTO ---------- */
.bg-blobs{ position:fixed; inset:0; overflow:hidden; z-index:0; pointer-events:none; }
.bg-blobs span{
  position:absolute; border-radius:50%; filter:blur(50px); opacity:.28;
}
.bg-blobs span:nth-child(1){
  width:260px; height:260px; background:var(--teal); top:-60px; left:-60px;
  animation:blobFloat1 22s ease-in-out infinite;
}
.bg-blobs span:nth-child(2){
  width:220px; height:220px; background:var(--gold); top:40%; right:-80px;
  animation:blobFloat2 26s ease-in-out infinite;
}
.bg-blobs span:nth-child(3){
  width:240px; height:240px; background:var(--cx-orange); bottom:-80px; left:20%;
  animation:blobFloat3 24s ease-in-out infinite;
}
@keyframes blobFloat1{ 0%,100%{ transform:translate(0,0) scale(1); } 50%{ transform:translate(40px,60px) scale(1.15); } }
@keyframes blobFloat2{ 0%,100%{ transform:translate(0,0) scale(1); } 50%{ transform:translate(-50px,-40px) scale(1.1); } }
@keyframes blobFloat3{ 0%,100%{ transform:translate(0,0) scale(1); } 50%{ transform:translate(30px,-50px) scale(1.2); } }

#app{ max-width:480px; margin:0 auto; min-height:100vh; display:flex; flex-direction:column; position:relative; z-index:1; }
.app-screen{ flex:1; overflow-y:auto; padding-bottom:100px; }
.screen-enter{ animation:screenFadeIn .38s cubic-bezier(.22,1,.36,1); }
@keyframes screenFadeIn{ from{ opacity:0; transform:translateY(14px); } to{ opacity:1; transform:translateY(0); } }
.app-screen.hidden{ display:none; }

/* ---------- HOME ---------- */
.home-top{ padding:calc(env(safe-area-inset-top,0px) + 18px) 20px 16px; display:flex; justify-content:space-between; align-items:flex-start; }
.home-avatar{
  width:44px; height:44px; border-radius:50%; flex-shrink:0;
  background:linear-gradient(135deg, var(--cx-orange), #FFA657); color:#fff;
  display:flex; align-items:center; justify-content:center;
  font-family:'Unbounded'; font-weight:800; font-size:15px;
  box-shadow:0 6px 16px -4px rgba(255,122,26,.5);
  animation:avatarPop .5s cubic-bezier(.34,1.56,.64,1);
}
@keyframes avatarPop{ from{ transform:scale(0); } to{ transform:scale(1); } }
.brand-tag{ font-family:'IBM Plex Mono'; font-size:10px; letter-spacing:.05em; color:var(--teal); font-weight:600; margin-bottom:6px; }
.greet-name{ font-family:'Unbounded'; font-weight:700; font-size:19px; }
.greet-sub{ font-size:12.5px; color:var(--muted); margin-top:2px; }
.bell{ width:38px; height:38px; border-radius:50%; background:var(--surface); border:1px solid var(--line); display:flex; align-items:center; justify-content:center; position:relative; }
.bell-dot{ position:absolute; top:8px; right:9px; width:8px; height:8px; background:var(--coral); border-radius:50%; animation:pulseDot 1.8s infinite; }
@keyframes pulseDot{ 0%{ box-shadow:0 0 0 0 rgba(255,107,74,.5);} 70%{ box-shadow:0 0 0 7px rgba(255,107,74,0);} 100%{ box-shadow:0 0 0 0 rgba(255,107,74,0);} }

.promo-scroll{ display:flex; gap:12px; padding:0 20px 20px; overflow-x:auto; }
.promo-card{ flex-shrink:0; width:250px; border-radius:20px; padding:16px; color:#fff; position:relative; overflow:hidden; cursor:pointer; opacity:0; transform:translateX(16px); animation:promoIn .5s ease forwards; }
.promo-card:nth-child(1){ animation-delay:.05s; }
.promo-card:nth-child(2){ animation-delay:.15s; }
.promo-card:nth-child(3){ animation-delay:.25s; }
.promo-card:nth-child(4){ animation-delay:.35s; }
@keyframes promoIn{ to{ opacity:1; transform:translateX(0); } }
.promo-a{ background:linear-gradient(135deg,#FF6B4A,#F5A623); }
.promo-b{ background:linear-gradient(135deg,#1F6F5C,#2FAE7A); }
.promo-c{ background:linear-gradient(135deg,#6C5CE7,#7B67D6); }
.promo-d{ background:linear-gradient(135deg,#2E86DE,#54A0FF); }
.promo-e{ background:linear-gradient(135deg,#B8860B,#F5A623); }
.promo-f{ background:linear-gradient(135deg,#1E293B,#475569); }
.promo-card:before{ content:""; position:absolute; right:-30px; bottom:-30px; width:110px; height:110px; background:rgba(255,255,255,.14); border-radius:50%; }
.promo-tag{ display:inline-flex; gap:5px; font-family:'IBM Plex Mono'; font-size:9.5px; letter-spacing:.05em; text-transform:uppercase; background:rgba(255,255,255,.22); padding:4px 9px; border-radius:100px; margin-bottom:10px; }
.promo-title{ font-family:'Unbounded'; font-weight:800; font-size:14px; line-height:1.25; margin-bottom:6px; }
.promo-sub{ font-size:10.5px; opacity:.9; line-height:1.4; margin-bottom:12px; }
.promo-countdown{ font-family:'IBM Plex Mono'; font-size:10.5px; font-weight:600; background:rgba(0,0,0,.18); display:inline-block; padding:5px 10px; border-radius:100px; }

.earn-card{ margin:0 20px 24px; background:linear-gradient(135deg,var(--teal),#133C31 120%); border-radius:22px; padding:20px 22px; color:#fff; position:relative; overflow:hidden; }
.earn-card:before{ content:""; position:absolute; right:-40px; top:-40px; width:140px; height:140px; background:rgba(255,255,255,.06); border-radius:50%; }
.earn-card:after{
  content:""; position:absolute; top:0; left:-60%; width:50%; height:100%;
  background:linear-gradient(100deg, transparent, rgba(255,122,26,0.16), transparent);
  animation:sheen 5s ease-in-out infinite;
}
@keyframes sheen{ 0%{ left:-60%; } 50%{ left:120%; } 100%{ left:120%; } }
.earn-lbl{ font-size:11.5px; opacity:.75; font-family:'IBM Plex Mono'; letter-spacing:.06em; text-transform:uppercase; }
.earn-amt{ font-family:'Unbounded'; font-weight:800; font-size:32px; margin:6px 0 14px; color:var(--gold); text-shadow:0 0 20px rgba(245,166,35,0.4); }
.earn-row{ display:flex; justify-content:space-between; align-items:flex-end; }
.withdraw-btn{ background:var(--gold); color:var(--teal-deep); border:none; border-radius:100px; padding:9px 16px; font-family:'Inter'; font-weight:700; font-size:12px; cursor:pointer; }

.prompt-block{ padding:0 20px 14px; }
.prompt-eyebrow{ font-family:'IBM Plex Mono'; font-size:11px; letter-spacing:.08em; text-transform:uppercase; color:var(--teal); margin-bottom:6px; display:block; }
.prompt-title{ font-family:'Unbounded'; font-weight:700; font-size:19px; line-height:1.25; }

.tile-grid{ display:grid; grid-template-columns:1fr 1fr; gap:12px; padding:0 20px 26px; }
.tile{
  border:none; border-radius:22px; padding:18px 16px; color:#fff; text-align:left; cursor:pointer;
  position:relative; overflow:hidden; min-height:132px; display:flex; flex-direction:column; justify-content:space-between;
  transition:transform .18s ease, box-shadow .18s ease;
  box-shadow:0 10px 22px -10px rgba(0,0,0,.35);
}
.tile:active{ transform:scale(.95); }
.tile:before{ content:""; position:absolute; right:-24px; bottom:-24px; width:90px; height:90px; background:rgba(255,255,255,.14); border-radius:50%; }
.tile:after{ content:""; position:absolute; left:-30px; top:-30px; width:70px; height:70px; background:rgba(255,255,255,.08); border-radius:50%; }
.tile-icon-badge{
  width:42px; height:42px; border-radius:14px; background:rgba(255,255,255,.22);
  display:flex; align-items:center; justify-content:center; position:relative; z-index:1;
  backdrop-filter:blur(2px);
}
.tile .icon{ width:24px; height:24px; }
.tile .tname{ font-family:'Unbounded'; font-weight:700; font-size:14px; margin-top:12px; line-height:1.2; position:relative; z-index:1; }
.tile .tsub{ font-size:10.5px; opacity:.88; margin-top:3px; position:relative; z-index:1; }
.tile-ribbon{ position:absolute; top:10px; right:10px; background:#fff; color:#C24A2A; font-family:'Unbounded'; font-weight:800; font-size:10px; padding:4px 8px; border-radius:100px; display:flex; align-items:center; gap:4px; z-index:2; }
.tile-ribbon .dot2{ width:6px; height:6px; border-radius:50%; background:#C24A2A; animation:pulseDot 1.6s infinite; }

.recent-row-head{ display:flex; justify-content:space-between; align-items:center; padding:0 20px 12px; }
.recent-row-head span{ font-family:'IBM Plex Mono'; font-size:11px; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); }
.recent-row-head a{ font-size:11.5px; color:var(--cx-orange); font-weight:700; text-decoration:none; }
.recent-scroll{ display:flex; gap:10px; padding:0 20px 6px; overflow-x:auto; }
.recent-card{ flex-shrink:0; width:150px; background:var(--surface); border:1px solid var(--line); border-radius:16px; padding:14px; }
.recent-card .rc-cat{ font-size:10.5px; color:var(--muted); margin-bottom:6px; }
.recent-card .rc-name{ font-family:'Unbounded'; font-weight:700; font-size:13px; margin-bottom:8px; }
.pill{ display:inline-block; font-size:9.5px; font-weight:700; padding:3px 9px; border-radius:100px; }
.pill.recibido{ background:#FCEBD1; color:#B4740C; }
.pill.gestion{ background:#FFE1D8; color:#C24A2A; }
.pill.instalado{ background:#DCEBFB; color:#1E5FA8; }
.pill.pagado{ background:#D9F2E4; color:#1B7A4E; }

/* ---------- NAV ---------- */
.bottom-nav{ position:fixed; bottom:0; left:0; right:0; max-width:480px; margin:0 auto; background:rgba(255,255,255,.94); backdrop-filter:blur(8px); border-top:1px solid var(--line); display:flex; align-items:center; justify-content:space-around; padding:10px 10px calc(env(safe-area-inset-bottom,0px) + 14px); }
.nav-btn{ background:none; border:none; display:flex; flex-direction:column; align-items:center; gap:4px; color:var(--muted); font-size:10.5px; font-weight:600; cursor:pointer; }
.nav-btn.active{ color:var(--teal); }
.nav-btn svg{ width:20px; height:20px; }
.fab{ width:56px; height:56px; border-radius:50%; background:linear-gradient(135deg,var(--cx-orange),#FFA657); border:4px solid var(--bg); display:flex; align-items:center; justify-content:center; margin-top:-32px; box-shadow:0 10px 24px -6px rgba(255,122,26,.55); cursor:pointer; animation:fabPulse 2.6s ease-in-out infinite; }
@keyframes fabPulse{ 0%,100%{ transform:scale(1); } 50%{ transform:scale(1.06); } }
.fab svg{ stroke:#fff !important; }
.fab svg{ width:24px; height:24px; }

/* ---------- WALLET ---------- */
.wallet-head{ padding:calc(env(safe-area-inset-top,0px) + 18px) 20px 6px; }
.wallet-head .lbl{ font-family:'IBM Plex Mono'; font-size:11px; color:var(--muted); text-transform:uppercase; letter-spacing:.08em; }
.wallet-head .amt{ font-family:'Unbounded'; font-weight:800; font-size:34px; margin-top:6px; }
.wallet-actions{ display:flex; gap:10px; padding:16px 20px 22px; }
.wallet-actions button{ flex:1; border:none; border-radius:14px; padding:13px; font-family:'Unbounded'; font-weight:700; font-size:13px; cursor:pointer; }
.wallet-actions .primary{ background:var(--teal); color:#fff; }
.wallet-actions .ghost{ background:var(--surface); color:var(--ink); border:1px solid var(--line); }
.tx-item{ display:flex; justify-content:space-between; align-items:center; padding:13px 20px; border-top:1px solid var(--line); }
.tx-left{ display:flex; gap:12px; align-items:center; }
.tx-icon{ width:36px; height:36px; border-radius:10px; display:flex; align-items:center; justify-content:center; }
.tx-name{ font-weight:600; font-size:13px; }
.tx-date{ font-size:11px; color:var(--muted); }
.tx-amt{ font-family:'IBM Plex Mono'; font-weight:600; font-size:13px; color:var(--sage); }

.pending-card{
  margin:0 20px 18px; background:linear-gradient(135deg,#F5A623,#FFCF6B); border-radius:18px;
  padding:16px 18px; display:flex; justify-content:space-between; align-items:flex-start; color:#3A2D14;
}
.pending-lbl{ font-family:'IBM Plex Mono'; font-size:10.5px; letter-spacing:.06em; text-transform:uppercase; opacity:.75; }
.pending-amt{ font-family:'Unbounded'; font-weight:800; font-size:22px; margin:4px 0 4px; }
.pending-sub{ font-size:10.5px; opacity:.8; max-width:160px; line-height:1.4; }
.pending-count{ font-family:'IBM Plex Mono'; font-size:10.5px; font-weight:700; background:rgba(255,255,255,.35); padding:5px 10px; border-radius:100px; white-space:nowrap; }

.elite-card{ margin:0 20px 22px; background:var(--surface); border:1px solid var(--line); border-radius:16px; padding:16px 18px; }
.elite-top{ display:flex; justify-content:space-between; font-size:12.5px; font-weight:700; margin-bottom:10px; }
.elite-track{ height:8px; background:var(--bg); border-radius:100px; overflow:hidden; margin-bottom:10px; }
.elite-fill{ height:100%; background:linear-gradient(90deg,#B8860B,#F5A623); border-radius:100px; transition:width .6s ease; }
.elite-note{ font-size:11px; color:var(--muted); line-height:1.4; }

/* ---------- ANUNCIOS ---------- */
.ann-header{ padding:calc(env(safe-area-inset-top,0px) + 18px) 20px 6px; display:flex; align-items:center; gap:12px; }
.ann-header button{ background:var(--surface); border:1px solid var(--line); border-radius:50%; width:34px; height:34px; display:flex; align-items:center; justify-content:center; cursor:pointer; }
.ann-header h3{ font-family:'Unbounded'; font-size:17px; }
.ann-card{ margin:16px 20px 0; border-radius:20px; padding:20px; color:#fff; position:relative; overflow:hidden; background:linear-gradient(135deg,#FF6B4A,#F5A623); }
.ann-card.b{ background:linear-gradient(135deg,#1F6F5C,#2FAE7A); }
.ann-card.c{ background:linear-gradient(135deg,#6C5CE7,#7B67D6); }
.ann-card.d{ background:linear-gradient(135deg,#2E86DE,#54A0FF); }
.ann-card.e{ background:linear-gradient(135deg,#B8860B,#F5A623); }
.ann-card.f{ background:linear-gradient(135deg,#1E293B,#475569); }
.ann-card:before{ content:""; position:absolute; right:-40px; top:-40px; width:130px; height:130px; background:rgba(255,255,255,.10); border-radius:50%; }
.ann-tag{ display:inline-flex; font-family:'IBM Plex Mono'; font-size:10px; letter-spacing:.05em; text-transform:uppercase; background:rgba(255,255,255,.24); padding:5px 11px; border-radius:100px; margin-bottom:12px; }
.ann-card h4{ font-family:'Unbounded'; font-size:16px; margin-bottom:8px; line-height:1.25; }
.ann-card p{ font-size:12.5px; opacity:.92; line-height:1.5; margin-bottom:14px; }
.ann-foot{ display:flex; justify-content:space-between; align-items:center; }
.ann-foot .cd{ font-family:'IBM Plex Mono'; font-size:11px; background:rgba(0,0,0,.18); padding:5px 10px; border-radius:100px; }
.ann-foot button{ background:#fff; border:none; border-radius:100px; padding:8px 14px; font-family:'Inter'; font-weight:700; font-size:11.5px; cursor:pointer; }

/* ---------- PANEL "CUÁNTO PUEDES GANAR" ---------- */
.earn-showcase{ margin:16px 20px 22px; background:var(--surface); border:1px solid var(--line); border-radius:20px; padding:20px; }
.earn-showcase-head h3{ font-family:'Unbounded'; font-weight:700; font-size:16px; margin-top:2px; }
.earn-bars{ margin-top:16px; display:flex; flex-direction:column; gap:14px; }
.earn-bar-top{ display:flex; justify-content:space-between; align-items:baseline; margin-bottom:5px; }
.earn-bar-cat{ font-size:12.5px; font-weight:600; }
.earn-bar-amt{ font-family:'IBM Plex Mono'; font-size:12.5px; font-weight:700; color:var(--teal); }
.earn-bar-track{ height:10px; background:var(--bg); border-radius:100px; overflow:hidden; }
.earn-bar-fill{ height:100%; border-radius:100px; animation:barGrow 1s ease; }
@keyframes barGrow{ from{ width:0 !important; } }
.earn-showcase-foot{ font-size:10.5px; color:var(--muted); margin-top:14px; line-height:1.4; }

/* ---------- PERFIL ---------- */
.profile-head{ padding:20px 20px 22px; text-align:center; }
.profile-avatar{ width:72px; height:72px; border-radius:50%; margin:0 auto 12px; background:linear-gradient(135deg,var(--teal),var(--sage)); color:#fff; display:flex; align-items:center; justify-content:center; font-family:'Unbounded'; font-weight:800; font-size:24px; }
.profile-head h3{ font-family:'Unbounded'; font-size:17px; }
.profile-head p{ font-size:12.5px; color:var(--muted); margin-top:2px; }
.profile-stats{ display:flex; margin:0 20px 20px; border:1px solid var(--line); border-radius:16px; overflow:hidden; }
.profile-stats div{ flex:1; text-align:center; padding:14px 6px; border-right:1px solid var(--line); }
.profile-stats div:last-child{ border-right:none; }
.profile-stats b{ display:block; font-family:'Unbounded'; font-size:16px; }
.profile-stats span{ font-size:10px; color:var(--muted); }
.menu-item{ display:flex; justify-content:space-between; align-items:center; padding:15px 20px; border-top:1px solid var(--line); font-size:13.5px; font-weight:500; }

/* ---------- MI RED ---------- */
.network-hero{
  margin:16px 20px 18px; background:linear-gradient(135deg,#7B67D6,#9C8CE8); border-radius:20px;
  padding:20px 22px; color:#fff; position:relative; overflow:hidden;
}
.network-hero:before{ content:""; position:absolute; right:-30px; top:-30px; width:120px; height:120px; background:rgba(255,255,255,.12); border-radius:50%; }
.network-hero-lbl{ font-family:'IBM Plex Mono'; font-size:11px; letter-spacing:.06em; text-transform:uppercase; opacity:.8; }
.network-hero-amt{ font-family:'Unbounded'; font-weight:800; font-size:28px; margin:6px 0 8px; }
.network-hero-sub{ font-size:11.5px; opacity:.85; line-height:1.45; max-width:260px; }

.network-code-card{ margin:0 20px 22px; background:var(--surface); border:1px solid var(--line); border-radius:18px; padding:18px; text-align:center; }
.network-code-lbl{ font-family:'IBM Plex Mono'; font-size:10.5px; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); margin-bottom:8px; }
.network-code-val{ font-family:'Unbounded'; font-weight:800; font-size:22px; color:var(--teal); letter-spacing:.04em; }

.network-item{ display:flex; justify-content:space-between; align-items:center; padding:13px 20px; border-top:1px solid var(--line); }
.network-item-left{ display:flex; align-items:center; gap:12px; }
.network-avatar{ width:36px; height:36px; border-radius:50%; background:var(--teal); color:#fff; display:flex; align-items:center; justify-content:center; font-family:'Unbounded'; font-weight:700; font-size:12.5px; flex-shrink:0; }
.network-item-name{ font-weight:600; font-size:13px; }
.network-item-sub{ font-size:11px; color:var(--muted); }
.network-item-amt{ font-family:'IBM Plex Mono'; font-weight:600; font-size:13px; color:var(--sage); text-align:right; }
.network-item-amt span{ display:block; font-size:10px; color:var(--muted); font-weight:400; margin-top:2px; }

.network-note{ margin:20px 20px 8px; font-size:11px; color:var(--muted); line-height:1.5; text-align:center; }

/* ---------- BOTTOM SHEET ---------- */
.sheet-overlay{ position:fixed; inset:0; max-width:480px; margin:0 auto; background:rgba(18,42,36,.45); display:flex; align-items:flex-end; z-index:20; opacity:0; pointer-events:none; transition:opacity .25s ease; }
.sheet-overlay.show{ opacity:1; pointer-events:all; }
.sheet{ background:var(--surface); width:100%; border-radius:26px 26px 0 0; padding:10px 22px calc(env(safe-area-inset-bottom,0px) + 26px); max-height:88vh; overflow-y:auto; transform:translateY(100%); transition:transform .3s cubic-bezier(.22,1,.36,1); position:relative; }
.sheet-overlay.show .sheet{ transform:translateY(0); }
.sheet-handle{ width:36px; height:4px; background:var(--line); border-radius:10px; margin:0 auto 18px; }
.sheet-cat-badge{ display:inline-flex; align-items:center; gap:8px; padding:8px 14px; border-radius:100px; font-size:12px; font-weight:700; color:#fff; margin-bottom:16px; }
.sheet h2{ font-family:'Unbounded'; font-size:19px; margin-bottom:6px; }
.sheet p.sub{ font-size:12.5px; color:var(--muted); margin-bottom:20px; line-height:1.5; }
.sheet-field{ margin-bottom:14px; }
.sheet-field label{ display:block; font-size:12px; font-weight:600; color:var(--muted); margin-bottom:6px; }
.sheet-field input{ width:100%; background:var(--bg); border:1px solid var(--line); border-radius:12px; padding:12px 13px; font-family:'Inter'; font-size:14px; color:var(--ink); }
.sheet-field select{ width:100%; background:var(--bg); border:1px solid var(--line); border-radius:12px; padding:12px 13px; font-family:'Inter'; font-size:14px; color:var(--ink); appearance:none; }
.two-col{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.sheet-btn{ width:100%; background:var(--teal); color:#fff; border:none; border-radius:14px; padding:15px; font-family:'Unbounded'; font-weight:700; font-size:14px; margin-top:6px; cursor:pointer; }
.sheet-close{ position:absolute; top:16px; right:20px; width:30px; height:30px; border-radius:50%; background:var(--bg); border:none; display:flex; align-items:center; justify-content:center; cursor:pointer; }

.reward-toggle{ display:flex; gap:8px; margin-top:4px; }
.reward-btn{
  flex:1; border:1.5px solid var(--line); background:var(--surface); color:var(--ink);
  border-radius:12px; padding:11px 8px; font-family:'Inter'; font-weight:600; font-size:12.5px; cursor:pointer;
}
.reward-btn.selected{ border-color:var(--teal); background:#EEF6F1; color:var(--teal); }
.reward-product-select{
  width:100%; margin-top:10px; background:var(--bg); border:1px solid var(--line); border-radius:12px;
  padding:12px 13px; font-family:'Inter'; font-size:13.5px; color:var(--ink);
}

.ticket-box{ background:var(--bg); border-radius:18px; padding:20px; text-align:center; margin-bottom:18px; }
.scan-wrap{ position:relative; display:inline-block; margin-bottom:4px; }
.scan-ring{
  position:absolute; inset:-10px; border:2.5px solid var(--cx-orange); border-radius:16px;
  opacity:.7; animation:scanPulse 1.8s ease-out infinite;
}
@keyframes scanPulse{
  0%{ transform:scale(1); opacity:.8; }
  70%{ transform:scale(1.12); opacity:0; }
  100%{ transform:scale(1.12); opacity:0; }
}
.scan-label{ font-size:11.5px; font-weight:700; color:var(--cx-orange); margin:14px 0 8px; }
#qrcode{ display:inline-block; background:#fff; padding:8px; border-radius:10px; margin-bottom:12px; position:relative; z-index:1; }
.ticket-box .tid{ font-family:'IBM Plex Mono'; font-size:11.5px; color:var(--muted); }
.or-divider{ text-align:center; font-size:11px; color:var(--muted); font-weight:700; text-transform:uppercase; margin-bottom:14px; position:relative; }
.or-divider:before, .or-divider:after{ content:""; position:absolute; top:50%; width:38%; height:1px; background:var(--line); }
.or-divider:before{ left:0; } .or-divider:after{ right:0; }

.msg-preview-label{ font-family:'IBM Plex Mono'; font-size:11px; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); margin-bottom:10px; }
.chat-bubble{
  background:#DCF8C6; border-radius:14px 14px 14px 4px; padding:12px 14px; font-size:13px;
  line-height:1.5; color:#152925; white-space:pre-wrap; margin-bottom:12px; position:relative;
  border:1px solid #C9EEB2;
}
.chat-bubble b{ font-weight:700; }
.msg-edit{
  width:100%; background:var(--surface); border:1px solid var(--line); border-radius:12px;
  padding:12px 13px; font-family:'Inter'; font-size:12.5px; color:var(--ink); line-height:1.5;
  resize:vertical; margin-bottom:16px;
}
.msg-edit:focus{ outline:2px solid var(--teal); outline-offset:1px; }

.success-wrap{ text-align:center; padding:10px 0 4px; }
.success-ring{ width:74px; height:74px; border-radius:50%; background:var(--sage); color:#fff; display:flex; align-items:center; justify-content:center; margin:0 auto 18px; font-size:32px; animation:pop .45s cubic-bezier(.34,1.56,.64,1); }
@keyframes pop{ 0%{ transform:scale(0);} 70%{ transform:scale(1.1);} 100%{ transform:scale(1);} }
.success-wrap h2{ font-family:'Unbounded'; font-size:19px; margin-bottom:8px; }
.success-wrap p{ font-size:12.5px; color:var(--muted); margin-bottom:20px; line-height:1.5; }

.referral-summary{ background:var(--bg); border-radius:14px; padding:14px 16px; margin-bottom:18px; text-align:left; }
.rs-row{ display:flex; justify-content:space-between; padding:6px 0; font-size:12.5px; border-bottom:1px solid var(--line); }
.rs-row:last-child{ border-bottom:none; }
.rs-row span{ color:var(--muted); }
.rs-row b{ text-align:right; max-width:60%; }
.share-row{ display:flex; gap:10px; }
.share-row button{ flex:1; border:none; border-radius:14px; padding:14px; font-family:'Unbounded'; font-weight:700; font-size:12.5px; cursor:pointer; }
.share-row .wa{ background:#25D366; color:#fff; }
.share-row .done{ background:var(--bg); color:var(--ink); border:1px solid var(--line); }

/* ---------- INSTALL BANNER ---------- */
.install-banner{ position:fixed; left:12px; right:12px; bottom:96px; max-width:456px; margin:0 auto; background:var(--teal-deep); color:#fff; border-radius:16px; padding:14px 16px; display:flex; align-items:center; gap:12px; z-index:30; box-shadow:0 14px 30px -12px rgba(0,0,0,.4); }
.install-banner p{ flex:1; font-size:12.5px; line-height:1.4; }
.install-banner button{ background:var(--gold); color:var(--teal-deep); border:none; border-radius:100px; padding:9px 14px; font-family:'Unbounded'; font-weight:700; font-size:12px; cursor:pointer; white-space:nowrap; }
.install-banner .close{ background:none; border:none; color:rgba(255,255,255,.6); font-size:16px; cursor:pointer; padding:2px 4px; }

/* ---------- WELCOME (pantalla de bienvenida enriquecida) ---------- */
.onboard-screen.welcome-screen{ padding:calc(env(safe-area-inset-top,0px) + 26px) 0 0; display:flex; flex-direction:column; }
.welcome-scroll{ flex:1; overflow-y:auto; padding:0 24px 20px; }
.welcome-scroll .onboard-logo{ margin-bottom:20px; }
.welcome-visual{
  position:relative; height:210px; border-radius:26px; margin:18px 0 24px;
  background:linear-gradient(150deg, var(--teal-deep), var(--cx-purple) 130%);
  overflow:hidden; display:flex; align-items:center; justify-content:center;
  box-shadow:0 20px 40px -18px rgba(76,59,140,0.45);
}
.welcome-visual:before{
  content:""; position:absolute; inset:0;
  background:radial-gradient(circle at 30% 20%, rgba(255,122,26,0.20), transparent 55%);
}
.coin-field{ position:absolute; inset:0; }
.coin{
  position:absolute; width:18px; height:18px; border-radius:50%;
  background:radial-gradient(circle at 30% 30%, #FFE7A8, var(--gold));
  bottom:-20px; opacity:0; animation:coinRise 4.5s ease-in infinite;
  box-shadow:0 0 10px rgba(245,166,35,0.5);
}
@keyframes coinRise{
  0%{ transform:translateY(0) rotate(0deg); opacity:0; }
  10%{ opacity:.95; }
  85%{ opacity:.75; }
  100%{ transform:translateY(-230px) rotate(220deg); opacity:0; }
}
.earn-badge{ position:relative; z-index:2; text-align:center; color:#fff; padding:0 20px; }
.earn-badge-lbl{ font-family:'IBM Plex Mono'; font-size:10px; letter-spacing:.08em; text-transform:uppercase; opacity:.8; margin-bottom:8px; }
.earn-badge-amt{ font-family:'Unbounded'; font-weight:800; font-size:40px; color:var(--gold); text-shadow:0 0 24px rgba(245,166,35,0.45); }
.earn-badge-sub{ font-size:11.5px; opacity:.8; margin-top:6px; }

.welcome-h1{ font-family:'Unbounded'; font-weight:800; font-size:32px; line-height:1.16; margin-bottom:12px; letter-spacing:-.01em; }
.welcome-h1 span{ color:var(--gold); }
.welcome-sub{ font-size:13.5px; color:var(--muted); line-height:1.55; margin-bottom:22px; }

.welcome-marquee{ overflow:hidden; margin:0 -24px 26px; border-top:1px solid var(--line); border-bottom:1px solid var(--line); background:var(--surface); padding:12px 0; }
.welcome-marquee-track{ display:inline-flex; gap:28px; white-space:nowrap; animation:wMarquee 18s linear infinite; padding-left:24px; }
.welcome-marquee-track span{ font-family:'IBM Plex Mono'; font-size:11.5px; color:var(--teal); font-weight:600; }
@keyframes wMarquee{ from{ transform:translateX(0); } to{ transform:translateX(-50%); } }

.benefit-row{ display:flex; flex-direction:column; gap:14px; margin-bottom:26px; }
.benefit-item{ display:flex; align-items:flex-start; gap:12px; }
.benefit-icon{ width:38px; height:38px; border-radius:11px; flex-shrink:0; display:flex; align-items:center; justify-content:center; }
.benefit-icon svg{ width:18px; height:18px; }
.benefit-item b{ display:block; font-family:'Unbounded'; font-size:13.5px; margin-bottom:3px; }
.benefit-item span{ font-size:12px; color:var(--muted); line-height:1.4; }

.steps-mini{ display:flex; gap:8px; margin-bottom:24px; }
.step-mini{
  flex:1; background:var(--surface); border:1px solid var(--line); border-radius:14px;
  padding:14px 10px; font-size:11px; font-weight:600; text-align:center; color:var(--ink); line-height:1.35;
}
.sm-n{
  display:flex; align-items:center; justify-content:center; width:22px; height:22px; border-radius:50%;
  background:var(--teal); color:#fff; font-family:'Unbounded'; font-size:11px; margin:0 auto 8px;
}

.welcome-quote{
  background:#EEF6F1; border-left:3px solid var(--teal); border-radius:12px; padding:14px 16px;
  font-size:12.5px; font-style:italic; color:var(--ink); line-height:1.5; margin-bottom:8px;
}
.welcome-quote span{ display:block; margin-top:8px; font-style:normal; font-size:11px; color:var(--muted); font-weight:600; }

.sticky-cta{ padding:14px 24px calc(env(safe-area-inset-bottom,0px) + 20px); background:linear-gradient(180deg, rgba(251,247,239,0), var(--bg) 40%); }

/* ---------- ONBOARDING (pasos 1-2-3) ---------- */
.onboard-screen{ max-width:480px; margin:0 auto; min-height:100vh; display:flex; flex-direction:column; padding:calc(env(safe-area-inset-top,0px) + 40px) 26px calc(env(safe-area-inset-bottom,0px) + 26px); }
.onboard-screen.hidden{ display:none; }
.onboard-logo{ font-family:'Unbounded'; font-weight:800; font-size:18px; display:flex; align-items:center; gap:8px; margin-bottom:36px; }
.cx-word{ letter-spacing:-.01em; }
.cx-x{ color:var(--cx-orange); font-size:1.25em; display:inline-block; transform:skewX(-8deg); margin-left:-1px; text-shadow:0 0 14px rgba(255,122,26,0.4); }
.onboard-hero{ flex:1; display:flex; flex-direction:column; justify-content:center; }
.onboard-hero h1{ font-family:'Unbounded'; font-weight:800; font-size:28px; line-height:1.25; margin-bottom:14px; }
.onboard-hero p{ font-size:14px; color:var(--muted); line-height:1.5; }
.onboard-progress{ display:flex; gap:6px; margin-bottom:28px; }
.onboard-progress span{ flex:1; height:4px; border-radius:100px; background:var(--line); }
.onboard-progress span.on{ background:var(--teal); }
.onboard-head{ margin-bottom:22px; }
.onboard-eyebrow{ font-family:'IBM Plex Mono'; font-size:11px; letter-spacing:.08em; text-transform:uppercase; color:var(--teal); display:block; margin-bottom:8px; }
.onboard-head h2{ font-family:'Unbounded'; font-weight:700; font-size:22px; margin-bottom:8px; }
.onboard-head p{ font-size:13px; color:var(--muted); line-height:1.5; }

.occ-grid{ display:grid; grid-template-columns:1fr 1fr; gap:10px; flex:1; align-content:start; }
.occ-card{ border:1.5px solid var(--line); background:var(--surface); border-radius:16px; padding:16px 14px; cursor:pointer; text-align:left; position:relative; transition:border-color .15s, background .15s; }
.occ-card.selected{ border-color:var(--teal); background:#EEF6F1; }
.occ-card h4{ font-family:'Unbounded'; font-size:13.5px; margin:8px 0 4px; line-height:1.25; }
.occ-card p{ font-size:11px; color:var(--muted); line-height:1.4; }
.occ-check{ position:absolute; top:12px; right:12px; width:20px; height:20px; border-radius:50%; border:1.5px solid var(--line); background:#fff; display:flex; align-items:center; justify-content:center; font-size:11px; color:transparent; }
.occ-card.selected .occ-check{ background:var(--teal); border-color:var(--teal); color:#fff; }
.occ-avatar{ width:34px; height:34px; border-radius:10px; background:var(--bg); border:1px solid var(--line); display:flex; align-items:center; justify-content:center; font-family:'Unbounded'; font-weight:700; font-size:13px; color:var(--teal); }

.onboard-form{ flex:1; }
.onboard-actions{ padding-top:18px; }
.onboard-btn{ width:100%; border:none; border-radius:14px; padding:16px; font-family:'Unbounded'; font-weight:700; font-size:14.5px; cursor:pointer; }
.onboard-btn.primary{ background:var(--gold); color:var(--teal-deep); }
.onboard-btn.primary:disabled{ opacity:.4; cursor:not-allowed; }
.onboard-alt-link{ text-align:center; font-size:12.5px; color:var(--muted); margin-top:14px; }
.onboard-alt-link a{ color:var(--teal); font-weight:700; text-decoration:none; }

.consent-check{ display:flex; gap:10px; align-items:flex-start; margin-top:4px; font-size:11.5px; color:var(--muted); line-height:1.5; }
.consent-check input{ margin-top:2px; accent-color:var(--teal); flex-shrink:0; }
.consent-check a{ color:var(--teal); font-weight:600; text-decoration:underline; }

.policies-screen{ padding:0 !important; }
.policies-scroll{ flex:1; overflow-y:auto; padding:6px 24px 30px; }
.policies-scroll h4{ font-family:'Unbounded'; font-weight:700; font-size:14.5px; margin:22px 0 8px; color:var(--ink); }
.policies-scroll h4:first-child{ margin-top:4px; }
.policies-scroll p{ font-size:12.5px; color:var(--muted); line-height:1.6; margin-bottom:4px; }
.policies-scroll ul{ margin:6px 0 4px 18px; padding:0; }
.policies-scroll li{ font-size:12.5px; color:var(--muted); line-height:1.6; margin-bottom:4px; }
.policies-foot{ margin-top:28px; padding-top:16px; border-top:1px solid var(--line); font-size:10.5px; color:var(--muted); line-height:1.5; }

/* ---------- ADMIN ---------- */
.admin-tabs{ display:flex; gap:8px; margin:0 20px 16px; background:var(--surface); border:1px solid var(--line); border-radius:100px; padding:4px; }
.admin-tab{ flex:1; border:none; background:transparent; color:var(--muted); font-family:'Inter'; font-weight:600; font-size:12.5px; padding:9px 0; border-radius:100px; cursor:pointer; }
.admin-tab.active{ background:var(--teal); color:#fff; }
.admin-row{ margin:0 20px 12px; background:var(--surface); border:1px solid var(--line); border-radius:14px; padding:14px 16px; }
.admin-row-top{ display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:4px; }
.admin-row-top b{ font-size:13.5px; }
.admin-row-sub{ font-size:11.5px; color:var(--muted); display:block; }
.admin-row-date{ font-family:'IBM Plex Mono'; font-size:10.5px; color:var(--muted); white-space:nowrap; }
.admin-row-extra{ font-size:11.5px; color:var(--ink); font-style:italic; margin-top:6px; }
.admin-row-actions{ display:flex; gap:8px; margin-top:10px; }
.admin-status-select{ flex:1.3; background:var(--bg); border:1px solid var(--line); border-radius:10px; padding:8px 9px; font-size:12px; }
.admin-monto-input{ flex:1; background:var(--bg); border:1px solid var(--line); border-radius:10px; padding:8px 9px; font-size:12px; }
.admin-msg-actions{ display:flex; gap:8px; margin-top:8px; }
.admin-msg-btn{
  flex:1; background:#EEF6F1; border:1px solid var(--teal); color:var(--teal);
  border-radius:10px; padding:9px 6px; font-family:'Inter'; font-weight:700; font-size:11px; cursor:pointer;
}
.admin-empty{ padding:24px 20px; color:var(--muted); font-size:12.5px; text-align:center; }

/* ---------- IMPACTO COLECTIVO ---------- */
.impact-teaser{
  margin:0 20px 22px; background:linear-gradient(135deg,#1F6F5C,#2FAE7A); border-radius:16px;
  padding:14px 16px; display:flex; align-items:center; gap:12px; cursor:pointer; color:#fff;
  animation:teaserGlow 3s ease-in-out infinite;
}
@keyframes teaserGlow{ 0%,100%{ box-shadow:0 6px 16px -6px rgba(47,174,122,0.4); } 50%{ box-shadow:0 10px 26px -6px rgba(47,174,122,0.7); } }
.impact-teaser-icon{ font-size:22px; flex-shrink:0; animation:handWave 2.2s ease-in-out infinite; display:inline-block; }
@keyframes handWave{ 0%,100%{ transform:rotate(0deg); } 25%{ transform:rotate(-12deg); } 75%{ transform:rotate(12deg); } }
.impact-teaser-text{ flex:1; display:flex; flex-direction:column; }
.impact-teaser-text b{ font-family:'Unbounded'; font-size:13px; }
.impact-teaser-text span{ font-size:11px; opacity:.85; margin-top:2px; }
.impact-teaser-arrow{ font-size:20px; opacity:.8; }

.impact-hero{
  margin:16px 20px 20px; background:linear-gradient(150deg,#123D32,#1F6F5C 130%); border-radius:20px;
  padding:24px 22px; text-align:center; color:#fff; position:relative; overflow:hidden;
}
.impact-hero:before{ content:""; position:absolute; inset:0; background:radial-gradient(circle at 70% 20%, rgba(47,174,122,0.25), transparent 55%); }
.impact-hero-icon{ font-size:34px; margin-bottom:10px; position:relative; z-index:1; }
.impact-hero-text{ font-size:12.5px; line-height:1.6; opacity:.92; max-width:280px; margin:0 auto; position:relative; z-index:1; }

.impact-grid{ display:grid; grid-template-columns:1fr 1fr; gap:12px; padding:0 20px 18px; }
.impact-stat{ background:var(--surface); border:1px solid var(--line); border-radius:16px; padding:18px 14px; text-align:center; }
.impact-num{ font-family:'Unbounded'; font-weight:800; font-size:26px; color:var(--sage); }
.impact-lbl{ font-size:10.5px; color:var(--muted); margin-top:6px; line-height:1.3; }
.impact-note{ margin:8px 20px 20px; font-size:11px; color:var(--muted); text-align:center; line-height:1.5; }

/* ---------- TABLERO KANBAN ---------- */
.board-scroll{ display:flex; gap:14px; padding:16px 20px 20px; overflow-x:auto; align-items:flex-start; }
.board-col{ flex-shrink:0; width:230px; background:var(--surface); border:1px solid var(--line); border-radius:16px; padding:14px; }
.board-col-head{ display:flex; align-items:center; gap:8px; margin-bottom:12px; }
.board-dot{ width:9px; height:9px; border-radius:50%; }
.board-col-title{ font-family:'Unbounded'; font-weight:700; font-size:12.5px; flex:1; }
.board-count{ font-family:'IBM Plex Mono'; font-size:10.5px; font-weight:700; color:var(--muted); background:var(--bg); padding:2px 8px; border-radius:100px; }
.board-card{
  background:var(--bg); border-radius:12px; padding:12px; margin-bottom:10px;
  border-left:3px solid var(--line); opacity:0; transform:translateY(8px);
  animation:boardCardIn .4s ease forwards;
}
@keyframes boardCardIn{ to{ opacity:1; transform:translateY(0); } }
.board-card b{ font-size:12.5px; display:block; margin-bottom:3px; }
.board-card .bc-cat{ font-size:10.5px; color:var(--muted); display:block; margin-bottom:4px; }
.board-card .bc-date{ font-family:'IBM Plex Mono'; font-size:9.5px; color:var(--muted); }
.board-card .bc-amt{ font-family:'IBM Plex Mono'; font-size:11px; font-weight:700; color:var(--sage); margin-top:4px; display:block; }
.board-empty{ font-size:11px; color:var(--muted); text-align:center; padding:16px 0; }

.hidden{ display:none !important; }
