/**
 * Plantilla "Reviews" — vídeos Boast, reseñas destacadas (instalación / producto) y partners. Figma node 396-9391.
 * Las tarjetas son las mismas para GuildQuality y Stamped; solo cambia el color de la etiqueta de fuente.
 */
.akx-rv-video {
	padding: 72px 0 80px;
	background: #f1f0ef;
}

.akx-rv .akx-rv-video__badge {
	margin: 0;
	flex-shrink: 0;
	white-space: nowrap;
	padding: 12px 22px 12px 20px;
	border: 1px solid #cdcbca;
	border-radius: 10px;
	background: #fff;
	font: 400 14px/22px 'Jost', sans-serif;
	color: #141b4d;
}

.akx-rv-featured {
	padding: 80px 0;
	background: #fff;
}

.akx-rv-featured--product {
	background: #f1f0ef;
}

.akx-rv-featured .akx-rv-container {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.akx-rv-featured .akx-rv-head {
	/* Figma: 28px entre cabecera y fila de tarjetas. El contenedor ya aporta 8px de gap, así que el margen de la
	   cabecera (28px, genérico) se queda en 20px para no sumar 36px. */
	margin-bottom: 20px;
}

.akx-rv-featured__row {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	/* Figma: 28px hasta el enlace. = 16 + 8 (gap del contenedor) + 4 (margin-top del .akx-rv-textlink). */
	margin-bottom: 16px;
}

.akx-rv-card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	box-sizing: border-box;
	padding: 24px;
	border: 1px solid #cdcbca;
	border-radius: 16px;
	background: #fff;
}

.akx-rv .akx-rv-card__source {
	margin: 0;
	font: 700 11px/16px 'Jost', sans-serif;
	text-transform: uppercase;
	color: #2b497b;
}

.akx-rv .akx-rv-card__quote {
	margin: 0 0 auto;
	font: 400 16px/24px 'Jost', sans-serif;
	color: #404040;
}

.akx-rv .akx-rv-card__name {
	margin: 12px 0 0;
	font: 700 16px/24px 'Jost', sans-serif;
	color: #141b4d;
}

.akx-rv .akx-rv-card__meta {
	margin: 0;
	font: 400 12px/16px 'Jost', sans-serif;
	color: #63666a;
}

/* Tarjetas de instalación con fotos antes/después (Figma "Featured installation review"): fotos de 365×220 a todo el
   ancho, con etiquetas "Before"/"After"; el cuerpo lleva el relleno de 24px y empuja nombre y fecha abajo. */
.akx-rv-card--photos {
	padding: 0;
	overflow: hidden;
	gap: 0;
}

.akx-rv-card__photos {
	display: flex;
	gap: 2px;
	height: 220px;
}

.akx-rv-card__photo {
	position: relative;
	flex: 1 1 0;
	min-width: 0;
	margin: 0;
}

.akx-rv-card__photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Fotos ampliables (visor de Photo Gallery, js/photo-gallery/lightbox.js): el enlace .akx-pg__open cubre la foto y la
   etiqueta Before/After deja pasar el clic. */
.akx-rv-card__photo .akx-pg__open {
	height: 100%;
}

.akx-rv-card__photo figcaption {
	pointer-events: none;
	position: absolute;
	top: 8px;
	left: 8px;
	padding: 3px 8px;
	border-radius: 4px;
	background: #141b4d;
	font: 600 11px/16px 'Jost', sans-serif;
	color: #fff;
}

.akx-rv-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 12px;
	padding: 24px;
}

/* Tablet: foto a la izquierda (260px, antes sobre después); móvil: fotos arriba (ver abajo). */
@media (min-width: 641px) and (max-width: 900px) {
	.akx-rv-card--photos {
		flex-direction: row;
	}

	.akx-rv-card--photos .akx-rv-card__photos {
		flex: 0 0 260px;
		flex-direction: column;
		height: auto;
	}

	.akx-rv-card--photos .akx-rv-card__photo {
		min-height: 150px;
	}
}

/* Partners */
.akx-rv-partners {
	padding: 44px 0;
	border-block: 1px solid #cdcbca;
	background: #f1f0ef;
}

.akx-rv-partners__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 28px;
}

.akx-rv .akx-rv-partners__title {
	margin: 0;
	font: 700 16px/24px 'Jost', sans-serif;
	text-align: center;
	text-transform: none;
	color: #141b4d;
}

.akx-rv-partners__row {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 24px 64px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.akx-rv-partners__item {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 168px;
	height: 46px;
	font: 700 16px/24px 'Jost', sans-serif;
	color: #141b4d;
}

.akx-rv-partners__item img {
	display: block;
	max-width: 168px;
	max-height: 46px;
	width: auto;
	height: auto;
}

/* Compensación óptica de los logos (SVG con tamaños intrínsecos muy distintos): alto fijo por marca para que
   los tres pesen parecido. Lowe's 54×25 y Home Depot 26×26 se ampliaban poco; Amazon 603×182 llenaba los 46px. */
.akx-rv-partners__item img[src*="lowes"] {
	width: 64px;
	height: 29px;
}

.akx-rv-partners__item img[src*="home-depot"] {
	width: 40px;
	height: 40px;
}

.akx-rv-partners__item img[src*="amazon"] {
	width: 88px;
	height: auto;
}

.akx-rv .akx-rv-partners__note {
	margin: 0;
	font: 400 16px/24px 'Jost', sans-serif;
	text-align: center;
	color: #141b4d;
}

.akx-rv a.akx-rv-partners__link {
	font-weight: 700;
	color: #cb333b;
	text-decoration: none;
	text-decoration-color: currentcolor;
	text-underline-offset: 3px;
}

/* Sin subrayado por defecto: el subrayado rojo es el único efecto de hover. */
.akx-rv a.akx-rv-partners__link:hover,
.akx-rv a.akx-rv-partners__link:focus-visible {
	background: none;
	color: #cb333b;
	text-decoration: underline;
}

@media (max-width: 900px) {
	.akx-rv-featured__row {
		grid-template-columns: 1fr;
	}

	.akx-rv-featured,
	.akx-rv-video {
		padding: 48px 0;
	}
}

/* Controles del carrusel de vídeos (Boast): puntos a la izquierda y flechas a la derecha (js/reviews-page/video-controls.js). */
.akx-rv-video .swiper-pagination {
	display: none;
}

.akx-rv-video__controls {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 24px;
}

.akx-rv-video__dots {
	display: flex;
	align-items: center;
	gap: 6px;
}

.akx-rv-video .akx-rv-video__dot {
	width: 8px;
	height: 8px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: #cdcbca;
	cursor: pointer;
	transition: width 0.2s ease, background-color 0.2s ease;
}

.akx-rv-video .akx-rv-video__dot.is-active {
	width: 18px;
	background: #141b4d;
}

.akx-rv-video__arrows {
	display: flex;
	gap: 8px;
}

.akx-rv-video .akx-rv-video__arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid #cdcbca;
	border-radius: 50%;
	background: #fff;
	color: #141b4d;
	cursor: pointer;
	transition: border-color 0.2s ease, opacity 0.2s ease;
}

.akx-rv-video .akx-rv-video__arrow:hover:not(:disabled) {
	border-color: #141b4d;
}

.akx-rv-video .akx-rv-video__arrow:disabled {
	opacity: 0.45;
	cursor: default;
}

.akx-rv-video .akx-rv-video__dot:focus-visible,
.akx-rv-video .akx-rv-video__arrow:focus-visible {
	outline: 2px solid #62b5e5;
	outline-offset: 2px;
}

/* Tarjetas del carrusel de Boast: esquinas redondeadas y sombra como en el Figma. El contenido es del widget, por
   eso se estiliza solo el contenedor de cada tarjeta. El padding del swiper evita que su overflow recorte la sombra. */
.akx-rv-video .boast-component .swiper-container {
	padding: 4px 6px 20px;
	margin: -4px -6px 0;
}

.akx-rv-video .boast-component .swiper-slide {
	overflow: hidden;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 2px 4px rgba(20, 27, 77, 0.06), 0 8px 20px rgba(20, 27, 77, 0.1);
}

.akx-rv-video .boast-component .response-carousel-card__media {
	border-radius: 14px 14px 0 0;
}

/* Tarjetas de producto (Figma 2026-11, "Featured product review"): fuente → producto → estrellas → texto completo →
   foto del cliente → nombre + badge "Verified Buyer" → fecha. Mismo marco que el resto de tarjetas (24px, gap 12). */
.akx-rv .akx-rv-card__product {
	margin: 0;
	font: 500 14px/16px 'Jost', sans-serif;
	color: #63666a;
}

/* Estrellas de 18px con 4px de separación (las del helper miden 14px, que es el tamaño de las tarjetas de resumen). */
.akx-rv-card--product .akx-rv-stars,
.akx-rv-featured--installation .akx-rv-stars {
	gap: 4px;
}

.akx-rv-card--product .akx-rv-stars__star {
	width: 18px;
	height: 17px;
}

/* Figma de instalación: estrellas de 18×18 y fecha de encuesta con línea de 17px (la ubicación, de 16px). Con esto
   la tarjeta mide los 624px del diseño. */
.akx-rv-featured--installation .akx-rv-stars__star {
	width: 18px;
	height: 18px;
}

.akx-rv .akx-rv-card__body .akx-rv-card__meta:last-child {
	line-height: 17px;
}

.akx-rv .akx-rv-card--product .akx-rv-card__quote {
	margin: 0;
}

/* El enlace del visor se ajusta a la foto (el .akx-pg__open genérico ocupa el 100 % de la tarjeta). */
.akx-rv .akx-rv-card__zoom {
	align-self: flex-start;
	width: auto;
	max-width: 100%;
	height: auto;
}

/* Foto del cliente: 140px de alto, ancho según su proporción (en el Figma 105 y 187px), borde y radio de 8px. */
.akx-rv-card__customer-photo {
	display: block;
	box-sizing: border-box;
	/* La tarjeta es una columna flex: sin align-self el <img> se estiraba al ancho completo. */
	align-self: flex-start;
	width: auto;
	max-width: 100%;
	height: 140px;
	border: 1px solid #e3e1df;
	border-radius: 8px;
	object-fit: cover;
}

/* El Figma lleva un separador que crece: empuja nombre y fecha al pie para que las tres tarjetas queden alineadas. */
.akx-rv-card__reviewer {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: auto;
	padding-top: 12px;
}

.akx-rv .akx-rv-card__reviewer .akx-rv-card__name {
	margin: 0;
}

.akx-rv-card__verified {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 3px 10px 3px 8px;
	border-radius: 999px;
	background: #e2ecf8;
	font: 500 12px/17px 'Jost', sans-serif;
	color: #141b4d;
}

.akx-rv-card__verified svg {
	flex: none;
	color: #141b4d;
}

.akx-rv .akx-rv-card--product .akx-rv-card__meta {
	line-height: 17px;
}
