.test{
  --ts-bg:#131f36;
  --ts-card:#1a2740;
  --ts-line:rgba(255,255,255,.08);
  --ts-accent:#5b73d6;
  --ts-text:#fff;
  --ts-gap:24px;
  --ts-visible:3;           /* tarjetas visibles en escritorio */
  background:var(--ts-bg);
  color:var(--ts-text);
  padding:clamp(56px,9vw,120px) 24px;
  overflow:hidden;
}
.test__inner{
  max-width:1200px;
  margin:0 auto;
}

/* Encabezado */
.test__head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:24px;
  margin-bottom:48px;
}
.test__eyebrow{
  margin:0 0 20px;
  font-family:'JetBrains Mono',monospace;
  font-weight:500;
  font-size:clamp(18px,2.4vw,30px);
  letter-spacing:.35em;
  text-transform:uppercase;
  color:var(--ts-accent);
}
.test__title{
  margin:0;
  max-width:460px;
  font-family:'Space Grotesk',sans-serif;
  font-weight:500;
  font-size:clamp(24px,3vw,36px);
  line-height:1.1;
  letter-spacing:-.02em;
}

/* Flechas */
.test__nav{
  display:flex;
  gap:12px;
  flex:none;
}
.test__btn{
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  border-radius:50%;
  border:1px solid var(--ts-line);
  background:rgba(255,255,255,.04);
  color:#fff;
  cursor:pointer;
  transition:background .25s ease, border-color .25s ease, transform .25s ease;
}
.test__btn svg{
  width:16px;
  height:16px;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.test__btn:hover,
.test__btn:focus-visible{
  background:var(--ts-accent);
  border-color:var(--ts-accent);
  transform:scale(1.06);
  outline:none;
}

/* Carrusel */
.test__viewport{
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  scroll-behavior:smooth;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
  cursor:grab;
  outline:none;
}
.test__viewport::-webkit-scrollbar{ display:none; }
.test__viewport.is-dragging{
  cursor:grabbing;
  scroll-snap-type:none;
  scroll-behavior:auto;
  user-select:none;
}

.test__track{
  display:flex;
  gap:var(--ts-gap);
  list-style:none;
  margin:0;
  padding:0;
}

/* Tarjeta */
.test__card{
  flex:0 0 calc((100% - var(--ts-gap) * (var(--ts-visible) - 1)) / var(--ts-visible));
  scroll-snap-align:start;
  display:flex;
  flex-direction:column;
  min-height:280px;
  padding:32px;
  background:var(--ts-card);
  border:1px solid var(--ts-line);
  border-radius:20px;
  transition:border-color .3s ease, transform .3s ease;
}
.test__card:hover{
  border-color:rgba(91,115,214,.45);
  transform:translateY(-4px);
}
.test__quote{
  width:26px;
  height:26px;
  fill:var(--ts-accent);
  margin-bottom:18px;
}
.test__text{
  margin:0 0 28px;
  font-family:'Inter',sans-serif;
  font-weight:400;
  font-size:14px;
  line-height:1.65;
  color:rgba(255,255,255,.75);
}
.test__name{
  margin:auto 0 0;
  padding-top:20px;
  border-top:1px solid var(--ts-line);
  font-family:'Inter',sans-serif;
  font-weight:700;
  font-size:13px;
}

/* Logo */
.test__logo{
  display:flex;
  justify-content:flex-end;
  margin-top:36px;
}
.test__logo img{
  width:min(240px,55%);
  height:auto;
}

/* Animación de entrada */
.test__head,
.test__viewport,
.test__logo{
  opacity:0;
  transform:translateY(24px);
  transition:opacity .7s ease, transform .7s ease;
}
.test.is-visible .test__head,
.test.is-visible .test__viewport,
.test.is-visible .test__logo{
  opacity:1;
  transform:none;
}
.test.is-visible .test__viewport{ transition-delay:.15s; }
.test.is-visible .test__logo{ transition-delay:.3s; }

/* Tablet: 2 tarjetas */
@media (max-width:980px){
  .test{ --ts-visible:2; }
}

/* Móvil: 1 tarjeta con un pedacito de la siguiente */
@media (max-width:640px){
  .test{
    --ts-visible:1;
    --ts-gap:16px;
    padding:56px 16px;
  }
  .test__head{
    flex-direction:column;
    align-items:flex-start;
    gap:20px;
    margin-bottom:32px;
  }
  .test__eyebrow{
    letter-spacing:.25em;
    margin-bottom:14px;
  }
  .test__card{
    flex-basis:86%;
    min-height:240px;
    padding:24px;
  }
  .test__logo{ justify-content:center; }
}

@media (prefers-reduced-motion:reduce){
  .test__head,.test__viewport,.test__logo{
    opacity:1;
    transform:none;
    transition:none;
  }
  .test__viewport{ scroll-behavior:auto; }
}