/* ==========================================================================
   HWSpot — hoja de estilos principal
   Sin frameworks: tokens en :root, layout con grid/flex y componentes propios.
   Colores de fabricante: AMD = rojo, Intel = azul, Nvidia = verde.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
    /* superficie */
    --bg: #f3f4f7;
    --surface: #ffffff;
    --surface-2: #f8f9fb;
    --stage: #ffffff;
    --border: #e2e5eb;
    --border-strong: #cfd4dd;

    /* texto */
    --text: #141821;
    --text-2: #4a5263;
    --muted: #7a8396;

    /* marca (naranja HWSpot) */
    --brand: #f26b1d;
    --brand-strong: #d9580d;
    --brand-ink: #b54708;
    --brand-tint: #fff1e8;

    /* cabecera */
    --header-bg: #0e1117;
    --header-text: #c9ced8;

    /* fabricantes: tono principal y tono oscuro (segundo producto del mismo fabricante / seleccionado) */
    --amd: #e3262f;
    --amd-2: #8e0f16;
    --intel: #1f6fd6;
    --intel-2: #0b3f8a;
    --nv: #6fae00;
    --nv-2: #3c6a00;

    /* estado */
    --ok: #16a34a;
    --bad: #dc2626;

    /* forma */
    --radius: 14px;
    --radius-sm: 9px;
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06);
    --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 6px 18px -6px rgba(16, 24, 40, .12);
    --shadow-lg: 0 18px 40px -12px rgba(16, 24, 40, .28);

    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;

    --header-h: 60px;
    --container: 1280px;
    --gutter: 16px;
}

/* ---------- Clases de fabricante ----------
   Sólo definen el color (--v); cada componente decide cómo usarlo. */
.amdColor, .amdColorBorder, .iconAMD { --v: var(--amd); }
.amdColor2, .amdColor2Border { --v: var(--amd-2); }
.intelColor, .intelColorBorder, .iconIntel { --v: var(--intel); }
.intelColor2, .intelColor2Border { --v: var(--intel-2); }
.nvColor, .nvColorBorder, .iconNvidia { --v: var(--nv); }
.nvColor2, .nvColor2Border { --v: var(--nv-2); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 400 15px/1.55 var(--font);
    -webkit-font-smoothing: antialiased;
    font-feature-settings: "cv11", "ss01";
}

img { max-width: 100%; height: auto; }

a { color: var(--brand-ink); text-decoration: none; }
a:hover { color: var(--brand-strong); }

h1, h2, h3, h4, h5 {
    margin: 0 0 .5em;
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.01em;
    color: var(--text);
}
h1 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }
h4 { font-size: 1rem; }

p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 20px 0; }
code { font: 13px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; background: var(--surface-2); padding: 2px 6px; border-radius: 6px; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.notvisible { display: none !important; }

/* ---------- Iconos (SVG como máscara, heredan currentColor) ---------- */
.ico {
    display: inline-block;
    width: 1.1em; height: 1.1em;
    flex: none;
    vertical-align: -.2em;
    background: currentColor;
    -webkit-mask: var(--i) center / contain no-repeat;
    mask: var(--i) center / contain no-repeat;
}
.ico-check { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m8 12.5 2.7 2.7L16.5 9.5'/%3E%3C/svg%3E"); }
.ico-cross { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m9 9 6 6M15 9l-6 6'/%3E%3C/svg%3E"); }
.ico-info { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 11v6M12 7.5v.01'/%3E%3C/svg%3E"); }
.ico-compare { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h13l-3-3M20 17H7l3 3'/%3E%3C/svg%3E"); }
.ico-chart { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M4 20h16M7 16V10M12 16V5M17 16v-4'/%3E%3C/svg%3E"); }
.ico-chev-l { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15 5-7 7 7 7'/%3E%3C/svg%3E"); }
.ico-chev-r { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 5 7 7-7 7'/%3E%3C/svg%3E"); }
.ico-menu { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M4 7h16M4 12h16M4 17h16'/%3E%3C/svg%3E"); }
.ico-trophy { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 21h8M12 17v4M7 4h10v5a5 5 0 0 1-10 0V4ZM7 6H4v1a3 3 0 0 0 3 3M17 6h3v1a3 3 0 0 1-3 3'/%3E%3C/svg%3E"); }

/* ---------- Cabecera ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: color-mix(in srgb, var(--header-bg) 94%, transparent);
    -webkit-backdrop-filter: saturate(160%) blur(10px);
    backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.site-header::after {
    /* filete con los tres colores de fabricante */
    content: "";
    position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
    background: linear-gradient(90deg, var(--amd) 0 33.33%, var(--intel) 33.33% 66.66%, var(--nv) 66.66% 100%);
    opacity: .9;
}
.site-header__inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
    height: var(--header-h);
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 21px;
    letter-spacing: -.02em;
    white-space: nowrap;
}
.brand:hover { color: #fff; }
.brand__mark {
    display: grid;
    place-items: center;
    width: 34px; height: 34px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--brand) 0%, #ff9a3d 100%);
    color: #160a02;
    font-size: 14px;
    letter-spacing: 0;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .12) inset, 0 4px 14px -4px rgba(242, 107, 29, .7);
}
.brand__name span { color: var(--brand); }
.brand__tld { color: var(--header-text); font-weight: 500; font-size: 15px; }

.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.main-nav a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--header-text);
    font-weight: 500;
    font-size: 14px;
    transition: background-color .15s, color .15s;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { background: rgba(255, 255, 255, .08); color: #fff; }
.main-nav .ico { opacity: .8; }

.nav-toggle {
    display: none;
    margin-left: auto;
    width: 40px; height: 40px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 10px;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font-size: 20px;
}

@media (max-width: 760px) {
    .nav-toggle { display: grid; place-items: center; }
    .main-nav {
        position: absolute;
        top: var(--header-h); left: 0; right: 0;
        background: var(--header-bg);
        border-bottom: 1px solid rgba(255, 255, 255, .08);
        display: none;
    }
    .site-header.is-open .main-nav { display: block; }
    .main-nav ul { flex-direction: column; padding: 8px var(--gutter) 14px; }
    .main-nav a { border-radius: 10px; padding: 12px 14px; }
}

/* ---------- Banner publicitario superior ---------- */
.top-banner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 18px var(--gutter) 0;
    display: flex;
    justify-content: center;
}
.top-banner__slot { min-height: 90px; }
@media (max-width: 767px) { .top-banner { display: none; } }

/* ---------- Layout de página ---------- */
.page {
    max-width: var(--container);
    margin: 0 auto;
    padding: 18px var(--gutter) 48px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
}
.page__breadcrumb { grid-column: 1 / -1; min-height: 0; }
.page__breadcrumb:empty { display: none; }
.page__main { min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.page__aside { min-width: 0; display: flex; flex-direction: column; gap: 18px; }

@media (min-width: 1024px) {
    .page { grid-template-columns: minmax(0, 1fr) 320px; gap: 24px 28px; }
    .page__aside { position: sticky; top: calc(var(--header-h) + 16px); align-self: start; max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto; scrollbar-width: thin; }
}

/* ---------- Migas de pan ---------- */
.breadcrumb {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--muted);
}
.breadcrumb li { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumb li + li::before {
    content: "";
    width: 6px; height: 6px;
    border-right: 1.5px solid currentColor;
    border-top: 1.5px solid currentColor;
    transform: rotate(45deg);
    opacity: .6;
    margin-right: 4px;
}
.breadcrumb a { color: var(--text-2); }
.breadcrumb a:hover { color: var(--brand-ink); }
.breadcrumb .active { color: var(--text); font-weight: 500; }

/* ---------- Tarjetas / secciones ---------- */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 22px;
    min-width: 0;
}
@media (max-width: 600px) { .card { padding: 16px; border-radius: 12px; } }

.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}
.section-head h1, .section-head h2 { margin: 0; }
.section-head h2 { display: flex; align-items: center; gap: 10px; }
.section-head h2::before {
    content: "";
    width: 4px; height: 1.05em;
    border-radius: 4px;
    background: var(--brand);
}
.section-head__hint { color: var(--muted); font-size: 13px; }

.subhead { font-size: .95rem; margin: 22px 0 10px; color: var(--text-2); text-transform: uppercase; letter-spacing: .06em; font-family: var(--font); font-weight: 600; font-size: 12px; }
.subhead:first-child { margin-top: 0; }

.page-title { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; }
.page-title h1 { margin: 0; }
.page-title__eyebrow { display: block; color: var(--brand-ink); font: 600 12px/1 var(--font); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px; }

/* ---------- Grids ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1180px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); } }
.span-all { grid-column: 1 / -1; }

/* ---------- Botones ---------- */
.btn {
    -webkit-appearance: none;
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 16px;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
    font: 600 14px/1 var(--font);
    cursor: pointer;
    white-space: nowrap;
    transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s, transform .05s;
}
.btn:hover { border-color: var(--text-2); color: var(--text); }
.btn:active { transform: translateY(1px); }
.btn-primary {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    box-shadow: 0 6px 16px -8px rgba(242, 107, 29, .9);
}
.btn-primary:hover { background: var(--brand-strong); border-color: var(--brand-strong); color: #fff; }
.btn-sm { min-height: 30px; padding: 5px 12px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }

/* Control segmentado (pestañas de /vgas, /cpus y resoluciones de juegos).
   El JS existente alterna la clase .active en los .btnOrange. */
.seg {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 4px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}
.seg .btn {
    min-height: 34px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--text-2);
    font-weight: 500;
}
.seg .btn:hover { background: var(--surface-2); color: var(--text); }
.seg .btn.active { background: var(--text); color: #fff; }
.seg--light .btn.active { background: var(--brand-tint); color: var(--brand-ink); }

/* ---------- Formularios ---------- */
input[type="text"], select {
    width: 100%;
    min-height: 42px;
    padding: 9px 12px;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
    font: 400 15px/1.3 var(--font);
    transition: border-color .15s, box-shadow .15s;
}
input[type="text"]::placeholder { color: var(--muted); }
input[type="text"]:focus, select:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent);
}
select {
    -webkit-appearance: none;
    appearance: none;
    padding-right: 38px;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a8396' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

/* Formulario "A vs B" (sidebar y /compare-gpus) */
.vs-form { display: flex; flex-direction: column; gap: 8px; }
.vs-form__sep {
    align-self: center;
    display: grid;
    place-items: center;
    width: 28px; height: 28px;
    margin: -16px 0;
    position: relative;
    z-index: 1;
    border-radius: 50%;
    background: var(--text);
    color: #fff;
    font: 700 10px/1 var(--font-display);
    letter-spacing: .04em;
    text-transform: uppercase;
    box-shadow: 0 0 0 4px var(--surface);
}
.vs-form .btn { margin-top: 4px; }

.vs-form--wide { flex-direction: row; align-items: center; gap: 12px; }
.vs-form--wide input[type="text"] { flex: 1; min-height: 50px; font-size: 16px; }
.vs-form--wide .vs-form__sep { margin: 0; width: 36px; height: 36px; font-size: 12px; box-shadow: none; flex: none; }
.vs-form--wide .btn { margin: 0; min-height: 50px; padding: 0 26px; font-size: 15px; }
@media (max-width: 680px) {
    .vs-form--wide { flex-direction: column; align-items: stretch; }
    .vs-form--wide .vs-form__sep { align-self: center; margin: -18px 0; box-shadow: 0 0 0 4px var(--surface); }
}

/* ---------- Sidebar ---------- */
.side-card--extra:not(:has(*)) { display: none; }
.side-card h3 { font-size: 1rem; display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.side-card h3 .ico { color: var(--brand); }

.top-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.top-list a {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    margin: 0 -10px;
    border-radius: 10px;
    color: var(--text);
    font-size: 13px;
    line-height: 1.3;
    transition: background-color .15s;
}
.top-list a:hover { background: var(--surface-2); color: var(--text); }
.top-list__item { display: flex; align-items: center; gap: 8px; min-width: 0; }
.top-list__item:last-child { flex-direction: row-reverse; text-align: right; }
.top-list__vs { color: var(--muted); font: 700 10px/1 var(--font-display); text-transform: uppercase; }

/* Distintivo de fabricante (sidebar, autocompletado) */
.iconAMD, .iconIntel, .iconNvidia {
    display: inline-grid;
    place-items: center;
    flex: none;
    width: 8px; height: 30px;
    border-radius: 4px;
    background: var(--v);
}
.vendor-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font: 600 11px/1 var(--font);
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--v);
}
.vendor-tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--v); }

/* ---------- Etiquetas de mercado ---------- */
.mkt_Desktop, .mkt_Mobile, .mkt_Pro, .mkt_Server, .mkt_Undefined {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    font: 600 10.5px/1.2 var(--font);
    letter-spacing: .06em;
    background: #eef0f4;
    color: var(--text-2);
}
.mkt_Desktop { background: #eaf1ff; color: #1d4ed8; }
.mkt_Mobile { background: #e9f8ee; color: #15803d; }
.mkt_Pro, .mkt_Server { background: #f3ecff; color: #6d28d9; }

/* ---------- Tarjeta de producto (cabecera de comparaciones / overview) ---------- */
.versus { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.versus__badge {
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    display: grid;
    place-items: center;
    width: 54px; height: 54px;
    border-radius: 50%;
    background: var(--text);
    color: #fff;
    font: 700 16px/1 var(--font-display);
    letter-spacing: .02em;
    box-shadow: 0 0 0 6px var(--bg), var(--shadow);
}
@media (max-width: 680px) {
    .versus { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .versus__badge { width: 44px; height: 44px; font-size: 13px; }
}

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    min-width: 0;
}
.product-card::before {
    content: "";
    position: absolute; inset: 0 0 auto 0; height: 4px;
    background: var(--v, var(--brand));
}
.product-card__body { padding: 20px 20px 6px; }
.product-card__vendor { margin-bottom: 8px; }
.product-card__name { font-size: 1.35rem; margin: 0 0 10px; }
.product-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13px; color: var(--text-2); }
.product-card__meta > span:not([class^="mkt_"]):not(:last-child)::after { content: "·"; margin-left: 10px; color: var(--muted); }
.product-card__stage {
    margin: 14px;
    margin-top: auto;
    border-radius: 10px;
    background: radial-gradient(120% 90% at 50% 100%, color-mix(in srgb, var(--v, var(--brand)) 10%, var(--stage)) 0%, var(--stage) 70%);
    display: grid;
    place-items: center;
    min-height: 170px;
    padding: 12px;
}
.product-card__stage img { max-height: 190px; width: auto; object-fit: contain; }
.product-card--cpu .product-card__stage img { max-height: 150px; }

.notice {
    display: flex;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 12px;
    background: var(--brand-tint);
    border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent);
    color: #7a2e04;
    font-size: 14px;
}
.notice .ico { color: var(--brand); margin-top: 2px; }

/* ---------- Gráficos de barras ----------
   ul.bargraph > li > (.gcname = etiqueta, .gcrate = valor, .bar > .bar__fill = barra)
   El color sale de la clase de fabricante en el <li>. */
.chart { display: flex; flex-direction: column; min-width: 0; }
.chart__title { display: flex; align-items: center; gap: 6px; font-size: 15px; margin: 0 0 4px; }
.chart__note { color: var(--muted); font-size: 13px; margin: 0 0 8px; }
.chart__legend, .lg { color: var(--muted); font-size: 12px; margin: 8px 0 0; }

ul.bargraph { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
ul.bargraph > li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: baseline;
    gap: 4px 12px;
    padding: 4px 0;
    border-radius: 8px;
}
ul.bargraph .gcname {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
ul.bargraph .gcname::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 2px; background: var(--v, var(--muted)); }
ul.bargraph .gcrate { font-size: 13px; font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
ul.bargraph .bar {
    grid-column: 1 / -1;
    height: 10px;
    border-radius: 999px;
    background: #edf0f4;
    overflow: hidden;
}
ul.bargraph .bar__fill {
    display: block;
    height: 100%;
    min-width: 6px;
    max-width: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, color-mix(in srgb, var(--v, var(--muted)) 78%, #fff) 0%, var(--v, var(--muted)) 100%);
    transform-origin: left center;
    animation: bar-grow .7s cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes bar-grow { from { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { ul.bargraph .bar__fill { animation: none; } }

/* listas largas clicables (/vgas, /cpus): selección de dos productos para comparar */
ul.bargraph.is-pickable > li { cursor: pointer; padding: 6px 10px; margin: 0 -10px; transition: background-color .15s; }
ul.bargraph.is-pickable > li:hover { background: var(--surface-2); }
ul.bargraph > li.hltcard {
    background: color-mix(in srgb, var(--v, var(--brand)) 10%, var(--surface));
    box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--v, var(--brand)) 55%, transparent);
}
ul.bargraph > li.hltcard .gcname { font-weight: 700; }
ul.bargraph > li.hltcard .gcname::after {
    content: "✓";
    display: grid; place-items: center;
    width: 16px; height: 16px; flex: none;
    border-radius: 50%;
    background: var(--v, var(--brand));
    color: #fff;
    font-size: 10px;
}

/* producto seleccionado en los overviews */
ul.bargraph > li:has(.selectedVga, .selectedCpu),
ul.bargraph > li.selectedVga, ul.bargraph > li.selectedCpu {
    background: color-mix(in srgb, var(--v) 9%, var(--surface));
    padding-left: 10px; padding-right: 10px;
    margin: 0 -10px;
}
ul.bargraph > li.selectedVga .gcname, ul.bargraph > li.selectedCpu .gcname { font-weight: 700; }

.bar-scroll {
    position: relative;
    max-height: 420px;
    overflow-y: auto;
    padding: 0 12px 0 10px;
    margin: 0 -10px;
    scrollbar-width: thin;
}

/* Tooltip de información (reemplaza los popovers de Bootstrap) */
.info-tip {
    position: relative;
    display: inline-grid;
    place-items: center;
    color: var(--muted);
    cursor: help;
    border-radius: 50%;
}
.info-tip:hover, .info-tip:focus { color: var(--brand-ink); outline: none; }
.info-tip::after {
    content: attr(data-tip);
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    z-index: 20;
    width: max-content;
    max-width: min(300px, 80vw);
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--text);
    color: #f1f3f7;
    font: 400 13px/1.45 var(--font);
    text-transform: none;
    letter-spacing: 0;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -4px);
    transition: opacity .15s, transform .15s, visibility .15s;
    pointer-events: none;
}
.info-tip:hover::after, .info-tip:focus::after { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ---------- Pros y contras ---------- */
.reasons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 760px) { .reasons { grid-template-columns: minmax(0, 1fr); } }
.reasons__col {
    padding: 16px 18px;
    border-radius: 12px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-top: 3px solid var(--v, var(--border-strong));
}
.reasons__col:not(:has(li)) { display: none; }
.reasons__col h4 { font-size: 14px; margin-bottom: 10px; }
.proscons { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--text-2); }
.proscons li { display: flex; gap: 10px; align-items: flex-start; }
.proscons .ico { margin-top: .2em; }
.ok { color: var(--ok); }
.wrong { color: var(--bad); }

/* ---------- Veredicto ---------- */
.verdict {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    align-items: center;
    gap: 20px;
    padding: 18px 20px;
    border-radius: 14px;
    background: linear-gradient(120deg, var(--brand-tint) 0%, var(--surface) 70%);
    border: 1px solid color-mix(in srgb, var(--brand) 25%, var(--border));
}
.verdict + .verdict { margin-top: 12px; }
.verdict__img { display: grid; place-items: center; background: var(--stage); border-radius: 10px; padding: 8px; min-height: 90px; }
.verdict__img img { max-height: 100px; width: auto; }
.verdict__kicker { display: inline-flex; align-items: center; gap: 6px; font: 600 11px/1 var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--brand-ink); margin-bottom: 6px; }
.verdict__title { font-size: 1.15rem; margin: 0 0 4px; }
.verdict__title b { color: var(--brand-ink); }
.verdict p { margin: 0; color: var(--text-2); font-size: 14px; }
.verdict--none { background: var(--surface-2); border-color: var(--border); }
@media (max-width: 560px) { .verdict { grid-template-columns: 80px minmax(0, 1fr); gap: 14px; padding: 14px; } }

/* ---------- Tablas de especificaciones ---------- */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

.spec-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
}
.spec-table th, .spec-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
.spec-table tr:last-child td { border-bottom: 0; }
.spec-table tbody tr:hover td { background: var(--surface-2); }
.spec-table thead th {
    font: 600 12px/1.3 var(--font);
    color: var(--text-2);
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
}
.spec-table thead th.col-v { color: var(--text); }
.spec-table thead th.col-v::before {
    content: "";
    display: inline-block;
    width: 8px; height: 8px;
    margin-right: 8px;
    border-radius: 2px;
    background: var(--v, var(--muted));
}
.spec-table .tlabel, .spec-table td:first-child { color: var(--muted); font-size: 13px; }
.spec-table .tvalue { font-weight: 500; font-variant-numeric: tabular-nums; }
.spec-table--vs .tlabel { width: 34%; }
.spec-table--vs .tvalue { width: 33%; }
.spec-table--kv .tlabel { width: 45%; }

.spec-block { min-width: 0; }
.spec-block h4 { font: 600 12px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--brand-ink); margin: 0 0 6px; }
.spec-block .spec-table { background: var(--surface); }

/* tabla de comparación múltiple (overviews) */
.cmp-table { border-collapse: separate; border-spacing: 0; font-size: 13.5px; min-width: 100%; }
.cmp-table th, .cmp-table td { padding: 10px 12px; text-align: center; border-bottom: 1px solid var(--border); white-space: nowrap; }
.cmp-table thead th { vertical-align: bottom; font-weight: 600; }
.cmp-table tbody td:first-child, .cmp-table thead th:first-child {
    position: sticky; left: 0; z-index: 1;
    text-align: left;
    background: var(--surface);
    color: var(--muted);
    font-weight: 500;
    box-shadow: 1px 0 0 var(--border);
}
.cmp-table tbody tr:hover td { background: var(--surface-2); }
.cmp-table .is-current { background: color-mix(in srgb, var(--brand) 7%, var(--surface)); }
.cmp-table tbody tr:hover td.is-current { background: color-mix(in srgb, var(--brand) 11%, var(--surface)); }
.cmp-table__img { display: grid; place-items: center; height: 72px; }
.cmp-table__img img { max-height: 64px; width: auto; }
.cmp-table__name { display: block; margin: 8px 0; white-space: normal; min-width: 110px; font-size: 13px; }
.cmp-table__name a { color: var(--text); }
.cmp-table__name a:hover { color: var(--brand-ink); }

/* tabla de jerarquía (/vgas) */
.tier-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.tier-table th { padding: 12px; text-align: left; font: 700 13px/1 var(--font-display); letter-spacing: .02em; color: #fff; background: var(--v); }
.tier-table th:first-child { border-top-left-radius: 10px; }
.tier-table th:last-child { border-top-right-radius: 10px; }
.tier-table td { padding: 10px 12px; vertical-align: top; border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); color: var(--text-2); }
.tier-table td:last-child { border-right: 0; }
.tier-table tbody tr:nth-child(odd) td { background: var(--surface-2); }
.tier-table td:empty::after { content: "—"; color: var(--border-strong); }

/* ---------- Estadísticas grandes (overview de CPU) ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.stat {
    padding: 14px 16px;
    border-radius: 12px;
    background: var(--surface-2);
    border: 1px solid var(--border);
}
.stat__value { display: block; font: 700 1.25rem/1.2 var(--font-display); color: var(--text); font-variant-numeric: tabular-nums; overflow-wrap: break-word; }
.stat__label { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

.lead { font-size: 15.5px; color: var(--text-2); line-height: 1.65; margin: 0; }

/* ---------- Mosaicos de comparación ---------- */
.vs-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.vs-tile {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    gap: 8px 6px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    color: var(--text);
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.vs-tile:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--border)); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--text); }
.vs-tile__img { display: grid; place-items: center; height: 64px; }
.vs-tile__img img { max-height: 60px; width: auto; }
.vs-tile__vs { grid-row: 1 / span 2; align-self: center; color: var(--muted); font: 700 11px/1 var(--font-display); text-transform: uppercase; padding: 0 4px; }
.vs-tile__name { font-size: 13px; font-weight: 500; line-height: 1.3; text-align: center; }
/* orden del markup: img1, vs, img2, nombre1, nombre2 */
.vs-tile >:nth-child(1) { grid-column: 1; grid-row: 1; }
.vs-tile > :nth-child(2) { grid-column: 2; }
.vs-tile > :nth-child(3) { grid-column: 3; grid-row: 1; }
.vs-tile > :nth-child(4) { grid-column: 1; grid-row: 2; }
.vs-tile > :nth-child(5) { grid-column: 3; grid-row: 2; }

/* ---------- Home: hero de comparaciones en tendencia ---------- */
.hero {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background:
        radial-gradient(60% 120% at 0% 100%, rgba(227, 38, 47, .35) 0%, transparent 60%),
        radial-gradient(60% 120% at 100% 100%, rgba(111, 174, 0, .32) 0%, transparent 60%),
        radial-gradient(50% 80% at 50% 0%, rgba(31, 111, 214, .28) 0%, transparent 70%),
        #10141c;
    color: #fff;
    padding: 26px 22px 20px;
    box-shadow: var(--shadow-lg);
}
.hero__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.hero__head h1 { color: #fff; font-size: clamp(1.25rem, 1rem + 1vw, 1.7rem); margin: 0; }
.hero__eyebrow { display: block; color: #ffb37f; font: 600 12px/1 var(--font); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px; }
.hero .swiper-container { overflow: hidden; }
.hero-slide { display: block; color: #fff; text-align: center; padding: 6px 0 30px; }
.hero-slide:hover { color: #fff; }
.hero-slide__row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; }
.hero-slide__img { display: grid; place-items: center; height: 200px; padding: 10px; border-radius: 14px; background: rgba(255, 255, 255, .96); }
.hero-slide__img img { max-height: 180px; width: auto; }
.hero-slide__vs {
    display: grid; place-items: center;
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--brand);
    color: #160a02;
    font: 700 17px/1 var(--font-display);
    box-shadow: 0 0 0 6px rgba(242, 107, 29, .25);
}
.hero-slide__title { display: block; margin-top: 16px; font: 700 clamp(1rem, .9rem + .6vw, 1.35rem)/1.25 var(--font-display); }
.hero-slide:hover .hero-slide__title { color: #ffb37f; }
@media (max-width: 600px) {
    .hero { padding: 20px 14px 16px; }
    .hero-slide__img { height: 120px; }
    .hero-slide__img img { max-height: 100px; }
    .hero-slide__vs { width: 40px; height: 40px; font-size: 13px; }
}
.hero .swiper-pagination-bullets { bottom: 4px; }
.hero .swiper-pagination-bullet { background: rgba(255, 255, 255, .5); opacity: 1; transition: width .2s; }
.hero .swiper-pagination-bullet-active { background: var(--brand); width: 22px; border-radius: 6px; }

/* botones de navegación de los carruseles */
.nav-btns { display: inline-flex; gap: 6px; }
.nav-btn {
    display: grid;
    place-items: center;
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    font-size: 16px;
    transition: background-color .15s, border-color .15s, opacity .15s;
    -webkit-user-select: none;
    user-select: none;
}
.nav-btn:hover { border-color: var(--text); }
.nav-btn.swiper-button-disabled { opacity: .35; cursor: default; }
.hero .nav-btn { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .2); color: #fff; }
.hero .nav-btn:hover { background: rgba(255, 255, 255, .16); }

/* carruseles de productos nuevos */
.shelf .swiper-container { overflow: hidden; }
.shelf .swiper-slide { height: auto; }
.shelf-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    height: 100%;
    padding: 14px 10px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    text-align: center;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.shelf-item:hover { color: var(--text); border-color: color-mix(in srgb, var(--brand) 45%, var(--border)); box-shadow: var(--shadow); transform: translateY(-2px); }
.shelf-item__img { display: grid; place-items: center; height: 96px; width: 100%; }
.shelf-item__img img { max-height: 90px; width: auto; }
.shelf-item__name { font-size: 13px; font-weight: 600; line-height: 1.3; }

/* ---------- Publicidad ---------- */
.ads { min-height: 0; }
.ads:not(:empty) { margin: 4px 0; }
.amzn-slot:empty { display: none; }

/* ---------- Comentarios ---------- */
#disqus_thread:not(:empty) { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }

/* ---------- Compartir (Facebook) ---------- */
.social-networks { display: none; }
@media (min-width: 1500px) {
    .social-networks {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        position: fixed;
        left: 18px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 50;
        padding: 12px 10px;
        border-radius: 14px;
        background: var(--surface);
        border: 1px solid var(--border);
        box-shadow: var(--shadow);
    }
    .social-networks h4 { font: 600 11px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0; }
}

/* ---------- Pie ---------- */
.site-footer {
    background: var(--header-bg);
    color: #8d95a5;
    font-size: 13px;
}
.site-footer__inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 28px var(--gutter);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.site-footer .brand { font-size: 17px; }
.site-footer .brand__mark { width: 28px; height: 28px; font-size: 12px; }
.site-footer nav { display: flex; gap: 18px; }
.site-footer a { color: #c9ced8; }
.site-footer a:hover { color: #fff; }

/* ---------- Página de error ---------- */
.error-box { text-align: center; padding: 56px 22px; }
.error-box__code {
    font: 700 clamp(4rem, 3rem + 6vw, 7rem)/1 var(--font-display);
    background: linear-gradient(90deg, var(--amd), var(--intel), var(--nv));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 8px;
}
.error-box p { color: var(--text-2); }

/* ---------- Autocompletado (lo genera site.js) ---------- */
.autocomplete {
    display: flex;
    flex-direction: column;
    z-index: 10000;
    overflow: auto;
    padding: 6px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    font: 400 14px/1.35 var(--font);
}
.autocomplete * { font: inherit; }
.autocomplete > div {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    border-radius: 8px;
    cursor: pointer;
}
.autocomplete > div > div:last-child { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex: 1; min-width: 0; }
.autocomplete .group { background: var(--surface-2); color: var(--muted); font-size: 12px; cursor: default; }
.autocomplete > div.selected, .autocomplete > div:hover:not(.group) { background: var(--brand-tint); }
.autocomplete .iconAMD, .autocomplete .iconIntel, .autocomplete .iconNvidia { width: 6px; height: 22px; }
.no-shrink { flex-shrink: 0; }
.autocomplete_label { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.autocomplete_market { flex: none; padding: 2px 7px; border-radius: 999px; font-size: 10px !important; font-weight: 600 !important; letter-spacing: .05em; background: #eef0f4; color: var(--text-2); }
.autocomplete_market.mkt_Desktop { background: #eaf1ff; color: #1d4ed8; }
.autocomplete_market.mkt_Mobile { background: #e9f8ee; color: #15803d; }

/* ---------- Búsqueda (Google CSE) ---------- */
.gsc-control-cse { font-family: var(--font) !important; border: 0 !important; background: transparent !important; padding: 0 !important; }
