/*!
 * JR Ficha de Contenedor - v1.0.0
 * Estilos theme-proof para el shortcode [ficha_contenedor] y el filtro
 * de short description de WooCommerce.
 */

.jr-ficha {
	--jr-ficha-accent: #dc2626;
	--jr-ficha-accent-soft: #fee2e2;
	--jr-ficha-accent-strong: #991b1b;
	--jr-ficha-text: #111827;
	--jr-ficha-text-soft: #4b5563;
	--jr-ficha-muted: #6b7280;
	--jr-ficha-muted-light: #9ca3af;
	--jr-ficha-border: #e5e7eb;
	--jr-ficha-bg: #ffffff;
	--jr-ficha-bg-soft: #fafaf9;

	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
	             "Helvetica Neue", Arial, sans-serif !important;
	color: var(--jr-ficha-text) !important;
	line-height: 1.5 !important;
	text-align: left !important;
	margin: 0 0 16px !important;
	padding: 0 !important;
}

.jr-ficha,
.jr-ficha *,
.jr-ficha *::before,
.jr-ficha *::after {
	box-sizing: border-box !important;
}

/* ---------- Badge de categoría ---------- */
.jr-ficha .jr-ficha__tag {
	display: inline-flex !important;
	align-items: center !important;
	gap: 6px !important;
	margin: 0 0 14px !important;
	padding: 4px 9px !important;
	background: var(--jr-ficha-accent-soft) !important;
	color: var(--jr-ficha-accent-strong) !important;
	font-size: 11px !important;
	font-weight: 600 !important;
	letter-spacing: 0.06em !important;
	text-transform: uppercase !important;
	border: 0 !important;
	border-radius: 4px !important;
	line-height: 1.4 !important;
}
.jr-ficha .jr-ficha__tag::before {
	content: '' !important;
	width: 5px !important;
	height: 5px !important;
	border-radius: 50% !important;
	background: var(--jr-ficha-accent-strong) !important;
	flex-shrink: 0 !important;
}

/* ---------- Descripción ---------- */
.jr-ficha .jr-ficha__desc {
	font-size: 14px !important;
	color: var(--jr-ficha-text-soft) !important;
	line-height: 1.6 !important;
	margin: 0 0 18px !important;
}
.jr-ficha .jr-ficha__desc p {
	margin: 0 0 8px !important;
	color: inherit !important;
	font-size: inherit !important;
	line-height: inherit !important;
}
.jr-ficha .jr-ficha__desc p:last-child {
	margin-bottom: 0 !important;
}

/* ---------- Grid de dimensiones ---------- */
.jr-ficha .jr-ficha__dims {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	gap: 8px !important;
	margin: 0 0 14px !important;
	padding: 0 !important;
	list-style: none !important;
}

.jr-ficha .jr-ficha__dim {
	background: var(--jr-ficha-bg) !important;
	border: 1px solid var(--jr-ficha-border) !important;
	border-radius: 10px !important;
	padding: 12px 10px !important;
	text-align: center !important;
	margin: 0 !important;
	transition: border-color 0.2s ease, transform 0.2s ease !important;
}
.jr-ficha .jr-ficha__dim:hover {
	border-color: var(--jr-ficha-muted-light) !important;
	transform: translateY(-1px) !important;
}

.jr-ficha .jr-ficha__dim-icon {
	width: 22px !important;
	height: 22px !important;
	margin: 0 auto 6px !important;
	display: block !important;
	color: var(--jr-ficha-accent-strong) !important;
}

.jr-ficha .jr-ficha__dim-label {
	font-size: 10px !important;
	font-weight: 600 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.05em !important;
	color: var(--jr-ficha-muted) !important;
	margin: 0 0 2px !important;
	line-height: 1.3 !important;
}

.jr-ficha .jr-ficha__dim-value {
	font-size: 17px !important;
	font-weight: 700 !important;
	color: var(--jr-ficha-text) !important;
	line-height: 1.1 !important;
	font-variant-numeric: tabular-nums !important;
	margin: 0 !important;
}

.jr-ficha .jr-ficha__dim-unit {
	font-size: 11px !important;
	color: var(--jr-ficha-muted-light) !important;
	font-weight: 400 !important;
	margin-left: 2px !important;
}

/* ---------- Meta (equivalencia) ---------- */
.jr-ficha .jr-ficha__meta {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 10px !important;
	padding: 10px 14px !important;
	background: var(--jr-ficha-bg-soft) !important;
	border: 1px solid var(--jr-ficha-border) !important;
	border-radius: 10px !important;
	font-size: 13px !important;
	margin: 0 !important;
}

.jr-ficha .jr-ficha__meta-label {
	color: var(--jr-ficha-muted) !important;
	font-weight: 400 !important;
}

.jr-ficha .jr-ficha__meta-value {
	font-weight: 600 !important;
	color: var(--jr-ficha-text) !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 360px) {
	.jr-ficha .jr-ficha__dims {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
	.jr-ficha .jr-ficha__dim-value {
		font-size: 15px !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.jr-ficha .jr-ficha__dim {
		transition: none !important;
	}
}
