/* Centrale Google Reviews — cards, rating header, "Cargar más". Scoped under .cgr.
   Colours: brand blue darkened to pass WCAG AA as text/button fill (same values as the footer),
   stars in the PDP's amber. Nothing here loads a font or an external image. */
.cgr {
	--cgr-blue: #0071e7;       /* #0076f1 darkened: 4.65:1 on white */
	--cgr-blue-dark: #0061c7;
	--cgr-text: #374151;
	--cgr-title: #262626;
	--cgr-muted: #6b7280;      /* 4.83:1 on white */
	--cgr-line: #e5e7eb;
	--cgr-star: #f5a623;
	margin: 0 0 24px;
	color: var(--cgr-text);
}
.cgr *,
.cgr *::before,
.cgr *::after { box-sizing: border-box; }

/* ── rating header ── */
.cgr-summary {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 20px;
	padding: 18px 20px;
	margin: 0 0 20px;
	border: 1px solid var(--cgr-line);
	border-radius: 14px;
	background: #fff;
}
.cgr-summary__score {
	font-size: 44px;
	line-height: 1;
	font-weight: 800;
	color: var(--cgr-title);
	letter-spacing: -0.02em;
}
.cgr-summary__meta {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.cgr-summary__meta .cgr-stars { font-size: 20px; }
.cgr-summary__count {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	color: var(--cgr-muted);
}
.cgr-summary__ctas {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-left: auto;
}

/* ── buttons ── */
.cgr-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 0 16px;
	border: 1px solid var(--cgr-blue);
	border-radius: 999px;
	background: #fff;
	color: var(--cgr-blue);
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 80ms ease-out, color 80ms ease-out;
}
.cgr-btn:hover,
.cgr-btn:focus-visible { background: #eef5ff; color: var(--cgr-blue-dark); }
.cgr-btn--primary { background: var(--cgr-blue); color: #fff; }
.cgr-btn--primary:hover,
.cgr-btn--primary:focus-visible { background: var(--cgr-blue-dark); color: #fff; }
.cgr-btn:active { transform: translateY(1px); }
.cgr-btn[aria-busy="true"] { opacity: .6; cursor: progress; }

/* ── stars ── */
.cgr-stars {
	display: inline-flex;
	font-size: 15px;
	line-height: 1;
	letter-spacing: 1px;
	white-space: nowrap;
}
.cgr-stars__on { color: var(--cgr-star); }
.cgr-stars__off { color: var(--cgr-line); }

/* ── list ── */
.cgr__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 14px;
}
.cgr--grid .cgr__list { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.cgr--list .cgr__list { grid-template-columns: 1fr; gap: 0; }

.cgr-card {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
	padding: 16px;
	border: 1px solid var(--cgr-line);
	border-radius: 12px;
	background: #fff;
}
.cgr--list .cgr-card {
	padding: 16px 0;
	border: 0;
	border-bottom: 1px solid var(--cgr-line);
	border-radius: 0;
	background: transparent;
}
.cgr--list .cgr-card:last-child { border-bottom: 0; }

.cgr-card__head {
	display: flex;
	align-items: center;
	gap: 10px;
}
.cgr-card__head .cgr-g { margin-left: auto; flex: 0 0 auto; }
.cgr-card__avatar {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	font-size: 14px;
	font-weight: 700;
	color: #fff;
}
/* Six tones, all ≥ 4.5:1 behind white letters. */
.cgr-tone-0 { background: #1d4ed8; }
.cgr-tone-1 { background: #047857; }
.cgr-tone-2 { background: #7c3aed; }
.cgr-tone-3 { background: #b45309; }
.cgr-tone-4 { background: #be185d; }
.cgr-tone-5 { background: #0e7490; }
.cgr-card__who {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.cgr-card__name {
	font-size: 14px;
	font-weight: 700;
	color: var(--cgr-title);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.cgr-card__date {
	font-size: 12px;
	color: var(--cgr-muted);
}
.cgr-card__text {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	overflow-wrap: anywhere;
}
/* JS clamps long texts and adds "Leer más"; without JS the full text shows. */
.cgr--js .cgr-card__text.is-clamped {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 6;
	line-clamp: 6;
	overflow: hidden;
}
.cgr-card__toggle {
	align-self: flex-start;
	padding: 0;
	border: 0;
	background: none;
	color: var(--cgr-blue);
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}
.cgr-card__toggle:hover { text-decoration: underline; }
.cgr-card__reply {
	margin-top: 2px;
	padding: 10px 12px;
	border-left: 3px solid var(--cgr-blue);
	border-radius: 0 8px 8px 0;
	background: #f5f9ff;
	font-size: 13px;
	line-height: 1.5;
}
.cgr-card__reply-by {
	display: block;
	margin-bottom: 2px;
	font-weight: 700;
	color: var(--cgr-title);
}
.cgr-card__reply p { margin: 0; overflow-wrap: anywhere; }

.cgr__more-wrap { display: flex; justify-content: center; margin-top: 18px; }
.cgr__more { min-width: 220px; }
.cgr__error { margin: 10px 0 0; text-align: center; font-size: 13px; color: #b91c1c; }
.cgr__all { margin: 14px 0 0; font-size: 14px; }
.cgr__all a { color: var(--cgr-blue); font-weight: 600; text-decoration: none; }
.cgr__all a:hover { text-decoration: underline; }

@media (max-width: 549px) {
	.cgr-summary { padding: 16px; }
	.cgr-summary__ctas { margin-left: 0; width: 100%; }
	.cgr-summary__ctas .cgr-btn { flex: 1 1 auto; }
}
