/* ==========================================================================
   FAIXA DE MARCAS — carrossel infinito de logos
   ========================================================================== */

.marcas {
  width: 100%; overflow: hidden; text-align: center; color: #fff;
  background: #101010; padding-block: clamp(42px, 5vw, 65px);
}
.marcas__etiqueta {
  margin: 0 16px 14px; color: #e21b2d;
  font-size: 10px; font-weight: 700; letter-spacing: 2px; line-height: 1.5;
}
.marcas__titulo {
  margin: 0 16px 14px; font-size: clamp(23px, 4vw, 36px); font-weight: 800; line-height: 1.2;
}
.marcas__descricao { margin: 0 20px 30px; color: #bdbdbd; font-size: 14px; line-height: 1.6; }

.marcas__faixa { position: relative; width: 100%; overflow: hidden; }
/* Degradê nas pontas: a cinta "entra e sai" suavemente */
.marcas__faixa::before, .marcas__faixa::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 35px; z-index: 2; pointer-events: none;
}
.marcas__faixa::before { left: 0;  background: linear-gradient(to right, #101010, transparent); }
.marcas__faixa::after  { right: 0; background: linear-gradient(to left,  #101010, transparent); }

/* Dois grupos idênticos: deslocar -50% faz o loop sem "pulo" */
.marcas__trilho { display: flex; width: max-content; animation: deslizar-marcas 35s linear infinite; will-change: transform; }
.marcas__faixa:hover .marcas__trilho { animation-play-state: paused; }
.marcas__grupo { display: flex; align-items: center; flex: 0 0 auto; gap: 32px; padding-right: 32px; }
.marcas__grupo img { width: 54px; height: 40px; object-fit: contain; opacity: .8; transition: opacity .25s; }
.marcas__grupo img:hover { opacity: 1; }

@keyframes deslizar-marcas { to { transform: translateX(-50%); } }

@media (min-width: 601px) {
  .marcas__etiqueta { font-size: 12px; letter-spacing: 3px; }
  .marcas__descricao { font-size: 15px; margin-bottom: 38px; }
}
@media (min-width: 768px) {
  .marcas__grupo { gap: 65px; padding-right: 65px; }
  .marcas__grupo img { width: 76px; height: 52px; }
}
@media (max-width: 380px) {
  .marcas__grupo { gap: 24px; padding-right: 24px; }
  .marcas__grupo img { width: 46px; height: 36px; }
}
@media (prefers-reduced-motion: reduce) { .marcas__trilho { animation: none; } }
