:root{
  --bg1:#050816;
  --bg2:#111827;
  --glass:rgba(255,255,255,0.06);
  --glass-strong:rgba(255,255,255,0.12);
  --accent:#facc15;
  --accent2:#fb7185;
  --text:#f9fafb;
  --muted:#9ca3af;
  --danger:#ef4444;
  --success:#22c55e;
  --radius:18px;
  --shadow:0 18px 45px rgba(0,0,0,0.55);
  --blur:18px;
}

*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
body{color:var(--text);background:radial-gradient(circle at top,var(--bg1),var(--bg2));}

.app-bg{
  position:fixed;inset:0;
  background:radial-gradient(circle at 0% 0%,#1d4ed8 0,transparent 50%),
             radial-gradient(circle at 100% 100%,#f97316 0,transparent 50%);
  z-index:-2;
}
.app-overlay{
  position:fixed;inset:0;
  backdrop-filter:blur(50px);
  z-index:-1;
  opacity:.8;
}
.app-container{
  min-height:100vh;
  padding:1.5rem;
  max-width:1200px;
  margin:0 auto;
}

/* HEADER / NAV */
.header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  background:linear-gradient(135deg,rgba(15,23,42,0.9),rgba(30,64,175,0.6));
  padding:0.9rem 1.4rem;
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  margin-bottom:1.5rem;
}
.header-glass{
  backdrop-filter:blur(var(--blur));
  background:linear-gradient(135deg,rgba(15,23,42,0.85),rgba(56,189,248,0.4));
}
.logo{
  display:flex;align-items:center;gap:.5rem;font-weight:700;font-size:1.1rem;
}
.logo img{
  width:32px;height:32px;border-radius:999px;object-fit:cover;
  border:2px solid rgba(248,250,252,0.7);
}
.nav{
  display:flex;align-items:center;gap:.75rem;
}
.nav a{
  text-decoration:none;
  font-size:0.92rem;
  padding:0.4rem 0.8rem;
  border-radius:999px;
  color:var(--text);
  transition:all .2s ease;
}
.nav a:hover{
  background:rgba(15,23,42,0.8);
}

/* Buttons */
.btn-primary{
  background:linear-gradient(135deg,#facc15,#fb923c);
  color:#111827;
  font-weight:600;
  box-shadow:0 10px 25px rgba(248,250,252,0.25);
}
.btn-primary:hover{
  transform:translateY(-1px);
  box-shadow:0 16px 40px rgba(248,250,252,0.35);
}
.btn-secondary{
  border:1px solid rgba(248,250,252,0.3);
  background:rgba(15,23,42,0.7);
}

/* HERO LANDING */
.hero{
  display:grid;
  grid-template-columns:1.2fr 1fr;
  gap:1.5rem;
  margin-bottom:2rem;
}
.hero-card{
  background:var(--glass);
  border-radius:var(--radius);
  padding:1.7rem;
  box-shadow:var(--shadow);
  backdrop-filter:blur(var(--blur));
}
.hero-title{
  font-size:2rem;
  font-weight:800;
  margin-bottom:0.6rem;
}
.hero-subtitle{
  color:var(--muted);
  margin-bottom:1rem;
}
.hero-badges{
  display:flex;
  flex-wrap:wrap;
  gap:.5rem;margin-bottom:1rem;
}
.badge{
  padding:0.25rem 0.6rem;
  border-radius:999px;
  font-size:0.8rem;
  border:1px solid rgba(248,250,252,0.25);
}
.hero-cta{
  display:flex;
  flex-wrap:wrap;
  gap:0.75rem;
}
.hero-stats{
  display:flex;
  gap:1rem;
  margin-top:1.3rem;
  font-size:0.85rem;
  color:var(--muted);
}
.hero-stats span strong{
  color:var(--accent);
}

/* Cards productos */
.section{
  margin-bottom:2rem;
}
.section-title{
  font-size:1.3rem;
  font-weight:700;
  margin-bottom:.7rem;
}
.section-sub{
  font-size:0.9rem;
  color:var(--muted);
  margin-bottom:1rem;
}
.product-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:1rem;
}
.product-card{
  background:var(--glass);
  border-radius:var(--radius);
  padding:1rem;
  box-shadow:0 10px 30px rgba(0,0,0,0.5);
  backdrop-filter:blur(var(--blur));
  display:flex;
  flex-direction:column;
  gap:.6rem;
}
.product-card img{
  width:100%;
  height:140px;
  object-fit:cover;
  border-radius:var(--radius);
}
.product-name{
  font-weight:600;
}
.product-category{
  font-size:0.8rem;
  color:var(--muted);
}
.product-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-top:0.5rem;
}
.price{
  font-weight:700;
  color:var(--accent);
}
.stock{
  font-size:0.8rem;
  color:var(--muted);
}
.qty-select{
  width:60px;
  padding:0.2rem;
  border-radius:999px;
  border:none;
  text-align:center;
  font-size:0.9rem;
}
.btn-small{
  font-size:0.85rem;
  padding:0.25rem 0.7rem;
  border-radius:999px;
  border:none;
  cursor:pointer;
}
.btn-cart{
  background:linear-gradient(135deg,#22c55e,#16a34a);
  color:#022c22;
  font-weight:600;
}

/* Formularios */
.card{
  background:var(--glass);
  border-radius:var(--radius);
  padding:1.5rem;
  box-shadow:var(--shadow);
  backdrop-filter:blur(var(--blur));
}
.form-group{
  margin-bottom:1rem;
}
label{
  display:block;
  margin-bottom:0.25rem;
  font-size:0.9rem;
}
input, select, textarea{
  width:100%;
  padding:0.5rem 0.7rem;
  border-radius:999px;
  border:none;
  outline:none;
  background:rgba(15,23,42,0.9);
  color:var(--text);
  font-size:0.9rem;
}
textarea{
  border-radius:1rem;
  min-height:80px;
}
.btn-full{
  width:100%;
  margin-top:0.5rem;
}

/* Tablas */
.table{
  width:100%;
  border-collapse:collapse;
  font-size:0.9rem;
}
.table th,.table td{
  padding:0.5rem 0.7rem;
  border-bottom:1px solid rgba(148,163,184,0.25);
}
.table th{
  text-align:left;
  font-weight:600;
}
.table tr:hover{
  background:rgba(15,23,42,0.7);
}

/* Footer */
.footer{
  text-align:center;
  font-size:0.8rem;
  color:var(--muted);
  margin-top:1.5rem;
}

/* Responsive */
@media (max-width:768px){
  .hero{grid-template-columns:1fr;}
  .header{flex-direction:column;align-items:flex-start;gap:.6rem;}
  .nav{flex-wrap:wrap;justify-content:flex-start;}
}
