/* Logos section */
body.page-index {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background: var(--blanco);
  color: var(--negro);
}

#logos {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: var(--blanco);
  border-bottom: 1px solid #000;
  overflow: hidden;
  padding: 0;
  height: 500px;
  justify-content: flex-start;
}

#logos .cabecera01 {
  width: 100%;
  height: 300px;
  margin: 0;
  background-color: var(--accent1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 0 20px;
}

#logos .cabecera01 > img {
  width: clamp(42px, 5vw, 72px);
  height: clamp(42px, 5vw, 72px);
  object-fit: cover;
  display: block;
  margin-bottom: 28px;
}

#logos .titular-positivo {
  width: 100%;
  margin: 0;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 1.7rem;
  font-weight: 400;
  color: var(--negro);
}

#logos .titular-positivo b {
  font-weight: 800;
}

.logos-marquee {
  width: 100%;
  height: 200px;
  display: flex;
  overflow: hidden;
  position: relative;
  align-items: center;
  padding: 0;
  background: var(--blanco);
}

.logos-marquee::before,
.logos-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 12vw;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to right, rgba(255,255,255,1), rgba(255,255,255,0));
}

.logos-marquee::after {
  right: 0;
  transform: rotate(180deg);
}

.logos-marquee::before {
  left: 0;
}

.logos-track {
  display: flex;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 6rem);
  width: max-content;
  padding: 1.2rem 4vw;
  animation: logos-scroll 40s linear infinite;
  will-change: transform;
}

.logos-item {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logos-item img {
  height: 30px;
  width: auto;
  display: block;
  filter: grayscale(100%) contrast(1.1);
  opacity: .85;
  transition: transform .3s ease, filter .3s ease, opacity .3s ease;
}

.logos-item img:hover {
  filter: none;
  opacity: 1;
  transform: scale(1.05);
}

.logos-marquee:hover .logos-track {
  animation-play-state: paused;
}

@keyframes logos-scroll {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

@media (max-width: 900px) {
  #logos { min-height: auto; height: auto; }
  #logos .cabecera01 { padding: 12px 0 16px; }
  #logos .cabecera01 > img { margin-bottom: 14px; }
  #logos .titular-positivo { font-size: 1.2rem; padding: 0 16px; }
  .logos-marquee { height: 190px; }
  .logos-item img { height: 21.6px; }
}

@media (max-width: 700px) {
  #logos .titular-positivo {
    font-size: 1.2rem;
    padding: 0 16px;
    display: flex;
    flex-flow: column;
  }
  #logos > div.cabecera01 > img {
    width: 15vw !important;
    height: 15vw !important;
  }
  .logos-item img {
    height: 18px;
  }
}

@media (max-width: 690px) {
  #logos { min-height: 320px;height: 387px; }
  #logos .cabecera01 { height: 200px; }
  .logos-item img { height: 21px !important; }
}

@media (prefers-reduced-motion: reduce) {
  .logos-track { animation: none; }
  .logos-marquee::before,
  .logos-marquee::after { display: none; }
}
