/* ── Sección testimonios ── */
.testimonios {
  padding: 100px 0;
  background-color: black;
  overflow: hidden;
}

.testimonios .container {
  padding: 0 20px;
}

/* ── Slider full-width ── */
.slider-testimonios {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  margin-top: 50px;
}

.slider-track-contenedor {
  flex: 1;
  overflow: hidden;
  /* Degradado en los bordes: el contenido se desvanece hacia afuera
     en vez de cortarse de golpe */
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 12%,
    black 88%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 12%,
    black 88%,
    transparent 100%
  );
}

.slider-track {
  display: flex;
  align-items: center;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Cada slide: por defecto chico y apagado (los que no están activos) ── */
.slide-testimonio {
  flex: 0 0 auto;
  width: min(560px, 72vw);
  margin: 0 20px;
  opacity: 0.25;
  transform: scale(0.88);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

/* ── El slide activo: grande y totalmente visible ── */
.slide-testimonio.activo {
  opacity: 1;
  transform: scale(1);
}

/* ── Tarjeta de testimonio ── */
.tarjeta-testimonio {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 40px 36px;
  text-align: left;
}

.slide-testimonio.activo .tarjeta-testimonio {
  border-color: rgba(0, 110, 255, 0.35);
}

.icono-comillas {
  font-size: 1.8rem;
  color: var(--color-primario);
  opacity: 0.8;
  margin-bottom: 16px;
}

.texto-testimonio {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--color-texto);
  opacity: 0.9;
  margin-bottom: 24px;
  min-height: 100px;
}

/* ── Autor ── */
.autor-testimonio {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar-testimonio {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primario);
  color: var(--color-texto);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.autor-testimonio strong {
  display: block;
  font-size: 0.95rem;
  color: var(--color-texto);
}

.autor-testimonio span {
  display: block;
  font-size: 0.85rem;
  color: var(--color-texto);
  opacity: 0.6;
}

/* ── Flechas ── */
.slider-flecha {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.03);
  color: var(--color-texto);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    border-color 0.3s ease,
    background 0.3s ease,
    transform 0.2s ease;
  z-index: 2;
}

.slider-flecha:hover {
  border-color: var(--color-primario);
  background: rgba(0, 110, 255, 0.1);
  transform: scale(1.05);
}

/* ── Puntos ── */
.slider-puntos {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 36px;
}

.slider-punto {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition:
    background 0.3s ease,
    transform 0.3s ease;
  border: none;
  padding: 0;
}

.slider-punto.activo {
  background: var(--color-primario);
  transform: scale(1.3);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .testimonios {
    padding: 70px 0;
  }

  .slide-testimonio {
    width: 42vw;
    margin: 0 10px;
  }

  .tarjeta-testimonio {
    padding: 30px 24px;
  }

  .slider-flecha {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  .texto-testimonio {
    font-size: 0.6rem;
  }

  /* ── Autor ── */

  .avatar-testimonio {
    width: 22 px;
    height: 22 px;
    font-size: 0.6rem;
  }

  .autor-testimonio strong {
    font-size: 0.5rem;
  }

  .autor-testimonio span {
    font-size: 0.5rem;
  }
}
