/* ==========================================================================
   PÁGINAS — estilos propios de cada plantilla
   ========================================================================== */

/* ---------------------------------- HOME ---------------------------------- */
.hero { padding-block: clamp(32px, 6vw, 80px) clamp(40px, 6vw, 72px); overflow: hidden; }
.hero-grid { display: grid; gap: clamp(32px, 5vw, 56px); align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1fr 1.05fr; } }
.hero-copy > * + * { margin-top: 20px; }
.hero-title { font-size: var(--fs-hero); line-height: .98; letter-spacing: -.035em; font-variation-settings: "wdth" 118; font-weight: 800; max-width: 14ch; }
.hero-ctas { margin-top: 28px !important; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 8px 32px; margin-top: 32px !important; padding-top: 20px; border-top: 1px dashed var(--line-strong); }
.hero-stats div { display: grid; gap: 4px; }
.hero-stats dt { font: 500 10px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); }
.hero-stats dd { font: 700 var(--fs-xl)/1 var(--font-mono); margin: 0; }

.scope { margin: 0; }
.scope-bezel {
  padding: 14px; border-radius: 14px;
  background: linear-gradient(180deg, #2A3136, #1A1F23 55%, #15191C);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 30px 60px -30px rgba(0,0,0,.6);
  color: #C7CFD4;
}
[data-theme="light"] .scope-bezel { background: linear-gradient(180deg, #DAD6CB, #C9C4B7); border-color: rgba(0,0,0,.12); color: #2A2F33; box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 30px 60px -30px rgba(0,0,0,.35); }
.scope-top { display: flex; justify-content: space-between; align-items: center; padding: 0 4px 10px; letter-spacing: .1em; }
.scope-trig { display: inline-flex; gap: 8px; align-items: center; }
.scope-screen { position: relative; aspect-ratio: 16 / 10; border-radius: 6px; overflow: hidden; background: #061012; border: 2px solid #0B1416; box-shadow: inset 0 0 40px rgba(0,0,0,.8); cursor: crosshair; }
.scope-screen canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.scope-msg { position: absolute; left: 16px; right: 16px; bottom: 14px; color: #7FF0E6; font: 600 clamp(14px, 1.6vw, 18px)/1.3 var(--font-display); text-shadow: 0 0 12px rgba(63,224,208,.45); opacity: 0; transform: translateY(6px); }
.scope-msg .mono { font-size: 11px; letter-spacing: .1em; color: rgba(127,240,230,.7); margin-right: 8px; }
.scope-msg.is-in { opacity: 1; transform: none; transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out); }
.scope-readouts { display: flex; flex-wrap: wrap; gap: 6px 20px; padding: 12px 4px; font-size: 11px; letter-spacing: .04em; }
.scope-readouts b { color: var(--c-cyan); font-weight: 600; }
[data-theme="light"] .scope-readouts b { color: var(--c-cyan-ink); }
.scope-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; justify-content: space-between; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.07); }
.scope-controls .segmented { background: rgba(0,0,0,.3); border-color: rgba(255,255,255,.08); }
.scope-controls .segmented button { color: #9BA6AE; }
.scope-controls .segmented [aria-pressed="true"] { background: #2E363C; color: var(--c-cyan); }
[data-theme="light"] .scope-controls .segmented { background: rgba(0,0,0,.08); }
[data-theme="light"] .scope-controls .segmented button { color: #4B5257; }
[data-theme="light"] .scope-controls .segmented [aria-pressed="true"] { background: #F4F2EC; color: var(--c-cyan-ink); }
.scope-controls .btn--ghost { --btn-fg: inherit; }
.scope-knobs { display: flex; gap: 12px; }
.knob { position: relative; width: 32px; height: 32px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #59626A, #22282C 70%); border: 1px solid rgba(0,0,0,.5); box-shadow: 0 2px 4px rgba(0,0,0,.5); transition: transform var(--dur-2) var(--ease-out); }
.knob i { position: absolute; left: 50%; top: 4px; width: 2px; height: 9px; margin-left: -1px; border-radius: 1px; background: #E6EAEC; }

.trust-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .trust-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .trust-grid { grid-template-columns: repeat(4, 1fr); } }

.mode-band { display: grid; gap: clamp(24px, 4vw, 48px); padding: clamp(24px, 4vw, 48px); border-radius: 12px; background: color-mix(in srgb, var(--accent) 7%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line)); }
@media (min-width: 960px) { .mode-band { grid-template-columns: 1fr 1.2fr; align-items: center; } }
.mode-band-copy > * + * { margin-top: 12px; }
.feature-list { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: var(--r-2); background: var(--surface); border: 1px solid var(--line); }
.feature-list h3 { font-size: var(--fs-md); margin-bottom: 4px; }
.feature-list p { font-size: var(--fs-sm); color: var(--text-muted); }
.feature-list .cm-icon { flex: none; width: 40px; height: 40px; color: var(--accent-text); }
.feature-list--compact { grid-template-columns: 1fr; gap: 8px; }
.feature-list--compact li { padding: 12px 14px; align-items: baseline; }
.feature-list--compact .led { margin-top: 6px; }
.pro-grid { display: grid; gap: 12px; }
@media (min-width: 700px) { .pro-grid { grid-template-columns: 1fr 1fr; } }

/* Esquemático */
.schematic-wrap { display: grid; gap: 16px; }
@media (min-width: 1024px) { .schematic-wrap { grid-template-columns: 1fr 340px; align-items: start; } }
.schematic-canvas { overflow-x: auto; padding: 16px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); background-image: radial-gradient(var(--line-strong) 1px, transparent 1px); background-size: 20px 20px; }
.schematic { min-width: 640px; width: 100%; height: auto; }
.schematic .w { fill: none; stroke: var(--text-faint); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.schematic .jn { fill: var(--text-faint); }
.schematic text { font-family: var(--font-mono); }
.schematic .net { font-size: 10px; fill: var(--copper-text); font-weight: 600; }
.schematic .ref { font-size: 11px; font-weight: 700; fill: var(--text); }
.schematic .val { font-size: 9.5px; fill: var(--text-muted); }
.schematic .pin { font-size: 9px; fill: var(--text-faint); }
.schematic .part { cursor: pointer; outline: none; }
.schematic .part > rect, .schematic .part > path { fill: none; stroke: var(--text-muted); stroke-width: 1.8; stroke-linejoin: round; transition: stroke var(--dur-1), filter var(--dur-1); }
.schematic .part > rect { fill: color-mix(in srgb, var(--surface-2) 70%, transparent); }
.schematic .part .screen { fill: #061012; stroke: var(--interactive); stroke-width: 1; }
.schematic .part:hover > rect, .schematic .part:hover > path,
.schematic .part.is-on > rect, .schematic .part.is-on > path,
.schematic .part:focus-visible > rect, .schematic .part:focus-visible > path { stroke: var(--trace); filter: drop-shadow(0 0 6px var(--trace-glow)); }
.schematic .part.is-on > rect { fill: color-mix(in srgb, var(--trace) 12%, var(--surface)); }
.schematic .part.is-on .ref, .schematic .part:focus-visible .ref { fill: var(--copper-text); }
.schematic .part:focus-visible > rect { stroke-width: 2.6; }
.schematic-panel { position: sticky; top: calc(var(--header-h) + 72px); min-height: 360px; }
.sch-list { display: grid; gap: 2px; margin: 12px 0; }
.sch-list button { width: 100%; display: grid; grid-template-columns: 44px 1fr; gap: 8px; text-align: left; padding: 7px 8px; border-radius: 3px; font-size: var(--fs-sm); }
.sch-list button:hover { background: var(--surface-2); }
.sch-list .mono { color: var(--copper-text); font-weight: 600; font-size: 12px; }
.sch-total { display: flex; justify-content: space-between; padding: 12px 0; margin-bottom: 12px; border-top: 1px dashed var(--line-strong); }

.tools-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); }
.countdown { display: grid; justify-items: end; gap: 0; }

.newsletter { display: grid; gap: clamp(24px, 4vw, 48px); padding: clamp(24px, 5vw, 56px); border-radius: 12px; background: var(--surface); border: 1px solid var(--line); position: relative; overflow: hidden; }
.newsletter::before { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border: 2px solid var(--trace-dim); border-radius: 50%; }
.newsletter > div > * + * { margin-top: 12px; }
@media (min-width: 960px) { .newsletter { grid-template-columns: 1.1fr 1fr; align-items: center; } }
.newsletter-form { display: grid; gap: 14px; position: relative; }

/* ------------------------------- CABECERA DE PÁGINA ------------------------------- */
.page-hero { padding-block: clamp(24px, 4vw, 48px) clamp(16px, 3vw, 32px); }
.page-hero h1 { margin-top: 14px; }
.page-hero .lead { margin-top: 12px; }

/* ---------------------------------- CATÁLOGO ---------------------------------- */
.catalog-layout { display: grid; gap: var(--sp-4); align-items: start; }
@media (min-width: 1024px) { .catalog-layout { grid-template-columns: 272px 1fr; } }
.catalog-aside { display: none; }
@media (min-width: 1024px) { .catalog-aside { display: block; position: sticky; top: calc(var(--header-h) + 64px); max-height: calc(100vh - 140px); overflow: auto; padding-right: 8px; scrollbar-width: thin; } }
.catalog-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 0; margin-bottom: 16px; border-bottom: 1px solid var(--line); position: sticky; top: calc(var(--header-h) + 42px); z-index: 4; background: var(--header-bg); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
@media (max-width: 1023px) { .catalog-toolbar { top: 108px; } }
.results-count { font: 500 var(--fs-sm)/1 var(--font-mono); }
.results-count strong { color: var(--accent-text); font-size: var(--fs-lg); }
.filter-btn { display: inline-flex; }
@media (min-width: 1024px) { .filter-btn { display: none; } }
.cat-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 8px; scrollbar-width: none; }
.cat-tabs a { flex: none; }
.cat-tabs a[aria-current="page"] { color: var(--accent-text); border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }

/* ---------------------------------- FICHA DE PRODUCTO ---------------------------------- */
.pdp { display: grid; gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (min-width: 1024px) { .pdp { grid-template-columns: 1.05fr 1fr; } }
.gallery { display: grid; gap: 12px; }
@media (min-width: 1024px) { .gallery { position: sticky; top: calc(var(--header-h) + 64px); } }
.gallery-main { position: relative; border-radius: var(--r-2); overflow: hidden; border: 1px solid var(--line); cursor: zoom-in; }
.gallery-main .art { aspect-ratio: 4 / 3; }
.gallery-main .art svg, .gallery-main .art img { transition: transform var(--dur-2) var(--ease-out); transform-origin: var(--zx, 50%) var(--zy, 50%); }
.gallery-main.is-zoom .art svg, .gallery-main.is-zoom .art img { transform: scale(2.2); }
.gallery-main .zoom-hint { position: absolute; right: 10px; bottom: 10px; display: inline-flex; gap: 6px; align-items: center; padding: 6px 10px; border-radius: 3px; font: 500 10px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); background: color-mix(in srgb, var(--surface) 85%, transparent); border: 1px solid var(--line); pointer-events: none; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.gallery-thumbs button { border-radius: 4px; overflow: hidden; border: 1px solid var(--line); text-align: left; }
.gallery-thumbs button[aria-pressed="true"] { border-color: var(--interactive); box-shadow: var(--glow-cyan); }
.gallery-thumbs .t-label { display: block; padding: 6px 8px; font: 500 10px/1 var(--font-mono); color: var(--text-muted); background: var(--surface); }
.art-blueprint * { fill: none !important; stroke: var(--trace) !important; stroke-width: 1 !important; filter: none !important; }
.art-blueprint text { fill: var(--copper-text) !important; stroke: none !important; }
.art:has(.art-blueprint) { background-color: color-mix(in srgb, var(--c-mask) 10%, var(--art-bg)); }

.pdp-info > * + * { margin-top: 16px; }
.pdp-title { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); font-variation-settings: "wdth" 108; }
.pdp-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.copy-chip { cursor: copy; }
.pdp-summary { font-size: var(--fs-lg); color: var(--text-muted); }
.compat-list { display: flex; flex-wrap: wrap; gap: 6px; }
.buy-box { padding: 20px; border-radius: var(--r-2); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 16px; }
.buy-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.buy-row .btn--primary { flex: 1; min-width: 180px; }
.buy-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.buy-price .price { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.25rem); }
.delivery-note { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-sm); padding: 12px 14px; border-radius: var(--r-1); background: color-mix(in srgb, var(--ok) 8%, transparent); border: 1px solid color-mix(in srgb, var(--ok) 30%, transparent); }
.delivery-note .ico { color: var(--ok); margin-top: 1px; }
.datasheet-btn { justify-content: flex-start; }

.pdp-tabs { margin-top: clamp(40px, 6vw, 72px); }
.desc-grid { display: grid; gap: 32px; }
@media (min-width: 960px) { .desc-grid { grid-template-columns: 1.3fr 1fr; } }

/* Visor de pinout */
.pinout { display: grid; gap: 20px; }
@media (min-width: 960px) { .pinout { grid-template-columns: 1fr 320px; align-items: start; } }
.pinout-stage { padding: 20px; border-radius: var(--r-2); background: var(--art-bg); border: 1px solid var(--line); overflow-x: auto; }
.pinout-stage svg { min-width: 420px; width: 100%; height: auto; margin-inline: auto; }
.pin-legend { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.pin-legend button { display: inline-flex; align-items: center; gap: 6px; }
.pin-legend button[aria-pressed="true"] { color: var(--text); border-color: var(--interactive); }
.pin-legend i { width: 10px; height: 10px; border-radius: 2px; background: var(--c); }
.pin { cursor: pointer; outline: none; }
.pin rect.pad { stroke: rgba(0,0,0,.35); stroke-width: 1; transition: filter var(--dur-1), opacity var(--dur-1); }
.pin text { font-family: var(--font-mono); font-size: 10px; fill: var(--text); }
.pin text.num { fill: var(--text-faint); font-size: 9px; }
.pin.is-dim { opacity: .25; }
.pin:hover rect.pad, .pin:focus-visible rect.pad, .pin.is-on rect.pad { filter: drop-shadow(0 0 5px var(--c-cyan)); stroke: var(--c-cyan); stroke-width: 2; }
.pin:focus-visible text, .pin.is-on text:not(.num) { fill: var(--interactive-text); font-weight: 700; }
.pinout-info { min-height: 200px; }
.pinout-info .pin-name { font: 700 var(--fs-xl)/1.1 var(--font-mono); }

.bundle { display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; }
.bundle-item { flex: 1 1 200px; display: grid; gap: 8px; padding: 12px; border-radius: var(--r-2); background: var(--surface); border: 1px solid var(--line); }
.bundle-item label { display: flex; gap: 8px; align-items: flex-start; font-size: var(--fs-sm); font-weight: 600; cursor: pointer; }
.bundle-item input { accent-color: var(--accent); width: 18px; height: 18px; margin-top: 1px; }
.bundle-plus { align-self: center; font: 700 22px/1 var(--font-mono); color: var(--copper-text); }
.bundle-total { flex: 1 1 220px; display: grid; gap: 10px; align-content: center; padding: 16px; border-radius: var(--r-2); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line)); }

/* ---------------------------------- BOM ---------------------------------- */
.bom-layout { display: grid; gap: 24px; align-items: start; }
@media (min-width: 1100px) { .bom-layout { grid-template-columns: 1fr 340px; } }
.bom-title-input { width: 100%; font: 800 var(--fs-3xl)/1.05 var(--font-display); font-variation-settings: "wdth" 112; letter-spacing: -.02em; background: transparent; border: 0; border-bottom: 1px dashed var(--line-strong); padding: 4px 0 8px; color: var(--text); }
.bom-title-input:focus { outline: none; border-bottom-color: var(--interactive); }
.bom-table { min-width: 880px; }
.bom-table td { white-space: normal; }
.bom-ref { min-height: 34px; width: 100px; padding: 6px 8px; font-size: 12px; }
.bom-add { display: grid; gap: 8px; position: relative; }
.bom-add .search-panel { top: calc(100% + 4px); }
.summary { position: sticky; top: calc(var(--header-h) + 64px); display: grid; gap: 14px; }
.summary .total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; border-top: 2px solid var(--text); }
.summary .total strong { font: 700 var(--fs-2xl)/1 var(--font-mono); }
.lab-banner { display: grid; gap: 16px; padding: 20px; border-radius: 10px; margin-bottom: 24px; background: color-mix(in srgb, var(--accent) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line)); }
@media (min-width: 800px) { .lab-banner { grid-template-columns: auto 1fr auto; align-items: center; } }
.lab-banner .cm-icon { color: var(--accent-text); }
.lab-send { display: grid; gap: 8px; justify-items: start; padding-top: 14px; border-top: 1px dashed var(--line-strong); }

/* ---------------------------------- CARRITO / CHECKOUT ---------------------------------- */
.stepper { display: flex; gap: 0; margin-bottom: 28px; counter-reset: step; overflow-x: auto; }
.stepper li { flex: 1; min-width: 120px; list-style: none; position: relative; padding: 14px 12px 0 0; font: 500 var(--fs-xs)/1.2 var(--font-mono); letter-spacing: .04em; color: var(--text-faint); border-top: 3px solid var(--surface-3); }
.stepper li::before { counter-increment: step; content: counter(step, decimal-leading-zero) " "; color: var(--text-faint); }
.stepper li.is-done { border-top-color: var(--trace); color: var(--text-muted); }
.stepper li.is-current { border-top-color: var(--accent); color: var(--text); }
.stepper li.is-current::before { color: var(--accent-text); }
.cart-layout { display: grid; gap: 24px; align-items: start; }
@media (min-width: 1024px) { .cart-layout { grid-template-columns: 1fr 360px; } }
.cart-lines { display: grid; gap: 0; border-top: 1px solid var(--line); }
.cart-line { display: grid; grid-template-columns: 88px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 700px) { .cart-line { grid-template-columns: 104px 1fr auto auto; align-items: center; } }
.cart-line .art { border-radius: 4px; }
.option-card { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; padding: 16px; border-radius: var(--r-2); border: 1px solid var(--line-strong); background: var(--surface); cursor: pointer; transition: border-color var(--dur-1), background-color var(--dur-1); }
.option-card:hover { border-color: var(--interactive); }
.option-card:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }
.option-card:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.option-card input { accent-color: var(--accent); width: 18px; height: 18px; margin-top: 2px; }
.option-card strong { display: block; }
.option-card .desc { font-size: var(--fs-sm); color: var(--text-muted); }
.option-grid { display: grid; gap: 10px; }
.check-step { display: grid; gap: 18px; }
.check-step[hidden] { display: none; }
.check-nav { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; margin-top: 8px; }
.confirm-box { text-align: center; display: grid; justify-items: center; gap: 14px; padding: clamp(24px, 5vw, 56px); }
.confirm-box .ico { width: 56px; height: 56px; color: var(--ok); }

/* ---------------------------------- CUENTA ---------------------------------- */
.account-layout { display: grid; gap: 24px; align-items: start; }
@media (min-width: 960px) { .account-layout { grid-template-columns: 240px 1fr; } }
.account-nav { display: grid; gap: 2px; }
@media (min-width: 960px) { .account-nav { position: sticky; top: calc(var(--header-h) + 64px); } }
.account-nav [role="tab"] { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: var(--r-1); font-weight: 600; font-size: var(--fs-sm); color: var(--text-muted); text-align: left; }
.account-nav [role="tab"]:hover { background: var(--surface-2); color: var(--text); }
.account-nav [role="tab"][aria-selected="true"] { background: var(--surface-2); color: var(--text); box-shadow: inset 3px 0 0 var(--trace); }
@media (max-width: 959px) { .account-nav { grid-auto-flow: column; overflow-x: auto; } .account-nav [role="tab"] { white-space: nowrap; } }
.stat-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.stat { padding: 16px; border-radius: var(--r-2); background: var(--surface); border: 1px solid var(--line); }
.stat dt { font: 500 10px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); }
.stat dd { margin: 8px 0 0; font: 700 var(--fs-2xl)/1 var(--font-mono); }
.list-card { display: grid; gap: 10px; padding: 16px; border-radius: var(--r-2); background: var(--surface); border: 1px solid var(--line); }
@media (min-width: 700px) { .list-card { grid-template-columns: 1fr auto; align-items: center; } }

/* ---------------------------------- COMPARADOR ---------------------------------- */
.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-2); background: var(--surface); }
.compare-table { min-width: 760px; table-layout: fixed; font-size: var(--fs-sm); }
.compare-table th, .compare-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.compare-table thead th { vertical-align: bottom; background: var(--surface-2); }
.compare-table tbody th { width: 200px; font-weight: 500; color: var(--text-muted); position: sticky; left: 0; background: var(--surface); }
.compare-table td { font-family: var(--font-mono); font-size: 12.5px; }
.compare-table tr.is-diff td { background: color-mix(in srgb, var(--signal) 6%, transparent); }
.compare-table .cmp-head { display: grid; gap: 8px; }
.compare-table .cmp-head .art { border-radius: 4px; }

/* ---------------------------------- KITS ---------------------------------- */
.kit-detail { border-radius: 10px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; scroll-margin-top: calc(var(--header-h) + 80px); }
.kit-detail:target { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.kit-detail-head { display: grid; gap: 16px; padding: 20px; }
@media (min-width: 900px) { .kit-detail-head { grid-template-columns: 1fr auto; align-items: center; } }
.kit-detail-body { border-top: 1px solid var(--line); }
.kit-detail table { font-size: var(--fs-sm); }
.kit-detail th, .kit-detail td { padding: 10px 20px; border-bottom: 1px solid var(--line); text-align: left; }
.kit-detail thead th { font: 500 10px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); background: var(--surface-2); }

/* ---------------------------------- CÓMO FUNCIONA (instructivo de modos) ---------------------------------- */
.guide-picker { display: grid; gap: 12px; margin-bottom: 24px; }
@media (min-width: 640px) { .guide-picker { grid-template-columns: 1fr 1fr; } }
.guide-tab { display: flex; align-items: center; gap: 14px; padding: 16px 18px; text-align: left; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); transition: border-color var(--dur-2), background-color var(--dur-2); }
.guide-tab strong { display: block; font: 700 var(--fs-lg)/1.2 var(--font-display); }
.guide-tab small { display: block; margin-top: 2px; font-size: var(--fs-sm); color: var(--text-muted); }
.guide-tab-icon { width: 52px; height: 52px; flex: none; display: grid; place-items: center; border-radius: var(--r-2); background: var(--bg-sunken); border: 1px solid var(--line); color: var(--text-muted); }
.guide-tab[data-guide-tab="academico"] .guide-tab-icon { color: var(--c-mask-hi); }
.guide-tab[data-guide-tab="pro"] .guide-tab-icon { color: var(--copper-text); }
[data-theme="light"] .guide-tab[data-guide-tab="academico"] .guide-tab-icon { color: var(--c-mask); }
.guide-tab:hover { border-color: var(--line-strong); }
.guide-tab[aria-selected="true"][data-guide-tab="academico"] { border-color: var(--c-mask-hi); background: color-mix(in srgb, var(--c-mask) 12%, var(--surface)); }
.guide-tab[aria-selected="true"][data-guide-tab="pro"] { border-color: var(--c-copper); background: color-mix(in srgb, var(--c-copper) 10%, var(--surface)); }
.guide-intro { display: grid; gap: 16px; margin-bottom: 28px; }
.guide-intro h2 { margin: 6px 0 8px; }
@media (min-width: 860px) { .guide-intro { grid-template-columns: 1fr auto; align-items: center; } }
.guide-intro-action { display: grid; gap: 8px; justify-items: start; }
@media (min-width: 860px) { .guide-intro-action { justify-items: end; } }
/* Pasos unidos por una pista de cobre, cada número es una vía */
.guide-steps { position: relative; display: grid; gap: 0; margin: 0 0 28px; padding: 0; list-style: none; }
.guide-steps::before { content: ""; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 2px; background: var(--trace-dim); }
.guide-step { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding-bottom: 22px; }
.guide-num { position: relative; z-index: 1; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--bg); border: 2px solid var(--trace); font: 700 var(--fs-sm)/1 var(--font-mono); color: var(--copper-text); }
.guide-body { padding: 14px 18px; border-radius: var(--r-2); background: var(--surface); border: 1px solid var(--line); }
.guide-body h3 { display: flex; align-items: center; gap: 10px; font-size: var(--fs-lg); margin-bottom: 6px; }
.guide-body h3 .ico { color: var(--accent-text); flex: none; }
.guide-body p { color: var(--text-muted); max-width: 72ch; }
.guide-body p strong, .guide-body p em { color: var(--text); }
.guide-body code { font-size: .92em; padding: 1px 6px; border-radius: 3px; background: var(--bg-sunken); border: 1px solid var(--line); color: var(--text); }
.guide-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-weight: 600; font-size: var(--fs-sm); color: var(--accent-text); text-decoration: none; }
.guide-link:hover { text-decoration: underline; }
.guide-table { min-width: 640px; }
.guide-table th, .guide-table td { white-space: normal; vertical-align: top; }
.guide-table tbody th { font-weight: 600; width: 22%; }

/* ---------------------------------- BASE / POLÍTICAS ---------------------------------- */
.base-layout { display: grid; gap: 32px; align-items: start; }
@media (min-width: 1024px) { .base-layout { grid-template-columns: 1fr 320px; } }
.contact-cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.contact-card { display: grid; gap: 8px; padding: 20px; border-radius: var(--r-2); background: var(--surface); border: 1px solid var(--line); text-decoration: none; }
.contact-card:hover { border-color: var(--interactive); }
.contact-card .ico { color: var(--copper-text); width: 28px; height: 28px; }
.timeline { display: grid; gap: 0; border-left: 2px solid var(--trace-dim); margin-left: 6px; }
.timeline li { list-style: none; position: relative; padding: 0 0 24px 24px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--trace); }
