/* ============================================================
   14-testimonials.css — Sección de testimonios
   ============================================================ */

.testi {
  background: var(--bg);
}

/* ── Grid 3 columnas ── */
.testi__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  
  margin-top: var(--space-8);
}

/* ── Card base ── */
.testi-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 28px 24px 22px;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base);
}

/* ── Stars ── */
.testi-card__stars {
  color: var(--orange-500);
  font-size: 14px;
  letter-spacing: 2px;
  line-height: 1;
  flex-shrink: 0;
}

/* ── Cuerpo del texto ── */
.testi-card__body {
  flex: 1;
  padding-block: var(--space-4);
}

.testi-card__text {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--ink);
  padding-left: 22px;
  position: relative;
}

.testi-card__text::before {
  content: "\201C";
  position: absolute;
  left: 0;
  top: -6px;
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1;
  color: var(--orange-400);
}

/* ── Footer: avatar + datos + ciudad ── */
.testi-card__footer {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line-soft);
  margin-top: auto;
}

.testi-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.02em;
}

.testi-card__av--orange { background: var(--orange-500); }
.testi-card__av--teal   { background: var(--teal-500); }
.testi-card__av--navy   { background: var(--navy-700); }
.testi-card__av--purple { background: var(--purple-500); }

.testi-card__info {
  flex: 1;
  min-width: 0;
}

.testi-card__name {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  font-style: normal;
  color: var(--navy-900);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.testi-card__meta {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--mute);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.testi-card__city {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--teal-100);
  color: var(--teal-600);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Featured quote (dark strip) ── */
.testi-featured {
  background: var(--navy-900);
  border-radius: var(--radius-xl);
  padding: clamp(32px, 5vw, 56px) clamp(28px, 5vw, 64px);
  margin-top: var(--space-5);
  position: relative;
  overflow: hidden;
}

.testi-featured::before {
  content: "\201C";
  position: absolute;
  top: -24px;
  left: clamp(16px, 4vw, 44px);
  font-family: var(--font-display);
  font-size: clamp(120px, 18vw, 240px);
  line-height: 1;
  color: rgba(245, 130, 32, 0.10);
  pointer-events: none;
  user-select: none;
}

.testi-featured > p {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.2vw, 28px);
  font-weight: 600;
  font-style: italic;
  line-height: 1.45;
  color: #FFFFFF;
  max-width: 72ch;
  position: relative;
}

.testi-featured > footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-5);
}

.testi-featured__avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--orange-500);
  display: grid;
  place-items: center;
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
  border: 2px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

.testi-featured__info {
  flex: 1;
  min-width: 0;
}

.testi-featured__name {
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 600;
  font-style: normal;
  color: #FFFFFF;
  line-height: 1.3;
}

.testi-featured__meta {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--ink-dark-mute);
  margin-top: 2px;
}

.testi-featured__stars {
  color: var(--orange-400);
  font-size: 17px;
  letter-spacing: 2px;
  margin-left: auto;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .testi__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .testi__grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  .testi-featured__stars {
    margin-left: 0;
  }
}
