/**
 * Mejoras de tarjetas de rifa (complemento a main.css).
 */

.theme-rifa .tr-raffle-card {
	border-radius: 1rem;
	overflow: hidden;
	transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 12px rgba(15, 23, 42, 0.04);
}

.theme-rifa .tr-raffle-card:hover {
	transform: translateY(-3px);
	border-color: color-mix(in srgb, var(--tr-brand, #111) 22%, #e6ebf1);
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
}

.theme-rifa .tr-raffle-card-image img {
	transition: transform 0.45s ease;
}

.theme-rifa .tr-raffle-card:hover .tr-raffle-card-image img {
	transform: scale(1.04);
}

.theme-rifa .tr-raffle-card-image__shade {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, transparent 42%);
}

.theme-rifa .tr-raffle-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	border-radius: 999px;
	backdrop-filter: blur(8px);
	background: rgba(17, 17, 17, 0.88);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.theme-rifa .tr-raffle-badge__dot {
	width: 0.375rem;
	height: 0.375rem;
	border-radius: 999px;
	background: #34d399;
	box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.25);
	animation: tr-raffle-pulse 1.8s ease-in-out infinite;
}

@keyframes tr-raffle-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.45; }
}

.theme-rifa .tr-raffle-card-title a {
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.3;
}

.theme-rifa .tr-raffle-card-price__amount {
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: -0.01em;
	font-variant-numeric: tabular-nums;
	color: #697386;
}

.theme-rifa .tr-raffle-card-price__amount .amount,
.theme-rifa .tr-raffle-card-price__amount bdi,
.theme-rifa .tr-raffle-card-price__amount .woocommerce-Price-amount {
	color: inherit;
	font-weight: inherit;
	font-size: inherit;
}

.theme-rifa .tr-per-sticker {
	font-size: 0.875rem;
	font-weight: 400;
	color: #8792a2;
}

.theme-rifa .tr-raffle-progress {
	height: 0.375rem;
	border-radius: 999px;
	overflow: hidden;
	background: #eef1f5;
}

.theme-rifa .tr-raffle-progress-bar {
	height: 100%;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--tr-brand, #111) 0%, #525252 100%);
}

.theme-rifa .tr-raffle-stats {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 0.4rem;
}

.theme-rifa .tr-raffle-stats__sold {
	font-weight: 600;
	color: #4b5563;
	font-variant-numeric: tabular-nums;
}

.theme-rifa .tr-raffle-card__btn {
	gap: 0.5rem;
}

.theme-rifa .tr-raffle-card__btn-icon {
	flex-shrink: 0;
	transition: transform 0.18s ease;
}

.theme-rifa .tr-raffle-card:hover .tr-raffle-card__btn-icon {
	transform: translateX(3px);
}

.theme-rifa .tr-raffle-card--finished:hover {
	transform: none;
}
