/* Cartas de King of Redactors en la tienda (plugin kor-cartas-tienda). */
.hcp-kor-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 18px 14px;
	margin: 1em 0;
}
.hcp-kor-item {
	display: flex;
	flex-direction: column;
	gap: 6px;
	color: inherit;
	text-decoration: none;
	min-width: 0;
}
.hcp-kor-item img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 4.25;
	object-fit: cover;
	border-radius: 8px;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
	transition: transform .2s;
}
.hcp-kor-item:hover > img { transform: translateY(-3px); }
.hcp-kor-item.is-locked img { filter: grayscale(1) brightness(.6); }
.hcp-kor-caption {
	display: flex;
	justify-content: space-between;
	gap: 6px;
	font-size: .85em;
	opacity: .85;
}
.hcp-kor-caption b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hcp-kor-get { font-size: .8em; font-weight: 700; }
/* Cabecera de la colección: la misma de «Insignias» en la portada de Mi cuenta. */
.hcp-kor-cabecera { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin: 0 0 12px; padding: 0 0 8px; border-bottom: 2px solid #cf2e2e; }
.hcp-kor-titulo { margin: 0; padding: 0; border: 0; background: transparent; color: #333; font-size: .9em; font-weight: 800; letter-spacing: .04em; line-height: 1.3; text-align: left; text-transform: uppercase; }
.hcp-kor-progreso { display: flex; align-items: center; gap: 8px; flex: 1 1 100px; max-width: 180px; min-width: 80px; }
.hcp-kor-progreso-barra { flex: 1; height: 8px; border-radius: 6px; background: #eee; overflow: hidden; }
.hcp-kor-progreso-fill { height: 100%; width: var(--hcp-kor-pct, 0%); background: #cf2e2e; border-radius: 6px; }
.hcp-kor-progreso-texto { font-size: .78em; font-weight: 700; color: #666; white-space: nowrap; text-transform: none; letter-spacing: 0; }

.hcp-kor-silhouette {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	width: 100%;
	aspect-ratio: 3 / 4.25;
	border-radius: 8px;
	border: 2px dashed rgba(127, 127, 127, .45);
	background: repeating-linear-gradient(135deg, rgba(127, 127, 127, .08) 0 10px, rgba(127, 127, 127, .14) 10px 20px);
	text-align: center;
}
.hcp-kor-silhouette .q { font-size: 3em; font-weight: 900; line-height: 1; opacity: .35; }
.hcp-kor-silhouette .k { font-size: .7em; letter-spacing: .12em; font-weight: 800; opacity: .7; }
.hcp-kor-silhouette .d { font-size: .85em; font-weight: 700; }

.hcp-kor-embed { max-width: 360px; margin: 1em auto; }
.hcp-kor-embed[data-kor-front], .hcp-kor-item[data-kor-front], .hcp-kor-open { cursor: zoom-in; }
.hcp-kor-embed img { display: block; width: 100%; height: auto; border-radius: 8px; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
.hcp-kor-embed iframe { display: block; width: 100%; aspect-ratio: 3 / 4.9; border: 0; background: transparent; }

.hcp-kor-notice {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 1.2em 0;
	padding: 12px;
	border-radius: 10px;
	border: 1px solid rgba(127, 127, 127, .3);
}
.hcp-kor-notice img, .hcp-kor-notice .hcp-kor-silhouette { flex: 0 0 90px; width: 90px; height: auto; border-radius: 6px; }
.hcp-kor-notice .hcp-kor-silhouette { font-size: .7em; }
.hcp-kor-notice p { margin: 0; line-height: 1.4; }

/* Carta en grande: se abre al pulsar una miniatura y gira al pulsarla. */
.hcp-kor-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	padding: 16px;
	background: rgba(0, 0, 0, .82);
	overflow: auto;
}
.hcp-kor-modal-card {
	width: min(90vw, calc(78vh * 3 / 4.25), 480px);
	aspect-ratio: 3 / 4.25;
	perspective: 1200px;
	cursor: pointer;
}
.hcp-kor-modal-card .in {
	display: block;
	position: relative;
	width: 100%;
	height: 100%;
	transform-style: preserve-3d;
	transition: transform .7s;
}
.hcp-kor-modal-card.is-flipped .in { transform: rotateY(180deg); }
.hcp-kor-modal-card img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border-radius: 14px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, .6);
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}
.hcp-kor-modal-card img.back { transform: rotateY(180deg); }
.hcp-kor-modal-link {
	color: #fff;
	font-weight: 700;
	text-decoration: underline;
}
@media (prefers-reduced-motion: reduce) {
	.hcp-kor-modal-card .in { transition: none; }
}
.hcp-kor-open { display: block; flex: 0 0 90px; width: 90px; }
.hcp-kor-open img { width: 100%; height: auto; }
