/* =========================================================
   Maz Autopartes v2 — Home: "Compra por marcas"
   Sección: section.brand (grid de logos de marcas de auto)
   ========================================================= */

:root {
  --thm-base: #E85230;
  --thm-black: #0e1422;
  --thm-gray: #6b7280;
  --thm-border: #e5e7eb;
  --thm-white: #ffffff;
  --thm-radius: 10px;
}

.brand {
  background-color: #f5f6f9;
  padding: 60px 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.brand .auto-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.brand .row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin: 0;
  list-style: none;
}

.brand .common-section-title {
  grid-column: 1 / -1;
  margin-bottom: 8px;
}
.brand .section-title {
  display: flex; align-items: center; gap: 12px;
}
.brand .section-title img {
  width: 28px; height: auto;
}
.brand .section-title h4 {
  font-size: 22px; font-weight: 800; color: #1a1a1a; margin: 0;
  letter-spacing: -0.3px;
}

.brand .col-xl-2,
.brand .col-lg-3,
.brand .col-md-4,
.brand .col-sm-6 {
  padding: 0;
  width: auto;
  max-width: none;
  flex: none;
}

.brand .brand-container {
  background: #ffffff;
  border: 1px solid #eef0f4;
  border-radius: var(--thm-radius);
  height: 100%;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  overflow: hidden;
}
.brand .brand-container:hover {
  transform: translateY(-3px);
  border-color: var(--thm-base);
  box-shadow: 0 10px 22px rgba(15,24,37,.08);
}

.brand .brand-logo {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px 12px;
  min-height: 130px;
  text-decoration: none;
  text-align: center;
}
.brand .brand-logo a {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
  width: 100%; height: 100%;
  text-decoration: none;
}
.brand .brand-logo img {
  display: block;
  max-width: 100%;
  max-height: 56px;
  width: auto; height: auto;
  object-fit: contain;
  filter: none !important;
  opacity: 1 !important;
  transition: transform .2s ease;
}
.brand .brand-container:hover .brand-logo img {
  transform: scale(1.06);
}
.brand .brand-logo span {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: #4a5366;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color .15s ease;
}
.brand .brand-container:hover .brand-logo span {
  color: var(--thm-base);
}
.brand .brand-logo img[src*="sin-imagen"] {
  opacity: 0.5 !important;
  max-height: 44px;
}

@media (max-width: 1199.98px) {
  .brand .row { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 767.98px) {
  .brand { padding: 40px 0; }
  .brand .row { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .brand .brand-logo { min-height: 110px; padding: 14px 8px; }
  .brand .brand-logo img { max-height: 44px; }
}
@media (max-width: 480px) {
  .brand .row { grid-template-columns: repeat(2, 1fr); }
}
