.reviews-section {
  padding: 30px 0;
  background: linear-gradient(180deg, #fafbfc 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.reviews-section::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(var(--color-primary-rgb, 13, 110, 253), 0.06) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
}

.reviews-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.reviews-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.reviews-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-secondary)
  );
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.reviews-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #1e293b;
  margin: 0 0 2px 0;
  line-height: 1.2;
}

.reviews-subtitle {
  font-size: 0.75rem;
  color: #64748b;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 5px;
}

.reviews-subtitle i {
  color: #28a745;
}

.reviews-count {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #475569;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.reviews-count i {
  color: var(--color-primary);
}

.reviews-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.review-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  animation: reviewFadeIn 0.5s ease;
}

@keyframes reviewFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.review-card.right {
  flex-direction: row-reverse;
}

/* Avatar */
.review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  border: 3px solid #fff;
  position: relative;
}

.review-avatar::after {
  content: "";
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 10px;
  height: 10px;
  background: #28a745;
  border: 2px solid #fff;
  border-radius: 50%;
}

/* Burbuja */
.review-bubble {
  background: #fff;
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
  flex: 1;
  max-width: calc(100% - 70px);
  position: relative;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.review-card:hover .review-bubble {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* Flecha hacia el avatar */
.review-bubble::before {
  content: "";
  position: absolute;
  top: 14px;
  width: 10px;
  height: 10px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.04);
  transform: rotate(45deg);
}

.review-card:not(.right) .review-bubble::before {
  left: -6px;
  border-right: none;
  border-top: none;
}

.review-card.right .review-bubble::before {
  right: -6px;
  border-left: none;
  border-bottom: none;
}

/* Meta */
.review-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.review-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 5px;
}

.review-name i {
  color: var(--color-primary);
  font-size: 0.75rem;
}

.review-date {
  font-size: 0.65rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
}

/* Estrellas */
.review-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 8px;
  color: #f39c12;
  font-size: 0.7rem;
}

/* Texto */
.review-text {
  font-size: 0.82rem;
  color: #334155;
  line-height: 1.5;
  margin: 0 0 8px 0;
  font-style: italic;
  position: relative;
}

.review-text i {
  color: var(--color-primary);
  font-size: 1rem;
  opacity: 0.5;
  margin-right: 4px;
}

/* Verificación */
.review-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  font-weight: 600;
  color: #28a745;
  background: rgba(40, 167, 69, 0.1);
  padding: 3px 10px;
  border-radius: 20px;
}

.review-verified i {
  font-size: 0.65rem;
}

.reviews-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
  flex-wrap: wrap;
}

.btn-reviews {
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.btn-reviews-primary {
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-secondary)
  );
  color: #fff;
}

.btn-reviews-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
  filter: brightness(1.08);
}

.btn-reviews-success {
  background: #fff;
  color: #28a745;
  border: 2px solid #28a745;
}

.btn-reviews-success:hover {
  background: #28a745;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(40, 167, 69, 0.3);
}

@media (max-width: 767px) {
  .reviews-section {
    padding: 18px 0;
  }

  .reviews-header {
    margin-bottom: 16px;
  }

  .reviews-icon {
    width: 42px;
    height: 42px;
    font-size: 1.15rem;
    border-radius: 12px;
  }

  .reviews-title {
    font-size: 1rem;
  }

  .reviews-subtitle {
    font-size: 0.68rem;
  }

  .reviews-count {
    padding: 6px 12px;
    font-size: 0.68rem;
  }

  .reviews-container {
    gap: 12px;
  }

  .review-avatar {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  .review-bubble {
    padding: 11px 13px;
    border-radius: 14px;
    max-width: calc(100% - 55px);
  }

  .review-name {
    font-size: 0.75rem;
  }

  .review-date {
    font-size: 0.58rem;
  }

  .review-text {
    font-size: 0.75rem;
  }

  .review-verified {
    font-size: 0.58rem;
    padding: 2px 8px;
  }

  .review-stars {
    font-size: 0.62rem;
  }

  .reviews-actions {
    gap: 8px;
    margin-top: 20px;
  }

  .btn-reviews {
    padding: 10px 18px;
    font-size: 0.75rem;
    flex: 1;
    justify-content: center;
  }
}

@media (max-width: 400px) {
  .reviews-title {
    font-size: 0.9rem;
  }

  .reviews-subtitle {
    display: none;
  }

  .btn-reviews {
    padding: 9px 14px;
    font-size: 0.7rem;
  }
}
.ai-btn {
  position: fixed;
  bottom: 100px;
  right: 20px;
  width: 60px;
  height: 60px;
  border: none;
  border-radius: 50%;
  background: #0d6efd;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  z-index: 9999;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
  transition: 0.3s;
}

.ai-btn:hover {
  transform: scale(1.08);
}
