/* DU Google Reviews — carrusel */
.dugr {
	--dugr-border: #EFDBC3;
	--dugr-text: #210203;
	--dugr-star: #F9C22E;
	--dugr-star-off: #EFDBC3;
	--dugr-accent: #C0202A;
	--dugr-bg: #fff;
	--dugr-gap: 16px;
	--dugr-per-view: 2.35;
	container-type: inline-size;
	position: relative;
	width: 100%;
	max-width: 100%;
	color: var(--dugr-text);
	font-family: inherit;
	box-sizing: border-box;
}
.dugr *, .dugr *::before, .dugr *::after { box-sizing: border-box; }

.dugr .dugr__summary {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0 0 14px;
	font-size: 16px;
	line-height: 1.2;
}
.dugr__avg { font-weight: 600; }
.dugr__summary .dugr__star { width: 18px; height: 18px; }
.dugr__count { color: #21020382; color: rgba(33, 2, 3, .51); }

.dugr__viewport { position: relative; }

.dugr__track {
	display: flex;
	gap: var(--dugr-gap);
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
	outline: none;
}
.dugr__track::-webkit-scrollbar { display: none; }
.dugr__track:focus-visible { outline: 2px solid var(--dugr-accent); outline-offset: 2px; }

.dugr__card {
	flex: 0 0 calc((100% - (var(--dugr-per-view) - 1) * var(--dugr-gap)) / var(--dugr-per-view));
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 18px;
	min-height: 128px;
	margin: 0;
	padding: 16px;
	background: var(--dugr-bg);
	border: 1px solid var(--dugr-border);
	border-radius: 2px;
	scroll-snap-align: start;
}
.dugr__card::before { content: none; }

.dugr .dugr__text {
	margin: 0;
	font-size: 14px;
	line-height: 1.3;
	font-weight: 400;
	color: var(--dugr-text);
	display: -webkit-box;
	-webkit-line-clamp: 6;
	-webkit-box-orient: vertical;
	overflow: hidden;
	word-break: break-word;
}

.dugr__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}
.dugr .dugr__author {
	font-size: 14px;
	font-weight: 600;
	color: var(--dugr-text);
	text-decoration: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	min-width: 0;
}
a.dugr__author:hover { text-decoration: underline; color: var(--dugr-text); }

.dugr__stars { display: inline-flex; gap: 4px; flex-shrink: 0; }
.dugr__star { display: inline-block; width: 15px; height: 15px; line-height: 0; }
.dugr__star svg { width: 100%; height: 100%; fill: var(--dugr-star-off); }
.dugr__star--on svg { fill: var(--dugr-star); }

/* Degradado blanco sobre la tarjeta parcialmente visible */
.dugr__viewport::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 16%;
	max-width: 140px;
	pointer-events: none;
	background: linear-gradient(to right, rgba(255, 255, 255, 0), var(--dugr-bg) 85%);
	transition: opacity .2s ease;
}
.dugr.is-end .dugr__viewport::after,
.dugr.is-static .dugr__viewport::after { opacity: 0; }

.dugr__nav {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--dugr-accent);
	color: #fff;
	cursor: pointer;
	transform: translateY(-50%);
	box-shadow: 0 1px 4px rgba(0, 0, 0, .18);
	transition: transform .15s ease, opacity .2s ease;
}
.dugr__nav:hover, .dugr__nav:focus { background: var(--dugr-accent); color: #fff; }
.dugr__nav:hover { transform: translateY(-50%) scale(1.08); }
.dugr__nav:focus-visible { outline: 2px solid var(--dugr-text); outline-offset: 2px; }
.dugr__nav svg { width: 16px; height: 16px; }
.dugr__nav--next { right: 6px; }
.dugr__nav--prev { left: -6px; }
.dugr__nav[hidden] { display: none; }

.dugr .dugr__attr {
	margin: 8px 0 0;
	font-size: 11px;
	line-height: 1.2;
	color: rgba(33, 2, 3, .55);
	text-align: right;
}
.dugr__attr a { color: inherit; text-decoration: underline; }

/* Se adapta al ancho del contenedor (popup incluido), no solo al de la pantalla */
@container (max-width: 560px) {
	.dugr__viewport { --dugr-per-view: 1.2; --dugr-gap: 10px; }
}
@container (min-width: 561px) and (max-width: 820px) {
	.dugr__viewport { --dugr-per-view: 2.35; }
}
@container (min-width: 821px) {
	.dugr__viewport { --dugr-per-view: 3.3; }
}
@supports not (container-type: inline-size) {
	@media (max-width: 600px) { .dugr { --dugr-per-view: 1.2; --dugr-gap: 10px; } }
}
@media (prefers-reduced-motion: reduce) {
	.dugr__track { scroll-behavior: auto; }
}

/* [du_google_rating] — hereda fuente y tamaño del contenedor. */
.dugr-rating { display: inline-flex; align-items: center; gap: 6px; line-height: 1.2; color: #210203; text-decoration: none; }
a.dugr-rating:hover .dugr-rating__count { text-decoration: underline; }
.dugr-rating__avg { font-weight: 600; color: #210203; }
.dugr-rating .dugr-rating__star { width: 1.1em; height: 1.1em; }
.dugr-rating .dugr-rating__star svg { fill: #F9C22E; fill: var(--dugr-star, #F9C22E); }
.dugr-rating__count { color: #21020382; color: rgba(33, 2, 3, .51); }
