:root{
  --bg: #0b1020;
  --panel: rgba(255,255,255,.06);
  --panel2: rgba(255,255,255,.09);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.65);

  /* inspirado en tu logo */
  --primary: #ffcc00;
  --accent: #ff3b30;
  --blue: #2bb3ff;

  --radius: 18px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);

  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
}

*{ box-sizing:border-box; }
html, body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  background: radial-gradient(1000px 600px at 10% 0%, rgba(43,179,255,.18), transparent 55%),
              radial-gradient(900px 500px at 90% 10%, rgba(255,59,48,.18), transparent 55%),
              var(--bg);
  color: var(--text);
}

a{ color:inherit; text-decoration:none; }
.app{
  min-height: 100%;
  display:flex;
  flex-direction:column;
  padding-top: calc(8px + var(--safe-top));
}

.topbar{
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 12px 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  background: linear-gradient(to bottom, rgba(11,16,32,.92), rgba(11,16,32,.55));
  backdrop-filter: blur(10px);
}

.brand{ display:flex; align-items:center; gap:10px; min-width: 0; }
.brand-logo{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: var(--shadow);
}
.brand-text{ min-width:0; }
.brand-name{
  font-weight: 800;
  letter-spacing:.3px;
  line-height:1.05;
}
.brand-sub{
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 62vw;
}

.icon-btn{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: var(--panel);
  color: var(--text);
  display:grid;
  place-items:center;
}
.icon-btn svg{ width: 22px; height: 22px; opacity:.9; }

.content{
  flex:1;
  padding: 14px 14px calc(86px + var(--safe-bottom)) 14px; /* espacio para bottom nav */
}

.hero{ margin-top: 6px; }
.hero-card{
  border-radius: calc(var(--radius) + 6px);
  padding: 18px;
  background: linear-gradient(135deg, rgba(255,204,0,.18), rgba(43,179,255,.12));
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: var(--shadow);
}
.hero-card h1{
  margin:0 0 8px 0;
  font-size: 22px;
  letter-spacing:.2px;
}
.hero-card p{
  margin: 0 0 14px 0;
  color: var(--muted);
  line-height: 1.35;
}

.hero-actions{ display:flex; gap:10px; }
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: var(--panel);
  font-weight: 700;
  flex: 1;
}
.btn.primary{
  background: linear-gradient(135deg, rgba(255,204,0,.95), rgba(255,59,48,.75));
  color: #1a1200;
  border-color: rgba(0,0,0,.15);
}
.btn.ghost{
  background: rgba(255,255,255,.06);
}

.section h2{ margin: 4px 0 6px 0; }
.muted{ color: var(--muted); margin:0 0 12px 0; }

.grid{
  margin-top: 14px;
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.card{
  padding: 14px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid rgba(255,255,255,.12);
}
.card-title{ font-weight: 800; margin-bottom: 6px; }
.card-text{ color: var(--muted); }

.list{ display:flex; flex-direction:column; gap:10px; }
.list-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 12px 12px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid rgba(255,255,255,.12);
}
.li-title{ font-weight:800; }
.li-sub{ font-size: 12px; color: var(--muted); margin-top: 2px; }
.pill{
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 800;
}

.products{ display:flex; flex-direction:column; gap:10px; }
.product{
  display:grid;
  grid-template-columns: 52px 1fr auto;
  align-items:center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid rgba(255,255,255,.12);
}
.product-img{
  width: 52px; height: 52px;
  border-radius: 16px;
  display:grid; place-items:center;
  background: linear-gradient(135deg, rgba(43,179,255,.18), rgba(255,204,0,.18));
  border: 1px solid rgba(255,255,255,.12);
  font-size: 22px;
}
.product-name{ font-weight: 900; }
.product-meta{ font-size: 12px; color: var(--muted); margin-top: 2px; }
.product-price{ font-weight: 900; }

.bottomnav{
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(10px + var(--safe-bottom));
  z-index: 30;
  display:flex;
  gap: 10px;
  padding: 10px;
  border-radius: 22px;
  background: rgba(10,14,28,.78);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: var(--shadow);
}

.tab{
  flex:1;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap: 4px;
  padding: 10px 8px;
  border-radius: 16px;
  color: rgba(255,255,255,.75);
}
.tab-ico svg{ width: 22px; height: 22px; }
.tab-label{ font-size: 12px; font-weight: 800; letter-spacing:.2px; }

.tab.active{
  color: #1a1200;
  background: linear-gradient(135deg, rgba(255,204,0,.95), rgba(43,179,255,.55));
  border: 1px solid rgba(0,0,0,.12);
}
