/* =========================================================
   BASE / WRAPPER
   ========================================================= */
.grs-section{
  max-width: none;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #111;
}

/* Título */
.grs-h2{
  text-align: center;
  font-weight: 800;
  white-space: nowrap;
  font-size: clamp(22px, 6vw, 34px);
  margin: 0 0 22px;
}

/* Modo embed (web oficial) */
.grs-section.grs-embed{
  max-width: none;
  margin: 0;
  padding: 0;
}


/* =========================================================
   SUMMARY BAR (Google Bewertungen)
   ========================================================= */
.grs-summary{
  background: #fff;
  border-radius: 14px;
  border: 1px solid #eee;
  padding: 18px 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.grs-summary-left{
  display:flex;
  flex-direction:column;
  gap: 8px;
}

/* Google logo + text */
.grs-google{
  display:flex;
  align-items:baseline;
  gap: 0;
  font-weight: 800;
  font-size: 22px;
  line-height: 1;
}

.grs-google span:not(.grs-google-word){
  margin: 0;
  padding: 0;
}

.grs-google-word{
  margin-left: 8px;
  font-weight: 600;
  color: #111;
  white-space: nowrap;
}

/* Colores Google */
.grs-google-g  { color:#4285F4; font-weight:700; }
.grs-google-o1 { color:#EA4335; font-weight:700; }
.grs-google-o2 { color:#FBBC05; font-weight:700; }
.grs-google-g2 { color:#4285F4; font-weight:700; }
.grs-google-l  { color:#34A853; font-weight:700; }
.grs-google-e  { color:#EA4335; font-weight:700; margin-right: 6px; }

/* Rating */
.grs-score{
  display:flex;
  align-items:center;
  gap: 10px;
}

.grs-score-num{
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
}

.grs-stars{
  display: inline-flex;
  gap: 2px;
  font-size: 20px;
  letter-spacing: 2px;
  line-height: 1;
  color: #F4B400;
}

.grs-stars svg{
  width: 18px;
  height: 18px;
  fill: #F4B400;
}

.grs-count{
  font-size: 14px;
  color: #777;
}

/* CTA */
.grs-cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 18px;
  background: #0f2f52;
  color: #fff;
  border-radius: 999px;
  text-decoration:none;
  font-weight: 700;
  white-space: nowrap;
}

.grs-cta:hover{ opacity:.92; }


/* =========================================================
   CAROUSEL
   ========================================================= */
.grs-carousel{
  position: relative;
  margin-top: 16px;
}

.grs-track{
  display:flex;
  gap: 18px;
  overflow:auto;
  scroll-behavior: smooth;
  padding: 12px 2px 10px;
  scroll-snap-type: x mandatory;
}

.grs-track::-webkit-scrollbar{ height: 10px; }
.grs-track::-webkit-scrollbar-thumb{ background:#ddd; border-radius:999px; }
.grs-track::-webkit-scrollbar-track{ background:transparent; }

/* Card */
.grs-card{
  scroll-snap-align: start;
  flex: 0 0 calc((100% - 54px) / 4);
  background:#fff;
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 10px 26px rgba(0,0,0,.05);
  min-height: 170px;
}

/* Responsive cards */
@media (max-width: 1050px){
  .grs-card{ flex-basis: calc((100% - 36px) / 3); }
}
@media (max-width: 820px){
  .grs-card{ flex-basis: calc((100% - 18px) / 2); }
}
@media (max-width: 520px){
  .grs-card{ flex-basis: 86%; }
}


/* =========================================================
   CARD CONTENT
   ========================================================= */
.grs-card-head{
  display:flex;
  align-items:flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.grs-avatar{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 800;
  color: #fff;
  flex: 0 0 44px;
}

.grs-author-wrap{
  min-width: 0;
  flex: 1;
}

.grs-author{
  font-size: 16px;
  font-weight: 800;
  margin: 0;
  display:flex;
  align-items:center;
  gap: 6px;
}

.grs-badge{
  width: 16px;
  height: 16px;
  border-radius: 999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size: 11px;
  color:#fff;
  background:#1a73e8;
}

.grs-sub{
  font-size: 13px;
  color:#7a7a7a;
  margin-top: 2px;
}

.grs-card-stars{
  display: inline-flex;
  gap: 2px;
  font-size: 16px;
  color:#F4B400;
  letter-spacing:2px;
  margin-top: 4px;
}

.grs-card-stars svg{
  width: 18px;
  height: 18px;
  fill: #F4B400;
}

.grs-text{
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
  color:#222;
  display:-webkit-box;
  -webkit-line-clamp:4;
  -webkit-box-orient: vertical;
  overflow:hidden;
}

.grs-more{
  margin-top: 10px;
  background: transparent;
  border: 0;
  padding: 0;
  cursor:pointer;
  color:#1a73e8;
  font-weight: 700;
}


/* =========================================================
   NAVIGATION (ARROWS + DOTS)
   ========================================================= */
.grs-arrow{
  position:absolute;
  top: 50%;
  transform: translateY(-45%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid #e6e6e6;
  background: rgba(255,255,255,.95);
  box-shadow: 0 10px 26px rgba(0,0,0,.10);
  cursor:pointer;
  font-size: 26px;
  line-height: 42px;
}

.grs-arrow:disabled{ opacity:.35; cursor:not-allowed; }

.grs-arrow-left{
  left: -8px;
  visibility: hidden;
}

.grs-arrow-right{
  right: -8px;
}

/* Dots */
.grs-dots{
  display:flex;
  justify-content:center;
  gap: 8px;
  margin-top: 10px;
}

.grs-dot{
  width: 6px;
  height: 6px;
  border-radius:999px;
  background:#cfcfcf;
  border:0;
  padding:0;
  cursor:pointer;
}

.grs-dot.is-active{
  background:#111;
}


/* =========================================================
   GOOGLE MINI (cards)
   ========================================================= */
.grs-google-mini{
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
}

.grs-google-mini span{
  margin: 0;
  padding: 0;
}

.grs-google-mini .g  { color:#4285F4; }
.grs-google-mini .o1 { color:#EA4335; }
.grs-google-mini .o2 { color:#FBBC05; }
.grs-google-mini .g2 { color:#4285F4; }
.grs-google-mini .l  { color:#34A853; }
.grs-google-mini .e  { color:#EA4335; }


/* =========================================================
   RESPONSIVE (layout only)
   ========================================================= */
@media (max-width: 680px){
  .grs-summary{
    justify-content: center;
    text-align: center;
  }

  .grs-summary-left{
    width: 100%;
    align-items: center;
  }

  .grs-cta{
    width: 100%;
    margin-top: 10px;
  }
}

/* Ocultar puntos de paginación del carrusel de reseñas */
.grs-dots {
  display: none !important;
}
