/* ============================================================
   TESTIMONIALS-01 — Dark Primary Background Design
   Inspirado en testimonios modernos sobre fondo oscuro primario
   ============================================================ */

.testi-dark-section {
  padding: 100px 24px;
  background: var(--primary);
  position: relative;
  overflow: hidden;
}

/* Textura sutil de fondo */
.testi-dark-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 80%, color-mix(in srgb, var(--background) 25%, transparent) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 20%, color-mix(in srgb, var(--secondary) 8%, transparent) 0%, transparent 50%);
  pointer-events: none;
}

.testi-dark-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ── Header ── */
.testi-dark-header {
  margin-bottom: 52px;
}

.testi-dark-sub {
  display: block;
  color: color-mix(in srgb, var(--primary-text, var(--bg)) 65%, transparent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.testi-dark-title {
  font-family: var(--font-title, 'Outfit', sans-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--primary-text, var(--bg));
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.testi-dark-accent {
  color: var(--primary-text, var(--bg));
  font-style: italic;
  position: relative;
}

/* Subrayado decorativo animado */
.testi-dark-accent::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 3px;
  background: color-mix(in srgb, var(--primary-text, var(--bg)) 50%, transparent);
  border-radius: 2px;
}

/* ── Grid ── */
.testi-dark-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 52px;
}

/* ── Tarjeta ── */
.testi-dark-card {
  background: color-mix(in srgb, var(--background) 28%, transparent);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  backdrop-filter: blur(6px);
  transition: transform 0.3s ease, background 0.3s ease;
}

.testi-dark-card:hover {
  transform: translateY(-4px);
  background: color-mix(in srgb, var(--background) 38%, transparent);
}

/* ── Estrellas ── */
.testi-dark-stars {
  color: var(--primary-text, var(--bg));
  font-size: 1.1rem;
  letter-spacing: 2px;
}

/* ── Comentario ── */
.testi-dark-comment {
  color: color-mix(in srgb, var(--primary-text, var(--bg)) 88%, transparent);
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0;
  font-style: italic;
  flex: 1;
}

/* ── Autor ── */
.testi-dark-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

/* Avatar de letra */
.testi-dark-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--primary-text, var(--bg)) 20%, transparent);
  color: var(--primary-text, var(--bg));
  font-family: var(--font-title, 'Outfit', sans-serif);
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  /* Solo muestra la inicial */
  overflow: hidden;
  text-overflow: clip;
  white-space: nowrap;
  text-indent: 0;
}

.testi-dark-author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.testi-dark-name {
  color: var(--primary-text, var(--bg));
  font-family: var(--font-title, 'Outfit', sans-serif);
  font-weight: 700;
  font-size: 0.95rem;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.testi-dark-role {
  color: color-mix(in srgb, var(--primary-text, var(--bg)) 55%, transparent);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── CTA ── */
.testi-dark-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.testi-dark-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--background);
  color: var(--primary);
  font-family: var(--font-title, 'Outfit', sans-serif);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none;
  border: 2px solid var(--background);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
  letter-spacing: 0.3px;
}

.testi-dark-btn:hover {
  background: transparent;
  color: var(--primary-text, var(--bg));
  transform: translateY(-2px);
}

.testi-btn-icon {
  font-style: normal;
  font-size: 1rem;
}

.testi-dark-cta-note {
  color: color-mix(in srgb, var(--primary-text, var(--bg)) 55%, transparent);
  font-size: 0.82rem;
  margin: 0;
}

/* ── Slider arrows (solo mobile) ── */
.testi-dark-slider-arrows {
  display: none;
}

.testi-dark-arrow-btn {
  display: none;
}

.testi-dark-dots {
  display: none;
}

/* ── Responsive ── */
@media (max-width: 991px) {
  .testi-dark-section {
    padding: 72px 24px;
  }
  .testi-dark-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .testi-dark-grid .testi-dark-card:nth-child(3) {
    grid-column: 1 / -1;
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
  }
  .testi-dark-card {
    padding: 24px 20px;
  }
  .testi-dark-header {
    margin-bottom: 36px;
  }
}

@media (max-width: 768px) {
  .testi-dark-section {
    padding: 56px 20px;
  }
  .testi-dark-card {
    padding: 20px 16px;
    gap: 12px;
  }
}

@media (max-width: 600px) {
  .testi-dark-section {
    padding: 48px 16px;
  }
  .testi-dark-header {
    margin-bottom: 28px;
  }

  /* Slider layout */
  .testi-dark-grid {
    display: flex;
    overflow: hidden;
    gap: 0;
    margin-bottom: 20px;
    scroll-snap-type: x mandatory;
  }

  .testi-dark-card {
    min-width: 100%;
    padding: 20px 16px;
    gap: 12px;
    scroll-snap-align: start;
    box-sizing: border-box;
  }

  .testi-dark-card:hover {
    transform: none;
  }

  /* Flechas */
  .testi-dark-slider-arrows {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 12px;
  }

  .testi-dark-arrow-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid color-mix(in srgb, #fff 30%, transparent);
    background: transparent;
    color: #fff;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
  }

  .testi-dark-arrow-btn:hover {
    border-color: #fff;
    background: color-mix(in srgb, #fff 12%, transparent);
  }

  .testi-dark-arrow-btn:active {
    transform: scale(0.92);
  }

  /* Dots */
  .testi-dark-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
  }

  .testi-dark-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: color-mix(in srgb, #fff 35%, transparent);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
  }

  .testi-dark-dot.active {
    background: var(--bg);
    width: 24px;
    border-radius: 4px;
  }

  .testi-dark-title {
    font-size: 1.8rem;
  }
  .testi-dark-comment {
    font-size: 0.88rem;
    line-height: 1.6;
  }
  .testi-dark-avatar {
    width: 34px;
    height: 34px;
    font-size: 0.9rem;
  }
  .testi-dark-name {
    font-size: 0.88rem;
  }
  .testi-dark-role {
    font-size: 0.72rem;
  }
  .testi-dark-btn {
    padding: 11px 24px;
    font-size: 0.88rem;
  }
  .testi-dark-cta-note {
    font-size: 0.78rem;
  }
}