/* MUSUBI — estilos públicos */
:root {
  --accent: #00B0FF;
  --accent-ink: color-mix(in srgb, var(--accent) 62%, #000);
  --accent-soft: color-mix(in srgb, var(--accent) 10%, #fff);
  --ink: #0A0A0A;
  --ink-2: #2b2f36;
  --muted: #5f6672;
  --line: #e6e8ec;
  --soft: #f6f7f9;
  --white: #ffffff;
  --amazon: #FF9900;
  --gray-btn: #333333;
  --ok: #15803d;
  --bad: #dc2626;
  --radius: 14px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.55;
  overflow-wrap: break-word; word-wrap: break-word;
}
img { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 20; min-height: 64px; }
@media (max-width: 860px) { .site-header { min-height: 117px; } }
.site-header .container { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.35rem; letter-spacing: 0.14em; }
.logo-mark { width: 26px; height: 26px; flex: 0 0 auto; }
.header-nav { margin-left: auto; display: flex; gap: 4px; font-size: 0.95rem; }
.header-nav a { text-decoration: none; color: #d1d5db; }
.header-nav a:hover { color: #fff; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 20px; border: 0; border-radius: 10px;
  font: 600 1rem/1.2 var(--font); text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, transform .1s ease; text-align: center;
}
.btn:active { transform: scale(0.98); }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.btn-amazon { background: var(--amazon); color: #0A0A0A; }
.btn-amazon:hover { background: #000000; color: #fff; }
.btn-gray { background: var(--gray-btn); color: #fff; }
.btn-gray:hover { background: #1f1f1f; }
.btn-lg { min-height: 56px; font-size: 1.1rem; padding: 14px 28px; }
.btn-block { width: 100%; }
.btn-back { background: transparent; color: var(--ink); border: 1px solid var(--line); min-height: 44px; padding: 8px 16px; font-weight: 500; }
.btn-back:hover { background: var(--soft); }

/* ---------- Hero landing ---------- */
.hero { background: var(--ink); color: #fff; padding: 56px 0 64px; position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px;
  border-radius: 50%; border: 2px solid color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow: 0 0 0 40px color-mix(in srgb, var(--accent) 8%, transparent), 0 0 0 90px color-mix(in srgb, var(--accent) 4%, transparent);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-eyebrow { color: var(--accent); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.8rem; margin: 0 0 12px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); max-width: 16ch; }
.hero p { color: #c9ced6; max-width: 56ch; font-size: 1.08rem; margin: 16px 0 28px; }
.search { display: flex; max-width: 560px; background: #fff; border-radius: 12px; padding: 4px; }
.search input { flex: 1; min-width: 0; border: 0; padding: 12px 14px; font: inherit; border-radius: 10px; color: var(--ink); }
.search input:focus { outline: none; }
.search svg { align-self: center; margin-left: 10px; color: var(--muted); flex: 0 0 auto; }

/* ---------- Secciones de portada ---------- */
.hero-stats { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 26px; color: #c9ced6; font-size: 0.95rem; }
.hero-stats strong { color: #fff; font-family: var(--display); font-size: 1.25rem; margin-right: 4px; }
.home-sec { padding: 48px 0 8px; }
.home-sec.soft { background: var(--soft); padding: 40px 0; margin-top: 40px; }
.home-sec.soft + .home-sec { padding-top: 48px; }
.sec-head { margin-bottom: 20px; }
.sec-head h2 { font-size: 1.6rem; }
.sec-head p { color: var(--muted); margin: 6px 0 0; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.cat-tile { display: flex; flex-direction: column; gap: 6px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; background: #fff; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.cat-tile:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(10,10,10,.06); }
.cat-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--ink); color: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.cat-name { font-weight: 700; font-family: var(--display); overflow-wrap: normal; word-break: normal; hyphens: manual; }
.cat-count { color: var(--muted); font-size: 0.85rem; }
.rail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; align-items: start; }
.trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.trust-item { display: flex; gap: 14px; align-items: flex-start; }
.trust-icon { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; background: #fff; border: 1px solid var(--line); color: var(--ink); display: flex; align-items: center; justify-content: center; }
.trust-item h3 { font-size: 1rem; margin-bottom: 4px; }
.trust-item p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.guide-card { display: flex; flex-direction: column; gap: 10px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; background: #fff; transition: border-color .15s ease; }
.guide-card:hover { border-color: var(--ink); }
.guide-card h3 { font-size: 1.1rem; }
.guide-card p { margin: 0; color: var(--ink-2); font-size: 0.95rem; flex: 1; }
.guide-link { color: var(--accent-ink); font-weight: 600; font-size: 0.92rem; }
.catalog { border-top: 1px solid var(--line); margin-top: 48px; }

/* ---------- Filtros ---------- */
.catalog { padding: 36px 0 64px; }
.catalog-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; justify-content: space-between; margin-bottom: 18px; }
.catalog-head h2 { font-size: 1.6rem; }
.count { color: var(--muted); font-size: 0.95rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.chip {
  border: 1px solid var(--line); background: #fff; color: var(--ink-2); border-radius: 999px;
  padding: 8px 16px; font: 500 0.92rem var(--font); cursor: pointer; min-height: 40px;
}
.chips-price { margin-top: -14px; align-items: center; }
.chips-label { color: var(--muted); font-size: 0.9rem; margin-right: 4px; }
.chips-price .chip { min-height: 36px; padding: 6px 14px; font-size: 0.88rem; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Tarjetas ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; align-items: start; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; flex-direction: column; cursor: pointer; height: auto;
  transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: #cfd4db; box-shadow: 0 10px 30px rgba(10,10,10,.08); transform: translateY(-2px); }
.card:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.card-media { aspect-ratio: 1 / 1; width: 100%; background: #fff; border-radius: var(--radius) var(--radius) 0 0; display: flex; align-items: center; justify-content: center; padding: 18px; }
.card-media img { width: 100%; height: 100%; object-fit: contain; display: block; }
.card-media.empty { background: var(--soft); color: #b5bac3; }
.card-body { padding: 4px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tag { align-self: flex-start; background: var(--soft); color: var(--ink-2); font-size: 0.78rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; letter-spacing: 0.02em; }
.card-title { font-size: 1.05rem; font-weight: 700; font-family: var(--display); }
.card-brand { color: var(--muted); font-size: 0.88rem; margin-top: -4px; }
.card-highlight { color: var(--accent-ink); font-size: 0.92rem; font-weight: 500; }
.rating { display: flex; align-items: center; gap: 6px; font-size: 0.88rem; color: var(--muted); flex-wrap: wrap; }
.stars { color: #f5a400; letter-spacing: 1px; font-size: 1rem; }
.price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.price { font-size: 1.4rem; font-weight: 800; font-family: var(--display); }
.price-old { color: var(--muted); text-decoration: line-through; font-size: 0.95rem; }
.discount { background: var(--ink); color: #fff; font-size: 0.75rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.card-actions { display: flex; flex-direction: column; gap: 8px; margin-top: auto; padding-top: 8px; }

.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }

/* ---------- Detalle ---------- */
.detail { padding: 24px 0 56px; }
.detail-top { display: grid; grid-template-columns: 40% minmax(0, 1fr); gap: 40px; margin-top: 20px; align-items: start; }
.detail-media { position: sticky; top: 88px; }
.detail-media img { width: 100%; height: auto; max-height: 560px; object-fit: contain; display: block; border: 0; background: transparent; }
.detail-main { display: flex; flex-direction: column; gap: 36px; min-width: 0; }
.detail-hero { display: flex; flex-direction: column; gap: 12px; }
.detail-hero h1 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.detail-brand { color: var(--muted); font-size: 1rem; }
.detail-highlight { color: var(--accent-ink); font-size: 1.12rem; font-weight: 600; border-left: 4px solid var(--accent); padding-left: 14px; white-space: normal; }
.detail-hero .price { font-size: 2.1rem; }
.price-note { color: var(--muted); font-size: 0.82rem; }

.section-title { font-size: 1.3rem; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.section-title svg { color: var(--accent); }

.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.spec { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; min-width: 0; }
.spec-icon { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--ink); background: #fff; }
.spec-icon svg { width: 18px; height: 18px; }
.spec-label { color: var(--muted); font-size: 0.82rem; }
.spec-value { font-weight: 600; font-size: 0.98rem; }

.scores { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: center; background: #fff; }
.radar-wrap { position: relative; width: 100%; max-width: 340px; aspect-ratio: 1 / 1; margin: 0 auto; background: #fff; }
.radar-wrap:has(svg) { aspect-ratio: auto; }
.score-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.score-item { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.score-item svg { width: 18px; height: 18px; color: var(--ink); }
.score-name { font-size: 0.94rem; }
.score-val { font-weight: 700; font-family: var(--display); }
.score-bar { grid-column: 2 / 4; height: 6px; background: var(--soft); border-radius: 99px; overflow: hidden; margin-top: -6px; }
.score-bar span { display: block; height: 100%; background: var(--accent); border-radius: 99px; }

.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); margin: 40px 0; }
.cta-band strong { font-family: var(--display); font-size: 1.15rem; }
.cta-band .muted { color: var(--muted); font-size: 0.92rem; }

.block { margin: 40px 0; }
.info-box { display: flex; gap: 14px; padding: 18px 20px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.info-box.soft { background: var(--soft); border-color: transparent; }
.info-box svg { flex: 0 0 auto; color: var(--ink); margin-top: 2px; }
.info-box p { margin: 0; }

.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pc-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: #fff; }
.pc-card h3 { font-size: 1.05rem; margin-bottom: 12px; }
.pc-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pc-card li { display: flex; gap: 10px; align-items: flex-start; }
.pc-card li svg { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 2px; }
.pc-pros li svg { color: var(--ok); }
.pc-cons li svg { color: var(--bad); }

.reviews-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 14px; }
.reviews-head .stars { font-size: 1.3rem; }
.reviews-head strong { font-family: var(--display); font-size: 1.2rem; }
.quote { position: relative; background: var(--soft); border-radius: var(--radius); padding: 26px 26px 26px 60px; font-size: 1.05rem; margin: 0; }
.quote::before { content: "“"; position: absolute; left: 20px; top: 6px; font-family: Georgia, serif; font-size: 3.6rem; color: var(--accent); line-height: 1; }

.description { max-width: 780px; color: var(--ink-2); font-size: 1.02rem; }
.description p { margin: 0 0 14px; }

.cta-final { text-align: center; padding: 40px 20px; border-top: 1px solid var(--line); margin-top: 40px; }
.cta-final h2 { font-size: 1.4rem; margin-bottom: 18px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #b6bcc6; padding: 36px 0; font-size: 0.9rem; }
.site-footer .container { display: flex; flex-direction: column; gap: 10px; }
.site-footer .logo { color: #fff; font-size: 1.1rem; }
.notice { color: #8d94a0; font-size: 0.82rem; }

.preview-bar { background: #fff4d6; color: #6b4e00; text-align: center; padding: 8px 12px; font-size: 0.9rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .detail-top { grid-template-columns: 1fr; gap: 24px; }
  .detail-media { position: static; max-width: 520px; margin: 0 auto; width: 100%; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .header-nav { display: none; }
  .hero { padding: 40px 0 44px; }
  .grid { grid-template-columns: 1fr; gap: 18px; }
  .rail { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; padding-bottom: 8px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scroll-padding-left: 16px; }
  .rail .card-media { aspect-ratio: 4 / 3; }
  .rail > .card { flex: 0 0 82%; scroll-snap-align: start; }
  .trust { grid-template-columns: 1fr; gap: 18px; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-sec { padding-top: 36px; }
  .sec-head h2 { font-size: 1.35rem; }
  .specs { grid-template-columns: 1fr; }
  .scores { grid-template-columns: 1fr; }
  .pros-cons { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: stretch; text-align: center; }
  .cta-band .btn { width: 100%; }
  .detail-hero .btn { width: 100%; }
  .quote { padding: 22px 18px 22px 48px; }
  .quote::before { left: 12px; }
}
@media (min-width: 641px) and (max-width: 860px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ======================================================
   Navegación, armador, categorías, comparador y builds
   ====================================================== */
.header-nav { align-items: center; }
.header-nav > a, .nav-drop-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 8px; color: #d1d5db; text-decoration: none; background: none; border: 0; font: inherit; font-size: .95rem; cursor: pointer; }
.header-nav > a:hover, .nav-drop-btn:hover, .header-nav > a[aria-current="page"] { color: #fff; background: #1c1e22; }
.nav-badge { background: var(--accent); color: #001018; font-size: .72rem; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px; }
.nav-badge[hidden] { display: none; }
.nav-drop { position: relative; }
.drop-menu { position: absolute; top: calc(100% + 6px); right: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 40px rgba(0,0,0,.18); padding: 8px; min-width: 230px; display: none; z-index: 40; }
.nav-drop.open .drop-menu { display: block; }
.drop-menu a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: .95rem; }
.drop-menu a:hover { background: var(--soft); }
.drop-menu .drop-all { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; color: var(--accent-ink); font-weight: 600; border-radius: 0 0 8px 8px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid #33373e; color: #fff; border-radius: 8px; width: 42px; height: 42px; align-items: center; justify-content: center; cursor: pointer; }

.tool-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.btn-tool { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); border-radius: 8px; padding: 7px 10px; font: 500 .85rem var(--font); cursor: pointer; min-height: 36px; }
.btn-tool:hover { border-color: var(--ink); color: var(--ink); }
.btn-tool.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); }
.card-actions .tool-btns .btn-tool { flex: 1; justify-content: center; }
.detail-hero .tool-btns { margin-top: 4px; }
.btn-sm { min-height: 38px; padding: 8px 14px; font-size: .9rem; }
#m-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 10px; opacity: 0; pointer-events: none; transition: .2s ease; z-index: 60; max-width: calc(100% - 32px); font-size: .95rem; }
#m-toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
#m-toast a { color: var(--accent); font-weight: 600; margin-left: 6px; }

.page { padding: 28px 0 64px; }
.page-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between; margin-bottom: 20px; }
.page-head h1 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); }
.page-head p { color: var(--muted); margin: 6px 0 0; max-width: 64ch; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--muted); }
.muted { color: var(--muted); }
.link-btn { background: none; border: 0; color: var(--accent-ink); font: 600 .9rem var(--font); cursor: pointer; padding: 4px; }

/* Armador */
.compat-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px 18px; border-radius: 12px; margin-bottom: 20px; font-weight: 600; border: 1px solid; }
.compat-bar.ok { background: #ecfdf3; border-color: #b7ebc9; color: #146c35; }
.compat-bar.warn { background: #fff7e6; border-color: #f5d79e; color: #8a5300; }
.compat-bar.error { background: #fdeeee; border-color: #f3c0c0; color: #a11d1d; }
.compat-bar.none { background: var(--soft); border-color: var(--line); color: var(--ink-2); }
.compat-bar .watt { margin-left: auto; display: inline-block; font-weight: 500; color: var(--ink-2); }
.compat-bar .watt svg { vertical-align: -3px; margin-right: 6px; }
.builder-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.slots { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 20px; background: #fff; }
.slots-title { font-size: 1rem; padding: 14px 18px; background: var(--soft); border-bottom: 1px solid var(--line); }
.slot-row { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); align-items: center; }
.slot-row:last-child { border-bottom: 0; }
.slot-label { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.slot-label svg { color: var(--muted); }
.slot-row.filled .slot-label svg { color: var(--accent-ink); }
.slot-parts { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.slot-empty { color: var(--muted); }
.btn-choose { align-self: flex-start; background: var(--ink); color: #fff; border: 0; border-radius: 9px; padding: 10px 16px; font: 600 .92rem var(--font); cursor: pointer; min-height: 42px; }
.btn-choose:hover { background: #2a2d33; }
.part { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.part-thumb { width: 56px; height: 56px; border: 1px solid var(--line); border-radius: 10px; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; color: #b8bdc6; flex: 0 0 auto; }
.part-thumb img { width: 100%; height: 100%; object-fit: contain; }
.part-info { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.part-name { font-weight: 600; color: var(--ink); text-decoration: none; }
a.part-name:hover { text-decoration: underline; }
.part-specs { color: var(--muted); font-size: .85rem; }
.part-actions { display: flex; align-items: center; gap: 6px; }
.btn-x { background: none; border: 1px solid var(--line); border-radius: 8px; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--muted); }
.btn-x:hover { color: var(--bad); border-color: #f3c0c0; }
.compat-list { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; position: sticky; top: 84px; background: #fff; }
.compat-list h2 { font-size: 1.05rem; margin-bottom: 12px; }
.compat-list h3 { font-size: .95rem; margin: 18px 0 8px; }
.compat-list ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.compat-list li { display: flex; gap: 8px; font-size: .9rem; align-items: flex-start; }
.compat-list li svg { flex: 0 0 auto; margin-top: 3px; }
.compat-list li.ok svg { color: var(--ok); }
.compat-list li.warn svg { color: #c27c00; }
.compat-list li.error { color: #a11d1d; }
.compat-list li.error svg { color: var(--bad); }
.compat-list li.info svg { color: var(--muted); }
.watt-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.watt-table td { padding: 5px 0; border-bottom: 1px solid var(--line); }
.watt-table td:last-child { text-align: right; }
.watt-table .tot td { font-weight: 700; border-bottom: 0; }
.fine { color: var(--muted); font-size: .8rem; margin: 14px 0 0; }
.view-banner { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; background: var(--ink); color: #fff; padding: 18px 20px; border-radius: var(--radius); margin-bottom: 20px; }
.view-banner p { margin: 6px 0 0; color: #c9ced6; max-width: 70ch; }
.view-banner .btn-gray { background: var(--accent); color: #001018; }
.view-banner .btn-gray:hover { background: #fff; }

/* Selector de piezas */
.picker { width: min(760px, calc(100% - 24px)); max-height: min(86vh, 900px); border: 0; border-radius: 16px; padding: 0; box-shadow: 0 24px 80px rgba(0,0,0,.3); }
.picker::backdrop { background: rgba(10,10,10,.55); }
.picker-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 1; }
.picker-head h2 { font-size: 1.2rem; }
.picker-tools { display: flex; gap: 12px; align-items: center; padding: 12px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.picker-tools input[type=search] { flex: 1; min-width: 180px; border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; font: inherit; }
.check-inline { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; cursor: pointer; }
.picker-list { padding: 8px; display: flex; flex-direction: column; }
.pick { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px; border: 0; border-radius: 10px; background: #fff; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.pick:hover { background: var(--soft); }
.pick.bad { opacity: .65; }
.pick-err { color: #a11d1d; font-size: .82rem; display: inline-flex; gap: 4px; align-items: center; }
.pick-rate { color: var(--muted); font-size: .82rem; }
.pick-cta { background: var(--ink); color: #fff; border-radius: 8px; padding: 8px 14px; font-weight: 600; font-size: .88rem; }

/* Categoría */
.cat-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 24px; align-items: start; }
.cat-layout > section:only-child { grid-column: 1 / -1; }
.filters { border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 16px 12px; position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow-y: auto; background: #fff; }
.filters-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.fgroup { border-bottom: 1px solid var(--line); padding: 10px 0; }
.fgroup:last-child { border-bottom: 0; }
.fgroup summary { font-weight: 600; cursor: pointer; font-size: .93rem; padding: 2px 0 6px; }
.fopt { display: flex; align-items: center; gap: 8px; font-size: .9rem; padding: 4px 0; cursor: pointer; }
.fopt span { flex: 1; }
.fopt em { font-style: normal; color: var(--muted); font-size: .8rem; }
.fopt input { accent-color: var(--ink); width: 16px; height: 16px; }
.frange { display: flex; align-items: center; gap: 6px; }
.frange input { width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 8px; padding: 7px 8px; font: inherit; font-size: .88rem; }
.frange em, .frange span { color: var(--muted); font-style: normal; font-size: .82rem; }
.list-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.list-tools input[type=search] { flex: 1; min-width: 180px; border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; font: inherit; }
.list-tools select { border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; font: inherit; background: #fff; }
.ftoggle { display: none; }
.view-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.view-switch button { border: 0; background: #fff; padding: 9px 14px; font: 500 .9rem var(--font); cursor: pointer; }
.view-switch button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.spec-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.spec-table th { text-align: left; background: var(--soft); border-bottom: 1px solid var(--line); padding: 0; white-space: nowrap; }
.th-sort { background: none; border: 0; font: 600 .85rem var(--font); color: var(--ink-2); padding: 12px 14px; cursor: pointer; width: 100%; text-align: left; }
.th-sort.on { color: var(--ink); }
.spec-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.spec-table tbody tr { cursor: pointer; }
.spec-table tbody tr:hover { background: #fafbfc; }
.spec-table tbody tr:last-child td { border-bottom: 0; }
.t-prod { min-width: 260px; }
.t-link { display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--ink); }
.t-link strong { display: block; font-weight: 600; }
.t-link small { color: var(--muted); }
.t-actions { white-space: nowrap; }
.t-actions .btn { margin-bottom: 6px; }
.t-actions .tool-btns { flex-wrap: nowrap; }
.t-actions .tb-l { display: none; }
.t-actions .btn-tool { padding: 7px 9px; }
.t-prod { min-width: 230px; }
.score-pill { display: inline-block; background: var(--ink); color: #fff; font-weight: 700; border-radius: 6px; padding: 3px 8px; font-size: .85rem; }
.mini-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; margin: 4px 0; }
.mini-specs dt { color: var(--muted); font-size: .75rem; }
.mini-specs dd { margin: 0; font-weight: 600; font-size: .9rem; }

/* Comparador */
.cmp-table { border-collapse: collapse; width: 100%; min-width: calc(180px + var(--cols) * 220px); font-size: .93rem; }
.cmp-table th, .cmp-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.cmp-label { width: 180px; color: var(--muted); font-weight: 500; position: sticky; left: 0; background: #fff; z-index: 1; }
.cmp-prod { position: relative; vertical-align: bottom; }
.cmp-prod .cmp-rm { position: absolute; top: 10px; right: 10px; }
.cmp-img { display: flex; align-items: center; justify-content: center; height: 140px; margin-bottom: 10px; color: #b8bdc6; }
.cmp-img img { max-width: 100%; max-height: 140px; object-fit: contain; }
.cmp-name { display: block; font-weight: 700; color: var(--ink); text-decoration: none; margin: 8px 0 10px; font-family: var(--display); }
.cmp-sec th { background: var(--soft); font-family: var(--display); font-size: .95rem; color: var(--ink); position: static; }
.cmp-table td.best { color: var(--accent-ink); font-weight: 700; background: var(--accent-soft); }
.cmp-score { display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 8px; }
.cmp-score i { display: block; height: 6px; border-radius: 4px; background: #cfd4db; }
.cmp-score.best span { color: var(--accent-ink); font-weight: 700; }
.cmp-score.best i { background: var(--accent); }
.cmp-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.cmp-list li { display: flex; gap: 6px; align-items: flex-start; }
.cmp-list li svg { margin-top: 3px; flex: 0 0 auto; }
.cmp-list.ok svg { color: var(--ok); }
.cmp-list.bad svg { color: var(--bad); }

/* Builds */
.builds-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.build-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: inherit; background: #fff; overflow: hidden; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.build-card:hover { border-color: #cfd4db; box-shadow: 0 10px 30px rgba(10,10,10,.08); transform: translateY(-2px); }
.build-imgs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 16px; background: var(--soft); min-height: 110px; align-items: center; justify-items: center; color: #b8bdc6; }
.build-imgs img { width: 100%; height: 72px; object-fit: contain; background: #fff; border-radius: 8px; padding: 4px; }
.build-imgs > svg { grid-column: 1 / -1; }
.build-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.build-body h3 { font-size: 1.15rem; }
.build-body p { margin: 0; color: var(--ink-2); font-size: .93rem; }
.build-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag-dark { background: var(--ink); color: #fff; }
.build-parts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: .88rem; }
.build-parts li span { display: block; color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; }
.build-foot { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); font-size: .88rem; flex-wrap: wrap; }
.build-foot .muted { display: inline-flex; align-items: center; gap: 4px; }
.bstat { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.bstat.ok, .bstat.none { color: var(--ok); }
.bstat.warn { color: #8a5300; }
.bstat.error { color: var(--bad); }
.build-link { margin-left: auto; color: var(--accent-ink); font-weight: 600; }

/* Bloque armador en portada */
.pc-promo { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: center; background: var(--ink); color: #fff; border-radius: 20px; padding: 40px; position: relative; overflow: hidden; }
.pc-promo h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.pc-promo p { color: #c9ced6; margin: 12px 0 22px; max-width: 56ch; }
.pc-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.pc-steps li { display: flex; align-items: center; gap: 14px; background: #17191d; border: 1px solid #262a30; border-radius: 12px; padding: 14px 16px; }
.pc-steps strong { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #001018; display: flex; align-items: center; justify-content: center; font-family: var(--display); flex: 0 0 auto; }
.sec-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.link-more { color: var(--accent-ink); font-weight: 600; text-decoration: none; }
.link-more[hidden] { display: none; }

@media (max-width: 1000px) {
  .builder-grid { grid-template-columns: 1fr; }
  .compat-list { position: static; }
  .pc-promo { grid-template-columns: 1fr; padding: 28px; }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-header .container { flex-wrap: wrap; }
  .header-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 2px; padding: 4px 0 14px; margin-left: 0; }
  .header-nav.open { display: flex; }
  .header-nav > a, .nav-drop-btn { width: 100%; justify-content: flex-start; padding: 12px 10px; }
  .drop-menu { position: static; box-shadow: none; border: 0; background: #17191d; min-width: 0; }
  .drop-menu a { color: #d1d5db; }
  .drop-menu a:hover { background: #22252a; }
  .cat-layout { grid-template-columns: 1fr; }
  .filters { display: none; position: static; max-height: none; }
  .filters.open { display: block; }
  .ftoggle { display: inline-flex; }
}
@media (max-width: 640px) {
  .slot-row { grid-template-columns: 1fr; gap: 10px; }
  .part { grid-template-columns: 48px minmax(0, 1fr); }
  .part .part-thumb, .pick .part-thumb { width: 48px; height: 48px; }
  .part-actions { grid-column: 1 / -1; }
  .part-actions .btn { flex: 1; }
  .compat-bar .watt { margin-left: 0; }
  .pick { grid-template-columns: 48px minmax(0, 1fr); }
  .pick-cta { display: none; }
  .cmp-label { width: 120px; }
  .cmp-table { min-width: calc(120px + var(--cols) * 180px); }
  .list-tools .count { width: 100%; order: 5; }
}

/* Legal, cookies y avisos */
.legal-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 6px; }
.legal-links a, .link-plain { color: #c3c8d0; font-size: .85rem; text-decoration: none; background: none; border: 0; padding: 0; font: inherit; font-size: .85rem; cursor: pointer; }
.legal-links a:hover, .link-plain:hover { color: #fff; text-decoration: underline; }
.legal-wrap { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; align-items: start; }
.legal-tabs { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 84px; }
.legal-tabs a { padding: 10px 12px; border-radius: 9px; text-decoration: none; color: var(--ink-2); }
.legal-tabs a:hover { background: var(--soft); }
.legal-tabs a[aria-current="page"] { background: var(--ink); color: #fff; }
.legal { max-width: 760px; color: var(--ink-2); }
.legal h1 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); color: var(--ink); }
.legal-date { color: var(--muted); font-size: .9rem; margin: 6px 0 24px; }
.legal h2 { font-size: 1.25rem; margin: 30px 0 10px; color: var(--ink); }
.legal h3 { font-size: 1.05rem; margin: 20px 0 8px; color: var(--ink); }
.legal p, .legal li { line-height: 1.7; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
#cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 70; max-width: 760px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 50px rgba(0,0,0,.18); padding: 18px 20px; display: flex; gap: 16px; align-items: center; }
.cb-text { flex: 1; }
.cb-text p { margin: 4px 0 0; color: var(--ink-2); font-size: .92rem; }
.cb-text a { color: var(--accent-ink); }
.cb-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.warn-box { background: #fff7e6; border-color: #f5d79e; margin-top: 12px; }
.warn-box svg { color: #b45309; }
.warn-box a { color: #8a5300; }
@media (max-width: 760px) {
  .legal-wrap { grid-template-columns: 1fr; gap: 16px; }
  .legal-tabs { position: static; flex-direction: row; flex-wrap: wrap; }
  #cookie-banner { flex-direction: column; align-items: stretch; left: 10px; right: 10px; bottom: 10px; }
  .cb-actions .btn { flex: 1; }
}

/* Hero con slider */
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
.hero.has-slider .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.hero.has-slider::after { right: auto; left: -160px; top: auto; bottom: -220px; }
.hero .search { position: relative; align-items: center; }
.search-btn { background: var(--accent); color: #001018; border: 0; border-radius: 9px; padding: 0 18px; min-height: 44px; font: 700 .95rem var(--font); cursor: pointer; }
.search-btn:hover { filter: brightness(1.08); }
.hero-slider { position: relative; background: #fff; color: var(--ink); border-radius: 22px; padding: 22px; box-shadow: 0 30px 80px rgba(0,0,0,.45), 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent); min-height: 470px; display: flex; flex-direction: column; }
.hs-track { position: relative; flex: 1; display: grid; }
.hs-slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateX(16px); transition: opacity .45s ease, transform .45s ease, visibility .45s; display: flex; flex-direction: column; gap: 14px; }
.hs-slide.on { opacity: 1; visibility: visible; transform: none; }
.hs-media { display: flex; align-items: center; justify-content: center; height: 230px; background: #fff; border-radius: 14px; color: #c3c8d0; }
.hs-media img { max-width: 100%; max-height: 230px; object-fit: contain; transition: transform .4s ease; }
.hs-slide.on .hs-media:hover img { transform: scale(1.04); }
.hs-info { display: flex; flex-direction: column; gap: 8px; }
.hs-tag { color: var(--accent-ink); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.hs-name { font-size: 1.3rem; }
.hs-name a { text-decoration: none; color: var(--ink); }
.hs-hl { margin: 0; color: var(--ink-2); font-size: .97rem; }
.hs-rate { font-size: .9rem; color: var(--muted); }
.hs-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.hs-more { background: var(--soft); color: var(--ink); }
.hs-more:hover { background: #e9ebef; }
.hs-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.hs-dots { display: flex; gap: 8px; }
.hs-dots { gap: 0; }
.hs-dot { position: relative; width: 24px; height: 24px; border: 0; background: none; cursor: pointer; padding: 0; display: inline-flex; align-items: center; justify-content: center; transition: width .25s ease; }
.hs-dot::before { content: ""; width: 9px; height: 9px; border-radius: 5px; background: #cfd4db; transition: width .25s ease, background .25s ease; }
.hs-dot.on { width: 36px; }
.hs-dot.on::before { width: 26px; background: var(--ink); }
.hs-arrow { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--ink); }
.hs-arrow:hover { border-color: var(--ink); }

/* Buscador de la cabecera */
.header-search { flex: 0 1 300px; margin-left: auto; display: flex; align-items: center; background: #1a1c20; border: 1px solid #2c3036; border-radius: 10px; padding: 0 10px; }
.header-search:focus-within { border-color: var(--accent); }
.header-search .hs-icon { color: #8d94a0; display: flex; }
.header-search input { background: transparent; border: 0; color: #fff; padding: 9px 8px; font: inherit; font-size: .92rem; width: 100%; min-width: 0; }
.header-search input:focus { outline: none; }
.header-search input::placeholder { color: #8d94a0; }
.header-search + .nav-toggle + .header-nav { margin-left: 8px; }
.search-pop { position: absolute; top: calc(100% + 8px); left: 0; right: 0; min-width: 300px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 50px rgba(0,0,0,.2); padding: 6px; z-index: 50; color: var(--ink); text-align: left; }
.sp-item { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.sp-item:hover, .sp-item.on { background: var(--soft); }
.sp-thumb { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 8px; display: flex; align-items: center; justify-content: center; overflow: hidden; flex: 0 0 auto; color: #c3c8d0; background: #fff; }
.sp-thumb img { width: 100%; height: 100%; object-fit: contain; }
.sp-text { display: flex; flex-direction: column; min-width: 0; }
.sp-name { font-weight: 600; font-size: .92rem; line-height: 1.3; }
.sp-cat { color: var(--muted); font-size: .8rem; }
.sp-empty { padding: 12px; color: var(--muted); font-size: .92rem; }
.sp-all { display: block; padding: 10px 12px; margin-top: 4px; border-top: 1px solid var(--line); color: var(--accent-ink); font-weight: 600; text-decoration: none; font-size: .92rem; }

/* Página de productos */
.fcat { display: flex; justify-content: space-between; padding: 6px 8px; margin: 0 -8px; border-radius: 8px; text-decoration: none; color: var(--ink-2); font-size: .92rem; }
.fcat em { font-style: normal; color: var(--muted); font-size: .8rem; }
.fcat:hover { background: var(--soft); }
.fcat.on { background: var(--ink); color: #fff; }
.fcat.on em { color: #c3c8d0; }
.fhint { color: var(--muted); font-size: .8rem; margin: 8px 0 0; }
.th-plain { display: block; font: 600 .85rem var(--font); color: var(--ink-2); padding: 12px 14px; }
.all-cta { text-align: center; margin-top: 28px; }

@media (max-width: 1000px) {
  .hero.has-slider .hero-grid { grid-template-columns: 1fr; }
  .hero-slider { min-height: 0; }
}
@media (max-width: 860px) {
  .header-search { order: 5; flex: 1 1 100%; margin: 0 0 12px; }
  .header-search + .nav-toggle + .header-nav { margin-left: 0; }
}
@media (max-width: 640px) {
  .hs-media { height: 190px; }
  .hs-media img { max-height: 190px; }
  .hero-slider { padding: 16px; }
  .hs-btns .btn { flex: 1; }
  .search-btn { padding: 0 12px; }
}
.hero .hero-slider p { color: var(--ink-2); margin: 0; max-width: none; font-size: .97rem; }
.hero .search-pop { color: var(--ink); }
.hero-grid > * { min-width: 0; }
.hero .search input { min-width: 0; width: 100%; }
@media (max-width: 640px) { .hs-btns .btn { font-size: .92rem; padding: 10px 12px; } }

.view-switch button { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 40px; padding: 0; color: var(--ink-2); }
.view-switch button:hover { background: var(--soft); }
.view-switch button[aria-pressed="true"], .view-switch button[aria-pressed="true"]:hover { background: var(--ink); color: #fff; }

/* Blog */
.blog-head { margin-bottom: 20px; }
.blog-head h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.blog-head p { color: var(--muted); margin: 8px 0 0; max-width: 62ch; font-size: 1.05rem; }
.blog-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.blog-tools .chips { margin: 0; }
.blog-tools input[type=search] { border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; font: inherit; min-width: 240px; }
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.post-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; background: #fff; transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease; }
.post-card:hover { box-shadow: 0 12px 30px rgba(10,10,10,.08); transform: translateY(-2px); border-color: #cfd4db; }
.post-media { aspect-ratio: 16 / 9; background: var(--soft); display: flex; align-items: center; justify-content: center; color: #c3c8d0; overflow: hidden; }
.post-media img { width: 100%; height: 100%; object-fit: cover; }
.post-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-body h2 { font-size: 1.15rem; line-height: 1.3; }
.post-body p { margin: 0; color: var(--ink-2); font-size: .94rem; }
.post-meta { color: var(--muted); font-size: .85rem; margin-top: auto; }
.post-card.big { grid-column: 1 / -1; flex-direction: row; }
.post-card.big .post-media { flex: 0 0 55%; aspect-ratio: auto; min-height: 320px; }
.post-card.big .post-body { padding: 28px; justify-content: center; }
.post-card.big h2 { font-size: 1.7rem; }
.tag-draft { background: #fff2dc; color: #8a5300; }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 30px; }
.pager button { min-width: 40px; height: 40px; border: 1px solid var(--line); background: #fff; border-radius: 9px; cursor: pointer; font: 600 .95rem var(--font); }
.pager button[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.post { max-width: 1080px; margin: 0 auto; }
.post-header { max-width: 760px; margin: 10px auto 22px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.post-header .tag { text-decoration: none; }
.post-header h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); line-height: 1.15; }
.post-lead { font-size: 1.15rem; color: var(--ink-2); margin: 0; }
.post-cover { margin: 0 0 28px; border-radius: 18px; overflow: hidden; background: var(--soft); }
.post-cover img { width: 100%; max-height: 520px; object-fit: cover; display: block; }
.post-layout { display: grid; grid-template-columns: 230px minmax(0, 720px); gap: 40px; justify-content: center; align-items: start; }
.post-layout > .post-content:only-child { grid-column: 1 / -1; max-width: 720px; margin: 0 auto; width: 100%; }
.post-toc { position: sticky; top: 90px; border-left: 2px solid var(--line); padding-left: 16px; font-size: .9rem; }
.post-toc strong { display: block; margin-bottom: 8px; font-family: var(--display); }
.post-toc ol { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; }
.post-toc a { color: var(--ink-2); text-decoration: none; }
.post-toc a:hover { color: var(--accent-ink); }
.post-content { font-size: 1.08rem; line-height: 1.75; color: var(--ink-2); min-width: 0; }
.post-content h2 { font-size: 1.6rem; margin: 38px 0 12px; color: var(--ink); scroll-margin-top: 90px; }
.post-content h3 { font-size: 1.25rem; margin: 26px 0 10px; color: var(--ink); scroll-margin-top: 90px; }
.post-content p { margin: 0 0 18px; }
.post-content a { color: var(--accent-ink); }
.post-content ul, .post-content ol { padding-left: 24px; margin: 0 0 18px; }
.post-content li { margin-bottom: 6px; }
.post-content blockquote { margin: 22px 0; padding: 14px 20px; border-left: 4px solid var(--accent); background: var(--soft); border-radius: 0 10px 10px 0; font-style: italic; }
.post-content figure { margin: 26px 0; }
.post-content figure img, .post-content p img { max-width: 100%; border-radius: 12px; display: block; }
.post-content figcaption { color: var(--muted); font-size: .88rem; text-align: center; margin-top: 8px; }
.post-content hr { border: 0; border-top: 1px solid var(--line); margin: 30px 0; }
.post-content code { background: var(--soft); padding: 2px 6px; border-radius: 5px; font-size: .9em; }
.post-disclosure { font-size: .85rem !important; color: var(--muted); background: var(--soft); border-radius: 10px; padding: 10px 14px; display: flex; gap: 8px; align-items: flex-start; }
.post-disclosure svg { flex: 0 0 auto; margin-top: 3px; }
.post-product { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 24px 0; background: #fff; font-size: 1rem; line-height: 1.5; }
.pp-media { display: flex; align-items: center; justify-content: center; height: 140px; color: #c3c8d0; }
.pp-media img { max-width: 100%; max-height: 140px; object-fit: contain; border-radius: 0 !important; }
.pp-info { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.pp-name { font-family: var(--display); font-weight: 700; font-size: 1.1rem; color: var(--ink) !important; text-decoration: none; }
.pp-info p { margin: 0 !important; color: var(--accent-ink); font-size: .95rem; }
.pp-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.pp-btns .btn { text-decoration: none; }
.pp-btns .btn-amazon { color: #0A0A0A; }
.pp-btns .btn-gray { color: #fff; }
.post-related { margin-top: 36px; }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; }
.post-tags .chip { text-decoration: none; font-size: .85rem; }
.post-share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .95rem; }
.post-share a, .post-share button { border: 1px solid var(--line); border-radius: 8px; padding: 7px 12px; text-decoration: none; color: var(--ink); background: #fff; font: 500 .9rem var(--font); cursor: pointer; }
.post-share a:hover, .post-share button:hover { border-color: var(--ink); }
.post-more { max-width: 1080px; margin: 56px auto 0; }
.post-more h2 { font-size: 1.5rem; margin-bottom: 18px; }
@media (max-width: 900px) {
  .post-layout { grid-template-columns: 1fr; }
  .post-toc { position: static; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
  .post-card.big { flex-direction: column; } .post-card.big .post-media { min-height: 0; aspect-ratio: 16 / 9; }
}
@media (max-width: 640px) {
  .post-product { grid-template-columns: 1fr; text-align: left; }
  .pp-media { height: 160px; }
  .post-content { font-size: 1.02rem; }
  .blog-tools input[type=search] { width: 100%; min-width: 0; }
}

/* Carrusel de categorías */
.car-arrows { display: flex; gap: 8px; }
.car-arrows[hidden] { display: none; }
.car-arrows .hs-arrow:disabled { opacity: .35; cursor: default; border-color: var(--line); }
.cat-car-wrap { position: relative; }
.cat-car-wrap::before, .cat-car-wrap::after { content: ""; position: absolute; top: 0; bottom: 8px; width: 48px; pointer-events: none; opacity: 0; transition: opacity .2s ease; z-index: 1; }
.cat-car-wrap::before { left: 0; background: linear-gradient(90deg, #fff, rgba(255,255,255,0)); }
.cat-car-wrap::after { right: 0; background: linear-gradient(270deg, #fff, rgba(255,255,255,0)); }
.cat-car-wrap.fade-l::before, .cat-car-wrap.fade-r::after { opacity: 1; }
.cat-carousel { display: flex; grid-template-columns: none; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 4px 2px 8px; scrollbar-width: none; overscroll-behavior-x: contain; }
.cat-carousel::-webkit-scrollbar { display: none; }
.cat-carousel:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 12px; }
.cat-carousel .cat-tile { flex: 0 0 calc((100% - 4 * 12px) / 5); scroll-snap-align: start; min-width: 0; }
@media (max-width: 1000px) { .cat-carousel .cat-tile { flex-basis: calc((100% - 2 * 12px) / 3.3); } }
@media (max-width: 640px) {
  .cat-carousel { margin: 0 -16px; padding-left: 16px; padding-right: 16px; scroll-padding-left: 16px; }
  .cat-carousel .cat-tile { flex-basis: 42%; }
  .cat-car-wrap::before, .cat-car-wrap::after { display: none; }
}
@media (max-width: 640px) { .cat-carousel .cat-tile { padding: 14px; } .cat-carousel .cat-name { font-size: .95rem; } }

/* Carrusel de builds en la portada */
.car-head-r { display: flex; align-items: center; gap: 14px; }
.builds-carousel { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 4px 2px 12px; scrollbar-width: none; overscroll-behavior-x: contain; }
.builds-carousel::-webkit-scrollbar { display: none; }
.builds-carousel:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 12px; }
.builds-carousel .build-card { flex: 0 0 calc((100% - 2 * 20px) / 3); scroll-snap-align: start; min-width: 0; }
.builds-carousel .build-card:hover { transform: none; }
@media (max-width: 1000px) { .builds-carousel .build-card { flex-basis: calc((100% - 20px) / 2); } }
@media (max-width: 760px) {
  .builds-carousel { margin: 0 -16px; padding-left: 16px; padding-right: 16px; scroll-padding-left: 16px; gap: 14px; }
  .builds-carousel .build-card { flex-basis: 85%; }
}

/* Carga sin saltos: el pie queda fuera de la pantalla mientras se pinta el contenido */
main { min-height: calc(100vh - 64px); min-height: calc(100svh - 64px); }
.loading-ph { color: var(--muted); margin: 0; }

/* Armar PC: perfil de uso */
.uso-bar { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin-bottom: 20px; }
.uso-bar h2 { font-size: 1.05rem; margin: 0 0 2px; }
.uso-sub { color: var(--muted); font-size: .9rem; margin: 0 0 14px; }
.uso-opts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.uso-opt { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; font: inherit; color: var(--ink); transition: border-color .15s ease, background .15s ease; min-height: 44px; }
.uso-opt:hover { border-color: var(--ink); }
.uso-opt.on { border-color: var(--ink); background: var(--ink); color: #fff; }
.uso-opt.on .uso-desc { color: #d1d5db; }
.uso-name { font-weight: 700; font-size: .95rem; }
.uso-desc { font-size: .8rem; color: var(--muted); line-height: 1.35; }
.uso-tip { display: flex; gap: 8px; align-items: flex-start; margin: 14px 0 0; font-size: .88rem; color: var(--ink-2, #374151); background: #f6f7f9; border-radius: 10px; padding: 10px 12px; }
.uso-tip svg { flex: none; margin-top: 2px; }
.slot-opt { font-size: .72rem; font-weight: 600; color: var(--muted); background: #f1f3f5; border-radius: 6px; padding: 1px 6px; margin-left: 4px; }
.slot-note { display: block; font-size: .82rem; color: var(--muted); margin-top: 6px; }
.slot-note.warn { color: #8a5300; }
@media (max-width: 1000px) { .uso-opts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .uso-bar { padding: 14px; }
  .uso-opts { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -14px; padding: 0 14px 4px; scrollbar-width: none; }
  .uso-opts::-webkit-scrollbar { display: none; }
  .uso-opt { flex: 0 0 62%; scroll-snap-align: start; }
}

/* Armar PC: sugerencias de los visitantes */
.suggest { margin-top: 24px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.suggest-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.suggest-head > svg { flex: none; }
.suggest-head > div { flex: 1 1 260px; }
.suggest-head h2 { font-size: 1.05rem; margin: 0; }
.suggest-head p { margin: 2px 0 0; color: var(--muted); font-size: .92rem; }
.suggest-form { margin-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.sg-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sg-f { display: flex; flex-direction: column; gap: 6px; font-size: .88rem; font-weight: 600; }
.sg-f small { font-weight: 400; color: var(--muted); }
.sg-f input, .sg-f select, .sg-f textarea { font: inherit; font-weight: 400; font-size: 1rem; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); width: 100%; min-height: 44px; }
.sg-f textarea { resize: vertical; }
.sg-f input:focus, .sg-f select:focus, .sg-f textarea:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.sg-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sg-err { color: var(--bad, #b91c1c); font-size: .9rem; margin: 0; min-height: 0; }
.sg-err:empty { display: none; }
.sg-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.sg-actions .fine { margin: 0; }
.suggest-ok { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; color: var(--ok); font-weight: 600; }
.picker-foot { border-top: 1px solid var(--line); padding: 12px 18px; font-size: .9rem; color: var(--muted); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); font-weight: 600; text-decoration: underline; cursor: pointer; min-height: 24px; }
@media (max-width: 760px) { .sg-row { grid-template-columns: 1fr; } .suggest { padding: 14px; } }

/* «Las mejores…» */
.best-index { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.best-group { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.best-group h2 { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; margin: 0 0 10px; }
.best-group ul, .best-related ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.best-group li { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.best-group a, .best-related a { color: var(--ink); font-weight: 600; }
.best-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.best-item { position: relative; display: grid; grid-template-columns: 160px minmax(0, 1fr) 200px; gap: 18px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px 16px 22px; }
.best-item:first-child { border-color: var(--ink); box-shadow: 0 6px 24px rgba(0,0,0,.06); }
.best-rank { position: absolute; top: -10px; left: -10px; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: .95rem; }
.best-media { display: flex; align-items: center; justify-content: center; height: 140px; background: #f6f7f9; border-radius: 10px; color: var(--muted); }
.best-media img { max-width: 100%; max-height: 130px; object-fit: contain; }
.best-badge { display: inline-block; background: var(--amazon); color: #0A0A0A; font-size: .75rem; font-weight: 700; border-radius: 6px; padding: 2px 8px; margin-bottom: 6px; }
.best-name { font-size: 1.1rem; margin: 0 0 2px; line-height: 1.3; }
.best-name a { color: var(--ink); }
.best-hl { margin: 8px 0 0; color: var(--ink-2); }
.best-specs { margin: 6px 0 0; font-size: .88rem; color: var(--muted); }
.best-ideal { margin: 6px 0 0; font-size: .88rem; }
.best-side { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.best-score { display: flex; align-items: baseline; justify-content: center; gap: 2px; }
.best-score strong { font-size: 1.8rem; font-weight: 800; }
.best-score span { color: var(--muted); }
.best-cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 22px 0; padding: 16px 18px; border-radius: 14px; background: #f6f7f9; }
.best-cta > div { flex: 1 1 260px; } .best-cta p { margin: 2px 0 0; color: var(--muted); }
.best-related { margin-top: 24px; } .best-related h2 { font-size: 1.1rem; }
.best-method { display: flex; gap: 6px; align-items: flex-start; margin-top: 22px; font-size: .88rem; color: var(--muted); }
.best-method svg { flex: none; margin-top: 2px; }
.best-method a { color: var(--ink); font-weight: 600; }
@media (max-width: 900px) { .best-item { grid-template-columns: 120px minmax(0, 1fr); } .best-side { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; } .best-side .btn { flex: 1 1 160px; } .best-media { height: 110px; } }
@media (max-width: 520px) { .best-item { grid-template-columns: 1fr; padding: 18px 14px 14px; } .best-media { height: 160px; } }

/* Ficha: listas, alternativas y combina con */
.in-lists { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.in-lists a { display: inline-block; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: #fff; }
.in-lists a:hover { border-color: var(--ink); }
.mini-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.mini { display: flex; flex-direction: column; gap: 6px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); min-width: 0; }
.mini:hover { border-color: var(--ink); }
.mini-img { display: flex; align-items: center; justify-content: center; height: 110px; background: #f6f7f9; border-radius: 8px; color: var(--muted); }
.mini-img img { max-width: 100%; max-height: 100px; object-fit: contain; }
.mini-name { font-weight: 600; font-size: .9rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mini-score { font-size: .8rem; color: var(--muted); }
.mini-tag { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
@media (max-width: 760px) { .mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.author-box { display: flex; gap: 14px; align-items: flex-start; margin-top: 28px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fafbfc; }
.author-avatar { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.2rem; }
.author-box p { margin: 4px 0 6px; color: var(--ink-2); }
.author-box a { font-weight: 600; color: var(--ink); font-size: .9rem; }
.uso-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.uso-chips > span { font-weight: 600; font-size: .92rem; margin-right: 4px; }
.chip-btn { font: inherit; font-size: .88rem; padding: 7px 14px; min-height: 36px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.chip-btn:hover { border-color: var(--ink); }
.chip-btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.shop-list { margin-top: 24px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.shop-head { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.shop-head h2 { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; margin: 0; }
.shop-head p { margin: 4px 0 0; color: var(--muted); font-size: .9rem; max-width: 640px; }
.shop-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.shop-items { list-style: none; counter-reset: shop; margin: 14px 0 0; padding: 0; }
.shop-items li { counter-increment: shop; display: grid; grid-template-columns: 28px 150px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.shop-items li::before { content: counter(shop); font-weight: 700; color: var(--muted); text-align: center; }
.shop-slot { font-size: .85rem; color: var(--muted); }
.shop-name { color: var(--ink); font-weight: 600; min-width: 0; }
@media (max-width: 640px) { .shop-items li { grid-template-columns: 24px minmax(0, 1fr); } .shop-items li .btn, .shop-items li .pmeta { grid-column: 2; justify-self: start; } .shop-slot { grid-column: 2; } .shop-name { grid-column: 2; } }

.faq details { border: 1px solid var(--line); border-radius: 12px; background: #fff; margin-bottom: 8px; }
.faq summary { cursor: pointer; padding: 14px 16px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 700; color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0; padding: 0 16px 14px; color: var(--ink-2); }
.post-faq { margin-top: 28px; } .post-faq h2 { margin-bottom: 12px; }
.contact-wrap { max-width: 760px; }
.contact-form { margin-top: 0; display: flex; flex-direction: column; gap: 12px; }
.sg-row.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.contact-help { margin-top: 24px; }
.contact-help h2 { font-size: 1.05rem; }
.contact-help ul { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-direction: column; gap: 8px; }
.contact-help a { display: inline-flex; gap: 8px; align-items: center; color: var(--ink); font-weight: 600; }
@media (max-width: 760px) { .sg-row.c2 { grid-template-columns: 1fr; } }
.balance { background: #fff8e6; border: 1px solid #f5d48a; border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; }
.balance h2 { display: flex; align-items: center; gap: 6px; font-size: .98rem; margin: 0 0 6px; color: #7a4a00; }
.balance p { margin: 0 0 8px; font-size: .9rem; color: var(--ink-2); }
.balance .fine { margin: 0; font-size: .78rem; color: #8a6a2a; }
.watt-table tr.rec td { font-weight: 700; color: var(--ink); border-top: 2px solid var(--ink); }
.watt-table tr.rec small { font-weight: 400; color: var(--muted); }

/* ---------- Armar PC: escenario visual ---------- */
.rig { position: relative; margin: 0 0 24px; border-radius: 20px; overflow: hidden; color: #e9edf2; background: radial-gradient(60% 70% at 26% 52%, color-mix(in srgb, var(--accent) 22%, transparent) 0%, transparent 62%), linear-gradient(160deg, #161a22 0%, #0d1016 60%, #0a0c10 100%); box-shadow: 0 20px 60px rgba(10, 12, 16, .25); }
.rig-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px; border-bottom: 1px solid rgba(255,255,255,.07); flex-wrap: wrap; }
.rig-title { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: #fff; }
.rig-title svg { color: var(--accent); }
.rig-tabs { display: flex; gap: 4px; }
.rig-tab { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 92px; padding: 6px 10px 8px; background: none; border: 0; border-bottom: 2px solid rgba(255,255,255,.12); color: #8b93a1; font: inherit; font-size: .78rem; cursor: pointer; }
.rig-tab b { font-family: var(--display); font-size: 1rem; color: #c7ced8; display: flex; align-items: center; height: 20px; }
.rig-tab.ok b { color: #4ade80; }
.rig-tab.on { color: #fff; border-bottom-color: var(--accent); }
.rig-tab.on b { color: var(--accent); }
.rig-tab:hover { color: #fff; }
.rig-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 12px; align-items: center; padding: 22px 24px 8px; min-height: 470px; }
.rig-visual { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.rig-case { width: min(100%, 300px); height: auto; filter: drop-shadow(0 30px 40px rgba(0,0,0,.55)); }
.rig-case .z-shell { fill: #1c212b; stroke: #3a4250; stroke-width: 2; }
.rig-case .z-glass { stroke: rgba(255,255,255,.06); }
.rig-case .z-dot { fill: #3a4250; }
.rig-case .z-part { fill: #232a35; stroke: #3d4656; stroke-width: 1.5; transition: fill .3s ease, stroke .3s ease; }
.rig-case .z-line, .rig-case .z-line-f { fill: none; stroke: #3d4656; stroke-width: 1.5; transition: stroke .3s ease; }
.rig-case .z.on .z-part { fill: color-mix(in srgb, var(--accent) 22%, #1b222c); stroke: var(--accent); }
.rig-case .z.on .z-line, .rig-case .z.on .z-line-f { stroke: color-mix(in srgb, var(--accent) 80%, #fff); }
.rig-case .z.on .z-cool { fill: color-mix(in srgb, var(--accent) 14%, #1b222c); }
.rig-case .z[data-z="caja"].on .z-shell { stroke: var(--accent); }
.rig-case .z.hl .z-part, .rig-case .z.hl .z-shell { stroke: #fff; stroke-width: 2.5; }
@media (prefers-reduced-motion: no-preference) { .rig-case .z.on .z-part { animation: rigOn .6s ease; } }
@keyframes rigOn { from { fill: color-mix(in srgb, var(--accent) 60%, #1b222c); } }
.rig-meter { width: min(100%, 320px); font-size: .82rem; color: #aab2bf; }
.rm-row { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.rm-row strong { color: #fff; }
.rm-bar { height: 6px; border-radius: 4px; background: rgba(255,255,255,.1); overflow: hidden; }
.rm-bar span { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--accent), #4ade80); transition: width .4s ease; }
.rm-status { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 4px 10px; border-radius: 999px; font-weight: 600; font-size: .78rem; background: rgba(255,255,255,.08); color: #c7ced8; }
.rm-status.ok { background: rgba(74,222,128,.14); color: #86efac; }
.rm-status.warn { background: rgba(251,191,36,.14); color: #fcd34d; }
.rm-status.error { background: rgba(248,113,113,.16); color: #fca5a5; }
.rig-steps { list-style: none; margin: 0; padding: 0 0 0 8px; display: flex; flex-direction: column; gap: 6px; position: relative; }
.rig-steps::before { content: ""; position: absolute; left: -46px; top: -8%; bottom: -8%; width: 120px; border-right: 1.5px dashed rgba(255,255,255,.18); border-radius: 0 50% 50% 0 / 0 50% 50% 0; pointer-events: none; }
.rig-steps li { transform: translateX(var(--x, 0)); }
.rig-step { display: flex; align-items: center; gap: 14px; width: 100%; max-width: 420px; padding: 6px 10px 6px 6px; border: 0; border-radius: 14px; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: background .2s ease; }
.rig-step:hover:not(:disabled), .rig-step:focus-visible { background: rgba(255,255,255,.06); outline: none; }
.rig-step:focus-visible { box-shadow: 0 0 0 2px var(--accent); }
.rig-step:disabled { cursor: default; }
.rs-ic { position: relative; flex: none; width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #1f2530; border: 1.5px solid #343c4a; color: #9aa3b2; overflow: visible; }
.rs-ic img { width: 40px; height: 40px; object-fit: contain; border-radius: 50%; background: #fff; }
.rs-ok { position: absolute; right: -3px; bottom: -3px; width: 18px; height: 18px; border-radius: 50%; background: #22c55e; color: #fff; display: flex; align-items: center; justify-content: center; border: 2px solid #12161d; }
.rs-txt { display: flex; flex-direction: column; min-width: 0; }
.rs-label { font-weight: 600; color: #fff; font-size: .98rem; }
.rs-sub { font-size: .8rem; color: #8b93a1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 300px; }
.rig-step.done .rs-ic { border-color: #22c55e; }
.rig-step.done .rs-sub { color: #c7ced8; }
.rig-step.next .rs-ic { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 18%, transparent); }
.rig-step.next .rs-sub { color: var(--accent); font-weight: 600; }
.rig-step.locked { opacity: .5; }
.rig-foot { display: flex; align-items: center; justify-content: flex-end; gap: 16px; padding: 14px 24px 20px; flex-wrap: wrap; }
.rig-foot > div { display: flex; flex-direction: column; text-align: right; font-size: .9rem; color: #aab2bf; }
.rig-foot strong { color: #fff; font-size: 1.15rem; font-family: var(--display); }
.rf-sub { font-size: .78rem; }
.rig-foot .btn { display: inline-flex; align-items: center; gap: 8px; }
.btn-choose.locked { opacity: .6; }
@media (max-width: 900px) {
  .rig-body { grid-template-columns: 1fr; min-height: 0; padding: 16px 16px 4px; }
  .rig-visual { flex-direction: row; align-items: center; gap: 16px; }
  .rig-case { width: 150px; flex: none; }
  .rig-meter { flex: 1; }
  .rig-steps { padding: 0; } .rig-steps::before { display: none; }
  .rig-steps li { transform: none; }
  .rs-sub { max-width: none; }
  .rig-top { padding: 14px 16px; } .rig-tabs { width: 100%; } .rig-tab { flex: 1; min-width: 0; }
  .rig-foot { position: sticky; bottom: 0; background: rgba(13,16,22,.94); backdrop-filter: blur(6px); justify-content: space-between; padding: 12px 16px; }
  .rig-foot > div { text-align: left; }
}

/* Selector de piezas como panel lateral */
.picker.drawer { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(760px, 100%); height: 100%; max-height: none; border-radius: 20px 0 0 20px; background: #12161d; color: #e9edf2; flex-direction: column; }
.picker.drawer[open] { display: flex; }
.picker.drawer[open] { animation: drawerIn .28s cubic-bezier(.2,.8,.2,1); }
@keyframes drawerIn { from { transform: translateX(40px); opacity: 0; } }
.picker.drawer::backdrop { background: rgba(5,7,10,.6); backdrop-filter: blur(2px); }
.picker.drawer .picker-head { display: flex; align-items: center; gap: 14px; padding: 22px 24px 10px; border: 0; }
.picker.drawer .picker-head > div { flex: 1; }
.picker.drawer .picker-head h2 { color: var(--accent); font-family: var(--display); font-size: 1.6rem; margin: 0; }
.picker.drawer .picker-head p { margin: 2px 0 0; color: #aab2bf; font-size: .88rem; }
.ph-ic { color: #c7ced8; }
.picker.drawer .btn-x { color: #c7ced8; background: rgba(255,255,255,.06); }
.pk-why { display: flex; align-items: center; gap: 6px; margin: 0 24px 8px; font-size: .85rem; color: #86efac; }
.pk-why strong { color: #fff; }
.pk-brands { display: flex; gap: 8px; padding: 0 24px 8px; }
.picker.drawer .chip-btn { background: transparent; color: #e9edf2; border-color: #343c4a; }
.picker.drawer .chip-btn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #0a0c10; }
.picker.drawer .picker-tools { padding: 4px 24px 14px; border-bottom: 1px solid rgba(255,255,255,.07); color: #c7ced8; }
.picker.drawer .picker-tools input[type=search] { background: #1c212b; border-color: #343c4a; color: #fff; }
.picker.drawer .picker-list { flex: 1; overflow-y: auto; padding: 16px 24px; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; align-content: start; }
.pick-card { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 14px; border: 1px solid #2a313d; background: #181d26; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: border-color .2s ease, transform .2s ease; }
.pick-card:hover, .pick-card:focus-visible { border-color: var(--accent); outline: none; }
@media (hover: hover) { .pick-card:hover { transform: translateY(-2px); } }
.pc-img { display: flex; align-items: center; justify-content: center; height: 140px; border-radius: 10px; background: #fff; color: #9aa3b2; }
.pc-img img { max-width: 100%; max-height: 128px; object-fit: contain; }
.pc-name { font-weight: 600; font-size: .9rem; line-height: 1.3; color: #fff; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pc-specs { font-size: .78rem; color: #8b93a1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 6px; }
.pc-score { font-weight: 700; color: #fff; } .pc-score small { color: #8b93a1; font-weight: 400; }
.pc-add { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--accent); }
.pick-card.bad { opacity: .6; }
.pick-card .pick-err { font-size: .78rem; color: #fca5a5; display: flex; gap: 4px; }
.picker.drawer .picker-foot { border-top: 1px solid rgba(255,255,255,.07); color: #aab2bf; padding: 14px 24px; }
.picker.drawer .link-btn { color: #fff; }
.picker.drawer .muted { color: #aab2bf; grid-column: 1 / -1; }
@media (max-width: 700px) {
  .picker.drawer { width: 100%; border-radius: 0; }
  .picker.drawer .picker-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 12px 14px; }
  .pc-img { height: 110px; } .pc-img img { max-height: 100px; }
  .picker.drawer .picker-head { padding: 16px 16px 8px; } .picker.drawer .picker-head h2 { font-size: 1.3rem; }
  .picker.drawer .picker-tools, .pk-brands { padding-left: 16px; padding-right: 16px; } .pk-why { margin: 0 16px 8px; }
}
.picker.drawer .picker-head { background: transparent; position: static; }
.picker.drawer .picker-head .ph-ic svg { color: #c7ced8; }
.rig-meter { width: min(100%, 360px); }
.rm-row { flex-wrap: wrap; white-space: nowrap; }
.picker.drawer { max-width: 100%; }
