/* ==========================================================================
   Camisetas + Camisetas — Bloques del catálogo y personalizador
   ========================================================================== */

.cm-catalog,
.cm-ph,
.cm-cz,
.cm-hg,
.cm-qf {
	--c-red: var(--wp--preset--color--rojo, #d10f2d);
	--c-red-2: var(--wp--preset--color--rojo-claro, #ff2a45);
	--c-red-3: var(--wp--preset--color--rojo-oscuro, #97091f);
	--c-ink: var(--wp--preset--color--negro, #0b0b0d);
	--c-muted: #6b6b74;
	--c-line: rgba(11, 11, 13, 0.1);
	--c-soft: var(--wp--preset--color--humo, #f3f3f5);
	--c-wa: #1fa855;
	--f-display: var(--wp--preset--font-family--titulos, "Montserrat", "Arial Black", system-ui, sans-serif);
	--f-body: var(--wp--preset--font-family--texto, "Montserrat", system-ui, sans-serif);
	--f-hand: var(--wp--preset--font-family--texto, "Montserrat", system-ui, sans-serif);
	--r-lg: 28px;
	--r-md: 20px;
	--r-sm: 12px;
	--ease: cubic-bezier(0.16, 1, 0.3, 1);
	font-family: var(--f-body);
	color: var(--c-ink);
}

.cm-catalog *,
.cm-ph *,
.cm-cz *,
.cm-hg *,
.cm-qf * {
	box-sizing: border-box;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

/* ---------- Íconos y botones ---------- */
.cm-ico {
	display: inline-flex;
	flex: none;
}
.cm-ico svg {
	width: 1.15em;
	height: 1.15em;
	display: block;
}

.cm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55em;
	font: 700 0.95rem/1 var(--f-body, "Montserrat", sans-serif);
	padding: 1.05em 1.6em;
	border-radius: 999px;
	border: 1.5px solid transparent;
	text-decoration: none;
	cursor: pointer;
	white-space: nowrap;
	transition: transform 0.45s var(--ease, ease), background-color 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.45s var(--ease, ease);
}
.cm-btn:hover {
	transform: translateY(-2px);
}
.cm-btn:focus-visible {
	outline: 3px solid var(--c-red-2, #ff2a45);
	outline-offset: 3px;
}
.cm-btn--dark {
	background: #0b0b0d;
	color: #fff;
}
.cm-btn--dark:hover {
	background: #d10f2d;
	color: #fff;
}
.cm-btn--red {
	background: linear-gradient(135deg, #ff2a45, #d10f2d);
	color: #fff;
	box-shadow: 0 16px 34px -14px rgba(209, 15, 45, 0.7);
}
.cm-btn--red:hover {
	color: #fff;
	box-shadow: 0 22px 40px -14px rgba(209, 15, 45, 0.85);
}
.cm-btn--wa {
	background: #1fa855;
	color: #fff;
}
.cm-btn--wa:hover {
	background: #178a45;
	color: #fff;
}
.cm-btn--ghost {
	background: transparent;
	color: inherit;
	border-color: rgba(11, 11, 13, 0.22);
}
.cm-btn--ghost:hover {
	border-color: #d10f2d;
	color: #d10f2d;
}
.cm-btn--sm {
	padding: 0.78em 1.15em;
	font-size: 0.84rem;
}
.cm-btn[disabled] {
	opacity: 0.6;
	cursor: progress;
	transform: none;
}

.cm-link-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	background: none;
	border: 0;
	padding: 0.4em 0;
	font: 700 0.85rem var(--f-body);
	color: var(--c-ink);
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.cm-link-btn:hover {
	color: var(--c-red);
}
.cm-link-btn--danger {
	color: var(--c-red);
}

/* ---------- Chips y muestras de color ---------- */
.cm-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
	border: 1px solid var(--c-line);
	background: #fff;
	color: var(--c-ink);
	border-radius: 999px;
	padding: 0.7em 1.2em;
	font: 700 0.88rem/1 var(--f-body);
	cursor: pointer;
	transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.35s var(--ease);
}
.cm-chip:hover {
	border-color: var(--c-ink);
}
.cm-chip.is-active {
	background: var(--c-ink);
	border-color: var(--c-ink);
	color: #fff;
}
.cm-chip__n {
	font-size: 0.72em;
	opacity: 0.55;
}
.cm-chip--sm {
	padding: 0.55em 0.95em;
	font-size: 0.8rem;
}

.cm-swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
	align-items: center;
}
.cm-sw {
	--sw: #fff;
	position: relative;
	width: 22px;
	height: 22px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--sw);
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.16);
	cursor: pointer;
	transition: transform 0.3s var(--ease, ease);
}
.cm-sw::after {
	content: "";
	position: absolute;
	inset: -4px;
	border-radius: 50%;
	border: 2px solid transparent;
	transition: border-color 0.2s;
}
.cm-sw:hover {
	transform: scale(1.14);
}
.cm-sw.is-active::after {
	border-color: var(--c-ink, #0b0b0d);
}
.cm-sw:focus-visible {
	outline: 2px solid var(--c-red, #d10f2d);
	outline-offset: 5px;
}
.cm-swatches--lg {
	gap: 12px;
}
.cm-swatches--lg .cm-sw {
	width: 32px;
	height: 32px;
}
.cm-sw-more {
	font: 700 0.78rem var(--f-body);
	color: var(--c-muted);
	text-decoration: none;
}

.cm-tag {
	display: inline-flex;
	align-items: center;
	padding: 0.55em 0.95em;
	border-radius: 999px;
	background: var(--c-soft);
	font: 600 0.82rem/1.2 var(--f-body);
}

/* ---------- Catálogo ---------- */
.cm-filters {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin: 0 0 clamp(28px, 4vw, 52px);
}
.cm-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(var(--cm-cols, 3), minmax(0, 1fr));
	gap: clamp(16px, 2.4vw, 32px);
}
@media (max-width: 1100px) {
	.cm-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 640px) {
	.cm-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}
.cm-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--c-line);
	border-radius: var(--r-lg);
	overflow: hidden;
	transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease), border-color 0.4s;
}
.cm-card[hidden] {
	display: none;
}
.cm-card:hover {
	transform: translateY(-6px);
	border-color: transparent;
	box-shadow: 0 34px 60px -34px rgba(11, 11, 13, 0.45);
}
.cm-card.is-filtered-in {
	animation: cmCardIn 0.7s var(--ease) both;
	animation-delay: calc(var(--i, 0) * 70ms);
}
@keyframes cmCardIn {
	from {
		opacity: 0;
		transform: translateY(28px) scale(0.98);
	}
	to {
		opacity: 1;
		transform: none;
	}
}
.cm-card__media {
	position: relative;
	display: block;
	aspect-ratio: 1000 / 818;
	background: #fff;
	overflow: hidden;
	isolation: isolate;
}
.cm-card__word {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	z-index: 0;
	font: 900 clamp(4.2rem, 9vw, 7.4rem)/0.8 var(--f-display);
	letter-spacing: -0.06em;
	white-space: nowrap;
	background: linear-gradient(120deg, #ff2a45, #d10f2d 50%, #97091f);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	opacity: 0.22;
	transition: transform 1s var(--ease), opacity 0.6s;
	pointer-events: none;
}
.cm-card:hover .cm-card__word {
	transform: translate(-50%, -50%) scale(1.08);
	opacity: 0.32;
}
.cm-card__img {
	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	mix-blend-mode: multiply;
	transition: transform 1s var(--ease), opacity 0.2s;
}
.cm-card:hover .cm-card__img {
	transform: scale(1.05);
}
.cm-card__img.is-swapping,
.cm-ph__img.is-swapping {
	opacity: 0.3;
}
.cm-card__count {
	position: absolute;
	z-index: 2;
	top: 14px;
	left: 14px;
	padding: 0.5em 0.85em;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.88);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	font: 800 0.68rem/1 var(--f-body);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--c-ink);
}
.cm-card__body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1;
	padding: 22px 24px 24px;
}
.cm-card__meta {
	margin: 0;
	font: 800 0.7rem/1.3 var(--f-body);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--c-red);
}
.cm-card__title {
	margin: 0;
	font: 700 1.2rem/1.18 var(--f-display);
	letter-spacing: -0.02em;
}
.cm-card__title a {
	color: inherit;
	text-decoration: none;
}
.cm-card__title a:hover {
	color: var(--c-red);
}
.cm-card__tag {
	margin: 0;
	color: var(--c-muted);
	font-size: 0.95rem;
	line-height: 1.5;
}
.cm-card__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: auto;
	padding-top: 10px;
}
.cm-empty {
	text-align: center;
	color: var(--c-muted);
}

/* ---------- Ficha de producto ---------- */
.cm-ph {
	display: grid;
	grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
	gap: clamp(28px, 4.5vw, 72px);
	align-items: center;
}
@media (max-width: 920px) {
	.cm-ph {
		grid-template-columns: minmax(0, 1fr);
	}
}
.cm-ph__stage {
	position: relative;
	aspect-ratio: 1000 / 860;
	border-radius: clamp(24px, 3vw, 40px);
	overflow: hidden;
	background: #fff;
	isolation: isolate;
	box-shadow: 0 40px 80px -50px rgba(11, 11, 13, 0.45);
}
.cm-ph__word {
	position: absolute;
	left: 50%;
	top: 48%;
	transform: translate(-50%, -50%);
	z-index: 0;
	font: 900 clamp(5.5rem, 15vw, 13.5rem)/0.8 var(--f-display);
	letter-spacing: -0.06em;
	white-space: nowrap;
	background: linear-gradient(120deg, #ff2a45, #d10f2d 45%, #97091f);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	opacity: 0.2;
	pointer-events: none;
}
.cm-ph__figure {
	position: absolute;
	inset: 0;
	z-index: 1;
	margin: 0;
}
.cm-ph__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	mix-blend-mode: multiply;
	transition: opacity 0.25s;
}
.cm-ph__who {
	position: absolute;
	z-index: 2;
	top: 18px;
	right: 18px;
	display: inline-flex;
	gap: 4px;
	padding: 4px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.92);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	box-shadow: 0 12px 30px -18px rgba(11, 11, 13, 0.5);
}
.cm-ph__who button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 36px;
	padding: 4px 14px 4px 4px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	font: 700 0.82rem/1 var(--f-body);
	color: var(--c-ink);
	cursor: pointer;
	transition: background-color 0.25s, color 0.25s;
}
.cm-ph__who button:hover {
	background: rgba(11, 11, 13, 0.06);
}
.cm-ph__who button.is-active {
	background: var(--c-ink);
	color: #fff;
}
.cm-ph__who button:focus-visible {
	outline: 2px solid #d10f2d;
	outline-offset: 2px;
}
.cm-ph__who img {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	object-fit: cover;
	object-position: 50% 18%;
	background: #f3f3f5;
}
.cm-ph__pill {
	position: absolute;
	z-index: 2;
	left: 18px;
	bottom: 18px;
	display: inline-flex;
	align-items: center;
	gap: 0.6em;
	margin: 0;
	padding: 0.55em 1.05em 0.55em 0.6em;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.92);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	font: 700 0.85rem/1 var(--f-body);
	box-shadow: 0 10px 30px -14px rgba(0, 0, 0, 0.35);
}
.cm-ph__dot,
.cm-hg__dot {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--sw, var(--cm-g, #111));
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.16);
	transition: background-color 0.6s;
}
.cm-ph__crumbs {
	display: flex;
	gap: 0.5em;
	font: 600 0.82rem var(--f-body);
	color: var(--c-muted);
	margin-bottom: 18px;
}
.cm-ph__crumbs a {
	color: inherit;
	text-decoration: none;
}
.cm-ph__crumbs a:hover {
	color: var(--c-red);
}
.cm-ph__eyebrow {
	margin: 0 0 10px;
	font: 800 0.74rem/1.3 var(--f-body);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--c-red);
}
.cm-ph__title {
	margin: 0 0 14px;
	font: 800 clamp(2rem, 4.2vw, 3.5rem)/1.02 var(--f-display);
	letter-spacing: -0.035em;
}
.cm-ph__tag {
	margin: 0 0 10px;
	font: 600 clamp(1.05rem, 1.6vw, 1.25rem)/1.4 var(--f-body);
}
.cm-ph__excerpt {
	margin: 0 0 22px;
	color: var(--c-muted);
	line-height: 1.65;
}
.cm-ph__colors {
	padding: 18px 0;
	border-top: 1px solid var(--c-line);
	border-bottom: 1px solid var(--c-line);
	margin-bottom: 18px;
}
.cm-ph__label {
	margin: 0 0 14px;
	font-size: 0.95rem;
}
.cm-ph__label span {
	color: var(--c-muted);
}
.cm-ph__specs {
	list-style: none;
	margin: 0 0 18px;
	padding: 0;
	display: grid;
	gap: 9px;
}
.cm-ph__specs li {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	line-height: 1.45;
}
.cm-ph__specs .cm-ico {
	color: var(--c-red);
	margin-top: 0.1em;
}
.cm-ph__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 24px;
}
.cm-ph__cta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.cm-ph__note {
	margin: 16px 0 0;
	font-size: 0.86rem;
	color: var(--c-muted);
}

/* ---------- Prenda animada (portada) ---------- */
.cm-hg {
	position: relative;
	width: 100%;
	max-width: 560px;
	margin-inline: auto;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}
.cm-hg__stage {
	position: relative;
	aspect-ratio: 600 / 700;
}
.cm-hg svg,
.cm-cz__garment svg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
}
.cm-hg svg {
	filter: drop-shadow(0 50px 50px rgba(11, 11, 13, 0.16));
}
.cm-garment-svg [style] {
	transition: fill 0.8s var(--ease, ease);
}
.cm-hg__print {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 2px dashed var(--hg-ink, rgba(11, 11, 13, 0.32));
	border-radius: 16px;
	transition: border-color 0.8s;
}
.cm-hg__print span {
	font: italic 700 clamp(1.1rem, 2.4vw, 1.7rem)/1.1 var(--f-hand);
	color: var(--hg-ink, rgba(11, 11, 13, 0.55));
	text-align: center;
	transition: color 0.8s;
	padding: 0 8px;
}
.cm-hg.is-dark {
	--hg-ink: rgba(255, 255, 255, 0.72);
}
.cm-hg__label {
	color: #0b0b0d;
	position: absolute;
	right: 2%;
	bottom: 8%;
	display: inline-flex;
	align-items: center;
	gap: 0.6em;
	margin: 0;
	padding: 0.55em 1.05em 0.55em 0.6em;
	border-radius: 999px;
	background: #fff;
	font: 700 0.85rem/1 var(--f-body);
	box-shadow: 0 14px 34px -14px rgba(0, 0, 0, 0.35);
}
.cm-hg__dot {
	background: var(--cm-g);
}

/* ---------- Personalizador ---------- */
.cm-cz__layout {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	gap: clamp(20px, 3vw, 48px);
	align-items: start;
}
@media (max-width: 980px) {
	.cm-cz__layout {
		grid-template-columns: minmax(0, 1fr);
	}
}
.cm-cz__stage-col {
	position: sticky;
	top: 110px;
	display: grid;
	gap: 14px;
}
@media (max-width: 980px) {
	.cm-cz__stage-col {
		position: relative;
		top: auto;
	}
}
.cm-cz__stage {
	position: relative;
	aspect-ratio: 600 / 700;
	border-radius: clamp(22px, 3vw, 34px);
	overflow: hidden;
	/* Fondo de estudio fotográfico: luz suave al centro */
	background-color: #f1f1f4;
	background-image: radial-gradient(120% 95% at 50% 40%, #fcfcfd 0%, #f1f1f4 55%, #e1e1e7 100%);
	-webkit-user-select: none;
	user-select: none;
}
.cm-cz__garments,
.cm-cz__garment,
.cm-cz__shades,
.cm-cz__shade {
	position: absolute;
	inset: 0;
}
.cm-cz__garment svg,
.cm-cz__shade svg {
	display: block;
	width: 100%;
	height: 100%;
}
.cm-cz__garment[hidden],
.cm-cz__shade[hidden] {
	display: none;
}
/* Luces, pliegues y textura de la tela por ENCIMA del diseño: se ve impreso, no pegado. */
.cm-cz__shades {
	pointer-events: none;
	transform: translateZ(0);
}
.cm-cz__area {
	position: absolute;
	border-radius: 8px;
	outline: 1.5px dashed rgba(11, 11, 13, 0.3);
	transition: outline-color 0.3s;
}
.cm-cz__stage.is-dark .cm-cz__area {
	outline-color: rgba(255, 255, 255, 0.45);
}
.cm-cz__area.has-layers {
	outline-color: transparent;
}
.cm-cz__stage:hover .cm-cz__area.has-layers,
.cm-cz__stage.is-editing .cm-cz__area {
	outline-color: rgba(209, 15, 45, 0.65);
}
.cm-cz__area-hint {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 8px;
	text-align: center;
	font: italic 700 clamp(1rem, 2vw, 1.5rem)/1.1 var(--f-hand);
	color: rgba(11, 11, 13, 0.45);
	pointer-events: none;
}
.cm-cz__area-hint[hidden] {
	display: none;
}
.cm-cz__stage.is-dark .cm-cz__area-hint {
	color: rgba(255, 255, 255, 0.65);
}
.cm-cz__layers {
	position: absolute;
	inset: 0;
}
.cm-layer {
	position: absolute;
	touch-action: none;
	cursor: grab;
	outline: none;
	transform-origin: 50% 50%;
}
.cm-layer:active {
	cursor: grabbing;
}
.cm-layer img {
	display: block;
	width: 100%;
	height: auto;
	pointer-events: none;
	-webkit-user-select: none;
	user-select: none;
	-webkit-user-drag: none;
}
.cm-layer__text {
	display: block;
	white-space: pre;
	line-height: 1;
	pointer-events: none;
}
.cm-layer::before {
	content: "";
	position: absolute;
	inset: -6px;
	border: 1.5px solid transparent;
	border-radius: 4px;
	pointer-events: none;
}
.cm-layer.is-selected::before,
.cm-layer:focus-visible::before {
	border-color: #d10f2d;
	box-shadow: 0 0 0 9999px transparent;
}
.cm-layer__h {
	position: absolute;
	width: 24px;
	height: 24px;
	display: none;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #fff;
	border: 2px solid #d10f2d;
	color: #d10f2d;
	font: 700 15px/1 system-ui, sans-serif;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
	touch-action: none;
}
.cm-layer.is-selected .cm-layer__h {
	display: flex;
}
.cm-layer__h--scale {
	right: -18px;
	bottom: -18px;
	cursor: nwse-resize;
}
.cm-layer__h--rotate {
	left: 50%;
	top: -44px;
	margin-left: -12px;
	cursor: alias;
}
.cm-layer__h--rotate::after {
	content: "";
	position: absolute;
	top: 100%;
	left: 50%;
	width: 2px;
	height: 14px;
	margin-left: -1px;
	background: #d10f2d;
}
.cm-layer__h--del {
	right: -18px;
	top: -18px;
	background: #d10f2d;
	color: #fff;
	cursor: pointer;
}
.cm-cz__badge {
	position: absolute;
	top: 16px;
	left: 16px;
	margin: 0;
	padding: 0.5em 0.9em;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.9);
	font: 800 0.7rem/1 var(--f-body);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	pointer-events: none;
}
.cm-cz__toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}
.cm-cz__views {
	display: inline-flex;
	padding: 4px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid var(--c-line);
}
.cm-seg {
	border: 0;
	background: transparent;
	padding: 0.7em 1.3em;
	border-radius: 999px;
	font: 700 0.85rem/1 var(--f-body);
	color: var(--c-ink);
	cursor: pointer;
	transition: background-color 0.25s, color 0.25s;
}
.cm-seg.is-active {
	background: var(--c-ink);
	color: #fff;
}
.cm-cz__photo {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0;
	padding: 10px;
	border-radius: var(--r-md);
	background: #fff;
	border: 1px solid var(--c-line);
}
.cm-cz__photo img {
	width: 96px;
	height: 80px;
	object-fit: cover;
	border-radius: 12px;
	flex: none;
	background: #eee;
}
.cm-cz__photo img[hidden] {
	display: none;
}
.cm-cz__photos {
	display: flex;
	gap: 8px;
	flex: none;
}
.cm-cz__ph {
	position: relative;
	display: block;
	line-height: 0;
}
.cm-cz__ph[hidden],
.cm-cz__ph em[hidden] {
	display: none;
}
.cm-cz__ph em {
	position: absolute;
	left: 6px;
	bottom: 6px;
	padding: 0.35em 0.6em;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.92);
	font: 800 0.6rem/1 var(--f-body);
	font-style: normal;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--c-ink);
}
.cm-cz__photo.has-kids img {
	width: 84px;
	height: 72px;
	object-position: 50% 20%;
}
.cm-cz__photo figcaption {
	font-size: 0.9rem;
	color: var(--c-muted);
}
.cm-cz__photo figcaption strong {
	color: var(--c-ink);
}

.cm-cz__panel {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 14px;
	margin: 0;
}
.cm-cz__steps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 14px;
	counter-reset: czstep;
}
.cm-cz__step {
	counter-increment: czstep;
	margin: 0;
	padding: 20px 22px;
	border-radius: var(--r-md);
	background: #fff;
	border: 1px solid var(--c-line);
}
.cm-cz.is-locked .cm-cz__step--product {
	display: none;
}
.cm-cz__h {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.7em;
	margin: 0 0 16px;
	font: 700 1rem/1.25 var(--f-display);
	letter-spacing: -0.01em;
}
.cm-cz__h::before {
	content: counter(czstep, decimal-leading-zero);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.2em;
	height: 2.2em;
	border-radius: 50%;
	background: var(--c-ink);
	color: #fff;
	font: 800 0.7rem/1 var(--f-body);
}
.cm-cz__h-val {
	margin-left: auto;
	font: 600 0.85rem var(--f-body);
	color: var(--c-muted);
}
.cm-cz__products {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 10px;
}
.cm-cz__product {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 12px 8px 8px;
	border: 1.5px solid var(--c-line);
	border-radius: 14px;
	background: #fff;
	font: 700 0.8rem/1.2 var(--f-body);
	text-align: left;
	color: var(--c-ink);
	cursor: pointer;
	transition: border-color 0.25s, box-shadow 0.25s;
}
.cm-cz__product img {
	width: 46px;
	height: 46px;
	border-radius: 10px;
	object-fit: cover;
	flex: none;
	background: #eee;
}
.cm-cz__product:hover {
	border-color: rgba(11, 11, 13, 0.4);
}
.cm-cz__product.is-active {
	border-color: var(--c-red);
	box-shadow: 0 0 0 3px rgba(209, 15, 45, 0.12);
}
.cm-drop {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 22px 16px;
	border: 2px dashed rgba(11, 11, 13, 0.18);
	border-radius: 16px;
	background: var(--c-soft);
	text-align: center;
	cursor: pointer;
	transition: border-color 0.25s, background-color 0.25s;
}
.cm-drop:hover,
.cm-drop.is-over {
	border-color: var(--c-red);
	background: #fff5f6;
}
.cm-drop:focus-within {
	outline: 3px solid rgba(209, 15, 45, 0.35);
	outline-offset: 2px;
}
.cm-drop input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	overflow: hidden;
}
.cm-drop > .cm-ico {
	color: var(--c-red);
}
.cm-drop > .cm-ico svg {
	width: 28px;
	height: 28px;
}
.cm-drop__title {
	font-size: 0.95rem;
}
.cm-drop__help {
	font-size: 0.78rem;
	color: var(--c-muted);
}
.cm-cz__text {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}
.cm-cz__text input[type="text"] {
	flex: 1 1 180px;
	min-width: 0;
}
.cm-cz__text select {
	flex: 0 1 120px;
}
.cm-cz__text input[type="color"] {
	width: 46px;
	height: 46px;
	padding: 4px;
	border-radius: 12px;
	border: 1px solid var(--c-line);
	background: #fff;
	cursor: pointer;
}
.cm-cz__place {
	margin-top: 14px;
}
.cm-cz__mini {
	margin: 0 0 8px;
	font: 800 0.7rem/1 var(--f-body);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--c-muted);
}
.cm-cz__presets {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.cm-cz__tools {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px 16px;
	margin-top: 14px;
	padding: 14px;
	border-radius: 14px;
	background: var(--c-soft);
}
.cm-cz__tools[hidden] {
	display: none;
}
.cm-cz__tools label {
	display: grid;
	gap: 6px;
	font: 700 0.78rem var(--f-body);
}
.cm-cz__tools input[type="range"] {
	width: 100%;
	accent-color: #d10f2d;
}
.cm-cz__tool-btns {
	grid-column: 1 / -1;
	display: flex;
	gap: 16px;
}
.cm-cz__layer-list {
	list-style: none;
	margin: 12px 0 0;
	padding: 0;
	display: grid;
	gap: 8px;
}
.cm-cz__layer-list li {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 6px 10px 6px 6px;
	border-radius: 12px;
	border: 1px solid var(--c-line);
}
.cm-cz__layer-list li.is-selected {
	border-color: var(--c-red);
}
.cm-cz__thumb {
	width: 38px;
	height: 38px;
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	background: var(--c-soft);
	font-weight: 800;
	overflow: hidden;
}
.cm-cz__thumb img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}
.cm-cz__layer-name {
	flex: 1;
	min-width: 0;
	border: 0;
	background: none;
	padding: 0;
	text-align: left;
	font: 600 0.82rem/1.3 var(--f-body);
	color: var(--c-ink);
	cursor: pointer;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.cm-cz__msg,
.cm-cz__warn {
	margin: 12px 0 0;
	padding: 10px 12px;
	border-radius: 10px;
	background: #fff4e5;
	color: #8a4b00;
	font-size: 0.85rem;
}
.cm-cz__msg[hidden],
.cm-cz__warn[hidden] {
	display: none;
}
.cm-cz__techs {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
	gap: 8px;
}
.cm-tech {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	padding: 12px 14px;
	border-radius: 14px;
	border: 1.5px solid var(--c-line);
	background: #fff;
	color: var(--c-ink);
	text-align: left;
	cursor: pointer;
	transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.cm-tech strong {
	font: 700 0.9rem/1.2 var(--f-body);
}
.cm-tech small {
	font-size: 0.74rem;
	opacity: 0.7;
}
.cm-tech:hover {
	border-color: rgba(11, 11, 13, 0.4);
}
.cm-tech.is-active {
	background: var(--c-ink);
	border-color: var(--c-ink);
	color: #fff;
}
/* Técnica con foto real */
.cm-tech.has-img {
	gap: 3px;
	padding: 6px 6px 12px;
}
.cm-tech.has-img strong,
.cm-tech.has-img small {
	padding: 0 8px;
}
.cm-tech__img {
	position: relative;
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	margin: 0 0 6px;
	object-fit: cover;
	border-radius: 10px;
	background: #f3f3f5;
	transition: transform 0.4s var(--ease, ease);
}
.cm-tech:hover .cm-tech__img {
	transform: scale(1.02);
}
.cm-tech__img--help::before {
	content: "";
	position: absolute;
	inset: 0;
	margin: auto;
	width: 30px;
	height: 30px;
	background: currentColor;
	opacity: 0.5;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 15a2 2 0 0 1-2 2H8l-4 4V5a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2z'/%3E%3Cpath d='M9.6 8.6a2.5 2.5 0 1 1 3.4 2.4c-.6.3-1 .8-1 1.5M12 14.6h.01'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 15a2 2 0 0 1-2 2H8l-4 4V5a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2z'/%3E%3Cpath d='M9.6 8.6a2.5 2.5 0 1 1 3.4 2.4c-.6.3-1 .8-1 1.5M12 14.6h.01'/%3E%3C/svg%3E") center / contain no-repeat;
}
.cm-tech.is-active .cm-tech__img--help {
	background: rgba(255, 255, 255, 0.1);
}
@media (prefers-reduced-motion: reduce) {
	.cm-tech__img {
		transition: none;
	}
}
.cm-cz__note {
	margin: 10px 0 0;
	font-size: 0.86rem;
	color: var(--c-muted);
}
.cm-cz__sizes {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
	gap: 8px;
}
.cm-size {
	display: grid;
	gap: 4px;
	text-align: center;
}
.cm-size span {
	font: 800 0.78rem var(--f-body);
}
.cm-size input {
	text-align: center;
	padding: 0.7em 0.3em !important;
}
/* Adulto y Niño en el mismo paso (p. ej. camiseta poliéster) */
.cm-size-group {
	grid-column: 1 / -1;
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin: 0;
	font: 800 0.72rem/1.2 var(--f-body);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--c-ink);
}
.cm-size-group small {
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
	color: var(--c-muted);
}
.cm-size-group:not(:first-child) {
	margin-top: 6px;
	padding-top: 12px;
	border-top: 1px solid var(--c-line);
}
.cm-cz__total {
	margin: 12px 0 0;
	font-size: 0.95rem;
}
.cm-cz__total strong {
	font-family: var(--f-display);
	color: var(--c-red);
}

/* ---------- Campos de formulario ---------- */
.cm-fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	margin: 0;
}
@media (max-width: 640px) {
	.cm-fields {
		grid-template-columns: 1fr;
	}
}
.cm-field {
	margin: 0;
	display: grid;
	gap: 6px;
	align-content: start;
}
.cm-field--full {
	grid-column: 1 / -1;
}
.cm-field label {
	font: 700 0.82rem/1.3 var(--f-body);
}
.cm-field label span {
	font-weight: 500;
	color: var(--c-muted);
}
.cm-field abbr {
	color: var(--c-red);
	text-decoration: none;
}
.cm-cz input[type="text"],
.cm-cz input[type="tel"],
.cm-cz input[type="email"],
.cm-cz input[type="number"],
.cm-cz select,
.cm-cz textarea,
.cm-qf input[type="text"],
.cm-qf input[type="tel"],
.cm-qf input[type="email"],
.cm-qf input[type="number"],
.cm-qf input[type="file"],
.cm-qf select,
.cm-qf textarea {
	width: 100%;
	min-height: 46px;
	padding: 0.8em 1em;
	border: 1px solid rgba(11, 11, 13, 0.16);
	border-radius: 12px;
	background: #fafafb;
	color: var(--c-ink);
	font: 500 0.95rem/1.3 var(--f-body);
	transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
	appearance: auto;
}
.cm-cz textarea,
.cm-qf textarea {
	resize: vertical;
	min-height: 92px;
}
.cm-cz input:focus,
.cm-cz select:focus,
.cm-cz textarea:focus,
.cm-qf input:focus,
.cm-qf select:focus,
.cm-qf textarea:focus {
	outline: none;
	border-color: #d10f2d;
	background: #fff;
	box-shadow: 0 0 0 4px rgba(209, 15, 45, 0.12);
}
.cm-cz [aria-invalid="true"],
.cm-qf [aria-invalid="true"] {
	border-color: #c8102e !important;
	background: #fff6f7 !important;
}
.cm-err {
	display: block;
	margin-top: 6px;
	color: #c8102e;
	font: 700 0.8rem/1.3 var(--f-body);
}
.cm-check {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 10px;
}
.cm-check input {
	width: 20px;
	height: 20px;
	margin: 2px 0 0;
	accent-color: #d10f2d;
	flex: none;
}
.cm-check label {
	flex: 1;
	font-weight: 500;
	font-size: 0.85rem;
}
.cm-check label a {
	color: var(--c-red);
}
.cm-check .cm-err {
	flex-basis: 100%;
}
.cm-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ---------- Envío ---------- */
.cm-cz__submit {
	padding: 22px;
	border-radius: var(--r-md);
	background: var(--c-ink);
	color: #fff;
}
.cm-cz__submit-title {
	margin: 0 0 14px;
	font: 700 1.05rem/1.3 var(--f-display);
}
.cm-cz__submit-btns,
.cm-qf__btns {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.cm-cz__submit .cm-btn--dark {
	background: #fff;
	color: var(--c-ink);
}
.cm-cz__submit .cm-btn--dark:hover {
	background: var(--c-red-2);
	color: #fff;
}
.cm-cz__status {
	margin: 12px 0 0;
	font: 600 0.9rem/1.45 var(--f-body);
}
.cm-cz__status:empty {
	display: none;
}
.cm-cz__status.is-ok {
	color: #2fd27a;
}
.cm-cz__status.is-error {
	color: #ff6b7f;
}
.cm-cz__status.is-warn {
	color: #ffd166;
}
.cm-cz__status a {
	color: inherit;
	text-decoration: underline;
}
.cm-qf .cm-cz__status.is-ok {
	color: #138a46;
}
.cm-qf .cm-cz__status.is-error {
	color: #c8102e;
}
.cm-qf .cm-cz__status.is-warn {
	color: #8a4b00;
}
.cm-cz__legal {
	margin: 12px 0 0;
	font-size: 0.78rem;
	opacity: 0.65;
}
.cm-cz.is-busy .cm-cz__submit {
	cursor: progress;
}

/* ---------- Formulario rápido ---------- */
.cm-qf {
	padding: clamp(22px, 3vw, 40px);
	border-radius: var(--r-lg);
	background: #fff;
	border: 1px solid var(--c-line);
	box-shadow: 0 40px 80px -60px rgba(11, 11, 13, 0.5);
}
.cm-qf__title {
	margin: 0 0 20px;
	font: 800 clamp(1.3rem, 2.4vw, 1.8rem)/1.15 var(--f-display);
	letter-spacing: -0.02em;
}
.cm-qf input[type="file"] {
	padding: 0.65em;
	background: var(--c-soft);
}

/* ---------- Editor ---------- */
.cm-editor-placeholder .components-placeholder {
	min-height: 220px;
}

@media (prefers-reduced-motion: reduce) {
	.cm-card,
	.cm-card__img,
	.cm-card__word,
	.cm-btn,
	.cm-garment-svg [style] {
		transition: none !important;
		animation: none !important;
	}
}

/* ==========================================================================
   Bloques componibles (Bucle de consulta y ficha de producto)
   ========================================================================== */
.cm-pm,
.cm-pc,
.cm-ps,
.wp-block-cymasc-product-filters {
	--c-red: var(--wp--preset--color--rojo, #d10f2d);
	--c-ink: var(--wp--preset--color--negro, #0b0b0d);
	--c-muted: #6b6b74;
	--c-line: rgba(11, 11, 13, 0.1);
	--c-soft: var(--wp--preset--color--humo, #f3f3f5);
	--f-display: var(--wp--preset--font-family--titulos, "Montserrat", "Arial Black", system-ui, sans-serif);
	--f-body: var(--wp--preset--font-family--texto, "Montserrat", system-ui, sans-serif);
	--ease: cubic-bezier(0.16, 1, 0.3, 1);
}
.cm-pm {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	background: #fff;
}
.cm-pm--card {
	aspect-ratio: 1000 / 818;
}
.cm-pm--hero {
	aspect-ratio: 1000 / 860;
	border-radius: clamp(24px, 3vw, 40px);
	box-shadow: 0 40px 80px -50px rgba(11, 11, 13, 0.45);
}
.cm-pm__link {
	position: absolute;
	inset: 0;
	display: block;
}
.cm-pm__word {
	position: absolute;
	left: 50%;
	top: 50%;
	z-index: 0;
	transform: translate(-50%, -50%);
	font: 900 clamp(4.2rem, 9vw, 7.4rem)/0.8 var(--f-display);
	letter-spacing: -0.06em;
	white-space: nowrap;
	background: linear-gradient(120deg, #ff2a45, #d10f2d 50%, #97091f);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	opacity: 0.22;
	pointer-events: none;
	transition: transform 1s var(--ease), opacity 0.6s;
}
.cm-pm--hero .cm-pm__word {
	top: 48%;
	font-size: clamp(5.5rem, 15vw, 13.5rem);
	letter-spacing: -0.06em;
	opacity: 0.2;
}
.cm-pm__img {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 15%;
	mix-blend-mode: multiply;
	transition: transform 1s var(--ease), opacity 0.2s;
}
.cm-pm__img.is-swapping {
	opacity: 0.3;
}
.cm-card:hover .cm-pm__img {
	transform: scale(1.05);
}
.cm-card:hover .cm-pm__word {
	transform: translate(-50%, -50%) scale(1.08);
	opacity: 0.32;
}
.cm-pm__badge,
.cm-pm__pill {
	position: absolute;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 0.6em;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.9);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	color: var(--c-ink);
}
.cm-pm__badge {
	top: 14px;
	left: 14px;
	padding: 0.5em 0.85em;
	font: 800 0.68rem/1 var(--f-body);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.cm-pm__pill {
	left: 18px;
	bottom: 18px;
	padding: 0.55em 1.05em 0.55em 0.6em;
	font: 700 0.85rem/1 var(--f-body);
	box-shadow: 0 10px 30px -14px rgba(0, 0, 0, 0.35);
}
.cm-pm__dot {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--sw, #111);
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.16);
	transition: background-color 0.6s;
}

/* Grilla del Bucle de consulta */
.wp-block-post-template.cm-pgrid {
	list-style: none;
	margin: 0;
	padding: 0;
	gap: clamp(16px, 2.4vw, 32px) !important;
}
.cm-pgrid > .wp-block-post {
	display: flex;
	margin: 0 !important;
	min-width: 0;
}
.cm-pgrid > .wp-block-post[hidden] {
	display: none !important;
}
.cm-pgrid > .wp-block-post.is-filtered-in {
	animation: cmCardIn 0.7s var(--ease, ease) both;
	animation-delay: calc(var(--i, 0) * 70ms);
}
.cm-pgrid .cm-card {
	flex: 1;
	width: 100%;
	margin: 0 !important;
}
.cm-pgrid .cm-card > * {
	margin-block: 0 !important;
}
.cm-pgrid .cm-card__body {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.cm-pgrid .cm-card__body > * {
	margin-block: 0 !important;
}
.cm-pgrid .cm-card__meta:empty,
.cm-pgrid .cm-card__tag:empty {
	display: none;
}
.cm-pgrid .cm-card__title {
	font-size: 1.2rem !important;
}
.cm-pgrid .cm-card__actions {
	gap: 8px !important;
	margin-top: auto !important;
	padding-top: 10px;
}
@media (max-width: 1100px) {
	.wp-block-post-template.cm-pgrid.is-layout-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}
@media (max-width: 640px) {
	.wp-block-post-template.cm-pgrid.is-layout-grid {
		grid-template-columns: minmax(0, 1fr) !important;
	}
}
.wp-block-button.cm-btn-sm .wp-block-button__link {
	padding: 0.78em 1.15em !important;
	font-size: 0.84rem !important;
}

/* Colores (tarjeta y ficha) */
.cm-pc--product {
	padding: 18px 0;
	border-top: 1px solid var(--c-line);
	border-bottom: 1px solid var(--c-line);
}
.cm-pc__label {
	margin: 0 0 14px;
	font-size: 0.95rem;
	font-family: var(--f-body);
}
.cm-pc__label span {
	color: var(--c-muted);
}

/* Ficha de producto armada con columnas */
.cm-pd {
	gap: clamp(28px, 4.5vw, 72px) !important;
}
.cm-pd .wp-block-post-terms.cm-ph__eyebrow {
	margin-bottom: 0;
}
.cm-pd .wp-block-post-terms a {
	color: inherit;
	text-decoration: none;
}
.cm-pd .cm-ph__title {
	margin-top: 8px !important;
	margin-bottom: 0 !important;
}
.cm-pd .wp-block-post-excerpt__excerpt {
	margin: 0;
	color: var(--c-muted, #6b6b74);
	line-height: 1.65;
}
.cm-pd .cm-ph__tag:empty {
	display: none;
}
.cm-pd .cm-ph__cta {
	gap: 10px !important;
}
.cm-ps .cm-ph__chips {
	margin-bottom: 0;
}


/* Swatch con etiqueta de tela (ej. Blanco · Poliéster) */
.cm-swatches--lg .cm-sw.cm-sw--tag {
	width: auto;
	height: 32px;
	padding: 0 12px 0 6px;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	background: #fff;
	box-shadow: inset 0 0 0 1px rgba(11, 11, 13, 0.22);
	color: var(--c-ink, #0b0b0d);
	font: 700 0.78rem/1 var(--f-body);
	white-space: nowrap;
}
.cm-swatches--lg .cm-sw.cm-sw--tag::after {
	border-radius: 999px;
}
.cm-swatches--lg .cm-sw.cm-sw--tag:hover {
	transform: translateY(-1px);
}
.cm-sw__dot {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--sw);
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
	flex: none;
}
.cm-sw-note {
	margin: 10px 0 0;
	font-size: 0.82rem;
	line-height: 1.45;
	color: var(--c-muted, #5a5a66);
}

/* ---------- Sello giratorio ---------- */
.cm-badge {
	--bd-bg: linear-gradient(140deg, #ff2a45, #d10f2d 55%, #97091f);
	--bd-fg: #fff;
	--bd-core-bg: #fff;
	--bd-core-fg: #d10f2d;
	width: var(--bd-size, 150px);
	max-width: 100%;
	aspect-ratio: 1;
	margin: 0;
}
.cm-badge--dark {
	--bd-bg: #0b0b0d;
	--bd-core-fg: #0b0b0d;
}
.cm-badge--light {
	--bd-bg: #fff;
	--bd-fg: #0b0b0d;
	--bd-core-bg: #0b0b0d;
	--bd-core-fg: #fff;
}
.cm-badge--yellow {
	--bd-bg: #ffd400;
	--bd-fg: #0b0b0d;
	--bd-core-bg: #0b0b0d;
	--bd-core-fg: #ffd400;
}
.cm-badge.aligncenter {
	margin-inline: auto;
}
.cm-badge__link {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	background: var(--bd-bg);
	color: var(--bd-fg);
	text-decoration: none;
	box-shadow: 0 24px 48px -22px rgba(11, 11, 13, 0.55);
	transition: transform 0.5s var(--ease, ease);
}
a.cm-badge__link:hover {
	transform: scale(1.06);
}
.cm-badge__ring {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	animation: cmBadgeSpin var(--bd-speed, 16s) linear infinite;
}
.cm-badge__ring text {
	fill: currentColor;
	font: 800 17px/1 var(--f-display, "Montserrat", sans-serif);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.cm-badge__core {
	position: absolute;
	inset: 31%;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--bd-core-bg);
	color: var(--bd-core-fg);
	transition: transform 0.5s var(--ease, ease);
}
.cm-badge__core svg {
	width: 52%;
	height: 52%;
}
a.cm-badge__link:hover .cm-badge__core {
	transform: rotate(-12deg) scale(1.05);
}
@keyframes cmBadgeSpin {
	to {
		transform: rotate(360deg);
	}
}
@media (prefers-reduced-motion: reduce) {
	.cm-badge__ring {
		animation: none;
	}
}

/* ---------- Tamaño del estampado (personalizador) ---------- */
.cm-cz__guide {
	position: absolute;
	z-index: 0;
	border: 2px dashed rgba(209, 15, 45, 0.85);
	border-radius: 6px;
	background: rgba(209, 15, 45, 0.07);
	pointer-events: none;
	transition: left 0.45s var(--ease, ease), top 0.45s var(--ease, ease), width 0.45s var(--ease, ease), height 0.45s var(--ease, ease);
}
.cm-cz__guide[hidden] {
	display: none;
}
.cm-cz__guide span {
	position: absolute;
	left: 50%;
	bottom: 100%;
	transform: translate(-50%, -4px);
	padding: 3px 8px;
	border-radius: 999px;
	background: #d10f2d;
	color: #fff;
	font: 800 0.62rem/1.2 var(--f-body);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	white-space: nowrap;
}
.cm-cz__stage.is-dark .cm-cz__guide {
	border-color: rgba(255, 255, 255, 0.85);
	background: rgba(255, 255, 255, 0.08);
}
.cm-cz__psizes {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 8px;
}
.cm-psz {
	display: grid;
	grid-template-columns: auto 1fr;
	grid-template-rows: auto auto;
	column-gap: 10px;
	row-gap: 2px;
	align-items: center;
	padding: 10px 12px;
	border-radius: 14px;
	border: 1.5px solid var(--c-line);
	background: #fff;
	color: var(--c-ink);
	text-align: left;
	cursor: pointer;
	transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.cm-psz__ico {
	grid-row: 1 / 3;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 10px;
	background: var(--c-soft, #f3f3f5);
}
.cm-psz__ico i {
	display: block;
	max-width: 40px;
	max-height: 40px;
	border: 2px dashed #d10f2d;
	border-radius: 3px;
	transition: width 0.3s var(--ease, ease), height 0.3s var(--ease, ease);
}
.cm-psz strong {
	font: 700 0.88rem/1.15 var(--f-body);
}
.cm-psz small {
	font-size: 0.7rem;
	line-height: 1.25;
	opacity: 0.7;
}
.cm-psz:hover {
	border-color: rgba(11, 11, 13, 0.4);
}
.cm-psz.is-active {
	background: var(--c-ink);
	border-color: var(--c-ink);
	color: #fff;
}
.cm-psz.is-active .cm-psz__ico {
	background: rgba(255, 255, 255, 0.12);
}
.cm-psz.is-active .cm-psz__ico i {
	border-color: #fff;
}
/* Orientación de la hoja carta (solo aparece con tamaño carta) */
.cm-cz__orient {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 14px;
	margin: 10px 0 0;
	padding: 8px 8px 8px 14px;
	border-radius: 14px;
	background: #f6f6f8;
	animation: cmOrientIn 0.35s var(--ease, ease);
}
.cm-cz__orient[hidden] {
	display: none;
}
.cm-cz__orient .cm-cz__mini {
	margin: 0;
}
.cm-cz__orient-seg {
	display: inline-flex;
	padding: 3px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid var(--c-line);
}
.cm-cz__orient-btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 34px;
	padding: 0 14px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	font: 700 0.8rem/1 var(--f-body);
	color: var(--c-ink);
	cursor: pointer;
	transition: background-color 0.25s, color 0.25s;
}
.cm-cz__orient-btn.is-active {
	background: var(--c-ink);
	color: #fff;
}
.cm-cz__orient-btn:focus-visible {
	outline: 2px solid #d10f2d;
	outline-offset: 2px;
}
.cm-cz__orient-ico {
	display: block;
	flex: none;
	border: 1.5px solid currentColor;
	border-radius: 2px;
}
.cm-cz__orient-ico--v {
	width: 10px;
	height: 13px;
}
.cm-cz__orient-ico--h {
	width: 13px;
	height: 10px;
}
@keyframes cmOrientIn {
	from {
		opacity: 0;
		transform: translateY(-4px);
	}
}
@media (prefers-reduced-motion: reduce) {
	.cm-cz__orient {
		animation: none;
	}
}
.cm-qf__orient[hidden] {
	display: none;
}
.cm-cz__sleeves {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	margin: 14px 0 0;
	padding: 0;
	border: 0;
}
.cm-cz__sleeves legend {
	width: 100%;
	padding: 0;
}
.cm-cz__sleeves legend span {
	text-transform: none;
	letter-spacing: 0;
	font-weight: 600;
}
.cm-cz__sleeve {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.88rem;
	cursor: pointer;
}
.cm-cz__sleeve input {
	width: 18px;
	height: 18px;
	accent-color: #d10f2d;
}
.cm-cz__sleeve-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 14px;
	width: 100%;
	min-height: 52px;
	padding: 7px 0;
	border-top: 1px solid rgba(11, 11, 13, 0.08);
}
.cm-cz__sleeve-row:last-of-type {
	border-bottom: 1px solid rgba(11, 11, 13, 0.08);
}
.cm-cz__sleeve-ctrl {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 14px;
}
.cm-cz__sleeve-ctrl [hidden] {
	display: none;
}
.cm-cz__sleeve-ctrl .cm-link-btn {
	font-size: 0.78rem;
	padding: 0.3em 0;
}
.cm-cz__sleeve-up {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 34px;
	padding: 0 13px;
	border: 1px solid rgba(11, 11, 13, 0.18);
	border-radius: 999px;
	background: #fff;
	font: 700 0.78rem/1 var(--f-body);
	color: var(--c-ink);
	cursor: pointer;
	transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}
.cm-cz__sleeve-up:hover {
	border-color: var(--c-ink);
	background: var(--c-ink);
	color: #fff;
}
.cm-cz__sleeve-up:focus-within {
	outline: 2px solid #d10f2d;
	outline-offset: 2px;
}
.cm-cz__sleeve-up input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: 0;
	opacity: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	pointer-events: none;
}
.cm-cz__sleeve-up svg {
	width: 14px;
	height: 14px;
	flex: none;
}
.cm-cz__sleeve-thumb {
	position: relative;
	display: inline-flex;
}
.cm-cz__sleeve-thumb img {
	display: block;
	width: 38px;
	height: 38px;
	object-fit: contain;
	padding: 3px;
	border: 1px solid rgba(11, 11, 13, 0.12);
	border-radius: 9px;
	background: #f3f3f5;
}
.cm-cz__sleeve-thumb button {
	position: absolute;
	top: -8px;
	right: -8px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	padding: 0;
	border: 2px solid #fff;
	border-radius: 50%;
	background: var(--c-ink);
	color: #fff;
	font: 700 13px/1 var(--f-body);
	cursor: pointer;
	transition: background-color 0.2s;
}
.cm-cz__sleeve-thumb button:hover,
.cm-cz__sleeve-thumb button:focus-visible {
	background: #d10f2d;
}
.cm-cz__sleeves .cm-cz__msg {
	width: 100%;
	margin-top: 8px;
}

/* Imagen de las mangas sobre la prenda */
.cm-cz__slv {
	position: absolute;
	inset: 0;
	pointer-events: none;
}
.cm-slv {
	position: absolute;
	transform-origin: 50% 50%;
	transition: left 0.35s var(--ease, ease), top 0.35s var(--ease, ease), width 0.35s var(--ease, ease);
}
.cm-slv[hidden] {
	display: none;
}
.cm-slv img {
	display: block;
	width: 100%;
	height: auto;
	-webkit-user-select: none;
	user-select: none;
	-webkit-user-drag: none;
}
.cm-slv.is-empty {
	aspect-ratio: 1;
	border: 1.5px dashed rgba(209, 15, 45, 0.65);
	border-radius: 4px;
	background: rgba(209, 15, 45, 0.06);
}
.cm-cz__stage.is-dark .cm-slv.is-empty {
	border-color: rgba(255, 255, 255, 0.7);
	background: rgba(255, 255, 255, 0.08);
}
@media (prefers-reduced-motion: reduce) {
	.cm-slv {
		transition: none;
	}
}

/* ---------- Nombres y números ---------- */
.cm-nn-prev {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
}
.cm-nn-prev span {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	font-family: "Neue Aachen Pro", "Montserrat", Arial, sans-serif;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.02em;
	white-space: nowrap;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
	transition: top 0.35s var(--ease, ease), font-size 0.35s var(--ease, ease), color 0.3s;
}
.cm-nn-prev span[hidden] {
	display: none;
}
.cm-cz__area.has-nn {
	outline-color: transparent;
}
.cm-nn__opts {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin-top: 4px;
}
.cm-nn__box {
	min-width: 0;
	margin: 0;
	padding: 10px 12px 12px;
	border: 1.5px solid var(--c-line);
	border-radius: 14px;
	transition: border-color 0.25s, background-color 0.25s;
}
.cm-nn__box.is-on {
	border-color: var(--c-ink, #0b0b0d);
	background: var(--c-soft, #f3f3f5);
}
.cm-nn__box legend {
	padding: 0 4px;
	margin-left: -4px;
}
.cm-nn__check {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 700;
	font-size: 0.9rem;
	cursor: pointer;
}
.cm-nn__check input {
	width: 18px;
	height: 18px;
	accent-color: #d10f2d;
}
.cm-nn__row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	margin: 8px 0 10px;
}
.cm-nn__row label,
.cm-nn__tech label {
	display: grid;
	gap: 4px;
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--c-muted);
}
.cm-nn__row select,
.cm-nn__tech select,
.cm-nn__tbl select,
.cm-nn__tbl input {
	width: 100%;
	min-width: 0;
	padding: 0.5em 0.55em;
	border: 1.5px solid var(--c-line);
	border-radius: 10px;
	background: #fff;
	font: 600 0.88rem/1.2 var(--f-body);
	color: var(--c-ink);
}
.cm-nn__row select:disabled {
	opacity: 0.5;
}
.cm-nn__colors {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.cm-sw.cm-sw--sm {
	width: 24px;
	height: 24px;
}
.cm-sw:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}
.cm-nn__tech {
	margin: 12px 0 0;
}
.cm-nn__tech label {
	display: block;
	margin-bottom: 4px;
}
.cm-nn__tech select {
	max-width: 320px;
}
.cm-nn__list {
	margin-top: 16px;
}
.cm-nn__scroll {
	max-height: 340px;
	overflow: auto;
	border: 1px solid var(--c-line);
	border-radius: 12px;
}
.cm-nn__tbl {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.86rem;
}
.cm-nn__tbl th {
	position: sticky;
	top: 0;
	z-index: 1;
	padding: 8px 6px;
	background: var(--c-soft, #f3f3f5);
	font: 700 0.7rem/1.2 var(--f-body);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-align: left;
	color: var(--c-muted);
}
.cm-nn__tbl td {
	padding: 5px 4px;
	border-top: 1px solid var(--c-line);
}
.cm-nn__tbl .cm-nn__c-idx {
	width: 28px;
	padding-left: 8px;
	color: var(--c-muted);
	font-weight: 700;
	font-size: 0.78rem;
}
.cm-nn__tbl .cm-nn__c-name input {
	text-transform: uppercase;
}
.cm-nn__tbl .cm-nn__c-num {
	width: 72px;
}
.cm-nn__tbl .cm-nn__c-num input {
	text-align: center;
}
.cm-nn__tbl .cm-nn__c-size {
	width: 92px;
}
.cm-nn__tbl .cm-nn__c-del {
	width: 36px;
	text-align: center;
}
.cm-nn__tbl.no-name th:nth-child(2),
.cm-nn__tbl.no-name td:nth-child(2),
.cm-nn__tbl.no-num th:nth-child(3),
.cm-nn__tbl.no-num td:nth-child(3) {
	display: none;
}
.cm-nn__del {
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--c-muted);
	font-size: 1.2rem;
	line-height: 1;
	cursor: pointer;
}
.cm-nn__del:hover,
.cm-nn__del:focus-visible {
	background: rgba(209, 15, 45, 0.1);
	color: #d10f2d;
}
.cm-nn__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	margin-top: 10px;
}
.cm-nn__paste {
	display: grid;
	gap: 8px;
	margin-top: 10px;
	padding: 12px;
	border-radius: 12px;
	background: var(--c-soft, #f3f3f5);
}
.cm-nn__paste[hidden] {
	display: none;
}
.cm-nn__paste label {
	font-size: 0.82rem;
	color: var(--c-muted);
}
.cm-nn__paste textarea {
	width: 100%;
	padding: 0.6em 0.7em;
	border: 1.5px solid var(--c-line);
	border-radius: 10px;
	font: 600 0.88rem/1.5 var(--f-body);
	text-transform: uppercase;
}
.cm-nn__paste .cm-btn {
	justify-self: start;
}
.cm-nn__totals {
	margin: 10px 0 0;
	font-size: 0.84rem;
	color: var(--c-ink);
}
.cm-nn__totals.has-warn {
	color: #b3001b;
}
.cm-cz__sizes.is-locked input {
	background: var(--c-soft, #f3f3f5);
	color: var(--c-ink);
	cursor: default;
}
.cm-nn__sizenote {
	margin-top: 8px !important;
}
@media (max-width: 560px) {
	.cm-nn__opts {
		grid-template-columns: minmax(0, 1fr);
	}
	.cm-nn__tbl .cm-nn__c-size {
		width: 66px;
	}
	.cm-nn__tbl .cm-nn__c-num {
		width: 46px;
	}
	.cm-nn__tbl .cm-nn__c-idx {
		width: 20px;
		padding-left: 6px;
	}
	.cm-nn__tbl .cm-nn__c-del {
		width: 26px;
	}
	.cm-nn__tbl td {
		padding: 4px 2px;
	}
	.cm-nn__tbl input,
	.cm-nn__tbl select {
		padding: 0.5em 0.35em;
		font-size: 0.82rem;
	}
}
