/* ==================================================
   reviewseintogoogle - style.css
   ================================================== */

/* Contenedor general */
.rg-section {
  width: 100%;
  box-sizing: border-box;
}
.rg-section-title {
  font-family: Arial, sans-serif;
  font-size: 20px;
  text-align: center;
  color: #1A2C57;
  margin-bottom: 20px;
}

/* 
  Aquí cambiamos align-items a stretch para forzar que
  BOTH columnas (rating + lista) tengan la misma altura 
*/
.rg-section-content {
  display: flex;
  align-items: stretch;  /* antes era flex-start */
}

/* ------------------------
   Panel de valoración
   ------------------------ */
.rg-rating-widget {
  flex: 0 0 200px;    /* ancho fijo */
  padding: 15px;
  background: #fff;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  text-align: center;
  margin-right: 20px;

  /* obligatorio para que stretch funcione en algunos navegadores */
  align-self: stretch;
}
.rg-stars .star {
  font-size: 24px;
  color: #F5A623;
  margin: 0 2px;
}
.rg-info {
  margin-top: 5px;
  font-family: Arial, sans-serif;
}
.rg-average {
  font-size: 20px;
  font-weight: bold;
}
.rg-text {
  display: block;
  margin-top: 5px;
  font-size: 16px;
}
.rg-total {
  display: block;
  font-size: 14px;
  color: #777;
  margin-top: 3px;
}
.rg-logo {
  display: block;
  width: 40px;
  height: 40px;
  margin: 15px auto 0;
}

/* ------------------------
   Grid de 6 reseñas
   ------------------------ */
.rg-review-list {
  flex: 1;  /* ocupa TODO el espacio sobrante */
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
  box-sizing: border-box;

  /* igualamos altura de la lista a la del rating */
  align-self: stretch;
}

/* Card de reseña */
.rg-review-item {
  position: relative;
  background: #fff;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  height: 100%;       /* para que llenen toda la altura de la columna */
  box-sizing: border-box;
}
.rg-verified-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 35px;
  height: 35px;
}
.rg-review-stars .star {
  font-size: 18px;
  color: #F5A623;
  margin: 0 1px;
}
.rg-review-date {
  font-size: 12px;
  color: #999;
  margin: 8px 0;
}
.rg-review-title {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 5px;
}
/* Límite de 3 líneas */
.rg-review-content {
  font-size: 13px;
  color: #555;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  flex-grow: 1;
}
.rg-review-link {
  font-size: 13px;
  color: #128c4b;
  text-decoration: none;
  font-weight: bold;
  margin-top: auto;
}


/* --------------------------------------------------
   Botón “Dejar una reseña” debajo del rating widget
   -------------------------------------------------- */
.rg-leave-review {
  text-align: center;
  margin-top: 15px;
}
.rg-review-btn {
  display: inline-block;
  padding: 8px 16px;
  background: #128c4b;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
  transition: 0.5s;
  border-radius: 50px;
}
.rg-review-btn:hover {
  background: #ffcb06;
  color: black;
}

.rg-avatar-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 10px;
  flex-shrink: 0;
}

/* --------------------------------------------------
   Responsive móvil: 1 tarjeta por fila
   -------------------------------------------------- */
@media (max-width: 480px) {
  /* Apila rating y lista */
  .rg-section-content {
    flex-direction: column;
  }
  /* Rating ocupa 100% y margenes ajustados */
  .rg-rating-widget {
    flex: none;
    width: 100%;
    margin-right: 0;
    margin-bottom: 20px;
  }
  /* Lista de reseñas en 1 columna */
  .rg-review-list {
    display: block;                /* dejamos de usar grid */
    width: 100%;
  }
  /* Cada tarjeta full-width y separadas */
  .rg-review-item {
    width: 100%;
    margin: 0 0 15px 0;
  }
  /* Opcional: elimina cualquier overflow horizontal */
  .rg-section, 
  .rg-section-content {
    overflow-x: hidden;
  }
}

/* —— Avatar circular con inicial —— */
.rg-review-item {
  display: flex;
  flex-direction: column;
  /* (ya tendrías otros estilos…) */
}

/* Encapsula cabecera: avatar + nombre */
.rg-review-header {
  display: flex;
  align-items: center;
  margin: 8px 0;
}

/* El avatar: círculo con fondo, letra blanca */
.rg-avatar {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  background-color: #4CAF50;  /* ajústalo si quieres otro color */
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 16px;
  text-transform: uppercase;
  margin-right: 10px;
}
/* Nombre del revisor */
.rg-reviewer-name {
  font-weight: bold;
  font-size: 14px;
  color: #333;
}
/* Evitar que el tema pinte estrellas extra con ::before */
.rg-stars .rg-star::before { content: none !important; }

/* Estilos mínimos de las nuevas estrellas */
.rg-star{display:inline-block;line-height:1;margin:0 2px;font-size:16px;}
.rg-star.filled{color:#F5A623;}