/* ============================================================================
   SECCIÓN · trust  (tono claro)
   Banda corta y discreta de logos en marquee infinito. Respiro tras el hero.
   Sin rojo: el protagonismo es el contraste suave logo/fondo crema.
   Solo vars de tokens. Mobile-first.
   ============================================================================ */

/* La banda es un respiro: anula el ritmo grande de .section por uno contenido */
.sec-trust {
  padding-block: clamp(40px, 8vw, 64px);
  background: var(--bg-warm);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.sec-trust .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-6);
}

/* Microlabel — usa .eyebrow del sistema, aquí solo lo centra y suaviza el ancho */
.sec-trust__label {
  max-width: none;
  text-align: center;
  line-height: 1.5;
  color: var(--text-dim);
  margin: 0;
}
/* En pantallas anchas, en una sola línea */
@media (min-width: 640px) {
  .sec-trust__label { white-space: nowrap; }
}

/* Viewport con desvanecido lateral (full-bleed dentro del container) */
.sec-trust__viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 14%, #000 86%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 14%, #000 86%, transparent 100%);
}

.sec-trust__track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: clamp(14px, 2vw, 20px);
  padding-inline: clamp(18px, 4vw, 32px);
  animation: sec-trust-scroll 42s linear infinite;
  will-change: transform;
}

/* El marquee NO se para al pasar el ratón: sigue corriendo siempre. */

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

/* Cada logo en una CHIP blanca uniforme: todos nítidos y a color, sin importar
   su color o el fondo que traigan. Al pasar el ratón la chip se eleva (marquee no para). */
.sec-trust__item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  padding: 0 22px;
  min-width: 112px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.sec-trust__item img {
  display: block;
  width: auto;
  max-height: 30px;
  max-width: 130px;
  opacity: 0.92;
  filter: none;
  transition: opacity var(--dur) var(--ease);
}

.sec-trust__item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.sec-trust__item:hover img { opacity: 1; }

/* Logos en versión BLANCA (se perderían sobre blanco) → chip oscura para que luzcan */
.sec-trust__item:has(img[src*="gonzalo"]),
.sec-trust__item:has(img[src*="valdemar"]),
.sec-trust__item:has(img[src*="cct"]),
.sec-trust__item:has(img[src*="rotuldecor"]) {
  background: var(--c-ink);
  border-color: rgba(233, 225, 217, 0.14);
}

/* ---- Tablet ---- */
@media (min-width: 768px) {
  .sec-trust__item { height: 66px; padding: 0 26px; }
  .sec-trust__item img { max-height: 32px; max-width: 150px; }
}

/* ---- Desktop ---- */
@media (min-width: 1024px) {
  .sec-trust__item { height: 72px; padding: 0 30px; }
  .sec-trust__item img { max-height: 36px; max-width: 165px; }
}

/* Respeta a quien prefiere menos movimiento: corta el desplazamiento */
@media (prefers-reduced-motion: reduce) {
  .sec-trust__track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: clamp(28px, 5vw, 48px);
  }
  .sec-trust__viewport {
    -webkit-mask-image: none;
            mask-image: none;
  }
}
