/* =========================================================
   WIDGET DE RESEÑAS DE GOOGLE  ·  estilos
   Todo está dentro de .grw para no chocar con el CSS de tu sitio
   ========================================================= */
.grw {
  --grw-bg: #f6f1ea;
  --grw-card: #ffffff;
  --grw-text: #111111;
  --grw-muted: #8a8a8a;
  --grw-star: #f5b324;
  --grw-star-off: #cfcfcf;
  --grw-verified: #3b7ddd;
  --grw-gap: 16px;
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--grw-text);
  background: var(--grw-bg);
  padding: 44px 24px 32px;
  box-sizing: border-box;
}
.grw *, .grw *::before, .grw *::after { box-sizing: border-box; }
 
.grw__inner { max-width: 1320px; margin: 0 auto; }
 
/* ---------- Cuadrícula ---------- */
.grw__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--grw-gap);
  align-items: start;
}
 
/* ---------- Tarjeta ---------- */
.grw__card {
  background: var(--grw-card);
  border-radius: 12px;
  padding: 20px 22px 22px;
  min-height: 238px;
  position: relative;
  box-shadow: 0 1px 2px rgba(0,0,0,.03);
}
.grw__head { display: flex; align-items: center; gap: 12px; padding-right: 30px; }
 
.grw__avatar {
  position: relative; flex: 0 0 auto;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff; font-weight: 600; font-size: 22px; line-height: 1;
  background-size: cover; background-position: center;
}
.grw__avatar-badge {
  position: absolute; right: -3px; bottom: -3px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; display: grid; place-items: center;
  box-shadow: 0 0 0 1px rgba(0,0,0,.06);
}
.grw__avatar-badge svg { width: 11px; height: 11px; }
 
.grw__who { min-width: 0; }
.grw__name {
  font-weight: 600; font-size: 15px; line-height: 1.25;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.grw__date { font-size: 13px; color: var(--grw-muted); margin-top: 2px; }
 
.grw__glogo { position: absolute; top: 20px; right: 20px; width: 22px; height: 22px; }
 
.grw__rating { display: flex; align-items: center; gap: 6px; margin: 14px 0 10px; }
.grw__stars { display: inline-flex; gap: 1px; }
.grw__stars svg { width: 18px; height: 18px; fill: var(--grw-star); }
.grw__stars svg.is-off { fill: var(--grw-star-off); }
.grw__verified { width: 16px; height: 16px; fill: var(--grw-verified); }
 
.grw__text {
  font-size: 15px; line-height: 1.45; margin: 0;
  overflow-wrap: anywhere; white-space: pre-line;
}
.grw__text.is-clamped {
  display: -webkit-box; -webkit-box-orient: vertical;
  -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden;
}
.grw__more {
  appearance: none; background: none; border: 0; padding: 0; margin-top: 8px;
  font: inherit; font-size: 14px; color: var(--grw-muted); cursor: pointer;
}
.grw__more:hover, .grw__more:focus-visible { color: var(--grw-text); text-decoration: underline; }
 
/* ---------- Pie con la puntuación ---------- */
.grw__summary {
  margin: 18px 0 0; text-align: center; font-size: 15px;
}
.grw__summary a { color: inherit; text-decoration: none; }
.grw__summary a:hover { text-decoration: underline; }
.grw__summary b { font-weight: 700; }
 
/* ---------- Botón "Ver más reseñas" (solo móvil) ---------- */
.grw__loadmore {
  display: none;
  margin: 18px auto 0;
  appearance: none; border: 1.5px solid var(--grw-text); background: transparent;
  color: var(--grw-text); font: inherit; font-size: 15px; font-weight: 600;
  padding: 12px 28px; border-radius: 999px; cursor: pointer;
  transition: background .2s, color .2s;
}
.grw__loadmore:hover, .grw__loadmore:focus-visible { background: var(--grw-text); color: #fff; }
 
/* ---------- Estados ---------- */
.grw__state { text-align: center; padding: 40px 0; color: var(--grw-muted); font-size: 15px; }
 
@media (max-width: 600px) {
  .grw { padding: 28px 14px 24px; }
  .grw__grid { grid-template-columns: 1fr; }
 
  /* En móvil: solo las primeras reseñas hasta pulsar "Ver más" */
  .grw:not(.is-expanded) .grw__card--extra { display: none; }
  .grw.has-extra:not(.is-expanded) .grw__loadmore { display: block; }
}