/* ═══════════════════════════════════════════════
   TESTIMONIOS — LABRIEGO
   Layout: frase fija izquierda · tarjeta rotante derecha
═══════════════════════════════════════════════ */

#testimonios {
  background: #0D0D0D;
  padding: 120px 0;
  color: #FFFFFF;
}

.test-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  align-items: center;
}

/* ── Izquierda ────────────────────────────────── */
.test-eyebrow {
  display: block;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--coral);
  font-weight: 700;
  margin-bottom: 28px;
}

.test-title {
  font-size: 54px;
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -2px;
  color: #FFFFFF;
  margin-bottom: 56px;
  position: relative;
}

.test-title::before {
  content: '';
  display: block;
  width: 36px;
  height: 3px;
  background: var(--coral);
  margin-bottom: 28px;
}

.test-highlight {
  color: var(--coral);
  font-style: italic;
}

/* Dots de navegación — líneas expandibles */
.test-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.test-dot {
  display: block;
  height: 2px;
  width: 24px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 2px;
  cursor: pointer;
  padding: 0;
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              background 0.45s ease;
}

.test-dot.active {
  width: 44px;
  background: #FFFFFF;
}

.test-dot:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 4px;
}

/* ── Derecha ──────────────────────────────────── */
.test-right {
  position: relative;
  min-height: 360px;
}

/* ── Tarjetas ─────────────────────────────────── */
.test-card {
  position: absolute;
  inset: 0;
  background: #161616;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;

  /* Estado inicial: invisible, desplazada */
  opacity: 0;
  transform: translateX(56px) scale(0.97);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  z-index: 0;
}

.test-card.active {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
  z-index: 2;
}

/* Estrellas */
.test-stars {
  font-size: 15px;
  color: #F5C518;
  letter-spacing: 4px;
}

/* Cita */
.test-quote {
  font-size: 17px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.72;
  font-style: italic;
  flex: 1;
  margin: 0;
}

/* Separador */
.test-sep {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

/* Autor */
.test-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.test-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(232, 89, 60, 0.12);
  border: 1px solid rgba(232, 89, 60, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--coral);
  flex-shrink: 0;
}

.test-name {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 3px;
}

.test-role {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.38);
  letter-spacing: 0.3px;
}

/* ── Decorativos de fondo ─────────────────────── */
.test-deco {
  position: absolute;
  border-radius: 6px;
  pointer-events: none;
  z-index: 1;
}

.test-deco-a {
  width: 80px;
  height: 80px;
  bottom: -20px;
  left: -20px;
  background: rgba(232, 89, 60, 0.04);
  border: 1px solid rgba(232, 89, 60, 0.08);
}

.test-deco-b {
  width: 80px;
  height: 80px;
  top: -20px;
  right: -20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ── Entrada al viewport ──────────────────────── */
.test-left {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.test-right {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.2s,
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
}

#testimonios.in-view .test-left,
#testimonios.in-view .test-right {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ───────────────────────────────── */
@media (max-width: 960px) {
  #testimonios { padding: 80px 0; }

  .test-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 0 40px;
  }

  .test-title { font-size: 40px; letter-spacing: -1.5px; }
  .test-nav { flex-direction: row; }
  .test-right { min-height: 320px; }
}

@media (max-width: 520px) {
  .test-inner { padding: 0 20px; }
  .test-title { font-size: 30px; letter-spacing: -1px; }
  .test-card { padding: 32px; }
  .test-quote { font-size: 15px; }
}
