/* StarPay Cash — inicio.css
   Panel principal, saldo, accesos rápidos y banner de inicio.
   Reglas separadas del CSS original; conserva los nombres de clases existentes.
*/

.deuna-header{background:var(--card);padding:10px 16px;display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:50;border-bottom:1px solid var(--border);height:64px}

.deuna-logo-star{height:28px;object-fit:contain}

.deuna-top-actions{display:flex;align-items:center;gap:10px}

.avatar-pc{width:32px;height:32px;border-radius:50%;background:var(--purple-light);color:var(--purple);font-weight:800;display:flex;align-items:center;justify-content:center;font-size:13px}

@media (min-width:900px) {
.deuna-header{max-width:1200px;margin:0 auto;width:100%;border-radius:0 0 20px 20px;padding:12px 24px}
}

.greeting{font-size:18px;font-weight:800;margin:2px 0 10px}

.balance-card{background:var(--card);border-radius:20px;padding:20px;box-shadow:0 4px 24px rgba(0,0,0,.04);border:1px solid var(--border)}

.balance-top{display:flex;justify-content:space-between;align-items:flex-start}

.balance-label{font-size:11px;color:var(--muted);font-weight:600;display:flex;align-items:center;gap:4px;text-transform:uppercase;letter-spacing:.5px}

.balance-amount{font-size:22px;font-weight:900;margin-top:2px;color:#00A8D6}

.balance-amount small{font-size:11px;font-weight:600;color:var(--muted);margin-left:4px}

.coins-row{display:flex;align-items:center;gap:6px;margin-top:8px;background:#FFFFFF;border:2px solid #000000;border-radius:8px;padding:6px 10px;box-shadow:2px 2px 0 #000000}

.coins-row b{color:#0F172A;font-size:12px;font-weight:900}

.actions-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:16px 0;background:var(--card);border-radius:20px;padding:20px;box-shadow:0 4px 24px rgba(0,0,0,.04);border:1px solid var(--border)}

.action-item{display:flex;flex-direction:column;align-items:center;gap:6px;cursor:pointer;text-align:center}

.action-item:active{transform:scale(.96)}

.action-circle{width:48px;height:48px;background:#D6F2FF;border:2px solid #000000;border-radius:50%;display:flex;align-items:center;justify-content:center;box-shadow:2px 2px 0 #000000}

.action-label{font-size:11px;font-weight:700;color:#1A1A2E;line-height:1.2;max-width:72px;text-shadow:0 1px 0 rgba(255,255,255,.8)}

@media (min-width:900px) {
.action-label{font-size:12px}
}

.promo-banner{position:relative;background:rgba(255,255,255,0.92);backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);border:1px solid rgba(255,255,255,0.7);border-radius:24px;padding:18px 20px;color:#0F172A;display:flex;align-items:center;justify-content:space-between;margin:14px 0;overflow:hidden;box-shadow:0 20px 60px rgba(0,168,214,0.10),0 4px 16px rgba(0,0,0,0.04);transition:all .3s ease}

.promo-banner:hover{transform:translateY(-2px);box-shadow:0 24px 70px rgba(0,168,214,0.15),0 6px 20px rgba(0,0,0,0.06)}

.promo-glass-bg{position:absolute;inset:0;overflow:hidden;border-radius:24px;pointer-events:none;z-index:0}

.promo-glass-blob{position:absolute;border-radius:50%;filter:blur(40px);opacity:0.7}

.promo-glass-blob.blob1{width:200px;height:200px;background:#7DD3FC;left:-50px;top:-60px;animation:floatBlob 6s ease-in-out infinite}

.promo-glass-blob.blob2{width:180px;height:180px;background:#BAE6FD;right:-40px;bottom:-50px;animation:floatBlob 7s ease-in-out infinite reverse}

.promo-content-left{position:relative;z-index:1;flex:1;max-width:68%}

.promo-badge{display:inline-flex;align-items:center;gap:6px;background:#0F172A;color:#fff;border-radius:9999px;padding:4px 10px;font-size:11px;font-weight:800;letter-spacing:.3px;margin-bottom:10px}

.promo-badge .dot{width:6px;height:6px;border-radius:50%;background:#22C55E;box-shadow:0 0 0 0 rgba(34,197,94,0.4);animation:pulseDot 2s infinite}

.promo-text{font-size:17px;font-weight:900;line-height:1.2;color:#0F172A;max-width:260px}

@media (min-width:900px) {
.promo-text{font-size:19px;max-width:320px}
}

.promo-text span{display:block;margin-top:6px;font-size:11px;font-weight:500;line-height:1.4;color:#64748B}

.promo-btn{margin-top:12px;background:#0F172A;color:#fff;border:none;border-radius:9999px;padding:10px 18px;font-size:12px;font-weight:800;cursor:pointer;display:inline-flex;align-items:center;gap:8px;transition:all .25s ease;box-shadow:0 4px 14px rgba(15,23,42,0.18)}

.promo-btn:hover{transform:translateY(-1px);box-shadow:0 8px 22px rgba(15,23,42,0.24);background:#1E293B}

.promo-btn:active{transform:scale(.97)}

.promo-btn svg{width:14px;height:14px;transition:transform .25s ease}

.promo-btn:hover svg{transform:translateX(3px)}

.promo-illust{position:relative;z-index:1;width:96px;height:96px;flex-shrink:0;display:flex;align-items:center;justify-content:center}

.promo-gift-icon{width:80px;height:80px;animation:floatGift 4s ease-in-out infinite}

.promo-illust:hover .promo-gift-icon{transform:scale(1.05) rotate(3deg)}

.promo-box{display:none}

.balance-link{margin-top:12px;background:#fff;border:2px solid #00A8D6;border-radius:12px;padding:10px 14px;display:flex;align-items:center;justify-content:center;gap:8px;color:#00A8D6;font-weight:800;font-size:11px;cursor:pointer;text-align:center;transition:.15s;box-shadow:0 4px 12px rgba(0,168,214,.15),0 0 0 4px rgba(0,168,214,.08);position:relative;overflow:hidden}

.balance-link::before{content:"";position:absolute;inset:0;background:linear-gradient(135deg,rgba(0,168,214,.08),rgba(51,193,232,.05));pointer-events:none}

.balance-link:active{transform:scale(.97)}

@media (max-width: 480px) {
.greeting{font-size:16px;margin:2px 0 8px}
.balance-card{padding:14px;border-radius:16px;box-shadow:0 2px 12px rgba(0,0,0,.04)}
.balance-amount{font-size:19px}
.balance-amount small{font-size:10px}
.coins-row{padding:5px 8px;margin-top:6px}
.coins-row b{font-size:11px}
.actions-grid{gap:10px;margin:12px 0;padding:14px;border-radius:16px}
.action-circle{width:42px;height:42px}
.action-item{gap:4px}
.action-label{font-size:10px;max-width:64px}
.promo-banner{padding:14px 14px;border-radius:18px;margin:10px 0 18px}
.promo-banner:hover{transform:none}
.promo-content-left{max-width:62%}
.promo-badge{font-size:10px;padding:3px 8px;margin-bottom:8px}
.promo-text{font-size:14px;max-width:180px;line-height:1.15}
.promo-text span{font-size:10px;margin-top:4px;line-height:1.3}
.promo-btn{padding:8px 12px;font-size:11px;margin-top:8px;gap:6px}
.promo-btn svg{width:12px;height:12px}
.promo-illust{width:70px;height:70px}
.promo-gift-icon{width:60px;height:60px}
.promo-glass-blob.blob1{width:140px;height:140px;left:-30px;top:-30px}
.promo-glass-blob.blob2{width:120px;height:120px;right:-20px;bottom:-20px}
}

@media (min-width: 900px) {
.promo-banner{margin-bottom:20px}
}

@media (min-width: 900px) and (max-height: 800px) {
.balance-card{padding:16px}
.actions-grid{padding:16px;gap:12px;margin:12px 0}
.promo-banner{padding:16px 18px}
}

.action-item{overflow:visible !important;}

.actions-grid{overflow:visible !important;}

.bento-pop-wrapper{overflow:visible !important;padding-top:14px !important;}

.bento-pop-grid{overflow:visible !important;gap-y:22px !important;padding-top:14px !important;}

/* --- STARPAY HOME BANNER: DISEÑO 5 / TARJETAS FLOTANTES --- */

.balance-hero{
  position:relative;
  isolation:isolate;
  padding:14px 0 10px;
  margin:0 0 16px;
}

.balance-hero::before{
  content:"";
  position:absolute;
  z-index:-2;
  top:0;
  left:-12px;
  right:-12px;
  height:158px;
  border-radius:24px 24px 86px 24px;
  background:linear-gradient(118deg,#00A8D6 0%,#10BDE1 58%,#33C7E5 100%);
  border:3px solid #000000;
  box-shadow:5px 5px 0 #000000;
}

.balance-hero::after{
  content:"";
  position:absolute;
  z-index:-1;
  top:4px;
  right:-4px;
  width:116px;
  height:116px;
  border-radius:50%;
  background:rgba(255,255,255,.13);
  pointer-events:none;
}

.balance-hero .greeting{
  margin:0;
  padding:4px 14px 0;
  color:#fff;
  font-size:19px;
  font-weight:900;
  letter-spacing:-.02em;
  text-shadow:0 1px 2px rgba(0,75,105,.12);
}

.balance-hero-subtitle{
  padding:4px 14px 15px;
  color:rgba(255,255,255,.92);
  font-size:11px;
  font-weight:600;
  letter-spacing:.01em;
}

.balance-hero .balance-card{
  position:relative;
  margin:0 10px;
  padding:18px 18px 62px;
  border:3px solid #000000;
  border-radius:12px;
  background:#FFFFFF;
  box-shadow:5px 5px 0 #000000;
  overflow:visible;
}

.balance-hero .balance-link{
  position:absolute;
  z-index:2;
  right:14px;
  bottom:-15px;
  width:auto;
  min-width:166px;
  margin:0;
  padding:11px 17px;
  display:inline-flex;
  border:2px solid #000000;
  border-radius:12px;
  color:#fff;
  background:#00A8D6;
  box-shadow:3px 3px 0 #000000;
  overflow:visible;
  white-space:nowrap;
}

.balance-hero .balance-link::before{display:none}

.balance-hero .balance-link svg{color:#fff;flex-shrink:0}

.balance-hero .balance-link:active{transform:scale(.97)}

.balance-hero + .actions-grid{
  position:relative;
  margin-top:18px;
  border:3px solid #000000;
  border-radius:12px;
  background:#FFFFFF;
  box-shadow:5px 5px 0 #000000;
}

@media (max-width:480px) {
.balance-hero{padding-top:12px;margin-bottom:12px}
.balance-hero::before{left:-10px;right:-10px;height:150px;border-radius:20px 20px 78px 20px}
.balance-hero::after{width:88px;height:88px;right:0;top:5px}
.balance-hero .greeting{font-size:17px;padding-left:12px;padding-right:12px}
.balance-hero-subtitle{padding:4px 12px 13px;font-size:10px}
.balance-hero .balance-card{margin:0 5px;padding:14px 14px 58px;border-radius:17px}
.balance-hero .balance-link{right:12px;bottom:-14px;min-width:0;padding:10px 14px;font-size:10px;gap:7px}
.balance-hero + .actions-grid{margin-top:17px;border-radius:18px}
}

@media (min-width:900px) {
.balance-hero::before{left:-14px;right:-14px}
.balance-hero .balance-card{margin:0 10px}
}

.action-item:has(.action-label){-webkit-tap-highlight-color:transparent}

@media (min-width:701px) {
html body .deuna-header{max-width:1600px!important;width:calc(100% - 108px)!important;margin-left:96px!important;box-sizing:border-box!important}
}


/* Móvil: reducir banner de saldo para que las acciones principales suban sin perder legibilidad. */
@media(max-width:480px){
  html body .balance-hero{padding-top:7px!important;margin-bottom:7px!important}
  html body .balance-hero .greeting{font-size:15px!important;padding-top:0!important;padding-bottom:2px!important}
  html body .balance-hero-subtitle{padding:2px 12px 8px!important;font-size:9px!important}
  html body .balance-hero .balance-card{margin:0 5px!important;padding:10px 11px 42px!important;border-radius:15px!important}
  html body .balance-hero .balance-amount{font-size:18px!important;line-height:1.1!important}
  html body .balance-hero .coins-row{padding:4px 7px!important;margin-top:5px!important;min-height:0!important}
  html body .balance-hero .balance-link{right:10px!important;bottom:-10px!important;padding:7px 10px!important;font-size:9px!important;min-height:31px!important}
  html body .balance-hero + .actions-grid{margin-top:11px!important;padding:11px!important;gap:8px!important}
}
