/* --------------------------
   Formulario de reseñas
   -------------------------- */
.review-container {
  max-width: 900px;
  margin: 40px auto;
  padding: 24px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  box-sizing: border-box;
  width: 100%;
  font-family: 'Poppins', sans-serif;
}

.review-container .rc-title {
  font-size: 22px;
  font-weight: bold;
  color: #333;
  margin-bottom: 8px;
  text-align: center;
}

.review-container .rc-sub {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
  text-align: center;
}

.rg-review-form {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.rg-review-form .form-group {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  min-width: 200px;       
  box-sizing: border-box;
}

.rg-review-form .form-group.full-width {
  flex: 1 1 100%;
}

.rg-review-form label {
  font-size: 14px;
  margin-bottom: 6px;
  font-weight: 500;
  color: #444;
}

.rg-review-form input,
.rg-review-form textarea,
.rg-review-form select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
  transition: border 0.2s;
  background-color: #fff;
}

/* Fix del select (no se desborda) */
.rg-review-form select {
  white-space: nowrap;      
  overflow: hidden;         
  text-overflow: ellipsis;  
}

.rg-review-form input:focus,
.rg-review-form textarea:focus,
.rg-review-form select:focus {
  border-color: #e44639;
  outline: none;
}

.rg-review-form textarea {
  min-height: 100px;
  resize: vertical;
}

/* Form-groups inline (label + input/estrella horizontal) */
.rg-review-form .form-group.inline {
  display: flex;
  flex-direction: row;
  line-height: 3em;
  align-items: center;
  gap: 12px;
}

.rg-review-form .form-group.inline label {
  margin-bottom: 0;
  flex: 0 0 auto;
}

.rg-review-form .form-group.inline .rating-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

/* Grupo de estrellas del formulario */
.star-rating {
  display: flex;
  gap: 2px;
  font-size: 26px;
  cursor: pointer;
}

.star-rating .star {
  color: #ddd;
  transition: color 0.2s;
}

.star-rating .star.selected {
  color: #f5c518; /* amarillo brillante */
}

.rating-text {
  font-size: 13px;
  color: #666;
  white-space: nowrap;
}

/* Botón enviar */
.submit-btn {
  margin-top: 16px;
  background: #e44639;
  color: #fff;
  padding: 12px 20px;
  font-size: 15px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
  display: inline-block;
  width: 100%;
  text-align: center;
}

.submit-btn:hover {
  background: #c9362d;
}

/* --------------------------
   Listado de reseñas
   -------------------------- */
.reviews-carousel {
  position: relative;
  padding: 24px 16px;
  background: #f7f7f7;
  border-radius: 16px;
}

.reviews-carousel .carousel-viewport {
  overflow: hidden;
  width: 100%;
  margin: 0 auto;
}

.reviews-carousel .reviews-track {
  display: flex;
  gap: 20px;
  transition: transform 0.4s ease;
}

.reviews-carousel .review-card {
  flex: 0 0 calc((100% - 40px)/3);
  background: linear-gradient(145deg, #ffffff, #f9f9f9);
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  position: relative;
}

.reviews-carousel .review-card::before {
  content: '';
  display: block;
  height: 4px;
  border-radius: 4px 4px 0 0;
  background: #546157;
  margin-bottom: 8px;
}

.reviews-carousel .review-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
  border-color: #f5c518;
}

/* Estrellas en listado de reseñas */
.review-meta .star-filled {
  color: #f5c518;
  font-size: 18px;
  margin-right: 2px;
  text-shadow: 0 1px 1px rgba(0,0,0,0.2);
}

.review-meta .star-empty {
  color: #ddd;
  font-size: 18px;
  margin-right: 2px;
}

.review-meta {
  font-weight: 600;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.review-comment {
  font-style: italic;
  font-size: 14px;
  color: #333;
  flex: 1;
}

.review-date {
  margin-top: 12px;
  font-size: 13px;
  color: #546157;
  font-weight: 500;
}

/* Flechas y dots */
.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.carousel-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #ccc;
  background: #fff;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel-dots {
  display: flex;
  gap: 6px;
}

.carousel-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: #ccc;
  cursor: pointer;
}

.carousel-dots button[aria-current="true"] {
  background: #e44639;
}


/* --------------------------
   Responsive
   -------------------------- */

/* Tablets grandes */
@media (max-width: 1024px) {
  .reviews-carousel .review-card {
    flex: 0 0 calc((100% - 20px)/2);
  }
}

/* Tablets pequeñas y móviles grandes */
@media (max-width: 768px) {
  .review-container {
    padding: 20px;
  }

  .rg-review-form {
    flex-direction: column;
    gap: 12px;
  }

  .rg-review-form .form-group.inline {
    flex-direction: column;
    align-items: flex-start;
    line-height: normal;
  }

  .star-rating {
    font-size: 22px;
  }

  .reviews-carousel .review-card {
    flex: 0 0 100%;
  }
}

/* Móviles pequeños */
@media (max-width: 480px) {
  .review-container {
    padding: 16px;
  }

  .review-container .rc-title {
    font-size: 18px;
  }

  .review-container .rc-sub {
    font-size: 13px;
  }

  .rg-review-form label {
    font-size: 13px;
  }

  .rg-review-form input,
  .rg-review-form textarea,
  .rg-review-form select {
    font-size: 13px;
    padding: 8px 10px;
  }

  .submit-btn {
    font-size: 14px;
    padding: 10px 16px;
  }

  .star-rating {
    font-size: 20px;
  }

  .review-comment {
    font-size: 13px;
  }
}