:root{
  --bg:#0b0b0c;
  --card:#151518;
  --fg:#f5f7fb;
  --muted:#a6adbb;
  --acc:#6ea8fe;
  --line:#1e1e22;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }

body{
  margin:0;
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto;
  background:var(--bg);
  color:var(--fg);
}

a{ color:inherit; text-decoration:none; }

.wrap{
  width:100%;
  max-width:1280px;
  margin:0 auto;
  padding:20px;
}

/* header */
.site-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:10px 0;
  border-bottom:1px solid var(--line);
  background:rgba(11,11,12,.85);
  backdrop-filter: blur(6px);
}

.brand{ display:flex; align-items:center; gap:10px; min-width:180px; }
.logo{ width:32px; height:32px; }

.shop-nav{
  display:flex;
  gap:18px;
  margin-left:auto;
  align-items:center;
}
.shop-nav a{ color:var(--muted); }
.shop-nav a:hover{ color:#fff; }

/* ===== ESPACIADO ENTRE SECCIONES (Productos / Envíos / FAQ) ===== */
.section{
  margin-top: 60px;
}
.section h2{
  margin: 0 0 18px;
}


/* hero */
.hero{ margin-top:18px; }
.hero-card{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:18px;
  padding:22px;
  border-radius:18px;
  border:1px solid #222;
  background:
    radial-gradient(120% 120% at 20% 10%, rgba(110,168,254,.16) 0%, rgba(21,21,24,.60) 55%),
    rgba(21,21,24,.55);
}

.hero h1{
  margin:10px 0 8px;
  font-size:42px;
  line-height:1.05;
}
.hero-actions{ display:flex; gap:10px; flex-wrap:wrap; margin-top:14px; }

.hero-preview{
  border-radius:16px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.03);
  padding:12px;
}

.preview-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:10px;
}
.preview-grid img{
  width:100%;
  aspect-ratio:3/4;
  object-fit:cover;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
}

/* products */
.products-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:18px;
}

.product{
  border-radius:18px;
  border:1px solid #222;
  background:#101013;
  overflow:hidden; /* cards limpias */
}

.product-top{
  position:relative;
  padding:12px;
}

.product-main{
  width:100%;
  aspect-ratio: 3/4;
  object-fit:cover;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  display:block;
}

.thumbs{
  display:grid;
  grid-template-columns: repeat(5, 1fr); /* 5 miniaturas */
  gap:10px;
  margin-top:12px;
}

.thumb{
  width:100%;
  aspect-ratio:1/1;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  overflow:hidden;
  cursor:pointer;
  opacity:.85;
  background:transparent;
  padding:0;
}

.thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.thumb.is-active{
  border-color: rgba(110,168,254,.75);
  opacity:1;
}
.thumb:focus-visible{
  outline: 2px solid rgba(110,168,254,.85);
  outline-offset: 2px;
}

.product-info{
  padding:14px 14px 16px;
}
.product-title{
  margin:0;
  font-weight:900;
  font-size:16px;
}
.product-desc{
  margin:6px 0 0;
  font-size:13px;
  color:var(--muted);
  line-height:1.35;
}

.seller-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-top:10px;
  flex-wrap:wrap;
}
.seller{
  font-size:12px;
  color:var(--muted);
  opacity:.92;
}

.price-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:14px;
}
.price{
  font-weight:900;
  font-size:16px;
}
.meta-lines{ margin-top:6px; display:grid; gap:4px; }
.unit{ font-size:13px; font-weight:900; color:#fff; }
.small{ font-size:12px; color:var(--muted); }

/* Tip */
.buy-note{
  margin:12px 0 0;
  font-size:12px;
  color: var(--muted);
  line-height:1.4;
}
.buy-note strong{ color:#fff; }

/* ===== Premium action bar ===== */
.actions-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:14px;
}

/* Botón Comprar (compacto y premium) */
.btn-primary{
  display:inline-flex;
  align-items:center;
  gap:10px;
  height:42px;              /* 🔥 compacto */
  padding:0 14px;           /* 🔥 compacto */
  border-radius:14px;
  font-weight:900;
  letter-spacing:.2px;
  background: linear-gradient(135deg, rgba(110,168,254,1), rgba(79,141,253,1));
  color:#041016;
  border:1px solid rgba(255,255,255,.08);
  box-shadow: 0 14px 36px rgba(0,0,0,.45);
  line-height:1;
  white-space:nowrap;
  cursor:pointer;
}

.btn-primary:hover{
  filter: brightness(1.03);
}

.btn-primary:focus-visible{
  outline: 2px solid rgba(110,168,254,.85);
  outline-offset: 3px;
}

.btn-icon{ width:18px; height:18px; display:inline-flex; }
.btn-icon .svg{ width:18px; height:18px; }

.btn-caret{ opacity:.8; margin-left:2px; }

.btn-badge{
  font-size:12px;
  font-weight:900;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(0,0,0,.18);
}

/* Mini icon buttons (WA / IG) */
.mini-actions{
  display:flex;
  gap:10px;
  align-items:center;
}

.mini-btn{
  width:42px;              /* 🔥 compacto */
  height:42px;             /* 🔥 compacto */
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:14px;
  background: rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.12);
}

.mini-btn:hover{
  border-color: rgba(110,168,254,.40);
  background: rgba(110,168,254,.08);
}

.mini-btn .svg{
  width:20px;
  height:20px;
}

/* ===== Floating menu (se monta en body desde JS) ===== */
.buy-pop{
  position:fixed;
  z-index:9999;
  background: rgba(16,16,19,.96);
  border:1px solid rgba(255,255,255,.12);
  border-radius:16px;
  padding:10px;
  box-shadow: 0 24px 80px rgba(0,0,0,.65);
  backdrop-filter: blur(12px);
}

.buy-pop-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.02);
}

.buy-pop-item:hover{
  background: rgba(110,168,254,.10);
  border-color: rgba(110,168,254,.25);
}

.buy-pop-title{
  font-weight:900;
}

.buy-pop-sub{
  font-size:12px;
  color: var(--muted);
  white-space:nowrap;
}

/* Combo highlight */
.product.is-combo{
  border-color: rgba(110,168,254,.28);
  box-shadow: 0 18px 70px rgba(110,168,254,.10);
}
.product.is-combo .product-title{
  font-size:17px;
}

/* responsive */
@media (max-width:1100px){
  .products-grid{ grid-template-columns: repeat(2, 1fr); }
  .hero-card{ grid-template-columns: 1fr; }
  .hero h1{ font-size:34px; }
}

@media (max-width:600px){
  .shop-nav{ display:none; }
  .products-grid{ grid-template-columns: 1fr; }
  .hero h1{ font-size:28px; }

  .actions-bar{
    flex-direction:column;
    align-items:stretch;
    gap:10px;
  }
  .btn-primary{
    width:100%;
    justify-content:center;
  }
  .mini-actions{
    width:100%;
    justify-content:center;
  }
}

@media (max-width:600px){
  .thumbs{
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ===== ENVÍOS PREMIUM ===== */

#envios .card{
  background: linear-gradient(
    145deg,
    rgba(110,168,254,.12),
    rgba(21,21,24,.85)
  );
  border:1px solid rgba(110,168,254,.25);
  box-shadow: 0 25px 60px rgba(0,0,0,.55);
  border-radius:20px;
}

#envios h2{
  position:relative;
  display:inline-block;
}

#envios h2::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-6px;
  width:60%;
  height:3px;
  border-radius:999px;
  background:linear-gradient(90deg,var(--acc),transparent);
}

#envios .bullets li{
  margin:12px 0;
  padding-left:8px;
  position:relative;
}

#envios .bullets li::marker{
  color:var(--acc);
}

/* ===== FAQ MISMO ESTILO QUE ENVÍOS ===== */

#envios{
  margin-bottom: 70px;
}

#faq .faq{
margin-top: 20px;
  margin-bottom: 70px; /* espacio antes del footer */
}

#faq .card{
  background: linear-gradient(
    145deg,
    rgba(110,168,254,.10),
    rgba(21,21,24,.90)
  );
  border:1px solid rgba(110,168,254,.25);
  border-radius:20px;
  padding:18px 20px;
  box-shadow: 0 25px 60px rgba(0,0,0,.55);
  transition: all .25s ease;
}

#faq .card + .card{
  margin-top:14px; /* separación entre preguntas */
}

#faq summary{
  font-weight:800;
  font-size:15px;
  cursor:pointer;
  list-style:none;
  position:relative;
  padding-right:22px;
}

#faq summary::-webkit-details-marker{
  display:none;
}

#faq summary::after{
  content:"+";
  position:absolute;
  right:0;
  color:var(--acc);
  font-weight:900;
  transition: transform .2s ease;
}

#faq details[open] summary::after{
  content:"–";
}

#faq details p{
  margin-top:12px;
  color:var(--muted);
  line-height:1.5;
}
