/* Widget container */
#reviews-widget {
  font-family: 'Segoe UI', Roboto, sans-serif;
  background: #fff;
  padding: 1rem;
  border-radius: 12px;
  max-width: 100%;
  overflow-x: hidden; /* Oculta scroll */
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  position: relative;
}

/* Title */
#reviews-widget h2 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  color: #222;
}

/* Review container */
.review-carousel {
  display: flex;
  gap: 0.8rem;
  scroll-snap-type: x mandatory;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
}

.review-carousel::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.review-card {
  flex: 0 0 280px;
  background: #f5f5f5;
  padding: 0.9rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease;
  line-height: 1.2;
}

.review-card:hover {
  transform: translateY(-4px);
}

/* Logo */
.review-card img.logo {
  height: 60px;
  width: auto;
  margin-bottom: 0.3rem;
  object-fit: contain;
}

/* Hidden fallback */
.review-card img.logo.hidden {
  display: none;
}

/* Text content */
.review-card .title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
  color: #111;
  line-height: 1.1;
}

.review-card .date {
  font-size: 0.75rem;
  color: #777;
  margin-bottom: 0.8rem;
  line-height: 1.1;
}

.review-card .comment {
  font-size: 0.85rem;
  line-height: 1.2;
  color: #333;
  margin-bottom: 1rem;
  min-height: 80px;
}

/* Stars */
.review-card .stars {
  font-size: 1rem;
  color: #ffc107;
  letter-spacing: 0.1rem;
  line-height: 1;
}

/* Scrollbar styling (fallback if re-enabled) */
.review-carousel::-webkit-scrollbar {
  height: 8px;
}
.review-carousel::-webkit-scrollbar-thumb {
  background-color: #bbb;
  border-radius: 4px;
}
.review-carousel::-webkit-scrollbar-track {
  background: transparent;
}

/* Navigation buttons */
.nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 20px;
  color: #333;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  z-index: 10;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

/* Hover efecto opcional */
.nav-button:hover {
  background: #f0f0f0;
}

/* Ajuste de posición dentro del contenedor */
.nav-left {
  left: 8px; /* antes: -18px */
}

.nav-right {
  right: 8px; /* antes: -18px */
}