.cgr {
	--cgr-accent: #0a25c3;
	--cgr-text: #222;
	--cgr-muted: #70757a;
	--cgr-border: #e3ddd6;
	--cgr-card: #fff;
	--cgr-gap: 20px;
	--cgr-cols: 3;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 16px;
	color: var(--cgr-text);
	font-family: inherit;
	box-sizing: border-box;
}
.cgr *, .cgr *::before, .cgr *::after { box-sizing: border-box; }

/* Cabecera: resumen + botones */
.cgr-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 20px;
}
.cgr-summary {
	display: flex;
	align-items: center;
	gap: 14px;
	color: var(--cgr-text) !important;
	text-decoration: none !important;
}
.cgr-summary-score {
	font-size: 3.2rem;
	font-weight: 600;
	line-height: 1;
	letter-spacing: -.02em;
}
.cgr-summary-detail { display: flex; flex-direction: column; gap: 6px; }
.cgr-summary .cgr-star { width: 24px; height: 24px; }
.cgr-summary-count {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 5px;
	font-size: 1rem;
	color: var(--cgr-muted);
}
.cgr-summary-count strong { color: var(--cgr-text); font-weight: 600; }
.cgr-summary-count .cgr-g { width: 18px; height: 18px; }
a.cgr-summary:hover .cgr-summary-count strong { text-decoration: underline; }

.cgr-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cgr-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 18px;
	border: 2px solid var(--cgr-accent);
	border-radius: 3px;
	background: var(--cgr-accent);
	color: #fff !important;
	font-weight: 600;
	font-size: .9rem;
	line-height: 1.2;
	text-decoration: none !important;
	text-transform: uppercase;
	transition: filter .15s, background-color .15s, color .15s;
}
.cgr-btn:hover, .cgr-btn:focus-visible { filter: brightness(1.15); }
.cgr-btn--ghost { background: transparent; color: var(--cgr-accent) !important; }
.cgr-btn--ghost:hover, .cgr-btn--ghost:focus-visible { background: var(--cgr-accent); color: #fff !important; filter: none; }

/* Slider */
.cgr-slider { position: relative; padding: 0 52px; }
.cgr-track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - (var(--cgr-cols) - 1) * var(--cgr-gap)) / var(--cgr-cols));
	gap: var(--cgr-gap);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	padding: 4px 2px 8px;
	outline: none;
}
.cgr-track::-webkit-scrollbar { display: none; }

.cgr-card {
	scroll-snap-align: start;
	display: flex;
	flex-direction: column;
	gap: 10px;
	background: var(--cgr-card);
	border: 1px solid var(--cgr-border);
	border-radius: 6px;
	padding: 20px;
	min-width: 0;
}
.cgr-card-head { display: flex; align-items: center; gap: 12px; }
.cgr-card-head > .cgr-g { width: 20px; height: 20px; margin-left: auto; flex: none; align-self: flex-start; }

.cgr-avatar {
	position: relative;
	flex: none;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	overflow: hidden;
	background: var(--cgr-accent);
}
.cgr-avatar::before {
	content: attr(data-initial);
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	color: #fff;
	font-weight: 600;
	font-size: 1.1rem;
}
.cgr-avatar img { position: relative; display: block; width: 100%; height: 100%; object-fit: cover; }

.cgr-who { display: flex; flex-direction: column; min-width: 0; }
.cgr-name {
	font-weight: 600;
	color: var(--cgr-text) !important;
	text-decoration: none !important;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
a.cgr-name:hover { text-decoration: underline !important; }
.cgr-date { color: var(--cgr-muted); font-size: .85rem; }

.cgr-stars { display: inline-flex; gap: 1px; line-height: 0; }
.cgr-star { width: 18px; height: 18px; }
.cgr-star.is-full { fill: #fbbc04; }
.cgr-star.is-half { fill: url(#cgr-h); }
.cgr-star.is-empty { fill: #dadce0; }

.cgr-text {
	font-size: .95rem;
	line-height: 1.55;
	overflow-wrap: anywhere;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 5;
	overflow: hidden;
}
.cgr-card.is-open .cgr-text { -webkit-line-clamp: unset; display: block; }
.cgr-more {
	align-self: flex-start;
	padding: 0;
	border: 0;
	background: none;
	color: var(--cgr-muted);
	font: inherit;
	font-size: .85rem;
	cursor: pointer;
	text-decoration: underline;
}
.cgr-more:hover { color: var(--cgr-text); background: none; }

.cgr-nav {
	position: absolute;
	top: 50%;
	z-index: 2;
	width: 40px;
	height: 40px;
	margin-top: -24px;
	padding: 0;
	border: 1px solid var(--cgr-border);
	border-radius: 50%;
	background: #fff;
	color: var(--cgr-text);
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
	display: grid;
	place-items: center;
}
.cgr-nav:hover, .cgr-nav:focus-visible { background: #fff; color: var(--cgr-accent); }
.cgr-nav[disabled] { opacity: 0; pointer-events: none; }
.cgr-prev { left: 0; }
.cgr-next { right: 0; }

.cgr-dots { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.cgr-dots button {
	width: 8px;
	height: 8px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #b9b2aa;
	cursor: pointer;
	transition: width .2s, background-color .2s;
}
.cgr-dots button[aria-current="true"] { width: 22px; border-radius: 4px; background: var(--cgr-accent); }

@media (max-width: 1024px) { .cgr { --cgr-cols: 2; } }
@media (max-width: 680px) {
	.cgr { --cgr-cols: 1; --cgr-gap: 12px; }
	.cgr-head { flex-direction: column; align-items: stretch; }
	.cgr-summary { justify-content: center; }
	.cgr-summary-score { font-size: 2.8rem; }
	.cgr-actions .cgr-btn { flex: 1 1 auto; }
	.cgr-slider { padding: 0 38px; }
	.cgr-nav { width: 32px; height: 32px; margin-top: -20px; font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) { .cgr-track { scroll-behavior: auto; } }
