/* =========================================================
   BLESSED7 — APP.CSS (REDESIGN A — GLASS + SOFT NEON)
   - Desktop & Mobile con cambios visibles
   - Mantiene clases actuales (compat JS/HTML)
   - Catálogo 2 cols móvil
   - Cards “new look”: border glow + price tag
   - Gallery modal FIX (panel estable + CTAs siempre visibles)
   - Carrito drawer pro + confirm modal + admin login
   ========================================================= */

/* ============== TOKENS ============== */
:root{
  --bg0:#07060b;
  --bg1:#0b0714;

  --panel: rgba(255,255,255,.06);
  --panel2: rgba(255,255,255,.08);
  --line: rgba(255,255,255,.12);
  --line2: rgba(255,255,255,.18);

  --txt: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.66);
  --muted2: rgba(255,255,255,.52);

  --p1:#7c3aed;
  --p2:#a855f7;
  --p3:#22d3ee;

  --r: 18px;

  --shadow: 0 22px 70px rgba(0,0,0,.42);
  --shadow2: 0 14px 44px rgba(0,0,0,.35);

  --font-main: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --font-title: "Bebas Neue", sans-serif;

  --ease: cubic-bezier(.2,.8,.2,1);
}

/* ============== RESET / BASE ============== */
*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; font-family:var(--font-main); }
html{
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
  color-scheme: dark;
  overflow-anchor:none;
}
body{
  color:var(--txt);
  background:
    radial-gradient(1200px 700px at 14% 12%, rgba(124,58,237,.38), transparent 62%),
    radial-gradient(900px 600px at 82% 22%, rgba(34,211,238,.16), transparent 60%),
    radial-gradient(900px 600px at 50% 100%, rgba(168,85,247,.22), transparent 55%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  overflow-x:hidden;
}
a{ color:inherit; text-decoration:none; }
button,input,textarea{ font-family:inherit; }
img{ max-width:100%; display:block; }
a,button{ -webkit-tap-highlight-color: transparent; }
:target{ scroll-margin-top: 84px; }

/* wrapper “bg” lo usas en body class */
.bg{
  min-height:100vh;
  color:var(--txt);
  background:
    radial-gradient(1200px 700px at 14% 12%, rgba(124,58,237,.38), transparent 62%),
    radial-gradient(900px 600px at 82% 22%, rgba(34,211,238,.16), transparent 60%),
    radial-gradient(900px 600px at 50% 100%, rgba(168,85,247,.22), transparent 55%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
}

/* contenedor */
.wrap{
  width:min(1160px, 92vw);
  margin:0 auto;
}

/* ============== UTILIDADES ============== */
.title-gradient{
  background: linear-gradient(90deg, var(--p3), var(--p2), var(--p1));
  -webkit-background-clip:text;
  background-clip:text;
  color: transparent;
}
.subtitle-glow{
  color: rgba(255,255,255,.80);
  text-shadow: 0 0 18px rgba(168,85,247,.24), 0 0 32px rgba(124,58,237,.18);
}
.muted{ margin:0; color:var(--muted); }

/* ============== TOPBAR (REDESIGN) ============== */
.topbar{
  position: sticky;
  top:0;
  z-index: 50;
  background: rgba(10,8,16,.60);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.topbar::before{
  content:"";
  position:absolute;
  left:0; right:0; top:0;
  height:2px;
  background: linear-gradient(90deg, rgba(34,211,238,.0), rgba(34,211,238,.55), rgba(168,85,247,.55), rgba(124,58,237,.0));
  opacity:.7;
  pointer-events:none;
}
.topbar__inner{
  height:66px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.brand{ display:flex; align-items:center; gap:12px; }
.brand__dot{
  width:12px; height:12px; border-radius:999px;
  background: radial-gradient(circle at 30% 30%, #fff, rgba(255,255,255,.2) 18%, transparent 38%),
              linear-gradient(135deg, var(--p1), var(--p2), var(--p3));
  box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset,
              0 0 26px rgba(168,85,247,.45);
}
.brand__name{
  font-family: var(--font-title);
  letter-spacing:.12em;
  font-size: 22px;
  line-height:1;
  text-transform: uppercase;
}

.nav{ display:flex; gap:14px; align-items:center; }
.nav a{
  font-size: 12px;
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 999px;
  border:1px solid transparent;
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.nav a:hover{
  color: var(--txt);
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.10);
}

/* ============== BOTONES (REDESIGN) ============== */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 10px 14px;
  border-radius: 14px;             /* 👈 ya no “pill” siempre */
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  color: var(--txt);
  font-size: 13px;
  font-weight: 900;
  min-height: 42px;
  cursor:pointer;
  user-select:none;
  transition: transform .15s var(--ease), filter .15s var(--ease), background .15s var(--ease), border-color .15s var(--ease);
}
.btn:hover{
  background: rgba(255,255,255,.07);
  transform: translateY(-1px);
}
.btn:active{ transform: translateY(0px) scale(.99); }

.btn--ghost{
  background: rgba(255,255,255,.03);
  border-color: rgba(255,255,255,.12);
}
.btn--primary{
  border-color: transparent;
  color:#fff;
  background: linear-gradient(135deg, var(--p1), var(--p2));
  box-shadow: 0 16px 46px rgba(124,58,237,.25);
}
.btn--primary:hover{ filter: brightness(1.06); }
.btn--dark{
  background: rgba(0,0,0,.30);
  border-color: rgba(255,255,255,.12);
}
.btn--disabled{ opacity:.45; pointer-events:none; }

/* ============== HERO (REDESIGN) ============== */
.hero{
  position:relative;
  padding: 90px 0 66px;
  min-height: 560px;
  display:flex;
  align-items:center;
  border-radius: 28px;
  overflow:hidden;
  margin-top: 22px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  box-shadow: var(--shadow);
}
.heroBg{ position:absolute; inset:0; z-index:0; }
.heroBg img{
  width:100%;
  height:100%;
  object-fit: cover;
  object-position: 72% 40%;
  transform: scale(1.08);
  filter: saturate(1.12) contrast(1.06);
}
.heroShade{
  position:absolute; inset:0; z-index:1;
  background:
    radial-gradient(900px 520px at 18% 40%, rgba(0,0,0,.76), transparent 58%),
    linear-gradient(90deg, rgba(0,0,0,.70), rgba(0,0,0,.20) 60%, rgba(0,0,0,.52));
  pointer-events:none;
}
.heroSpark{
  position:absolute; inset:-40px; z-index:1;
  background:
    radial-gradient(320px 220px at 18% 26%, rgba(34,211,238,.22), transparent 62%),
    radial-gradient(320px 220px at 52% 40%, rgba(168,85,247,.22), transparent 65%),
    radial-gradient(320px 220px at 75% 70%, rgba(124,58,237,.24), transparent 70%);
  filter: blur(14px);
  opacity:.95;
  pointer-events:none;
}
.heroOverlay{
  position:relative;
  z-index:2;
  padding: 26px 28px 28px;
  max-width: 780px;
}
.hero__subtitle{
  margin: 0 0 14px;
  letter-spacing: 3px;
  font-size: 12px;
  text-transform: uppercase;
  color: rgba(255,255,255,.78);
  text-shadow: 0 0 16px rgba(168,85,247,.22);
}
.hero__title{
  margin: 10px 0 14px;
  font-family: var(--font-title);
  font-size: clamp(54px, 6.4vw, 92px);
  line-height: .90;
  letter-spacing: .07em;
  text-transform: uppercase;
  text-shadow: 0 14px 50px rgba(0,0,0,.45);
}
.hero__actions{ display:flex; gap:12px; flex-wrap:wrap; }

/* ============== SECCIONES / HEAD ============== */
.section{ padding: 24px 0 46px; }
.section__head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
}
.h1, .cats__title{
  margin:0 0 8px;
  font-family: var(--font-title);
  letter-spacing:.10em;
  font-size: 36px;
  line-height:1;
  text-transform: uppercase;
}

/* ============== COLECCIONES (HC slider) ============== */
.hcHead{ display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:10px; }

.hcTrack{
  display:flex;
  gap:14px;
  overflow-x:auto;
  scroll-behavior:smooth;
  padding: 8px 2px 12px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.hcTrack::-webkit-scrollbar{ height:8px; }
.hcTrack::-webkit-scrollbar-thumb{ background: rgba(255,255,255,.18); border-radius:999px; }

.hcCard{
  min-width: 260px;
  height: 330px;
  border-radius: 22px;
  position: relative;
  overflow:hidden;
  flex: 0 0 auto;
  cursor:pointer;
  border:1px solid rgba(255,255,255,.10);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow2);
}
.hcCard::after{
  content:"";
  position:absolute; inset:0;
  background: radial-gradient(520px 240px at 20% 20%, rgba(34,211,238,.18), transparent 55%),
              radial-gradient(520px 240px at 80% 80%, rgba(168,85,247,.14), transparent 55%);
  opacity:.9;
  pointer-events:none;
}
.hcOverlay{
  position:absolute; inset:0;
  display:flex; flex-direction:column; justify-content:flex-end;
  padding: 16px;
  background: linear-gradient(to top, rgba(0,0,0,.80), rgba(0,0,0,.18), transparent);
  color:#fff;
  z-index:1;
}
.hcPill{
  align-self:flex-start;
  padding: 7px 11px;
  border-radius: 12px;
  background: rgba(0,0,0,.45);
  border: 1px solid rgba(255,255,255,.18);
  font-size: 12px;
  margin-bottom: 10px;
}
.hcCardTitle{ font-size:18px; font-weight:1000; letter-spacing:.2px; }
.hcCardDesc{ margin-top:6px; font-size:13px; opacity:.92; line-height:1.35; }

.hcNav{
  width: 42px; height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.24);
  color: rgba(255,255,255,.92);
  display:flex; align-items:center; justify-content:center;
  cursor:pointer;
  backdrop-filter: blur(12px);
  user-select:none;
  transition: background .15s var(--ease), transform .15s var(--ease);
}
.hcNav span{ font-size: 20px; font-weight: 900; line-height:1; }
.hcNav:hover{ background: rgba(0,0,0,.34); transform: translateY(-1px); }
.hcNav:active{ transform: translateY(0px) scale(.99); }

.bottom-actions{ margin-top:14px; display:flex; gap:10px; flex-wrap:wrap; }
.pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  font-size:12px;
  font-weight:900;
  min-height:42px;
}
.pill--outline{ background: transparent; }

/* ============== FILTROS (REDESIGN) ============== */
.filters{ margin:16px 0 18px; display:flex; gap:10px; flex-wrap:wrap; }
.chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 14px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  font-size:12px;
  font-weight:1000;
  color: rgba(255,255,255,.75);
  cursor:pointer;
  min-height:42px;
  transition: transform .14s var(--ease), background .14s var(--ease), border-color .14s var(--ease);
  user-select:none;
}
.chip:hover{
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.20);
  transform: translateY(-1px);
  color: rgba(255,255,255,.90);
}
.chip--active{
  background: linear-gradient(135deg, rgba(34,211,238,.28), rgba(168,85,247,.26));
  border-color: rgba(255,255,255,.22);
  color:#fff;
  box-shadow: 0 16px 40px rgba(124,58,237,.18);
}

/* ============== GRID PRODUCTOS ============== */
.grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 16px;
  align-items:start;
  overflow-anchor:none;
}
#grid, .grid{ min-height: 520px; }

/* ============== CARD PRODUCTO (REDESIGN) ============== */
.card{
  border-radius: 22px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.26);
  box-shadow: var(--shadow2);
  transition: transform .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease), filter .18s var(--ease);
  height:auto;
  align-self:start;
  position: relative;
}
.card::before{
  content:"";
  position:absolute;
  inset:-1px;
  border-radius: 22px;
  background: radial-gradient(420px 220px at 20% 10%, rgba(34,211,238,.10), transparent 60%),
              radial-gradient(420px 220px at 90% 90%, rgba(168,85,247,.10), transparent 60%);
  opacity:.9;
  pointer-events:none;
}
.card:hover{
  transform: translateY(-3px);
  border-color: rgba(34,211,238,.26);
  box-shadow: 0 26px 86px rgba(0,0,0,.52);
}

/* media */
.card__media{
  position: relative;
  display:block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    radial-gradient(260px 160px at 25% 25%, rgba(34,211,238,.14), transparent 65%),
    radial-gradient(240px 160px at 78% 60%, rgba(168,85,247,.12), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
}
.card__media img{
  width:100%;
  height:100%;
  object-fit: contain;
  object-position:center;
  background: rgba(0,0,0,.10);
  filter: saturate(1.05) contrast(1.06);
}

/* badges */
.badge{
  position:absolute;
  left:12px; top:12px;
  font-size:11px;
  font-weight:1000;
  padding: 7px 10px;
  border-radius: 12px;
  background: rgba(0,0,0,.45);
  border:1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(10px);
  z-index:2;
}
.badge--right{ right:12px; left:auto; opacity:.9; }

.soldout{
  position:absolute;
  right:12px; top:12px;
  font-size:11px;
  font-weight:1000;
  padding: 7px 10px;
  border-radius: 12px;
  background: rgba(239,68,68,.18);
  border:1px solid rgba(239,68,68,.35);
  backdrop-filter: blur(10px);
  z-index:2;
}

.card__body{ padding: 14px; position:relative; z-index:1; }
.card__top{ display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }

.card__title{
  margin:0;
  font-size: 14px;
  font-weight: 1000;
  letter-spacing: .2px;
  line-height: 1.25;
}
.card__title:hover{ text-shadow: 0 0 14px rgba(168,85,247,.30); }

/* 👇 CAMBIO visible en desktop: precio tipo “tag” (no solo gradient text) */
.card__price{
  font-family: var(--font-title);
  letter-spacing:.08em;
  font-size: 18px;
  line-height: 1;
  padding: 8px 10px;
  border-radius: 14px;
  color: rgba(255,255,255,.96);
  background:
    linear-gradient(135deg, rgba(34,211,238,.18), rgba(168,85,247,.22));
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 12px 34px rgba(0,0,0,.28);
  white-space: nowrap;
}
.priceOld{
  opacity:.75;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  margin-right:10px;
  font-family: var(--font-main);
  font-size: 12px;
  letter-spacing: 0;
  color: rgba(255,255,255,.70);
}

.card__meta{ margin:10px 0 12px; display:flex; gap:8px; flex-wrap:wrap; }
.meta{
  font-size:11px;
  padding: 7px 10px;
  border-radius: 14px;
  background: rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.70);
}

.card__actions{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:space-between;
}

/* Qty + / - */
.qtyAdd{ display:flex; gap:10px; align-items:center; }
.qtyAdd__btn{
  width:44px;
  height:40px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.92);
  font-weight: 1000;
  font-size: 18px;
  cursor:pointer;
  transition: transform .12s var(--ease), background .12s var(--ease), border-color .12s var(--ease), filter .12s var(--ease);
  user-select:none;
}
.qtyAdd__btn:hover{ background: rgba(255,255,255,.08); transform: translateY(-1px); }
.qtyAdd__btn--plus{
  background: linear-gradient(135deg, rgba(34,211,238,.22), rgba(168,85,247,.30));
  border-color: rgba(255,255,255,.18);
  box-shadow: 0 16px 40px rgba(124,58,237,.18);
}
.qtyAdd__btn--plus:hover{ filter: brightness(1.06); }
.qtyAdd__btn:disabled{ opacity:.35; cursor:not-allowed; transform:none; }

.empty{
  grid-column: 1 / -1;
  padding:16px;
  border-radius: 18px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.75);
}

/* ✅ Ocultar Stock en cards */
.card .meta[data-stock],
.card .meta.stock,
.card .meta--stock,
.card [data-role="stock"],
.card .stock,
.card .stockPill{
  display:none !important;
}

/* ============== PROMOS (REDESIGN) ============== */
.promos{
  position: relative;
  padding: 18px 16px 26px;
  border-radius: 28px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  overflow: hidden;
  margin-top: 48px;
  box-shadow:
    0 30px 130px rgba(0,0,0,.55),
    0 0 0 1px rgba(255,255,255,.03) inset,
    0 0 40px rgba(34,211,238,.12),
    0 0 80px rgba(168,85,247,.12),
    0 0 120px rgba(124,58,237,.10);
}
.promos::before{
  content:"";
  position:absolute;
  inset:-2px;
  border-radius: 30px;
  background: linear-gradient(90deg,
    rgba(34,211,238,.70),
    rgba(168,85,247,.70),
    rgba(124,58,237,.70),
    rgba(34,211,238,.70)
  );
  filter: blur(11px);
  opacity: .45;
  animation: neonSweep 5.2s linear infinite;
  pointer-events:none;
}
.promos::after{
  content:"";
  position:absolute;
  inset: 1px;
  border-radius: 26px;
  background:
    radial-gradient(820px 320px at 14% 12%, rgba(34,211,238,.16), transparent 60%),
    radial-gradient(760px 300px at 86% 38%, rgba(168,85,247,.16), transparent 65%),
    rgba(10,8,16,.12);
  pointer-events:none;
}
@keyframes neonSweep{
  0%{ transform: translateX(-10%) rotate(0.001deg); }
  100%{ transform: translateX(10%) rotate(0.001deg); }
}
.promos .section__head{ position: relative; z-index:1; align-items:center; padding:6px 2px 10px; }
.promos .h1{
  position:relative;
  z-index:1;
  margin:0 0 6px;
  text-shadow: 0 0 12px rgba(34,211,238,.16),
              0 0 22px rgba(168,85,247,.16),
              0 0 34px rgba(124,58,237,.14);
}
.promos .h1::after{
  content:"⚡ FLASH";
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-left: 10px;
  padding: 7px 11px;
  border-radius: 14px;
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: .14em;
  color: rgba(255,255,255,.95);
  background: rgba(34,211,238,.14);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 0 0 1px rgba(255,255,255,.04) inset, 0 0 18px rgba(34,211,238,.14);
  transform: translateY(-1px);
}
.promos .muted{ position:relative; z-index:1; color:rgba(255,255,255,.80); }

.promoWrap{ position:relative; }
.promoTrack{
  display:flex;
  gap:14px;
  overflow-x:auto;
  scroll-behavior:smooth;
  padding: 2px 2px 10px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
}
.promoTrack::-webkit-scrollbar{ height:8px; }
.promoTrack::-webkit-scrollbar-thumb{ background:rgba(255,255,255,.18); border-radius:999px; }
.promoTrack .card{ flex: 0 0 auto; width: 270px; scroll-snap-align: start; }

.promoNav{
  position:absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.24);
  color: rgba(255,255,255,.92);
  cursor: pointer;
  backdrop-filter: blur(12px);
  user-select:none;
}
.promoNav:hover{ background: rgba(0,0,0,.34); }
.promoNav--prev{ left: -8px; }
.promoNav--next{ right: -8px; }

.card[data-is-promo="1"]{
  border-color: rgba(34,211,238,.18);
  box-shadow: 0 22px 78px rgba(0,0,0,.55),
              inset 0 0 0 1px rgba(168,85,247,.14);
}
.card[data-is-promo="1"] .badge{
  font-size: 13px;
  font-weight: 1000;
  padding: 8px 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(34,211,238,.30), rgba(168,85,247,.34));
  border: 1px solid rgba(255,255,255,.20);
  color: white;
  box-shadow: 0 10px 30px rgba(124,58,237,.22);
  transform: rotate(-6deg);
}

/* ============== STEPS / BENEFITS / FAQ ============== */
.steps{
  margin-top:14px;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
}
.step{
  padding:16px;
  border-radius: 22px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  box-shadow: 0 18px 50px rgba(0,0,0,.25);
}
.step__num{
  width:36px;height:36px;border-radius: 14px;
  display:flex;align-items:center;justify-content:center;
  font-weight:1000;
  background: linear-gradient(135deg, rgba(34,211,238,.30), rgba(168,85,247,.34));
  border: 1px solid rgba(255,255,255,.14);
}
.step__title{ margin-top:10px; font-weight:1000; }
.step__desc{ margin-top:6px; color:rgba(255,255,255,.70); font-size:13px; line-height:1.35; }

.benefits{
  margin-top:14px;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
}
.benefit{
  padding:16px;
  border-radius: 22px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
}
.benefit__title{ font-weight:1000; }
.benefit__desc{ margin-top:6px; color:rgba(255,255,255,.70); font-size:13px; line-height:1.35; }

.faq{ margin-top:12px; display:flex; flex-direction:column; gap:10px; }
.faq__item{
  width:100%;
  text-align:left;
  padding: 14px 14px;
  border-radius: 22px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.92);
  cursor:pointer;
}
.faq__q{ display:block; font-weight:1000; }
.faq__a{
  display:block;
  margin-top:8px;
  color: rgba(255,255,255,.70);
  font-size:13px;
  line-height:1.35;
  max-height:0;
  overflow:hidden;
  transition: max-height .28s var(--ease);
}
.faq__item.is-open .faq__a{ max-height: 220px; }

/* ============== WHATSAPP FAB ============== */
.wa-fab{
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(34,211,238,.30), rgba(168,85,247,.34));
  color: #fff;
  font-weight: 1000;
  font-size: 13px;
  box-shadow: 0 18px 60px rgba(124,58,237,.25);
  border: 1px solid rgba(255,255,255,.14);
}
.wa-fab:hover{ filter:brightness(1.06); }

/* ============== CARRITO ============== */
.cartBtn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  color: var(--txt);
  cursor:pointer;
  min-height:42px;
  user-select:none;
}
.cartBtn:hover{ background: rgba(255,255,255,.07); }

.cartBtn__badge{
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 12px;
  font-weight: 1000;
  background: linear-gradient(135deg, rgba(34,211,238,.30), rgba(168,85,247,.34));
  border: 1px solid rgba(255,255,255,.14);
}

.cartOverlay{
  position:fixed;
  inset:0;
  background: rgba(0,0,0,.55);
  z-index: 80;
}

.cartDrawer{
  position:fixed;
  top:0; right:0;
  height:100vh;
  width:min(440px, 92vw);
  background: rgba(10,8,16,.90);
  backdrop-filter: blur(18px);
  border-left: 1px solid rgba(255,255,255,.12);
  z-index: 90;
  transform: translateX(102%);
  transition: transform .25s var(--ease);
  display:flex;
  flex-direction:column;
}
.cartDrawer.is-open{ transform: translateX(0); }

.cartHeader{
  padding:14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.cartTitle{
  font-family: var(--font-title);
  letter-spacing: .10em;
  font-size: 22px;
  line-height:1;
  text-transform: uppercase;
}
.cartSub{ color: rgba(255,255,255,.65); font-size:12px; margin-top:2px; }

.cartClose{
  width:38px;height:38px;border-radius: 14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  color: var(--txt);
  cursor:pointer;
  user-select:none;
}
.cartClose:hover{ background: rgba(255,255,255,.07); }

.cartBody{
  padding:14px;
  overflow:auto;
  flex:1;
  min-height:0;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.cartItems{ display:flex; flex-direction:column; gap:12px; }

.cartEmpty{
  padding:14px;
  border-radius: 18px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.75);
}

.cartItem{
  display:grid;
  grid-template-columns: 66px 1fr auto;
  gap:12px;
  padding:12px;
  border-radius: 18px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
}
.cartItem__img{
  width:66px;height:66px;
  border-radius: 16px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.25);
}
.cartItem__img img{ width:100%; height:100%; object-fit: cover; display:block; }
.cartItem__ph{ width:100%; height:100%; background: rgba(0,0,0,.25); }

.cartItem__name{ font-weight:1000; font-size:13px; line-height:1.2; }
.cartItem__price{ color: rgba(255,255,255,.70); font-size:12px; margin-top:4px; }

.cartQty{
  margin-top:10px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 6px 8px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.22);
}
.cartQty__btn{
  width:28px;height:28px;
  border-radius: 12px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  color: var(--txt);
  cursor:pointer;
  user-select:none;
}
.cartQty__btn:hover{ background: rgba(255,255,255,.07); }
.cartQty__num{ min-width:18px; text-align:center; font-weight:1000; }

.cartItem__side{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:8px;
}
.cartRemove{
  width:30px;height:30px;border-radius: 12px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  color: var(--txt);
  cursor:pointer;
  user-select:none;
}
.cartRemove:hover{ background: rgba(255,255,255,.07); }
.cartItem__lineTotal{ font-weight:1000; font-size:12px; color: rgba(255,255,255,.92); }

.cartTotals{
  margin-top:12px;
  padding:12px;
  border-radius: 18px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.22);
}
.cartTotals .row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  color: rgba(255,255,255,.75);
  font-size: 13px;
  padding:4px 0;
}
.cartTotals .row strong{ color: rgba(255,255,255,.92); }
.cartTotals .total{ font-weight:1000; color:#fff; }

.cartForm{
  margin-top:12px;
  padding:12px;
  border-radius: 18px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
}
.cartForm .kicker{
  color: rgba(255,255,255,.70);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.field{
  width:100%;
  margin-top:10px;
  padding:12px 12px;
  border-radius: 16px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.25);
  color: rgba(255,255,255,.92);
  outline: none;
}
.field::placeholder{ color: rgba(255,255,255,.55); }
.field:focus{
  border-color: rgba(34,211,238,.28);
  box-shadow: 0 0 0 4px rgba(34,211,238,.10);
}

.seg{ margin-top:10px; display:flex; gap:10px; }
.seg__btn{
  flex:1;
  padding:10px 12px;
  border-radius: 16px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.22);
  color: rgba(255,255,255,.85);
  font-weight:1000;
  font-size:12px;
  cursor:pointer;
  min-height:42px;
  user-select:none;
}
.seg__btn.is-active{
  background: linear-gradient(135deg, rgba(34,211,238,.22), rgba(168,85,247,.28));
  border-color: rgba(255,255,255,.18);
  color:#fff;
}

.cartFooter{
  padding:14px;
  display:flex;
  gap:10px;
  border-top: 1px solid rgba(255,255,255,.10);
  background: rgba(10,8,16,.74);
}
.cartFooter .btn{ flex:1; }

/* ============== CONFIRM MODAL (Vaciar carrito) ============== */
#b7Confirm{
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
}
#b7Confirm.is-open{ display:block; }

#b7Confirm .b7c-overlay{
  position:absolute; inset:0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(10px);
}
#b7Confirm .b7c-modal{
  position:absolute;
  left:50%; top:50%;
  transform: translate(-50%,-50%) scale(.98);
  width: min(92vw, 380px);
  padding: 18px 16px 16px;
  border-radius: 22px;
  background: rgba(10,8,16,.94);
  border:1px solid rgba(255,255,255,.12);
  box-shadow: 0 34px 90px rgba(0,0,0,.60);
  color: var(--txt);
  text-align:center;
  opacity: 0;
  transition: .18s var(--ease);
}
#b7Confirm.is-open .b7c-modal{
  opacity: 1;
  transform: translate(-50%,-50%) scale(1);
}
.b7c-title{
  font-family: var(--font-title);
  letter-spacing:.10em;
  font-size: 22px;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.b7c-text{
  font-size: 13px;
  color: var(--muted);
  line-height: 1.35;
  margin-bottom: 14px;
}
.b7c-actions{ display:flex; gap:10px; }
.b7c-btn{
  flex:1;
  border-radius: 16px;
  padding: 10px 12px;
  font-weight: 1000;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  color: var(--txt);
  cursor:pointer;
  min-height:42px;
  user-select:none;
}
.b7c-btn:hover{ background: rgba(255,255,255,.07); }
.b7c-danger{
  border: 0;
  color:#fff;
  background: linear-gradient(135deg, rgba(34,211,238,.26), rgba(168,85,247,.32));
  box-shadow: 0 14px 40px rgba(124,58,237,.20);
}
.b7c-danger:hover{ filter: brightness(1.06); }

/* ============== REVEAL (SEGURO) ============== */
.reveal{ opacity:1; transform:none; filter:none; }
html.js .reveal{
  opacity:0;
  transform: translateY(14px);
  filter: blur(6px);
  transition: opacity .6s var(--ease), transform .6s var(--ease), filter .6s var(--ease);
}
html.js .reveal.is-visible{ opacity:1; transform:none; filter:none; }

/* =========================================================
   🔒 LOCK SCROLL (tu JS lo usa para carrito + galería)
   ========================================================= */
html.b7-lock, body.b7-lock{
  overflow: hidden !important;
  height: 100% !important;
}

/* =========================================================
   ✅ GALLERY MODAL — (CLASES .g*)
   Incluye el FIX de “panel no se mueve / CTAs no se esconden”
   ========================================================= */
.gOverlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(10px);
  display: none;
  z-index: 9998;
}
.gModal{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;

  padding: 16px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));

  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;

  /* ✅ evita arrastres raros / zoom issues */
  overflow-x: hidden !important;
  touch-action: pan-y !important;
}
.gOverlay.is-open,
.gModal.is-open{ display:block; }

.gPanel{
  width: min(980px, 96vw);
  margin: 0 auto;
  max-height: calc(100dvh - 32px - env(safe-area-inset-bottom, 0px));
  min-height: 420px;

  border-radius: 26px;
  overflow: hidden;
  background: rgba(16,16,18,.94);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 34px 110px rgba(0,0,0,.60);

  display: grid;
  grid-template-columns: 1.15fr .85fr;
}
.gMedia{ position: relative; min-height: 0; }
.gStage{
  height: 100%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:
    radial-gradient(520px 280px at 25% 25%, rgba(34,211,238,.10), transparent 60%),
    radial-gradient(520px 280px at 80% 80%, rgba(168,85,247,.10), transparent 60%),
    rgba(0,0,0,.30);
}
.gImg{
  display:none;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position:center;
  background: rgba(0,0,0,.22);
}

.gClose{
  position:absolute;
  top: 12px;
  right: 12px;
  z-index:5;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(0,0,0,.35);
  color: #fff;
  font-size: 18px;
  cursor:pointer;
  user-select:none;
}
.gNav{
  position:absolute;
  top:50%;
  transform: translateY(-50%);
  z-index:5;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(0,0,0,.35);
  color: #fff;
  font-size: 18px;
  cursor:pointer;
  user-select:none;
}
.gNav--prev{ left: 12px; }
.gNav--next{ right: 12px; }

.gDots{
  position:absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  color: rgba(255,255,255,.75);
  font-size: 12px;
  pointer-events:none;
  gap: 10px;
}
.gCaption{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  max-width: 70%;
}

.gInfo{
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;

  padding: 18px;
  display:flex;
  flex-direction:column;
  gap: 12px;
}
.gTitle{ color:#fff; font-weight: 1000; font-size: 18px; line-height:1.2; }

.gPriceRow{
  margin-top:8px;
  display:flex;
  gap:10px;
  align-items:baseline;
  flex-wrap:wrap;
}
.gPrice{
  color:#fff;
  font-size: 16px;
  font-weight: 1000;
  padding: 8px 10px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(34,211,238,.18), rgba(168,85,247,.22));
  border: 1px solid rgba(255,255,255,.16);
}
.gOldPrice{
  display:none;
  color: rgba(255,255,255,.55);
  font-size: 14px;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.gPromoBadge{
  display:none;
  font-size: 11px;
  font-weight: 1000;
  padding: 6px 10px;
  border-radius: 14px;
  background: rgba(34,211,238,.12);
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.92);
  letter-spacing: .3px;
}
#galleryStock{ display:none !important; }

.gDescBox{
  margin-top: 10px;
  padding: 12px 12px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.22);
}
.gDescLabel{
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
  font-weight: 900;
  margin-bottom: 6px;
}
.gDesc{
  color: rgba(255,255,255,.82);
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-line;
}

/* Thumbs desktop */
.gThumbs{
  display: grid;
  grid-template-columns: repeat(6, minmax(0,1fr));
  gap: 8px;
  margin-top: 8px;
  padding-bottom: 10px;
}
.gThumbBtn{
  border-radius: 16px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.25);
  cursor:pointer;
  aspect-ratio: 1 / 1;
  padding: 0;
  touch-action: manipulation;
  user-select:none;
}
.gThumbBtn img{
  width:100%;
  height:100%;
  object-fit: contain;
  display:block;
  background: rgba(0,0,0,.18);
}

/* CTAs */
.gCtas{
  margin-top: 10px;
  display:flex;
  gap:10px;
}
.gBtn{
  flex: 1;
  height: 46px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  font-weight: 1000;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  user-select:none;
  -webkit-user-select:none;
  touch-action: manipulation;
}
.gBtn--add{ background:#fff; color:#111; }
.gBtn--wa{ background: rgba(0,0,0,.32); color:#fff; }
.gError{ display:none; margin-top:10px; color:#ffb4b4; font-size:13px; }

/* =========================================================
   ✅ RESPONSIVE
   ========================================================= */
@media (max-width: 1100px){
  .grid{ grid-template-columns: repeat(3, minmax(0,1fr)); }
  .benefits{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1000px){
  .grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .steps{ grid-template-columns: 1fr; }
  .benefits{ grid-template-columns: 1fr 1fr; }
  .hero{ min-height: 470px; padding: 76px 0 50px; }
}

/* 900: mobile behavior */
@media (max-width: 900px){
  .nav{ display:none; }

  .hero{
    min-height: 390px;
    padding: 58px 0 34px;
    border-radius: 20px;
  }
  .heroOverlay{ padding: 14px 14px 18px; }
  .hero__title{ font-size: clamp(34px, 9vw, 56px); }
  .heroBg img{ object-position: 70% 40%; }

  .promoNav{ display:none; }
  .promoTrack .card{ width: 245px; }

  .card__actions{
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px;
  }
  .card__actions .qtyAdd{ flex: 0 0 auto; }
  .card__actions a.btn.btn--ghost{
    flex: 1 0 100%;
    height: 44px;
    border-radius: 16px;
    padding: 10px 14px;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
  }

  .cartDrawer{ height: 100dvh; max-height: 100dvh; }
  .cartBody{
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 120px;
  }
  .cartFooter{
    position: sticky;
    bottom: 0;
    background: rgba(10,8,16,.92);
    backdrop-filter: blur(10px);
  }

  /* Gallery: a 1 col */
  .gPanel{
    grid-template-columns: 1fr;
    max-height: calc(100dvh - 32px - env(safe-area-inset-bottom, 0px));
  }
  .gMedia{ height: 48vh; }
  .gStage{ height: 100%; }

  /* thumbs en móvil: horizontal */
  .gThumbs{
    display:flex;
    gap:10px;
    overflow-x:auto;
    overflow-y:hidden;
    -webkit-overflow-scrolling: touch;
    padding: 10px 2px 10px;
  }
  .gThumbBtn{
    flex: 0 0 86px;
    width: 86px;
    height: 86px;
    aspect-ratio: auto;
    border-radius: 16px;
  }

  /* =========================================================
     ✅ FIX CRÍTICO: CTAs SIEMPRE visibles + panel estable
     (tu problema de “se mueve / se come botones”)
     ========================================================= */
  .gPanel{
    position: relative !important;
    overflow: hidden !important;
    min-height: 0 !important;
  }
  .gMedia{
    height: min(38dvh, 300px) !important;
  }
  .gInfo{
    overflow-y: auto !important;
    min-height: 0 !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px)) !important;
  }
  .gCtas{
    position: sticky !important;
    bottom: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px)) !important;
    background: rgba(16,16,18,.94) !important;
    backdrop-filter: blur(10px) !important;
    border-top: 1px solid rgba(255,255,255,.10) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    z-index: 5 !important;
  }
  .gBtn{
    height: 48px !important;
    border-radius: 16px !important;
  }
}

@media (max-width: 700px){
  .benefits{ grid-template-columns: 1fr; }
}

/* ✅ MÓVIL: 2 columnas */
@media (max-width: 520px){
  .grid{ grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
  .card__media{ aspect-ratio: 4 / 5; }
  .hcCard{ min-width: 230px; height: 310px; }
}

/* Teléfonos mini: 1 columna */
@media (max-width: 360px){
  .grid{ grid-template-columns: 1fr; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  .promos::before{ animation:none !important; }
}

/* =========================
   ADMIN LOGIN (REDESIGN)
   ========================= */
.adminLoginWrap{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  background:
    radial-gradient(1200px 700px at 12% -10%, rgba(34,211,238,.14), transparent 60%),
    radial-gradient(900px 520px at 90% 10%, rgba(168,85,247,.16), transparent 55%),
    #0b0e14;
}
.adminLoginCard{
  width:100%;
  max-width:420px;
  border-radius: 26px;
  padding: 26px 24px 22px;
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(16px);
  border:1px solid rgba(255,255,255,.10);
  box-shadow: 0 34px 110px rgba(0,0,0,.60);
}
.adminLoginBrand{ display:flex; align-items:center; gap:14px; margin-bottom:18px; }
.adminLoginLogo{
  width:56px;
  height:56px;
  border-radius: 18px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:1000;
  font-size:20px;
  letter-spacing:.5px;
  background: linear-gradient(135deg, rgba(34,211,238,.30), rgba(168,85,247,.34));
  color:#fff;
  box-shadow: 0 16px 46px rgba(124,58,237,.22);
  border: 1px solid rgba(255,255,255,.14);
}
.adminLoginTitle{ font-size:20px; font-weight:1000; }
.adminLoginSub{ font-size:13px; opacity:.7; }
.adminLoginError{
  margin:10px 0 14px;
  padding:10px 12px;
  border-radius: 16px;
  background: rgba(239,68,68,.12);
  border:1px solid rgba(239,68,68,.35);
  color:#fecaca;
  font-size:14px;
}
.adminLoginForm{ display:flex; flex-direction:column; gap:14px; }
.adminField{ display:flex; flex-direction:column; gap:6px; }
.adminField label{ font-size:12px; opacity:.7; }
.adminField input{
  height:46px;
  border-radius: 16px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  color:#fff;
  padding:0 14px;
  outline:none;
}
.adminField input:focus{
  border-color: rgba(34,211,238,.28);
  box-shadow:0 0 0 3px rgba(34,211,238,.10);
}
.adminLoginBtn{
  margin-top:6px;
  height:48px;
  border-radius: 18px;
  border:0;
  font-weight:1000;
  letter-spacing:.3px;
  cursor:pointer;
  background: linear-gradient(135deg, rgba(34,211,238,.30), rgba(168,85,247,.34));
  color:#fff;
  box-shadow: 0 16px 46px rgba(124,58,237,.20);
}
.adminLoginBtn:hover{ filter:brightness(1.05); }
.adminLoginFoot{ margin-top:14px; text-align:center; font-size:11px; opacity:.55; }