.pill{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
}
.pill--blue{
  border-color: rgba(47,107,255,.35);
  background: rgba(47,107,255,.12);
}

.rate{ display:flex; align-items:center; gap:8px; }
.dot{
  width:8px; height:8px; border-radius:50%;
  background: rgba(255,255,255,.28);
}
.dot--live{ background: rgba(74,255,191,.9); box-shadow: 0 0 0 6px rgba(74,255,191,.12); }

.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  border-radius: 14px;
  padding:11px 14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  color:var(--text);
  font-weight:800;
  cursor:pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.btn:hover{ transform: translateY(-1px); background: rgba(255,255,255,.06); }
.btn:active{ transform: translateY(0px); }
.btn--blue{
  border-color: rgba(47,107,255,.45);
  background: linear-gradient(180deg, rgba(47,107,255,.85), rgba(47,107,255,.62));
}
.btn--blue:hover{ background: linear-gradient(180deg, rgba(47,107,255,.95), rgba(47,107,255,.70)); }
.btn--ghost{ background: transparent; }
.btn--sm{ padding:10px 12px; border-radius: 12px; }

.icon{ opacity:.9; }

.kicker{
  font-weight:900;
  letter-spacing:.18em;
  font-size:12px;
  color:var(--muted);
}

.hero__title{
  margin:10px 0 10px;
  font-size: 44px;
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.hero__subtitle{
  margin:0;
  color: var(--muted);
  font-size:16px;
  line-height:1.55;
  max-width: 52ch;
}

.input{
  display:flex;
  align-items:center;
  gap:10px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  border-radius: 16px;
  padding:10px 10px;
}
.input__icon{ opacity:.75; padding:0 6px; }
.input input{
  width:100%;
  border:0;
  outline:0;
  background: transparent;
  color: var(--text);
  font-weight:700;
}
.input--search{ box-shadow: var(--shadow); }

.hero__search{ margin-top:18px; display:grid; gap:12px; }
.hero__chips{ display:flex; gap:10px; flex-wrap:wrap; }
.chip{
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: var(--muted);
  font-weight:900;
  padding:8px 12px;
  border-radius:999px;
  cursor:pointer;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}
.chip:hover{
  transform: translateY(-1px);
  color: var(--text);
  background: rgba(47,107,255,.10);
}

.hero__stats{
  margin-top:18px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.stat{
  min-width: 140px;
  flex: 1;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  border-radius: var(--radius);
  padding:12px 14px;
}
.stat__val{ font-weight:900; font-size:18px; }
.stat__lbl{ color:var(--muted); font-size:12px; margin-top:4px; }

.heroCard{
  border:1px solid var(--line);
  border-radius: var(--radius2);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  box-shadow: var(--shadow);
  padding:16px;
  position:relative;
  overflow:hidden;
}
.glow:before{
  content:"";
  position:absolute;
  inset:-40% -30% auto -30%;
  height:240px;
  background: radial-gradient(closest-side, rgba(47,107,255,.25), transparent 70%);
  filter: blur(14px);
}
.heroCard__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  position:relative;
}
.heroCard__title{
  font-weight:1000;
  margin:12px 0 12px;
  position:relative;
}
.heroCard__footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-top:14px;
  position:relative;
}

.badge{
  font-weight:1000;
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(47,107,255,.40);
  background: rgba(47,107,255,.14);
}
.badge--ghost{
  border-color: var(--line);
  background: rgba(255,255,255,.03);
  color: var(--muted);
}

.grid2{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  position:relative;
}
.productMini{
  border:1px solid var(--line);
  background: rgba(0,0,0,.10);
  border-radius: 16px;
  padding:12px;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
[data-theme="light"] .productMini{ background: rgba(10,20,40,.03); }
.productMini:hover{
  transform: translateY(-2px);
  border-color: rgba(47,107,255,.42);
  background: rgba(47,107,255,.08);
}
.productMini__name{ font-weight:1000; font-size:13px; }
.productMini__meta{ font-size:12px; color:var(--muted); margin-top:4px; }
.productMini__price{ margin-top:8px; font-weight:1000; }
.productMini__price .muted{ font-weight:800; }

.cards3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}
.infoCard{
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  border-radius: var(--radius2);
  padding:16px;
  min-height: 142px;
}
.infoCard__icon{ font-size:22px; margin-bottom:8px; }
.infoCard h3{ margin:0 0 6px; }
.infoCard p{ margin:0; color:var(--muted); line-height:1.5; }

.formCard{
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  border-radius: var(--radius2);
  padding:16px;
  display:grid;
  gap:10px;
}
.label{ font-size:12px; color:var(--muted); font-weight:900; }
.text{
  border:1px solid var(--line);
  background: rgba(0,0,0,.10);
  color: var(--text);
  border-radius: 16px;
  padding:12px 12px;
  outline:none;
  font-weight:700;
}
[data-theme="light"] .text{ background: rgba(10,20,40,.03); }

.link{ color: var(--blue2); font-weight:900; }
.link:hover{ text-decoration: underline; }

.toast{
  position: fixed;
  bottom: 18px;
  right: 18px;
  border:1px solid var(--line);
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(12px);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  max-width: 340px;
  opacity:0;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events:none;
}
.toast.is-on{ opacity:1; transform: translateY(0px); }

@media (max-width: 980px){
  .cards3{ grid-template-columns: 1fr; }
}




/* ---- CATALOGO ---- */
.catalogHead{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
  margin-bottom: 16px;
}
.catalogTools{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-end;
}
.select{
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: var(--text);
  border-radius: 16px;
  padding: 12px 12px;
  outline:none;
  font-weight:900;
  min-width: 190px;
}

.catalogGrid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}
@media (max-width: 980px){
  .catalogGrid{ grid-template-columns: 1fr; }
}

.productCard{
  border:1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border-radius: var(--radius2);
  padding:16px;
  box-shadow: var(--shadow);
  position:relative;
  overflow:hidden;
}
.productCard:before{
  content:"";
  position:absolute;
  inset:-60% -40% auto -40%;
  height:280px;
  background: radial-gradient(closest-side, rgba(47,107,255,.18), transparent 70%);
  filter: blur(14px);
  pointer-events:none;
}
.productCard__top{ display:flex; justify-content:space-between; gap:10px; position:relative; }
.productCard__name{ margin:10px 0 8px; font-weight:1000; letter-spacing:-.02em; position:relative; }
.productCard__meta{ color:var(--muted); font-size:12px; line-height:1.4; position:relative; }

/* ---- NUEVO: media (imagen) para cards ---- */
.productCard__media{
  display:block;
  margin-top: 10px;
  border:1px solid var(--line);
  border-radius: 18px;
  overflow:hidden;
  background: rgba(0,0,0,.10);
  position:relative;
}
[data-theme="light"] .productCard__media{ background: rgba(10,20,40,.03); }
.productCard__img{
  width:100%;
  height: 190px;
  object-fit: cover;
  display:block;
  transform: scale(1);
  transition: transform .22s ease;
}
.productCard:hover .productCard__img{ transform: scale(1.03); }

.productCard__thumbs{
  margin-top:10px;
  display:flex;
  gap:10px;
  overflow:auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}
.thumbBtn{
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  border-radius: 14px;
  width: 76px;
  height: 56px;
  overflow:hidden;
  cursor:pointer;
  opacity:.9;
  transition: transform .18s ease, border-color .18s ease, opacity .18s ease;
  flex: 0 0 auto;
  padding:0;
}
.thumbBtn:hover{
  transform: translateY(-2px);
  opacity:1;
  border-color: rgba(47,107,255,.45);
}
.thumbBtn img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}

/* Ajuste mobile para que se vea más premium */
@media (max-width: 640px){
  .productCard__img{ height: 220px; }
  .thumbBtn{ width: 84px; height: 62px; }
}

.priceBox{
  margin-top:12px;
  border:1px solid var(--line);
  border-radius: 18px;
  padding:12px;
  background: rgba(0,0,0,.10);
  position:relative;
}
[data-theme="light"] .priceBox{ background: rgba(10,20,40,.03); }
.priceMain{ font-weight:1000; font-size:18px; }
.priceSub{ color:var(--muted); font-size:12px; margin-top:4px; font-weight:900; }

.productCard__actions{
  display:flex;
  gap:10px;
  margin-top:12px;
  position:relative;
}
.qty{
  display:flex;
  align-items:center;
  gap:8px;
  border:1px solid var(--line);
  border-radius: 14px;
  padding: 8px 10px;
  background: rgba(255,255,255,.03);
}
.qty button{
  border:0;
  background: transparent;
  color: var(--text);
  cursor:pointer;
  font-weight:1000;
  font-size:16px;
  padding: 0 6px;
}
.qty span{ min-width: 18px; text-align:center; font-weight:1000; }




/* ---- DRAWER CARRITO ---- */
.drawer{
  position:fixed;
  inset:0;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(8px);
  display:none;
  z-index:80;
}
.drawer.is-open{ display:block; }
.drawer__panel{
  position:absolute;
  right:0;
  top:0;
  height:100%;
  width:min(440px, 100%);
  border-left:1px solid var(--line);
  background: rgba(11,15,23,.92);
  display:flex;
  flex-direction:column;
}
[data-theme="light"] .drawer__panel{ background: rgba(255,255,255,.92); }

.drawer__head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:14px;
  border-bottom:1px solid var(--line);
}
.drawer__body{
  padding:14px;
  overflow:auto;
  display:grid;
  gap:10px;
}
.drawer__footer{
  border-top:1px solid var(--line);
  padding:14px;
}
.cartItem{
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  border-radius: 18px;
  padding:12px;
  display:grid;
  gap:8px;
}
.cartItem__top{
  display:flex;
  justify-content:space-between;
  gap:10px;
}
.cartItem__name{ font-weight:1000; }
.cartItem__meta{ color:var(--muted); font-size:12px; }
.cartItem__row{ display:flex; justify-content:space-between; align-items:center; gap:10px; }
.cartItem__remove{
  border:1px solid var(--line);
  background: transparent;
  color: var(--muted);
  border-radius: 12px;
  padding:8px 10px;
  cursor:pointer;
  font-weight:1000;
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.cartItem__remove:hover{ color: var(--text); border-color: rgba(47,107,255,.35); }

.totals{
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  border-radius: 18px;
  padding:12px;
}
.totals__row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:6px 0;
}

.drawerActions{
  display:flex;
  gap:10px;
  margin-top:12px;
}

.checkoutCard{
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  border-radius: 18px;
  padding:12px;
}




/* ---- PRODUCTO ---- */
.productPage{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:18px;
  align-items:start;
}
@media (max-width: 980px){
  .productPage{ grid-template-columns: 1fr; }
}

.gallery{
  border:1px solid var(--line);
  border-radius: var(--radius2);
  background: rgba(255,255,255,.03);
  padding:14px;
  box-shadow: var(--shadow);
}
.galleryMain{
  border:1px solid var(--line);
  border-radius: 18px;
  background: rgba(0,0,0,.10);
  overflow:hidden;
}
[data-theme="light"] .galleryMain{ background: rgba(10,20,40,.03); }
.galleryMain img{
  width:100%;
  height: 360px;
  object-fit: cover;
  display:block;
}
.thumbs{
  margin-top:10px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.thumb{
  width:76px;
  height:56px;
  border-radius: 14px;
  border:1px solid var(--line);
  overflow:hidden;
  cursor:pointer;
  opacity:.9;
  transition: transform .18s ease, border-color .18s ease, opacity .18s ease;
  background: rgba(0,0,0,.10);
}
.thumb:hover{ transform: translateY(-2px); opacity:1; border-color: rgba(47,107,255,.45); }
.thumb.is-active{ border-color: rgba(47,107,255,.65); opacity:1; }

.thumb img{ width:100%; height:100%; object-fit: cover; display:block; }

.pDetails{
  border:1px solid var(--line);
  border-radius: var(--radius2);
  background: rgba(255,255,255,.03);
  padding:16px;
  box-shadow: var(--shadow);
}
.kv{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
  margin-top:10px;
}
.kv .box{
  border:1px solid var(--line);
  border-radius: 18px;
  padding:12px;
  background: rgba(0,0,0,.10);
}
[data-theme="light"] .kv .box{ background: rgba(10,20,40,.03); }
.kv .box .k{ color:var(--muted); font-size:12px; font-weight:900; }
.kv .box .v{ font-weight:1000; margin-top:6px; }

.compat{
  margin-top:12px;
  border:1px solid var(--line);
  border-radius: 18px;
  padding:12px;
  background: rgba(255,255,255,.03);
}
.compat ul{ margin:8px 0 0; padding-left:18px; color: var(--muted); }




.fabCart{
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 90;
  border: 1px solid rgba(47,107,255,.45);
  background: rgba(15,20,32,.88);
  color: var(--text);
  border-radius: 999px;
  padding: 12px 14px;
  font-weight: 1000;
  box-shadow: var(--shadow);
  display:none;
}
@media (max-width: 640px){
  .fabCart{ display:flex; gap:10px; align-items:center; }
}
.fabCart #fabCount{
  background: rgba(47,107,255,.25);
  border: 1px solid rgba(47,107,255,.45);
  padding: 3px 8px;
  border-radius: 999px;
}

/* Lucide icon sizing/alignment */
.i{
  width: 15px;
  height: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn .i{
  margin-right: 8px;
}
.qty .i{
  width: 16px;
  height: 16px;
}
