/* ============================================
   07-TESTIMONIALS.CSS — Carrusel center-focus
   Card del centro grande + nítida.
   Cards laterales scale 0.85 + blur.
   ============================================ */

.section--testim {
  background: transparent;
  overflow: hidden;
}

/* Track: flexbox horizontal centrado */
.testim__carousel {
  position: relative;
  margin-top: var(--sp-10);
  padding: var(--sp-6) 0;
}

/* Track centrado, posicionamiento absoluto para overlapping */
.testim__track {
  position: relative;
  height: clamp(360px, 38vh, 440px);
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1400px;
}

/* === CARDS === */
.testim__card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(300px, 38vw, 480px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--sp-5);
  padding: var(--sp-8) var(--sp-6);
  background:
    linear-gradient(180deg, oklch(0.16 0.04 290 / 0.85), oklch(0.10 0.025 285 / 0.80));
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  /* Estado por defecto: oculta */
  translate: -50% -50%;
  transform: scale(0.5);
  opacity: 0;
  filter: blur(8px);
  pointer-events: none;
  transition:
    transform 800ms var(--ease-out),
    filter 800ms var(--ease-out),
    opacity 800ms var(--ease-out),
    box-shadow 800ms var(--ease-out),
    border-color 800ms var(--ease-out);
  will-change: transform, filter, opacity;
}

/* Card central — grande + nítida + glow */
.testim__card.is-center {
  transform: translateX(0) scale(1);
  opacity: 1;
  filter: blur(0);
  pointer-events: auto;
  z-index: 3;
  box-shadow:
    0 30px 80px -20px oklch(0.05 0.03 285 / 0.85),
    0 0 80px -20px var(--c-purple);
  border-color: oklch(0.62 0.24 295 / 0.55);
}

/* Card adyacente izquierda */
.testim__card.is-left {
  transform: translateX(-65%) scale(0.78);
  opacity: 0.45;
  filter: blur(3px);
  z-index: 2;
}

/* Card adyacente derecha */
.testim__card.is-right {
  transform: translateX(65%) scale(0.78);
  opacity: 0.45;
  filter: blur(3px);
  z-index: 2;
}

/* Cards lejanas — totalmente ocultas */
.testim__card.is-far {
  transform: scale(0.5);
  opacity: 0;
  filter: blur(10px);
  z-index: 1;
}

/* === QUOTE === */
.testim__quote {
  font-family: var(--f-display);
  font-size: var(--fs-md);
  line-height: var(--lh-snug);
  color: var(--c-white-soft);
  position: relative;
  padding-left: var(--sp-3);
  margin: 0;
}

.testim__quote::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--c-purple-glow), transparent);
}

.testim__card.is-center .testim__quote {
  font-size: var(--fs-lg);
}

/* === AUTHOR === */
.testim__author {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  border: 0;
  padding: 0;
}

.testim__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, var(--c-purple), var(--c-purple-deep));
  color: var(--c-white);
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: var(--fs-sm);
  letter-spacing: 0.05em;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 4px 20px -4px oklch(0.62 0.24 295 / 0.5);
}

.testim__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testim__author strong {
  display: block;
  font-family: var(--f-body);
  font-weight: 600;
  color: var(--c-white-soft);
  font-size: var(--fs-base);
}

.testim__author span {
  display: block;
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  color: var(--c-muted);
  letter-spacing: var(--tracking-wide);
  margin-top: 2px;
}

/* === CONTROLS === */
.testim__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-5);
  margin-top: var(--sp-8);
}

.testim__btn {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-pill);
  background: oklch(0.16 0.035 290 / 0.6);
  border: 1px solid var(--c-border);
  color: var(--c-white-soft);
  cursor: pointer;
  transition: all var(--dur-base) var(--ease-out);
  backdrop-filter: blur(6px);
}

.testim__btn:hover {
  background: var(--c-purple);
  border-color: var(--c-purple-glow);
  color: var(--c-white);
  box-shadow: 0 0 24px -2px var(--c-purple-glow);
  transform: scale(1.08);
}

.testim__btn svg {
  width: 18px;
  height: 18px;
}

.testim__dots {
  display: flex;
  gap: var(--sp-2);
}

.testim__dot {
  width: 8px;
  height: 8px;
  border-radius: var(--r-pill);
  background: var(--c-muted-deep);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: all var(--dur-base) var(--ease-out);
}

.testim__dot.is-active {
  width: 32px;
  background: var(--c-purple-glow);
  box-shadow: 0 0 12px var(--c-purple-glow);
}

/* === MOBILE === */
@media (max-width: 760px) {
  .testim__card {
    flex: 0 0 80vw;
    padding: var(--sp-6) var(--sp-5);
  }
}
