/* ============================================================
   T-800 Company — Sistema visual eCommerce (index + ventas)
   ============================================================ */
:root {
  --brand: #4f46e5;
  --brand-2: #06b6d4;
  --brand-ink: #312e81;
  --accent: #f59e0b;
  --ok: #15803d;
  --warn: #c2410c;
  --danger: #dc2626;
  --wa: #25d366;

  --bg: #f4f6fb;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --line: #e5e7eb;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;

  --head: #0b1020;
  --head-2: #131a33;
  --head-ink: #e2e8f0;

  --r-sm: 8px;
  --r: 14px;
  --r-lg: 20px;
  --sh-1: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
  --sh-2: 0 10px 30px -12px rgba(15, 23, 42, .25);
  --sh-3: 0 24px 60px -20px rgba(15, 23, 42, .45);
  --wrap: 1320px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select { font: inherit; color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ── Barra de anuncios ───────────────────────────── */
.promo {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  color: #fff; font-size: .8rem; font-weight: 600;
}
.promo .wrap { display: flex; gap: 24px; justify-content: center; align-items: center; padding-top: 7px; padding-bottom: 7px; flex-wrap: wrap; }
.promo span { display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
@media (max-width: 720px) { .promo span:not(:first-child) { display: none; } }

/* ── Cabecera ────────────────────────────────────── */
.hdr { position: sticky; top: 0; z-index: 60; background: var(--head); color: var(--head-ink); box-shadow: 0 2px 14px rgba(0,0,0,.25); }
.hdr-top { display: flex; align-items: center; gap: 18px; padding-top: 12px; padding-bottom: 12px; }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo img { width: 46px; height: 38px; object-fit: cover; object-position: center 15%; border-radius: 8px; background: #000; }
.logo b { display: block; font-weight: 900; letter-spacing: .14em; font-size: 1.05rem; color: #fff; line-height: 1; }
.logo small { display: block; font-size: .6rem; letter-spacing: .3em; color: #94a3b8; margin-top: 3px; }

.search { flex: 1; display: flex; max-width: 680px; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 2px transparent; transition: box-shadow .2s; }
.search:focus-within { box-shadow: 0 0 0 3px var(--brand-2); }
.search select { border: 0; background: #eef2f7; color: var(--ink-2); padding: 0 10px; font-size: .82rem; max-width: 150px; outline: none; }
.search input { flex: 1; min-width: 0; border: 0; padding: 11px 14px; font-size: .95rem; color: var(--ink); outline: none; }
.search button { background: var(--accent); color: #111; padding: 0 18px; display: grid; place-items: center; }
.search button:hover { filter: brightness(1.05); }

.hdr-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.hbtn { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; color: var(--head-ink); font-size: .82rem; line-height: 1.15; position: relative; }
.hbtn:hover { background: rgba(255,255,255,.08); }
.hbtn small { display: block; color: #94a3b8; font-size: .7rem; }
.hbtn strong { font-weight: 700; }
.cart-pin { position: absolute; top: 2px; left: 24px; min-width: 19px; height: 19px; border-radius: 10px; background: var(--accent); color: #111; font-size: .7rem; font-weight: 800; display: grid; place-items: center; padding: 0 5px; }
.cart-pin[data-n="0"] { display: none; }
.cart-pin.bump { animation: bump .45s ease; }
@keyframes bump { 40% { transform: scale(1.45); } }

.lang { display: flex; gap: 2px; background: rgba(255,255,255,.07); border-radius: 999px; padding: 3px; }
.lang button { padding: 4px 9px; border-radius: 999px; font-size: .72rem; font-weight: 700; color: #94a3b8; }
.lang button.on { background: #fff; color: var(--ink); }

.hdr-nav { background: var(--head-2); border-top: 1px solid rgba(255,255,255,.06); }
.hdr-nav .wrap { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.hdr-nav .wrap::-webkit-scrollbar { display: none; }
.hdr-nav a { padding: 10px 12px; font-size: .84rem; color: #cbd5e1; white-space: nowrap; border-bottom: 2px solid transparent; font-weight: 500; }
.hdr-nav a:hover, .hdr-nav a.on { color: #fff; border-bottom-color: var(--brand-2); }
.hdr-nav a.hot { color: var(--accent); font-weight: 700; }
.menu-btn { display: none; }

@media (max-width: 900px) {
  .hdr-top { flex-wrap: wrap; gap: 10px; }
  .search { order: 5; flex-basis: 100%; max-width: none; }
  .search select { display: none; }
  .hbtn .txt { display: none; }
  .lang button { padding: 4px 7px; }
}
@media (max-width: 420px) { .logo small { display: none; } .lang { display: none; } }

/* ── Botones ─────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 10px; font-weight: 700; font-size: .92rem; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:active { transform: scale(.98); }
.btn-pri { background: var(--brand); color: #fff; box-shadow: 0 8px 20px -8px rgba(79,70,229,.6); }
.btn-pri:hover { background: #4338ca; }
.btn-acc { background: var(--accent); color: #111; }
.btn-acc:hover { filter: brightness(1.05); }
.btn-ghost { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.25); }
.btn-ghost:hover { background: rgba(255,255,255,.18); }
.btn-line { border: 1px solid var(--line); background: #fff; color: var(--ink); }
.btn-line:hover { border-color: var(--brand); color: var(--brand); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-block { width: 100%; }

/* ── Secciones ───────────────────────────────────── */
.sec { padding: 44px 0; }
.sec-hd { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.sec-hd h2 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); font-weight: 800; letter-spacing: -.02em; }
.sec-hd p { color: var(--muted); font-size: .92rem; margin-top: 3px; }
.sec-hd a.more { color: var(--brand); font-weight: 700; font-size: .9rem; white-space: nowrap; }
.sec-hd a.more:hover { text-decoration: underline; }
.eyebrow { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 4px; }

/* ── Hero ────────────────────────────────────────── */
.hero { background: radial-gradient(1000px 420px at 85% -10%, rgba(6,182,212,.35), transparent 60%), radial-gradient(800px 400px at 0% 110%, rgba(79,70,229,.45), transparent 60%), var(--head); color: #fff; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 36px; align-items: center; padding-top: 52px; padding-bottom: 52px; }
.hero .badge { display: inline-flex; gap: 8px; align-items: center; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); font-size: .76rem; font-weight: 700; letter-spacing: .04em; margin-bottom: 16px; }
.hero .badge i { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.25); }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 900; line-height: 1.05; letter-spacing: -.03em; margin-bottom: 16px; }
.hero h1 span { background: linear-gradient(90deg, #a5b4fc, #67e8f9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: #cbd5e1; font-size: 1.05rem; max-width: 560px; margin-bottom: 26px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-art { position: relative; aspect-ratio: 1 / .9; }
.hero-art .tile { position: absolute; background: #fff; border-radius: 16px; box-shadow: var(--sh-3); overflow: hidden; display: flex; flex-direction: column; }
.hero-art .tile img { width: 100%; height: 100%; object-fit: contain; background: #f1f5f9; padding: 10px; }
.hero-art .tile span { position: absolute; left: 8px; bottom: 8px; background: rgba(15,23,42,.85); color: #fff; font-size: .72rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.hero-art .t1 { width: 56%; height: 58%; left: 0; top: 6%; transform: rotate(-3deg); }
.hero-art .t2 { width: 46%; height: 44%; right: 0; top: 0; transform: rotate(4deg); }
.hero-art .t3 { width: 48%; height: 44%; right: 6%; bottom: 0; transform: rotate(-2deg); }
.hero-logo { position: absolute; left: 8%; bottom: 2%; width: 30%; border-radius: 14px; box-shadow: var(--sh-3); }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .hero-art { max-width: 460px; width: 100%; margin: 0 auto; } }

/* ── Franja de confianza ─────────────────────────── */
.trust { background: var(--surface); border-bottom: 1px solid var(--line); }
.trust .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.trust div.it { display: flex; gap: 12px; align-items: center; padding: 18px 14px; }
.trust div.it + div.it { border-left: 1px solid var(--line); }
.trust .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: #eef2ff; color: var(--brand); flex-shrink: 0; }
.trust b { display: block; font-size: .9rem; }
.trust small { color: var(--muted); font-size: .78rem; }
@media (max-width: 860px) { .trust .wrap { grid-template-columns: 1fr 1fr; } .trust div.it:nth-child(3) { border-left: 0; } .trust div.it:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 480px) { .trust div.it { padding: 14px 6px; gap: 8px; } .trust .ic { width: 34px; height: 34px; } }

/* ── Categorías ──────────────────────────────────── */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.cat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 12px 14px; text-align: center; transition: transform .2s, box-shadow .2s, border-color .2s; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cat:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: transparent; }
.cat .pic { width: 84px; height: 84px; border-radius: 50%; background: var(--c, #eef2ff); display: grid; place-items: center; overflow: hidden; }
.cat .pic img { width: 64px; height: 64px; object-fit: contain; }
.cat .pic svg { width: 44px; height: 44px; }
.cat b { font-size: .92rem; }
.cat small { color: var(--muted); font-size: .76rem; margin-top: -8px; }

/* ── Tarjeta de producto ─────────────────────────── */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.pcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; position: relative; }
.pcard:hover { box-shadow: var(--sh-2); transform: translateY(-2px); }
.pcard .media { aspect-ratio: 1 / 1; background: linear-gradient(180deg, #f8fafc, #eef2f7); display: grid; place-items: center; cursor: pointer; overflow: hidden; position: relative; }
.pcard .media img { width: 86%; height: 86%; object-fit: contain; transition: transform .35s; mix-blend-mode: multiply; }
.pcard:hover .media img { transform: scale(1.06); }
.pcard .quick { position: absolute; bottom: 10px; left: 50%; transform: translate(-50%, 10px); opacity: 0; background: rgba(15,23,42,.88); color: #fff; font-size: .76rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; transition: .2s; white-space: nowrap; }
.pcard:hover .quick { opacity: 1; transform: translate(-50%, 0); }
.pcard .tags { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 5px; z-index: 1; }
.tag { font-size: .66rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: #fff; color: var(--ink-2); box-shadow: var(--sh-1); }
.tag.low { background: #fff7ed; color: var(--warn); }
.tag.cat-t { background: var(--brand); color: #fff; }
.pcard .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pcard .fam { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.pcard h3 { font-size: .93rem; font-weight: 600; line-height: 1.3; cursor: pointer; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.pcard h3:hover { color: var(--brand); }
.pcard .sku { font-size: .7rem; color: #64748b; font-family: ui-monospace, Menlo, monospace; }
.price { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; }
.price sup { font-size: .6em; font-weight: 700; vertical-align: .55em; margin-right: 1px; }
.stock { font-size: .75rem; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; color: var(--ok); }
.stock i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.stock.low { color: var(--warn); }
.pcard .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 6px; }
.add { display: inline-flex; align-items: center; gap: 6px; background: var(--brand); color: #fff; padding: 9px 12px; border-radius: 9px; font-size: .82rem; font-weight: 700; transition: background .15s; }
.add:hover { background: #4338ca; }
.add.done { background: var(--ok); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: #fff; }
.stepper button { width: 32px; height: 34px; font-weight: 800; color: var(--brand); }
.stepper button:hover { background: #eef2ff; }
.stepper span { min-width: 28px; text-align: center; font-weight: 700; font-size: .88rem; }

.grid.list { grid-template-columns: 1fr; }
.grid.list .pcard { flex-direction: row; }
.grid.list .pcard .media { width: 170px; flex-shrink: 0; aspect-ratio: auto; }
.grid.list .pcard h3 { -webkit-line-clamp: 1; min-height: 0; font-size: 1rem; }
.grid.list .pcard .desc { display: block; }
.pcard .desc { display: none; color: var(--muted); font-size: .84rem; }
@media (max-width: 560px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pcard .body { padding: 10px; }
  .price { font-size: 1.1rem; }
  .add .lbl { display: none; }
  .grid.list .pcard .media { width: 110px; }
}

/* Carrusel horizontal */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 220px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.rail > * { scroll-snap-align: start; }
@media (max-width: 560px) { .rail { grid-auto-columns: 46%; } }

/* ── Banners ─────────────────────────────────────── */
.banners { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.bnr { border-radius: var(--r-lg); padding: 24px; color: #fff; min-height: 180px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.bnr h3 { font-size: 1.3rem; font-weight: 800; line-height: 1.15; max-width: 70%; }
.bnr p { font-size: .86rem; opacity: .9; max-width: 72%; margin-top: 6px; }
.bnr .go { align-self: flex-start; background: #fff; color: var(--ink); padding: 8px 14px; border-radius: 8px; font-weight: 700; font-size: .82rem; margin-top: 14px; }
.bnr img { position: absolute; right: -10px; bottom: -10px; width: 44%; object-fit: contain; filter: drop-shadow(0 12px 20px rgba(0,0,0,.35)); }
.bnr.b1 { background: linear-gradient(135deg, #0e7490, #06b6d4); }
.bnr.b2 { background: linear-gradient(135deg, #9f1239, #e11d48); }
.bnr.b3 { background: linear-gradient(135deg, #3730a3, #6366f1); }
@media (max-width: 860px) { .banners { grid-template-columns: 1fr; } }

/* ── Servicios ───────────────────────────────────── */
.svc-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chip { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: .82rem; font-weight: 600; color: var(--ink-2); transition: .15s; white-space: nowrap; }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip small { opacity: .6; margin-left: 4px; }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.svc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.svc:hover { box-shadow: var(--sh-2); transform: translateY(-3px); }
.svc .ph { height: 150px; position: relative; overflow: hidden; background: #0f172a; }
.svc .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.svc:hover .ph img { transform: scale(1.06); }
.svc .ph .tag { position: absolute; top: 10px; left: 10px; }
.svc .bd { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.svc h3 { font-size: 1rem; font-weight: 700; }
.svc .sub { color: var(--brand); font-size: .76rem; font-weight: 700; }
.svc p { color: var(--muted); font-size: .84rem; }
.svc .mini { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 4px; }
.svc .mini span { font-size: .7rem; font-weight: 600; padding: 3px 8px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); }
.svc .ft { margin-top: auto; padding-top: 10px; display: flex; gap: 8px; }
.svc .ft a { flex: 1; text-align: center; padding: 9px; border-radius: 9px; font-weight: 700; font-size: .8rem; }
.svc .ft .a1 { background: var(--ink); color: #fff; }
.svc .ft .a2 { background: #dcfce7; color: #166534; }

/* ── Estadísticas ────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; text-align: center; }
.stat b { display: block; font-size: 1.9rem; font-weight: 900; letter-spacing: -.03em; background: linear-gradient(90deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat small { color: var(--muted); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 720px) { .stats { grid-template-columns: 1fr 1fr; } }

/* ── Contacto ────────────────────────────────────── */
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.cbox { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.cbox h3 { font-size: 1.05rem; margin-bottom: 2px; }
.cbox .who { color: var(--muted); font-size: .86rem; margin-bottom: 14px; }
.cline { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 10px; }
.cline:hover { background: var(--surface-2); }
.cline .ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.cline small { display: block; color: var(--muted); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.cline b { font-size: .92rem; overflow-wrap: anywhere; }

/* ── Footer ──────────────────────────────────────── */
.ftr { background: var(--head); color: #94a3b8; margin-top: 30px; font-size: .86rem; }
.ftr .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; padding-top: 44px; padding-bottom: 30px; }
.ftr h4 { color: #fff; font-size: .9rem; margin-bottom: 12px; }
.ftr ul { list-style: none; display: grid; gap: 7px; }
.ftr a:hover { color: #fff; }
.ftr .base { border-top: 1px solid rgba(255,255,255,.08); padding: 16px 0; font-size: .78rem; }
.ftr .base .wrap { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pay { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.pay span { background: rgba(255,255,255,.08); border-radius: 6px; padding: 4px 8px; font-size: .72rem; font-weight: 700; color: #cbd5e1; }
@media (max-width: 860px) { .ftr .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .ftr .cols { grid-template-columns: 1fr; } }

/* ── Capas: velo, cajón del carrito, modal ───────── */
.veil { position: fixed; inset: 0; background: rgba(2,6,23,.55); backdrop-filter: blur(3px); z-index: 90; opacity: 0; pointer-events: none; transition: opacity .25s; }
.veil.on { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 100%); background: var(--surface); z-index: 100; transform: translateX(100%); transition: transform .3s cubic-bezier(.2,.8,.2,1); display: flex; flex-direction: column; box-shadow: var(--sh-3); }
.drawer.show { transform: none; }
.drawer-hd { padding: 16px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.drawer-hd h3 { font-size: 1.1rem; }
.x { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 1.2rem; color: var(--muted); }
.x:hover { background: var(--surface-2); color: var(--ink); }
.ship-bar { padding: 12px 18px; background: var(--surface-2); border-bottom: 1px solid var(--line); font-size: .8rem; }
.ship-bar .track { height: 6px; border-radius: 6px; background: var(--line); margin-top: 7px; overflow: hidden; }
.ship-bar .track i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-2)); border-radius: 6px; transition: width .3s; }
.drawer-bd { flex: 1; overflow-y: auto; padding: 8px 18px; }
.ci { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center; }
.ci img { width: 64px; height: 64px; object-fit: contain; background: var(--surface-2); border-radius: 10px; padding: 4px; }
.ci b { font-size: .86rem; font-weight: 600; display: block; line-height: 1.25; }
.ci small { color: var(--muted); font-size: .74rem; }
.ci .rm { color: var(--muted); font-size: .74rem; text-decoration: underline; margin-top: 4px; }
.ci .rm:hover { color: var(--danger); }
.ci .tot { font-weight: 800; font-size: .92rem; text-align: right; margin-bottom: 6px; }
.ci .stepper button { width: 26px; height: 28px; }
.empty { text-align: center; padding: 50px 10px; color: var(--muted); }
.empty svg { margin: 0 auto 12px; color: #cbd5e1; }
.drawer-ft { border-top: 1px solid var(--line); padding: 16px 18px; display: grid; gap: 10px; }
.drawer-ft .ln { display: flex; justify-content: space-between; font-size: .88rem; color: var(--ink-2); }
.drawer-ft .ln.big { font-size: 1.15rem; font-weight: 800; color: var(--ink); }
.drawer-ft .note { font-size: .74rem; color: var(--muted); text-align: center; }

.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; pointer-events: none; opacity: 0; transition: opacity .2s; }
.modal.show { opacity: 1; pointer-events: auto; }
.modal-box { background: var(--surface); border-radius: var(--r-lg); max-width: 940px; width: 100%; max-height: 92vh; overflow: auto; box-shadow: var(--sh-3); display: grid; grid-template-columns: 1fr 1fr; position: relative; transform: translateY(12px) scale(.98); transition: transform .25s; }
.modal.show .modal-box { transform: none; }
.modal-box > .x { position: absolute; top: 10px; right: 10px; background: #fff; box-shadow: var(--sh-1); z-index: 2; }
.pv-media { background: linear-gradient(180deg, #f8fafc, #e8edf5); display: grid; place-items: center; padding: 30px; min-height: 320px; }
.pv-media img { max-height: 380px; object-fit: contain; mix-blend-mode: multiply; }
.pv-info { padding: 28px 28px 24px; display: flex; flex-direction: column; gap: 12px; }
.crumbs { font-size: .76rem; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; }
.crumbs a { color: var(--brand); font-weight: 600; }
.pv-info h2 { font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.pv-info .price { font-size: 2rem; }
.pv-info .desc { color: var(--ink-2); font-size: .92rem; }
.specs { width: 100%; border-collapse: collapse; font-size: .84rem; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.specs td { padding: 8px 12px; border-bottom: 1px solid var(--line); }
.specs tr:nth-child(odd) td { background: var(--surface-2); }
.specs td:first-child { color: var(--muted); font-weight: 600; width: 42%; }
.pv-buy { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.pv-buy .stepper button { width: 38px; height: 44px; }
.pv-buy .btn { flex: 1; min-width: 160px; }
.pv-perks { display: grid; gap: 6px; font-size: .8rem; color: var(--ink-2); background: var(--surface-2); border-radius: 10px; padding: 12px; }
.pv-perks div { display: flex; gap: 8px; align-items: center; }
@media (max-width: 760px) { .modal-box { grid-template-columns: 1fr; } .pv-media { min-height: 220px; padding: 20px; } .pv-media img { max-height: 220px; } .pv-info { padding: 20px; } }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: .88rem; font-weight: 600; z-index: 120; opacity: 0; transition: .25s; display: flex; gap: 10px; align-items: center; box-shadow: var(--sh-3); max-width: calc(100% - 32px); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast button { color: var(--accent); font-weight: 800; }

.wa-fab { position: fixed; right: 18px; bottom: 18px; width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -6px rgba(37,211,102,.7); z-index: 70; transition: transform .2s; }
.wa-fab:hover { transform: scale(1.08); }

/* ── Tienda: layout con filtros ──────────────────── */
.shop-head { background: var(--surface); border-bottom: 1px solid var(--line); }
.shop-head .wrap { padding-top: 20px; padding-bottom: 18px; }
.shop-head h1 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 900; letter-spacing: -.02em; }
.shop-head p { color: var(--muted); font-size: .92rem; max-width: 760px; margin-top: 4px; }
.shop-head .crumbs { margin-bottom: 8px; }
.cat-strip { display: flex; gap: 8px; overflow-x: auto; margin-top: 14px; padding-bottom: 4px; scrollbar-width: none; }
.cat-strip::-webkit-scrollbar { display: none; }

.shop { display: grid; grid-template-columns: 250px 1fr; gap: 24px; padding-top: 22px; padding-bottom: 30px; align-items: start; }
.side { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); position: sticky; top: 130px; max-height: calc(100vh - 150px); overflow-y: auto; }
.side-hd { display: none; }
.fgroup { padding: 16px; border-bottom: 1px solid var(--line); }
.fgroup:last-child { border-bottom: 0; }
.fgroup h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 10px; }
.fopt { display: flex; align-items: center; gap: 9px; padding: 5px 0; font-size: .87rem; cursor: pointer; }
.fopt input { accent-color: var(--brand); width: 16px; height: 16px; }
.fopt em { margin-left: auto; font-style: normal; color: #94a3b8; font-size: .76rem; }
.range-row { display: flex; gap: 8px; align-items: center; }
.range-row input[type=number] { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; font-size: .85rem; }
.fam-list { max-height: 260px; overflow-y: auto; }

.toolbar { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .count { color: var(--muted); font-size: .88rem; }
.toolbar .count b { color: var(--ink); }
.toolbar .right { display: flex; gap: 8px; align-items: center; }
.sel { border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; background: #fff; font-size: .85rem; }
.view-tg { display: flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: #fff; }
.view-tg button { padding: 7px 9px; color: var(--muted); }
.view-tg button.on { background: var(--ink); color: #fff; }
.filters-btn { display: none; }
.active-f { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.active-f button { display: inline-flex; gap: 6px; align-items: center; background: #eef2ff; color: var(--brand-ink); padding: 5px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; }
.active-f button:hover { background: #e0e7ff; }
.more-wrap { text-align: center; margin-top: 22px; }
.more-wrap small { display: block; color: var(--muted); margin-bottom: 10px; font-size: .82rem; }
.noresult { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--r); padding: 50px 20px; text-align: center; color: var(--muted); }
.noresult b { color: var(--ink); }

@media (max-width: 960px) {
  .shop { grid-template-columns: 1fr; }
  .side { position: fixed; top: 0; left: 0; bottom: 0; width: min(330px, 88%); max-height: none; border-radius: 0; z-index: 100; transform: translateX(-100%); transition: transform .3s; }
  .side.show { transform: none; }
  .side-hd { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 1; }
  .filters-btn { display: inline-flex; }
}

.fade-in { animation: fin .35s ease both; }
@keyframes fin { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 2px; }

/* ── Checkout (t800-tienda.js) adaptado al tema claro ── */
body .t8co-backdrop { background: rgba(2,6,23,.55); }
body .t8co, body .t8co-head, body .t8co-pie { background: var(--surface); color: var(--ink); border-color: var(--line); }
body .t8co { border-radius: var(--r-lg); box-shadow: var(--sh-3); }
body .t8co-head h3 { color: var(--ink); font-weight: 800; }
body .t8co-x { color: var(--muted); }
body .t8co-x:hover { color: var(--ink); }
body .t8co-sec { color: var(--brand); }
body .t8co-campo label { color: var(--ink-2); font-weight: 600; }
body .t8co-campo input, body .t8co-campo select, body .t8co-campo textarea { background: #fff; border-color: var(--line); color: var(--ink); border-radius: 9px; padding: 10px 12px; }
body .t8co-campo input:focus, body .t8co-campo select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(79,70,229,.15); }
body .t8co-resumen, body .t8co-banco, body .t8co-num { background: var(--surface-2); border-color: var(--line); }
body .t8co-lin { color: var(--ink-2); }
body .t8co-lin.tot { color: var(--ink); border-color: var(--line); }
body .t8co-num { color: var(--brand); }
body .t8co-aviso { background: #fffbeb; border-color: #fcd34d; color: #92400e; }
body .t8co-btn { border-radius: 10px; }
body .t8co-btn.ok { background: var(--brand); }
body .t8co-btn.no { background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }
body .t8co-ok h4 { color: var(--ok); }
body .t8co-ok p, body .t8co-banco b { color: var(--ink-2) !important; }

/* ── Páginas de servicio (t800-servicio.js) ─────── */
.sv-hero { position: relative; }
.sv-hero::before { content: ""; position: absolute; inset: 0; background: var(--bg) center / cover no-repeat; opacity: .16; pointer-events: none; }
.sv-hero .wrap { position: relative; padding-top: 40px; padding-bottom: 44px; }
.sv-hero h1 { max-width: 820px; }
.sv-crumbs { margin-bottom: 18px; color: #94a3b8; }
.sv-crumbs a { color: #a5b4fc; }
.sv-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 30px; max-width: 760px; }
.sv-stats div { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 12px 14px; }
.sv-stats b { display: block; font-size: 1.4rem; font-weight: 900; }
.sv-stats small { color: #94a3b8; font-size: .76rem; }
@media (max-width: 600px) { .sv-stats { grid-template-columns: 1fr 1fr; } }
.sv-subnav { position: sticky; top: 118px; z-index: 40; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--sh-1); }
.sv-subnav .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.sv-subnav a { padding: 11px 12px; font-size: .84rem; font-weight: 600; color: var(--ink-2); white-space: nowrap; border-bottom: 2px solid transparent; }
.sv-subnav a:hover { color: var(--brand); border-bottom-color: var(--brand); }
@media (max-width: 900px) { .sv-subnav { top: 0; position: relative; } }
.sec.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec[id^="sv-"] { scroll-margin-top: 170px; }
.sv-h2 em { font-style: normal; background: linear-gradient(90deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sv-desc { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.sv-list { font-size: .82rem; color: var(--ink-2); padding-left: 18px; display: grid; gap: 3px; }
.sv-hl { font-size: .8rem; font-weight: 700; color: var(--ok); background: #f0fdf4; border-radius: 8px; padding: 7px 10px; }
.sv-price { display: flex; justify-content: space-between; align-items: end; gap: 8px; border-top: 1px dashed var(--line); padding-top: 10px; margin-top: 4px; }
.sv-price b { font-size: 1.15rem; font-weight: 800; display: block; }
.sv-price small { color: var(--muted); font-size: .72rem; }
.sv-time { font-size: .72rem; font-weight: 700; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; white-space: nowrap; color: var(--ink-2); align-self: flex-start; }
.svc .ph.noimg { display: none; }
.svc .ph[data-zoom] { cursor: zoom-in; }
.sv-gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); grid-auto-rows: 200px; gap: 12px; }
.sv-gal figure { position: relative; border-radius: var(--r); overflow: hidden; cursor: zoom-in; background: #0f172a; }
.sv-gal figure.big { grid-column: span 2; grid-row: span 2; }
.sv-gal img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.sv-gal figure:hover img { transform: scale(1.05); }
.sv-gal figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px; background: linear-gradient(transparent, rgba(2,6,23,.85)); color: #fff; font-size: .8rem; font-weight: 600; }
.sv-gal .noimg { display: none; }
@media (max-width: 560px) { .sv-gal { grid-template-columns: 1fr 1fr; grid-auto-rows: 140px; } .sv-gal figure.big { grid-column: span 2; } }
.sv-logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.sv-logo { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.sec.alt .sv-logo, .sec.alt .svc { background: var(--surface-2); }
.sv-logo .ic { font-size: 1.5rem; line-height: 1; }
.sv-logo b { display: block; font-size: .95rem; }
.sv-logo small { display: block; color: var(--muted); font-size: .8rem; margin-top: 2px; }
.sv-logo .tag { display: inline-block; margin-top: 8px; box-shadow: none; background: #eef2ff; color: var(--brand-ink); }
.sv-steps { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; counter-reset: p; }
.sv-steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; position: relative; }
.sv-steps .n { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-weight: 800; margin-bottom: 10px; }
.sv-steps b { display: block; margin-bottom: 4px; }
.sv-steps p { color: var(--muted); font-size: .85rem; }
.sv-table { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.sv-table table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.sv-table th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 12px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.sv-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.sv-table tr:last-child td { border-bottom: 0; }
.sv-table td:first-child { font-weight: 700; }
.sv-table td.pr { font-weight: 800; color: var(--brand); font-size: 1rem; white-space: nowrap; }
@media (max-width: 700px) {
  .sv-table thead { display: none; }
  .sv-table tr { display: block; padding: 10px 14px; border-bottom: 1px solid var(--line); }
  .sv-table td { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; border: 0; }
  .sv-table td[data-l]::before { content: attr(data-l); color: var(--muted); font-weight: 500; font-size: .78rem; }
}
.sv-faq { display: grid; gap: 10px; max-width: 900px; }
.sv-faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; }
.sv-faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.sv-faq summary::after { content: "+"; color: var(--brand); font-size: 1.2rem; }
.sv-faq details[open] summary::after { content: "−"; }
.sv-faq p { color: var(--ink-2); font-size: .9rem; padding-bottom: 14px; }
.sv-p { color: var(--ink-2); max-width: 820px; margin-bottom: 10px; }
.sv-cta-wrap { padding: 10px 0; }
.sv-cta { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: linear-gradient(135deg, var(--brand-ink), var(--brand)); color: #fff; border-radius: var(--r-lg); padding: 22px 24px; }
.sv-cta p { max-width: 760px; font-weight: 500; }
.sv-rail { grid-auto-columns: minmax(230px, 250px); }
.sv-rail .svc .ph { height: 130px; }
.sv-contact { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.sv-contact h2 { font-size: 1.6rem; font-weight: 900; margin-bottom: 6px; }
.sv-contact p { color: var(--muted); }
.sv-contact-btns { display: grid; gap: 10px; }
.sv-contact-btns .btn { justify-content: flex-start; overflow-wrap: anywhere; }
@media (max-width: 760px) { .sv-contact { grid-template-columns: 1fr; padding: 20px; } }
.sv-zoom { position: relative; max-width: min(1000px, 94vw); background: #000; border-radius: var(--r); overflow: hidden; }
.sv-zoom img { max-height: 82vh; width: auto; margin: 0 auto; }
.sv-zoom figcaption { color: #fff; padding: 10px 14px; font-size: .88rem; }
.sv-zoom .x { position: absolute; top: 8px; right: 8px; background: #fff; }

/* la cabecera pegajosa necesita que su contenedor no la limite */
#t8-header { display: contents; }
.sv-bars { display: grid; gap: 12px; max-width: 820px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.sv-bar { display: grid; grid-template-columns: 140px 1fr 48px; gap: 12px; align-items: center; font-size: .88rem; font-weight: 600; }
.sv-bar .tr { height: 10px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.sv-bar .tr i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-2)); border-radius: 10px; }
.sv-bar b { text-align: right; color: var(--brand); }
@media (max-width: 480px) { .sv-bar { grid-template-columns: 100px 1fr 40px; } }

/* Reserva el alto de la cabecera mientras el JS la pinta (evita el salto de página / CLS) */
#t8-header:empty { display: block; height: 145px; background: var(--head); }
@media (max-width: 900px) { #t8-header:empty { height: 195px; } }
