/* We Are Games – Cajas de Amazon */

.wag-amz {
	--wag-amz-accent: #8f0000;
	--wag-amz-accent-hover: #6e0000;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin: 0 0 1.5em;
	text-align: center;
}

.wag-amz--cols-1 {
	grid-template-columns: minmax(0, 1fr);
	max-width: 320px;
	margin-left: auto;
	margin-right: auto;
}

/* Filas cortas centradas, con tarjetas del mismo tamaño que en las filas de 4. */
.wag-amz--cols-2 {
	max-width: 540px;
	margin-left: auto;
	margin-right: auto;
}

@media (min-width: 850px) {
	.wag-amz--cols-3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		max-width: 75%;
		margin-left: auto;
		margin-right: auto;
	}
	.wag-amz--cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.wag-amz--cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
	.wag-amz--cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

.wag-amz__item {
	display: flex;
	flex-direction: column;
	padding: 12px;
	background: #fff;
	border: 1px solid #e6e6e6;
	border-radius: 6px;
	transition: box-shadow 0.2s ease;
}

.wag-amz__item:hover {
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.wag-amz__media {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1 / 1;
	overflow: hidden;
}

.wag-amz__media img,
.wag-amz__img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	margin: 0;
}

.wag-amz__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: #b5b5b5;
	background: #f6f6f6;
	border-radius: 4px;
}

.wag-amz__title {
	display: -webkit-box;
	flex-grow: 1;
	margin: 0.7em 0;
	overflow: hidden;
	color: #222;
	font-size: 0.95em;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.wag-amz__title:hover {
	color: var(--wag-amz-accent);
}

.wag-amz__item--basic .wag-amz__title {
	color: #666;
	font-weight: 400;
}

.wag-amz__btn,
.wag-amz-cta .wag-amz__btn {
	display: block;
	padding: 0.65em 0.8em;
	color: #fff;
	background: var(--wag-amz-accent, #8f0000);
	border-radius: 4px;
	font-size: 0.9em;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	transition: background 0.2s ease;
}

.wag-amz__btn:hover,
.wag-amz__btn:focus {
	color: #fff;
	background: var(--wag-amz-accent-hover, #6e0000);
}

.wag-amz-cta {
	margin: 1em auto 1.5em;
	max-width: 520px;
	text-align: center;
}

.wag-amz__btn--wide {
	display: inline-block;
	padding: 0.8em 1.4em;
	font-size: 1em;
}

.wag-amz-link {
	font-weight: 600;
}

.wag-amz-disclosure {
	margin: -0.5em 0 1.5em;
	color: #888;
	font-size: 0.75em;
	text-align: center;
}
