/* BetterCompared 1.0 – paleta negro-violeta. Los colores se cambian en estas variables. */
:root {
  --bc-grad: linear-gradient(135deg, #050608 0%, #17153b 100%);
  --bc-night: #050608;
  --bc-indigo: #17153b;
  --bc-ink: #12112a;
  --bc-mut: #4f5169;
  --bc-line: #e1e0ee;
  --bc-paper: #f6f5fb;
  --bc-card: #ffffff;
  --bc-on: #f3f2ff;
  --bc-mut-on: #aeadcb;
  --bc-line-on: rgba(255, 255, 255, .13);
  --bc-accent: #8f7dff;
  --bc-win: #3ddcab;
  /* Colores de producto (1.9, a juego con el logo): siempre en este orden, 1.º rojo, 2.º azul… */
  --bc-red: #e63946;
  --bc-blue: #407ec9;
  --bc-p0: var(--bc-red);
  --bc-p1: var(--bc-blue);
  --bc-p2: #f7d33f;
  --bc-p3: #3fa65f;
  --bc-p4: #f28e2b;
  --bc-p5: #8655b4;
  --bc-cta-blue: #0000ff; /* botón «Comparar» del comparador y contador del botón flotante */
  --bc-logo-red: #ff0000;
  --bc-bar-h: 0px;
}
/* Ficha de un producto: rojo si está por encima de la media de su categoría, azul si está por debajo. */
.bc-solo.bc-down { --bc-p0: var(--bc-blue); }
.bc-p0 { --c: var(--bc-p0); }
.bc-p1 { --c: var(--bc-p1); }
.bc-p2 { --c: var(--bc-p2); }
.bc-p3 { --c: var(--bc-p3); }
.bc-p4 { --c: var(--bc-p4); }
.bc-p5 { --c: var(--bc-p5); }
.bc-savg { --c: #9d9cb8; }

/* El título del tema sigue en la página para buscadores y lectores de pantalla, pero no se muestra. */
body.bc-page h1:not(.bc-h1) { position: absolute !important; width: 1px !important; height: 1px !important; margin: -1px !important; padding: 0 !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; border: 0 !important; }
body.bc-page { overflow-x: clip; }

.bc { color: var(--bc-ink); font-size: 16px; line-height: 1.5; margin: 0 0 2.5rem; text-align: left; }
.bc *, .bc-modal *, .bc-fab *, #bc-tt { box-sizing: border-box; }
.bc a { color: inherit; }
.bc p, .bc h2, .bc h3 { margin: 0; padding: 0; border: 0; font-family: inherit; }
.bc img { max-width: 100%; height: auto; border: 0; box-shadow: none; border-radius: 0; margin: 0; }
.bc-notice { padding: 1rem 1.25rem; border-left: 4px solid var(--bc-accent); background: var(--bc-paper); border-radius: 0 10px 10px 0; }

/* Secciones a ancho completo, aunque el tema use un contenedor estrecho (el JS ajusta --bc-l y --bc-vw). */
.bc-full { margin-left: calc(-1 * var(--bc-l, calc(50vw - 50%))); width: var(--bc-vw, 100vw); max-width: none; }
.bc-wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------- Above The Fold ---------- */
.bc .bc-atf { background: var(--bc-grad); color: var(--bc-on); padding: 1.6rem 0 2.4rem; }
.bc .bc-atf p, .bc .bc-atf h2, .bc .bc-atf h3 { color: inherit; }
.bc .bc-disc { text-align: center; font-size: .8rem; color: var(--bc-mut-on); }
.bc .bc-kicker { margin-top: .5rem; text-align: center; font-size: .9rem; font-weight: 700; color: var(--bc-mut-on); }

.bc-hero { display: flex; justify-content: center; align-items: stretch; margin-top: 1.4rem; }
.bc-hcol { flex: 1 1 0; min-width: 0; max-width: 470px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.bc .bc-hname { font-size: clamp(1.25rem, 3.4vw, 2.5rem); font-weight: 800; line-height: 1.08; letter-spacing: -.01em; text-transform: uppercase; overflow-wrap: anywhere; color: #fff; }
.bc-himg { display: flex; align-items: center; justify-content: center; width: 100%; height: clamp(110px, 19vw, 240px); margin: 1.1rem 0; padding: 0 6%; background: radial-gradient(closest-side, rgba(150, 138, 255, .26), rgba(150, 138, 255, 0) 72%); text-decoration: none; }
.bc-himg img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 14px 26px rgba(0, 0, 0, .55)); transition: transform .15s; }
a.bc-himg:hover img { transform: scale(1.03); }
.bc-noimg { display: flex; align-items: center; justify-content: center; width: 84px; height: 84px; border-radius: 50%; background: var(--c, var(--bc-accent)); color: var(--bc-night); font-size: 2.2rem; font-weight: 800; }
.bc-hmeta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .6rem .8rem; margin-top: auto; }
.bc-hdiv { flex: none; position: relative; width: 1px; margin: .4rem clamp(10px, 3.2vw, 56px) 0; background: linear-gradient(180deg, var(--bc-p0), var(--bc-p1)); opacity: .9; }
.bc-hdiv span { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); padding: .5rem 0; background: #0b0a1c; color: var(--bc-mut-on); font-size: .78rem; font-weight: 900; font-style: italic; }
.bc-n3 .bc-hdiv span, .bc-n4 .bc-hdiv span, .bc-n5 .bc-hdiv span, .bc-n6 .bc-hdiv span { display: none; }
.bc-n3 .bc-hname { font-size: clamp(1.05rem, 2.5vw, 1.9rem); }
.bc-n4 .bc-hname { font-size: clamp(1rem, 2vw, 1.5rem); }
.bc-n5 .bc-hname, .bc-n6 .bc-hname { font-size: clamp(.95rem, 1.5vw, 1.2rem); }
.bc-n4 .bc-himg, .bc-n5 .bc-himg, .bc-n6 .bc-himg { height: clamp(90px, 12vw, 160px); }
.bc-n4 .bc-hdiv, .bc-n5 .bc-hdiv, .bc-n6 .bc-hdiv { margin-left: clamp(6px, 1.2vw, 20px); margin-right: clamp(6px, 1.2vw, 20px); }

.bc-ring { position: relative; width: 56px; height: 56px; flex: none; }
.bc-ring svg { display: block; width: 100%; height: 100%; }
.bc-ring circle { fill: none; stroke-width: 6; }
.bc-ring-bg { stroke: rgba(255, 255, 255, .16); }
.bc-ring-fg { stroke: var(--c); stroke-linecap: round; }
.bc-ring span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; font-weight: 800; color: #fff; }

/* Botón de Amazon: siempre un enlace <a rel="nofollow sponsored"> */
.bc .bc-amz { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .8rem .5rem 1.05rem; border-radius: 999px; background: #fff; color: #111; font-size: .95rem; font-weight: 700; line-height: 1.1; white-space: nowrap; text-decoration: none; transition: transform .12s, box-shadow .12s; }
.bc .bc-amz:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(143, 125, 255, .45); color: #111; }
.bc .bc-amz-logo { width: 22px; height: 22px; object-fit: contain; flex: none; }
.bc .bc-avg-btn, .bc .bc-avg-btn.bc-amz-s { padding-left: 1.05rem; padding-right: 1.05rem; } /* modo informativo: sin logo, relleno simétrico */
.bc .bc-amz-s { padding: .38rem .6rem .38rem .85rem; border: 1.5px solid var(--bc-ink); font-size: .86rem; }
.bc .bc-amz-s .bc-amz-logo { width: 18px; height: 18px; }

/* Ficha de producto */
.bc-shero { display: flex; align-items: center; justify-content: center; gap: clamp(1rem, 4vw, 3.5rem); margin-top: 1.4rem; }
.bc-shero .bc-himg { flex: 0 1 420px; width: auto; margin: 0; height: clamp(150px, 24vw, 280px); }
.bc-sinfo { flex: 0 1 460px; min-width: 0; }
.bc-shero .bc-hname { text-transform: none; font-size: clamp(1.5rem, 3.2vw, 2.2rem); }
.bc .bc-rank { display: flex; align-items: baseline; gap: .6rem; margin-top: .5rem; color: var(--bc-on); font-weight: 600; }
.bc .bc-rank b { font-size: clamp(2.4rem, 6vw, 3.6rem); font-weight: 900; font-style: italic; line-height: 1; color: #fff; letter-spacing: -.03em; }
.bc-sbars { margin: .9rem 0 1.1rem; display: grid; gap: .45rem; }
.bc-sbar { display: grid; grid-template-columns: auto 2.2rem minmax(60px, 1fr); align-items: center; gap: .6rem; font-size: .9rem; font-weight: 600; }
.bc-sbar b { font-weight: 800; color: #fff; text-align: right; }
.bc-track { display: block; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.bc-track i { display: block; height: 100%; border-radius: 4px; background: var(--c, var(--bc-accent)); }
.bc-sbar.bc-avg .bc-track i, .bc-vsall.bc-have .bc-track i { background: #9d9cb8; }

.bc-verdict { margin-top: 2.2rem; text-align: center; }
.bc .bc-vk { font-size: 1.35rem; font-weight: 600; color: var(--bc-mut-on); }
.bc .bc-vt { margin-top: .5rem; font-size: clamp(1.15rem, 2.7vw, 1.9rem); font-weight: 600; line-height: 1.3; color: #fff; }
.bc .bc-vt strong { color: var(--bc-win); font-weight: 700; }

/* Radar + tabla */
.bc-gwrap { margin-top: 2.4rem; padding-top: 2.4rem; border-top: 1px solid var(--bc-line-on); }
.bc .bc-gh2 { text-align: center; font-size: clamp(1.2rem, 2.8vw, 1.8rem); font-weight: 800; line-height: 1.2; text-transform: uppercase; color: #fff; }
.bc .bc-gk { margin-top: .35rem; text-align: center; color: var(--bc-mut-on); }
.bc .bc-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem 1.4rem; margin: .9rem 0 1.4rem; font-size: .92rem; font-weight: 700; }
.bc-legend span { color: var(--c); }
.bc-legend i { display: inline-block; width: 1.1rem; height: 0; margin-right: .5rem; border-top: 3px solid var(--c); vertical-align: middle; }
.bc-legend .bc-lavg { color: var(--bc-on); }
.bc-legend .bc-lavg i { border-top: 2px dashed #9d9cb8; }
.bc-glance { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 1.5rem 2.5rem; align-items: center; }
.bc-radar { min-width: 0; }
.bc-radar-box { position: relative; width: 100%; max-width: 440px; margin: 0 auto; aspect-ratio: 440 / 340; }
.bc-radar-box svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.bc-grid { fill: none; stroke: rgba(255, 255, 255, .13); stroke-width: 1; }
.bc-shape { fill: var(--c); fill-opacity: .13; stroke: var(--c); stroke-width: 2.4; stroke-linejoin: round; }
.bc-shape.bc-savg { fill: none; stroke-width: 1.8; stroke-dasharray: 5 4; }
.bc-rsel[hidden] { display: none; }
.bc-wedge { fill: rgba(255, 255, 255, .09); }
.bc-dot { fill: var(--c); stroke: #0b0a1c; stroke-width: 2; }
.bc-bub { fill: var(--c); }
.bc-bubt { fill: #fff; font-size: 11.5px; font-weight: 800; }
.bc-p2 .bc-bubt, .bc-savg .bc-bubt { fill: #0b0a1c; } /* sobre amarillo y gris, texto oscuro */
.bc .bc-rpill { position: absolute; z-index: 1; margin: 0; padding: .28rem .7rem; border: 1px solid rgba(255, 255, 255, .34); border-radius: 999px; background: #0f0e22; color: #fff; font: inherit; font-size: .84rem; font-weight: 700; line-height: 1.2; white-space: nowrap; cursor: pointer; transition: background .12s, color .12s; }
.bc .bc-rpill:hover { border-color: #fff; }
.bc .bc-rpill[aria-pressed="true"] { background: #fff; color: var(--bc-ink); border-color: #fff; }
.bc-pt { transform: translate(-50%, -100%); }
.bc-pb { transform: translate(-50%, 0); }
.bc-pr { transform: translate(0, -50%); }
.bc-pl { transform: translate(-100%, -50%); }

.bc-card { min-width: 0; border: 1px solid var(--bc-line-on); border-radius: 16px; background: rgba(255, 255, 255, .045); }
.bc-atable[hidden] { display: none; }
.bc-ahead { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; }
.bc .bc-atitle { font-size: 1rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #fff; }
.bc .bc-ascore { display: flex; gap: .4rem; font-size: .9rem; font-weight: 700; white-space: nowrap; color: var(--bc-on); }
.bc-ascore b { color: var(--c); font-weight: 800; }
.bc-ascore b + b::before { content: "· "; color: var(--bc-mut-on); }
.bc-frow { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 2fr) minmax(4.4rem, auto); gap: .3rem 1rem; align-items: center; padding: .68rem 1.25rem; border-top: 1px solid var(--bc-line-on); }
.bc-fl { color: var(--bc-on); opacity: .88; }
.bc-fvs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .3rem 1rem; }
.bc-solo .bc-fvs { grid-template-columns: minmax(0, 1fr); }
.bc-fv { color: var(--bc-mut-on); overflow-wrap: anywhere; }
.bc-fv.bc-won, .bc-solo .bc-frow:not(.bc-fhead) .bc-fv { color: #fff; font-weight: 700; }
.bc-fv.bc-na { font-style: italic; }
.bc-fm { text-align: right; }
.bc-fhead { font-size: .84rem; font-weight: 700; }
.bc-fhead .bc-fl, .bc-fhead .bc-fm { color: #fff; opacity: 1; }
.bc-fhead .bc-fv { color: var(--c); font-weight: 700; }
.bc-fv.bc-yes::before, .bc-fv.bc-no::before, .bc-v.bc-yes::before, .bc-v.bc-no::before { content: ""; display: inline-block; width: .6rem; height: .6rem; margin-right: .45rem; border-radius: 50%; border: 2px solid #8a89a6; }
.bc-fv.bc-yes::before, .bc-v.bc-yes::before { background: var(--c); border-color: var(--c); }
.bc-chip { display: inline-block; padding: .12rem .55rem; border-radius: 999px; background: color-mix(in srgb, var(--c) 26%, transparent); color: var(--c); font-size: .8rem; font-weight: 800; white-space: nowrap; }
.bc-chip-e { background: rgba(255, 255, 255, .1); color: var(--bc-mut-on); }
.bc-vsall { display: inline-flex; align-items: center; gap: .6rem; font-size: .84rem; font-weight: 700; color: var(--bc-on); white-space: nowrap; }
.bc-vsall .bc-track { width: 70px; height: 6px; --c: var(--bc-red); }
.bc-vsall.bc-lo .bc-track { --c: var(--bc-blue); }
/* Ficha completa (zona clara): la misma comparación con la categoría, en tinta oscura. */
.bc .bc-table .bc-vsc { padding-left: 1.2rem; }
.bc-table .bc-vsall { color: var(--bc-ink); }
.bc-table .bc-vsall .bc-track { background: #e6e5f1; }
.bc-dpill { color: var(--bc-ink); white-space: nowrap; }
.bc-dpill.bc-up { --c: var(--bc-red); }
.bc-dpill.bc-down { --c: var(--bc-blue); }
.bc .bc-amore { display: inline-block; margin: .9rem 1.25rem 1.1rem; color: #fff; font-size: .88rem; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.bc .bc-basis { margin-top: 1.5rem; text-align: center; font-size: .86rem; color: var(--bc-mut-on); }

/* Con 3 o más productos, cada dato va apilado: etiqueta, valores con su color y resultado. */
.bc-n3 .bc-fhead, .bc-n4 .bc-fhead, .bc-n5 .bc-fhead, .bc-n6 .bc-fhead { display: none; }
.bc-n3 .bc-frow, .bc-n4 .bc-frow, .bc-n5 .bc-frow, .bc-n6 .bc-frow { grid-template-columns: minmax(0, 1fr); }
.bc-n3 .bc-fvs, .bc-n4 .bc-fvs, .bc-n5 .bc-fvs, .bc-n6 .bc-fvs { display: flex; flex-wrap: wrap; gap: .2rem 1.1rem; }
.bc-n3 .bc-fm, .bc-n4 .bc-fm, .bc-n5 .bc-fm, .bc-n6 .bc-fm { text-align: left; }
.bc-n3 .bc-fv::before, .bc-n4 .bc-fv::before, .bc-n5 .bc-fv::before, .bc-n6 .bc-fv::before { content: ""; display: inline-block; width: .5rem; height: .5rem; margin-right: .4rem; border-radius: 50%; border: 0; background: var(--c); }
.bc-n3 .bc-fv.bc-no::before, .bc-n4 .bc-fv.bc-no::before, .bc-n5 .bc-fv.bc-no::before, .bc-n6 .bc-fv.bc-no::before { background: #6c6b88; }

/* ---------- Zona clara ---------- */
.bc-sec { margin-top: 2.6rem; }
.bc .bc-h2 { font-size: clamp(1.3rem, 2.6vw, 1.8rem); font-weight: 800; line-height: 1.2; text-transform: uppercase; color: var(--bc-ink); }
.bc .bc-h3 { font-size: 1.05rem; font-weight: 800; color: var(--bc-mut); }
.bc .bc-sub { margin-top: .2rem; color: var(--bc-mut); font-size: .95rem; }

.bc-cw { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-top: 1.6rem; }
.bc-cw-l { font-weight: 800; color: var(--bc-mut); }
.bc-cw-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.bc .bc-cw-p { display: inline-flex; align-items: center; gap: .55rem; padding: .32rem .9rem .32rem .38rem; border: 1px solid var(--bc-line); border-radius: 999px; background: #fff; font-weight: 700; font-size: .93rem; text-decoration: none; color: var(--bc-ink); }
.bc .bc-cw-p:hover { border-color: var(--bc-accent); }
.bc-cw-p em { font-style: normal; font-weight: 600; color: var(--bc-mut); }
.bc-vsdot { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--bc-ink); color: #fff; font-size: .68rem; font-weight: 800; }

.bc-rec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.bc .bc-toggle-all, .bc .bc-btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; margin: 0; padding: .5rem 1rem; border: 1px solid var(--bc-line); border-radius: 999px; background: #fff; color: var(--bc-ink); font: inherit; font-size: .9rem; font-weight: 700; line-height: 1.2; white-space: nowrap; text-decoration: none; cursor: pointer; }
.bc .bc-toggle-all:hover, .bc .bc-btn-line:hover { border-color: var(--bc-ink); }
.bc .bc-btn-dark { background: var(--bc-ink); border-color: var(--bc-ink); color: #fff; }
.bc .bc-btn-dark:hover { background: #26244f; color: #fff; }
.bc .bc-btn-cta { padding: .8rem 1.4rem; background: var(--bc-win); border-color: var(--bc-win); color: #05241a; font-size: 1rem; }
.bc .bc-btn-cta:hover { filter: brightness(1.07); color: #05241a; }

.bc-area { margin-top: .75rem; border: 1px solid var(--bc-line); border-radius: 14px; background: var(--bc-card); scroll-margin-top: 90px; }
.bc-area > summary { display: flex; align-items: center; gap: .7rem; padding: .95rem 1.1rem; cursor: pointer; list-style: none; }
.bc-area > summary::-webkit-details-marker { display: none; }
.bc-area > summary::after { content: ""; flex: none; width: .5rem; height: .5rem; margin: 0 .2rem .2rem .3rem; border-right: 2px solid var(--bc-mut); border-bottom: 2px solid var(--bc-mut); transform: rotate(45deg); transition: transform .15s; }
.bc-area[open] > summary::after { transform: rotate(225deg); margin-bottom: -.2rem; }
.bc-area-t { flex: 1; font-size: 1.02rem; font-weight: 800; text-transform: uppercase; }
.bc-pill { padding: .2rem .75rem; border-radius: 999px; background: color-mix(in srgb, var(--c) 30%, #fff); border: 1.5px solid var(--c); font-size: .8rem; font-weight: 800; text-align: center; }
.bc-pill-even { background: #edecf5; border-color: #d5d4e4; color: var(--bc-mut); }

.bc-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; touch-action: pan-x pan-y; border-top: 1px solid var(--bc-line); border-radius: 0 0 14px 14px; }
.bc-scroll.bc-drag { cursor: grab; }
.bc-scroll.bc-dragging { cursor: grabbing; user-select: none; }
.bc .bc-table { width: 100%; margin: 0; border: 0; border-collapse: collapse; font-size: .93rem; table-layout: auto; }
.bc .bc-table th, .bc .bc-table td { padding: .62rem .7rem; border: 0; border-bottom: 1px solid var(--bc-line); text-align: left; vertical-align: top; background: none; overflow-wrap: normal; word-break: normal; hyphens: auto; }
.bc .bc-table th:first-child { padding-left: 1.1rem; }
.bc .bc-table tbody tr:last-child th, .bc .bc-table tbody tr:last-child td { border-bottom: 0; }
.bc .bc-table thead th { font-size: .84rem; font-weight: 700; color: var(--bc-mut); background: var(--bc-paper); }
.bc .bc-table tbody th { width: 42%; font-weight: 600; color: var(--bc-ink); }
.bc .bc-table tbody th small { display: block; margin-top: .15rem; color: var(--bc-mut); font-size: .81rem; font-weight: 400; line-height: 1.35; }
.bc .bc-v { color: var(--bc-mut); }
.bc .bc-v.bc-won { color: var(--bc-ink); font-weight: 800; }
.bc .bc-v.bc-na { font-style: italic; }
.bc .bc-v.bc-no::before { border-color: #a3a2bb; }
.bc .bc-table .bc-mg { width: 1%; text-align: right; white-space: nowrap; }
.bc .bc-table .bc-chip { background: color-mix(in srgb, var(--c) 26%, #fff); color: var(--bc-ink); }
.bc .bc-table .bc-chip-e { background: #edecf5; color: var(--bc-mut); }
.bc-n3 .bc-table th, .bc-n3 .bc-table td, .bc-n4 .bc-table th, .bc-n4 .bc-table td, .bc-n5 .bc-table th, .bc-n5 .bc-table td, .bc-n6 .bc-table th, .bc-n6 .bc-table td { padding-left: .55rem; padding-right: .55rem; }
.bc-n3 .bc-table tbody th, .bc-n4 .bc-table tbody th, .bc-n5 .bc-table tbody th, .bc-n6 .bc-table tbody th { width: auto; min-width: 11rem; }
.bc-n3 .bc-table td, .bc-n4 .bc-table td, .bc-n5 .bc-table td, .bc-n6 .bc-table td { min-width: 6.4rem; }

/* Notas: aparecen al instante (sin la espera del atributo title). */
.bc .bc-tip { display: inline; margin: 0; padding: 0 .25rem; border: 0; background: none; color: var(--bc-accent); font: inherit; font-weight: 900; line-height: 1; cursor: help; }
.bc-table .bc-tip { color: #5b46e0; }
#bc-tt { position: fixed; z-index: 100000; max-width: 260px; padding: .5rem .7rem; border-radius: 8px; background: #12112a; color: #fff; font: 500 13px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .16); pointer-events: none; }
#bc-tt[hidden] { display: none; }

/* Bloques finales */
.bc-feat-card { margin-top: 1rem; padding: 1.25rem; border: 1px solid var(--bc-line); border-radius: 16px; background: #fff; }
.bc-feat-imgs { display: flex; align-items: center; gap: .6rem; }
.bc-feat-imgs .bc-vsdot { background: var(--bc-paper); color: var(--bc-mut); }
.bc-thumb { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 4.4rem; height: 4.4rem; border-radius: 10px; overflow: hidden; }
.bc-thumb img { width: 100%; height: 100%; object-fit: contain; }
.bc-thumb .bc-noimg { width: 100%; height: 100%; border-radius: 10px; font-size: 1.4rem; }
.bc .bc-feat-t { margin-top: .7rem; font-size: 1.15rem; font-weight: 800; }
.bc .bc-feat-s { color: var(--bc-mut); font-size: .93rem; }
.bc-feat-act { display: flex; gap: .7rem; margin-top: 1rem; }
.bc-feat-act .bc-btn-dark { flex: 1; padding: .85rem 1rem; font-size: 1rem; }
.bc-feat-act .bc-btn-line { padding: .85rem 1.2rem; }
.bc-top { margin-top: 1.8rem; }
.bc-top-list { display: flex; gap: .8rem; margin-top: .8rem; padding-bottom: .6rem; overflow-x: auto; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
.bc-top-item { position: relative; flex: 0 0 150px; padding: 2.6rem .7rem 1rem; border: 1px solid var(--bc-line); border-radius: 14px; background: #fff; text-align: center; scroll-snap-align: start; }
.bc-top-n { position: absolute; top: .7rem; left: .7rem; display: flex; align-items: center; justify-content: center; min-width: 1.7rem; height: 1.7rem; padding: 0 .3rem; border-radius: 7px; background: var(--bc-ink); color: #fff; font-size: .85rem; font-weight: 800; }
.bc .bc-top-add { position: absolute; top: .55rem; right: .55rem; width: 2rem; height: 2rem; margin: 0; padding: 0; border: 1px solid var(--bc-line); border-radius: 50%; background: #fff; color: var(--bc-ink); font: inherit; font-size: 1.25rem; line-height: 1; cursor: pointer; }
.bc .bc-top-add:hover { border-color: var(--bc-ink); }
.bc .bc-top-a { display: block; text-decoration: none; color: var(--bc-ink); }
.bc-top-img { display: flex; align-items: center; justify-content: center; height: 84px; }
.bc-top-img img { max-height: 100%; object-fit: contain; }
.bc-top-img .bc-noimg { width: 60px; height: 60px; font-size: 1.5rem; }
.bc-top-name { display: block; margin-top: .6rem; font-size: .92rem; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }

.bc .bc-cta { margin-top: 2.6rem; background: var(--bc-grad); color: #fff; padding: 2rem 0; }
.bc-cta-in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.bc .bc-cta p { font-size: clamp(1.02rem, 2.2vw, 1.3rem); font-weight: 700; color: #fff; }
.bc .bc-cta strong { color: var(--bc-win); }

/* ---------- Barra inferior fija ---------- */
.bc-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9980; background: #fff; border-top: 1px solid var(--bc-line); box-shadow: 0 -6px 24px rgba(18, 17, 42, .12); }
.bc-bar-in { display: flex; align-items: center; justify-content: center; gap: clamp(.6rem, 2.4vw, 2rem); max-width: 1120px; margin: 0 auto; padding: .5rem 1rem; padding-bottom: calc(.5rem + env(safe-area-inset-bottom, 0px)); }
.bc-bar-item { display: flex; align-items: center; gap: .65rem; min-width: 0; }
.bc-bar-img { display: flex; align-items: center; justify-content: center; flex: none; width: 52px; height: 40px; }
.bc-bar-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.bc-bar-img .bc-noimg { width: 36px; height: 36px; font-size: 1rem; }
.bc-bar-name { min-width: 0; max-width: 13rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; font-size: .98rem; color: var(--bc-ink); }
.bc-bar-vs { flex: none; color: #8a89a6; font-size: .8rem; font-weight: 700; }
/* Se oculta deslizándose hacia abajo al llegar a "Comparación destacada" (clase puesta por el JS). */
.bc-bar { transition: transform .35s ease, box-shadow .35s ease; }
.bc-bar.bc-bar-off { transform: translateY(calc(100% + 10px)); box-shadow: none; }
/* Con dos productos, el botón del ganador (izquierda) va invertido. */
.bc .bc-amz-dark { background: var(--bc-ink); border-color: var(--bc-ink); color: #fff; }
.bc .bc-amz-dark:hover { color: #fff; }
.bc .bc-amz-dark .bc-amz-logo { filter: brightness(0) invert(1); }
/* Tres o más productos: tarjetas con anillo, nombre y "Ver en Amazon →". */
.bc-bar-cards .bc-bar-in { justify-content: flex-start; gap: .6rem; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.bc-bar-cards .bc-bar-in::-webkit-scrollbar { display: none; }
.bc-bar-cards .bc-bar-card:first-child { margin-left: auto; }
.bc-bar-cards .bc-bar-card:last-child { margin-right: auto; }
.bc .bc-bar-card { display: flex; align-items: center; gap: .6rem; flex: 0 1 250px; min-width: 165px; padding: .38rem 1rem .38rem .4rem; border: 1.5px solid var(--bc-line); border-radius: 999px; background: #fff; color: var(--bc-ink); text-decoration: none; scroll-snap-align: start; transition: border-color .12s; }
.bc .bc-bar-card:first-child { border-color: var(--bc-ink); }
.bc .bc-bar-card:hover { border-color: var(--bc-accent); color: var(--bc-ink); }
.bc-bar-card .bc-ring { width: 42px; height: 42px; }
.bc-bar-card .bc-ring-bg { stroke: #e6e5f1; }
.bc .bc-bar-card .bc-ring span { color: var(--bc-ink); font-size: .82rem; }
.bc-bc-t { display: flex; flex-direction: column; min-width: 0; }
.bc-bar-card .bc-bar-name { max-width: none; font-size: .92rem; line-height: 1.2; }
.bc-bc-go { font-size: .8rem; font-weight: 600; color: var(--bc-mut); white-space: nowrap; }
.bc-fab { transition: bottom .35s ease; }

/* ---------- Botón flotante y ventana VS ---------- */
.bc-fab { position: fixed; right: 18px; bottom: calc(var(--bc-bar-h) + 16px); z-index: 9990; display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.05rem; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; background: var(--bc-ink); color: #fff; font: 800 1.05rem/1 system-ui, sans-serif; box-shadow: 0 8px 24px rgba(18, 17, 42, .4); cursor: pointer; }
.bc-fab:hover { background: #26244f; }
.bc-vs-mark { font-weight: 900; font-style: italic; letter-spacing: -.04em; }
/* Marca del botón comparador: el favicon del sitio («B>»), recortado sin márgenes (assets/bmark.png, 240×143). */
.bc-bmark { display: inline-block; flex: none; width: 2.1rem; height: 1.25rem; background: url(bmark.png) center / contain no-repeat; }
.bc-fab-n { min-width: 1.5rem; padding: .2rem .4rem; border-radius: 999px; background: var(--bc-cta-blue); color: #fff; font-size: .8rem; font-style: normal; text-align: center; }
.bc-fab-n[hidden] { display: none; }
.bc-fab:focus-visible, .bc-modal button:focus-visible, .bc-modal input:focus-visible, .bc button:focus-visible, .bc a:focus-visible, .bc summary:focus-visible { outline: 3px solid var(--bc-accent); outline-offset: 2px; }

html.bc-lock { overflow: hidden; }
.bc-modal { position: fixed; inset: 0; z-index: 99999; display: flex; justify-content: center; align-items: flex-start; padding: 4vh 16px; background: rgba(5, 6, 8, .78); overflow-y: auto; }
.bc-modal[hidden] { display: none; }
.bc-modal-box { width: 100%; max-width: 640px; padding: 1.4rem; border-radius: 18px; border: 1px solid var(--bc-line-on); background: var(--bc-grad); color: var(--bc-on); font: 16px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif; box-shadow: 0 24px 60px rgba(0, 0, 0, .5); }
.bc-modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.bc-modal .bc-modal-head h2 { margin: 0; padding: 0; border: 0; color: #fff; font-family: inherit; font-size: 1.3rem; font-weight: 800; }
.bc-modal-x { width: 2.4rem; height: 2.4rem; margin: 0; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.bc-chosen, .bc-results { margin: 0; padding: 0; list-style: none; }
#bc-modal .bc-chosen li, #bc-modal .bc-results li { margin-left: 0; list-style: none; }
.bc-chosen li { position: relative; display: flex; align-items: center; gap: .7rem; padding: .6rem .3rem .6rem .7rem; border-left: 3px solid var(--bc-accent); border-bottom: 1px solid rgba(255, 255, 255, .22); }
#bc-modal .bc-chosen li + li { margin-top: 1.5rem !important; }
.bc-chosen li + li::after { content: "VS"; position: absolute; left: 0; top: -1.3rem; font-size: .7rem; font-weight: 900; font-style: italic; color: var(--bc-mut-on); }
.bc-chosen-t { flex: 1; min-width: 0; font-weight: 600; overflow-wrap: anywhere; color: #fff; }
.bc-chosen-x { width: 2.2rem; height: 2.2rem; margin: 0; padding: 0; border: 0; background: none; color: var(--bc-mut-on); font-size: 1.4rem; cursor: pointer; }
.bc-chosen-x:hover { color: #fff; }
.bc-modal .bc-thumb { width: 2.6rem; height: 2.6rem; border-radius: 8px; background: rgba(255, 255, 255, .1); color: #fff; font-weight: 800; }
.bc-search { margin-top: 1.3rem; }
.bc-search[hidden] { display: none; }
#bc-modal #bc-q { width: 100%; height: auto; margin: 0; padding: .8rem .2rem; border: 0; border-bottom: 2px solid #fff; border-radius: 0; background: transparent; box-shadow: none; color: #fff; font: inherit; font-size: 1.05rem; }
#bc-modal #bc-q::placeholder { color: var(--bc-mut-on); }
.bc-modal-msg { min-height: 1.2rem; margin: .6rem 0; color: var(--bc-mut-on); font-size: .86rem; }
.bc-modal .bc-btn-go { display: flex; width: 100%; align-items: center; justify-content: center; margin: 0; padding: .9rem; border: 0; border-radius: 999px; background: var(--bc-cta-blue); color: #fff; font: inherit; font-size: 1.05rem; font-weight: 800; cursor: pointer; }
.bc-modal .bc-btn-go:hover { filter: brightness(1.1); }
.bc-modal .bc-btn-go[disabled] { opacity: .45; cursor: not-allowed; }
.bc-modal-k { margin: 1.5rem 0 .4rem; color: var(--bc-mut-on); font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.bc-modal-k:empty { display: none; }
.bc-results li { display: flex; align-items: center; gap: .8rem; padding: .6rem 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.bc-results .bc-thumb { width: 3rem; height: 3rem; }
.bc-res-t { flex: 1; min-width: 0; }
.bc-res-t b { display: block; overflow-wrap: anywhere; color: #fff; }
.bc-res-t small { color: var(--bc-mut-on); }
.bc-res-add { flex: none; margin: 0; padding: .45rem .8rem; border: 1.5px solid rgba(255, 255, 255, .6); border-radius: 999px; background: none; color: #fff; font: inherit; font-size: .82rem; font-weight: 700; cursor: pointer; }
.bc-res-add:hover { background: #fff; color: var(--bc-ink); }
.bc-empty { color: var(--bc-mut-on); }

/* ---------- Móvil ---------- */
@media (max-width: 760px) {
  .bc-wrap { padding: 0 14px; }
  .bc .bc-atf { padding: 1.1rem 0 1.8rem; }
  .bc-hero { margin-top: 1rem; }
  .bc-hmeta { flex-direction: column; gap: .5rem; }
  .bc .bc-amz { font-size: .86rem; padding: .45rem .65rem .45rem .85rem; }
  .bc-n3 .bc-amz-pre, .bc-n4 .bc-amz-pre, .bc-n5 .bc-amz-pre, .bc-n6 .bc-amz-pre { display: none; }
  /* Cabecera de comparativa: el botón se ajusta al ancho de su columna y nunca se monta sobre el vecino. */
  .bc-hmeta { width: 100%; }
  .bc-hcol .bc-amz { max-width: 100%; gap: .3rem; font-size: clamp(.66rem, 3.3vw, .8rem); padding: .38rem .5rem .38rem .65rem; }
  .bc-hcol .bc-amz-logo { width: 16px; height: 16px; }
  .bc-hcol .bc-ring { width: 50px; height: 50px; }
  .bc-hdiv { margin-left: 8px; margin-right: 8px; }
  /* Con 4 o más productos, la cabecera se desliza en horizontal. */
  .bc-n4 .bc-hero, .bc-n5 .bc-hero, .bc-n6 .bc-hero { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: .6rem; }
  .bc-n4 .bc-hcol, .bc-n5 .bc-hcol, .bc-n6 .bc-hcol { flex: 0 0 38%; scroll-snap-align: start; }
  .bc-shero { flex-direction: column; gap: .8rem; }
  .bc-shero .bc-himg { flex: none; width: 100%; height: 150px; }
  .bc-sinfo { flex: none; width: 100%; }
  .bc-gwrap { margin-top: 1.8rem; padding-top: 1.8rem; }
  .bc-glance { grid-template-columns: minmax(0, 1fr); }
  .bc .bc-rpill { font-size: .76rem; padding: .22rem .5rem; }
  .bc-ahead, .bc-frow { padding-left: 1rem; padding-right: 1rem; }
  .bc .bc-amore { margin-left: 1rem; }
  /* Dos productos: la etiqueta ocupa su propia línea y debajo van los dos valores y el margen. */
  .bc-n2 .bc-frow { grid-template-columns: minmax(0, 1fr) auto; }
  .bc-n2 .bc-fl { grid-column: 1 / -1; }
  .bc-n2 .bc-fhead .bc-fl { display: none; }
  .bc-solo .bc-frow { grid-template-columns: minmax(0, 1fr) auto; }
  .bc-solo .bc-fl { grid-column: 1 / -1; }
  .bc-solo .bc-fhead { display: none; }
  .bc-vsall .bc-track { width: 46px; }

  .bc-rec-head { align-items: flex-start; }
  .bc-area > summary { padding: .85rem .9rem; gap: .5rem; }
  .bc-area-t { font-size: .95rem; }
  .bc .bc-pill { font-size: .72rem; padding: .15rem .55rem; }
  .bc .bc-table { font-size: .86rem; }
  .bc .bc-table th, .bc .bc-table td { padding: .55rem .45rem; }
  .bc .bc-table th:first-child { padding-left: .9rem; }
  .bc .bc-table thead th { font-size: .76rem; line-height: 1.25; vertical-align: bottom; }
  .bc .bc-table tbody th { width: 40%; }
  .bc .bc-table tbody th small { display: none; }
  .bc .bc-table .bc-mg { display: none; }
  .bc-n3 .bc-table tbody th, .bc-n4 .bc-table tbody th, .bc-n5 .bc-table tbody th, .bc-n6 .bc-table tbody th { min-width: 8.4rem; position: sticky; left: 0; z-index: 1; background: var(--bc-card); box-shadow: 1px 0 0 var(--bc-line); }
  .bc-n3 .bc-table thead th:first-child, .bc-n4 .bc-table thead th:first-child, .bc-n5 .bc-table thead th:first-child, .bc-n6 .bc-table thead th:first-child { position: sticky; left: 0; z-index: 2; }
  .bc-n3 .bc-table td, .bc-n4 .bc-table td, .bc-n5 .bc-table td, .bc-n6 .bc-table td { min-width: 5.6rem; }

  .bc-cta-in { flex-direction: column; align-items: flex-start; }
  .bc-feat-act .bc-btn-line { padding: .85rem .9rem; }

  .bc-bar-in { gap: .5rem; padding-left: .6rem; padding-right: .6rem; }
  .bc-bar-vs { font-size: .7rem; }
  .bc-bar-n2 .bc-bar-item { flex: 1 1 0; flex-direction: column; gap: .2rem; text-align: center; }
  .bc-bar-n2 .bc-bar-img { display: none; }
  .bc-bar-n2 .bc-bar-name { max-width: 100%; font-size: .72rem; }
  .bc-bar-n2 .bc-amz-pre { display: none; }
  .bc-bar .bc-amz-s { font-size: .8rem; padding: .32rem .5rem .32rem .7rem; }
  .bc-bar-n1 .bc-bar-name { max-width: 9rem; }
  /* Tarjetas en móvil: tres a la vista; con más, se deslizan con el dedo. */
  .bc-bar-cards .bc-bar-in { gap: .4rem; padding-left: .45rem; padding-right: .45rem; scroll-snap-type: x mandatory; }
  .bc .bc-bar-card { flex: 0 0 calc((100% - .8rem) / 3); min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .1rem .35rem; padding: .35rem .45rem; border-radius: 14px; }
  .bc-bar-card .bc-ring { width: 28px; height: 28px; }
  .bc .bc-bar-card .bc-ring span { font-size: .62rem; }
  .bc-bar-card .bc-ring circle { stroke-width: 7; }
  .bc-bc-t { display: contents; }
  .bc-bar-card .bc-bar-name { align-self: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .7rem; }
  .bc-bc-go { grid-column: 1 / -1; text-align: center; font-size: .64rem; }
  .bc-fab { right: 12px; padding: .6rem .9rem; }
  .bc-modal { padding: 0; }
  .bc-modal-box { max-width: none; min-height: 100%; border-radius: 0; border: 0; padding: 1.1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .bc *, .bc-fab { transition: none !important; }
}
