/* Reseñas de Google del inicio (ES/EN). Datos: /api/tour/accion?resenas=google
   Móvil primero. El carril reserva su alto mientras carga (sin salto). */
.rg .s-title { margin-bottom: 14px; }
.rg-resumen {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 10px;
  background: var(--green); color: #fff; border-radius: 999px;
  padding: 8px 16px; margin: 0 0 24px; font-size: 15px; line-height: 1.3;
}
.rg-resumen[hidden] { display: none; }
.rg-nota { font-weight: bold; font-size: 20px; color: var(--yellow); }
.rg-resumen .rg-stars { color: var(--yellow); }
.rg-stars { letter-spacing: 2px; font-size: 15px; line-height: 1; }

.rg-carril {
  display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-left: 2px;
  padding: 4px 2px 10px; margin: 0 -2px; scrollbar-width: thin;
  scroll-behavior: smooth;
}
.rg-carril.rg-cargando { min-height: 236px; }
.rg-carril:focus-visible { outline: 3px solid var(--green); outline-offset: 4px; border-radius: 12px; }

.rg-card {
  flex: 0 0 86%; scroll-snap-align: start; box-sizing: border-box;
  background: #fff; border-radius: 20px; padding: 20px;
  box-shadow: 0 2px 14px rgba(0,0,0,0.06);
  display: flex; flex-direction: column; min-height: 220px;
}
.rg-autor { font-weight: bold; font-size: 16px; color: var(--green); margin: 0; overflow-wrap: anywhere; }
.rg-autor a { color: inherit; text-decoration: none; }
.rg-autor a:hover { text-decoration: underline; }
.rg-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 6px 0 10px; font-size: 13px; color: #666; }
.rg-card .rg-stars { color: var(--green); }
.rg-texto { margin: 0; font-size: 15px; line-height: 1.55; color: #333; white-space: pre-line; overflow-wrap: anywhere; }
.rg-mas {
  align-self: flex-start; min-height: 44px; margin-top: 6px; padding: 0 4px;
  background: none; border: 0; color: var(--green); font: inherit; font-weight: bold;
  text-decoration: underline; cursor: pointer;
}

.rg-botones { display: flex; gap: 10px; margin-top: 12px; }
.rg-botones[hidden] { display: none; }
.rg-flecha {
  width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--green);
  background: #fff; color: var(--green); font-size: 24px; line-height: 1; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; padding: 0 0 3px;
}
.rg-flecha:disabled { opacity: .35; cursor: default; }

.rg-pie { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; margin: 18px 0 0; }
.rg-link {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--green); font-weight: bold; font-size: 15px; text-decoration: underline; text-underline-offset: 3px;
}
.rg-link[hidden] { display: none; }
.rg-link--2 { font-weight: normal; }

.rg a:focus-visible, .rg button:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 8px; }
.rg .rg-flecha:focus-visible { border-radius: 50%; }

/* Si la API falla solo queda el enlace a Google: franja delgada. */
.rg.rg--sin-datos { padding-top: 20px; padding-bottom: 20px; }
.rg--sin-datos .rg-pie { margin: 0; }

@media (min-width: 640px) { .rg-card { flex-basis: calc((100% - 14px) / 2); } }
@media (min-width: 1024px) { .rg-card { flex-basis: calc((100% - 42px) / 4); } }
@media (prefers-reduced-motion: reduce) { .rg-carril { scroll-behavior: auto; } }
