/* ═══════════════ Tokens ═══════════════ */
:root {
  --bg: #f4f2ed;
  --surface: #ffffff;
  --surface-2: #f9f7f3;
  --ink: #14161a;
  --ink-2: #3b3f47;
  --muted: #6a6f78;
  --line: #e4e0d7;
  --line-2: #d2ccbf;
  --accent: #e0531a;
  --accent-2: #c2410c;
  --accent-ink: #ffffff;
  --amber: #f2b33d;
  --ok: #1f7a4d;
  --ok-soft: #e5f3ea;
  --warn: #9a5800;
  --warn-soft: #fbf0db;
  --best: #e4f3e8;
  --best-ink: #145c37;
  --media: #eeebe4;
  --media-dot: rgba(20, 22, 26, .07);
  --lv-esencial: #4b6a57;
  --lv-semipro: #2f5d8a;
  --lv-pro: #6a3f9a;
  --lv-referencia: #8a5a00;
  /* Zonas "sala de control" (cabecera, hero, pie): siempre oscuras */
  --ctl: #0c0e12;
  --ctl-2: #15181e;
  --ctl-line: #262a33;
  --ctl-ink: #eceae4;
  --ctl-muted: #9aa0aa;
  --shadow-sm: 0 1px 2px rgba(20, 20, 20, .05);
  --shadow: 0 1px 2px rgba(20, 20, 20, .04), 0 10px 30px -12px rgba(20, 20, 20, .18);
  --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, .45);
  --s1: #2a78d6;
  --s2: #eb6834;
  --s3: #1baf7a;
  --r: 14px;
  --r-lg: 22px;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1115; --surface: #161920; --surface-2: #1b1f27; --ink: #ecebe6; --ink-2: #c3c5c9; --muted: #8e939c;
    --line: #262b34; --line-2: #363c47; --accent: #ff7a3d; --accent-2: #ff935f; --accent-ink: #1a0c04;
    --ok: #5cc98f; --ok-soft: #13271d; --warn: #f0b252; --warn-soft: #2b2212; --best: #15301f; --best-ink: #8fe0b2;
    --media: #1c2027; --media-dot: rgba(255, 255, 255, .06);
    --lv-esencial: #8fb39d; --lv-semipro: #7fb2e5; --lv-pro: #b99be0; --lv-referencia: #e5bd62;
    --ctl: #08090c; --ctl-2: #111318;
    --s1: #3987e5; --s2: #d95926; --s3: #199e70;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 30px -12px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1115; --surface: #161920; --surface-2: #1b1f27; --ink: #ecebe6; --ink-2: #c3c5c9; --muted: #8e939c;
  --line: #262b34; --line-2: #363c47; --accent: #ff7a3d; --accent-2: #ff935f; --accent-ink: #1a0c04;
  --ok: #5cc98f; --ok-soft: #13271d; --warn: #f0b252; --warn-soft: #2b2212; --best: #15301f; --best-ink: #8fe0b2;
  --media: #1c2027; --media-dot: rgba(255, 255, 255, .06);
  --lv-esencial: #8fb39d; --lv-semipro: #7fb2e5; --lv-pro: #b99be0; --lv-referencia: #e5bd62;
  --ctl: #08090c; --ctl-2: #111318;
  --s1: #3987e5; --s2: #d95926; --s3: #199e70;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 30px -12px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

/* ═══════════════ Base ═══════════════ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.con-tray { padding-bottom: 76px; }
a { color: inherit; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3 { line-height: 1.1; letter-spacing: -.022em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 3.8vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 2.2vw, 1.85rem); font-weight: 700; }
h3 { font-size: 1.02rem; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.bleed { width: 100vw; margin-left: calc(50% - 50vw); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; z-index: 99; background: var(--surface); padding: 8px 12px; }
.lead { font-size: 1.1rem; color: var(--ink-2); max-width: 62ch; }
.kicker, .eyebrow { font: 500 .74rem/1 var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--accent); margin: 0 0 1em; }
.nota { font-size: .82rem; color: var(--muted); margin: .75em 0 0; }
.nowrap { white-space: nowrap; }
.link { background: none; border: 0; color: var(--accent); cursor: pointer; text-decoration: underline; padding: 0; }

/* ═══════════════ Botones y chips ═══════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45em; padding: .7em 1.15em;
  border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: .95rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, transform .15s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: .48em .85em; font-size: .82rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--accent); color: var(--accent-ink); }
.btn-accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 24px -10px var(--accent); }
.btn-accent:hover { background: var(--accent-2); color: var(--accent-ink); }
.btn-glass { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .28); backdrop-filter: blur(6px); }
.btn-glass:hover { background: rgba(255, 255, 255, .16); color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn-ghost { background: var(--surface); border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-link { background: none; color: var(--ink-2); padding-left: .2em; padding-right: .2em; }
.btn-amazon { background: var(--accent); color: var(--accent-ink); }
.btn-amazon:hover { background: var(--accent-2); color: var(--accent-ink); }
.btn[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chk { width: 12px; height: 12px; border: 1.5px solid currentColor; border-radius: 3px; display: inline-block; position: relative; }
[aria-pressed="true"] .chk::after { content: ''; position: absolute; inset: 1px 3px 3px 3px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.chip {
  display: inline-block; padding: .55em .95em; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2);
  font-size: .88rem; text-decoration: none; cursor: pointer; text-align: left; color: var(--ink);
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip-glass { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .22); color: #f3f1ec; backdrop-filter: blur(6px); }
.chip-glass:hover { background: rgba(255, 255, 255, .14); color: #fff; border-color: var(--amber); }
.sugerencias { display: flex; flex-wrap: wrap; gap: 8px; }
.chat-ejemplos { margin: 4px 0 14px; }
.chat-ejemplos-t { margin: 0 0 8px; font-size: .9rem; color: var(--ink-2); }
.chat:has(.msg.user) .chat-ejemplos { display: none; }
.badge {
  display: inline-block; font: 500 .68rem/1 var(--mono); text-transform: uppercase; letter-spacing: .07em;
  padding: .4em .55em; border-radius: 5px; border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap;
}
.nivel-esencial { color: var(--lv-esencial); border-color: currentColor; }
.nivel-semipro { color: var(--lv-semipro); border-color: currentColor; }
.nivel-pro { color: var(--lv-pro); border-color: currentColor; }
.nivel-referencia { color: var(--lv-referencia); border-color: currentColor; }
.nivel-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: currentColor; margin-right: 8px; vertical-align: 1px; }

/* ═══════════════ Cabecera (sala de control) ═══════════════ */
.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--ctl) 92%, transparent); backdrop-filter: blur(12px) saturate(140%); border-bottom: 1px solid var(--ctl-line); color: var(--ctl-ink); }
.top-in { max-width: 1240px; margin: 0 auto; padding: 0 16px; height: 64px; display: flex; align-items: center; gap: 18px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; color: inherit; flex-shrink: 0; }
.logo:hover { color: inherit; }
.logo-mark { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(145deg, #262a33, #101216); color: var(--accent); display: grid; place-items: center; padding: 7px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.logo-t { font-weight: 700; letter-spacing: -.015em; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { padding: .45em .72em; border-radius: 8px; text-decoration: none; font-size: .92rem; font-weight: 500; color: var(--ctl-muted); white-space: nowrap; }
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.nav a[aria-current] { color: #fff; background: rgba(255, 255, 255, .09); }
.nav .nav-ia { background: var(--accent); color: #fff; margin-left: 6px; }
.nav .nav-ia:hover, .nav .nav-ia[aria-current] { background: var(--accent-2); color: #fff; }
.count { display: inline-grid; place-items: center; min-width: 1.4em; height: 1.4em; padding: 0 .3em; border-radius: 99px; background: var(--accent); color: #fff; font: 600 .72rem/1 var(--mono); }
.count[hidden] { display: none; }
.tema, .menu-toggle { background: none; border: 1px solid var(--ctl-line); border-radius: 8px; height: 36px; cursor: pointer; color: var(--ctl-ink); flex-shrink: 0; }
.tema:hover, .menu-toggle:hover { border-color: var(--ctl-muted); }
.tema { width: 36px; display: grid; place-items: center; }
.tema svg { width: 18px; }
.menu-toggle { display: none; padding: 0 12px; font-weight: 600; font-size: .9rem; }

/* ═══════════════ Buscador ═══════════════ */
.buscador { position: relative; display: flex; align-items: center; }
.buscador > svg { position: absolute; left: 12px; width: 17px; height: 17px; color: var(--muted); pointer-events: none; }
.buscador input {
  width: 100%; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); padding: .6em 1em .6em 2.4em;
  -webkit-appearance: none; appearance: none;
}
.buscador input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.buscador-top { width: 230px; margin-left: 8px; }
.buscador-top input { background: var(--ctl-2); border-color: var(--ctl-line); color: var(--ctl-ink); font-size: .88rem; }
.buscador-top input::placeholder { color: var(--ctl-muted); }
.buscador-top > svg { color: var(--ctl-muted); }
.buscador-xl { max-width: 640px; margin: 28px 0 22px; }
.buscador-xl input { font-size: 1.05rem; padding: 1em 1.2em 1em 3em; border: 0; box-shadow: var(--shadow-lg); color: #14161a; background: #fff; }
.buscador-xl input::placeholder { color: #7a7f88; }
.buscador-xl > svg { left: 20px; width: 20px; height: 20px; color: #7a7f88; }
.buscador-res {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 60; min-width: 320px; background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; max-height: 70vh; overflow: auto;
}
.buscador-top .buscador-res { right: auto; width: 440px; }
.buscador-res ul { list-style: none; margin: 0; padding: 0; }
.busca-item { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 10px; text-decoration: none; }
[aria-selected="true"] > .busca-item, .busca-item:hover { background: var(--surface-2); color: var(--ink); }
.busca-ico { width: 44px; height: 44px; border-radius: 9px; background: var(--media); display: grid; place-items: center; padding: 7px; color: var(--ink-2); }
.busca-txt { display: grid; min-width: 0; }
.busca-txt b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.busca-txt small { color: var(--muted); font-size: .8rem; }
.busca-pre { font: .76rem var(--mono); color: var(--muted); white-space: nowrap; }
.busca-vacio { margin: 0; padding: 14px; font-size: .9rem; color: var(--muted); }

/* ═══════════════ Migas ═══════════════ */
.migas { font-size: .84rem; color: var(--muted); padding: 22px 0 6px; }
.migas a { text-decoration: none; color: var(--muted); }
.migas span { margin: 0 .25em; }
.cat-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin: 8px 0 20px; flex-wrap: wrap; }
.cat-head .lead { margin-bottom: 0; }

/* ═══════════════ Hero ═══════════════ */
.hero { position: relative; overflow: hidden; background: var(--ctl); color: #fff; min-height: min(86vh, 780px); display: flex; align-items: center; margin-bottom: 72px; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; transform: scale(1.04); animation: hero-in 1.6s ease-out both; }
@keyframes hero-in { from { transform: scale(1.1); opacity: .4; } to { transform: scale(1.04); opacity: 1; } }
.hero-velo {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 9, 12, .94) 0%, rgba(8, 9, 12, .82) 38%, rgba(8, 9, 12, .35) 72%, rgba(8, 9, 12, .55) 100%),
    linear-gradient(0deg, rgba(8, 9, 12, .9) 0%, rgba(8, 9, 12, 0) 35%);
}
.hero-in { position: relative; z-index: 1; width: 100%; padding-top: 72px; padding-bottom: 56px; }
.hero .eyebrow { color: var(--amber); }
.hero h1 { font-size: clamp(2.3rem, 5vw, 4.2rem); line-height: 1.03; letter-spacing: -.035em; max-width: 17ch; text-wrap: balance; margin-bottom: .4em; }
.hero .lead { color: rgba(255, 255, 255, .78); font-size: clamp(1.02rem, 1.4vw, 1.2rem); max-width: 54ch; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-pasos { list-style: none; counter-reset: paso; display: flex; gap: 10px; flex-wrap: wrap; margin: 4px 0 26px; padding: 0; max-width: 760px; }
.hero-pasos li { counter-increment: paso; flex: 1 1 180px; display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; padding: 10px 14px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 12px; background: rgba(8, 9, 12, .35); backdrop-filter: blur(6px); }
.hero-pasos li::before { content: counter(paso); grid-row: span 2; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--amber); color: #111; font: 700 .85rem var(--mono); }
.hero-pasos b { font-size: .95rem; color: #fff; }
.hero-pasos span { font-size: .82rem; color: rgba(255, 255, 255, .7); }
.hero-stats { display: flex; gap: 0; margin: 52px 0 0; padding: 0; border-top: 1px solid rgba(255, 255, 255, .14); max-width: 760px; }
.hero-stats > div { flex: 1; padding: 18px 18px 0 0; }
.hero-stats > div + div { padding-left: 18px; border-left: 1px solid rgba(255, 255, 255, .14); }
.hero-stats dt { font: 500 .68rem var(--mono); text-transform: uppercase; letter-spacing: .1em; color: rgba(255, 255, 255, .55); order: 2; }
.hero-stats dd { margin: 0 0 4px; font: 600 clamp(1.5rem, 2.6vw, 2.1rem)/1 var(--mono); color: #fff; letter-spacing: -.02em; }
.hero-stats > div { display: flex; flex-direction: column-reverse; }

/* ═══════════════ Bloques de portada ═══════════════ */
.bloque { margin: 0 0 80px; }
.bloque-head { margin-bottom: 24px; }
.bloque-head p { color: var(--muted); margin: 0; }
.bloque-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.bloque-head-row h2 { margin: 0; }
.bloque-head-row > p { max-width: 42ch; }

.cat-tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.cat-tile { position: relative; aspect-ratio: 3 / 4; border-radius: var(--r-lg); overflow: hidden; text-decoration: none; color: #fff; background: var(--ctl); isolation: isolate; box-shadow: var(--shadow); }
.cat-tile:hover { color: #fff; }
.cat-tile-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); z-index: -2; }
.cat-tile:hover .cat-tile-img { transform: scale(1.06); }
.cat-tile-velo { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 9, 12, .1) 30%, rgba(8, 9, 12, .88) 100%); }
.cat-tile-txt { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px; display: grid; gap: 6px; }
.cat-tile-n { font: 500 .7rem var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--amber); }
.cat-tile-t { font-size: 1.45rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.cat-tile-m { font-size: .85rem; color: rgba(255, 255, 255, .75); }
.cat-tile-cta { margin-top: 8px; font-size: .88rem; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; opacity: .85; transition: gap .2s, opacity .2s; }
.cat-tile:hover .cat-tile-cta { gap: 10px; opacity: 1; color: var(--amber); }

.ventajas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: -24px 0 80px; }
.ventajas > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow-sm); }
.v-ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); margin-bottom: 14px; }
.v-ico svg { width: 22px; height: 22px; }
.ventajas p { margin: 0; color: var(--ink-2); font-size: .92rem; }
.ventajas a { color: var(--accent); }

.matriz { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; min-width: 820px; box-shadow: var(--shadow-sm); }
.matriz th, .matriz td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.matriz td + td, .matriz th + td { border-left: 1px solid var(--line); }
.matriz tr:last-child > * { border-bottom: 0; }
.matriz thead th { font: 500 .72rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); background: var(--surface-2); }
.matriz thead th:nth-child(2) { color: var(--lv-esencial); } .matriz thead th:nth-child(3) { color: var(--lv-semipro); }
.matriz thead th:nth-child(4) { color: var(--lv-pro); } .matriz thead th:nth-child(5) { color: var(--lv-referencia); }
.matriz tbody th a { text-decoration: none; font-weight: 650; }
.matriz td a { text-decoration: none; display: grid; grid-template-columns: 40px 1fr; gap: 10px; align-items: center; }
.matriz td small { display: block; font: .74rem var(--mono); color: var(--muted); margin-top: 2px; }
.matriz td a:hover b { color: var(--accent); }
.mz-ico { width: 40px; height: 40px; border-radius: 9px; background: var(--media); display: grid; place-items: center; padding: 6px; color: var(--ink-2); }

.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; margin: 0 0 80px; }
.split-img { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3.2; box-shadow: var(--shadow); }
.split-img img { width: 100%; height: 100%; object-fit: cover; }
.pasos { list-style: none; counter-reset: paso; margin: 8px 0 28px; padding: 0; display: grid; gap: 16px; }
.pasos li { counter-increment: paso; position: relative; padding-left: 48px; color: var(--ink-2); }
.pasos li::before { content: counter(paso, decimal-leading-zero); position: absolute; left: 0; top: 1px; font: 600 .78rem var(--mono); color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); border-radius: 7px; padding: 4px 6px; }
.pasos b { color: var(--ink); }

.duelos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.duelo { display: grid; gap: 10px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s; }
.duelo:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: var(--shadow); color: inherit; }
.duelo-icos { display: flex; }
.duelo-icos > span { width: 46px; height: 46px; border-radius: 50%; background: var(--media); border: 3px solid var(--surface); display: grid; place-items: center; padding: 8px; color: var(--ink-2); }
.duelo-icos > span + span { margin-left: -10px; }
.duelo-t { font-weight: 650; letter-spacing: -.01em; }
.duelo-t i { font-style: normal; font: 500 .72rem var(--mono); color: var(--accent); margin: 0 4px; text-transform: uppercase; }
.duelo-c { font: 500 .7rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

.cta-ia { position: relative; overflow: hidden; background: var(--ctl); color: #fff; margin-bottom: -24px; }
.cta-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-velo { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 9, 12, .95) 0%, rgba(8, 9, 12, .8) 50%, rgba(8, 9, 12, .6) 100%); }
.cta-in { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; padding-top: 96px; padding-bottom: 96px; }
.cta-in .kicker { color: var(--amber); }
.cta-in p { color: rgba(255, 255, 255, .75); max-width: 50ch; }
.cta-in .btn { margin-top: 8px; }

/* ═══════════════ Banner de sección ═══════════════ */
.banner { position: relative; overflow: hidden; border-radius: var(--r-lg); margin: 20px 0 28px; min-height: 290px; display: flex; align-items: flex-end; background: var(--ctl); color: #fff; isolation: isolate; }
.banner-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.banner-velo { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8, 9, 12, .92) 0%, rgba(8, 9, 12, .72) 45%, rgba(8, 9, 12, .2) 100%); }
.banner-txt { padding: 28px 36px 34px; max-width: 720px; }
.banner .migas { padding: 0 0 18px; color: rgba(255, 255, 255, .6); }
.banner .migas a { color: rgba(255, 255, 255, .7); }
.banner .migas a:hover { color: #fff; }
.banner h1 { margin-bottom: .3em; }
.banner .lead { color: rgba(255, 255, 255, .8); margin-bottom: 0; }
.banner-cta { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 20px; }
.banner-meta { font: 500 .76rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: rgba(255, 255, 255, .6); }

/* ═══════════════ Catálogo ═══════════════ */
.guia { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--r); padding: 14px 18px; margin-bottom: 28px; }
.guia summary { cursor: pointer; font-weight: 600; }
.guia ul { margin: 12px 0 2px; padding-left: 1.1em; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 24px; color: var(--ink-2); font-size: .92rem; }
.catalogo { display: grid; grid-template-columns: 250px 1fr; gap: 28px; align-items: start; margin-bottom: 64px; }
.filtros { position: sticky; top: 82px; display: grid; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow-sm); }
.filtro { border: 0; padding: 0; margin: 0; min-width: 0; }
.filtro-t { display: block; font: 500 .72rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 8px; padding: 0; }
.filtro output { color: var(--ink); text-transform: none; letter-spacing: 0; }
select, textarea, input[type="text"] { width: 100%; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 8px; padding: .55em .7em; }
input[type="range"] { width: 100%; accent-color: var(--accent); }
.check { display: flex; align-items: center; gap: 8px; font-size: .92rem; padding: 3px 0; cursor: pointer; }
.check input { accent-color: var(--accent); width: 16px; height: 16px; margin: 0; }
.vista { display: flex; gap: 0; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; }
.seg { flex: 1; background: var(--surface); border: 0; padding: .55em .8em; cursor: pointer; font-size: .85rem; font-weight: 500; color: var(--ink-2); }
.seg + .seg { border-left: 1px solid var(--line-2); }
.seg.on { background: var(--ink); color: var(--bg); }
.conteo { font-size: .88rem; color: var(--muted); margin-bottom: 14px; }
.vacio-msg { padding: 32px; text-align: center; background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--r); color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 16px; }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: border-color .2s, box-shadow .2s, transform .2s; }
.card:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-2px); }
/* Lámina técnica: retícula de puntos + halo */
.card-media, .ficha-media, .cmp-media, .linea-media, .busca-ico, .mz-ico, .tray-ico, .duelo-icos > span, .eslabon-ico {
  background-color: var(--media);
  background-image: radial-gradient(var(--media-dot) 1px, transparent 1.2px);
  background-size: 12px 12px;
}
.card-media { position: relative; display: grid; place-items: center; height: 168px; color: var(--ink-2); overflow: hidden; }
.card-media::after { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 70% at 50% 50%, color-mix(in srgb, var(--surface) 70%, transparent), transparent 70%); pointer-events: none; }
.card-media svg { position: relative; z-index: 1; width: 96px; height: 96px; transition: transform .3s, color .3s; }
.card:hover .card-media svg { transform: scale(1.05); color: var(--accent); }
.card.compact .card-media { height: 104px; }
.card.compact .card-media svg { width: 66px; height: 66px; }
.card-body { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; flex: 1; }
.card-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.marca { font: 500 .74rem var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-right: auto; }
.card h3 { font-size: 1.12rem; margin: 0; }
.card h3 a { text-decoration: none; }
.resumen { font-size: .89rem; color: var(--ink-2); margin: 0; }
.mini-specs { display: grid; grid-template-columns: 1fr; gap: 0; margin: 2px 0 0; border-top: 1px solid var(--line); }
.mini-specs > div { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--line); font-size: .82rem; }
.mini-specs dt { color: var(--muted); }
.mini-specs dd { margin: 0; font-family: var(--mono); font-size: .77rem; text-align: right; }
.encaje { display: grid; grid-template-columns: 1fr 70px auto; gap: 8px; align-items: center; font-size: .78rem; color: var(--muted); }
.encaje b { font-family: var(--mono); color: var(--ink); }
.card-foot { margin-top: auto; padding-top: 6px; display: grid; gap: 10px; }
.precio { display: flex; justify-content: space-between; align-items: center; font: 500 .84rem var(--mono); }
.acciones { display: flex; gap: 6px; }
.acciones .btn { flex: 1; }
.score b { display: inline-grid; place-items: center; min-width: 2.5em; height: 1.9em; padding: 0 .4em; border-radius: 6px; background: var(--ink); color: var(--bg); font: 600 .82rem var(--mono); }
.bar { display: inline-block; width: 100%; height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; vertical-align: middle; }
.bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--amber), var(--accent)); border-radius: inherit; }
.nd { color: var(--muted); }

.tabla-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r); }
.tabla-specs { width: 100%; border-collapse: collapse; background: var(--surface); font-size: .85rem; min-width: 900px; }
.tabla-specs th, .tabla-specs td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.tabla-specs thead th { font: 500 .7rem var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--surface-2); position: sticky; top: 0; }
.tabla-specs tbody tr:hover { background: var(--surface-2); }
.tabla-specs tbody th { min-width: 180px; font-weight: 500; }
.tabla-specs tbody th a { text-decoration: none; }
.tabla-specs td { font-family: var(--mono); font-size: .8rem; }

/* Tooltips del glosario */
.tip { border-bottom: 1px dotted var(--muted); cursor: help; position: relative; }
.tip sup { font-size: .65em; color: var(--accent); margin-left: 1px; }
.tip:hover::after, .tip:focus::after {
  content: attr(data-tip); position: absolute; left: 0; top: calc(100% + 6px); z-index: 20; width: min(320px, 70vw);
  background: var(--ctl); color: var(--ctl-ink); padding: 10px 12px; border-radius: 8px; font: 400 .82rem/1.45 var(--sans);
  text-transform: none; letter-spacing: 0; white-space: normal; box-shadow: var(--shadow-lg);
}

/* ═══════════════ Ficha de producto ═══════════════ */
.ficha-head { display: grid; grid-template-columns: 380px 1fr; gap: 40px; align-items: center; margin: 12px 0 40px; }
.ficha-media { position: relative; aspect-ratio: 1; border-radius: var(--r-lg); display: grid; place-items: center; color: var(--ink-2); border: 1px solid var(--line); overflow: hidden; }
.ficha-media::after { content: ''; position: absolute; inset: 0; background: radial-gradient(55% 55% at 50% 50%, color-mix(in srgb, var(--surface) 80%, transparent), transparent 70%); }
.ficha-media svg { position: relative; z-index: 1; width: 55%; height: 55%; }
.ficha-info h1 { margin: .3em 0 .35em; font-size: clamp(2rem, 4vw, 3.2rem); }
.ficha-scores { display: flex; gap: 28px; flex-wrap: wrap; margin: 18px 0 22px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ficha-scores > div { display: grid; gap: 4px; }
.ficha-scores span { font: 500 .7rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.ficha-scores .score b { font-size: 1.05rem; height: 2em; }
.precio-g { font: 600 1.05rem var(--mono); line-height: 2; }
.ficha-cta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.ficha-cuerpo { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; margin-bottom: 56px; }
.ficha-main > p { color: var(--ink-2); font-size: 1.03rem; }
.ficha-main h2 { margin-top: 1.4em; font-size: 1.4rem; }
.ficha-main h2:first-child { margin-top: 0; }
.pros-contras, .para-quien { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 18px 0; }
.pros, .contras, .para-quien > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.pros { border-top: 3px solid var(--ok); }
.contras { border-top: 3px solid var(--warn); }
.pros h3 { color: var(--ok); }
.contras h3 { color: var(--warn); }
.pros ul, .contras ul { margin: 0; padding-left: 1.1em; display: grid; gap: 4px; font-size: .93rem; }
.para-quien p { margin: 0; color: var(--ink-2); font-size: .93rem; }
.specs { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.specs th, .specs td { padding: 11px 16px; border-bottom: 1px solid var(--line); text-align: left; font-size: .92rem; }
.specs tr:nth-child(even) { background: var(--surface-2); }
.specs tr:last-child > * { border-bottom: 0; }
.specs th { font-weight: 500; color: var(--ink-2); width: 45%; }
.specs td { font-family: var(--mono); font-size: .86rem; }
.ficha-side { display: grid; gap: 16px; position: sticky; top: 82px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow-sm); }
.panel h2 { font-size: 1rem; }
.usos { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.usos li { display: grid; grid-template-columns: 1fr 90px 28px; gap: 10px; align-items: center; font-size: .87rem; }
.usos b { font-family: var(--mono); text-align: right; }
.alt-t { font: 500 .7rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 12px 0 6px; }
.panel .card { margin-bottom: 10px; }
.panel .card .resumen, .panel .card .mini-specs { display: none; }
.combo { display: grid; gap: 8px; align-content: start; }
.combo-m { font-size: .85rem; color: var(--ink-2); margin: 0; }

/* ═══════════════ Comparador ═══════════════ */
.add-cmp { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; max-width: 560px; }
.add-cmp label { white-space: nowrap; font-weight: 500; font-size: .92rem; }
.vacio-cmp { background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--r); padding: 28px; margin-bottom: 56px; }
.comparar { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 56px; font-size: .9rem; }
.comparar.cols-1 { min-width: 420px; } .comparar.cols-2 { min-width: 640px; } .comparar.cols-3 { min-width: 860px; } .comparar.cols-4 { min-width: 1080px; }
.comparar th, .comparar td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.comparar tbody th { position: sticky; left: 0; background: var(--surface); z-index: 1; font-weight: 500; color: var(--ink-2); width: 210px; min-width: 170px; }
.comparar thead th { vertical-align: bottom; background: var(--surface); }
.comparar .esquina { position: sticky; left: 0; z-index: 2; }
.comparar td { font-size: .87rem; }
.comparar td ul { margin: 0; padding-left: 1em; }
.comparar td .bar { width: 70px; margin-right: 6px; }
.comparar td.best { background: var(--best); color: var(--best-ink); font-weight: 600; }
.comparar tr.sec th { background: var(--surface-2); font: 500 .7rem var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding-top: 9px; padding-bottom: 9px; }
.cmp-prod { position: relative; min-width: 200px; }
.cmp-media { display: grid; place-items: center; height: 110px; border-radius: 10px; color: var(--ink-2); margin-bottom: 10px; }
.cmp-media svg { width: 64px; height: 64px; }
.cmp-nombre { display: block; font-size: 1.02rem; font-weight: 650; text-decoration: none; margin: 2px 0 10px; }
.quitar { position: absolute; top: 14px; right: 18px; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; line-height: 1; z-index: 1; }
.quitar:hover { border-color: var(--accent); color: var(--accent); }
.leyenda { font-size: .78rem; color: var(--muted); margin: 8px 0 0; display: flex; align-items: center; gap: 6px; font-weight: 400; }
.best-sw { width: 14px; height: 14px; border-radius: 3px; background: var(--best); border: 1px solid var(--best-ink); }

/* ═══════════════ Radar del comparador ═══════════════ */
.radar-bloque { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px 26px; margin-bottom: 28px; box-shadow: var(--shadow-sm); }
.radar-cab { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 28px; flex-wrap: wrap; margin-bottom: 8px; }
.radar-cab h2 { margin: 0; font-size: 1.45rem; }
.radar-leyenda { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .9rem; font-weight: 500; }
.radar-leyenda li { display: inline-flex; align-items: center; gap: 8px; }
.serie-marca { width: 14px; height: 14px; flex-shrink: 0; overflow: visible; }
.serie-marca.s1 { fill: var(--s1); } .serie-marca.s2 { fill: var(--s2); } .serie-marca.s3 { fill: var(--s3); }
.cmp-nombre .serie-marca { display: inline-block; width: 12px; height: 12px; margin-right: 7px; vertical-align: 0; }
.radar-cuerpo { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px 32px; align-items: center; }
.radar-fig { position: relative; }
.radar-fig svg { width: 100%; height: auto; overflow: visible; }
.radar-anillo { fill: none; stroke: var(--line); stroke-width: 1; }
.radar-anillo.ext { stroke: var(--line-2); }
.radar-radio { stroke: var(--line); stroke-width: 1; }
.radar-radio.activo { stroke: var(--muted); stroke-dasharray: 3 3; }
.radar-escala { font: 9px var(--mono); fill: var(--muted); }
.radar-eje { font: 500 11.5px var(--sans); fill: var(--ink-2); }
.radar-eje.activo { fill: var(--ink); font-weight: 700; }
.radar-serie polygon { stroke-width: 2; stroke-linejoin: round; fill-opacity: .1; }
.radar-serie > :not(polygon) { stroke: var(--surface); stroke-width: 2; }
.radar-serie.s1 polygon { stroke: var(--s1); fill: var(--s1); } .radar-serie.s1 > :not(polygon) { fill: var(--s1); }
.radar-serie.s2 polygon { stroke: var(--s2); fill: var(--s2); } .radar-serie.s2 > :not(polygon) { fill: var(--s2); }
.radar-serie.s3 polygon { stroke: var(--s3); fill: var(--s3); } .radar-serie.s3 > :not(polygon) { fill: var(--s3); }
.radar-hit { fill: transparent; cursor: crosshair; outline: none; }
.radar-hit:focus-visible { fill: color-mix(in srgb, var(--ink) 5%, transparent); }
.radar-tip { position: absolute; z-index: 5; pointer-events: none; min-width: 180px; background: var(--ctl); color: var(--ctl-ink); border-radius: 10px; padding: 10px 12px; font-size: .82rem; box-shadow: var(--shadow-lg); display: grid; gap: 5px; }
.radar-tip[hidden] { display: none; }
.radar-tip > b { font-size: .8rem; margin-bottom: 2px; }
.tip-fila { display: grid; grid-template-columns: 14px 1fr auto; gap: 8px; align-items: center; }
.tip-fila b { font-family: var(--mono); }
.radar-serie, .radar-zonas { transition: opacity .15s; }
.ventajas-cmp { display: grid; gap: 12px; }
.ventaja { border: 1px solid var(--line); border-left: 4px solid var(--s1); border-radius: 12px; padding: 14px 16px; background: var(--surface-2); }
.ventaja.s2 { border-left-color: var(--s2); } .ventaja.s3 { border-left-color: var(--s3); }
.ventaja header { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; }
.ventaja header .serie-marca { width: 16px; height: 16px; }
.ventaja h3 { margin: 0; font-size: 1.05rem; }
.ventaja .marca { display: block; font-size: .68rem; }
.ventaja-t { font: 600 .72rem var(--mono); text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 6px 0 6px; }
.ventaja-lista { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 3px; font-size: .86rem; }
.ventaja-lista li { display: grid; grid-template-columns: 1fr auto 52px; gap: 8px; align-items: baseline; }
.ventaja-lista b { font-family: var(--mono); font-size: .82rem; }
.ventaja-lista small { font: .72rem var(--mono); color: var(--ok); text-align: right; }
.ventaja-extra { font-size: .84rem; font-weight: 600; margin: 0 0 6px; color: var(--ok); }
.ventaja-pro { font-size: .84rem; color: var(--ink-2); margin: 0; }
.ventaja-pro::before { content: '✓ '; color: var(--ok); font-weight: 700; }

/* ═══════════════ Asesor ═══════════════ */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; }
.tab { padding: .75em 1.05em; text-decoration: none; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab.on { color: var(--ink); border-bottom-color: var(--accent); }
.asesor-cuerpo { margin-bottom: 64px; }
.segmentado { display: inline-flex; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; margin-bottom: 20px; flex-wrap: wrap; }
.guiado-grid, .estudio { display: grid; grid-template-columns: 380px 1fr; gap: 28px; align-items: start; }
.guiado-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: grid; gap: 20px; position: sticky; top: 82px; box-shadow: var(--shadow-sm); }
.pregunta { border: 0; padding: 0; margin: 0; min-width: 0; }
.pregunta legend { font-weight: 600; margin-bottom: 10px; font-size: .95rem; padding: 0; }
.pregunta output { font-family: var(--mono); color: var(--accent); }
.opciones { display: flex; flex-wrap: wrap; gap: 6px; }
.opcion { position: relative; }
.opcion input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opcion span { display: inline-block; padding: .45em .8em; border: 1px solid var(--line-2); border-radius: 8px; font-size: .87rem; cursor: pointer; background: var(--surface-2); }
.opcion input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.opcion input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.recos { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.reco { display: grid; gap: 10px; align-content: start; }
.reco-papel { font: 600 .72rem var(--mono); text-transform: uppercase; letter-spacing: .08em; margin: 0; color: var(--muted); }
.reco-principal .reco-papel { color: var(--accent); }
.reco-principal .card { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.razones { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: .85rem; }
.razones li { padding: 7px 10px 7px 30px; border-radius: 8px; position: relative; }
.razones li::before { position: absolute; left: 10px; top: 7px; font-weight: 700; }
.razones .ok { background: var(--ok-soft); }
.razones .ok::before { content: '✓'; color: var(--ok); }
.razones .warn { background: var(--warn-soft); }
.razones .warn::before { content: '!'; color: var(--warn); }
.reco-pie { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 18px; }
.reco-pie .nota { margin: 0; }

.estudio-panel { padding: 22px; }
.estudio-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.estudio-top h2 { margin: 0; font-size: 1.3rem; }
.lineas { list-style: none; margin: 0; padding: 0; }
.linea { display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.linea-media { width: 64px; height: 64px; border-radius: 10px; display: grid; place-items: center; color: var(--ink-2); padding: 10px; }
.linea-txt { display: grid; gap: 2px; min-width: 0; }
.linea-txt a { text-decoration: none; }
.linea-cat { font: 500 .7rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.linea-res { font-size: .85rem; color: var(--ink-2); }
.linea-pre { display: grid; gap: 6px; justify-items: end; text-align: right; }
.linea-pre b { font-family: var(--mono); }
.linea-pre span { font-size: .75rem; color: var(--muted); margin-top: -6px; }
.total { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 18px 0; }
.total > div:not(.medidor) { display: grid; }
.total span { font: 500 .7rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.total b { font: 600 1.3rem var(--mono); }
.medidor { height: 10px; border-radius: 99px; background: var(--line); overflow: hidden; }
.medidor span { display: block; height: 100%; background: linear-gradient(90deg, var(--ok), var(--amber) 70%, var(--accent)); }

.chat { max-width: 860px; }
.chat-log { display: grid; gap: 14px; margin-bottom: 16px; }
.msg { display: grid; gap: 10px; }
.msg.user { justify-items: end; }
.burbuja { max-width: 100%; padding: 14px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.burbuja p:last-child { margin-bottom: 0; }
.burbuja ul { padding-left: 1.2em; margin: 0 0 1em; }
.msg.user .burbuja { background: var(--ctl); color: var(--ctl-ink); border-color: var(--ctl); max-width: 80%; border-bottom-right-radius: 4px; }
.msg.bot .burbuja { border-bottom-left-radius: 4px; }
.recos-chat { margin: 14px 0 12px; }
.escribiendo .burbuja { display: inline-flex; gap: 5px; padding: 16px 18px; width: fit-content; }
.escribiendo span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: pulso 1s infinite ease-in-out; }
.escribiendo span:nth-child(2) { animation-delay: .15s; } .escribiendo span:nth-child(3) { animation-delay: .3s; }
@keyframes pulso { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.chat-form { display: flex; gap: 10px; align-items: flex-end; background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; padding: 10px; margin-bottom: 12px; position: sticky; bottom: 12px; box-shadow: var(--shadow); }
.chat-form textarea { border: 0; background: transparent; resize: vertical; min-height: 48px; padding: 6px 8px; }
.chat-form textarea:focus { outline: none; }

/* ═══════════════ Páginas de texto ═══════════════ */
.prosa { max-width: 720px; margin: 16px 0 64px; }
.prosa h2 { margin-top: 1.6em; font-size: 1.4rem; }
.prosa p, .prosa li { color: var(--ink-2); }
.prosa ul { display: grid; gap: 8px; }
.glosario { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; margin: 0 0 64px; }
.term { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; scroll-margin-top: 80px; }
.term dt { font-weight: 650; margin-bottom: 6px; }
.term dd { margin: 0; color: var(--ink-2); font-size: .93rem; }

/* ═══════════════ Pie ═══════════════ */
.pie { background: var(--ctl); color: var(--ctl-muted); padding: 64px 0 36px; margin-top: 24px; border-top: 1px solid var(--ctl-line); }
.pie-in { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; font-size: .9rem; }
.pie .logo { color: var(--ctl-ink); margin-bottom: 14px; }
.pie-marca p { max-width: 36ch; }
.pie nav { display: grid; gap: 8px; align-content: start; }
.pie nav a { text-decoration: none; color: var(--ctl-muted); }
.pie nav a:hover { color: #fff; }
.pie-t { font: 500 .7rem var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--ctl-ink); margin: 0 0 4px; }
.aviso { grid-column: 1 / -1; font-size: .78rem; color: #7d838d; border-top: 1px solid var(--ctl-line); padding-top: 22px; margin: 12px 0 0; }

/* ═══════════════ Bandeja y toast ═══════════════ */
.tray { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: color-mix(in srgb, var(--ctl) 94%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--ctl-line); color: var(--ctl-ink); }
.tray[hidden] { display: none; }
.tray-in { max-width: 1240px; margin: 0 auto; padding: 12px 16px; display: flex; gap: 14px; align-items: center; justify-content: space-between; }
.tray-items { display: flex; gap: 8px; overflow-x: auto; min-width: 0; }
.tray-item { display: inline-flex; align-items: center; gap: 8px; padding: 4px 6px 4px 4px; background: var(--ctl-2); border: 1px solid var(--ctl-line); border-radius: 10px; font-size: .85rem; font-weight: 500; white-space: nowrap; }
.tray-ico { width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center; padding: 4px; color: var(--ink-2); }
.tray-item button { border: 0; background: none; cursor: pointer; font-size: 1.1rem; line-height: 1; color: var(--ctl-muted); padding: 0 4px; }
.tray .btn-primary { background: var(--accent); color: #fff; }
.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); z-index: 50; background: var(--ctl); color: var(--ctl-ink); padding: 10px 16px; border-radius: 10px; font-size: .9rem; max-width: calc(100vw - 32px); box-shadow: var(--shadow-lg); }
.toast[hidden] { display: none; }

/* ═══════════════ Responsive ═══════════════ */
@media (max-width: 1180px) {
  .buscador-top { width: 180px; }
  .nav a { padding: .45em .55em; font-size: .88rem; }
}
@media (max-width: 1080px) {
  .ficha-cuerpo { grid-template-columns: 1fr; }
  .ficha-side { position: static; }
  .guiado-grid, .estudio { grid-template-columns: 1fr; }
  .guiado-form { position: static; }
  .cat-tiles { grid-template-columns: repeat(2, 1fr); }
  .cat-tile:last-child:nth-child(odd) { grid-column: span 2; aspect-ratio: 16 / 7; }
  .cat-tile { aspect-ratio: 4 / 3; }
  .ventajas { grid-template-columns: repeat(2, 1fr); }
  .duelos { grid-template-columns: repeat(2, 1fr); }
  .guia ul { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .radar-cuerpo { grid-template-columns: 1fr; }
  .radar-bloque { padding: 18px 16px; }
  .menu-toggle { display: block; margin-left: auto; }
  .buscador-top { display: none; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; background: var(--ctl); border-bottom: 1px solid var(--ctl-line); padding: 10px 16px 16px; gap: 2px; }
  .menu-abierto .nav { display: flex; }
  .nav a { padding: .75em .8em; font-size: 1rem; }
  .nav .nav-ia { margin: 6px 0 0; text-align: center; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .cta-in { grid-template-columns: 1fr; gap: 28px; padding-top: 64px; padding-bottom: 64px; }
  .catalogo { grid-template-columns: 1fr; }
  .filtros { position: static; grid-template-columns: 1fr 1fr; }
  .ficha-head { grid-template-columns: 1fr; gap: 20px; }
  .ficha-media { aspect-ratio: auto; height: 240px; }
  .pie-in { grid-template-columns: 1fr 1fr; }
  .pie-marca { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .hero { min-height: 0; margin-bottom: 56px; }
  .hero-in { padding-top: 48px; padding-bottom: 40px; }
  .hero-velo { background: linear-gradient(180deg, rgba(8, 9, 12, .5) 0%, rgba(8, 9, 12, .78) 45%, rgba(8, 9, 12, .95) 100%); }
  .hero-img { object-position: 70% 50%; }
  .hero-pasos { flex-direction: column; gap: 9px; margin: 0 0 22px; }
  .hero-pasos li { display: block; flex: none; padding: 0; border: 0; background: none; backdrop-filter: none; line-height: 1.35; }
  .hero-pasos li::before { display: inline-grid; width: 22px; height: 22px; margin-right: 9px; font-size: .72rem; vertical-align: 1px; }
  .hero-pasos span { margin-left: 4px; }
  .hero-stats { flex-wrap: wrap; margin-top: 36px; }
  .hero-stats > div { flex: 1 1 50%; padding: 14px 12px 0 0 !important; border-left: 0 !important; }
  .hero-stats dt { font-size: .6rem; letter-spacing: .06em; }
  .buscador-xl input { font-size: 1rem; }
  .buscador-res { min-width: 0; }
  .cat-tiles, .ventajas, .duelos { grid-template-columns: 1fr; }
  .cat-tile, .cat-tile:last-child:nth-child(odd) { grid-column: auto; aspect-ratio: 16 / 10; }
  .ventajas { margin-top: -16px; }
  .banner { min-height: 240px; border-radius: var(--r); }
  .banner-txt { padding: 22px 20px 24px; }
  .banner-velo { background: linear-gradient(180deg, rgba(8, 9, 12, .55) 0%, rgba(8, 9, 12, .92) 75%); }
  .filtros { grid-template-columns: 1fr; }
  .pros-contras, .para-quien { grid-template-columns: 1fr; }
  .pie-in { grid-template-columns: 1fr; }
  .linea { grid-template-columns: 48px 1fr; }
  .linea-media { width: 48px; height: 48px; padding: 6px; }
  .linea-pre { grid-column: 1 / -1; grid-template-columns: auto auto; justify-content: space-between; align-items: center; }
  .linea-pre span { margin: 0; }
  .total { grid-template-columns: 1fr 1fr; }
  .medidor { grid-column: 1 / -1; grid-row: 2; }
  .add-cmp { flex-direction: column; align-items: stretch; }
  .msg.user .burbuja { max-width: 92%; }
  .tray-in .btn { flex-shrink: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ═══════════════ Fotos de producto ═══════════════ */
.foto-prod { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; box-sizing: border-box; }
.card-media:has(.foto-prod), .ficha-media:has(.foto-prod), .cmp-media:has(.foto-prod), .linea-media:has(.foto-prod),
.busca-ico:has(.foto-prod), .mz-ico:has(.foto-prod), .tray-ico:has(.foto-prod), .duelo-icos > span:has(.foto-prod) {
  position: relative; overflow: hidden; background: #fff; background-image: none;
}
.card-media:has(.foto-prod)::after, .ficha-media:has(.foto-prod)::after { display: none; }
.card-media .foto-prod { padding: 14px 18px; transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.card:hover .card-media .foto-prod { transform: scale(1.05); }
.card.compact .card-media .foto-prod { padding: 10px; }
.card-media .foto-prod.ancha { padding: 10px 0; transform: scale(1.22); }
.card:hover .card-media .foto-prod.ancha { transform: scale(1.27); }
.ficha-media .foto-prod.ancha, .guia-media .foto-prod.ancha, .cmp-head-foto .foto-prod.ancha { padding-left: 0; padding-right: 0; transform: scale(1.18); }
.ficha-media .foto-prod { padding: 8%; }
.cmp-media .foto-prod { padding: 8px; }
.linea-media:has(.foto-prod), .busca-ico:has(.foto-prod), .mz-ico:has(.foto-prod), .tray-ico:has(.foto-prod) { padding: 3px; border: 1px solid var(--line); }
.duelo-icos > span:has(.foto-prod) { padding: 5px; border-color: var(--surface); box-shadow: 0 0 0 1px var(--line); }
:root[data-theme="dark"] .card-media:has(.foto-prod), :root[data-theme="dark"] .ficha-media:has(.foto-prod) { background: #f4f4f2; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .card-media:has(.foto-prod), :root:not([data-theme="light"]) .ficha-media:has(.foto-prod) { background: #f4f4f2; }
}

/* ═══════════════ Guías y comparativas ═══════════════ */
.guias-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 40px; }
.guia-card { position: relative; display: flex; align-items: flex-end; min-height: 220px; border-radius: var(--r-lg); overflow: hidden; color: #fff; text-decoration: none; background: var(--ctl); isolation: isolate; box-shadow: var(--shadow); }
.guia-card:hover { color: #fff; }
.guia-card-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.guia-card:hover .guia-card-img { transform: scale(1.05); }
.guia-card::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 9, 12, .15) 0%, rgba(8, 9, 12, .9) 100%); }
.guia-card-txt { display: grid; gap: 6px; padding: 20px; }
.guia-card-txt b { font-size: 1.12rem; line-height: 1.2; letter-spacing: -.01em; }
.guia-card-txt small { font-size: .82rem; color: rgba(255, 255, 255, .75); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.guia-art { max-width: 960px; margin: 0 auto 40px; }
.guia-intro { max-width: none; margin: 8px 0 28px; }
.guia-intro p { font-size: 1.06rem; }
.guia-criterios { margin-bottom: 36px; }
.criterios { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.criterios > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.criterios span { font: 600 .74rem var(--mono); color: var(--accent); }
.criterios h3 { margin: 6px 0 4px; }
.criterios p { margin: 0; font-size: .92rem; color: var(--ink-2); }
.guia-tramo { margin: 0 0 36px; }
.guia-tramo h2 small { font-size: .8rem; font-weight: 500; color: var(--muted); }
.guia-item { display: grid; grid-template-columns: 220px 1fr; gap: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; margin-bottom: 14px; }
.guia-media { position: relative; aspect-ratio: 1; border-radius: 12px; background: var(--media); display: grid; place-items: center; overflow: hidden; color: var(--ink-2); }
.guia-media:has(.foto-prod) { background: #fff; }
.guia-media .foto-prod { padding: 12px; }
.guia-media svg { width: 60%; height: 60%; }
.guia-txt h3 { font-size: 1.3rem; margin: 2px 0 8px; }
.guia-txt h3 a { text-decoration: none; }
.guia-txt > p { color: var(--ink-2); font-size: .95rem; }
.guia-n { font: 600 .72rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin: 0; }
.guia-meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font: .82rem var(--mono); color: var(--muted); }
.guia-specs { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.guia-specs li { font-size: .8rem; background: var(--surface-2); border: 1px solid var(--line); border-radius: 7px; padding: 4px 8px; display: flex; gap: 6px; }
.guia-specs span { color: var(--muted); }
.guia-specs b { font-family: var(--mono); font-weight: 500; }
.guia-ideal { font-size: .88rem; }
.guia-txt .acciones { max-width: 380px; }
.guia-cmp { margin: -12px 0 32px; }
.guia-faq { margin-bottom: 40px; }
.guia-faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin-bottom: 8px; }
.guia-faq summary { cursor: pointer; font-weight: 600; }
.guia-faq details p { margin: 10px 0 0; color: var(--ink-2); }
.cta-guia { display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--ctl); color: var(--ctl-ink); border-radius: var(--r-lg); padding: 22px 26px; }
.cta-guia p { margin: 0; max-width: 56ch; }

.cmp-head { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; margin: 12px 0 28px; }
.cmp-head h1 { margin: .2em 0 .3em; font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.cmp-head .lead { margin: 0; }
.cmp-head-fotos { display: flex; align-items: center; gap: 10px; }
.cmp-head-foto { position: relative; width: 150px; aspect-ratio: 1; border-radius: 16px; background: #fff; border: 1px solid var(--line); overflow: hidden; display: grid; place-items: center; color: var(--ink-2); }
.cmp-head-foto .foto-prod { padding: 12px; }
.cmp-head-foto svg { width: 60%; }
.vs { font: 700 .9rem var(--mono); color: var(--accent); text-transform: uppercase; }
.veredicto { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--r); padding: 18px 22px; margin-bottom: 24px; }
.veredicto h2 { font-size: 1.25rem; }
.veredicto ul { padding-left: 1.1em; display: grid; gap: 8px; }
.veredicto p { margin: 10px 0 0; color: var(--ink-2); }
.difs { max-width: none; margin: 0 0 24px; }
.difs h2 { margin-top: 0; font-size: 1.25rem; }
.cmp-abrir { margin: -36px 0 48px; }
.relacionados h2 { font-size: 1.25rem; }
.rel-guias { margin-top: 14px; color: var(--ink-2); }

@media (max-width: 960px) {
  .guias-grid { grid-template-columns: 1fr 1fr; }
  .cmp-head { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 640px) {
  .guias-grid, .criterios { grid-template-columns: 1fr; }
  .guia-item { grid-template-columns: 1fr; }
  .guia-media { aspect-ratio: 16 / 10; }
  .cmp-head-foto { width: 120px; }
}

/* Sin cifras de precio: el precio exacto está en Amazon */
.precio-amz { font: 500 .74rem var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
a.precio-g { color: var(--accent); text-decoration: none; }
a.precio-g:hover { text-decoration: underline; }
.encaja { margin: 16px 0 4px; padding: 10px 14px; border-radius: 10px; background: var(--ok-soft); font-size: .9rem; }

.precio-mercado { cursor: help; }
.precio-fuente { display: block; font: 400 .7rem var(--mono); color: var(--muted); text-transform: none; letter-spacing: 0; }

/* Disponibilidad en Amazon */
.btn-alt { background: var(--surface); color: var(--ink); border-color: var(--accent); }
.btn-alt:hover { background: var(--accent); color: var(--accent-ink); }
.btn-nd { color: var(--muted); cursor: default; }
.aviso-amz { margin: 12px 0 0; padding: 8px 12px; border-radius: 8px; background: var(--warn-soft); font-size: .86rem; color: var(--ink-2); }

/* ═══════════════ Opiniones de clientes ═══════════════ */
.estrellas { position: relative; display: inline-block; width: 5.4em; height: 1em; vertical-align: -1px; font-size: .95em;
  background: linear-gradient(90deg, var(--line-2) 0 0); -webkit-mask: var(--star) repeat-x 0 0 / 1.08em 1em; mask: var(--star) repeat-x 0 0 / 1.08em 1em;
  --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.9 6.1 6.6.8-4.9 4.6 1.3 6.6L12 17.3 6.1 20.6l1.3-6.6L2.5 9.4l6.6-.8z'/%3E%3C/svg%3E"); }
.estrellas > span { position: absolute; inset: 0 auto 0 0; background: var(--amber); }
.card-rating { display: flex; align-items: center; gap: 6px; margin: -2px 0 0; font-size: .82rem; }
.card-rating b { font-family: var(--mono); font-weight: 600; }
.card-rating small, .op-mini small { color: var(--muted); font-size: .76rem; }
.op-mini { display: flex; align-items: center; gap: 6px; text-decoration: none; line-height: 2; }
.op-mini b { font-family: var(--mono); }
.guia-rating { display: inline-flex; align-items: center; gap: 5px; }
.opiniones { margin-top: 2.2em; }
.op-grid { display: grid; grid-template-columns: 240px 1fr; gap: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.op-media { margin: 0; display: flex; align-items: baseline; gap: 6px; }
.op-media b { font: 700 2.6rem/1 var(--mono); letter-spacing: -.03em; }
.op-media span { color: var(--muted); font-family: var(--mono); }
.op-resumen .estrellas { font-size: 1.25rem; margin: 6px 0 4px; }
.op-total { margin: 0 0 12px; font-size: .85rem; color: var(--muted); }
.op-dist { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.op-dist li { display: grid; grid-template-columns: 30px 1fr 52px; gap: 8px; align-items: center; font-size: .78rem; }
.op-dist b { font: 500 .74rem var(--mono); text-align: right; color: var(--ink-2); }
.op-barra { height: 7px; border-radius: 99px; background: var(--line); overflow: hidden; }
.op-barra > span { display: block; height: 100%; background: var(--amber); border-radius: inherit; }
.op-texto h3 { margin: 0 0 6px; font-size: .95rem; }
.op-lista { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 6px; font-size: .9rem; }
.op-lista li { padding: 6px 10px 6px 28px; border-radius: 8px; position: relative; }
.op-lista li::before { position: absolute; left: 10px; top: 6px; font-weight: 700; }
.op-lista.ok li { background: var(--ok-soft); } .op-lista.ok li::before { content: '+'; color: var(--ok); }
.op-lista.warn li { background: var(--warn-soft); } .op-lista.warn li::before { content: '–'; color: var(--warn); }
.op-fuente { margin: 6px 0 0; font-size: .78rem; color: var(--muted); }
.op-fuente a { color: var(--accent); }
.op-vacio { background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--r); padding: 16px; color: var(--muted); }
.op-vacio a { color: var(--accent); }
@media (max-width: 640px) { .op-grid { grid-template-columns: 1fr; } }

/* ═══════════════ Selector desplegable premium ═══════════════ */
.sel { position: relative; }
.sel-nativo { position: absolute !important; inset: 0; opacity: 0; pointer-events: none; }
/* <select> nativo con el mismo aspecto (antes de que cargue el JS) */
select:not(.sel-nativo) {
  -webkit-appearance: none; appearance: none; cursor: pointer; padding-right: 2.4em;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%236a6f78' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right .8em center / 14px;
  border: 1px solid var(--line-2); border-radius: 10px; padding-top: .62em; padding-bottom: .62em; font-weight: 500;
}
.sel-trigger {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%;
  padding: .62em .75em .62em .9em; background: var(--surface); color: var(--ink);
  border: 1px solid var(--line-2); border-radius: 10px; cursor: pointer; text-align: left;
  font: 500 .92rem/1.25 var(--sans); box-shadow: 0 1px 2px rgba(20, 20, 20, .04);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.sel-trigger:hover { border-color: var(--ink-2); }
.sel-trigger:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.sel.abierto .sel-trigger { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.sel-valor { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sel-chevron { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--surface-2); color: var(--muted); flex-shrink: 0; transition: transform .2s, background .15s, color .15s; }
.sel-chevron svg { width: 14px; height: 14px; }
.sel.abierto .sel-chevron { transform: rotate(180deg); background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.sel-panel {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 70; min-width: 220px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 6px;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .28), 0 2px 6px rgba(0, 0, 0, .06);
  transform-origin: top center; animation: sel-in .16s cubic-bezier(.2, .8, .2, 1);
}
.sel.arriba .sel-panel { top: auto; bottom: calc(100% + 6px); transform-origin: bottom center; }
@keyframes sel-in { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
.sel-lista { list-style: none; margin: 0; padding: 0; max-height: 300px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.sel-op { display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: 8px; padding: .55em .65em; border-radius: 9px; cursor: pointer; font-size: .9rem; color: var(--ink-2); outline: none; }
.sel-op:hover, .sel-op:focus { background: var(--surface-2); color: var(--ink); }
.sel-op:focus-visible { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--accent) 45%, transparent); }
.sel-op.activa { color: var(--ink); font-weight: 600; background: color-mix(in srgb, var(--accent) 9%, transparent); }
.sel-op.vacia { color: var(--muted); }
.sel-check { display: grid; place-items: center; color: var(--accent); opacity: 0; }
.sel-check svg { width: 14px; height: 14px; }
.sel-op.activa .sel-check { opacity: 1; }
.sel-meta { font: 500 .74rem var(--mono); color: var(--muted); white-space: nowrap; }
.sel-grupo { padding: .8em .7em .35em; font: 600 .66rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.sel-vacio { padding: .9em; text-align: center; font-size: .86rem; color: var(--muted); }
.sel-buscar { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; padding: .5em .7em; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); }
.sel-buscar svg { width: 15px; height: 15px; flex-shrink: 0; }
.sel-buscar input { border: 0; background: transparent; width: 100%; padding: 0; font-size: .9rem; color: var(--ink); outline: none; }
.add-cmp .sel { flex: 1; min-width: 0; }

/* Móvil: la tabla del comparador se desliza entera (sin primera columna fija) */
@media (max-width: 960px) {
  .comparar tbody th, .comparar .esquina { position: static; }
  .comparar tbody th { width: 140px; min-width: 140px; }
}

/* ───────── Filtro «¿Para qué lo quieres?» (estudio / uso personal) ───────── */
.filtro-para { border: 0; margin: 0; padding: 0; }
.seg-grupo { display: flex; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; }
.seg-radio { flex: 1; position: relative; cursor: pointer; }
.seg-radio + .seg-radio { border-left: 1px solid var(--line-2); }
.seg-radio input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg-radio span { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: .5em .4em; font-size: .8rem; font-weight: 500; line-height: 1.2; text-align: center; color: var(--ink-2); background: var(--surface); transition: background .15s, color .15s; }
.seg-radio small { font: 500 .68rem var(--mono); color: var(--muted); }
.seg-radio input:checked + span { background: var(--ink); color: var(--bg); }
.seg-radio input:checked + span small { color: inherit; opacity: .7; }
.seg-radio input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: -2px; }
.op-nada { color: var(--muted); font-size: .92rem; margin: 0 0 12px; }
.sugerencias.accesos { margin-top: 18px; }

/* ───────── Compartir conversación del asesor ───────── */
.chat-aviso { margin: 0 0 16px; padding: 12px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--accent); font-size: .92rem; }
.chat-barra { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 18px; }
.chat-barra .btn svg { margin-right: 6px; vertical-align: -3px; }
.chat-barra .nota { flex-basis: 100%; margin: 4px 0 0; }
.chat-enlace { flex-basis: 100%; display: flex; gap: 8px; }
.chat-enlace[hidden] { display: none; }
.chat-enlace input { flex: 1; min-width: 0; font: inherit; font-size: .85rem; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); }

/* Índice de guías: dudas frecuentes */
.guias-h { margin: 8px 0 14px; }
.dudas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.dudas a { display: block; height: 100%; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); text-decoration: none; color: inherit; transition: border-color .2s; }
.dudas a:hover { border-color: var(--accent); }
.dudas b { display: block; margin-bottom: 6px; }
.dudas small { color: var(--ink-2); line-height: 1.45; }
.prosa.articulo { max-width: 72ch; }
.dudas-t { margin: 28px 0 12px; font-size: 1.1rem; }
.btn-compartir { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; }
.banner .btn-compartir { color: #fff; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .35); }
.banner .btn-compartir:hover { background: rgba(255, 255, 255, .16); }
