/* Websy Reseñas — estilos base. Los colores/tamaños se sobrescriben desde Elementor. */

.wr-carousel {
	position: relative;
	width: 100%;
	--wr-spv: 3;
	--wr-gap: 10px;
}

@media (max-width: 1024px) {
	.wr-carousel { --wr-spv: 2; }
}

@media (max-width: 767px) {
	.wr-carousel { --wr-spv: 1; }
}

.wr-carousel *,
.wr-carousel *::before,
.wr-carousel *::after {
	box-sizing: border-box;
}

/* Escenario: aquí viven las flechas */
.wr-stage {
	position: relative;
	padding: 0 40px;
}

@media (max-width: 767px) {
	.wr-stage { padding: 0; }
}

.wr-viewport {
	overflow: hidden;
	touch-action: pan-y;
	cursor: grab;
}

.wr-viewport.is-dragging {
	cursor: grabbing;
}

.wr-track {
	position: relative;
	display: flex;
	gap: var(--wr-gap);
	transition-property: transform;
	transition-duration: 500ms;
	transition-timing-function: ease;
	will-change: transform;
}

.wr-track.is-dragging {
	transition: none;
}

.wr-slide {
	position: relative;
	flex: 0 0 calc((100% - (var(--wr-spv) - 1) * var(--wr-gap)) / var(--wr-spv));
	min-width: 0;
}

/* La tarjeta con hover queda por encima de las vecinas al crecer */
.wr-slide:hover {
	z-index: 2;
}

/* Tarjeta */
.wr-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	border-radius: 20px;
	transform: translateY(var(--wr-lift, 0px)) scale(var(--wr-grow, 1));
	transform-origin: center center;
	transition-property: background-color, border-color, box-shadow, transform, color;
	transition-duration: 300ms;
	transition-timing-function: ease;
}

:where(.wr-carousel) .wr-card {
	background-color: #ffffff;
}

/* Imagen */
.wr-image {
	flex: 0 0 auto;
	overflow: hidden;
	line-height: 0;
	text-align: center;
}

.wr-image img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: 180px;
	margin: 0 auto;
	object-fit: cover;
	pointer-events: none;
	user-select: none;
	-webkit-user-drag: none;
	transition-property: transform;
	transition-duration: 300ms;
}

/* Cuerpo */
.wr-body {
	flex: 1 1 auto;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 14px 16px;
}

.wr-info {
	min-width: 0;
}

.wr-carousel .wr-name {
	margin: 0;
	padding: 0;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	transition: color 300ms;
}

.wr-sub {
	display: block;
	margin-top: 2px;
	font-size: 13px;
	line-height: 1.3;
	transition: color 300ms;
}

.wr-carousel .wr-review {
	margin: 8px 0 0;
	padding: 0;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.5;
	transition: color 300ms;
}

:where(.wr-carousel) .wr-name { color: #222222; }
:where(.wr-carousel) .wr-sub { color: #333333; }
:where(.wr-carousel) .wr-review { color: #555555; }

/* Estrellas */
.wr-stars {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	flex: 0 0 auto;
	line-height: 0;
}

.wr-star {
	display: inline-flex;
	width: 16px;
	height: 16px;
	transition: color 300ms;
}

.wr-star svg {
	width: 100%;
	height: 100%;
	fill: currentColor;
}

:where(.wr-carousel) .wr-star { color: #d9d9d9; }
:where(.wr-carousel) .wr-star.is-filled { color: #ffc800; }

/* Flechas */
.wr-carousel .wr-arrow {
	position: absolute;
	top: 50%;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	font-size: 14px;
	line-height: 1;
	cursor: pointer;
	transform: translateY(-50%);
	box-shadow: none;
	text-transform: none;
	-webkit-appearance: none;
	appearance: none;
	transition: background-color 300ms, color 300ms, border-color 300ms, box-shadow 300ms, opacity 300ms;
}

.wr-carousel .wr-arrow--prev { left: 0; }
.wr-carousel .wr-arrow--next { right: 0; }

.wr-arrow i { color: inherit; line-height: 1; }
.wr-arrow svg { width: 1em; height: 1em; fill: currentColor; }

.wr-carousel .wr-arrow.is-disabled {
	cursor: default;
	pointer-events: none;
}

.wr-carousel .wr-arrow:focus-visible,
.wr-carousel .wr-dot:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

:where(.wr-carousel) .wr-arrow { background-color: #2d2a70; color: #ffffff; }
:where(.wr-carousel) .wr-arrow.is-disabled { background-color: #b8b6c7; }

/* Dots */
.wr-dots {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 16px;
}

.wr-carousel .wr-dot {
	display: block;
	width: 8px;
	height: 8px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	box-shadow: none;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	transition: background-color 300ms, width 300ms, border-color 300ms;
}

:where(.wr-carousel) .wr-dot { background-color: #c9c7d6; }
:where(.wr-carousel) .wr-dot.is-active { background-color: #2d2a70; width: 24px; }

@media (prefers-reduced-motion: reduce) {
	.wr-track { transition-duration: 1ms !important; }
}
