/* MUG4X4 v5 — correcciones prod ronda 1 (Pecher, 21/11/2026)
   Añadir DESPUÉS de v5.css / v5-wp.css. No toca el flujo del configurador.
   Archivos oficiales de logo: ver ../logos/FUENTES.txt
*/

/* ---------- 2 y 5. ARB sobre fondo claro + equilibrio óptico de logos ---------- */
/* Sacar la celda negra de ARB (clase .dk). El logo nuevo es la versión oficial para fondo claro. */
.br .dk,
.igrid .dk,
.mh .lg.v5-dk {
  background: transparent;
  color: inherit;
}

/* Home, tira de marcas (.br). Antes: max-height 52 / 130; Warn tenía un parche .w a 88 px
   porque el JPG 640×640 traía aire. Con warn_logo_transparente_sin_marco.png ya no hace falta. */
.br img {
  max-height: 48px;
  max-width: 150px;
  object-fit: contain;
}
.br .w img { max-height: 48px; } /* anula el 88 px anterior */
.br a[href*="/marca/rival/"] img,
.br a[href*="/marca/viair/"] img {
  max-height: 36px;
  max-width: 200px;
}
.br a[href*="/marca/warn/"] img {
  max-height: 52px;
  max-width: 140px;
}
.br a[href*="/marca/x-power/"] img {
  max-height: 52px;
  max-width: 140px;
}
/* Primera fila del índice (y las mismas marcas en la tira de la home):
   STRIKE, BACKSPACE, ARB y Old Man Emu, +22 % respecto de la ronda 1.
   El resto no se toca, para seguir equilibrados con RC / Warn / Rival. */
.br a[href*="/marca/strike/"] img,
.br a[href*="/marca/arb/"] img,
.br a[href*="/marca/old-man-emu/"] img {
  max-height: 58px;
  max-width: 185px;
}
.br a[href*="/marca/backspace/"] img {
  max-height: 44px;
  max-width: 245px;
}

/* Índice «Ver todas las marcas» (.igrid). Warn en vivo medía 64×64 px de lienzo (~30 px de tinta). */
.igrid img {
  max-height: 58px;
  max-width: 180px;
  object-fit: contain;
}
.igrid a[href*="/marca/rival/"] img,
.igrid a[href*="/marca/viair/"] img {
  max-height: 44px;
  max-width: 240px;
}
.igrid a[href*="/marca/warn/"] img,
.igrid a[href*="/marca/x-power/"] img {
  max-height: 64px;
  max-width: 180px;
}
.igrid a[href*="/marca/strike/"] img,
.igrid a[href*="/marca/arb/"] img,
.igrid a[href*="/marca/old-man-emu/"] img {
  max-height: 70px;
  max-width: 220px;
}
.igrid a[href*="/marca/backspace/"] img {
  max-height: 54px;
  max-width: 290px;
}

@media (max-width: 600px) {
  .br img { max-height: 34px; max-width: 100%; }
  .br .w img { max-height: 34px; }
  .br a[href*="/marca/rival/"] img,
  .br a[href*="/marca/viair/"] img { max-height: 28px; max-width: 100%; }
  .br a[href*="/marca/strike/"] img,
  .br a[href*="/marca/arb/"] img,
  .br a[href*="/marca/old-man-emu/"] img { max-height: 41px; max-width: 100%; }
  .br a[href*="/marca/backspace/"] img { max-height: 34px; max-width: 100%; }
  .igrid img { max-height: 48px; max-width: 100%; }
  .igrid a[href*="/marca/rival/"] img,
  .igrid a[href*="/marca/viair/"] img { max-height: 36px; }
  .igrid a[href*="/marca/strike/"] img,
  .igrid a[href*="/marca/arb/"] img,
  .igrid a[href*="/marca/old-man-emu/"] img { max-height: 58px; }
  .igrid a[href*="/marca/backspace/"] img { max-height: 44px; }
}

/* ---------- 12. Logo MUG4X4 del header un poco más grande ---------- */
/* Hoy en vivo: 34 px de alto (113×34) en una barra de 76 px; 26 px en mobile (barra 60 px).
   Propuesta: 48 px desktop (ancho auto ≈ 160 px) y 34 px mobile. El archivo oficial no cambia. */
.hd .lg img {
  height: 48px;
  width: auto;
}
.ft .g > div > img { height: 48px; } /* pie, a juego */
@media (max-width: 600px) {
  .hd .lg img { height: 34px; }
}

/* ---------- 13. Banda de marca de fondo, sutil, con el logo oficial ---------- */
/* Colocar .mug-band en la home (por ejemplo entre categorías y el pie, o al cierre de main)
   y, si se quiere, también sobre el pie. Opacidad baja; no es un titular. */
.mug-band {
  background: var(--al, #E9E9E4);
  height: 128px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: none;
  border-top: 1px solid var(--ln, #CBCBC3);
}
.mug-band img {
  height: 96px;
  width: auto;
  opacity: 0.08;
}

/* ---------- 15. Sacar el crédito «Foto: ARB (material oficial para distribuidores)» ---------- */
/* Desktop y mobile. Además, borrar el <span class="cred m">…</span> en
   template-mug4x4-home.php (dentro de .hp .hph) y en cualquier otra plantilla que lo copie
   (p. ej. el hero del selector, si está). */
.hp .cred,
.hp .hph .cred {
  display: none !important;
}
