/* ====== Base ====== */
:root{
  --green:#16a34a;
  --green2:#065f46;
  --ml:#fff159;           /* guiño MercadoLibre */
  --text:#111827;
  --muted:#6b7280;
  --card:#ffffff;
  --bg:#ebebeb;
  --border:#e5e7eb;
}

body{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: var(--text);
}

.nav-link{
  color:#4b5563;
  font-weight:600;
  font-size:14px;
}
.nav-link:hover{ color: var(--green); }

/* ====== Trustbar ====== */
.trustbar{
  background:#0b1220;
  color:#e5e7eb;
  font-size:12px;
}
.trustbar-inner{
  max-width:1280px;
  margin:0 auto;
  padding:8px 16px;
  display:flex;
  gap:14px;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
}
.trustbar-item{
  display:flex;
  gap:8px;
  align-items:center;
  opacity:.95;
}
.trustbar-link{
  color:#c7f9d4;
  font-weight:700;
  text-decoration:none;
}
.trustbar-link:hover{ color:#ffffff; }

/* ====== Hero ====== */
.hero-bg{
  background: radial-gradient(1200px 400px at 50% 0%, rgba(255,255,255,.18), transparent),
              linear-gradient(135deg, #16a34a, #065f46);
}

.chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  background:rgba(255,255,255,.92);
  color:#065f46;
  border:1px solid rgba(255,255,255,.5);
  white-space:nowrap;
}
.chip:hover{ background:#fff; }
.chip-active{
  background: #fff;
  border-color: rgba(0,0,0,.08);
  color:#0f172a;
}
.chip-ghost{
  background: rgba(255,255,255,.12);
  color:#fff;
  border:1px solid rgba(255,255,255,.25);
}

/* ====== Toolbar ====== */
.toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
  flex-wrap:wrap;
}
.tag{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-left:6px;
  padding:4px 8px;
  border-radius:999px;
  background:#fff;
  border:1px solid var(--border);
  font-size:12px;
  color:#374151;
}
.sort-select{
  border:1px solid var(--border);
  border-radius:10px;
  padding:10px 12px;
  font-weight:700;
  font-size:13px;
  background:#fff;
}

/* ====== Panels ====== */
.panel{
  background:#fff;
  border:1px solid var(--border);
  border-radius:14px;
  padding:14px;
  box-shadow: 0 1px 0 rgba(0,0,0,.03);
}
.panel-title{
  font-weight:900;
  color:#111827;
  margin-bottom:10px;
}
.panel-list{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:8px;
  font-size:13px;
}
.panel-list a{
  color:#4b5563;
  text-decoration:none;
  font-weight:600;
}
.panel-list a:hover{ color: var(--green); }
.panel-active{ color: var(--green) !important; font-weight:900; }

.panel-trust{
  display:flex;
  flex-direction:column;
  gap:10px;
  color:#374151;
  font-size:13px;
}
.panel-trust i{ color: var(--green); }
.panel-whats{
  display:inline-flex;
  gap:10px;
  align-items:center;
  justify-content:center;
  padding:10px 12px;
  border-radius:12px;
  background:#25D366;
  color:#fff;
  font-weight:900;
  text-decoration:none;
}
.panel-whats:hover{ filter: brightness(.95); }

/* ====== Section Head ====== */
.section-head{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
  flex-wrap:wrap;
}
.section-title{
  font-size:20px;
  font-weight:1000;
}
.section-subtitle{
  font-size:13px;
  color:#6b7280;
  margin-top:4px;
}
.section-link{
  display:inline-flex;
  gap:10px;
  align-items:center;
  font-weight:900;
  color:#0f172a;
  text-decoration:none;
}
.section-link:hover{ color: var(--green2); }

/* ====== Product Cards ====== */
.product-card{
  background: var(--card);
  border:1px solid var(--border);
  border-radius:16px;
  overflow:hidden;
  box-shadow: 0 1px 0 rgba(0,0,0,.03);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.product-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  border-color: rgba(22,163,74,.25);
}

.badge-row{
  position:absolute;
  top:10px;
  left:10px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  z-index:2;
}
.badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border-radius:999px;
  font-size:11px;
  font-weight:900;
  border:1px solid rgba(0,0,0,.06);
  box-shadow: 0 6px 14px rgba(0,0,0,.10);
}
.badge-offer{ background: var(--ml); color:#111; }
.badge-in{ background:#dcfce7; color:#065f46; }
.badge-low{ background:#ffedd5; color:#7c2d12; }
.badge-out{ background:#fee2e2; color:#7f1d1d; }

.img-container{
  height: 250px;            /* MÁS GRANDE para confianza */
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  border-bottom:1px solid var(--border);
}
.img-container img{
  max-height: 230px;
  max-width: 92%;
  object-fit: contain;
}

.card-price{
  font-size: 28px;
  font-weight: 1000;
  color:#111827;
  letter-spacing: -0.2px;
}
.mini-pill{
  background: rgba(22,163,74,.10);
  color: var(--green2);
  font-size:11px;
  font-weight:900;
  padding:4px 8px;
  border-radius:999px;
  border:1px solid rgba(22,163,74,.15);
}

.meta-row{
  margin-top:6px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.ship-free{
  color: var(--green2);
  font-size:12px;
  font-weight:900;
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.ship-normal{
  color:#374151;
  font-size:12px;
  font-weight:800;
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.rating{
  font-size:12px;
  font-weight:900;
  color:#111827;
  display:inline-flex;
  gap:6px;
  align-items:center;
}
.rating i{ color:#f59e0b; }

.card-title{
  margin-top:10px;
  font-size:14px;
  font-weight:900;
  color:#111827;
  line-height:1.2;
}

.cta-row{
  margin-top:12px;
  display:flex;
  gap:10px;
}
.btn-buy{
  flex:1;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:10px 12px;
  border-radius:12px;
  background: var(--green2);
  color:#fff;
  font-weight:1000;
  border:1px solid rgba(0,0,0,.05);
}
.btn-buy:hover{ filter: brightness(.95); }
.btn-cart{
  width:48px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  background:#fff;
  border:1px solid var(--border);
  color:#111827;
  font-weight:1000;
}
.btn-cart:hover{ background:#f9fafb; }
.btn-buy:disabled,
.btn-cart:disabled{
  opacity:.45;
  cursor:not-allowed;
}

.trust-mini{
  margin-top:10px;
  display:flex;
  gap:12px;
  font-size:11px;
  color:#6b7280;
  font-weight:800;
}
.trust-mini i{ color: var(--green); }

.price-wrap{
  min-height: 54px;
}

/* ====== Pagination ====== */
.pagination{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.page{
  background:#fff;
  border:1px solid var(--border);
  border-radius:12px;
  padding:8px 12px;
  font-weight:900;
  color:#374151;
  text-decoration:none;
}
.page:hover{ border-color: rgba(22,163,74,.25); }
.page-active{
  background: #fff;
  color: var(--green2);
  border-color: rgba(22,163,74,.35);
  box-shadow: 0 8px 18px rgba(22,163,74,.10);
}

/* ====== Drawer Filters ====== */
.filter-btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:12px 14px;
  border-radius:12px;
  background:#0f172a;
  color:#fff;
  font-weight:1000;
}
.filter-btn:hover{ filter: brightness(.95); }

.drawer{
  position:fixed;
  inset:0;
  background: rgba(0,0,0,.45);
  z-index: 80;
  display:flex;
  justify-content:flex-end;
}
.drawer-panel{
  width: min(420px, 92vw);
  height: 100%;
  background:#fff;
  border-left:1px solid var(--border);
  box-shadow: -20px 0 60px rgba(0,0,0,.25);
  display:flex;
  flex-direction:column;
}
.drawer-head{
  padding:14px 14px;
  border-bottom:1px solid var(--border);
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.drawer-close{
  width:40px;
  height:40px;
  border-radius:12px;
  border:1px solid var(--border);
}
.drawer-body{
  padding:14px;
  overflow:auto;
}
.drawer-section{ margin-bottom:18px; }
.drawer-title{
  font-weight:1000;
  color:#111827;
  margin-bottom:10px;
}
.drawer-chips{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.dchip{
  padding:10px 12px;
  border-radius:999px;
  border:1px solid var(--border);
  background:#fff;
  font-size:12px;
  font-weight:900;
  color:#374151;
  text-decoration:none;
}
.dchip-active{
  border-color: rgba(22,163,74,.35);
  background: rgba(22,163,74,.08);
  color: var(--green2);
}
.drawer-trust{
  display:flex;
  flex-direction:column;
  gap:10px;
  color:#374151;
  font-size:13px;
  font-weight:700;
}
.drawer-trust i{ color: var(--green); }
.drawer-whats{
  margin-top:6px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 12px;
  border-radius:12px;
  background:#25D366;
  color:#fff;
  font-weight:1000;
  text-decoration:none;
}
.drawer-actions{
  display:flex;
  gap:10px;
  margin-top:10px;
}
.btn-clear{
  flex:1;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 12px;
  border-radius:12px;
  background:#fff;
  border:1px solid var(--border);
  font-weight:1000;
  text-decoration:none;
  color:#111827;
}
.btn-done{
  flex:1;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 12px;
  border-radius:12px;
  background: var(--green2);
  color:#fff;
  font-weight:1000;
}
.btn-done:hover{ filter:brightness(.95); }

/* ====== Modal extras ====== */
.mini-box{
  background:#fff;
  border:1px solid var(--border);
  padding:10px 10px;
  border-radius:12px;
  font-weight:900;
  color:#374151;
  display:flex;
  gap:8px;
  align-items:center;
}
.mini-box i{ color: var(--green); }

/* ====== Footer ====== */
.footer{
  background: linear-gradient(135deg, #0b1220, #0a2f1f);
}

/* Responsive tweaks */
@media (max-width: 640px){
  .img-container{ height: 240px; }
  .card-price{ font-size: 26px; }
}