/* =========================================================================
   Border Collie Tech — hoja de estilos unica
   Organizada por secciones. Sin preprocesador, sin framework.
   ========================================================================= */

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
  --bg:          #090b0f;
  --bg-2:        #0e1219;
  --surface:     #141922;
  --surface-2:   #1b2230;
  --surface-3:   #232c3c;
  --line:        rgba(255, 255, 255, .085);
  --line-2:      rgba(255, 255, 255, .16);

  --ink:         #f3f6fa;
  --ink-2:       #a9b4c3;
  --ink-3:       #6d7889;

  --lime:        #c9f24d;
  --lime-dim:    #a8cf35;
  --lime-ink:    #0a0f04;
  --orange:      #ff7d3b;
  --orange-ink:  #1a0a02;
  --danger:      #ff6b6b;
  --ok:          #57d98a;
  --warn:        #ffc14d;

  --radius:      16px;
  --radius-sm:   10px;
  --radius-lg:   24px;

  --shadow:      0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
  --shadow-lg:   0 2px 4px rgba(0,0,0,.4), 0 24px 60px rgba(0,0,0,.55);
  --glow:        0 0 0 1px rgba(201,242,77,.45), 0 12px 40px rgba(201,242,77,.14);

  --ease:        cubic-bezier(.22, .61, .36, 1);
  --ease-out:    cubic-bezier(.16, 1, .3, 1);

  --maxw:        1200px;
  --gutter:      clamp(16px, 4vw, 40px);

  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body:    "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
}

/* ---------- 2. Reset ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -.022em;
  margin: 0 0 .5em;
  font-weight: 700;
}
h1 { font-size: clamp(2.1rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); }
p  { margin: 0 0 1.1em; color: var(--ink-2); }
p strong, li strong { color: var(--ink); font-weight: 600; }

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--lime); color: var(--lime-ink); }

/* Gotcha E.1 — todo SVG en linea lleva medida explicita en su contexto */
svg { flex: none; }
.btn svg, .nav a svg, .chip svg, .card h3 svg, .pc-col h3 svg, .pc-col li svg,
.meta svg, .badge svg, .foot svg, .bloque-cta svg, .spec-row svg, .verdict svg,
.faq summary svg, .alert svg, .stat svg, .crumb svg {
  width: 1.1em; height: 1.1em;
}

/* ---------- 3. Utilidades ------------------------------------------------ */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 820px; }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-tight { padding-block: clamp(36px, 5vw, 64px); }
/* La primera seccion tras el hero arranca antes: los bloques son lo importante */
.hero + .section { padding-top: clamp(34px, 4vw, 52px); }
.center { text-align: center; }
.stack > * + * { margin-top: 1rem; }
.muted { color: var(--ink-3); }
.nowrap { white-space: nowrap; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.kicker {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-display);
  font-size: .74rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--lime);
}
.kicker::before {
  content: ""; width: 26px; height: 2px; background: var(--lime); border-radius: 2px;
}

.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p { font-size: 1.05rem; }

.grid { display: grid; gap: clamp(16px, 2.2vw, 26px); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* ---------- 4. Botones --------------------------------------------------- */
.btn {
  --btn-bg: var(--surface-2);
  --btn-ink: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .78em 1.35em;
  background: var(--btn-bg); color: var(--btn-ink);
  border: 1px solid var(--line-2); border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: .93rem;
  letter-spacing: -.01em; cursor: pointer;
  transition: transform .22s var(--ease-out), box-shadow .22s var(--ease-out),
              background-color .22s var(--ease), border-color .22s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }

.btn-primary { --btn-bg: var(--lime); --btn-ink: var(--lime-ink); border-color: transparent; font-weight: 700; }
.btn-primary:hover { --btn-bg: #d6ff5e; box-shadow: var(--glow); }

.btn-amazon { --btn-bg: var(--orange); --btn-ink: var(--orange-ink); border-color: transparent; font-weight: 700; }
.btn-amazon:hover { --btn-bg: #ff9057; box-shadow: 0 0 0 1px rgba(255,125,59,.5), 0 12px 40px rgba(255,125,59,.22); }

.btn-ghost { --btn-bg: transparent; border-color: var(--line-2); }
.btn-ghost:hover { --btn-bg: var(--surface-2); border-color: var(--lime); }

.btn-sm { padding: .55em 1em; font-size: .84rem; }
.btn-block { display: flex; width: 100%; }

/* ---------- 5. Cabecera / navegacion ------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(9, 11, 15, .82);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 1.4rem; height: 68px; }

.brand { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 700; letter-spacing: -.03em; font-size: 1.06rem; }
.brand-logo { width: auto; height: 34px; flex: none; }
.brand-name { line-height: 1.1; }
.brand-dim { color: var(--ink-3); font-weight: 500; }
.site-footer .brand-logo { height: 40px; }

.nav-links { display: flex; align-items: center; gap: .3rem; margin-left: auto; }
.nav-links a {
  padding: .5em .82em; border-radius: 999px;
  font-size: .9rem; font-weight: 500; color: var(--ink-2);
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav-links a:hover { color: var(--ink); background: var(--surface-2); }
.nav-links a[aria-current="page"] { color: var(--lime); }

/* Gotcha E.2 — el CTA dentro de .nav-links debe re-afirmar sus colores */
.nav-links a.nav-cta,
.nav-links a.nav-cta:hover {
  background: var(--lime); color: var(--lime-ink);
  font-weight: 700; padding-inline: 1.05em;
}
.nav-links a.nav-cta:hover { box-shadow: var(--glow); }

.nav-toggle { display: none; background: none; border: 1px solid var(--line-2); border-radius: 10px; padding: .45em .6em; cursor: pointer; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .nav-links {
    position: fixed; inset: 68px 0 auto; margin: 0;
    flex-direction: column; align-items: stretch; gap: .2rem;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    padding: 1rem var(--gutter) 1.4rem;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .22s var(--ease), transform .22s var(--ease-out);
  }
  .nav-links.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { padding: .8em 1em; border-radius: 12px; }
  .nav-links a.nav-cta { text-align: center; justify-content: center; margin-top: .4rem; }
}

/* ---------- 6. Hero ------------------------------------------------------ */
.hero { position: relative; overflow: hidden; padding-block: clamp(36px, 5vw, 58px); }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 46% 40%; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(96deg, var(--bg) 5%, rgba(9,11,15,.93) 36%, rgba(9,11,15,.55) 68%, rgba(9,11,15,.72) 100%),
    linear-gradient(to top, var(--bg) 1%, transparent 48%);
}
/* En escritorio la foto ocupa la franja derecha: asi el perro se recorta
   horizontalmente y queda visible en lugar de esconderse tras el degradado.
   El bloque va DESPUES de las reglas base para que gane en cascada. */
/* .hero-inner es .wrap: conserva su max-width y su centrado. El ancho del
   texto se limita en los hijos, nunca en el contenedor, o se descuadra. */
.hero-inner { position: relative; z-index: 1; }
.hero h1 { margin-top: .45rem; margin-bottom: .5rem; max-width: 15ch; font-size: clamp(1.9rem, 4.4vw, 3.2rem); }
.hero h1 .hl {
  background: linear-gradient(96deg, var(--lime) 20%, var(--orange) 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: clamp(.98rem, 1.4vw, 1.1rem); max-width: 46ch; color: var(--ink-2); margin-bottom: 0; }

/* Las metricas ya no viven en el hero: acompanan al bloque "sobre". */
.hero-stats { display: flex; flex-wrap: wrap; gap: clamp(20px, 4vw, 44px); margin-top: 1.8rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.stat-v { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; color: var(--lime); line-height: 1; }
.stat-l { font-size: .8rem; color: var(--ink-3); margin-top: .35rem; letter-spacing: .01em; }

@media (min-width: 1000px) {
  .hero { min-height: 330px; display: flex; align-items: center; }
  /* La foto ocupa la franja derecha y se desvanece con una mascara sobre la
     propia imagen: asi no puede quedar una costura entre foto y fondo. */
  .hero-bg { left: 26%; }
  .hero-bg img {
    object-position: 50% 38%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.25) 18%, rgba(0,0,0,.75) 42%, #000 62%);
            mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.25) 18%, rgba(0,0,0,.75) 42%, #000 62%);
  }
  .hero-bg::after {
    background:
      linear-gradient(90deg, rgba(9,11,15,.72) 0%, rgba(9,11,15,.34) 34%, rgba(9,11,15,.08) 62%, transparent 80%),
      linear-gradient(to top, var(--bg) 0%, transparent 34%);
  }
  .hero h1 { max-width: 12ch; }
  .hero-sub { max-width: 34ch; }
}

/* ---------- 7. Bloques (hub de 4 categorias) ----------------------------- */
/* Son CUATRO bloques fijos: rejilla 2x2 explicita, nunca auto-fit (que dejaba
   un 3+1 descuadrado segun el ancho de la ventana). */
.bloques { display: grid; gap: clamp(14px, 1.8vw, 22px); grid-template-columns: 1fr; }
@media (min-width: 700px) { .bloques { grid-template-columns: repeat(2, 1fr); } }

.bloque {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: clamp(300px, 27vw, 380px);
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); background: var(--surface);
  isolation: isolate;
  transition: transform .34s var(--ease-out), box-shadow .34s var(--ease-out), border-color .34s var(--ease);
  will-change: transform;
}
.bloque:hover { transform: translateY(-7px); border-color: rgba(201,242,77,.45); box-shadow: var(--shadow-lg); }

.bloque-img { position: absolute; inset: 0; z-index: -2; }
.bloque-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out), filter .4s var(--ease); filter: saturate(.82) contrast(1.03); }
.bloque:hover .bloque-img img { transform: scale(1.07); filter: saturate(1) contrast(1.05); }
.bloque::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(9,11,15,.97) 16%, rgba(9,11,15,.78) 46%, rgba(9,11,15,.24) 100%);
}

.bloque-num {
  position: absolute; top: 16px; left: 18px;
  font-family: var(--font-display); font-size: .74rem; font-weight: 700;
  letter-spacing: .12em; color: var(--ink-2);
  border: 1px solid var(--line-2); border-radius: 999px;
  padding: .3em .8em; background: rgba(9,11,15,.6);
  backdrop-filter: blur(6px);
}
.bloque-body { padding: clamp(18px, 2.4vw, 26px); }
.bloque-claim { font-size: .8rem; color: var(--lime); font-weight: 600; margin-bottom: .35rem; }
.bloque h3 { margin-bottom: .4rem; font-size: clamp(1.2rem, 1.9vw, 1.5rem); }
.bloque p { font-size: .91rem; margin-bottom: 1rem; color: var(--ink-2); }
.bloque-cta { display: inline-flex; align-items: center; gap: .45em; font-family: var(--font-display); font-weight: 600; font-size: .9rem; color: var(--ink); }
.bloque-cta svg { transition: transform .28s var(--ease-out); }
.bloque:hover .bloque-cta svg { transform: translateX(5px); }
.bloque-cta.is-soon { color: var(--ink-3); }

.pill-soon {
  position: absolute; top: 16px; right: 18px;
  font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  background: var(--surface-3); color: var(--ink-2);
  border: 1px solid var(--line-2); border-radius: 999px; padding: .32em .8em;
}
.bloque-link { position: absolute; inset: 0; z-index: 3; }
.bloque-count {
  display: block; margin-top: .55rem;
  font-size: .74rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--lime); font-weight: 600;
}

/* ---------- 7b. Tarjetas de acceso (comparadores / guias) ---------------- */
.cta-duo { display: grid; gap: clamp(14px, 1.8vw, 20px); grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.cta-card {
  display: flex; align-items: center; gap: 1rem;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.3rem 1.5rem;
  transition: transform .28s var(--ease-out), border-color .28s var(--ease), box-shadow .28s var(--ease-out);
}
.cta-card:hover { transform: translateY(-4px); border-color: rgba(201,242,77,.42); box-shadow: var(--shadow); }
.cta-card strong { display: block; font-family: var(--font-display); font-size: 1.08rem; margin-bottom: .2rem; }
.cta-card > span:not(.cta-ico) { color: var(--ink-2); font-size: .92rem; line-height: 1.5; }
.cta-card > svg:last-child { margin-left: auto; color: var(--lime); width: 1.2em; height: 1.2em; }
.cta-ico {
  flex: none; width: 44px; height: 44px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--line-2);
  display: grid; place-items: center; color: var(--lime);
}
.cta-ico svg { width: 1.3em; height: 1.3em; }

/* enlaces rapidos entre comparadores de bloques */
.otros-cmp { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 2rem; font-size: .88rem; }
.chip-link {
  display: inline-flex; align-items: center;
  padding: .38em .9em; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line-2);
  font-size: .84rem; font-weight: 500;
  transition: border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease-out);
}
.chip-link:hover { border-color: var(--lime); color: var(--lime); transform: translateY(-2px); }
.chip-link.is-soon { color: var(--ink-3); border-style: dashed; }

/* ---------- 7c. Bloque "sobre" de la home -------------------------------- */
.sobre {
  display: grid; gap: 0; grid-template-columns: 1fr;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
}
@media (min-width: 900px) { .sobre { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); } }
.sobre-img { position: relative; min-height: 240px; }
.sobre-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sobre-txt { padding: clamp(24px, 3.4vw, 44px); }
.sobre-txt h2 { margin-top: .4rem; }
.sobre-txt p { font-size: .98rem; }

/* ---------- 8. Tarjetas genericas ---------------------------------------- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(20px, 2.4vw, 30px);
  transition: transform .3s var(--ease-out), border-color .3s var(--ease), box-shadow .3s var(--ease-out);
}
.card-hover:hover { transform: translateY(-5px); border-color: var(--line-2); box-shadow: var(--shadow); }
.card h3 { display: flex; align-items: center; gap: .5em; }

.alert {
  display: flex; gap: .85rem; align-items: flex-start;
  border-radius: var(--radius); padding: 1rem 1.15rem;
  border: 1px solid var(--line-2); background: var(--surface-2);
  font-size: .92rem; color: var(--ink-2);
}
.alert strong { color: var(--ink); }
.alert svg { margin-top: .18em; }
.alert-warn { border-color: rgba(255,193,77,.4); background: rgba(255,193,77,.07); }
.alert-warn svg { color: var(--warn); }
.alert-danger { border-color: rgba(255,107,107,.42); background: rgba(255,107,107,.08); }
.alert-danger svg { color: var(--danger); }
.alert-info svg { color: var(--lime); }

/* ---------- 9. Producto: tarjeta ----------------------------------------- */
.prod-grid { display: grid; gap: clamp(16px, 2vw, 24px); grid-template-columns: repeat(auto-fit, minmax(292px, 1fr)); }

.prod-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .3s var(--ease-out), border-color .3s var(--ease), box-shadow .3s var(--ease-out);
}
.prod-card:hover { transform: translateY(-6px); border-color: rgba(201,242,77,.4); box-shadow: var(--shadow-lg); }

.prod-media { position: relative; aspect-ratio: 4/3; background: #fff; overflow: hidden; }
.prod-media img { width: 100%; height: 100%; object-fit: contain; padding: 12px; transition: transform .5s var(--ease-out); }
.prod-card:hover .prod-media img { transform: scale(1.05); }

.prod-flag {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  font-size: .68rem; font-weight: 700; letter-spacing: .04em;
  padding: .35em .75em; border-radius: 999px;
  background: var(--lime); color: var(--lime-ink);
  box-shadow: 0 4px 14px rgba(0,0,0,.3);
}
.prod-flag.is-warn { background: var(--danger); color: #fff; }
.prod-flag.is-neutral { background: var(--surface-3); color: var(--ink); }

.prod-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; gap: .7rem; }
.prod-top { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.prod-cat {
  font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700;
  color: var(--lime); border: 1px solid rgba(201,242,77,.35); border-radius: 999px;
  padding: .22em .65em; transition: background-color .2s var(--ease);
}
.prod-cat:hover { background: rgba(201,242,77,.12); }
.prod-brand { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.prod-name { font-family: var(--font-display); font-size: 1.03rem; font-weight: 600; line-height: 1.3; margin: 0; }
.prod-name a:hover { color: var(--lime); }

.rating { display: inline-flex; align-items: center; gap: .4em; font-size: .84rem; color: var(--ink-2); }
.stars { position: relative; display: inline-block; font-size: .95rem; letter-spacing: .08em; line-height: 1; color: var(--surface-3); }
.stars::before { content: "\2605\2605\2605\2605\2605"; }
.stars-on { position: absolute; inset: 0; overflow: hidden; color: var(--warn); white-space: nowrap; }
.stars-on::before { content: "\2605\2605\2605\2605\2605"; }

.prod-chips { display: flex; flex-wrap: wrap; gap: .38rem; }
.chip {
  display: inline-flex; align-items: center; gap: .35em;
  font-size: .76rem; padding: .3em .7em; border-radius: 8px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2);
}
.chip-good { border-color: rgba(87,217,138,.35); color: #9fe8bd; }
.chip-bad  { border-color: rgba(255,107,107,.4); color: #ffb0b0; }

.price-row { display: flex; align-items: baseline; gap: .5rem; margin-top: auto; }
.price { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.price-old { font-size: .92rem; color: var(--ink-3); text-decoration: line-through; }
.price-note { font-size: .72rem; color: var(--ink-3); }

.prod-actions { display: grid; gap: .5rem; grid-template-columns: 1fr auto; align-items: center; }

/* ---------- 10. Tabla de especificaciones -------------------------------- */
.spec-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.spec-table caption { text-align: left; color: var(--ink-3); font-size: .82rem; padding-bottom: .7rem; }
.spec-table th, .spec-table td { padding: .72rem .85rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec-table th { color: var(--ink-2); font-weight: 500; width: 46%; }
.spec-table td { color: var(--ink); font-weight: 500; }
.spec-table tr:hover td, .spec-table tr:hover th { background: rgba(255,255,255,.022); }
.spec-group th {
  font-family: var(--font-display); font-size: .74rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--lime); padding-top: 1.5rem; border-bottom-color: var(--line-2);
}
.na { color: var(--ink-3); }
.src-mark {
  font-size: .62em; vertical-align: super; color: var(--lime);
  margin-left: .18em; font-weight: 700; cursor: help;
}

/* ---------- 11. Radar ---------------------------------------------------- */
.radar-wrap { display: grid; gap: 1.2rem; }
.radar-box { position: relative; width: 100%; max-width: 460px; margin-inline: auto; }
.radar-box svg { width: 100%; height: auto; overflow: visible; }
.radar-grid { fill: none; stroke: var(--line-2); stroke-width: 1; }
.radar-spoke { stroke: var(--line); stroke-width: 1; }
.radar-label { font-family: var(--font-display); font-size: 11px; font-weight: 600; fill: var(--ink-2); }
.radar-label.is-empty { fill: var(--ink-3); font-style: italic; }
.radar-tick { font-size: 9px; fill: var(--ink-3); }
.radar-area { fill-opacity: .19; stroke-width: 2.2; stroke-linejoin: round; transition: fill-opacity .3s var(--ease); }
.radar-dot { r: 3.4; stroke: var(--bg); stroke-width: 1.6; }
.radar-dot.is-null { r: 3; fill: none; stroke-dasharray: 2 2; }

.radar-legend { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; }
.radar-legend-item { display: inline-flex; align-items: center; gap: .45em; font-size: .84rem; color: var(--ink-2); }
.radar-swatch { width: 12px; height: 12px; border-radius: 4px; flex: none; }

.score-list { display: grid; gap: .55rem; }
.score-row { display: grid; grid-template-columns: minmax(112px, 1fr) 2fr auto; gap: .8rem; align-items: center; font-size: .87rem; }
.score-bar { height: 7px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.score-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--lime-dim), var(--lime)); width: 0; transition: width .9s var(--ease-out); }
.score-val { font-family: var(--font-display); font-weight: 700; min-width: 2.4em; text-align: right; }
.score-row.is-null .score-val { color: var(--ink-3); font-weight: 500; }
.score-row.is-null .score-bar { background: repeating-linear-gradient(105deg, var(--surface-2) 0 6px, transparent 6px 12px); }

/* ---------- 12. Comparador ----------------------------------------------- */
.cmp { display: grid; gap: 1.6rem; }

/* Gotcha E.3 — sin ancestro que recorte: los badges sobresalen */
.cmp-slots { display: flex; flex-wrap: wrap; gap: .8rem; overflow: visible; padding: 10px 10px 0 0; }
.cmp-slot-wrap { position: relative; overflow: visible; }
.cmp-slot {
  display: flex; align-items: center; gap: .6rem;
  background: var(--surface); border: 1px solid var(--line-2);
  border-radius: 14px; padding: .5rem .9rem .5rem .5rem; min-width: 190px;
  transition: border-color .25s var(--ease);
}
.cmp-slot.is-on { border-color: var(--lime); }
.cmp-thumb { width: 42px; height: 42px; border-radius: 9px; overflow: hidden; background: #fff; flex: none; }
.cmp-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.cmp-slot-name { font-size: .8rem; font-weight: 600; line-height: 1.25; }
.cmp-slot-brand { font-size: .68rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; }
.cmp-remove {
  position: absolute; top: -8px; right: -8px; z-index: 4;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--danger); color: #fff; border: 2px solid var(--bg);
  display: grid; place-items: center; cursor: pointer;
  font-size: 12px; line-height: 1; padding: 0;
  transition: transform .2s var(--ease-out);
}
.cmp-remove:hover { transform: scale(1.15); }

.cmp-picker { display: flex; flex-wrap: wrap; gap: .5rem; }
.cmp-toggle {
  display: inline-flex; align-items: center; gap: .5em;
  background: var(--surface); border: 1px solid var(--line-2);
  border-radius: 999px; padding: .45em 1em; cursor: pointer;
  font-size: .86rem; font-weight: 500;
  transition: border-color .22s var(--ease), background-color .22s var(--ease), transform .22s var(--ease-out);
}
.cmp-toggle:hover { transform: translateY(-2px); border-color: var(--line-2); background: var(--surface-2); }
.cmp-toggle[aria-pressed="true"] { background: var(--lime); color: var(--lime-ink); border-color: transparent; font-weight: 700; }
.cmp-toggle .tick { width: 15px; height: 15px; border-radius: 5px; border: 1.5px solid var(--line-2); display: grid; place-items: center; flex: none; }
.cmp-toggle[aria-pressed="true"] .tick { background: var(--lime-ink); border-color: var(--lime-ink); color: var(--lime); }

.cmp-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.cmp-table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 560px; }
.cmp-table th, .cmp-table td { padding: .8rem .95rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.cmp-table thead th { position: sticky; top: 0; background: var(--surface-2); z-index: 2; }
.cmp-table tbody th { color: var(--ink-2); font-weight: 500; width: 200px; }
.cmp-table td { color: var(--ink); }
.cmp-table .is-best { background: rgba(201,242,77,.1); color: var(--lime); font-weight: 700; position: relative; }
.cmp-table .is-best::after { content: "\2713"; margin-left: .45em; font-size: .85em; }
.cmp-table .row-group th {
  font-family: var(--font-display); font-size: .72rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--lime); background: var(--surface-2);
}
.cmp-head-prod { display: grid; gap: .5rem; min-width: 150px; }
.cmp-head-prod img { width: 62px; height: 62px; object-fit: contain; background: #fff; border-radius: 9px; padding: 4px; }
.cmp-head-name { font-family: var(--font-display); font-size: .88rem; font-weight: 600; line-height: 1.25; }

.cmp-empty { padding: 2.4rem 1.4rem; text-align: center; color: var(--ink-3); }

/* ---------- 13. Ficha ---------------------------------------------------- */
.ficha-top { display: grid; gap: clamp(24px, 3.4vw, 46px); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .ficha-top { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: start; } }

.gallery { display: grid; gap: .7rem; }
.gallery-main { aspect-ratio: 1/1; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: 18px; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: .5rem; }
.gallery-thumb {
  aspect-ratio: 1/1; background: #fff; border-radius: 9px; overflow: hidden;
  border: 2px solid transparent; cursor: pointer; padding: 0;
  transition: border-color .2s var(--ease), transform .2s var(--ease-out);
}
.gallery-thumb:hover { transform: translateY(-2px); }
.gallery-thumb[aria-current="true"] { border-color: var(--lime); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }

.ficha-head h1 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
.ficha-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem; margin-bottom: 1rem; }
.buy-box {
  background: var(--surface); border: 1px solid var(--line-2);
  border-radius: var(--radius); padding: 1.2rem; display: grid; gap: .8rem; margin-block: 1.4rem;
}

.verdict { display: flex; gap: .8rem; align-items: flex-start; border-radius: var(--radius); padding: 1rem 1.15rem; border: 1px solid; font-size: .94rem; }
.verdict strong { display: block; font-family: var(--font-display); margin-bottom: .18rem; }
.verdict-ok   { border-color: rgba(87,217,138,.4);  background: rgba(87,217,138,.08); }
.verdict-ok svg { color: var(--ok); }
.verdict-warn { border-color: rgba(255,193,77,.4);  background: rgba(255,193,77,.08); }
.verdict-warn svg { color: var(--warn); }
.verdict-no   { border-color: rgba(255,107,107,.45); background: rgba(255,107,107,.09); }
.verdict-no svg { color: var(--danger); }

.pc { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.pc-col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; }
.pc-col h3 { font-size: 1rem; margin-bottom: .9rem; }
.pc-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.pc-col li { display: flex; gap: .6em; align-items: flex-start; font-size: .91rem; color: var(--ink-2); line-height: 1.5; }
.pc-pros h3 svg, .pc-pros li svg { color: var(--ok); }
.pc-cons h3 svg, .pc-cons li svg { color: var(--danger); }
.pc-col li svg { margin-top: .25em; }

.prose { max-width: 74ch; }
.prose p { font-size: 1.02rem; line-height: 1.75; }
.prose h2 { margin-top: 2.2em; }

.ideal { border-left: 3px solid var(--lime); padding: .3rem 0 .3rem 1.1rem; margin-block: 1.4rem; }
.ideal-label { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--lime); font-weight: 700; }

/* ---------- 14. Pestanas -------------------------------------------------- */
.tabs { display: grid; gap: 1.5rem; }
.tablist { position: relative; display: flex; flex-wrap: wrap; gap: .3rem; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: .32rem; width: fit-content; max-width: 100%; }
.tab {
  position: relative; z-index: 1; border: 0; background: none; cursor: pointer;
  padding: .58em 1.15em; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: .88rem; color: var(--ink-2);
  transition: color .28s var(--ease);
}
.tab[aria-selected="true"] { color: var(--lime-ink); }
.tab-ind {
  position: absolute; z-index: 0; top: .32rem; bottom: .32rem; left: 0;
  background: var(--lime); border-radius: 999px;
  transition: transform .42s var(--ease-out), width .42s var(--ease-out);
  will-change: transform, width;
}
.tabpanel[hidden] { display: none; }
.tabpanel { animation: fadeUp .4s var(--ease-out) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- 15. FAQ ------------------------------------------------------ */
.faq { display: grid; gap: .65rem; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; transition: border-color .25s var(--ease); }
.faq details[open] { border-color: var(--line-2); }
.faq summary {
  display: flex; align-items: center; gap: .7rem; cursor: pointer; list-style: none;
  padding: 1rem 1.2rem; font-family: var(--font-display); font-weight: 600; font-size: .98rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; margin-left: auto; font-size: 1.3rem; color: var(--lime); line-height: 1;
  transition: transform .28s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq-a { padding: 0 1.2rem 1.15rem; color: var(--ink-2); font-size: .94rem; line-height: 1.7; }

/* ---------- 16. Banda CTA ------------------------------------------------ */
.band { position: relative; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--line); }
.band-bg { position: absolute; inset: 0; z-index: 0; }
.band-bg img { width: 100%; height: 100%; object-fit: cover; }
.band-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(94deg, rgba(9,11,15,.96) 26%, rgba(9,11,15,.55) 100%); }
.band-inner { position: relative; z-index: 1; padding: clamp(30px, 5vw, 62px); max-width: 640px; }

/* ---------- 17. Migas ---------------------------------------------------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; font-size: .82rem; color: var(--ink-3); padding-top: 1.6rem; }
.crumbs a:hover { color: var(--lime); }
.crumbs .sep { opacity: .5; }

/* ---------- 18. Pie ------------------------------------------------------ */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); margin-top: clamp(60px, 8vw, 110px); }
.foot-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); padding-block: clamp(36px, 5vw, 60px); }
.foot h4 { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .9rem; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.foot a { font-size: .9rem; color: var(--ink-2); }
.foot a:hover { color: var(--lime); }
.foot-legal { border-top: 1px solid var(--line); padding-block: 1.4rem 2.2rem; font-size: .8rem; color: var(--ink-3); display: grid; gap: .6rem; }
.disclosure { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .85rem 1.05rem; font-size: .82rem; color: var(--ink-2); }

/* ---------- 19. Animacion de entrada ------------------------------------- */
/* Gotcha A.2 — micro-interacciones nunca se desactivan por reduced-motion */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .62s var(--ease-out), transform .62s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
.js-off .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  /* solo lo intrusivo */
  .bloque-img img { transition: none; }
  .bloque:hover .bloque-img img { transform: none; }
}

/* ---------- 20. Responsive ----------------------------------------------- */
@media (max-width: 640px) {
  .gallery-thumbs { grid-template-columns: repeat(4, 1fr); }
  .score-row { grid-template-columns: 1fr auto; }
  .score-row .score-bar { grid-column: 1 / -1; }
  .cmp-table tbody th { width: 140px; }
  .hero-stats { gap: 22px; }
}
