/* Titanware · estilos de la tienda (paleta: #8A00FF #5B00D6 #B026FF #050509 #0D0D14 #D9DCE5 #F5F5F7) */
:root {
  --bg: #050509;
  --bg-2: #09090f;
  --surface: #0D0D14;
  --surface-2: #14141e;
  --line: #1c1c28;
  --line-2: #2b2b3b;
  --text: #F5F5F7;
  --text-2: #D9DCE5;
  --muted: #8b8e9c;
  --violet: #8A00FF;
  --violet-hover: #5B00D6;
  --violet-soft: #B026FF;
  --violet-tint: rgba(138, 0, 255, .12);
  --ok: #4fc98e;
  --warn: #e2b04f;
  --off: #e0717f;
  --radius: 12px;
  --radius-sm: 8px;
  --header-h: 126px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, .55);
  --brand-font: "Chakra Petch", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
button, input, select { font: inherit; color: inherit; }
a { color: var(--violet-soft); }
:focus-visible { outline: 2px solid var(--violet-soft); outline-offset: 2px; }
svg { flex: none; }

.wrap { width: 100%; max-width: 1920px; margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 4.5rem); }

/* Header */
.topbar { background: var(--bg-2); border-bottom: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
/* Barra de ancho completo: la info pegada a la izquierda y las redes a la derecha */
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 44px; max-width: none; padding-inline: 1.25rem; }
.top-info { display: flex; gap: 1.75rem; margin: 0; padding: 0; list-style: none; }
.top-info li { display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; color: var(--text-2); }
.top-social { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
.top-social .lbl { display: grid; line-height: 1.05; margin-right: .5rem; padding-right: .85rem; border-right: 1px solid var(--line-2); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text); text-align: right; }
.top-social .lbl small { font-size: .62rem; font-weight: 500; letter-spacing: .02em; text-transform: none; color: var(--muted); }
.top-social .soc { position: relative; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .35); transition: transform .15s, box-shadow .15s, filter .15s; }
.top-social .soc svg { width: 17px; height: 17px; color: #fff; }
.top-social .soc:hover { transform: translateY(-2px); filter: brightness(1.1); }
.top-social .soc.wa { background: #25d366; }
.top-social .soc.wa:hover { box-shadow: 0 6px 16px rgba(37, 211, 102, .45); }
.top-social .soc.ig { background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fd5949 40%, #d6249f 65%, #285aeb 100%); }
.top-social .soc.ig:hover { box-shadow: 0 6px 16px rgba(214, 36, 159, .45); }
.top-social .soc.fb { background: #1877f2; }
.top-social .soc.fb:hover { box-shadow: 0 6px 16px rgba(24, 119, 242, .45); }
@media (max-width: 760px) {
  .top-info li + li, .top-social .lbl small { display: none; }
}
@media (max-width: 480px) {
  .top-info { display: none; }
  .top-social { margin-inline: auto; }
}
.topbar .top-info svg { width: 15px; height: 15px; color: var(--violet-soft); }
.topbar a { color: var(--text-2); text-decoration: none; }
.topbar a:hover { color: var(--text); }
.site-head {
  position: sticky; top: 0; z-index: 20;
  background: rgba(5, 5, 9, .9);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
}
.top { height: 64px; border-bottom: 1px solid var(--line); }
.top .wrap { height: 100%; display: flex; align-items: center; gap: 1.5rem; max-width: none; padding-inline: 1.25rem; }
/* La barra de categorías se alinea con el logo */
.mainnav .wrap { max-width: none; padding-inline: 1.25rem; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--text); flex: none; }
.brand-emblem { height: 38px; width: auto; }
.brand-word { height: 17px; width: auto; }
.brand { gap: .55rem; }

.hsearch {
  flex: 1; max-width: 640px; margin-inline: auto; display: flex; align-items: center; gap: .6rem;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 999px; padding: 0 .4rem 0 1rem;
  transition: border-color .15s, box-shadow .15s;
}
.hsearch:focus-within { border-color: var(--violet); box-shadow: 0 0 0 4px var(--violet-tint); }
.hsearch svg { width: 18px; height: 18px; color: var(--muted); }
.hsearch input { flex: 1; min-width: 0; border: 0; background: none; outline: none; padding: .6rem 0; font-size: .93rem; }
.hsearch input::placeholder { color: var(--muted); }
.hsearch input::-webkit-search-cancel-button { filter: invert(.6); }
.hactions { display: flex; align-items: center; gap: .6rem; flex: none; }
.cart-btn {
  position: relative; width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 50%; color: var(--text);
}
.cart-btn:hover { border-color: var(--violet); }
.cart-btn svg { width: 20px; height: 20px; }
.cart-count {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  background: var(--violet); color: #fff; font-size: .7rem; font-weight: 700; display: grid; place-items: center;
}
.cart-count[hidden] { display: none; }
.cart-btn.bump { animation: bump .45s ease; }
@keyframes bump { 30% { transform: scale(1.18); } }
.mainnav { border-bottom: 1px solid var(--line); }
.mainnav .wrap { display: flex; align-items: center; gap: .4rem; overflow-x: auto; scrollbar-width: none; height: 52px; }
.mainnav .wrap::-webkit-scrollbar { display: none; }
.mainnav a {
  flex: none; color: var(--text-2); text-decoration: none; font-size: .88rem; font-weight: 500;
  padding: .5rem .95rem; border-radius: var(--radius-sm); white-space: nowrap;
}
.mainnav a:hover { color: var(--text); background: var(--surface); }
.mainnav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.mainnav a.hi { color: #fff; background: var(--violet); font-weight: 600; }
.mainnav a.hi:hover, .mainnav a.hi[aria-current="page"] { background: var(--violet-hover); }
.mainnav .sep { flex: none; width: 1px; height: 20px; background: var(--line-2); margin: 0 .5rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--violet); color: #fff; border: 1px solid transparent; cursor: pointer;
  padding: .7rem 1.15rem; border-radius: var(--radius-sm);
  font-weight: 600; font-size: .92rem; text-decoration: none; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .15s;
}
.btn:hover { background: var(--violet-hover); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; }
.btn.sm { padding: .5rem .9rem; font-size: .88rem; }
.btn.ghost { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn.ghost:hover { background: var(--surface-2); border-color: var(--muted); }
.btn.wa { background: #1fae57; }
.btn.wa:hover { background: #1a9a4c; }
.btn.block { width: 100%; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(138, 0, 255, .18), transparent 60%),
    radial-gradient(600px 300px at 0% 110%, rgba(138, 0, 255, .08), transparent 60%),
    var(--bg);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; opacity: .25;
  mask-image: radial-gradient(ellipse at 70% 0%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 0%, #000 0%, transparent 70%);
}
.hero .wrap { position: relative; z-index: 1; padding-block: 5.5rem 5rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8rem; font-weight: 500; color: var(--text-2);
  padding: .3rem .75rem .3rem .55rem; border: 1px solid var(--line-2); border-radius: 999px;
  background: rgba(13, 13, 20, .7); margin-bottom: 1.4rem;
}
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(79, 201, 142, .18); }
.hero h1 {
  font-weight: 700; letter-spacing: -.035em;
  font-size: clamp(2.2rem, 5.2vw, 3.75rem); line-height: 1.05;
  margin: 0 0 1.1rem; max-width: 18ch;
}
.hero h1 em { font-style: normal; color: var(--violet-soft); }
.hero p.lead { color: var(--text-2); max-width: 56ch; margin: 0 0 2rem; font-size: 1.08rem; }
.search {
  display: flex; align-items: center; gap: .75rem;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: .35rem .35rem .35rem 1.1rem; max-width: 640px;
  box-shadow: var(--shadow);
  transition: border-color .15s, box-shadow .15s;
}
.search:focus-within { border-color: var(--violet); box-shadow: var(--shadow), 0 0 0 4px var(--violet-tint); }
.search svg { width: 20px; height: 20px; color: var(--muted); }
.search input { flex: 1; min-width: 0; border: 0; background: none; padding: .7rem 0; outline: none; font-size: 1rem; }
.search input::placeholder { color: var(--muted); }
.search input::-webkit-search-cancel-button { filter: invert(.6); }
.trust { display: flex; flex-wrap: wrap; gap: .6rem 1.75rem; margin: 1.75rem 0 0; padding: 0; list-style: none; color: var(--text-2); font-size: .9rem; }
.trust li { display: inline-flex; align-items: center; gap: .5rem; }
.trust svg { width: 18px; height: 18px; color: var(--violet-soft); }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 3rem; }
.hero-visual {
  position: relative; justify-self: center;
  width: min(100%, 500px); aspect-ratio: 1; display: grid; place-items: center;
}
.hero-visual > * { grid-area: 1 / 1; }
.circuit { width: 200%; height: 200%; margin: -50%; overflow: visible; pointer-events: none; }
.cz-pin, .cz-trace { fill: none; stroke: rgba(138, 0, 255, .5); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cz-pin { stroke: rgba(176, 38, 255, .55); stroke-width: 3; }
.cz-pad { fill: none; stroke: rgba(176, 38, 255, .7); stroke-width: 9; stroke-linecap: round; }
.cz-flow {
  fill: none; stroke: #B026FF; stroke-width: 2.5; stroke-linecap: round;
  stroke-dasharray: 10 90; stroke-dashoffset: 100;
  filter: drop-shadow(0 0 4px rgba(138, 0, 255, .9));
  animation: flow 3.2s linear infinite;
}
.cz-flow.f2 { animation-delay: -1.1s; animation-duration: 3.8s; }
.cz-flow.f3 { animation-delay: -2.2s; animation-duration: 2.6s; }
.cz-chip { fill: rgba(13, 13, 20, .85); stroke: rgba(138, 0, 255, .55); stroke-width: 1.5; }
.cz-chip-in { fill: none; stroke: rgba(138, 0, 255, .22); stroke-width: 1; stroke-dasharray: 4 6; }
.cz-dot { fill: rgba(176, 38, 255, .6); }
.cz-trace.far { stroke: rgba(138, 0, 255, .38); }
.cz-pad.far { stroke: rgba(176, 38, 255, .5); stroke-width: 8; }
.cz-flow.far { animation-duration: 4.6s; }
.cz-flow.far.f2 { animation-duration: 5.2s; animation-delay: -1.7s; }
.cz-flow.far.f3 { animation-duration: 4.1s; animation-delay: -3s; }
@keyframes flow { to { stroke-dashoffset: 0; } }
.glow { width: 95%; height: 75%; border-radius: 50%; background: rgba(91, 0, 214, .38); filter: blur(90px); }
.hero-logo {
  position: relative; width: 84%; height: auto;
  filter: drop-shadow(0 16px 50px rgba(91, 0, 214, .5));
  animation: float 6s ease-in-out infinite;
}
.hero-word { align-self: end; margin-bottom: 29%; text-align: center; position: relative; }
.hero-word strong { display: block; font-family: var(--brand-font); font-size: clamp(.95rem, 1.3vw, 1.2rem); letter-spacing: .3em; margin-right: -.3em; }
.hero-word span { display: block; font-size: .66rem; font-weight: 600; letter-spacing: .3em; margin-right: -.3em; text-transform: uppercase; color: var(--muted); margin-top: .2rem; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 50% { transform: translateY(-10px); } }

/* Toolbar */
.toolbar {
  position: sticky; top: var(--header-h); z-index: 10;
  background: rgba(5, 5, 9, .92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.toolbar .wrap { display: flex; align-items: center; gap: 2rem; padding-block: .9rem; }
.cats-scroll { position: relative; flex: 1; min-width: 0; }
.cats-scroll.overflow::after {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 32px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--bg));
}
.cats { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; padding-right: 32px; }
.cats::-webkit-scrollbar { display: none; }
.cat {
  flex: none; display: inline-flex; align-items: center; gap: .45rem;
  background: transparent; border: 1px solid var(--line); border-radius: 999px;
  padding: .42rem .85rem; cursor: pointer; font-size: .87rem; font-weight: 500; white-space: nowrap; color: var(--text-2);
  transition: background .15s, border-color .15s, color .15s;
}
.cat small { color: var(--muted); font-size: .75rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.cat:hover { border-color: var(--line-2); color: var(--text); background: var(--surface); }
.cat[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
.cat[aria-pressed="true"] small { color: #5d586e; }
.filters { display: flex; align-items: center; gap: .5rem; flex: none; }
.select { position: relative; }
.select option { background: var(--surface); color: var(--text); }
.select select {
  appearance: none; -webkit-appearance: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: .45rem 2rem .45rem .75rem; color: var(--text); font-size: .87rem; cursor: pointer;
}
.select select:hover { border-color: var(--line-2); }
.select::after {
  content: ""; position: absolute; right: .8rem; top: 50%; width: 6px; height: 6px; pointer-events: none;
  border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
}
.subcats { display: flex; flex-wrap: wrap; gap: .4rem; padding-top: .9rem; }
.subcats[hidden] { display: none; }
.sub {
  background: transparent; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer;
  padding: .3rem .7rem; font-size: .8rem; font-weight: 500; color: var(--muted);
}
.sub:hover { color: var(--text); border-color: var(--line-2); }
.sub[aria-pressed="true"] { color: var(--violet-soft); border-color: rgba(138, 0, 255, .55); background: var(--violet-tint); }
.results-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.results-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; padding-top: 3rem; }
.results-head h2 { margin: 0; font-size: 1.15rem; font-weight: 600; letter-spacing: -.01em; }
.count { color: var(--muted); font-size: .88rem; font-variant-numeric: tabular-nums; }

/* Grid */
.grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  padding: 1.75rem 0 6rem;
}
.card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0; text-align: left; cursor: pointer;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.card:hover { border-color: var(--line-2); transform: translateY(-3px); box-shadow: var(--shadow); }
.card:hover .thumb svg { color: var(--violet-soft); transform: scale(1.04); }
.card:hover .card-cta { color: var(--text); }
.card:hover .card-cta svg { transform: translateX(3px); }
.thumb {
  aspect-ratio: 4 / 3; display: grid; place-items: center;
  background:
    radial-gradient(circle at 50% 55%, rgba(138, 0, 255, .13), transparent 62%),
    var(--bg-2);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.thumb { position: relative; }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 1.5rem; transition: transform .35s; }
.thumb:has(> img) { background: radial-gradient(circle at 50% 58%, rgba(138, 0, 255, .2), transparent 65%), var(--bg-2); }
.card:hover .thumb img, .opt:hover .thumb img { transform: scale(1.04); }
.modal .thumb:has(> img) img { padding: 2.5rem; }
/* Producto + caja: el producto a la izquierda y la caja más chica a la derecha */
.thumb:has(> img.box) img.prod { width: 66%; padding-right: .5rem; }
.thumb img.box { left: auto; width: 40%; height: 78%; top: auto; padding: 0 1.1rem 1.1rem 0; object-position: bottom; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .55)); }
.modal .thumb:has(> img.box) img.prod { padding: 2.5rem .75rem 2.5rem 2.5rem; }
.modal .thumb img.box { padding: 0 2rem 2.5rem 0; }
.thumb svg { width: 34%; height: auto; color: var(--text-2); transition: color .25s, transform .25s; }
.thumb > .t-bg, .thumb > .t-logo, .thumb > .t-word { grid-area: 1 / 1; }
.thumb .t-bg { width: 100%; height: 100%; display: grid; place-items: center; opacity: .07; }
.thumb .t-bg svg { width: 64%; transform: rotate(-8deg) translateY(6%); }
.thumb .t-bg.solo { opacity: 1; }
.thumb .t-bg.solo svg { width: 34%; transform: none; }
.t-logo {
  width: 44%; aspect-ratio: 16 / 10; background: var(--text); position: relative;
  -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat;
  transition: background .25s, transform .25s;
}
.t-word {
  position: relative; padding: 0 1rem; text-align: center; color: var(--text);
  font-family: var(--brand-font); font-weight: 700; text-transform: uppercase;
  font-size: clamp(1.05rem, 1.5vw, 1.4rem); letter-spacing: .14em; line-height: 1.15;
  transition: color .25s, transform .25s;
}
.card:hover .t-logo { background: var(--violet-soft); transform: scale(1.05); }
.card:hover .t-word { color: var(--violet-soft); transform: scale(1.05); }
.card:hover .thumb .t-bg svg { transform: rotate(-8deg) translateY(6%); }
.modal .t-logo { width: 58%; }
.modal .t-word { font-size: 1.8rem; }
.modal .thumb .t-bg svg { width: 70%; }
.card-body { padding: 1.35rem 1.5rem 1.5rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.meta { display: flex; justify-content: space-between; gap: .5rem; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.card h3 { font-weight: 600; font-size: 1.06rem; line-height: 1.35; letter-spacing: -.01em; margin: 0; }
.specs-short { color: var(--muted); font-size: .85rem; margin: 0; line-height: 1.45; }
.card-foot { margin-top: auto; padding-top: 1.1rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; }
.price { font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.price.ask { font-size: .9rem; font-weight: 600; color: var(--text-2); }
.stock {
  font-size: .75rem; font-weight: 500; white-space: nowrap; display: inline-flex; align-items: center; gap: .4rem;
  padding: .18rem .55rem; border-radius: 999px; background: color-mix(in srgb, currentColor 12%, transparent);
}
.stock::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.stock.disponible { color: var(--ok); }
.stock.consultar { color: var(--violet-soft); }
.stock.sin-stock { color: var(--off); }
.card-cta {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--line);
  font-size: .85rem; font-weight: 500; color: var(--muted); transition: color .15s;
}
.card-cta svg { width: 16px; height: 16px; transition: transform .2s; }
.badge {
  position: absolute; top: .75rem; left: .75rem; z-index: 1;
  display: inline-flex; align-items: center; gap: .3rem;
  background: rgba(5, 5, 9, .75); color: var(--violet-soft);
  border: 1px solid rgba(138, 0, 255, .45); border-radius: 999px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-size: .72rem; font-weight: 600; padding: .2rem .6rem;
}
.badge svg { width: 12px; height: 12px; }
.card.is-off .thumb svg, .card.is-off .thumb img { opacity: .45; }

.empty { grid-column: 1 / -1; text-align: center; padding: 4.5rem 1rem; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--radius); }
.empty strong { display: block; color: var(--text); font-size: 1.15rem; font-weight: 600; margin-bottom: .4rem; }
.empty .actions { display: flex; justify-content: center; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }

/* Modal */
dialog {
  width: min(820px, 100% - 2rem); max-height: 90vh; padding: 0;
  border: 1px solid var(--line-2); border-radius: 16px;
  background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg);
}
dialog[open] { animation: pop .2s ease-out; }
dialog::backdrop { background: rgba(5, 5, 9, .75); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.modal { display: grid; grid-template-columns: 1fr 1.15fr; }
.modal .thumb { aspect-ratio: auto; min-height: 100%; border-bottom: 0; border-right: 1px solid var(--line); }
.modal .thumb svg { width: 42%; }
.modal-body { padding: 2rem 1.75rem 1.75rem; display: flex; flex-direction: column; gap: 1rem; }
.modal-body h2 { font-size: 1.55rem; font-weight: 700; letter-spacing: -.025em; line-height: 1.2; margin: -.4rem 0 0; }
.modal-price { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .9rem 1rem; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.modal-price .price { font-size: 1.35rem; }
.modal-price .price.ask { font-size: 1rem; }
.spec-title { font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: .25rem 0 -.4rem; }
.spec-list { list-style: none; margin: 0; padding: 0; }
.spec-list li { display: flex; gap: .6rem; align-items: flex-start; padding: .55rem 0; border-bottom: 1px solid var(--line); font-size: .92rem; color: var(--text-2); }
.spec-list li:last-child { border-bottom: 0; }
.spec-list svg { width: 16px; height: 16px; margin-top: .2rem; color: var(--violet-soft); }
/* Descripción y ficha técnica (debajo de la foto y el precio) */
dialog.wide { width: min(1040px, 100% - 2rem); }
.modal-more { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1.15fr; gap: 1.75rem; padding: 1.75rem; border-top: 1px solid var(--line); background: var(--bg-2); }
.modal-more h3 { margin: 0 0 .75rem; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--violet-soft); }
.modal-more .desc { margin: 0; color: var(--text-2); font-size: .95rem; line-height: 1.7; }
.modal-more section:only-child { grid-column: 1 / -1; }
.ficha { width: 100%; border-collapse: collapse; font-size: .88rem; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.ficha th, .ficha td { padding: .55rem .8rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.ficha tr:last-child th, .ficha tr:last-child td { border-bottom: 0; }
.ficha th { width: 40%; font-weight: 500; color: var(--muted); background: var(--surface); }
.ficha td { color: var(--text); }
@media (max-width: 760px) {
  .modal-more { grid-template-columns: 1fr; padding: 1.25rem; gap: 1.25rem; }
}
.close {
  position: absolute; top: .75rem; right: .75rem; z-index: 2;
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--line-2); cursor: pointer; color: var(--text-2);
}
.close:hover { color: var(--text); border-color: var(--muted); }
.close svg { width: 16px; height: 16px; }
.note { font-size: .8rem; color: var(--muted); margin: -.25rem 0 0; text-align: center; }

/* Info */
.info { border-top: 1px solid var(--line); background: var(--bg-2); padding: 6rem 0; }
.info-head { margin-bottom: 1.75rem; }
.info-head h2 { margin: 0 0 .35rem; font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; }
.info-head p { margin: 0; color: var(--muted); }
.info-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; }
.feature .ico { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: var(--violet-tint); color: var(--violet-soft); margin-bottom: 1rem; }
.feature .ico svg { width: 20px; height: 20px; }
.feature h3 { font-size: 1rem; font-weight: 600; margin: 0 0 .3rem; }
.feature p { margin: 0; color: var(--muted); font-size: .9rem; }
.cta-band {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem;
  margin-top: 1.5rem; padding: 2rem 2.25rem; border-radius: var(--radius);
  border: 1px solid rgba(138, 0, 255, .35);
  background: linear-gradient(120deg, rgba(138, 0, 255, .16), rgba(138, 0, 255, .04));
}
.cta-band h3 { margin: 0 0 .2rem; font-size: 1.1rem; font-weight: 600; }
.cta-band p { margin: 0; color: var(--text-2); font-size: .92rem; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 2rem 0 5.5rem; color: var(--muted); font-size: .85rem; }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
footer .brand-emblem { height: 30px; }
footer .brand-word { height: 13px; }

.foot-links { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.foot-links a { color: var(--text-2); text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }
.foot-links a:hover { color: var(--text); }
.foot-links svg { width: 16px; height: 16px; }

.wa-float {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 30;
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: #1fae57; color: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, .45);
  transition: transform .2s, background .15s;
}
.wa-float:hover { transform: scale(1.06); background: #1a9a4c; }
.wa-float svg { width: 28px; height: 28px; }

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
}
@media (max-width: 900px) {
  .hactions .btn.wa span { display: none; }
}
@media (max-width: 640px) {
  .hero .wrap { padding-block: 2.75rem 2.25rem; }
  .hero p.lead { font-size: 1rem; }
  .trust { gap: .5rem 1.1rem; font-size: .85rem; }
  .results-tools, .filters { width: 100%; }
  .filters .select { flex: 1 1 auto; }
  .select select { width: 100%; }
  .modal { grid-template-columns: 1fr; }
  .modal .thumb { aspect-ratio: 16 / 9; border-right: 0; border-bottom: 1px solid var(--line); }
  .modal-body { padding: 1.4rem; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: .7rem; }
  .card-body { padding: .8rem; }
  .card h3 { font-size: .95rem; }
  .price { font-size: 1rem; }
  .specs-short, .card-cta, .card .meta span + span { display: none; }
  .card:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* =========================================================
   Secciones nuevas: inicio, PCs armadas, armador, carrito
   ========================================================= */
main { min-height: 60vh; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .7rem; margin-bottom: .5rem; }
.hero-ctas .btn { padding: .85rem 1.4rem; font-size: .98rem; }

.sec { padding: 5.5rem 0 0; }
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .75rem 1.5rem; margin-bottom: 2rem; }
.sec-head h2 { margin: 0; font-size: clamp(1.3rem, 2vw, 1.65rem); font-weight: 700; letter-spacing: -.02em; }
.sec-head p { margin: .3rem 0 0; color: var(--muted); font-size: .93rem; }
.link-more { display: inline-flex; align-items: center; gap: .4rem; color: var(--violet-soft); text-decoration: none; font-weight: 600; font-size: .9rem; }
.link-more svg { width: 16px; height: 16px; transition: transform .2s; }
.link-more:hover svg { transform: translateX(3px); }

.page-head { padding: 3rem 0 1rem; }
.crumbs { font-size: .78rem; color: var(--muted); margin-bottom: .5rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.page-head h1 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; letter-spacing: -.03em; }
.page-head p { margin: .4rem 0 0; color: var(--text-2); max-width: 70ch; }

/* Accesos principales */
.tiles { display: grid; gap: 1.5rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: .4rem; min-height: 190px;
  padding: 2rem 2.25rem; border-radius: var(--radius); text-decoration: none; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, transform .2s;
}
.tile:hover { border-color: rgba(138, 0, 255, .6); transform: translateY(-3px); }
.tile.main { background: linear-gradient(135deg, rgba(138, 0, 255, .35), rgba(91, 0, 214, .12) 60%, var(--surface)); border-color: rgba(138, 0, 255, .45); }
.tile .t-ico { position: absolute; right: -10px; bottom: -14px; width: 130px; color: var(--violet-soft); opacity: .18; transition: transform .3s, opacity .3s; }
.tile:hover .t-ico { transform: rotate(-6deg) scale(1.05); opacity: .3; }
.tile .t-ico svg { width: 100%; height: auto; }
.tile small { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--violet-soft); }
.tile h3 { margin: 0; font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; }
.tile p { margin: 0; color: var(--text-2); font-size: .9rem; max-width: 34ch; }
.tile .go { margin-top: auto; display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-size: .9rem; }
.tile .go svg { width: 16px; height: 16px; transition: transform .2s; }
.tile:hover .go svg { transform: translateX(4px); }

/* Tarjetas de PC armada */
.pc-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }
.pc-card { display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, transform .2s, box-shadow .2s; }
.pc-card:hover { border-color: var(--line-2); transform: translateY(-3px); box-shadow: var(--shadow); }
.pc-thumb {
  position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center; overflow: hidden; cursor: pointer; border: 0; padding: 0; width: 100%;
  background: radial-gradient(circle at 50% 60%, rgba(138, 0, 255, .22), transparent 65%), var(--bg-2); border-bottom: 1px solid var(--line);
}
.pc-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 1.25rem; }
.pc-thumb.photo { background: radial-gradient(circle at 50% 60%, rgba(138, 0, 255, .22), transparent 65%), var(--bg-2); }
.pc-thumb .cpu-badge { position: relative; z-index: 1; }
.pc-thumb .badge { z-index: 2; }
.pc-thumb.photo .cpu-badge { align-self: end; justify-self: end; margin: 0 .9rem .9rem 0; background: rgba(5, 5, 9, .85); border-radius: 8px; padding: .4rem .6rem; display: grid; place-items: center; width: 84px; height: 42px; }
.pc-thumb.photo .cpu-badge .t-logo { width: 100%; margin: 0; }
.pc-thumb.photo .cpu-badge .t-word { margin: 0; font-size: .7rem; }
.pc-thumb > * { grid-area: 1 / 1; }
.pc-thumb .case { width: 30%; color: var(--text-2); opacity: .9; }
.pc-thumb .case svg { width: 100%; height: auto; }
.pc-thumb .t-logo { width: 26%; align-self: end; justify-self: end; margin: 0 6% 7% 0; aspect-ratio: 16 / 10; }
.pc-thumb .t-word { align-self: end; justify-self: end; margin: 0 6% 7% 0; font-size: .9rem; }
.pc-body { padding: 1.4rem 1.5rem 1.5rem; display: flex; flex-direction: column; gap: .75rem; flex: 1; }
.pc-body h3 { margin: 0; font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; }
.pc-specs { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; font-size: .85rem; color: var(--text-2); }
.pc-specs li { display: flex; align-items: center; gap: .5rem; }
.pc-specs svg { width: 15px; height: 15px; color: var(--violet-soft); flex: none; }
.pc-foot { margin-top: auto; padding-top: .8rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.pc-foot .btns { display: flex; gap: .4rem; }
.pc-foot .price { font-size: 1.25rem; }
.tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0 2rem; }
.pc-modal .modal-body { gap: .8rem; }
.comp-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.comp-list li { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: .75rem; padding: .55rem .75rem; border-bottom: 1px solid var(--line); font-size: .88rem; }
.comp-list li:last-child { border-bottom: 0; }
.mini { width: 44px; height: 34px; border-radius: 6px; background: var(--bg-2); display: grid; place-items: center; overflow: hidden; }
.mini > * { grid-area: 1 / 1; }
.mini > svg, .mini .t-bg svg { width: 60%; color: var(--text-2); }
.mini .t-bg { opacity: .25; display: grid; place-items: center; width: 100%; height: 100%; }
.mini .t-logo { width: 78%; }
.mini .t-word { font-size: .5rem; padding: 0 .15rem; letter-spacing: .04em; }
.mini img { width: 100%; height: 100%; object-fit: contain; padding: 2px; }
.mini:has(> img) { background: var(--bg-2); }
.comp-list small { display: block; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.comp-list .p { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.modal-actions .btn.wa { grid-column: 1 / -1; }

/* Armador de PC: avisos */

.b-note { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; padding: .75rem 1rem; margin-bottom: 1rem; border-radius: var(--radius-sm); font-size: .88rem; background: var(--violet-tint); border: 1px solid rgba(138, 0, 255, .35); color: var(--text-2); }
.b-note svg { width: 18px; height: 18px; color: var(--violet-soft); }
.b-note .btn { margin-left: auto; }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden; }
.qty button { width: 26px; height: 26px; display: grid; place-items: center; background: none; border: 0; color: var(--text); cursor: pointer; }
.qty button:hover { background: var(--surface-2); }
.qty button:disabled { opacity: .35; cursor: default; }
.qty button svg { width: 13px; height: 13px; }
.qty span { min-width: 22px; text-align: center; font-size: .82rem; font-weight: 600; }
.icon-btn { width: 26px; height: 26px; display: grid; place-items: center; background: none; border: 1px solid transparent; border-radius: 50%; color: var(--muted); cursor: pointer; }
.icon-btn:hover { color: var(--off); border-color: var(--line-2); }
.icon-btn svg { width: 14px; height: 14px; }

.btn:disabled { opacity: .45; cursor: not-allowed; }

.b-empty { grid-column: 1 / -1; padding: 2.5rem 1rem; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--radius); }

/* Carrito vacío */
.cart-empty { text-align: center; padding: 3.5rem 1rem; color: var(--muted); }
.cart-empty svg { width: 42px; height: 42px; color: var(--line-2); margin: 0 auto .5rem; }
.cart-empty strong { display: block; color: var(--text); margin-bottom: .3rem; }
.cart-empty .btn { margin-top: 1rem; }
.linkish { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: .8rem; justify-self: center; }
.linkish:hover { color: var(--off); }

/* Aviso flotante */
.toast {
  position: fixed; left: 50%; bottom: 1.5rem; z-index: 60; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: .75rem; padding: .6rem .7rem .6rem 1rem; border-radius: 999px; max-width: calc(100% - 2rem);
  background: var(--surface-2); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); font-size: .88rem; transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast svg { width: 18px; height: 18px; color: var(--ok); }
.toast button { flex: none; background: var(--violet); color: #fff; border: 0; border-radius: 999px; padding: .35rem .8rem; font-weight: 600; font-size: .8rem; cursor: pointer; }

.modal-body .add-row { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
@media (max-width: 1000px) {
  .tiles { grid-template-columns: 1fr; }
  .tile { min-height: 150px; }
}
@media (max-width: 640px) {
  .top { height: auto; }
  .top .wrap { flex-wrap: wrap; gap: .6rem .8rem; padding-block: .6rem; }
  .hsearch { order: 3; flex-basis: 100%; max-width: none; }
  .hactions { margin-left: auto; }
  :root { --header-h: 160px; }
  .pc-grid { grid-template-columns: 1fr; }
  .modal-actions { grid-template-columns: 1fr; }
}
a.cat { text-decoration: none; }

@media (max-width: 640px) { .brand-emblem { height: 32px; } .brand-word { height: 14px; } }
#homePcs { grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); }
@media (max-width: 640px) { #homePcs { grid-template-columns: 1fr; } }

/* ---------- Armador: chequeos de compatibilidad del resumen ---------- */

.check-grid { list-style: none; margin: 0; padding: 0 1.1rem .7rem; display: grid; gap: .45rem; }
.check-grid li { display: flex; gap: .55rem; align-items: flex-start; font-size: .78rem; color: var(--muted); }
.check-grid li strong { display: block; color: var(--text-2); font-weight: 600; font-size: .8rem; }
.dot { width: 18px; height: 18px; flex: none; border-radius: 50%; display: grid; place-items: center; border: 1.5px dashed var(--line-2); margin-top: .1rem; }
.dot svg { width: 11px; height: 11px; }
li.ok .dot { background: rgba(79, 201, 142, .15); border: 0; color: var(--ok); }
li.bad .dot { background: rgba(224, 113, 127, .15); border: 0; color: var(--off); }
li.bad, li.bad strong { color: var(--off) !important; }

.sum-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(240px, 1fr); gap: 1.25rem; align-items: start; }
.check-grid { padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); gap: .7rem; }
@media (max-width: 1000px) {
  .sum-grid { grid-template-columns: 1fr; }
}


/* Memorias y discos: slots de la mother y lo elegido */
.slot-bar { margin-bottom: 1rem; padding: .85rem 1rem; border-radius: var(--radius-sm); background: linear-gradient(90deg, rgba(138, 0, 255, .16), rgba(138, 0, 255, .04)); border: 1px solid rgba(138, 0, 255, .45); display: grid; gap: .75rem; }
.sb-top { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.5rem; font-size: .88rem; color: var(--text-2); }
.sb-m { display: inline-flex; align-items: center; gap: .6rem; }
.sb-m strong { color: var(--text); }
.sb-slots { display: inline-flex; gap: 4px; }
.sb-slots i { width: 11px; height: 26px; border-radius: 3px; border: 1px solid var(--line-2); background: var(--bg-2); }
.sb-slots i.on { background: var(--violet); border-color: var(--violet-soft); box-shadow: 0 0 10px rgba(138, 0, 255, .5); }
.sb-hint { margin-left: auto; font-size: .8rem; color: var(--muted); }
.sb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.sb-list li { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto auto auto; align-items: center; gap: .75rem; padding: .4rem .5rem; border-radius: var(--radius-sm); background: rgba(5, 5, 9, .45); }
.sb-list .mini { width: 46px; height: 38px; }
.sb-list .nm { font-size: .86rem; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-list b { font-size: .88rem; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .sb-hint { margin-left: 0; width: 100%; }
  .sb-list li { grid-template-columns: 40px minmax(0, 1fr) auto auto; }
  .sb-list li b { display: none; }
}
/* Tarjeta de memoria abierta: elegir cuántas */
.bz-opt.ask { cursor: default; transform: none; }
.bz-qty { display: grid; gap: .4rem; margin-top: .35rem; }
.q-lbl { font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--violet-soft); }
.q-opts { display: flex; flex-wrap: wrap; gap: .4rem; }
.q-opts button { display: grid; justify-items: center; gap: .05rem; min-width: 76px; padding: .45rem .7rem; border-radius: var(--radius-sm); cursor: pointer;
  background: var(--bg-2); border: 1px solid var(--line-2); color: var(--text); font: inherit; font-weight: 700; font-size: 1.05rem; line-height: 1.1; }
.q-opts button:hover { border-color: var(--violet); background: var(--violet-tint); }
.q-opts button small { font-size: .62rem; font-weight: 600; color: var(--muted); }
.q-opts button em { font-style: normal; font-size: .6rem; font-weight: 700; color: #fff; background: var(--violet); padding: .05rem .35rem; border-radius: 999px; margin-top: .15rem; }
.q-opts button b { font-size: .68rem; font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums; }
.q-cancel { align-self: flex-start; font-size: .78rem; }
/* Opción sin costo (cooler del procesador, video integrado) */
.bz-opt.free .bz-img { background: radial-gradient(circle at 50% 45%, rgba(138, 0, 255, .22), rgba(138, 0, 255, .04) 70%); }
.bz-opt.free:not(.sel) { border-style: dashed; border-color: rgba(138, 0, 255, .55); }

/* ---------- Ofertas ---------- */
.offer-tag { position: absolute; right: .75rem; top: .75rem; z-index: 2; display: grid; justify-items: center; line-height: 1; padding: .45rem .55rem .4rem;
  border-radius: 10px; background: linear-gradient(135deg, #ff3d6e, #ff7a3d); color: #fff; font-weight: 800; font-size: 1rem; box-shadow: 0 6px 18px rgba(255, 61, 110, .4); }
.offer-tag small { font-size: .55rem; font-weight: 700; letter-spacing: .12em; margin-top: .15rem; }
.price-off { display: inline-grid; line-height: 1.15; }
.price-off s { font-size: .78rem; color: var(--muted); font-weight: 500; }
.price-off .price { color: #ff7a8f; }
.cat.is-offer { border-color: rgba(255, 61, 110, .5); color: #ff9aac; }
.cat.is-offer[aria-pressed="true"] { background: linear-gradient(135deg, #ff3d6e, #ff7a3d); border-color: transparent; color: #fff; }
.cat.is-offer[aria-pressed="true"] small { color: rgba(255, 255, 255, .85); }
.mainnav a.offer-link { color: #ff9aac; font-weight: 600; }
.mainnav a.offer-link[aria-current] { color: #fff; background: linear-gradient(135deg, #ff3d6e, #ff7a3d); }

/* ---------- Tu pedido ---------- */
.o-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 1.75rem; align-items: start; padding-bottom: 4rem; }
.o-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; display: grid; gap: 1.1rem; }
.o-head { display: flex; justify-content: space-between; align-items: start; gap: 1rem; }
.o-head h2 { margin: 0; font-size: 1.25rem; }
.o-head p { margin: .25rem 0 0; color: var(--muted); font-size: .88rem; }
.o-card > .btn.ghost { justify-self: start; }
.o-items { list-style: none; margin: 0; padding: 0; }
.o-items > li { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto 120px 30px; gap: 1rem; align-items: center; padding: 1rem 0; border-top: 1px solid var(--line); }
.o-items > li:last-child { border-bottom: 1px solid var(--line); }
.o-items .mini { width: 72px; height: 58px; border-radius: 10px; }
.o-it { display: grid; gap: .2rem; min-width: 0; }
.o-it strong { font-weight: 600; font-size: .95rem; line-height: 1.3; }
.o-it small { color: var(--muted); font-size: .8rem; }
.o-it details { font-size: .8rem; color: var(--muted); }
.o-it summary { cursor: pointer; }
.o-it details ul { margin: .3rem 0 0; padding-left: 1rem; }
.o-off { justify-self: start; font-size: .72rem; font-weight: 600; padding: .15rem .5rem; border-radius: 6px; color: #ff9aac; background: rgba(255, 61, 110, .12); border: 1px solid rgba(255, 61, 110, .35); }
.o-pr { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.o-fld { display: grid; gap: .35rem; font-size: .82rem; font-weight: 600; color: var(--text-2); }
.o-fld small { font-weight: 400; color: var(--muted); }
.o-fld input, .o-fld textarea { width: 100%; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--radius-sm); color: var(--text); padding: .7rem .8rem; font: inherit; font-size: .95rem; font-weight: 400; }
.o-fld textarea { min-height: 80px; resize: vertical; }
.o-fld input:focus, .o-fld textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px var(--violet-tint); }
.o-sum { position: sticky; top: calc(var(--header-h) + 1rem); gap: .85rem; }
.o-sum h3 { margin: 0; font-size: 1.1rem; }
.o-count { justify-self: start; font-size: .78rem; font-weight: 600; padding: .25rem .65rem; border-radius: 8px; color: var(--violet-soft); background: var(--violet-tint); border: 1px solid rgba(138, 0, 255, .4); }
.o-mini { list-style: none; margin: 0; padding: 0 0 .85rem; display: grid; gap: .7rem; border-bottom: 1px solid var(--line); max-height: 320px; overflow: auto; }
.o-mini li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: .65rem; align-items: center; font-size: .84rem; }
.o-mini li.none { display: block; color: var(--muted); }
.o-mini li > span:nth-child(2) { display: grid; line-height: 1.3; }
.o-mini small { color: var(--muted); font-size: .75rem; }
.o-mini b { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.o-row { display: flex; justify-content: space-between; gap: 1rem; font-size: .88rem; color: var(--text-2); }
.o-row.save span:last-child { color: var(--ok); font-weight: 600; }
.o-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: .85rem; border-top: 2px solid var(--line-2); }
.o-total span { font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: .85rem; }
.o-total strong { font-size: 1.75rem; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.o-sum .fine { display: flex; gap: .45rem; align-items: flex-start; margin: 0; font-size: .76rem; color: var(--muted); }
.o-sum .fine svg { width: 15px; height: 15px; flex: none; color: var(--ok); margin-top: .05rem; }
@media (max-width: 1000px) {
  .o-layout { grid-template-columns: 1fr; }
  .o-sum { position: static; }
}
@media (max-width: 640px) {
  .o-items > li { grid-template-columns: 56px minmax(0, 1fr) 30px; gap: .5rem .75rem; }
  .o-items .mini { width: 56px; height: 46px; }
  .o-items .qty { grid-column: 2; justify-self: start; }
  .o-items .o-pr { grid-column: 2; grid-row: 3; text-align: left; }
  .o-items .icon-btn { grid-column: 3; grid-row: 1; }
  .o-card { padding: 1.1rem; }
}
@media (max-width: 1700px) { .mainnav a { padding-inline: .7rem; } .mainnav .wrap { gap: .2rem; } .mainnav .sep { margin: 0 .3rem; } }
.o-sum .o-fld textarea { min-height: 70px; font-size: .88rem; }
.o-send { font-size: 1rem; padding-block: .9rem; }

/* ---------- Armador simple: panel de componentes + opciones ---------- */
.bz { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 2rem; align-items: start; padding-bottom: 4rem; }
.bz-side { position: sticky; top: calc(var(--header-h) + 1rem); display: grid; gap: .9rem; }
.bz-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; display: grid; gap: .8rem; }
.bz-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.bz-tile { position: relative; display: grid; justify-items: center; gap: .35rem; padding: .8rem .4rem .6rem; border-radius: var(--radius-sm); cursor: pointer;
  background: transparent; border: 1px solid transparent; color: var(--muted); font: inherit; transition: background .15s, border-color .15s, color .15s; }
.bz-tile:hover { background: var(--bg-2); color: var(--text); }
.bz-tile .ico { width: 64px; height: 52px; display: grid; place-items: center; overflow: hidden; }
.bz-tile .ico > svg { width: 42px; height: 42px; }
.bz-tile .ico img { width: 64px; height: 52px; max-height: 52px; object-fit: contain; }
.bz-tile .lbl { font-size: .72rem; font-weight: 600; text-align: center; line-height: 1.15; }
.bz-tile.done { color: var(--text-2); }
.bz-tile[aria-current="step"] { background: var(--violet-tint); border-color: var(--violet); color: var(--text); }
.bz-tile[aria-current="step"] .ico > svg { color: var(--violet-soft); }
.bz-tile .ok { position: absolute; top: .4rem; right: .4rem; width: 18px; height: 18px; border-radius: 50%; background: var(--ok); color: #050509; display: grid; place-items: center; }
.bz-tile .ok svg { width: 11px; height: 11px; }
.bz-tile .n { position: absolute; top: .4rem; left: .45rem; font-style: normal; font-size: .68rem; font-weight: 700; color: var(--violet-soft); }
.bz-sum { display: flex; align-items: center; justify-content: center; gap: .5rem; padding: .6rem; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); font: inherit; font-weight: 600; font-size: .85rem; cursor: pointer; }
.bz-sum svg { width: 16px; height: 16px; }
.bz-sum:hover, .bz-sum.cur { border-color: var(--violet); background: var(--violet-tint); }
.bz-tot .row { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; font-size: .85rem; color: var(--muted); }
.bz-tot .row span:first-child { display: inline-flex; align-items: center; gap: .3rem; }
.bz-tot .row svg { width: 14px; height: 14px; color: var(--violet-soft); }
.bz-tot .row strong { font-size: 1.25rem; color: var(--text); font-variant-numeric: tabular-nums; }
.bz-tot .btns { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.bz-tot .btns .btn { justify-content: center; padding: .75rem .5rem; font-size: .9rem; }
.bz-tot .btns .btn svg { width: 17px; height: 17px; }
.bz-card .redo { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; text-decoration: none; }
.bz-card .redo svg { width: 14px; height: 14px; }

.bz-head { margin-bottom: 1rem; display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem 1.5rem; flex-wrap: wrap; }
.bz-title { flex: 1 1 360px; min-width: 0; }
.bz-next { flex: none; }
.btn.lg { padding: .85rem 1.6rem; font-size: 1rem; border-radius: 10px; }
.btn.lg svg { width: 20px; height: 20px; }
.bz-head h2 { display: flex; align-items: center; gap: .6rem; margin: 0; font-size: 1.5rem; letter-spacing: -.02em; }
.bz-head h2 small { font-size: .9rem; font-weight: 500; color: var(--muted); }
.bz-head p { margin: .5rem 0 0; color: var(--text-2); font-size: .92rem; max-width: 80ch; }
.bz-head p .linkish { font-size: inherit; color: var(--violet-soft); }
.bz-back { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); color: var(--violet-soft); cursor: pointer; }
.bz-back:hover { border-color: var(--violet); }
.bz-back svg { width: 18px; height: 18px; }
.bz-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-bottom: 1rem; }
.bz-tools .hsearch { margin: 0; flex: 0 1 260px; border-radius: var(--radius-sm); }
.bz-brands { display: flex; gap: .5rem; }
.bz-brands button { width: 112px; height: 44px; display: grid; place-items: center; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; }
.bz-brands .t-logo { width: 84px; height: 34px; aspect-ratio: auto; background: var(--text-2); }
.bz-brands button[aria-pressed="true"] { border-color: var(--violet); background: var(--violet-tint); box-shadow: 0 0 0 1px var(--violet) inset; }
.bz-brands button[aria-pressed="true"] .t-logo { background: #fff; }
.bz-count { margin-left: auto; font-size: .8rem; color: var(--muted); }

.bz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: .9rem; }
.bz-opt { position: relative; display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 1rem; align-items: stretch; padding: .9rem; text-align: left; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--text); font: inherit; transition: border-color .15s, transform .15s; }
.bz-opt:hover { border-color: var(--violet-soft); transform: translateY(-1px); }
.bz-opt.sel { border-color: var(--violet); box-shadow: 0 0 0 1px var(--violet) inset, 0 0 24px rgba(138, 0, 255, .2); background: linear-gradient(90deg, rgba(138, 0, 255, .1), transparent 60%), var(--surface); }
.bz-img { width: 116px; height: 100px; border-radius: 10px; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 50% 55%, rgba(138, 0, 255, .2), transparent 70%), var(--bg-2); }
.bz-img > * { grid-area: 1 / 1; }
.bz-img img { width: 100%; height: 100%; object-fit: contain; padding: .4rem; }
.bz-img .t-bg { opacity: .12; width: 100%; height: 100%; display: grid; place-items: center; }
.bz-img .t-bg svg { width: 70%; }
.bz-img .t-logo { width: 70%; aspect-ratio: 16 / 9; }
.bz-img .t-word { font-size: .75rem; font-weight: 700; }
.bz-info { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.bz-name { font-size: .92rem; font-weight: 600; line-height: 1.3; }
.bz-spec { font-size: .76rem; color: var(--muted); }
.bz-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: .5rem; padding-top: .4rem; }
.bz-price { display: grid; font-weight: 700; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.bz-price s { font-size: .72rem; font-weight: 500; color: var(--muted); }
.bz-ok { display: inline-flex; align-items: center; gap: .25rem; font-size: .75rem; font-weight: 600; color: var(--ok); white-space: nowrap; }
.bz-ok svg { width: 13px; height: 13px; }
.bz-opt.sel .bz-ok { color: #fff; background: var(--violet); padding: .15rem .5rem; border-radius: 999px; }
.bz-off, .bz-rec { position: absolute; left: -1px; top: -1px; z-index: 1; display: inline-flex; align-items: center; gap: .25rem; padding: .25rem .6rem; border-radius: var(--radius-sm) 0 var(--radius-sm) 0; font-size: .7rem; font-weight: 700; color: #fff; }
.bz-off { background: linear-gradient(135deg, #ff3d6e, #ff7a3d); }
.bz-rec { background: var(--violet); }
.bz-rec svg { width: 11px; height: 11px; }
.bz-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.bz-main .b-empty { grid-column: 1 / -1; }

@media (max-width: 1000px) {
  .bz { grid-template-columns: 1fr; gap: 1.25rem; }
  .bz-side { position: static; }
  .bz-tiles { grid-template-columns: repeat(4, 1fr); }
  .bz-tile .ico { width: 48px; height: 40px; }
  .bz-tile .ico > svg { width: 32px; height: 32px; }
}
@media (max-width: 640px) {
  .bz-grid { grid-template-columns: 1fr; }
  .bz-opt { grid-template-columns: 92px minmax(0, 1fr); gap: .75rem; padding: .7rem; }
  .bz-img { width: 92px; height: 84px; }
  .bz-tiles { gap: .25rem; }
  .bz-tile { padding: .5rem .2rem .45rem; }
  .bz-tile .lbl { font-size: .62rem; }
  .bz-count { margin-left: 0; width: 100%; }
  .bz-head h2 { font-size: 1.25rem; }
}
.bz-main .fine.lock { margin: .6rem 0 0; font-size: .8rem; color: var(--warn); }
@media (max-width: 1000px) { .bz-tile .ico img { width: 48px; height: 40px; } }
@media (max-width: 1000px) {
  .bz-tot { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; border-radius: 16px 16px 0 0; padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom)); gap: .55rem; box-shadow: 0 -10px 30px rgba(0, 0, 0, .5); border-color: var(--line-2); }
  body.building footer { padding-bottom: 8rem; }
  body.building .wa-float { bottom: 8rem; }
}
/* Contador dentro de la tarjeta elegida (memorias y discos) */
.bz-opt[role="group"] { cursor: default; }
.bz-step { display: inline-flex; align-items: center; gap: .5rem; }
.bz-step .qty { background: var(--bg-2); }
.bz-foot { flex-wrap: wrap; }
@media (max-width: 640px) { .bz-step .bz-ok { display: none; } }
/* Quitar un componente elegido */
.bz-unpick { display: inline-flex; align-items: center; gap: .25rem; padding: .2rem .55rem; border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text-2); font: inherit; font-size: .72rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.bz-unpick svg { width: 11px; height: 11px; }
.bz-unpick:hover { border-color: var(--off); color: #fff; background: rgba(224, 113, 127, .18); }
.bz-opt.sel[role="group"] .bz-step { flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 640px) { .bz-step .bz-ok { display: none; } }

/* ---------- Cuentas: botón del header ---------- */
.acct { position: relative; }
.acct[hidden] { display: none; }
.acct-btn {
  height: 44px; display: inline-flex; align-items: center; gap: .5rem; padding: 0 1rem 0 .8rem; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 999px; color: var(--text); font-size: .88rem; font-weight: 600;
}
.acct-btn:hover, .acct-btn[aria-expanded="true"] { border-color: var(--violet); }
.acct-btn svg { width: 19px; height: 19px; }
.acct-btn.in svg { color: var(--violet-soft); }
.acct-btn span { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-menu {
  position: absolute; right: 0; top: calc(100% + .5rem); z-index: 70; min-width: 250px; padding: .4rem;
  background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  display: grid; animation: pop .15s ease-out;
}
.acct-menu[hidden] { display: none; }
.acct-menu .am-head { display: flex; align-items: center; gap: .7rem; padding: .6rem .6rem .8rem; margin-bottom: .3rem; border-bottom: 1px solid var(--line-2); }
.acct-menu .am-head div { display: grid; min-width: 0; line-height: 1.3; }
.acct-menu .am-head small { color: var(--muted); font-size: .76rem; overflow: hidden; text-overflow: ellipsis; }
.acct-menu a, .acct-menu button {
  display: flex; align-items: center; gap: .65rem; padding: .6rem .65rem; border-radius: var(--radius-sm); border: 0; background: none;
  color: var(--text-2); text-decoration: none; font-size: .88rem; font-weight: 500; text-align: left; cursor: pointer; width: 100%;
}
.acct-menu a:hover, .acct-menu button:hover { background: var(--violet-tint); color: var(--text); }
.acct-menu svg { width: 17px; height: 17px; color: var(--muted); }
.acct-menu .am-admin { color: var(--violet-soft); font-weight: 600; }
.acct-menu .am-admin svg { color: var(--violet-soft); }
.acc-av { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--violet), var(--violet-soft)); color: #fff; font-weight: 700; font-size: .95rem; }
.acc-av.lg { width: 52px; height: 52px; font-size: 1.3rem; }
@media (max-width: 640px) {
  .acct-btn { width: 44px; padding: 0; justify-content: center; }
  .acct-btn span { display: none; }
}

/* ---------- Ventana de ingreso ---------- */
dialog.auth-dlg { width: min(440px, 100% - 2rem); }
.auth { padding: 2rem 1.75rem 1.5rem; display: grid; gap: 1rem; }
.auth-top { text-align: center; display: grid; justify-items: center; gap: .35rem; }
.auth-top img { height: 30px; width: auto; margin-bottom: .35rem; }
.auth-top h2 { margin: 0; font-size: 1.4rem; letter-spacing: -.02em; }
.auth-top p { margin: 0; color: var(--muted); font-size: .9rem; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: .25rem; gap: .25rem; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; }
.auth-tabs button { border: 0; background: none; border-radius: 7px; padding: .55rem; font-weight: 600; font-size: .88rem; color: var(--muted); cursor: pointer; }
.auth-tabs button[aria-selected="true"] { background: var(--surface-2); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .4); }
.gbtn { display: flex; align-items: center; justify-content: center; gap: .65rem; width: 100%; padding: .72rem 1rem; border-radius: var(--radius-sm); border: 1px solid #dadce0; background: #fff; color: #1f1f1f; font-weight: 600; font-size: .92rem; cursor: pointer; transition: background .15s; }
.gbtn:hover { background: #f1f3f4; }
.gbtn svg { width: 19px; height: 19px; }
.auth-or { display: flex; align-items: center; gap: .75rem; color: var(--muted); font-size: .78rem; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.auth-form { display: grid; gap: .8rem; }
.auth-form h3 { margin: 0; font-size: 1rem; }
.auth-form .o-fld input:disabled { color: var(--muted); cursor: not-allowed; }
.auth .forgot { justify-self: end; margin-top: -.35rem; font-size: .8rem; color: var(--violet-soft); text-decoration: none; }
.auth .forgot:hover { color: var(--text); text-decoration: underline; }
.auth .back { color: var(--muted); font-size: .85rem; }
.auth .back:hover { color: var(--text); }
.chk { display: flex; gap: .6rem; align-items: flex-start; font-size: .86rem; color: var(--text-2); cursor: pointer; line-height: 1.4; }
.chk input { flex: none; width: 17px; height: 17px; margin: .05rem 0 0; accent-color: var(--violet); }
.auth-err { margin: 0; padding: .6rem .8rem; border-radius: var(--radius-sm); font-size: .85rem; color: #ffb3bc; background: rgba(224, 113, 127, .1); border: 1px solid rgba(224, 113, 127, .35); }
.auth-err[hidden] { display: none; }
/* Inicio: ¿Cómo comprar? */
.how { scroll-margin-top: calc(var(--header-h) + 1rem); position: relative; isolation: isolate; }
/* Emblema de Titanware de fondo, muy suave, detrás del título */
.how::before { content: ""; position: absolute; z-index: -1; left: 50%; top: .5rem; width: min(760px, 92%); height: 400px; transform: translateX(-50%); pointer-events: none;
  background: url("../../img/logo/emblema.png") center / contain no-repeat; opacity: .07; filter: drop-shadow(0 0 40px rgba(138, 0, 255, .9)); }
.how::after { content: ""; position: absolute; z-index: -2; left: 50%; top: 0; width: min(900px, 100%); height: 360px; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(138, 0, 255, .14), transparent 65%); }
.how-head { text-align: center; display: grid; justify-items: center; gap: .6rem; margin-bottom: 2rem; }
.how-head h2 { margin: 0; font-size: clamp(1.8rem, 3.2vw, 2.5rem); letter-spacing: -.03em; }
.how-head p { margin: 0; color: var(--text-2); max-width: 56ch; }
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: none; }
.how-steps li { position: relative; overflow: hidden; display: grid; align-content: start; gap: .55rem; padding: 1.5rem 1.4rem 1.6rem; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(160deg, rgba(138, 0, 255, .08), transparent 55%), var(--surface); transition: border-color .2s, transform .2s; }
.how-steps li:hover { border-color: rgba(138, 0, 255, .55); transform: translateY(-2px); }
.how-n { position: absolute; top: .4rem; right: 1rem; font-family: var(--brand-font); font-size: 3.4rem; line-height: 1; color: rgba(138, 0, 255, .16); }
.how-ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: var(--violet-soft); background: var(--violet-tint); border: 1px solid rgba(138, 0, 255, .4); margin-bottom: .3rem; }
.how-ico svg { width: 22px; height: 22px; }
.how-steps h3 { margin: 0; font-size: 1.05rem; }
.how-steps p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.55; }
.how-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: 1.6rem; }
.o-sum .fine a { color: var(--violet-soft); white-space: nowrap; }
@media (max-width: 1000px) { .how-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .how-steps { grid-template-columns: 1fr; } }
/* Armador: la foto de cada opción abre la ficha (para verla de cerca) */
.bz-img[data-product] { cursor: zoom-in; transition: box-shadow .15s; }
.bz-img[data-product]:hover { box-shadow: 0 0 0 1px var(--violet) inset; }
.bz-look { position: absolute; right: .3rem; bottom: .3rem; z-index: 1; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(13, 13, 20, .85); border: 1px solid var(--line-2); color: var(--text-2); opacity: .75; transition: opacity .15s, color .15s; }
.bz-look svg { width: 13px; height: 13px; }
.bz-img[data-product]:hover .bz-look { opacity: 1; color: #fff; border-color: var(--violet); }
.bz-gen { position: absolute; left: -1px; top: -1px; z-index: 1; padding: .25rem .6rem; border-radius: var(--radius-sm) 0 var(--radius-sm) 0; font-size: .7rem; font-weight: 700; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--line-2); }
/* Confirmaciones (rehacer armado, vaciar carrito) */
dialog.ask-dlg { width: min(420px, 100% - 2rem); }
.ask-box { padding: 1.9rem 1.6rem 1.5rem; display: grid; gap: .7rem; justify-items: center; text-align: center; }
.ask-ico { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; margin-bottom: .2rem;
  background: var(--violet-tint); border: 1px solid rgba(138, 0, 255, .45); color: var(--violet-soft); box-shadow: 0 0 28px rgba(138, 0, 255, .25); }
.ask-ico svg { width: 26px; height: 26px; }
.ask-box h2 { margin: 0; font-size: 1.3rem; letter-spacing: -.02em; }
.ask-box p { margin: 0; color: var(--text-2); font-size: .92rem; line-height: 1.5; max-width: 32ch; }
.ask-btns { display: grid; gap: .55rem; width: 100%; margin-top: .6rem; }
.ask-btns .btn { padding: .8rem 1rem; font-size: .95rem; }
/* Armador: columna de pasos más ancha y en 3 columnas (12 pasos con los periféricos) */
@media (min-width: 1001px) {
  .bz { grid-template-columns: 380px minmax(0, 1fr); }
  .bz-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem; }
  .bz-tile { padding: .9rem .35rem .75rem; gap: .45rem; }
  .bz-tile .ico { width: 70px; height: 56px; }
  .bz-tile .ico > svg { width: 46px; height: 46px; }
  .bz-tile .ico img { width: 70px; height: 56px; max-height: 56px; }
  .bz .bz-tiles .bz-tile .lbl { font-size: .76rem; overflow-wrap: normal; word-break: normal; letter-spacing: -.01em; }
  .bz-sum { padding: .75rem; font-size: .92rem; }
}
/* Armador: preguntas rápidas de cada paso */
.bz-quick { display: flex; flex-wrap: wrap; gap: .7rem 1.6rem; margin: 0 0 1rem; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.bz-quick[hidden] { display: none; }
.bz-qg { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem; }
.bz-qg > span { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-right: .3rem; }
.bz-q { display: inline-flex; align-items: center; gap: .35rem; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text-2); border-radius: 999px; padding: .38rem .8rem; font-size: .82rem; font-weight: 600; cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.bz-q small { font-size: .72rem; font-weight: 600; color: var(--muted); }
.bz-q:hover { border-color: var(--violet); color: var(--text); }
.bz-q[aria-pressed="true"] { background: var(--violet); border-color: var(--violet); color: #fff; }
.bz-q[aria-pressed="true"] small { color: rgba(255, 255, 255, .8); }
@media (max-width: 640px) { .bz-quick { gap: .6rem; padding: .7rem; } .bz-qg { width: 100%; } }
/* Zoom de la foto en la ficha del producto */
.modal .thumb.zoomable { cursor: zoom-in; }
.modal .thumb.zoomable img.prod { transition: transform .25s ease-out; will-change: transform; }
.modal .thumb.zooming img.prod { transform: scale(1.6); transition: transform .15s ease-out; }
.modal .thumb img.box { transition: opacity .2s; }
.modal .thumb.zooming img.box, .modal .thumb.zooming .zoom-hint, .modal .thumb.zooming .offer-tag { opacity: 0; }
.zoom-hint { position: absolute; left: .75rem; top: .75rem; z-index: 2; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; cursor: pointer;
  background: rgba(13, 13, 20, .8); border: 1px solid var(--line-2); color: var(--text-2); transition: opacity .2s, color .15s, border-color .15s; }
.zoom-hint:hover { color: #fff; border-color: var(--violet); }
.zoom-hint svg { width: 16px; height: 16px; }
dialog.zoom { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; border: 0; border-radius: 0; background: var(--bg); box-shadow: none; cursor: zoom-out; }
dialog.zoom::backdrop { background: var(--bg); }
dialog.zoom[open] { display: grid; place-items: center; animation: none; }
dialog.zoom img { width: 100%; height: 100%; max-width: 1100px; object-fit: contain; padding: 3.5rem 1rem 1.5rem; cursor: default; }
dialog.zoom .close { position: fixed; top: 1rem; right: 1rem; z-index: 2; }
/* Miniaturas: la foto queda fija al recuadro y entra entera en cualquier navegador y zoom
   (antes su alto dependía de cómo cada navegador calcula la grilla y en algunos se cortaba abajo) */
.bz-img, .mini { position: relative; }
.bz-img img, .mini img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: contain; }
/* Celulares muy chicos (320 px): que nada se salga de la pantalla */
@media (max-width: 1000px) { .bz-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.bz-tile { min-width: 0; }
.bz-tile .lbl { max-width: 100%; overflow-wrap: anywhere; }
.o-send { white-space: normal; text-align: center; }
.auth-inapp { display: flex; gap: .55rem; align-items: flex-start; margin: -.35rem 0 0; padding: .65rem .8rem; border-radius: var(--radius-sm); font-size: .8rem; line-height: 1.45; color: var(--text-2); background: rgba(226, 176, 79, .08); border: 1px solid rgba(226, 176, 79, .35); }
.auth-inapp svg { width: 16px; height: 16px; flex: none; color: var(--warn); margin-top: .1rem; }
.auth-ok { display: grid; justify-items: center; gap: .75rem; text-align: center; font-size: .9rem; color: var(--text-2); }
.auth-ok > svg { width: 40px; height: 40px; color: var(--ok); }
.auth-ok p { margin: 0; }
.auth-fine { display: flex; gap: .45rem; align-items: flex-start; margin: 0; font-size: .75rem; color: var(--muted); }
.auth-fine svg { width: 15px; height: 15px; flex: none; color: var(--ok); margin-top: .05rem; }

/* ---------- Carrito: aviso de la cuenta ---------- */
.o-acct { display: flex; gap: .55rem; align-items: flex-start; margin: 0; padding: .7rem .8rem; border-radius: var(--radius-sm); font-size: .83rem; color: var(--text-2); background: var(--bg-2); border: 1px dashed var(--line-2); }
.o-acct.in { border-style: solid; border-color: rgba(79, 201, 142, .35); background: rgba(79, 201, 142, .06); }
.o-acct svg { width: 16px; height: 16px; flex: none; color: var(--ok); margin-top: .1rem; }
.o-acct .linkish { font-size: inherit; color: var(--violet-soft); font-weight: 600; padding: 0; }
.o-acct .linkish:hover { color: var(--text); }

/* ---------- Mi cuenta ---------- */
.empty-mini { padding: 2rem; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--radius); }
.acc-load { margin-bottom: 4rem; }
.acc-guest { max-width: 520px; margin: 0 auto 4rem; justify-items: center; text-align: center; padding: 2.5rem 2rem; }
.acc-guest h2 { margin: 0; font-size: 1.4rem; }
.acc-ico { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--violet-tint); border: 1px solid rgba(138, 0, 255, .4); color: var(--violet-soft); }
.acc-ico svg { width: 30px; height: 30px; }
.acc-perks { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; text-align: left; color: var(--text-2); font-size: .92rem; }
.acc-perks li { display: flex; gap: .55rem; align-items: center; }
.acc-perks svg { width: 16px; height: 16px; color: var(--ok); }
.acc-guest .actions { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center; }
.acc-layout { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 1.75rem; align-items: start; padding-bottom: 4rem; }
.acc-side { position: sticky; top: calc(var(--header-h) + 1rem); }
.acc-me { display: flex; align-items: center; gap: .85rem; }
.acc-me div { display: grid; min-width: 0; line-height: 1.35; }
.acc-me strong { font-size: 1.05rem; }
.acc-me small { color: var(--muted); font-size: .82rem; overflow: hidden; text-overflow: ellipsis; }
.acc-note { display: flex; gap: .6rem; align-items: flex-start; padding: .75rem .85rem; border-radius: var(--radius-sm); font-size: .84rem; color: var(--text-2); background: rgba(226, 176, 79, .08); border: 1px solid rgba(226, 176, 79, .35); }
.acc-note > svg { width: 17px; height: 17px; flex: none; color: var(--warn); margin-top: .1rem; }
.acc-note span { display: block; margin-top: .3rem; }
.acc-note .linkish { font-size: inherit; color: var(--violet-soft); padding: 0; }
.acc-admin { background: linear-gradient(135deg, var(--violet), var(--violet-hover)); }
.acc-side .auth-form { padding-top: 1.1rem; border-top: 1px solid var(--line); }
.acc-out { color: var(--muted); }
.acc-out svg { width: 17px; height: 17px; }
.ords { display: grid; gap: 1rem; }
.ord { border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--bg-2); overflow: hidden; }
.ord header, .ord footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: .85rem 1.1rem; }
.ord header { border-bottom: 1px solid var(--line); }
.ord header div { display: grid; line-height: 1.35; }
.ord header small { color: var(--muted); font-size: .8rem; }
.ord footer { border-top: 1px solid var(--line); background: var(--surface); }
.ord footer > span { color: var(--muted); font-size: .85rem; }
.ord footer strong { font-size: 1.15rem; margin-left: .35rem; font-variant-numeric: tabular-nums; color: var(--text); }
.ord footer .btns { display: flex; gap: .5rem; flex-wrap: wrap; }
.ord-items { list-style: none; margin: 0; padding: .4rem 1.1rem; }
.ord-items > li { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--line); font-size: .9rem; color: var(--text-2); }
.ord-items > li:last-child { border-bottom: 0; }
.ord-items b { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--text); }
.ord-items details { font-size: .8rem; color: var(--muted); margin-top: .2rem; }
.ord-items summary { cursor: pointer; }
.ord-items details ul { margin: .3rem 0 0; padding-left: 1rem; }
.st { display: inline-flex; align-items: center; gap: .4rem; font-size: .75rem; font-weight: 700; padding: .25rem .65rem; border-radius: 999px; white-space: nowrap; }
.st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st-nuevo { color: var(--warn); background: rgba(226, 176, 79, .12); }
.st-respondido { color: #6fb6ff; background: rgba(111, 182, 255, .12); }
.st-vendido { color: var(--ok); background: rgba(79, 201, 142, .12); }
.st-cancelado { color: var(--muted); background: rgba(139, 142, 156, .14); }
@media (max-width: 1000px) {
  .acc-layout { grid-template-columns: 1fr; }
  .acc-side { position: static; }
}
@media (max-width: 640px) {
  .auth { padding: 1.75rem 1.25rem 1.25rem; }
  .ord footer { flex-direction: column; align-items: stretch; }
  .ord footer .btns .btn { flex: 1; }
}

/* ---------- Celular: menú lateral con hamburguesa (como CompraGamer) ---------- */
.nav-btn, .nav-head, .nav-shade { display: none; }
@media (max-width: 760px) {
  .nav-btn { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line-2); color: var(--text); cursor: pointer; }
  .nav-btn svg { width: 22px; height: 22px; }
  .top .wrap { gap: .6rem .7rem; }
  /* sin el desenfoque: si no, el panel fijo queda atrapado dentro de la cabecera */
  .site-head { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(5, 5, 9, .97); }
  body.nav-open { overflow: hidden; }
  body.nav-open .site-head { z-index: 60; }
  .nav-shade:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 1; background: rgba(0, 0, 0, .6); }
  .mainnav { position: fixed; top: 0; left: 0; bottom: 0; z-index: 2; width: min(320px, 86vw); display: flex; flex-direction: column; overflow-y: auto;
    background: var(--surface); border: 0; border-right: 1px solid var(--line-2); box-shadow: 10px 0 40px rgba(0, 0, 0, .5);
    transform: translateX(-105%); visibility: hidden; transition: transform .25s ease, visibility .25s; }
  body.nav-open .mainnav { transform: none; visibility: visible; }
  .nav-head { display: flex; align-items: center; gap: .5rem; padding: 1rem .8rem 1rem 1.2rem; border-bottom: 1px solid var(--line); }
  .nav-head img:first-child { height: 30px; width: auto; }
  .nav-head img:nth-child(2) { height: 13px; width: auto; }
  .nav-x { margin-left: auto; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line-2); background: none; color: var(--text); cursor: pointer; }
  .nav-x svg { width: 18px; height: 18px; }
  .mainnav .wrap { flex-direction: column; align-items: stretch; height: auto; overflow: visible; gap: .15rem; padding: .7rem .8rem 2rem; }
  .mainnav a { padding: .8rem 1rem; font-size: 1rem; border-radius: 10px; }
  .mainnav .sep { width: auto; height: 1px; margin: .6rem .3rem; }
  :root { --header-h: 110px; }
}

/* ---------- Celular: armador con la barra de pasos fija arriba ---------- */
@media (max-width: 760px) {
  body.building .site-head { position: relative; }
  .bz { gap: .9rem; grid-template-columns: minmax(0, 1fr); }
  .bz-side, .bz-side > .bz-card { min-width: 0; }
  .bz-side { position: sticky; top: 0; z-index: 15; padding-top: .5rem; margin-top: -.5rem; background: linear-gradient(var(--bg) 75%, transparent); }
  .bz-side > .bz-card:first-child { display: flex; align-items: center; gap: .3rem; padding: .4rem; border-radius: 14px; border-color: var(--line-2); box-shadow: 0 8px 20px rgba(0, 0, 0, .45); }
  /* los pasos se deslizan; resumen y rehacer quedan siempre a mano a la derecha */
  .bz-side .bz-tiles { flex: 1; min-width: 0; display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; position: relative; padding: .2rem .1rem; }
  .bz-side .bz-tiles::-webkit-scrollbar { display: none; }
  .bz-side .bz-tile { flex: none; display: flex; align-items: center; gap: .4rem; padding: .3rem .75rem .3rem .35rem; border-radius: 999px; border-color: var(--line-2); }
  .bz-side .bz-tile .ico, .bz-side .bz-tile .ico img { width: 30px; height: 30px; max-height: 30px; border-radius: 50%; }
  .bz-side .bz-tile .ico > svg { width: 19px; height: 19px; }
  .bz-side .bz-tile .lbl { font-size: .78rem; white-space: nowrap; overflow-wrap: normal; }
  .bz-side .bz-tile .ok { top: -3px; right: -3px; width: 15px; height: 15px; }
  .bz-side .bz-tile .ok svg { width: 9px; height: 9px; }
  .bz-side .bz-tile .n { display: none; }
  .bz-side .bz-tile.done { border-color: rgba(79, 201, 142, .45); }
  .bz-side .bz-tile[aria-current="step"] { border-color: var(--violet); }
  .bz-side .bz-sum, .bz-side .bz-card .redo { flex: none; width: 54px; display: grid; justify-items: center; gap: .15rem; padding: .35rem .1rem; border-radius: 10px; font-size: .6rem; line-height: 1.1; text-align: center; text-decoration: none; }
  .bz-side .bz-sum { border-left: 1px solid var(--line-2); }
  .bz-side .bz-card .redo { border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text-2); }
  .bz-side .bz-sum svg, .bz-side .bz-card .redo svg { width: 17px; height: 17px; }
}
@media (max-width: 640px) {
  .top .wrap { gap: .55rem .5rem; padding-inline: 1rem; }
  .nav-btn, .hactions .cart-btn, .hactions .acct-btn { width: 40px; height: 40px; }
  .hactions { gap: .4rem; }
  .brand { gap: .4rem; }
  .brand-emblem { height: 28px; }
  .brand-word { height: 12px; }
}
/* En el celular el botón de seguir ya está en la barra de abajo: las opciones quedan más arriba */
@media (max-width: 760px) { #bNext { display: none; } }
@media (max-width: 640px) { :root { --header-h: 160px; } }

/* Aviso flotante: el texto ocupa su lugar y no se parte palabra por palabra */
.toast span { flex: 1; min-width: 0; line-height: 1.3; }
.toast svg { flex: none; }
@media (max-width: 760px) {
  .toast { left: 1rem; right: 1rem; max-width: none; transform: translateY(20px); border-radius: 14px; padding: .75rem .75rem .75rem 1rem; bottom: calc(5.5rem + env(safe-area-inset-bottom)); z-index: 70; border-color: rgba(138, 0, 255, .45); box-shadow: 0 12px 34px rgba(0, 0, 0, .6); }
  .toast.show { transform: none; }
  .toast button { padding: .55rem 1rem; font-size: .85rem; }
  /* en el armador queda arriba de la barra del total */
  body.building .toast { bottom: calc(12.5rem + env(safe-area-inset-bottom)); }
}
