/* ── Puntos Ya: Category carousel ────────────────────────────────────────── */

.py-categories {
	max-width: var(--container-max, 1200px);
	margin: 0 auto;
}

.py-category-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 18px;
	height: 100%;
	min-height: 150px;
	padding: 26px 12px;
	border: 1px solid var(--py-border, #e5e5e5);
	border-radius: var(--py-radius, 14px);
	background: var(--py-bg, #fff);
	text-decoration: none;
	position: relative;
	transition:
		transform 0.25s var(--py-ease, ease),
		background-color 0.25s var(--py-ease, ease),
		border-color 0.25s var(--py-ease, ease),
		box-shadow 0.25s var(--py-ease, ease);
}

.py-category-card:hover {
	transform: translateY(-4px);
	border-color: #d6d6d6;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.py-category-card__icon {
	width: 54px;
	height: 54px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.25s var(--py-ease, ease);
}

.py-category-card__icon img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	transition: filter 0.25s ease;
}

.py-category-card:hover .py-category-card__icon {
	transform: scale(1.08);
}

.py-category-card__name {
	color: var(--py-text, #1a1a1a);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
	text-align: center;
	transition: color 0.25s ease;
}

/* Active (selected) state — solid orange, like the Figma "Cámaras" card. */
.py-category-card.is-active {
	background: var(--py-orange, #E85D04);
	border-color: var(--py-orange, #E85D04);
	box-shadow: 0 12px 26px rgba(232, 93, 4, 0.28);
}
.py-category-card.is-active .py-category-card__name {
	color: #fff;
}
.py-category-card.is-active .py-category-card__icon img {
	/* Category thumbnails are dark line icons – invert to white over orange. */
	filter: brightness(0) invert(1);
}

@media (max-width: 767px) {
	.py-category-card {
		min-height: 130px;
		gap: 12px;
		padding: 20px 10px;
	}
	.py-category-card__icon {
		width: 44px;
		height: 44px;
	}
	.py-category-card__name {
		font-size: 14px;
	}
}
