/* =============================================================
   ConfiguradorPC · styles.css
   1. Tokens · 2. Reset · 3. Utilidades · 4. Tipografía · 5. Componentes
   6. Secciones · 7. Herramientas · 8. Efectos · 9. Responsive · 10. Reduced motion
   ============================================================= */

/* 1. Tokens ---------------------------------------------------- */
:root {
  --bg: #0a0c11;            /* carbón azul noche */
  --bg-2: #0f1219;
  --surface: #131722;
  --surface-2: #1a1f2c;
  --line: #262c3b;
  --line-2: #343b4d;
  --ink: #eef1f7;
  --ink-2: #aab2c3;
  --ink-3: #7d869a;
  --gold: #d6b46a;          /* champán · lujo */
  --gold-2: #b8933f;
  --gold-ink: #1a1405;
  --cyan: #3fd8ff;          /* eléctrico · gaming */
  --cyan-2: #14b3d9;
  --cyan-ink: #04131a;
  --silver: #c9d3e0;        /* ofimática */
  --violet: #9d8cff;
  --ok: #4fd18b; --warn: #f2b84b; --bad: #ff6b6b;
  --gaming: var(--cyan); --workstation: var(--gold); --ofimatica: var(--silver);
  --display: "Barlow Condensed", "Oswald", Impact, sans-serif;
  --sans: "Manrope", "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;
  --radius: 14px; --radius-s: 8px;
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1240px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 20px 60px rgba(0, 0, 0, .45);
  --glow-cyan: 0 0 0 1px rgba(63,216,255,.25), 0 10px 40px rgba(63,216,255,.12);
  --glow-gold: 0 0 0 1px rgba(214,180,106,.3), 0 10px 40px rgba(214,180,106,.12);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f5f6f9; --bg-2: #eef0f5; --surface: #ffffff; --surface-2: #f3f5f9; --line: #dfe3ec; --line-2: #cbd2de;
  --ink: #12161f; --ink-2: #4a5468; --ink-3: #6b7588; --gold: #9a7420; --gold-2: #7d5d12; --gold-ink: #fff;
  --cyan: #0a8fb0; --cyan-2: #067a97; --cyan-ink: #fff; --silver: #4a5468; --violet: #5b48d6;
  --shadow: 0 16px 40px rgba(20, 24, 40, .12); --glow-cyan: 0 0 0 1px rgba(10,143,176,.25), 0 10px 30px rgba(10,143,176,.12); --glow-gold: 0 0 0 1px rgba(154,116,32,.3), 0 10px 30px rgba(154,116,32,.12);
  color-scheme: light;
}

/* 2. Reset ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { font-family: var(--sans); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1; letter-spacing: .005em; text-wrap: balance; font-weight: 700; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--cyan); color: var(--cyan-ink); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
table { border-collapse: collapse; }

/* 3. Utilidades ------------------------------------------------ */
.skip-link { position: fixed; top: -100px; left: 1rem; padding: .6rem 1rem; background: var(--cyan); color: var(--cyan-ink); z-index: 9999; border-radius: 8px; font-weight: 700; }
.skip-link:focus { top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(var(--maxw), 100%); margin-inline: auto; padding-inline: var(--gutter); }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.between { justify-content: space-between; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-2); }
.small { font-size: 13px; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.eyebrow.gaming { color: var(--cyan); } .eyebrow.workstation { color: var(--gold); } .eyebrow.ofimatica { color: var(--silver); }
.section { padding-block: clamp(40px, 7vw, 80px); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 26px; }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); }
.section-head p { color: var(--ink-2); max-width: 62ch; }
.hairline { border: 0; border-top: 1px solid var(--line); }
.hidden { display: none !important; }

/* 4. Tipografía ----------------------------------------------- */
.display-xl { font-size: clamp(44px, 8vw, 104px); line-height: .92; letter-spacing: -.005em; }
.display-l { font-size: clamp(36px, 5.5vw, 68px); }
.lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--ink-2); max-width: 62ch; }
.prose { max-width: 70ch; }
.prose p + p { margin-top: 1em; }
.prose h2 { font-size: 34px; margin: 1.6em 0 .5em; }
.prose h3 { font-size: 24px; margin: 1.4em 0 .4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: .6em 0; }
.prose li + li { margin-top: .35em; }
.prose a { color: var(--cyan); }

/* 5. Componentes ---------------------------------------------- */
/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 84%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 18px; min-height: 66px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 26px; font-weight: 700; letter-spacing: .01em; white-space: nowrap; }
.logo svg { width: 28px; height: 28px; flex: none; }
.logo em { font-style: normal; color: var(--cyan); }
.nav { display: none; gap: 4px; margin-left: 8px; }
.nav a { padding: 8px 12px; border-radius: 8px; color: var(--ink-2); font-weight: 600; font-size: 14px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); }
.icon-btn svg { width: 18px; height: 18px; }
.nav a.nav-cta, .nav a.nav-cta:hover { background: var(--cyan); color: var(--cyan-ink); }
.mobile-nav { display: none; border-top: 1px solid var(--line); background: var(--bg-2); }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 12px var(--gutter); border-bottom: 1px solid var(--line); font-weight: 600; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 10px; font-weight: 700; font-size: 15px; line-height: 1; border: 1px solid transparent; transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background .2s; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn-buy, .btn-buy:hover { background: var(--cyan); color: var(--cyan-ink); box-shadow: var(--glow-cyan); }
.btn-gold, .btn-gold:hover { background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: var(--gold-ink); box-shadow: var(--glow-gold); }
.btn-ghost { border-color: var(--line-2); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--ink-3); }
.btn-sm { padding: 8px 12px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 16px 28px; font-size: 17px; border-radius: 12px; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* Pills / badges */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .02em; border: 1px solid var(--line-2); color: var(--ink-2); background: var(--surface-2); white-space: nowrap; }
.pill.gaming { color: var(--cyan); border-color: color-mix(in srgb, var(--cyan) 40%, transparent); background: color-mix(in srgb, var(--cyan) 10%, transparent); }
.pill.workstation { color: var(--gold); border-color: color-mix(in srgb, var(--gold) 45%, transparent); background: color-mix(in srgb, var(--gold) 10%, transparent); }
.pill.ofimatica { color: var(--silver); border-color: color-mix(in srgb, var(--silver) 40%, transparent); background: color-mix(in srgb, var(--silver) 8%, transparent); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.badge-gold { background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: var(--gold-ink); }
.badge-cyan { background: var(--cyan); color: var(--cyan-ink); }
.badge-amazon { background: var(--surface-2); border: 1px solid var(--line-2); color: var(--ink-2); }
.badge svg { width: 13px; height: 13px; }

/* Tarjeta de producto */
.card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .35s var(--ease-out), border-color .3s, box-shadow .35s var(--ease-out); }
.card:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: var(--shadow); }
.card-media { position: relative; aspect-ratio: 4 / 3; background: radial-gradient(ellipse at 50% 60%, var(--surface-2), var(--bg-2) 70%); display: grid; place-items: center; padding: 14px; overflow: hidden; }
.card-media img { max-height: 100%; width: auto; object-fit: contain; filter: drop-shadow(0 18px 24px rgba(0,0,0,.45)); transition: transform .5s var(--ease-out); }
.card:hover .card-media img { transform: scale(1.04); }
.card-media .badges { position: absolute; top: 10px; left: 10px; right: 56px; display: flex; flex-wrap: wrap; gap: 6px; z-index: 2; pointer-events: none; }
.card-media .cmp { position: absolute; top: 10px; right: 10px; z-index: 3; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-brand { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.card-title { font-family: var(--sans); font-weight: 700; font-size: 15px; line-height: 1.3; letter-spacing: 0; }
.card-title a::after { content: ""; position: absolute; inset: 0; }
.card-key { display: flex; align-items: baseline; gap: 6px; font-family: var(--display); font-size: 30px; line-height: 1; color: var(--ink); }
.card-key small { font-family: var(--mono); font-size: 12px; color: var(--ink-3); letter-spacing: .05em; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 8px; border-top: 1px solid var(--line); position: relative; z-index: 1; }
.price { font-family: var(--mono); font-weight: 600; font-size: 17px; color: var(--ink); font-variant-numeric: tabular-nums; }
.price small { display: block; font-size: 10px; color: var(--ink-3); font-weight: 400; letter-spacing: .04em; }
.price.gold { color: var(--gold); }
.score-meter { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.score-meter i { display: block; width: 46px; height: 5px; border-radius: 3px; background: var(--line-2); overflow: hidden; }
.score-meter i::before { content: ""; display: block; height: 100%; width: var(--w, 50%); background: linear-gradient(90deg, var(--cyan-2), var(--cyan)); }
.stars { color: var(--gold); font-size: 12px; letter-spacing: -1px; }

/* Radar */
.radar { width: 100%; max-width: 360px; margin-inline: auto; }
.radar text { font-family: var(--mono); font-size: 10px; fill: var(--ink-2); }
.radar .grid-line { fill: none; stroke: var(--line-2); stroke-width: 1; }
.radar .axis { stroke: var(--line); }
.radar .poly { fill: color-mix(in srgb, var(--cyan) 22%, transparent); stroke: var(--cyan); stroke-width: 2; stroke-linejoin: round; }
.radar .poly.p2 { fill: color-mix(in srgb, var(--gold) 20%, transparent); stroke: var(--gold); }
.radar .poly.p3 { fill: color-mix(in srgb, var(--violet) 20%, transparent); stroke: var(--violet); }
.radar .poly.p4 { fill: color-mix(in srgb, var(--ok) 20%, transparent); stroke: var(--ok); }
.radar .dot { fill: var(--cyan); }

/* Tabla de especificaciones */
.spec-table { width: 100%; font-size: 14px; }
.spec-table th, .spec-table td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { width: 42%; color: var(--ink-2); font-weight: 600; }
.spec-table td { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.spec-table tr.group th { background: var(--surface-2); color: var(--ink); font-family: var(--display); font-size: 16px; letter-spacing: .04em; text-transform: uppercase; }
.spec-table .best { color: var(--cyan); font-weight: 700; }

/* Slots de anuncio (placeholders, vacíos) */
.ad-slot { display: grid; place-items: center; min-height: 90px; border: 1px dashed var(--line-2); border-radius: var(--radius-s); color: var(--ink-3); font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; background: repeating-linear-gradient(45deg, transparent 0 10px, color-mix(in srgb, var(--line) 40%, transparent) 10px 11px); margin-block: 24px; }
.ad-slot.banner { min-height: 90px; } .ad-slot.incontent { min-height: 250px; } .ad-slot.lateral { min-height: 600px; margin: 0; position: sticky; top: 84px; }
.ads-off .ad-slot { display: none; }
.ad-toast { position: fixed; right: 16px; bottom: 16px; width: 300px; max-width: calc(100vw - 32px); background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px; box-shadow: var(--shadow); z-index: 80; display: none; }
.ad-toast.show { display: block; }
.ad-toast .ad-slot { margin: 0; min-height: 120px; }
.ad-toast button { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); }
dialog.ad-dialog { border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); border-radius: 16px; padding: 20px; width: min(520px, calc(100vw - 32px)); box-shadow: var(--shadow); }
dialog.ad-dialog::backdrop { background: rgba(0,0,0,.6); }
dialog.ad-dialog .ad-slot { margin: 12px 0; min-height: 250px; }

/* Barra de comparación */
.compare-bar { position: fixed; left: 50%; transform: translate(-50%, 120%); bottom: 18px; width: min(920px, calc(100vw - 24px)); background: var(--surface); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: var(--shadow); padding: 10px 14px; display: flex; align-items: center; gap: 12px; z-index: 70; transition: transform .4s var(--ease-out); }
.compare-bar.show { transform: translate(-50%, 0); }
body.has-compare { padding-bottom: 96px; }
.compare-bar .slots { display: flex; gap: 8px; flex: 1; padding: 6px 6px 0 0; overflow: visible; }
.slot-wrap { position: relative; width: 52px; height: 52px; flex: none; }
.slot-wrap .thumb { width: 52px; height: 52px; border-radius: 10px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line-2); display: grid; place-items: center; }
.slot-wrap .thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.slot-wrap .remove { position: absolute; top: -8px; right: -8px; width: 22px; height: 22px; border-radius: 50%; background: var(--bad); color: #fff; font-size: 14px; font-weight: 700; line-height: 1; display: grid; place-items: center; }
.compare-bar .count { font-family: var(--mono); font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.btn-compare { background: var(--surface-2); border: 1px solid var(--line-2); color: var(--ink); }
.btn-compare.on, .btn-compare.on:hover { background: var(--cyan); color: var(--cyan-ink); border-color: var(--cyan); }
.btn-compare svg { width: 16px; height: 16px; }

/* Pestañas / filtros */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tab { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); font-weight: 600; font-size: 14px; background: var(--surface); }
.tab[aria-selected="true"], .tab.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 20px; }
.filters select, .filters input { background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px; padding: 9px 12px; color: var(--ink); min-width: 0; }
.filters label { font-size: 13px; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
.range { -webkit-appearance: none; appearance: none; width: 220px; height: 4px; background: var(--line-2); border-radius: 2px; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--cyan); border: 2px solid var(--bg); box-shadow: 0 0 0 2px var(--cyan); }
.range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--cyan); border: 2px solid var(--bg); }

/* Paneles / alertas */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.panel h3 { font-size: 22px; margin-bottom: 10px; }
.notice { border-left: 3px solid var(--gold); background: color-mix(in srgb, var(--gold) 8%, transparent); padding: 12px 14px; border-radius: 0 10px 10px 0; font-size: 14px; color: var(--ink-2); }
.notice.cyan { border-color: var(--cyan); background: color-mix(in srgb, var(--cyan) 8%, transparent); }
.notice.warn { border-color: var(--warn); background: color-mix(in srgb, var(--warn) 10%, transparent); }
.notice.bad { border-color: var(--bad); background: color-mix(in srgb, var(--bad) 10%, transparent); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14px; }
.kv dt { color: var(--ink-3); }
.kv dd { font-family: var(--mono); font-variant-numeric: tabular-nums; }
details.faq { border-top: 1px solid var(--line); padding: 14px 0; }
details.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.faq summary::after { content: "+"; font-family: var(--mono); color: var(--ink-3); }
details.faq[open] summary::after { content: "–"; }
details.faq p { margin-top: 10px; color: var(--ink-2); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding-block: 40px 30px; color: var(--ink-2); font-size: 14px; }
.site-footer .cols { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-bottom: 26px; }
.site-footer h4 { font-size: 16px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); margin-bottom: 10px; }
.site-footer a:hover { color: var(--ink); }
.site-footer li { list-style: none; margin-bottom: 6px; }
.site-footer ul { padding: 0; }
.disclosure { font-size: 12.5px; color: var(--ink-3); border-top: 1px solid var(--line); padding-top: 16px; max-width: 90ch; }

/* 6. Secciones ------------------------------------------------ */
/* Hero */
.hero { position: relative; overflow: hidden; padding-block: clamp(48px, 9vw, 110px) clamp(40px, 6vw, 70px); isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto; height: 120%; background: radial-gradient(60% 50% at 70% 30%, color-mix(in srgb, var(--cyan) 18%, transparent), transparent 70%), radial-gradient(40% 40% at 20% 80%, color-mix(in srgb, var(--gold) 14%, transparent), transparent 70%); z-index: -1; pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(color-mix(in srgb, var(--line) 50%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--line) 50%, transparent) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 70%); z-index: -1; opacity: .5; }
.hero .wrap { display: grid; gap: 30px; align-items: center; }
.hero h1 { margin: 12px 0 16px; }
.hero h1 em { font-style: normal; color: var(--cyan); }
.hero .lead { margin-bottom: 26px; }
.hero-visual { position: relative; aspect-ratio: 1; max-width: 520px; width: 100%; margin-inline: auto; display: grid; place-items: center; }
.hero-visual img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 30px 50px rgba(0,0,0,.6)); }
.hero-visual .halo { position: absolute; inset: 10%; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--cyan) 30%, transparent), transparent 65%); filter: blur(30px); z-index: -1; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 18px 34px; margin-top: 26px; }
.hero-stats b { display: block; font-family: var(--display); font-size: 34px; line-height: 1; }
.hero-stats span { font-size: 12px; color: var(--ink-3); letter-spacing: .06em; text-transform: uppercase; font-family: var(--mono); }

/* Puertas de las tres bases */
.doors { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.door { position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); padding: 26px 24px 24px; min-height: 250px; display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate; transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out); }
.door:hover { transform: translateY(-4px); }
.door::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 60% at 80% 10%, var(--door-glow), transparent 70%); z-index: -1; opacity: .9; }
.door.gaming { --door-glow: color-mix(in srgb, var(--cyan) 30%, transparent); }
.door.workstation { --door-glow: color-mix(in srgb, var(--gold) 30%, transparent); }
.door.ofimatica { --door-glow: color-mix(in srgb, var(--silver) 22%, transparent); }
.door.gaming:hover { box-shadow: var(--glow-cyan); } .door.workstation:hover { box-shadow: var(--glow-gold); }
.door img { position: absolute; top: 14px; right: 14px; width: 42%; max-height: 55%; object-fit: contain; filter: drop-shadow(0 16px 24px rgba(0,0,0,.5)); z-index: -1; }
.door h3 { font-size: 34px; margin: 6px 0 6px; }
.door p { color: var(--ink-2); font-size: 14px; max-width: 34ch; }
.door .arrow { margin-top: 14px; font-weight: 700; font-size: 14px; }
.door.gaming .arrow { color: var(--cyan); } .door.workstation .arrow { color: var(--gold); } .door.ofimatica .arrow { color: var(--silver); }

/* Vitrina de montajes */
.build-card { position: relative; display: grid; grid-template-rows: auto 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out); }
.build-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.build-card .media { position: relative; aspect-ratio: 16 / 11; background: radial-gradient(ellipse at 50% 70%, var(--surface-2), var(--bg) 75%); display: grid; place-items: center; padding: 20px; }
.build-card .media img { max-height: 100%; object-fit: contain; filter: drop-shadow(0 24px 30px rgba(0,0,0,.55)); }
.build-card .media .pill { position: absolute; top: 12px; left: 12px; }
.build-card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; }
.build-card h3 { font-size: 30px; }
.build-card h3 a::after { content: ""; position: absolute; inset: 0; }
.build-card .parts { display: flex; flex-wrap: wrap; gap: 6px; }
.build-card .parts span { font-size: 12px; padding: 3px 8px; border-radius: 6px; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }
.build-card .total { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.build-card .total b { font-family: var(--display); font-size: 34px; color: var(--gold); line-height: 1; }
.build-card .total small { font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.build-card.lux { border-color: color-mix(in srgb, var(--gold) 40%, var(--line)); }
.build-card.lux .media { background: radial-gradient(ellipse at 50% 70%, color-mix(in srgb, var(--gold) 12%, var(--surface-2)), var(--bg) 75%); }

/* Ficha de producto */
.ficha-head { display: grid; gap: 28px; align-items: start; }
.gallery { display: grid; gap: 10px; }
.gallery .main { aspect-ratio: 1; background: radial-gradient(ellipse at 50% 60%, var(--surface-2), var(--bg-2) 70%); border: 1px solid var(--line); border-radius: var(--radius); display: grid; place-items: center; padding: 24px; overflow: hidden; }
.gallery .main img { max-height: 100%; object-fit: contain; filter: drop-shadow(0 30px 40px rgba(0,0,0,.55)); transition: transform .4s var(--ease-out); }
.gallery .thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.gallery .thumbs button { flex: none; width: 66px; height: 66px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); padding: 4px; }
.gallery .thumbs button.on { border-color: var(--cyan); box-shadow: 0 0 0 1px var(--cyan); }
.gallery .thumbs img { width: 100%; height: 100%; object-fit: contain; }
.ficha-info h1 { font-size: clamp(30px, 4vw, 48px); margin: 8px 0 10px; }
.ficha-info .rating { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); margin-bottom: 14px; }
.keyfacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin: 16px 0; }
.keyfacts div { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.keyfacts b { display: block; font-family: var(--display); font-size: 28px; line-height: 1; color: var(--ink); }
.keyfacts span { font-size: 11px; color: var(--ink-3); font-family: var(--mono); letter-spacing: .05em; text-transform: uppercase; }
.verdict { font-size: 17px; color: var(--ink); border-left: 3px solid var(--gold); padding-left: 14px; margin: 14px 0; }
.buybox { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 18px; display: grid; gap: 12px; }
.buybox .price { font-size: 34px; font-family: var(--display); font-weight: 700; }
.buybox .price small { font-family: var(--mono); font-size: 11px; }
.buybox .seller { font-size: 13px; color: var(--ink-2); }
.sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--surface); border-top: 1px solid var(--line-2); padding: 10px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 12px; transform: translateY(110%); transition: transform .35s var(--ease-out); }
.sticky-buy.show { transform: none; }
.pc-cols { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.pc-cols h3 { font-size: 20px; display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.pc-cols h3 svg { width: 1.1em; height: 1.1em; flex: none; }
.pc-cols ul { padding-left: 0; list-style: none; }
.pc-cols li { display: flex; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.pc-cols li svg { width: 16px; height: 16px; flex: none; margin-top: 3px; }
.pros h3, .pros li svg { color: var(--ok); }
.cons h3, .cons li svg { color: var(--warn); }
.review { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: var(--surface); font-size: 14px; }
.review .meta { display: flex; justify-content: space-between; gap: 10px; color: var(--ink-3); font-size: 12px; margin-bottom: 6px; flex-wrap: wrap; }
.review .verified { color: var(--ok); display: inline-flex; align-items: center; gap: 4px; }
.review .verified svg { width: 13px; height: 13px; }

/* Montaje (showroom) */
.build-hero > *, .ficha-head > *, .cfg > *, .with-side > * { min-width: 0; }
.build-hero { display: grid; gap: 28px; align-items: start; }
.build-hero .showcase { position: relative; aspect-ratio: 1; background: radial-gradient(ellipse at 50% 65%, var(--surface-2), var(--bg) 72%); border: 1px solid var(--line); border-radius: var(--radius); display: grid; place-items: center; padding: 30px; overflow: hidden; }
.build-hero .showcase img { max-height: 100%; object-fit: contain; filter: drop-shadow(0 40px 60px rgba(0,0,0,.6)); }
.build-hero .showcase .halo { position: absolute; inset: 15%; border-radius: 50%; background: radial-gradient(circle, var(--halo, color-mix(in srgb, var(--cyan) 28%, transparent)), transparent 65%); filter: blur(34px); }
.build-hero.workstation .showcase .halo { --halo: color-mix(in srgb, var(--gold) 30%, transparent); }
.parts-list { display: grid; gap: 8px; }
.part { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.part .thumb { width: 64px; height: 64px; border-radius: 8px; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; }
.part .thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.part .role { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.part .name { font-weight: 700; font-size: 14px; line-height: 1.3; }
.part .key { font-size: 12px; color: var(--ink-2); }
.part .right { text-align: right; display: grid; gap: 6px; justify-items: end; }
.part .alt { font-size: 11px; color: var(--ink-3); }
.build-total { background: var(--surface); border: 1px solid color-mix(in srgb, var(--gold) 40%, var(--line)); border-radius: var(--radius); padding: 18px; display: grid; gap: 12px; }
.build-total .sum { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.build-total .sum b { font-family: var(--display); font-size: 44px; color: var(--gold); line-height: 1; }
.hud { display: grid; gap: 8px; }
.hud .bar { display: grid; grid-template-columns: 70px 1fr auto; gap: 10px; align-items: center; font-family: var(--mono); font-size: 12px; }
.hud .bar i { display: block; height: 8px; border-radius: 4px; background: var(--line-2); overflow: hidden; }
.hud .bar i::before { content: ""; display: block; height: 100%; width: var(--w, 40%); background: linear-gradient(90deg, var(--cyan-2), var(--cyan)); box-shadow: 0 0 12px var(--cyan); }
.budget-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.budget-tabs a { font-family: var(--mono); font-size: 13px; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface); }
.budget-tabs a[aria-current="page"] { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); }

/* Comparador */
.cmp-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.cmp-table { min-width: 640px; width: 100%; font-size: 14px; }
.cmp-table th, .cmp-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.cmp-table th:first-child, .cmp-table td:first-child { position: sticky; left: 0; background: var(--surface); color: var(--ink-2); font-weight: 600; min-width: 160px; z-index: 1; }
.cmp-table thead th { vertical-align: bottom; }
.cmp-table .p-head { display: grid; gap: 6px; }
.cmp-table .p-head img { width: 100px; height: 80px; object-fit: contain; }
.cmp-table .p-head .name { font-weight: 700; font-size: 13px; }
.cmp-table td { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.cmp-table td.best { color: var(--cyan); font-weight: 700; }
.cmp-table .remove { color: var(--bad); font-size: 12px; }
.cmp-empty { text-align: center; padding: 60px 20px; color: var(--ink-2); }

/* Configurador */
.cfg { display: grid; gap: 20px; align-items: start; }
.cfg-steps { display: grid; gap: 6px; align-content: start; }
.cfg-step { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); text-align: left; }
.cfg-step.on { border-color: var(--cyan); box-shadow: var(--glow-cyan); }
.cfg-step .ico { width: 44px; height: 44px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; }
.cfg-step .ico img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.cfg-step .ico svg { width: 22px; height: 22px; color: var(--ink-2); }
.cfg-step .lbl { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.cfg-step .val { display: block; font-size: 13px; font-weight: 700; line-height: 1.25; }
.cfg-step .val.empty { color: var(--ink-3); font-weight: 500; }
.cfg-step .st { font-family: var(--mono); font-size: 12px; }
.cfg-step .st.ok { color: var(--ok); } .cfg-step .st.bad { color: var(--bad); } .cfg-step .st.warn { color: var(--warn); }
.cfg-pick { display: grid; gap: 10px; align-content: start; }
.cfg-option { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); text-align: left; }
.cfg-option:hover { border-color: var(--line-2); }
.cfg-option.on { border-color: var(--cyan); }
.cfg-option.incompat { opacity: .55; }
.cfg-option .thumb { width: 56px; height: 56px; border-radius: 8px; background: var(--surface-2); overflow: hidden; display: grid; place-items: center; }
.cfg-option .thumb img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.cfg-option .name { display: block; font-weight: 700; font-size: 13px; line-height: 1.25; }
.cfg-option .why { display: block; font-size: 11px; color: var(--bad); }
.cfg-option .key { display: block; font-size: 12px; color: var(--ink-2); }
.cfg-summary { position: sticky; top: 84px; display: grid; gap: 12px; }
.pc-visual { aspect-ratio: 4 / 5; border-radius: var(--radius); background: radial-gradient(ellipse at 50% 70%, var(--surface-2), var(--bg) 75%); border: 1px solid var(--line); overflow: hidden; }
.pc-visual svg { width: 100%; height: 100%; }
.pc-visual .bay { fill: var(--surface-2); stroke: var(--line-2); stroke-width: 1.5; transition: fill .4s, stroke .4s; }
.pc-visual .bay.filled { fill: color-mix(in srgb, var(--cyan) 25%, var(--surface-2)); stroke: var(--cyan); filter: drop-shadow(0 0 8px color-mix(in srgb, var(--cyan) 60%, transparent)); }
.pc-visual text { font-family: var(--mono); font-size: 9px; fill: var(--ink-3); letter-spacing: .08em; }
.pc-visual .bay.filled + text { fill: var(--ink); }

/* 7. Herramientas --------------------------------------------- */
.tool { display: grid; gap: 18px; }
.tool .form { display: grid; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.tool .form label { display: grid; gap: 6px; font-size: 13px; color: var(--ink-2); font-weight: 600; }
.tool .form select, .tool .form input { background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 11px 12px; color: var(--ink); width: 100%; }
.result { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 20px; display: grid; gap: 12px; }
.result .big { font-family: var(--display); font-size: clamp(38px, 6vw, 64px); line-height: 1; color: var(--cyan); }
.result .big.gold { color: var(--gold); }
.result .grade { display: inline-flex; padding: 6px 12px; border-radius: 8px; font-weight: 700; font-size: 14px; }
.grade.ok { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); }
.grade.warn { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }
.grade.bad { background: color-mix(in srgb, var(--bad) 18%, transparent); color: var(--bad); }
.steps3 { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: paso; }
.steps3 > div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.steps3 > div::before { counter-increment: paso; content: counter(paso, decimal-leading-zero); font-family: var(--mono); color: var(--cyan); font-size: 12px; letter-spacing: .1em; }
.steps3 h3 { font-size: 20px; margin: 6px 0; }
.tools-grid a.panel { display: grid; gap: 6px; }
.tools-grid a.panel:hover { border-color: var(--cyan); }

/* 8. Efectos --------------------------------------------------- */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }
.shine { position: relative; overflow: hidden; }
.shine::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.08) 50%, transparent 60%); transform: translateX(-100%); transition: transform .9s var(--ease-out); pointer-events: none; }
.shine:hover::after { transform: translateX(100%); }
.marquee { display: flex; gap: 40px; overflow: hidden; white-space: nowrap; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); border-block: 1px solid var(--line); padding: 10px 0; }
.marquee div { display: flex; gap: 40px; animation: slide 40s linear infinite; }
@keyframes slide { to { transform: translateX(-50%); } }

/* 9. Responsive ----------------------------------------------- */
@media (min-width: 720px) {
  .hero .wrap { grid-template-columns: 1.1fr .9fr; }
  .ficha-head { grid-template-columns: 1fr 1fr; }
  .build-hero { grid-template-columns: .9fr 1.1fr; }
  .cfg { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .nav { display: flex; }
  .icon-btn.menu { display: none; }
  .ficha-head { grid-template-columns: 1.05fr .95fr; }
  .cfg { grid-template-columns: 300px 1fr 300px; }
  .with-side { display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: start; }
}
@media (max-width: 719px) {
  .part { grid-template-columns: 52px 1fr; }
  .part .right { grid-column: 1 / -1; justify-items: start; text-align: left; }
  .card-key { font-size: 26px; }
  .with-side .ad-slot.lateral { display: none; }
}

/* 10. Reduced motion (solo efectos intrusivos) ----------------- */
@media (prefers-reduced-motion: reduce) {
  .marquee div { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* =============================================================
   11. Rediseño "showroom" · escena, 3D, foco, escenas sticky
   ============================================================= */
/* Hero como escena */
.hero.scene { min-height: min(88vh, 900px); display: grid; align-items: center; padding-block: clamp(40px, 6vw, 80px); }
.hero.scene .wrap { position: relative; z-index: 1; }
.hero .halo { animation: pulse 6s ease-in-out infinite; }
.type-line { display: block; min-height: 1.05em; color: var(--cyan); }
.type-line .caret { display: inline-block; width: .06em; height: .9em; background: var(--cyan); margin-left: .08em; vertical-align: -.08em; animation: blink 1s steps(1) infinite; }
.hero-visual { perspective: 1200px; }
.hero-visual img { transform-style: preserve-3d; will-change: transform; animation: float 7s ease-in-out infinite; }
.hero-visual.tilting img { animation: none; transition: transform .25s ease-out; }
.hero-scan { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(255,255,255,.012) 3px 4px); mask-image: linear-gradient(#000, transparent 70%); -webkit-mask-image: linear-gradient(#000, transparent 70%); }
.orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; z-index: -1; pointer-events: none; animation: drift 18s ease-in-out infinite alternate; }
.orb.c { width: 46vw; height: 46vw; right: -10vw; top: -10vw; background: radial-gradient(circle, color-mix(in srgb, var(--cyan) 40%, transparent), transparent 70%); }
.orb.g { width: 30vw; height: 30vw; left: -8vw; bottom: -10vw; background: radial-gradient(circle, color-mix(in srgb, var(--gold) 35%, transparent), transparent 70%); animation-delay: -6s; }
@keyframes float { 0%, 100% { transform: translateY(0) rotateX(0) rotateY(-6deg); } 50% { transform: translateY(-14px) rotateX(2deg) rotateY(6deg); } }
@keyframes pulse { 0%, 100% { opacity: .7; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes drift { to { transform: translate(-6vw, 4vw); } }

/* Foco que sigue al cursor + inclinación 3D */
.spot { position: relative; --mx: 50%; --my: 50%; }
.spot::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s; background: radial-gradient(420px circle at var(--mx) var(--my), color-mix(in srgb, var(--cyan) 14%, transparent), transparent 55%); z-index: 0; }
.spot:hover::before { opacity: 1; }
.spot.gold::before { background: radial-gradient(420px circle at var(--mx) var(--my), color-mix(in srgb, var(--gold) 16%, transparent), transparent 55%); }
.spot > * { position: relative; z-index: 1; }
.tilt { transform-style: preserve-3d; transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out); }
.tilt.on { transition: transform .08s linear; }
.sweep { position: relative; overflow: hidden; }
.sweep::after { content: ""; position: absolute; inset: -40% -60%; background: linear-gradient(105deg, transparent 42%, rgba(255,255,255,.10) 50%, transparent 58%); transform: translateX(-70%); transition: transform 1.1s var(--ease-out); pointer-events: none; z-index: 2; }
.sweep:hover::after { transform: translateX(70%); }

/* Puertas grandes con producto */
.doors.xl .door { min-height: 340px; padding: 30px 26px 28px; }
.doors.xl .door img { width: 58%; max-height: 62%; top: 10px; right: 6px; transition: transform .6s var(--ease-out); }
.doors.xl .door:hover img { transform: translateY(-8px) scale(1.04) rotate(-2deg); }
.doors.xl .door h3 { font-size: clamp(34px, 3.4vw, 46px); }
.door .n { font-family: var(--mono); font-size: 12px; color: var(--ink-3); margin-top: 6px; }

/* Escena sticky: así se monta un PC */
.assembly { display: grid; gap: 30px; }
.assembly .visual { position: sticky; top: 84px; align-self: start; }
.assembly .pc-visual { aspect-ratio: 4 / 5; max-height: calc(100vh - 120px); margin-inline: auto; }
.assembly .steps { display: grid; gap: 14px; }
.assembly .step { display: grid; grid-template-columns: 84px 1fr; gap: 16px; align-items: center; padding: 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); transition: border-color .4s, transform .5s var(--ease-out), box-shadow .5s; }
.assembly .step.on { border-color: var(--cyan); box-shadow: var(--glow-cyan); transform: translateX(6px); }
.assembly .step .n { font-family: var(--display); font-size: 40px; line-height: 1; color: var(--line-2); transition: color .4s; }
.assembly .step.on .n { color: var(--cyan); }
.assembly .step .thumb { width: 84px; height: 84px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; }
.assembly .step .thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6px; filter: drop-shadow(0 8px 12px rgba(0,0,0,.5)); }
.assembly .step h3 { font-size: 24px; }
.assembly .step p { color: var(--ink-2); font-size: 14px; }
.assembly .step .who { font-family: var(--mono); font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.assembly .step .who a { color: var(--cyan); }
.pc-visual .bay.filled { transition: fill .5s, stroke .5s, filter .5s; }
.pc-visual .bay.now { stroke: var(--gold); filter: drop-shadow(0 0 12px color-mix(in srgb, var(--gold) 70%, transparent)); }

/* Versus */
.versus { display: grid; gap: 0; grid-template-columns: 1fr auto 1fr; align-items: stretch; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.versus .side { padding: 24px; display: grid; gap: 12px; align-content: start; }
.versus .side img { height: 150px; width: auto; max-width: 100%; margin-inline: auto; object-fit: contain; filter: drop-shadow(0 18px 24px rgba(0,0,0,.5)); }
.versus .vs { display: grid; place-items: center; padding: 0 12px; font-family: var(--display); font-size: 44px; color: var(--gold); background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--gold) 14%, transparent), transparent); }
.versus .side h3 { font-size: 22px; font-family: var(--sans); font-weight: 800; }
.vbar { display: grid; grid-template-columns: 110px 1fr auto; gap: 10px; align-items: center; font-family: var(--mono); font-size: 12px; }
.vbar i { display: block; height: 8px; border-radius: 4px; background: var(--line-2); overflow: hidden; }
.vbar i::before { content: ""; display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--cyan-2), var(--cyan)); transition: width 1.2s var(--ease-out); }
.in .vbar i::before, .vbar.in i::before { width: var(--w, 50%); }
.versus .side.b .vbar i::before { background: linear-gradient(90deg, var(--gold-2), var(--gold)); }

/* Reveal escalonado */
.js .reveal { transform: translateY(22px) scale(.985); }
.js .stagger > .reveal { transition-delay: calc(var(--i, 0) * 70ms); }
.js .reveal.in { transform: none; }

/* Cifras */
.count { font-variant-numeric: tabular-nums; }

/* Ficha: galería con giro */
.gallery { perspective: 1000px; }
.gallery .main { transform-style: preserve-3d; }

/* HUD barras animadas al entrar */
.hud .bar i::before { transition: width 1.1s var(--ease-out); }
.js .hud:not(.in) .bar i::before { width: 0 !important; }

@media (max-width: 719px) {
  .assembly .visual { position: relative; top: 0; }
  .assembly .pc-visual { max-height: 320px; aspect-ratio: 5 / 4; }
  .versus { grid-template-columns: 1fr; } .versus .vs { padding: 8px; }
  .hero.scene { min-height: 0; }
}
@media (max-width: 899px) {
  .hero.scene { min-height: 0; }
}
@media (min-width: 720px) { .assembly { grid-template-columns: 1fr 1fr; } }
@media (prefers-reduced-motion: reduce) {
  .hero-visual img, .hero .halo, .orb { animation: none; }
  .tilt, .tilt.on { transform: none !important; transition: none; }
  .sweep::after { display: none; }
  .type-line .caret { animation: none; }
  .js .stagger > .reveal { transition-delay: 0s; }
}

/* Fix: imágenes recortadas altas no deben estirar las tarjetas */
.build-card .media, .card-media, .door { position: relative; }
.build-card .media img, .card-media img { position: absolute; inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); object-fit: contain; margin: auto; }
.doors.xl .door { padding-top: 190px; min-height: 400px; }
.doors.xl .door img { top: 18px; right: 18px; width: 52%; max-height: 160px; height: 160px; object-fit: contain; }
.assembly .step .thumb img { position: static; }

/* =============================================================
   12. Capa de ambiente (estándar "toda la web animada")
   ============================================================= */
.env { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.env canvas { width: 100%; height: 100%; display: block; opacity: .55; }
.env::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 60% at 50% 0%, color-mix(in srgb, var(--cyan) 7%, transparent), transparent 60%), radial-gradient(40% 40% at 100% 100%, color-mix(in srgb, var(--gold) 6%, transparent), transparent 70%); }
body > *:not(.env) { position: relative; z-index: 1; }
.site-header { z-index: 50; }
.type-line, .hero h1 em { text-shadow: 0 0 24px color-mix(in srgb, var(--cyan) 45%, transparent), 0 0 2px color-mix(in srgb, var(--cyan) 60%, transparent); }
.build-total .sum b, .buybox .price { text-shadow: 0 0 22px color-mix(in srgb, var(--gold) 35%, transparent); }
.buybox .price { text-shadow: 0 0 22px color-mix(in srgb, var(--cyan) 30%, transparent); }
/* Trazas de circuito que se dibujan al hacer scroll */
.trace { width: 100%; height: auto; display: block; margin: -10px auto 10px; max-width: var(--maxw); padding-inline: var(--gutter); }
.trace path { fill: none; stroke: color-mix(in srgb, var(--cyan) 55%, transparent); stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 1400; stroke-dashoffset: 1400; transition: stroke-dashoffset 1.6s var(--ease-out); }
.trace circle { fill: var(--cyan); opacity: 0; transition: opacity .4s 1.2s; }
.trace.in path { stroke-dashoffset: 0; } .trace.in circle { opacity: 1; }
.trace.gold path { stroke: color-mix(in srgb, var(--gold) 55%, transparent); } .trace.gold circle { fill: var(--gold); }
@media (prefers-reduced-motion: reduce) { .env canvas { display: none; } .trace path { stroke-dashoffset: 0; transition: none; } .trace circle { opacity: 1; transition: none; } }
:root[data-theme="light"] .env canvas { opacity: .25; }
