/* ══════════════════════════════════════════
   VALORACIONES PAGE — CSS
   Solo estilos propios de las tarjetas.
   El resto (hero, svc-ed, cta-fullbleed) viene de index.min.css
   ══════════════════════════════════════════ */

/* ── Grid de tarjetas (dentro de .svc-ed) ── */
.vl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
  align-items: start;
  margin-top: 3rem;
}

/* ══════════════════════════════════════════
   TARJETA DE TESTIMONIO
══════════════════════════════════════════ */
.vl-card {
  position: relative;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 20px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.vl-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 160px;
  height: 160px;
  background: radial-gradient(ellipse at top right, rgba(139, 92, 246, 0.07), transparent 65%);
  pointer-events: none;
}

.vl-card:hover {
  border-color: rgba(139, 92, 246, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* ── Estrellas ── */
.vl-card-stars {
  display: flex;
  gap: 0.22rem;
  font-size: 1.05rem;
  line-height: 1;
  position: relative;
  z-index: 1;
}

.vl-card-star--on  { color: #f5a623; }
.vl-card-star--off { color: rgba(255, 255, 255, 0.1); }

/* ── Badge de servicio ── */
.vl-card-service {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.07em;
  color: var(--v2);
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.2);
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  align-self: flex-start;
}

/* ── Texto del testimonio ── */
.vl-card-review {
  font-size: 0.93rem;
  line-height: 1.78;
  color: var(--text2);
  flex: 1;
  position: relative;
  z-index: 1;
  margin: 0;
  text-wrap: pretty;
}

.vl-card-review::before {
  content: "\201C";
  font-family: var(--head);
  font-size: 5rem;
  line-height: 0;
  color: rgba(139, 92, 246, 0.1);
  position: absolute;
  top: 1.2rem;
  left: -0.4rem;
  pointer-events: none;
}

/* ── Autor ── */
.vl-card-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  border-top: 1px solid var(--border);
  padding-top: 1.1rem;
  position: relative;
  z-index: 1;
}

.vl-card-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--head);
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--v2);
  flex-shrink: 0;
  overflow: hidden;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.vl-card-avatar:hover {
  border-color: var(--v2);
  transform: translateY(-1px);
}

.vl-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  background: var(--bg3);
  padding: 6px;
}

.vl-card-author-info {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.vl-card-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vl-card-website,
.vl-card-date {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text3);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vl-card-website:hover { color: var(--v2); }

/* ── Loading spinner ── */
.vl-loading {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 5rem 0;
}

.vl-loading-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--v2);
  animation: vl-bounce 1.2s infinite ease-in-out;
}

.vl-loading-dot:nth-child(2) { animation-delay: 0.15s; }
.vl-loading-dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes vl-bounce {
  0%, 100% { transform: scale(0.6); opacity: 0.4; }
  50%       { transform: scale(1);   opacity: 1;   }
}

/* ── Estado vacío ── */
.vl-empty {
  text-align: center;
  padding: 5rem 2rem;
}

.vl-empty-icon {
  font-size: 3rem;
  color: rgba(139, 92, 246, 0.3);
  margin-bottom: 1rem;
}

.vl-empty-title {
  font-family: var(--head);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.vl-empty-desc {
  font-size: 0.88rem;
  color: var(--text2);
  margin-bottom: 1.5rem;
}

/* ══════════════════
   RESPONSIVE
══════════════════ */
@media (max-width: 860px) {
  .vl-grid { grid-template-columns: 1fr; gap: 1rem; }
}
