.vgw {
	--vgw-star: #fbbc04;
	--vgw-star-off: #d9d9d9;
	--vgw-bg: #ffffff;
	--vgw-border: #e5e5e5;
	--vgw-text: #222222;
	--vgw-muted: #666666;
	--vgw-radius: 12px;
	--vgw-gap: 16px;
	margin: 1.5em 0;
	color: var(--vgw-text);
}

.vgw-error {
	padding: 10px 12px;
	border: 1px solid #d63638;
	border-radius: 6px;
	color: #d63638;
	font-size: 14px;
}

/* Resumen */
.vgw-summary {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	margin-bottom: var(--vgw-gap);
}

.vgw-score {
	font-size: 2.2em;
	font-weight: 600;
	line-height: 1;
}

.vgw-summary-meta {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.vgw-count {
	font-size: 0.85em;
	color: var(--vgw-muted);
	text-decoration: none;
}

a.vgw-count:hover {
	text-decoration: underline;
}

.vgw-cta {
	margin-left: auto;
	padding: 8px 14px;
	border: 1px solid var(--vgw-border);
	border-radius: 999px;
	font-size: 0.85em;
	color: var(--vgw-text);
	text-decoration: none;
	background: var(--vgw-bg);
}

.vgw-cta:hover {
	border-color: var(--vgw-text);
}

/* Estrellas (admiten decimales con --vgw-rating) */
.vgw-stars {
	display: inline-block;
	font-size: 1.15em;
	line-height: 1;
	letter-spacing: 2px;
	background: linear-gradient(90deg, var(--vgw-star) var(--vgw-rating, 100%), var(--vgw-star-off) var(--vgw-rating, 100%));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	-webkit-text-fill-color: transparent;
}

/* Lista y tarjetas */
.vgw-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.vgw--grid .vgw-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: var(--vgw-gap);
}

.vgw-card {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
	padding: 16px;
	background: var(--vgw-bg);
	border: 1px solid var(--vgw-border);
	border-radius: var(--vgw-radius);
}

.vgw-author {
	display: flex;
	align-items: center;
	gap: 10px;
}

.vgw-author > div {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.vgw-avatar {
	flex: none;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	object-fit: cover;
}

.vgw-avatar--initial {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #e8f0fe;
	color: #1a4fa0;
	font-weight: 600;
}

.vgw-name {
	font-size: 0.9em;
	font-weight: 600;
	color: var(--vgw-text);
	text-decoration: none;
}

a.vgw-name:hover {
	text-decoration: underline;
}

.vgw-time {
	font-size: 0.75em;
	color: var(--vgw-muted);
}

.vgw-text {
	margin: 0;
	font-size: 0.92em;
	line-height: 1.55;
}

.vgw-more {
	margin-top: auto;
	font-size: 0.8em;
	color: var(--vgw-muted);
}

.vgw-attribution {
	margin: 12px 0 0;
	text-align: right;
	font-size: 0.75em;
	color: var(--vgw-muted);
}

/* Carrusel */
.vgw-wrap {
	position: relative;
}

.vgw--carousel .vgw-list {
	display: flex;
	gap: var(--vgw-gap);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	padding: 2px;
}

.vgw--carousel .vgw-list::-webkit-scrollbar {
	display: none;
}

.vgw--carousel .vgw-card {
	flex: 0 0 min(300px, 85%);
	scroll-snap-align: start;
}

.vgw-nav {
	position: absolute;
	top: 50%;
	z-index: 2;
	width: 36px;
	height: 36px;
	margin-top: -18px;
	padding: 0;
	border: 1px solid var(--vgw-border);
	border-radius: 50%;
	background: var(--vgw-bg);
	color: var(--vgw-text);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.vgw-nav:hover {
	border-color: var(--vgw-text);
}

.vgw-prev {
	left: -10px;
}

.vgw-next {
	right: -10px;
}

@media (max-width: 600px) {
	.vgw-prev { left: 0; }
	.vgw-next { right: 0; }
	.vgw-cta { margin-left: 0; }
}
