/* ============ TCOMPONENTES — estilos ============ */
:root {
  --bg: #05040a;
  --bg-2: #08060f;
  --surface: #0d0b16;
  --surface-2: #14111f;
  --border: rgba(167, 139, 250, 0.12);
  --border-strong: rgba(167, 139, 250, 0.24);
  --violet: #8b5cf6;
  --violet-bright: #a78bfa;
  --violet-soft: rgba(139, 92, 246, 0.12);
  --glow: rgba(139, 92, 246, 0.45);
  --text: #ece8f8;
  --muted: #958fab;
  --success: #34d399;
  --warning: #fbbf24;
  --danger: #f87171;
  --sale: #ff6a3d;
  --wa: #25d366;
  --radius: 16px;
  --font: "Chakra Petch", system-ui, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--violet-bright); text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.accent { color: var(--violet-bright); text-shadow: 0 0 28px var(--glow); }
.muted { color: var(--muted); }
.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
:focus-visible { outline: 2px solid var(--violet-bright); outline-offset: 2px; }

/* Etiqueta chica sobre los títulos de sección */
.kicker { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--violet-bright); margin-bottom: 10px; }
.eyebrow {
  display: inline-block; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--violet-bright); background: var(--violet-soft); border: 1px solid var(--border-strong);
  padding: 5px 16px; border-radius: 99px; margin-bottom: 22px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 4, 10, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-top { display: grid; grid-template-columns: auto minmax(0, 520px) auto; justify-content: space-between; align-items: center; gap: 32px; height: 68px; }
/* Logotipo: "T" + "COMPONENTES" subrayado + "UY", en Bebas Neue como el logo original */
.logo { display: inline-flex; align-items: flex-end; gap: 4px; color: #e6e2ee; font-family: "Bebas Neue", "Chakra Petch", sans-serif; font-weight: 400; line-height: .8; }
.logo-t { font-size: 46px; color: var(--violet-bright); text-shadow: 0 0 18px var(--glow); }
.logo-word { display: flex; flex-direction: column; align-items: flex-end; }
.logo-name { font-size: 30px; letter-spacing: .02em; padding-bottom: 3px; position: relative; }
.logo-name::after { content: ""; position: absolute; left: -2px; right: -4px; bottom: -2px; height: 3px; background: currentColor; transform: skewX(-30deg); }
.logo-uy { font-size: 12px; letter-spacing: .08em; margin-top: 4px; }
.logo:hover .logo-t { color: #c4b5fd; }
.logo-texto { font-family: var(--font); font-size: 1.35rem; font-weight: 700; letter-spacing: .02em; line-height: 1; color: #fff; }
.logo-texto:hover { color: #fff; opacity: .85; }
.logo-apilado { flex-direction: column; align-items: center; gap: 2px; }
.logo-apilado .logo-t { font-size: 64px; }
.logo-apilado .logo-name { font-size: 40px; }
.logo-apilado .logo-uy { font-size: 16px; }

/* Buscador */
.search { position: relative; }
.search > svg { position: absolute; left: 14px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.search input { min-height: 42px; padding-left: 42px; border-radius: 10px; background: var(--surface); border-color: var(--border-strong); }
.search input::-webkit-search-cancel-button { filter: invert(1) opacity(.5); }
.search-results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 60; padding: 6px;
  background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: 14px; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .8);
  max-height: 70vh; overflow: auto;
}
.search-results[hidden] { display: none; }
.search-results a { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 10px; color: var(--text); font-size: .9rem; }
.search-results a:hover, .search-results a:focus-visible { background: var(--violet-soft); }
.search-results .sr-img { width: 44px; height: 44px; border-radius: 8px; overflow: hidden; background: #fff; display: grid; place-items: center; }
.search-results .sr-img img { width: 100%; height: 100%; object-fit: contain; }
.search-results .sr-img .ph { width: 70%; }
.search-results .sr-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-results b { color: var(--violet-bright); white-space: nowrap; }
.search-results .sr-all { display: block; text-align: center; color: var(--violet-bright); font-weight: 600; border-top: 1px solid var(--border); border-radius: 0 0 10px 10px; margin-top: 4px; padding: 12px; }
.sr-empty { margin: 0; padding: 14px; color: var(--muted); font-size: .9rem; }

/* Fila de categorías */
.cat-nav { border-top: 1px solid var(--border); }
.cat-nav-inner { display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.cat-nav-inner::-webkit-scrollbar { display: none; }
.cat-nav a {
  position: relative; flex: none; padding: 12px 10px; color: var(--muted); font-size: .9rem; font-weight: 500; white-space: nowrap; transition: color .15s;
}
.cat-nav a:hover { color: var(--text); }
.cat-nav a.active { color: var(--text); }
.cat-nav a.active::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 2px; border-radius: 2px; background: var(--violet-bright); box-shadow: 0 0 12px var(--glow); }
.cat-nav .sep { flex: none; width: 1px; height: 18px; background: var(--border-strong); margin: 0 10px; }

@media (max-width: 760px) {
  .site-header { position: relative; }
  .header-top { grid-template-columns: 1fr auto; grid-template-areas: "logo wa" "search search"; height: auto; gap: 12px; padding: 12px 0; }
  .header-top .logo { grid-area: logo; }
  .header-top .search { grid-area: search; }
  .head-wa { grid-area: wa; padding: 8px 12px; }
  .head-wa span { display: none; }
  .cat-nav-inner { width: 100%; padding: 0 8px; }
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-weight: 600; font-size: .98rem;
  padding: 12px 26px; min-height: 48px; border: 0; border-radius: 99px; cursor: pointer; color: #fff;
  background: linear-gradient(135deg, var(--violet-bright), var(--violet));
  box-shadow: 0 0 28px -4px var(--glow);
  transition: filter .15s, transform .15s, box-shadow .15s;
}
.btn:hover { filter: brightness(1.12); transform: translateY(-1px); box-shadow: 0 0 36px -2px var(--glow); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-ghost { background: transparent; box-shadow: inset 0 0 0 1px var(--border-strong); color: var(--text); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--violet); }
.btn-wa { background: var(--wa); color: #04210f; box-shadow: 0 0 24px -6px rgba(37, 211, 102, .6); }
.btn-wa:hover { box-shadow: 0 0 30px -4px rgba(37, 211, 102, .7); }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: .9rem; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero { position: relative; height: clamp(520px, calc(100svh - 112px), 760px); overflow: hidden; isolation: isolate; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 120px; background: linear-gradient(transparent, var(--bg)); pointer-events: none; z-index: 1; }
.slide { position: absolute; inset: 0; z-index: 0; display: flex; align-items: center; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility .8s; }
.slide.is-active { opacity: 1; visibility: visible; }
.slide-bg {
  position: absolute; inset: 0 0 0 30%; z-index: -1; background-size: cover; background-position: center;
  filter: brightness(.7) saturate(1.15);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%); mask-image: linear-gradient(90deg, transparent, #000 45%);
  transform: scale(1.06); transition: transform 7s ease-out;
}
.slide.is-active .slide-bg { transform: scale(1); }
.hero-content { max-width: 680px; }
.hero-title { font-size: clamp(2.6rem, 7.5vw, 5.4rem); line-height: .98; text-transform: uppercase; letter-spacing: -.01em; margin-bottom: 26px; }
.hero-title span { display: block; background: linear-gradient(90deg, #7c3aed, var(--violet-bright)); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 30px rgba(139, 92, 246, .35)); }
.hero .lead { font-size: 1.12rem; color: #c9c3da; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 30px; }
.btn-outline { background: rgba(5, 4, 10, .5); color: var(--text); border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25), inset 0 -2px 0 var(--violet); }
.btn-outline:hover { box-shadow: inset 0 0 0 1px var(--violet-bright), inset 0 -2px 0 var(--violet), 0 0 30px -8px var(--glow); }
.link-arrow { color: var(--text); font-weight: 600; }
.link-arrow:hover { color: var(--violet-bright); }
.hero-controls { position: absolute; z-index: 2; bottom: 88px; left: 0; right: 0; display: flex; justify-content: flex-end; align-items: center; gap: 22px; }
.dots { display: flex; gap: 8px; }
.dots button { width: 40px; height: 14px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.dots button::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: rgba(255, 255, 255, .25); }
.dots button::after { content: ""; position: absolute; left: 0; top: 6px; height: 2px; width: 0; background: var(--violet-bright); }
.dots button.is-active::after { width: 100%; transition: width var(--dur, 7s) linear; }
.hero.is-paused .dots button.is-active::after { transition: none; width: 100%; }
.arrows { display: flex; gap: 8px; }
.arrows button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: rgba(5, 4, 10, .4); color: var(--text); cursor: pointer; display: grid; place-items: center; }
.arrows button:hover { border-color: var(--violet-bright); }
.arrows svg { width: 16px; height: 16px; }
@media (max-width: 760px) {
  .hero { height: auto; min-height: 560px; }
  .slide { align-items: flex-end; padding-bottom: 100px; }
  .slide-bg { inset: 0; -webkit-mask-image: linear-gradient(0deg, transparent 10%, #000 70%); mask-image: linear-gradient(0deg, transparent 10%, #000 70%); filter: brightness(.45) saturate(1.1); }
  .hero-controls { bottom: 28px; justify-content: space-between; }
}

/* ---------- Secciones ---------- */
.section { padding: 80px 0; }
.section-alt { background: linear-gradient(180deg, var(--bg), var(--bg-2) 20%, var(--bg-2) 80%, var(--bg)); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head p { margin: 0; color: var(--muted); max-width: 62ch; }
.page-head { padding: 56px 0 28px; margin-bottom: 8px; }
.page-head p { color: var(--muted); max-width: 65ch; margin: 0; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature { background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; transition: border-color .2s; }
.feature:hover { border-color: var(--border-strong); }
.feature .ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--violet-soft); border: 1px solid var(--border-strong); margin-bottom: 16px; }
.feature svg { width: 22px; height: 22px; color: var(--violet-bright); }
.feature h3 { margin-bottom: 6px; }
.feature p { margin: 0; color: var(--muted); font-size: .92rem; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .features { grid-template-columns: 1fr; } }

/* Comprá por categoría: íconos que se animan al pasar el mouse (dibujos en js/iconos-categorias.js) */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.cat {
  display: flex; flex-direction: column; overflow: hidden; color: var(--text);
  background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--border); border-radius: 14px;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.cat-ico {
  position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 50% 60%, rgba(139, 92, 246, .14), transparent 65%);
  border-bottom: 1px solid var(--border);
}
.cat-ico::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .35s;
  background: radial-gradient(circle at 50% 55%, rgba(139, 92, 246, .38), transparent 60%),
    linear-gradient(rgba(167, 139, 250, .07) 1px, transparent 1px) 0 0 / 16px 16px,
    linear-gradient(90deg, rgba(167, 139, 250, .07) 1px, transparent 1px) 0 0 / 16px 16px;
}
.cat-ico svg { position: relative; width: 38%; max-width: 86px; color: var(--violet-bright); transition: transform .35s cubic-bezier(.2, .8, .3, 1.3), color .25s, filter .25s; }
.cat-txt { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 14px 16px; font-weight: 600; }
.cat-txt small { color: var(--muted); font-weight: 400; font-size: .82rem; }
.cat:hover, .cat:focus-visible { border-color: var(--violet); transform: translateY(-4px); box-shadow: 0 16px 44px -16px var(--glow); }
.cat:hover .cat-ico::before, .cat:focus-visible .cat-ico::before { opacity: 1; }
.cat:hover .cat-ico svg, .cat:focus-visible .cat-ico svg { transform: scale(1.12) translateY(-2px); color: #d6c8ff; filter: drop-shadow(0 0 10px rgba(167, 139, 250, .8)); }
.cat .spin { transform-box: fill-box; transform-origin: center; }
.cat:hover .spin, .cat:focus-visible .spin { animation: cat-girar 1.1s linear infinite; }
.cat:hover .draw, .cat:focus-visible .draw { stroke-dasharray: 1; animation: cat-trazo .9s ease-out; }
.cat:hover .pulse, .cat:focus-visible .pulse { animation: cat-pulso 1s ease-in-out infinite; }
.cat:hover .pulse-2, .cat:focus-visible .pulse-2 { animation-delay: .5s; }
.cat:active { transform: translateY(-1px) scale(.98); }
@keyframes cat-girar { to { transform: rotate(360deg); } }
@keyframes cat-trazo { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes cat-pulso { 50% { opacity: .15; } }
/* En pantallas táctiles no hay "pasar el mouse": los ventiladores giran lento todo el tiempo */
@media (hover: none) { .cat .spin { animation: cat-girar 3.5s linear infinite; } }
@media (prefers-reduced-motion: reduce) { .cat .spin, .cat .draw, .cat .pulse { animation: none !important; } }
@media (max-width: 760px) {
  .cats { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -16px; padding: 4px 16px 8px; }
  .cat { flex: 0 0 44%; scroll-snap-align: start; }
  .cat-txt { padding: 12px; font-size: .9rem; white-space: nowrap; }
}
.link-all { color: var(--muted); font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.link-all:hover { color: var(--violet-bright); }

.cta-band {
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
  padding: 40px; border-radius: 20px; border: 1px solid var(--border-strong);
  background: radial-gradient(ellipse at 0% 0%, rgba(139, 92, 246, .28), transparent 60%), var(--surface);
}
.cta-band p { margin: 0; color: var(--muted); }
@media (max-width: 700px) { .cta-band { grid-template-columns: 1fr; padding: 26px; } }

/* ---------- Tarjetas ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.grid-pc { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.card {
  display: flex; flex-direction: column; color: var(--text);
  background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.card:hover { border-color: var(--border-strong); box-shadow: 0 18px 50px -24px var(--glow); transform: translateY(-3px); }
.card-img {
  position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 55%, rgba(139, 92, 246, .18), transparent 65%), #0a0812;
  border-bottom: 1px solid var(--border);
}
/* La foto se adapta al recuadro (no al revés), así todas las tarjetas miden lo mismo */
.card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Sin stock: la foto en escala de grises para diferenciarla de lo disponible */
.sin-stock img { filter: grayscale(1) brightness(.8) contrast(.95); }
.card-img .img-alt { position: absolute; inset: 0; opacity: 0; transition: opacity .35s ease; }
@media (hover: hover) { .card:hover .img-alt { opacity: 1; } }
.ph { width: 40%; color: var(--violet-bright); opacity: .8; }
.badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.badge {
  font-size: .74rem; font-weight: 600; letter-spacing: .04em;
  padding: 3px 10px; border-radius: 99px; background: rgba(5, 4, 10, .8); border: 1px solid var(--border-strong); color: var(--muted);
}
.badge-tag { color: #fff; background: rgba(139, 92, 246, .85); border-color: var(--violet-bright); }
.thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumbs button { width: 72px; height: 72px; padding: 0; border-radius: 10px; overflow: hidden; cursor: pointer; background: #0a0812; border: 1px solid var(--border-strong); opacity: .6; transition: opacity .15s, border-color .15s; }
.thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button:hover, .thumbs button.active { opacity: 1; border-color: var(--violet-bright); }
.badge-used { color: var(--warning); border-color: rgba(251, 191, 36, .4); }
.badge-sale { color: #fff; background: var(--sale); border-color: var(--sale); box-shadow: 0 0 16px -2px rgba(255, 106, 61, .6); }
.badge-out { color: var(--danger); border-color: rgba(248, 113, 113, .4); }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body h3 { margin: 0; }.card-cat { margin: 0; color: var(--violet-bright); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.card .price { margin-top: auto; padding-top: 10px; }

/* Tarjeta de PC armada */
.pc-name { font-size: 1.15rem; letter-spacing: .06em; text-transform: uppercase; }
.pc-name { color: var(--violet-bright); }
.spec-icons i { width: 5px; height: 5px; border-radius: 50%; background: var(--violet-bright); justify-self: center; }
.pc-name span { font-size: .9em; }
.card-desc { margin: 0 0 4px; color: var(--muted); font-size: .9rem; }
.spec-icons { list-style: none; margin: 4px 0; padding: 0; display: grid; gap: 6px; font-size: .88rem; }
.spec-icons li { display: grid; grid-template-columns: 16px 54px minmax(0, 1fr); gap: 7px; align-items: center; }
.spec-icons b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spec-icons span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spec-icons.completa b { white-space: normal; }
.spec-icons svg { width: 16px; height: 16px; color: var(--violet-bright); }
.spec-icons span { color: var(--muted); }
.spec-icons b { font-weight: 600; }
.fps { margin: 4px 0 0; font-size: .82rem; color: var(--success); }
.card-actions { display: flex; gap: 10px; margin-top: 12px; }
.card-actions .btn { flex: 1; }

/* Celular: tarjetas más compactas para que las fotos no ocupen toda la pantalla */
@media (max-width: 600px) {
  /* Componentes: dos por fila */
  .grid:not(.grid-pc) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .grid:not(.grid-pc) .card-img { aspect-ratio: 1; }
  .grid:not(.grid-pc) .card-body { padding: 10px 10px 12px; gap: 4px; }
  .grid:not(.grid-pc) .card-body h3 { font-size: .86rem; line-height: 1.25; }
  .grid:not(.grid-pc) .card-cat { font-size: .66rem; letter-spacing: .06em; }
  .grid:not(.grid-pc) .price-label { font-size: .6rem; }
  .grid:not(.grid-pc) .price-now { font-size: 1.12rem; }
  .grid:not(.grid-pc) .price-cuotas { font-size: .72rem; line-height: 1.35; }
  .grid:not(.grid-pc) .card-actions { flex-direction: column; gap: 6px; margin-top: 8px; }
  .grid:not(.grid-pc) .btn-sm { min-height: 36px; padding: 6px 10px; font-size: .84rem; }
  .grid:not(.grid-pc) .badges { top: 6px; left: 6px; }
  .grid:not(.grid-pc) .badge { font-size: .62rem; padding: 2px 7px; }
  /* PCs armadas: una por fila pero con la foto más baja, sin recortar el equipo */
  .grid-pc .card-img { aspect-ratio: 16 / 9; background: #fff; }
  .grid-pc .card-img img { object-fit: contain; }
}

.price { display: flex; flex-direction: column; }
.price-label { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.price-old { color: var(--muted); text-decoration: line-through; font-size: .85rem; }
.price-now { font-weight: 700; font-size: 1.55rem; color: #fff; line-height: 1.2; }
.price-cuotas { font-size: .84rem; color: var(--muted); }
.price-cuotas b { color: var(--violet-bright); font-weight: 600; }
.price-lg .price-now { font-size: 2.4rem; }
.price-lg .price-cuotas { font-size: 1rem; }

/* Gamas de PCs */
.gama { padding: 56px 0; border-top: 1px solid var(--border); }
.gama:first-of-type { border-top: 0; }
.gama-head { margin-bottom: 26px; }
.gama-head h2 { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.gama-head p { color: var(--muted); margin: 0; max-width: 60ch; }
.count { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 99px; font-size: .85rem; background: var(--violet-soft); border: 1px solid var(--border-strong); color: var(--violet-bright); }

/* ---------- Catálogo ---------- */
.catalog { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; padding-bottom: 72px; }
.filters {
  position: sticky; top: 136px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px;
  display: flex; flex-direction: column; gap: 22px; max-height: calc(100vh - 108px); overflow: auto;
}
.filters h4 { font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; color: var(--violet-bright); margin-bottom: 8px; }
.filters label.check { display: flex; align-items: center; gap: 8px; padding: 3px 0; font-size: .93rem; cursor: pointer; }
.filters .count { margin-left: auto; min-width: 0; height: auto; padding: 0; background: none; border: 0; color: var(--muted); font-size: .8rem; }
.range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.toolbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 18px; flex-wrap: wrap; }
.toolbar .search { flex: 1; min-width: 200px; }
.filters-toggle { display: none; }
.empty { padding: 48px; text-align: center; color: var(--muted); border: 1px dashed var(--border-strong); border-radius: var(--radius); }
@media (max-width: 860px) {
  .catalog { grid-template-columns: 1fr; }
  .filters { display: none; position: static; max-height: none; }
  .filters.open { display: flex; }
  .filters-toggle { display: inline-flex; }
}

/* ---------- Comparador de placas de video ---------- */
.comparador {
  --ca: var(--violet-bright); --cb: #38bdf8;
  margin-bottom: 24px; border-radius: 18px; border: 1px solid var(--border-strong); transition: border-color .2s;
  background: radial-gradient(ellipse at 0% 0%, rgba(139, 92, 246, .16), transparent 55%), radial-gradient(ellipse at 100% 100%, rgba(56, 189, 248, .08), transparent 55%), var(--surface);
  scroll-margin-top: 140px;
}
.comparador[hidden] { display: none; }
.comparador.flash { animation: comp-flash .9s ease; }
@keyframes comp-flash { 30% { box-shadow: 0 0 0 2px var(--violet-bright), 0 0 50px -10px var(--glow); } }
.comparador:hover { border-color: var(--violet); }
.comp-toggle {
  width: 100%; display: flex; align-items: center; gap: 14px; padding: 16px 20px; text-align: left;
  background: none; border: 0; color: var(--text); font: inherit; cursor: pointer; border-radius: 18px;
}
.comp-toggle-ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--violet-soft); border: 1px solid var(--border-strong); color: var(--violet-bright); }
.comp-toggle-ico svg { width: 20px; height: 20px; }
.comp-toggle-txt { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.comp-toggle-txt b { font-size: 1.02rem; }
.comp-toggle-txt small { color: var(--muted); font-size: .85rem; }
.comp-chevron { flex: none; width: 22px; height: 22px; color: var(--violet-bright); transition: transform .25s; }
.comparador.is-open .comp-chevron { transform: rotate(180deg); }
.comp-cuerpo { padding: 4px 24px 24px; border-top: 1px solid var(--border); }
.comp-cuerpo[hidden] { display: none; }
.comparador.is-open .comp-cuerpo { animation: comp-abrir .3s ease; }
@keyframes comp-abrir { from { opacity: 0; transform: translateY(-6px); } }
.comp-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin: 16px 0 18px; }
.comp-head h2 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); margin: 0; }
.seg { display: inline-flex; padding: 4px; border-radius: 99px; background: var(--bg); border: 1px solid var(--border-strong); }
.seg button { border: 0; background: none; color: var(--muted); font: inherit; font-weight: 600; font-size: .88rem; padding: 7px 16px; border-radius: 99px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--violet); color: #fff; box-shadow: 0 0 18px -4px var(--glow); }
.comp-selects { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px; }
.comp-selects label { position: relative; }
.comp-selects .comp-tag { position: absolute; left: 10px; top: 50%; translate: 0 -50%; pointer-events: none; }
.comp-selects select { padding-left: 44px; }
.comp-tag { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; font-size: .78rem; font-weight: 700; color: #05040a; background: var(--ca); }
.comp-tag.comp-b, .comp-b .comp-tag { background: var(--cb); }
.comp-cols { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: stretch; }
.comp-col { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; padding: 16px; border-radius: 14px; background: var(--bg); border: 1px solid var(--border); transition: border-color .3s, box-shadow .3s; }
.comp-col h3 { margin: 0; font-size: 1.15rem; }
.comp-col h3 small { color: var(--muted); font-weight: 500; }
.comp-col .btn { margin-top: auto; }
.comp-precio { font-size: .88rem; color: var(--muted); }
.comp-precio b { color: var(--text); }
.comp-a.es-ganador { border-color: var(--ca); box-shadow: 0 0 30px -14px var(--ca); }
.comp-b.es-ganador { border-color: var(--cb); box-shadow: 0 0 30px -14px var(--cb); }
.comp-vs { align-self: center; font-weight: 700; color: var(--muted); font-size: .9rem; }
.comp-veredicto { margin: 18px 0 14px; font-size: 1.08rem; }
.comp-veredicto em { font-style: normal; color: var(--violet-bright); font-weight: 700; }
.comp-rel { display: grid; gap: 10px; }
.comp-rel-row { display: grid; grid-template-columns: 130px 1fr; gap: 12px; align-items: center; font-size: .9rem; }
.comp-rel-row > span { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.comp-bar, .comp-fps { position: relative; height: 26px; border-radius: 6px; background: rgba(255, 255, 255, .04); overflow: hidden; display: flex; align-items: center; }
.comp-bar span, .comp-fps span { position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 6px; background: linear-gradient(90deg, color-mix(in srgb, var(--c) 35%, transparent), var(--c)); transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.comp-a { --c: var(--ca); }
.comp-b { --c: var(--cb); }
.comp-bar b, .comp-fps b { position: relative; margin-left: 10px; font-size: .85rem; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.comp-dif-precio { margin: 12px 0 0; font-size: .9rem; color: var(--muted); }
.comp-dif-precio b { color: var(--text); }
.comp-sub { margin: 24px 0 10px; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--violet-bright); }
.comp-juegos { display: grid; gap: 8px; }
.comp-juego { display: grid; grid-template-columns: 170px 1fr 1fr; gap: 10px; align-items: center; font-size: .9rem; }
.comp-juego-n { color: var(--text); }
.comp-fps { height: 22px; }
.comp-fps.no-rec { background: rgba(248, 113, 113, .08); }
.comp-fps.no-rec i { margin-left: 8px; font-size: .75rem; color: var(--danger); font-style: normal; }
.comp-nota { margin: 18px 0 0; font-size: .8rem; color: var(--muted); }
@media (max-width: 700px) {
  .comp-toggle { padding: 14px; }
  .comp-cuerpo { padding: 4px 14px 18px; }
  .comp-selects { grid-template-columns: 1fr; }
  .comp-cols { grid-template-columns: 1fr 1fr; }
  .comp-vs { display: none; }
  .comp-col { padding: 12px; }
  .comp-col h3 { font-size: 1rem; }
  .comp-rel-row { grid-template-columns: 90px 1fr; }
  .comp-juego { grid-template-columns: 1fr 1fr; }
  .comp-juego-n { grid-column: 1 / -1; font-size: .85rem; color: var(--muted); }
}

/* ---------- Formularios ---------- */
input, select, textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--bg);
  border: 1px solid var(--border-strong); border-radius: 12px; padding: 10px 14px; min-height: 46px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(139, 92, 246, .25); }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; min-height: 0; accent-color: var(--violet); flex: none; }
textarea { min-height: 110px; resize: vertical; }
.form { display: grid; gap: 18px; }
.form label > span, .form legend { display: block; font-weight: 500; margin-bottom: 6px; font-size: .95rem; }
.form fieldset { border: 0; padding: 0; margin: 0; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; }
.chips span {
  display: inline-block; margin: 0 !important; padding: 8px 16px; border-radius: 99px; cursor: pointer; font-size: .92rem;
  border: 1px solid var(--border-strong); background: var(--bg); transition: all .15s;
}
.chips input:checked + span { background: rgba(139, 92, 246, .22); border-color: var(--violet); color: #fff; box-shadow: 0 0 18px -6px var(--glow); }
.chips input:focus-visible + span { outline: 2px solid var(--violet-bright); outline-offset: 2px; }
.form-hint { font-size: .85rem; color: var(--muted); margin: 0; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: start; padding-bottom: 72px; }
.panel { background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--border); border-radius: 20px; padding: 30px; }
.panel h3 { margin-bottom: 12px; }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; display: grid; gap: 18px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 38px 1fr; gap: 14px; color: var(--muted); }
.steps li::before {
  content: counter(s); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px;
  background: var(--violet-soft); border: 1px solid var(--border-strong); color: var(--violet-bright); font-weight: 700;
}
.steps b { color: var(--text); display: block; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .panel { padding: 22px; } }

/* ---------- Producto ---------- */
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; padding: 36px 0 64px; }
.product-img { aspect-ratio: 1; border-radius: 20px; overflow: hidden; border: 1px solid var(--border); }
.product-img .card-img { aspect-ratio: auto; height: 100%; border: 0; }
.product-img .ph { width: 40%; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 12px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.product-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.stock-ok { color: var(--success); }
.stock-no { color: var(--danger); }
.buy-box { margin: 20px 0; padding: 22px; border: 1px solid var(--border-strong); border-radius: 18px; background: var(--surface); display: grid; gap: 14px; }
.specs { width: 100%; border-collapse: collapse; font-size: .95rem; }
.specs th, .specs td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.specs th { color: var(--muted); font-weight: 500; width: 40%; }
.pay-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .92rem; color: var(--muted); }
.pay-list b { color: var(--text); }
@media (max-width: 860px) { .product { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Info ---------- */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; padding-bottom: 64px; }
.faq details { border-bottom: 1px solid var(--border); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 10px 0 0; color: var(--muted); }
.contact-list { display: grid; gap: 14px; }
.brand-img { width: 100%; height: auto; max-width: 320px; margin: 0 auto 20px; border-radius: 14px; background: #fff; }
.contact-list a, .contact-list div { display: flex; gap: 12px; align-items: center; color: var(--text); }
.contact-list svg { width: 22px; height: 22px; color: var(--violet-bright); flex: none; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-2); margin-top: 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding: 44px 0 26px; }
.footer-grid h4 { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--violet-bright); }
.footer-grid a:not(.logo), .footer-grid > div > span { display: block; color: var(--text); font-size: .93rem; padding: 3px 0; }
.footer-grid span.muted { color: var(--muted); }
.footer-grid a:not(.logo):hover { color: var(--violet-bright); }
.footer-grid p { margin-top: 12px; font-size: .92rem; max-width: 42ch; }
.footer-bottom { padding: 16px 0 26px; border-top: 1px solid var(--border); font-size: .85rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }

.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 0 26px -4px rgba(37, 211, 102, .7);
  transition: transform .15s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- Ventana de pedido ---------- */
dialog.pedido {
  width: min(640px, 100% - 24px); max-height: min(92vh, 940px); padding: 0; margin: auto;
  color: var(--text); background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-strong); border-radius: 22px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8), 0 0 60px -30px var(--glow);
  overscroll-behavior: contain;
}
dialog.pedido[open] { animation: pedido-in .22s ease-out; }
dialog.pedido::backdrop { background: rgba(3, 2, 8, .72); backdrop-filter: blur(6px); }
@keyframes pedido-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.pedido-form { position: relative; padding: 26px; display: grid; gap: 22px; }
.pedido-cerrar {
  position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; background: transparent; color: var(--text); border: 1px solid var(--border-strong);
}
.pedido-cerrar:hover { border-color: var(--violet); }
.pedido-cerrar svg { width: 18px; height: 18px; }
.pedido-head { display: grid; grid-template-columns: 84px 1fr; gap: 16px; align-items: center; padding-right: 48px; }
.pedido-thumb { width: 84px; height: 84px; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); display: grid; place-items: center; background: radial-gradient(circle, rgba(139, 92, 246, .2), transparent 70%), #0a0812; }
.pedido-thumb > img { width: 100%; height: 100%; object-fit: cover; }
.pedido-thumb .ph { width: 56%; }
.pedido-head .kicker { margin-bottom: 2px; }
.pedido-head h2 { font-size: 1.3rem; letter-spacing: .05em; text-transform: uppercase; color: var(--violet-bright); margin: 0 0 4px; }
.pedido-head p { margin: 0; font-size: .88rem; color: var(--text); }
.pedido-campos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pedido-form label > span:not(.opcion-box) { display: block; font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.pedido-form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 12px; }
.pedido-form legend { display: flex; align-items: center; gap: 8px; font-weight: 600; margin-bottom: 12px; padding: 0; }
.pedido-form legend svg { width: 18px; height: 18px; color: var(--violet-bright); }
.opciones { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.opciones-3 { grid-template-columns: repeat(3, 1fr); }
.opcion { position: relative; cursor: pointer; }
.opcion input { position: absolute; opacity: 0; }
.opcion-box {
  display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 14px 16px; border-radius: 14px;
  background: var(--bg); border: 1px solid var(--border-strong); transition: border-color .15s, background .15s, box-shadow .15s;
}
.opcion-box b { font-size: .95rem; }
.opcion-box small { font-size: .78rem; color: var(--muted); }
.opcion-precio { margin-top: auto; padding-top: 8px; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.opcion-precio em { font-style: normal; font-weight: 700; font-size: 1.15rem; color: var(--violet-bright); }
.opcion-precio s { color: var(--muted); font-size: .8rem; }
.opcion-precio .opcion-total { flex-basis: 100%; }
.opcion:hover .opcion-box { border-color: var(--violet); }
.opcion input:checked + .opcion-box { border-color: var(--violet-bright); background: rgba(139, 92, 246, .14); box-shadow: 0 0 0 1px var(--violet-bright), 0 0 28px -10px var(--glow); }
.opcion input:focus-visible + .opcion-box { outline: 2px solid var(--violet-bright); outline-offset: 2px; }
.pedido-extra { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pedido-extra[hidden] { display: none; }
.pedido-extra label:only-child { grid-column: 1 / -1; }
.pedido-cantidad { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 600; }
.stepper { display: flex; border: 1px solid var(--border-strong); border-radius: 12px; overflow: hidden; }
.stepper button { width: 44px; background: var(--bg); color: var(--text); border: 0; font-size: 1.2rem; cursor: pointer; }
.stepper button:hover { background: var(--violet-soft); }
.stepper input { width: 56px; text-align: center; border: 0; border-radius: 0; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.pedido-mas summary { cursor: pointer; color: var(--violet-bright); font-size: .92rem; font-weight: 500; }
.pedido-mas[open] { display: grid; gap: 12px; }
.pedido-mas textarea { min-height: 70px; }
.pedido-resumen { background: var(--bg); border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; display: grid; gap: 10px; }
.pedido-resumen div { display: flex; justify-content: space-between; gap: 16px; font-size: .92rem; color: var(--muted); }
.pedido-resumen div b { color: var(--text); font-weight: 600; text-align: right; }
.pedido-resumen .total { border-top: 1px solid var(--border); padding-top: 12px; margin-top: 2px; color: var(--text); font-weight: 700; font-size: 1.05rem; align-items: center; }
.pedido-resumen .total small { color: var(--muted); font-weight: 400; }
.pedido-resumen .total b { font-size: 1.6rem; color: var(--violet-bright); text-shadow: 0 0 20px var(--glow); }
.pedido-resumen p { margin: 0; text-align: right; font-size: .85rem; color: var(--muted); }
.pedido-error { margin: 0; color: var(--danger); font-size: .92rem; }
.pedido-confirmar { min-height: 54px; font-size: 1.02rem; }
.pedido-nota { text-align: center; margin-top: -10px; }
@media (max-width: 640px) {
  dialog.pedido { width: 100%; max-width: 100%; max-height: 94svh; margin: auto 0 0; border-radius: 22px 22px 0 0; border-bottom: 0; }
  @keyframes pedido-in { from { transform: translateY(40px); } }
  .pedido-form { padding: 20px 16px 24px; gap: 18px; }
  .pedido-head { grid-template-columns: 64px 1fr; }
  .pedido-thumb { width: 64px; height: 64px; }
  .pedido-campos, .opciones-3, .pedido-extra { grid-template-columns: 1fr; }
  .opciones-3 .opcion-box { flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: 8px; }
  .opciones-3 .opcion-precio { margin: 0 0 0 auto; padding: 0; }
  .opciones-3 .opcion-box small { flex-basis: 100%; order: 3; }
}

.error-404 { padding: 80px 0 100px; max-width: 720px; }
.error-code { display: block; font-size: clamp(5rem, 16vw, 9rem); font-weight: 700; line-height: 1; letter-spacing: -.02em; background: linear-gradient(90deg, #7c3aed, var(--violet-bright)); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 12px; }
.loading { color: var(--muted); padding: 32px 0; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
