/* Digital Shop: dos variantes (A oscura, B clara) con la misma estructura */
body.shop { --bg: var(--night); --bg-2: var(--night-2); --line: var(--night-line); --tx: #e8f0ff; --tx-2: #a9b7d2; --edge: var(--neon); background: var(--bg); color: var(--tx); }
body.shop.light { --bg: var(--paper); --bg-2: var(--paper-2); --line: var(--mist); --tx: var(--graphite); --tx-2: var(--ink-2); --edge: var(--neon); }

.s-hero { padding: clamp(40px, 7vw, 92px) 0 clamp(24px, 4vw, 48px); position: relative; overflow: hidden; }
.dark .s-hero::before { content: ""; position: absolute; inset: 0; background:
  radial-gradient(60% 70% at 85% 20%, #1b4a8a55, transparent 70%),
  linear-gradient(var(--night-line) 1px, transparent 1px) 0 0 / 56px 56px,
  linear-gradient(90deg, var(--night-line) 1px, transparent 1px) 0 0 / 56px 56px;
  opacity: .5; -webkit-mask-image: linear-gradient(#000, transparent 85%); mask-image: linear-gradient(#000, transparent 85%); }
.s-hero .wrap { position: relative; }
.s-hero img.logo { height: clamp(44px, 7vw, 76px); width: auto; margin-bottom: 26px; }
.s-hero h1 { font: 400 clamp(1.9rem, 4.6vw, 3.6rem)/1.08 var(--f-display); letter-spacing: -.02em; margin: 0 0 14px; max-width: 20ch; }
.s-hero p { color: var(--tx-2); font-size: 1.12rem; max-width: 52ch; margin: 0 0 28px; }

.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills a { text-decoration: none; padding: 9px 16px; border-radius: 999px; font-weight: 600; font-size: .92rem; border: 1px solid var(--line); color: var(--tx-2); }
.pills a[aria-current] { background: var(--edge); border-color: var(--edge); color: #04121f; }
.pills a:not([aria-current]):hover { border-color: var(--edge); color: var(--tx); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; padding: 28px 0 clamp(56px, 8vw, 100px); }
@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .grid { grid-template-columns: 1fr; } }

.card { background: var(--bg-2); border: 1px solid var(--line); border-radius: 18px; padding: 26px 24px 22px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; transition: transform .25s, border-color .25s, box-shadow .25s; }
.card:hover { transform: translateY(-5px); border-color: var(--edge); box-shadow: 0 18px 40px -18px color-mix(in srgb, var(--edge) 55%, transparent); }
.card h3 { font: 600 1.12rem/1.25 var(--f-body); margin: 6px 0 0; }
.card .cat { color: var(--tx-2); font-size: .88rem; }
.card .row { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 14px; }
.card .p { font: 400 1.1rem var(--f-tech); letter-spacing: .02em; }
.card .add { font-weight: 700; font-size: .9rem; padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--edge); color: var(--edge); background: transparent; cursor: pointer; font-family: var(--f-body); }
.light .card .add { color: var(--neon-deep); border-color: var(--neon-deep); }
.card .add:hover { background: var(--edge); color: #04121f; }
.badge { position: absolute; top: 12px; left: 12px; font: 400 .62rem var(--f-tech); letter-spacing: .08em; padding: 6px 9px; border-radius: 6px; background: var(--edge); color: #04121f; z-index: 2; }

/* ---------- La caja ---------- */
.stage { position: relative; height: 250px; display: grid; place-items: center; margin: -6px -6px 6px; border-radius: 12px; }
.dark .stage { background: radial-gradient(70% 70% at 50% 55%, #17305c, transparent 75%); }
.light .stage { background: radial-gradient(70% 60% at 50% 70%, #cfe8fa, transparent 75%); }
.box { position: relative; width: 150px; height: 200px; margin-right: 26px; filter: drop-shadow(0 16px 12px rgba(0,0,0,.35)); transition: transform .35s; }
.card:hover .box { transform: translateY(-6px) rotate(-1.5deg); }
.box .front { position: absolute; inset: 0; border-radius: 6px 4px 4px 6px; padding: 14px 12px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.box .front::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255,255,255,.22), transparent 38%); pointer-events: none; }
.box .side { position: absolute; top: 0; left: 100%; width: 26px; height: 100%; transform-origin: 0 0; transform: skewY(-26deg); border-radius: 0 4px 4px 0; }
.box .mark { width: 30px; height: auto; }
.box .t { font: 400 .82rem/1.15 var(--f-tech); letter-spacing: .03em; text-transform: uppercase; word-break: break-word; }
.box .sub { font: 600 .66rem var(--f-body); letter-spacing: .08em; opacity: .85; }
.box .edge-glow { position: absolute; inset: auto 6px -2px 6px; height: 3px; border-radius: 3px; background: var(--neon); box-shadow: 0 0 16px 3px var(--neon); }

/* categorías (dentro de la paleta de la marca) */
.c-sub .front { background: linear-gradient(160deg, #2b6cd1, #123b82); color: #fff; } .c-sub .side { background: #0d2c63; }
.c-cur .front { background: linear-gradient(160deg, #3b4a66, #1b2336); color: #eaf1ff; } .c-cur .side { background: #11192b; }
.c-sof .front { background: linear-gradient(160deg, #19a6c9, #0a5f86); color: #fff; } .c-sof .side { background: #07435f; }
.c-rec .front { background: linear-gradient(160deg, #6f7f9a, #3e4a60); color: #fff; } .c-rec .side { background: #2c3546; }
.light .c-sub .front { background: linear-gradient(160deg, #ffffff, #cfd6e2); color: #123b82; } .light .c-sub .side { background: #aab4c6; }
.light .c-cur .front { background: linear-gradient(160deg, #ffffff, #d9dde5); color: #1b2336; } .light .c-cur .side { background: #b3bac8; }
.light .c-sof .front { background: linear-gradient(160deg, #ffffff, #c9e9f7); color: #0a5f86; } .light .c-sof .side { background: #9fc6d9; }
.light .c-rec .front { background: linear-gradient(160deg, #ffffff, #d7dbe3); color: #3e4a60; } .light .c-rec .side { background: #aeb5c2; }
.light .box { filter: drop-shadow(0 18px 14px rgba(30,60,100,.22)); }

/* ---------- Entrega ---------- */
.deliver { border-top: 1px solid var(--line); background: var(--bg-2); padding: clamp(44px, 6vw, 80px) 0; }
.deliver h2 { font: 400 clamp(1.6rem, 3vw, 2.3rem)/1.15 var(--f-display); margin: 0 0 28px; letter-spacing: -.01em; }
.deliver ol { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: d; }
.deliver li { counter-increment: d; border-left: 2px solid var(--edge); padding-left: 18px; }
.deliver li::before { content: counter(d); font: 400 .8rem var(--f-tech); color: var(--edge); display: block; margin-bottom: 6px; }
.deliver li strong { display: block; margin-bottom: 4px; }
.deliver li span { color: var(--tx-2); }
@media (max-width: 760px) { .deliver ol { grid-template-columns: 1fr; } }
.light .deliver li::before { color: var(--neon-deep); }

/* CategorÃ­as como tarjetas + buscador */
.cat-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 28px; margin-bottom: 22px; }
.cat-head .eyebrow { display: block; font: 600 .78rem var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--neon); margin-bottom: 6px; }
.cat-head h2 { margin: 0; }
.finder { position: relative; display: block; width: min(340px, 100%); }
.finder svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--tx-2); pointer-events: none; }
.finder input { width: 100%; padding: 12px 16px 12px 42px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-2); color: var(--tx); font: inherit; font-size: .96rem; }
.finder input::placeholder { color: var(--tx-2); } .finder input:focus { outline: 0; border-color: var(--edge); box-shadow: 0 0 0 3px rgba(47,182,255,.22); }
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cc { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-areas: "i n" "t t" "m m"; gap: 10px 12px; align-items: center; text-align: left; padding: 18px 18px 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg-2); color: var(--tx); font: inherit; cursor: pointer; overflow: hidden; transition: transform .25s, border-color .25s, box-shadow .25s, background .25s; }
.cc:hover { transform: translateY(-3px); border-color: var(--edge); box-shadow: 0 10px 28px rgba(47,182,255,.14); }
.cc[aria-pressed="true"] { border-color: var(--edge); background: linear-gradient(160deg, rgba(47,182,255,.16), var(--bg-2) 70%); box-shadow: 0 0 0 1px var(--edge), 0 12px 30px rgba(47,182,255,.18); }
.ci { grid-area: i; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: rgba(47,182,255,.12); color: var(--edge); }
.cn2 { grid-area: n; display: grid; gap: 2px; } .cn2 b { font-size: 1.02rem; } .cn2 small { color: var(--tx-2); font-size: .84rem; line-height: 1.35; }
.ct { grid-area: t; font: 600 .78rem var(--f-body); letter-spacing: .06em; text-transform: uppercase; color: var(--edge); }
.cm { grid-area: m; display: flex; margin-top: 2px; height: 64px; } .cm img { height: 64px; width: auto; margin-right: -14px; filter: drop-shadow(0 6px 8px rgba(0,0,0,.5)); transition: transform .3s; } .cc:hover .cm img { transform: translateY(-4px); } .cc:hover .cm img:nth-child(2) { transition-delay: .04s; } .cc:hover .cm img:nth-child(3) { transition-delay: .08s; }
.status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 22px 0 0; color: var(--tx-2); font-size: .95rem; scroll-margin-top: 84px; }
.status button { background: none; border: 0; padding: 0; color: var(--edge); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
@media (max-width: 960px) { .cats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .cats { grid-template-columns: 1fr; } .cm, .cm img { height: 52px; } }


/* Celular: categorías compactas, de dos en dos (sin descripción ni imágenes) */
@media (max-width: 520px) {
  .cats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cc { grid-template-columns: 1fr; grid-template-areas: "i" "n" "t"; padding: 14px; gap: 8px; }
  .cc .cm, .cn2 small { display: none; }
  .ci { width: 36px; height: 36px; }
  .cn2 b { font-size: .98rem; }
}
