/* =============================================================================
   CONFIGURADOR DE PRODUCTOS — Estilos v1.1
   ============================================================================= */

/* ── Tokens ────────────────────────────────────────────────────────────────── */
#wcc-configurador, .wcc-sticky-summary {
    --c-primary:      #111827;
    --c-accent:       #dc2626;
    --c-accent-hover: #b91c1c;
    --c-accent-light: rgba(220,38,38,.08);
    --c-bg:           #ffffff;
    --c-bg-2:         #f9fafb;
    --c-border:       #e5e7eb;
    --c-text:         #111827;
    --c-muted:        #6b7280;
    --c-success:      #16a34a;
    --c-dtf:          #2563eb;
    --c-dtf-light:    rgba(37,99,235,.08);
    --c-bordado:      #7c3aed;
    --c-bordado-light:rgba(124,58,237,.08);
    --r:              14px;
    --r-sm:           8px;
    --shadow:         0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.07);
    --ease:           cubic-bezier(.4,0,.2,1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    color: var(--c-text);
}

#wcc-configurador { margin: 0 0 120px; }

/* ── Paso (card) ────────────────────────────────────────────────────────────── */
.wcc-step {
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: var(--r);
    padding: 22px 22px 18px;
    margin-bottom: 12px;
    box-shadow: var(--shadow);
}

.wcc-step-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
}

.wcc-step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px; height: 28px; min-width: 28px;
    background: var(--c-accent);
    color: #fff;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    margin-top: 2px;
}

.wcc-step-num.done {
    background: var(--c-success);
}

.wcc-step-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--c-text);
    margin: 0 0 2px;
}

.wcc-step-subtitle {
    font-size: 12px;
    color: var(--c-muted);
    margin: 0;
}

/* ── Buscador ───────────────────────────────────────────────────────────────── */
.wcc-search-wrap {
    position: relative;
    margin-bottom: 14px;
}

.wcc-search-icon {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    width: 15px; height: 15px;
    color: var(--c-muted);
    pointer-events: none;
    z-index: 1;
}

.wcc-color-search {
    width: 100%;
    box-sizing: border-box;
    padding: 9px 14px 9px 34px;
    border: 1.5px solid var(--c-border);
    border-radius: 50px;
    font-size: 13px;
    color: var(--c-text);
    background: var(--c-bg-2);
    outline: none;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.wcc-color-search::placeholder { color: #9ca3af; }
.wcc-color-search:focus {
    border-color: var(--c-accent);
    background: #fff;
    box-shadow: 0 0 0 3px var(--c-accent-light);
}

/* ── Paleta de colores ──────────────────────────────────────────────────────── */
.wcc-color-palette {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wcc-color-swatch {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 5px 4px 6px;
    width: 64px;
    border: 2px solid transparent;
    border-radius: var(--r-sm);
    cursor: pointer;
    transition: border-color .15s var(--ease), background .15s var(--ease), transform .12s var(--ease);
    user-select: none;
}

.wcc-color-swatch:hover { background: var(--c-bg-2); border-color: #d1d5db; transform: translateY(-2px); }
.wcc-color-swatch.is-selected { border-color: var(--c-accent); background: var(--c-accent-light); }

.wcc-color-dot {
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 2.5px solid rgba(0,0,0,.1);
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    box-shadow: 0 2px 6px rgba(0,0,0,.18);
    transition: box-shadow .15s var(--ease);
}

.wcc-color-swatch.is-selected .wcc-color-dot::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17 4.83 12l-1.41 1.41L9 19 21 7l-1.41-1.42z'/%3E%3C/svg%3E") center/55% no-repeat, rgba(0,0,0,.28);
    border-radius: 50%;
}

.wcc-color-name {
    font-size: 10px;
    color: var(--c-muted);
    text-align: center;
    line-height: 1.2;
    word-break: break-word;
    max-width: 62px;
}

.wcc-color-swatch.is-selected .wcc-color-name { color: var(--c-accent); font-weight: 600; }

.wcc-selection-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 13px;
    color: var(--c-accent);
    font-weight: 500;
    animation: wcc-fade-in .3s var(--ease);
}

.wcc-selection-hint svg { animation: wcc-bounce .6s var(--ease) infinite alternate; }

/* ── Filas de talla ──────────────────────────────────────────────────────────  */
.wcc-color-row {
    border: 1px solid var(--c-border);
    border-radius: var(--r-sm);
    overflow: hidden;
    margin-bottom: 10px;
    animation: wcc-slide-in .22s var(--ease);
}

.wcc-color-row-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--c-bg-2);
    border-bottom: 1px solid var(--c-border);
}

.wcc-color-row-dot {
    width: 20px; height: 20px;
    border-radius: 50%;
    border: 2px solid rgba(0,0,0,.1);
    flex-shrink: 0;
    background-size: cover;
}

.wcc-color-row-name { font-size: 14px; font-weight: 600; flex: 1; }
.wcc-color-row-subtotal { font-size: 12px; color: var(--c-muted); white-space: nowrap; transition: color .15s; }
.wcc-color-row-subtotal.has-qty { color: var(--c-accent); font-weight: 600; }

.wcc-size-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 14px 14px;
}

.wcc-size-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 52px;
}

.wcc-size-label { font-size: 11px; font-weight: 700; color: var(--c-muted); text-transform: uppercase; letter-spacing: .5px; }
.wcc-size-cell.is-out-of-stock .wcc-size-label { color: #d1d5db; }

.wcc-qty-input {
    width: 52px; height: 44px;
    text-align: center;
    border: 1.5px solid var(--c-border);
    border-radius: var(--r-sm);
    font-size: 18px;
    font-weight: 700;
    color: var(--c-text);
    background: #fff;
    outline: none;
    -moz-appearance: textfield;
    transition: border-color .15s, box-shadow .15s, background .15s;
}

.wcc-qty-input::-webkit-outer-spin-button,
.wcc-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }

.wcc-qty-input:focus { border-color: var(--c-accent); box-shadow: 0 0 0 3px var(--c-accent-light); }
.wcc-qty-input.has-value { border-color: var(--c-text); background: var(--c-bg-2); color: var(--c-text); font-weight: 500; }
.wcc-qty-input:disabled { background: #f3f4f6; color: #d1d5db; cursor: not-allowed; border-color: #e5e7eb; }

.wcc-size-price { font-size: 10px; color: var(--c-muted); }

/* ── Botón "Continuar al paso 2" ──────────────────────────────────────────── */
.wcc-btn-next {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--c-primary);
    color: #fff;
    border: none;
    padding: 12px 22px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 16px;
    transition: background .15s, transform .12s, box-shadow .15s;
    width: 100%;
    justify-content: center;
}

.wcc-btn-next:hover { background: #1f2937; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,0,0,.2); }
.wcc-btn-next:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ── Paso 3: Opciones de personalización ─────────────────────────────────── */
.wcc-custom-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.wcc-custom-option {
    border: 2px solid var(--c-border);
    border-radius: var(--r);
    padding: 16px 12px;
    text-align: center;
    cursor: pointer;
    transition: border-color .15s, background .15s, transform .12s, box-shadow .15s;
    user-select: none;
}

.wcc-custom-option:hover { border-color: #9ca3af; background: var(--c-bg-2); transform: translateY(-2px); box-shadow: var(--shadow); }

.wcc-custom-option.selected-none    { border-color: var(--c-success); background: rgba(22,163,74,.06); }
.wcc-custom-option.selected-dtf     { border-color: var(--c-dtf); background: var(--c-dtf-light); }
.wcc-custom-option.selected-bordado { border-color: var(--c-bordado); background: var(--c-bordado-light); }

.wcc-custom-icon { font-size: 28px; margin-bottom: 8px; line-height: 1; }
.wcc-custom-name { font-size: 13px; font-weight: 700; color: var(--c-text); margin-bottom: 4px; }
.wcc-custom-desc { font-size: 11px; color: var(--c-muted); line-height: 1.3; }

/* ── Paso 4: Posiciones ──────────────────────────────────────────────────── */
.wcc-positions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.wcc-position-card {
    border: 2px solid var(--c-border);
    border-radius: var(--r-sm);
    padding: 14px 10px;
    text-align: center;
    cursor: pointer;
    transition: border-color .15s, background .15s, transform .12s;
    user-select: none;
    position: relative;
}

.wcc-position-card:hover { border-color: #9ca3af; background: var(--c-bg-2); transform: translateY(-2px); }

.wcc-position-card.is-selected { border-color: var(--c-accent); background: var(--c-accent-light); }

.wcc-position-check {
    display: none;
    position: absolute;
    top: 6px; right: 6px;
    width: 18px; height: 18px;
    background: var(--c-accent);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
}

.wcc-position-card.is-selected .wcc-position-check { display: flex; }

.wcc-position-icon { font-size: 22px; margin-bottom: 6px; }
.wcc-position-name { 
    font-size: 13px; /* Subimos a 13px para emparejar con las puntadas */
    font-weight: 700; 
    color: var(--c-text); 
    margin-bottom: 3px; 
}
.wcc-position-size { font-size: 10px; color: var(--c-muted); background: var(--c-bg-2); padding: 2px 6px; border-radius: 20px; display: inline-block; margin-top: 2px; }

.wcc-position-card.is-selected .wcc-position-size { background: rgba(220,38,38,.12); color: var(--c-accent); }

.wcc-position-whatsapp {
    border-color: #16a34a !important;
    background: rgba(22,163,74,.05) !important;
}

.wcc-position-whatsapp .wcc-position-name { color: #16a34a; }

/* ── Paso 5: Subida de archivos ──────────────────────────────────────────── */
.wcc-upload-area {
    border: 2px dashed var(--c-border);
    border-radius: var(--r-sm);
    padding: 20px;
    text-align: center;
    transition: border-color .15s, background .15s;
    cursor: pointer;
    margin-bottom: 12px;
}

.wcc-upload-area:hover { border-color: var(--c-accent); background: var(--c-accent-light); }
.wcc-upload-area.has-file { border-color: var(--c-success); background: rgba(22,163,74,.05); }

.wcc-upload-icon { font-size: 28px; margin-bottom: 6px; }
.wcc-upload-label { font-size: 13px; font-weight: 600; color: var(--c-text); margin-bottom: 3px; }
.wcc-upload-hint { font-size: 11px; color: var(--c-muted); }

.wcc-upload-input { display: none; }

.wcc-picaje-options {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

.wcc-picaje-option {
    flex: 1;
    border: 2px solid var(--c-border);
    border-radius: var(--r-sm);
    padding: 12px;
    text-align: center;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all .15s;
}

.wcc-picaje-option:hover { border-color: #9ca3af; }
.wcc-picaje-option.is-selected { border-color: var(--c-bordado); background: var(--c-bordado-light); color: var(--c-bordado); }

.wcc-warning-box {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: var(--r-sm);
    padding: 12px 14px;
    font-size: 12px;
    color: #92400e;
    line-height: 1.5;
    margin-bottom: 14px;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.wcc-info-box {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: var(--r-sm);
    padding: 12px 14px;
    font-size: 12px;
    color: #1e40af;
    line-height: 1.5;
    margin-bottom: 14px;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

/* Sección por posición en el paso 5 */
.wcc-upload-section {
    border: 1px solid var(--c-border);
    border-radius: var(--r-sm);
    overflow: hidden;
    margin-bottom: 10px;
}

.wcc-upload-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--c-bg-2);
    border-bottom: 1px solid var(--c-border);
    font-size: 13px;
    font-weight: 600;
}

.wcc-upload-section-body { padding: 14px; }

/* ── Sticky Summary ──────────────────────────────────────────────────────────  */
.wcc-sticky-summary {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: linear-gradient(145deg, #111827 0%, #1e293b 100%);
    color: #fff;
    padding: 12px 20px;
    box-shadow: 0 -4px 24px rgba(0,0,0,.25);
    display: none;
    animation: wcc-slide-up .3s var(--ease);
}

@keyframes wcc-slide-up {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.wcc-sticky-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.wcc-sticky-info { flex: 1; min-width: 0; }

.wcc-sticky-units {
    font-size: 11px;
    color: rgba(255,255,255,.55);
    margin-bottom: 2px;
}

.wcc-sticky-price {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
    line-height: 1;
}

.wcc-sticky-detail {
    font-size: 11px;
    color: rgba(255,255,255,.5);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wcc-btn-cart {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--c-accent);
    color: #fff;
    border: none;
    padding: 12px 22px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s, transform .12s, box-shadow .15s;
}

.wcc-btn-cart:hover:not(:disabled) { background: var(--c-accent-hover); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(220,38,38,.5); }
.wcc-btn-cart:disabled { opacity: .65; cursor: not-allowed; }

/* Mensajes */
.wcc-notice {
    padding: 11px 14px;
    border-radius: var(--r-sm);
    font-size: 13px;
    margin-top: 10px;
    animation: wcc-fade-in .2s var(--ease);
    display: flex;
    align-items: center;
    gap: 8px;
}

.wcc-notice--success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; }
.wcc-notice--error   { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }

/* Ocultar formulario nativo de WooCommerce */
.variations_form,
form.cart,
.single_variation_wrap { display: none !important; }

/* ── Animaciones ─────────────────────────────────────────────────────────── */
@keyframes wcc-slide-in {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes wcc-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes wcc-bounce {
    from { transform: translateY(0); }
    to   { transform: translateY(3px); }
}

/* ══════════════════════════════════════════════════════════════════════════════
   MOTOR DE CÁLCULO DTF
   ══════════════════════════════════════════════════════════════════════════════ */

/* ── Panel principal ─────────────────────────────────────────────────────── */
.wcc-dtf-panel {
    background: linear-gradient(140deg, #0f172a 0%, #1a2744 100%);
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 14px;
    padding: 18px 20px 20px;
    margin: 14px 0 4px;
    color: #fff;
    box-shadow: 0 8px 32px rgba(0,0,0,.3), 0 0 0 1px rgba(255,255,255,.04);
    animation: wcc-fade-in .25s var(--ease);
}

.wcc-dtf-panel-hdr {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,.07);
}

.wcc-dtf-panel-ico   { font-size: 20px; flex-shrink: 0; }
.wcc-dtf-panel-title { font-weight: 700; font-size: 14px; letter-spacing: -.2px; }
.wcc-dtf-panel-sub   { font-size: 11px; color: rgba(255,255,255,.42); margin-top: 3px; }

/* ── Barra de escalones ───────────────────────────────────────────────────── */
.wcc-tier-bar-wrap  { margin-bottom: 14px; }

.wcc-tier-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    padding: 5px 12px;
    border-radius: 99px;
    border: 1px solid;
    margin-bottom: 10px;
    letter-spacing: .1px;
}

.wcc-tier-track {
    display: flex;
    gap: 3px;
    height: 8px;
    border-radius: 99px;
    overflow: hidden;
}

.wcc-tier-seg {
    border-radius: 99px;
    overflow: hidden;
    background: rgba(255,255,255,.10);
    position: relative;
    min-width: 4px;
}

.wcc-tier-seg.is-past { background: rgba(255,255,255,.12); }

.wcc-tier-fill {
    height: 100%;
    border-radius: 99px;
    transition: width .45s cubic-bezier(.4,0,.2,1);
}

.wcc-tier-labels {
    display: flex;
    margin-top: 7px;
    gap: 3px;
    align-items: flex-start;
}

.wcc-tier-lbl       { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wcc-tier-range     { font-size: 9.5px; color: rgba(255,255,255,.35); white-space: nowrap; }
.wcc-tier-pct       { font-size: 11px; font-weight: 600; color: rgba(255,255,255,.45); white-space: nowrap; }
.wcc-tier-pct.is-active { color: #fff; }
.wcc-tier-more      { margin-left: auto; text-align: right; opacity: .5; }

/* ── Fila de precio ───────────────────────────────────────────────────────── */
.wcc-dtf-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0 8px;
    border-top: 1px solid rgba(255,255,255,.07);
    gap: 10px;
}

.wcc-dtf-price-label { font-weight: 700; font-size: 14px; }
.wcc-dtf-price-meta  { font-size: 11px; color: rgba(255,255,255,.42); margin-top: 3px; }
.wcc-dtf-price-val {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    white-space: nowrap;
    letter-spacing: -.5px;
}

.wcc-dtf-per-ud { font-size: 13px; font-weight: 400; color: rgba(255,255,255,.5); }

/* ── Nota recargo ─────────────────────────────────────────────────────────── */
.wcc-dtf-sur-note {
    font-size: 11px;
    color: rgba(255,255,255,.35);
    margin-top: 2px;
    margin-bottom: 8px;
}

/* ── Estados informativos ─────────────────────────────────────────────────── */
.wcc-dtf-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(239,68,68,.12);
    border: 1px solid rgba(239,68,68,.28);
    border-radius: 10px;
    padding: 13px 14px;
    font-size: 13px;
    color: #fca5a5;
    line-height: 1.5;
}

.wcc-dtf-hint {
    font-size: 13px;
    color: rgba(255,255,255,.35);
    text-align: center;
    padding: 14px 0 6px;
    font-style: italic;
}

.wcc-dtf-consult {
    background: rgba(99,102,241,.12);
    border: 1px solid rgba(99,102,241,.28);
    border-radius: 10px;
    padding: 13px 14px;
    font-size: 13px;
    color: #c7d2fe;
    line-height: 1.5;
}

/* ── Upsell nudge ─────────────────────────────────────────────────────────── */
.wcc-upsell-nudge {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(251,191,36,.10);
    border: 1px solid rgba(251,191,36,.28);
    border-radius: 10px;
    padding: 13px 14px;
    font-size: 12.5px;
    color: #fde68a;
    line-height: 1.5;
    margin-top: 12px;
    animation: wcc-nudge-pulse 2.5s ease-in-out infinite;
}

.wcc-upsell-ico { font-size: 16px; flex-shrink: 0; margin-top: 1px; }

.wcc-upsell-best {
    font-size: 12px;
    color: #86efac;
    margin-top: 10px;
    text-align: center;
    letter-spacing: .1px;
}

@keyframes wcc-nudge-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(251,191,36,0); }
    50%      { box-shadow: 0 0 0 5px rgba(251,191,36,.08); }
}

/* ── Sticky bar: línea DTF ────────────────────────────────────────────────── */
.wcc-sticky-dtf {
    font-size: 11px;
    color: #a3e635;
    font-weight: 600;
    margin-top: 2px;
    letter-spacing: .1px;
    animation: wcc-fade-in .3s var(--ease);
}


/* ==========================================================================
   FASE 3: PANEL DE MOTOR MATEMÁTICO DE BORDADO (INTERFAZ BLINDADA)
   ========================================================================== */

.wcc-complejidad-section {
    margin-bottom: 24px;
}

/* Título de la sección: Mismo tamaño y grosor que el resto de títulos nativos */
.wcc-complejidad-section .wcc-bordado-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--c-text);
    margin: 0 0 12px 0;
}

/* Cuadrícula simétrica */
.wcc-stitches-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

/* Tarjeta interactiva: Copia la estructura exacta de .wcc-position-card */
.wcc-stitch-card {
    background: var(--c-bg) !important;
    border: 2px solid var(--c-border) !important;
    border-radius: var(--r-sm) !important;
    padding: 16px 12px !important;
    text-align: center !important;
    cursor: pointer !important;
    transition: border-color .15s var(--ease), background .15s var(--ease), transform .12s var(--ease) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    outline: none !important;
    user-select: none !important;
    box-shadow: none !important;
}

/* Hover: Reacción limpia al pasar el ratón */
.wcc-stitch-card:hover {
    border-color: #9ca3af !important;
    background: var(--c-bg-2) !important;
    transform: translateY(-2px) !important;
}

/* Estado Seleccionado: Activa el morado de bordado de tus variables tokens */
.wcc-stitch-card.is-selected {
    border-color: var(--c-bordado) !important;
    background: var(--c-bordado-light) !important;
}

/* --- ANULACIÓN DE PARÁSITOS AZULES Y UNIFICACIÓN DE NEGRITAS --- */

/* El dato numérico de las puntadas (Fuerza el color gris de tu tema y limpia el azul) */
.wcc-stitch-pts {
    font-size: 13px !important;
    font-weight: 700 !important; 
    color: var(--c-text) !important;
    background: transparent !important;
    padding: 0 !important;
    margin-bottom: 4px !important;
    line-height: 1.2 !important;
    letter-spacing: -0.1px !important;
}

/* El nombre comercial del preset */
.wcc-stitch-name {
    font-size: 13px !important;
    font-weight: 700 !important; 
    color: var(--c-text) !important;
    background: transparent !important;
    margin-bottom: 6px !important;
    line-height: 1.2 !important;
    letter-spacing: -0.1px !important;
}

/* La descripción técnica de soporte */
.wcc-stitch-desc {
    font-size: 11px !important;
    font-weight: 400 !important; 
    color: var(--c-muted) !important;
    background: transparent !important;
    line-height: 1.35 !important;
}

/* Transición de color al seleccionar la tarjeta */
.wcc-stitch-card.is-selected .wcc-stitch-pts,
.wcc-stitch-card.is-selected .wcc-stitch-name {
    color: var(--c-bordado) !important;
    background: transparent !important;
}
.wcc-stitch-card.is-selected .wcc-stitch-desc {
    color: var(--c-muted) !important;
    background: transparent !important;
}

/* Tarjetas bloqueadas por seguridad técnica de bastidor */
.wcc-stitch-card[style*="pointer-events: none"] {
    background: var(--c-bg-2) !important;
    border-color: var(--c-border) !important;
    opacity: 0.4 !important;
    filter: grayscale(100%);
}

/* ── Responsive ──────────────────────────────────────────────────────────────  */
@media (max-width: 600px) {
    .wcc-stitches-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .wcc-stitches-grid { grid-template-columns: 1fr; }
}