/**
 * Grooum Review Slider — estilos
 * Tarjeta con imagen, degradado inferior y estrellas de puntuación
 * (Let's Review) en la parte superior.
 */

.grw-wrap {
	--grw-radius: 16px;
	--grw-ink: #111114;
	--grw-star: #ffffff;
	--grw-star-off: rgba(255, 255, 255, 0.35);
	position: relative;
	margin: 40px 0;
}

.grw-header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 18px;
}

.grw-header__title {
	font-weight: 800;
	font-size: 15px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--grw-ink);
}

.grw-header__viewall {
	font-size: 13px;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	color: inherit;
	opacity: 0.75;
	white-space: nowrap;
	transition: opacity 0.2s ease;
}

.grw-header__viewall:hover {
	opacity: 1;
}

/* Slider container */
.grw-slider-outer {
	position: relative;
}

.grw-slider {
	position: relative;
	padding-bottom: 6px;
	overflow: hidden;
	border-radius: var(--grw-radius);
}

.grw-slider .swiper-wrapper {
	align-items: stretch;
}

/* Card */
.grw-card {
	height: 100%;
	border-radius: var(--grw-radius);
	overflow: hidden;
	background: #eee;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
	transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.grw-card:hover {
	box-shadow: 0 16px 34px -14px rgba(0, 0, 0, 0.35);
	transform: translateY(-2px);
}

.grw-card__link {
	display: block !important;
	color: inherit;
	text-decoration: none !important;
	height: 100%;
}

/* Altura fija y controlada: nada de tarjetas gigantes, y esto
   evita que reglas del tema (img { height:auto } etc.) rompan el
   posicionado de la imagen y del texto superpuesto. */
.grw-card__media {
    position: relative !important;
    height: 320px; /* <-- Cambia 260px por 320px o 340px */
    overflow: hidden !important;
    background: #1a1a1a;
}

.grw-card__img {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	object-fit: cover !important;
	transform: scale(1.02);
	transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.grw-card__img--placeholder {
	background: linear-gradient(135deg, #2b2b2f, #17171a);
}

.grw-card:hover .grw-card__img {
	transform: scale(1.08);
}

.grw-card__gradient {
	position: absolute !important;
	inset: 0 !important;
	z-index: 1;
	background: linear-gradient(
		to top,
		rgba(0, 0, 0, 0.88) 0%,
		rgba(0, 0, 0, 0.5) 30%,
		rgba(0, 0, 0, 0) 58%,
		rgba(0, 0, 0, 0.3) 100%
	);
	pointer-events: none;
}

/* Badge de puntuación — estrellas, arriba de la tarjeta */
.grw-card__rating {
	position: absolute !important;
	top: 12px !important;
	right: 12px !important;
	z-index: 3;
}

.grw-rating {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	padding: 7px 10px 8px;
	border-radius: 12px;
	background: rgba(17, 17, 20, 0.55);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
	color: #fff;
	line-height: 1;
}


.grw-rating__stars {
	position: relative;
	display: inline-block;
	white-space: nowrap;
	color: var(--grw-star-off);
}

.grw-rating__stars-bg,
.grw-rating__stars-fg {
	display: flex;
	gap: 1px;
	white-space: nowrap;
}

.grw-rating__stars-fg {
	position: absolute;
	top: 0;
	left: 0;
	overflow: hidden;
	color: var(--grw-star);
}

.grw-rating__stars svg {
	display: block;
	flex: none;
}

.grw-card__body {
	position: absolute !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	z-index: 2;
	padding: 16px;
	color: #fff;
}

.grw-card__cat {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.75);
	margin-bottom: 6px;
}

.grw-card__title {
	font-size: 18px;
	line-height: 1.28;
	font-weight: 800;
	margin: 0;
	color: #fff;
}

.grw-card__excerpt {
	margin: 8px 0 0;
	font-size: 13px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.82);
}

/* Flechas de navegación */
.grw-nav {
	position: absolute;
	top: 42%;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	color: #111;
	cursor: pointer;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
	transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
	transform: translateY(-50%);
}

.grw-nav:hover {
	background: #fff;
	transform: translateY(-50%) scale(1.06);
}

.grw-nav--prev {
	left: -4px;
}

.grw-nav--next {
	right: -4px;
}

.grw-nav.swiper-button-disabled {
	opacity: 0;
	pointer-events: none;
}

/* Paginación (puntos) */
.grw-pagination {
	position: relative;
	display: flex;
	justify-content: center;
	gap: 6px;
	margin-top: 14px;
}

.grw-pagination .swiper-pagination-bullet {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.3);
	opacity: 1;
	margin: 0 !important;
	transition: width 0.25s ease, background 0.25s ease;
}

.grw-pagination .swiper-pagination-bullet-active {
	width: 18px;
	border-radius: 4px;
	background: #ffffff;
}

@media (max-width: 782px) {
	.grw-card__media {
		height: 280px;
	}

	.grw-nav {
		width: 34px;
		height: 34px;
	}

	.grw-card__title {
		font-size: 16px;
	}

	.grw-nav--prev {
		left: 4px;
	}

	.grw-nav--next {
		right: 4px;
	}
}
