/* Google Reviews Slider */
.grs {
	--grs-accent: #fbbc04;
	--grs-cols: 3;
	--grs-gap: 20px;
	--grs-bg: #ffffff;
	--grs-card: #ffffff;
	--grs-text: #1f1f1f;
	--grs-muted: #5f6368;
	--grs-border: #e3e6ea;
	--grs-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
	position: relative;
	font-family: inherit;
	color: var(--grs-text);
	padding: 0 4px;
	box-sizing: border-box;
}
.grs *, .grs *::before, .grs *::after { box-sizing: border-box; }
.grs--dark {
	--grs-card: #1e2126;
	--grs-text: #f1f3f4;
	--grs-muted: #9aa0a6;
	--grs-border: #2f343a;
	--grs-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.grs-notice {
	padding: 12px 16px; border: 1px dashed #c33; color: #c33; border-radius: 8px; font-size: 14px;
}

/* Cabecera */
.grs__header {
	display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
	margin: 0 0 22px;
}
.grs__glogo { width: 40px; height: 40px; flex: 0 0 auto; }
.grs__header-text { flex: 1 1 auto; min-width: 180px; }
.grs__biz { font-weight: 700; font-size: 18px; line-height: 1.2; }
.grs__summary { display: flex; align-items: center; gap: 8px; margin-top: 4px; color: var(--grs-muted); font-size: 14px; }
.grs__avg { font-weight: 700; font-size: 16px; color: var(--grs-text); }
.grs__cta {
	display: inline-block; padding: 9px 16px; border-radius: 999px;
	background: #1a73e8; color: #fff !important; text-decoration: none !important;
	font-size: 14px; font-weight: 600; transition: background .2s;
}
.grs__cta:hover { background: #1558b0; }

/* Estrellas */
.grs__stars { display: inline-flex; gap: 2px; line-height: 0; }
.grs__star { position: relative; width: 16px; height: 16px; display: inline-block; }
.grs__star svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: #d7dadd; }
.grs__star::after {
	content: ""; position: absolute; inset: 0; width: var(--grs-fill, 0%); overflow: hidden;
	background: var(--grs-accent);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01z'/%3E%3C/svg%3E") left / 16px 16px no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01z'/%3E%3C/svg%3E") left / 16px 16px no-repeat;
}

/* Carrusel */
.grs__viewport { overflow: hidden; padding: 6px 2px 10px; }
.grs__track {
	display: flex; gap: var(--grs-gap);
	transition: transform .45s cubic-bezier(.22,.61,.36,1);
	will-change: transform;
}
.grs__slide {
	flex: 0 0 calc((100% - (var(--grs-cols) - 1) * var(--grs-gap)) / var(--grs-cols));
	min-width: 0; display: flex;
}
.grs__card {
	background: var(--grs-card); border: 1px solid var(--grs-border);
	border-radius: 14px; box-shadow: var(--grs-shadow);
	padding: 18px 18px 16px; width: 100%; display: flex; flex-direction: column;
}
.grs__card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.grs__avatar {
	width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: 0 0 auto;
	background: #e8eaed;
}
.grs__avatar--initial {
	display: inline-flex; align-items: center; justify-content: center;
	font-weight: 700; color: #fff; background: #1a73e8; font-size: 18px;
}
.grs__meta { flex: 1 1 auto; min-width: 0; }
.grs__author { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grs__author a { color: inherit; text-decoration: none; }
.grs__row { display: flex; align-items: center; gap: 8px; margin-top: 3px; }
.grs__time { font-size: 12px; color: var(--grs-muted); }
.grs__g { width: 20px; height: 20px; flex: 0 0 auto; opacity: .9; }
.grs__text { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--grs-text); white-space: pre-line; }
.grs__more {
	align-self: flex-start; margin-top: 6px; padding: 0; border: 0; background: none;
	color: #1a73e8; font-size: 13px; font-weight: 600; cursor: pointer;
}
.grs__reply {
	margin-top: 12px; padding: 10px 12px; border-left: 3px solid var(--grs-accent);
	background: rgba(127,127,127,.08); border-radius: 6px; font-size: 13px; line-height: 1.5; color: var(--grs-muted);
}
.grs__reply strong { color: var(--grs-text); }

/* Flechas */
.grs__arrow {
	position: absolute; top: 50%; transform: translateY(-50%);
	width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--grs-border);
	background: var(--grs-card); color: var(--grs-text); box-shadow: var(--grs-shadow);
	cursor: pointer; font-size: 14px; line-height: 1; z-index: 2;
	display: flex; align-items: center; justify-content: center; transition: opacity .2s, transform .2s;
}
.grs__arrow:hover { transform: translateY(-50%) scale(1.06); }
.grs__arrow--prev { left: -14px; }
.grs__arrow--next { right: -14px; }
.grs__arrow[disabled] { opacity: .35; cursor: default; }
.grs--no-nav .grs__arrow, .grs--no-nav .grs__dots { display: none; }

/* Puntos */
.grs__dots { display: flex; justify-content: center; gap: 8px; margin-top: 8px; }
.grs__dot {
	width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0;
	background: var(--grs-border); cursor: pointer; transition: background .2s, transform .2s;
}
.grs__dot.is-active { background: var(--grs-accent); transform: scale(1.3); }

/* Responsive */
@media (max-width: 1024px) { .grs { --grs-cols: 2 !important; } }
@media (max-width: 640px) {
	.grs { --grs-cols: 1 !important; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; }
	.grs__header { flex: 0 0 100%; order: 0; margin-bottom: 8px; }
	.grs__viewport { flex: 0 0 100%; order: 1; }
	.grs__arrow { position: static; transform: none; width: 36px; height: 36px; }
	.grs__arrow:hover { transform: none; }
	.grs__arrow--prev { order: 2; }
	.grs__dots { order: 3; margin: 0; }
	.grs__arrow--next { order: 4; }
}
