/* =========================================================
   KYNOX SYSTEMS — REVIEWS AUTOMÁTICAS
   ========================================================= */

.kx-reviews-wrap {
  position: relative;
}

.kx-reviews-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.kx-reviews-count {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid #1b3a5d;
  border-radius: 9px;
  background: #091522;
}

.kx-reviews-count strong {
  font: 800 12px Manrope, sans-serif;
  color: #f7fbff;
}

.kx-reviews-count > span:last-child {
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .12em;
  color: #6684a3;
}

.kx-reviews-verified-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #2a9fff;
  box-shadow: 0 0 12px rgba(42,159,255,.60);
}

.kx-reviews-arrows {
  display: flex;
  gap: 7px;
}

.kx-reviews-arrows button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid #20476e;
  border-radius: 9px;
  background: #0a1727;
  color: #8bbce8;
  cursor: pointer;
  transition: .2s ease;
}

.kx-reviews-arrows button:hover:not(:disabled) {
  color: #fff;
  border-color: #299cff;
  background: #0d2035;
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(41,156,255,.10);
}

.kx-reviews-arrows button:disabled {
  opacity: .28;
  cursor: default;
}

.kx-reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.kx-review-card {
  position: relative;
  min-height: 205px;
  padding: 21px;
  display: flex;
  flex-direction: column;
  border: 1px solid #19334f;
  border-radius: 13px;
  background:
    radial-gradient(circle at 15% 0%, rgba(38,156,255,.055), transparent 38%),
    #091522;
  animation: kxReviewIn .32s ease both;
}

@keyframes kxReviewIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.kx-review-stars {
  display: flex;
  align-items: center;
  gap: 2px;
  color: #35a8ff;
  font-size: 11px;
  letter-spacing: 1px;
}

.kx-review-score {
  margin-left: 7px;
  color: #5f7d9c;
  font-size: 8px;
  letter-spacing: 0;
}

.kx-review-opinion {
  margin: 15px 0 20px;
  min-height: 62px;
  color: #b7c5d5;
  font-size: 10.5px;
  line-height: 1.72;
}

.kx-review-service {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 16px;
  padding: 5px 7px;
  border: 1px solid #1b3a5d;
  border-radius: 6px;
  background: rgba(22,54,88,.25);
  color: #6f91b3;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: .05em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kx-review-footer {
  margin-top: auto;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
}

.kx-review-avatar,
.kx-review-avatar-fallback {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #1c4268;
  background: #10243d;
}

.kx-review-avatar {
  display: block;
  object-fit: cover;
}

.kx-review-avatar-fallback {
  display: grid;
  place-items: center;
  color: #39aaff;
  font-size: 10px;
  font-weight: 800;
}

.kx-review-user {
  min-width: 0;
}

.kx-review-user strong {
  display: block;
  overflow: hidden;
  color: #f7fbff;
  font-size: 9px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.kx-review-user small {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: #526f8c;
  font-size: 7px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.kx-review-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 6px;
  border: 1px solid rgba(42,159,255,.28);
  border-radius: 6px;
  background: rgba(42,159,255,.06);
  color: #55b4ff;
  font-size: 6.5px;
  font-weight: 800;
  letter-spacing: .05em;
  white-space: nowrap;
}

.kx-reviews-dots {
  min-height: 24px;
  margin-top: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.kx-reviews-dots button {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #24405d;
  cursor: pointer;
  transition: .2s ease;
}

.kx-reviews-dots button.active {
  width: 18px;
  background: #2b9fff;
  box-shadow: 0 0 10px rgba(43,159,255,.35);
}

.kx-reviews-empty {
  display: none;
  min-height: 150px;
  place-items: center;
  border: 1px dashed #1b3653;
  border-radius: 13px;
  color: #617d99;
  font-size: 10px;
}

.kx-reviews-wrap.is-empty .kx-reviews-grid,
.kx-reviews-wrap.is-empty .kx-reviews-dots,
.kx-reviews-wrap.is-empty .kx-reviews-arrows {
  display: none;
}

.kx-reviews-wrap.is-empty .kx-reviews-empty {
  display: grid;
}


/* TABLET / MÓVIL: una review por página */
@media (max-width: 900px) {
  .kx-reviews-grid {
    grid-template-columns: 1fr;
  }

  .kx-review-card {
    min-height: 190px;
  }
}

@media (max-width: 620px) {
  .kx-reviews-topbar {
    align-items: flex-start;
  }

  .kx-reviews-count {
    padding: 0 9px;
  }

  .kx-review-footer {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .kx-review-verified {
    grid-column: 2;
    width: fit-content;
    margin-top: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kx-review-card {
    animation: none;
  }
}
