/**
 * Axón Google Reviews — estilos de front-end.
 * Todo va prefijado con .agr para no chocar con el tema.
 */

.agr {
	--agr-accent: #1a73e8;
	--agr-radius: 12px;
	--agr-gap: 20px;
	--agr-per-view-xl: 4;
	--agr-per-view: var(--agr-per-view-xl);
	--agr-surface: #f5f6f7;
	--agr-text: #202124;
	--agr-muted: #70757a;
	--agr-star: #fbbc04;
	--agr-star-empty: #dadce0;
	--agr-nav: #9aa0a6;
	--agr-nav-size: 42px;
	--agr-star-shape: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2l2.9 6.3 6.9.8-5.1 4.7 1.4 6.8L12 17.3 5.9 20.6l1.4-6.8L2.2 9.1l6.9-.8z"/></svg>');

	position: relative;
	color: var(--agr-text);
	font-size: 16px;
	line-height: 1.45;
	box-sizing: border-box;
}

.agr *,
.agr *::before,
.agr *::after {
	box-sizing: inherit;
}

.agr--theme-dark {
	--agr-surface: #202124;
	--agr-text: #e8eaed;
	--agr-muted: #9aa0a6;
	--agr-star-empty: #5f6368;
	--agr-nav: #5f6368;
}

/* ---------- Encabezado ---------- */

.agr__header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 26px 30px;
	margin-bottom: var(--agr-gap);
	background: var(--agr-surface);
	border-radius: calc(var(--agr-radius) + 4px);
}

.agr__brand-top {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 6px;
}

.agr__logo {
	display: inline-block;
	height: 19px;
	width: auto;
}

.agr__logo--text {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 30px;
	font-weight: 500;
	letter-spacing: -0.5px;
	line-height: 1;
}

.agr__brand-word {
	font-size: 27px;
	font-weight: 700;
	letter-spacing: -0.3px;
}

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

.agr__score-value {
	font-size: 30px;
	font-weight: 700;
	line-height: 1;
}

.agr__score .agr__stars {
	font-size: 25px;
}

.agr__score-count {
	color: var(--agr-muted);
	font-size: 18px;
}

.agr__cta {
	display: inline-block;
	padding: 14px 26px;
	border-radius: 999px;
	background: var(--agr-accent);
	color: #fff;
	font-size: 17px;
	font-weight: 600;
	text-decoration: none;
	transition: filter 0.15s ease;
}

.agr__cta:hover,
.agr__cta:focus-visible {
	color: #fff;
	filter: brightness(0.92);
}

/* ---------- Estrellas ---------- */

.agr__stars {
	display: inline-flex;
	gap: 2px;
	font-size: 19px;
	line-height: 1;
}

.agr__star {
	position: relative;
	display: inline-block;
	width: 1em;
	height: 1em;
	background: var(--agr-star-empty);
	-webkit-mask: var(--agr-star-shape) center / contain no-repeat;
	mask: var(--agr-star-shape) center / contain no-repeat;
}

.agr__star-fill {
	position: absolute;
	inset: 0 auto 0 0;
	background: var(--agr-star);
}

/* ---------- Pista y tarjetas ---------- */

.agr__viewport {
	position: relative;
}

.agr__track-wrap {
	overflow: hidden;
}

.agr__track {
	display: flex;
	gap: var(--agr-gap);
	margin: 0;
	padding: 0;
	list-style: none;
	transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
	will-change: transform;
}

.agr__track.is-dragging {
	transition: none;
	cursor: grabbing;
}

.agr__slide {
	flex: 0 0 calc((100% - (var(--agr-per-view) - 1) * var(--agr-gap)) / var(--agr-per-view));
	min-width: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.agr__card {
	height: 100%;
	padding: 24px;
	background: var(--agr-surface);
	border-radius: var(--agr-radius);
}

.agr--shadow .agr__card,
.agr--shadow .agr__header {
	box-shadow: 0 1px 3px rgba(60, 64, 67, 0.16), 0 4px 10px rgba(60, 64, 67, 0.08);
}

.agr__card-head {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 14px;
}

.agr__avatar {
	position: relative;
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #4285f4;
	overflow: visible;
}

.agr__avatar img {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
}

.agr__avatar-initial {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	color: #fff;
	font-size: 20px;
	font-weight: 600;
}

.agr__avatar-badge {
	position: absolute;
	right: -3px;
	bottom: -3px;
	width: 19px;
	height: 19px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	border-radius: 50%;
	box-shadow: 0 0 0 1.5px #fff;
}

.agr__avatar-badge svg {
	width: 13px;
	height: 13px;
}

.agr__meta {
	min-width: 0;
}

.agr__author {
	display: flex;
	align-items: center;
	gap: 5px;
	margin: 0;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.3;
}

.agr__author a {
	color: inherit;
	text-decoration: none;
}

.agr__author a:hover {
	text-decoration: underline;
}

.agr__date {
	margin: 2px 0 0;
	color: var(--agr-muted);
	font-size: 14px;
}

.agr__body {
	margin-top: 12px;
}

.agr__text {
	margin: 0;
	font-size: 16px;
	white-space: pre-line;
	overflow-wrap: break-word;
}

.agr__more {
	margin-top: 6px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--agr-accent);
	font-size: 16px;
	font-family: inherit;
	cursor: pointer;
}

.agr__more:hover {
	text-decoration: underline;
}

/* ---------- Navegación ---------- */

.agr__nav {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--agr-nav-size);
	height: var(--agr-nav-size);
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--agr-nav);
	color: #fff;
	cursor: pointer;
	transform: translateY(-50%);
	transition: opacity 0.2s ease, background 0.2s ease;
}

.agr__nav svg {
	width: 22px;
	height: 22px;
}

.agr__nav--prev {
	left: calc( var(--agr-nav-size) / -2 );
}

.agr__nav--next {
	right: calc( var(--agr-nav-size) / -2 );
}

.agr__nav:hover {
	background: var(--agr-text);
}

.agr__nav[disabled] {
	opacity: 0.3;
	cursor: default;
}

.agr__dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 18px;
}

.agr__dot {
	width: 7px;
	height: 7px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--agr-star-empty);
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
}

.agr__dot[aria-selected="true"] {
	background: var(--agr-dot-active, #d6fe51);
	transform: scale(1.25);
}

.agr__nav:focus-visible,
.agr__dot:focus-visible,
.agr__more:focus-visible,
.agr__cta:focus-visible {
	outline: 2px solid var(--agr-accent);
	outline-offset: 3px;
}

.agr__source {
	margin: 12px 0 0;
	font-size: 14px;
}

.agr__source a {
	color: var(--agr-muted);
	text-decoration: none;
}

.agr__source a:hover,
.agr__source a:focus-visible {
	color: var(--agr-accent);
	text-decoration: underline;
}

.agr__disclosure {
	margin: 14px 0 0;
	color: var(--agr-disclosure, var(--agr-muted));
	font-size: 12px;
	line-height: 1.5;
}

.agr__attribution {
	margin: 14px 0 0;
	text-align: right;
}

.agr__attribution .agr__logo--text {
	font-size: 18px;
}

/* ---------- Layouts alternativos ---------- */

.agr--grid .agr__track {
	display: grid;
	grid-template-columns: repeat(var(--agr-per-view), minmax(0, 1fr));
	transform: none !important;
}

.agr--grid .agr__slide,
.agr--list .agr__slide {
	flex: none;
	width: auto;
}

.agr--list .agr__track {
	flex-direction: column;
	transform: none !important;
}

.agr--grid .agr__track-wrap,
.agr--list .agr__track-wrap {
	overflow: visible;
}

/* ---------- Responsive ---------- */

.agr {
	container-type: inline-size;
	container-name: agr;
}

@container agr (max-width: 1150px) {
	.agr__track { --agr-per-view: min(3, var(--agr-per-view-xl)); }
}

@container agr (max-width: 860px) {
	.agr__track { --agr-per-view: min(2, var(--agr-per-view-xl)); }
}

@container agr (max-width: 560px) {
	.agr__track { --agr-per-view: 1; }
}

@container agr (max-width: 700px) {
	.agr__nav { display: none; }
	.agr__header { padding: 20px; }
	.agr__score-value { font-size: 26px; }
	.agr__dot { width: 10px; height: 10px; }
	.agr__dots { gap: 10px; margin-top: 22px; }
}

@media (prefers-reduced-motion: reduce) {
	.agr__track {
		transition: none;
	}
}

/* ---------- Aviso para editores ---------- */

.agr__notice {
	padding: 14px 16px;
	border-left: 4px solid #d93025;
	background: #fce8e6;
	color: #202124;
	font-size: 14px;
	border-radius: 4px;
}
