/**
 * Colornitido Tools - Escudos y Logos DTF UV 3D
 * Estilos 100% autónomos, encapsulados e independientes.
 */

:root {
    --cnt-uv-bg-deep: #07090e;
    --cnt-uv-bg-surface: rgba(15, 23, 42, 0.90);
    --cnt-uv-bg-card: rgba(20, 28, 48, 0.75);
    --cnt-uv-border-subtle: rgba(255, 255, 255, 0.08);
    --cnt-uv-border-focus: rgba(0, 194, 255, 0.45);
    --cnt-uv-cyan-bright: #00c2ff;
    --cnt-uv-blue-primary: #0284c7;
    --cnt-uv-indigo: #6366f1;
    --cnt-uv-cyan-accent: #38bdf8;
    --cnt-uv-text-primary: #f8fafc;
    --cnt-uv-text-secondary: #94a3b8;
    --cnt-uv-text-muted: #64748b;
    --cnt-uv-danger: #ef4444;
}

/* ==========================================================================
   1. CONTENEDOR PRINCIPAL, FONDO Y ALINEACIÓN (REGLA 13)
   ========================================================================== */
.cnt-escudos-wrap {
    width: 100% !important;
    max-width: none !important;
    min-height: 100vh;
    box-sizing: border-box;
    position: relative;
    overflow-x: hidden;
    background:
        radial-gradient(1100px 500px at 15% -10%, rgba(0, 194, 255, 0.12), transparent 70%),
        radial-gradient(900px 500px at 85% -10%, rgba(124, 58, 237, 0.12), transparent 70%),
        radial-gradient(800px 400px at 50% 30%, rgba(236, 72, 153, 0.05), transparent 70%),
        var(--cnt-uv-bg-deep);
    color: var(--cnt-uv-text-primary);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    padding-bottom: 3rem;
}

/* Despeje Blocksy para páginas de herramientas */
.cnt-tool-page .cnt-escudos-wrap,
body.single-herramienta .cnt-escudos-wrap,
#cnt-escudos-dtf-uv-3d {
    padding-top: clamp(8.5rem, 13vw, 11rem) !important;
    padding-bottom: 5rem;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 auto;
}

/* Contenedores interiores alineados con cabecera Blocksy */
.cnt-escudos-wrap .cnt-header,
.cnt-escudos-wrap .cnt-studio-layout {
    width: var(--theme-container-width, min(100%, 90vw));
    max-width: var(--theme-normal-container-max-width, 1290px);
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

/* Resplandor ambiental de fondo */
.cnt-escudos-wrap .cnt-bg-glow {
    position: absolute;
    width: 650px;
    height: 650px;
    top: -150px;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(0, 194, 255, 0.15) 0%, rgba(99, 102, 241, 0.08) 40%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

/* ==========================================================================
   2. ENCABEZADO DE LA HERRAMIENTA (ESTÁNDAR CENTRADO COLORNITIDO)
   ========================================================================== */
.cnt-escudos-wrap .cnt-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
    width: var(--theme-container-width, min(100%, 90vw));
    max-width: var(--theme-normal-container-max-width, 1290px);
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.cnt-escudos-wrap .cnt-header-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cnt-escudos-wrap .cnt-tool-icon-emerald {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(0, 194, 255, 0.25), rgba(0, 194, 255, 0.1));
    border: 1px solid rgba(0, 194, 255, 0.4);
    color: var(--cnt-uv-cyan-bright);
    box-shadow: 0 0 25px rgba(0, 194, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.2rem;
    flex-shrink: 0;
}

.cnt-escudos-wrap .cnt-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.85rem;
    background: rgba(0, 194, 255, 0.12);
    border: 1px solid rgba(0, 194, 255, 0.3);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--cnt-uv-cyan-bright);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.6rem;
}

.cnt-escudos-wrap .cnt-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--cnt-uv-cyan-bright);
    box-shadow: 0 0 8px var(--cnt-uv-cyan-bright);
    animation: cntPulse 2s infinite;
}

@keyframes cntPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.cnt-escudos-wrap .cnt-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    line-height: 1.25;
    margin: 0 0 0.55rem;
    padding: 0.05em 0 0.22em;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    overflow: visible;
    text-align: center;
}

.cnt-escudos-wrap .cnt-subtitle {
    font-size: 1rem;
    color: var(--cnt-uv-text-secondary);
    margin: 0 auto;
    max-width: 640px;
    line-height: 1.7;
    text-align: center;
}

/* ==========================================================================
   3. ESTRUCTURA Y ALTURA UNIFICADA (REGLA 8 GEMINI.MD)
   ========================================================================== */
.cnt-escudos-wrap .cnt-studio-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    width: var(--theme-container-width, min(100%, 90vw));
    max-width: var(--theme-normal-container-max-width, 1290px);
    margin: 2rem auto 0;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
}

@media (min-width: 1024px) {
    .cnt-escudos-wrap .cnt-studio-layout {
        grid-template-columns: 420px 1fr;
        align-items: start;
    }
}

/* Panel Izquierdo de Controles (Sidebar) */
.cnt-escudos-wrap .cnt-sidebar-controls {
    background: var(--cnt-uv-bg-surface);
    border: 1px solid var(--cnt-uv-border-subtle);
    border-radius: 1.5rem;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
    box-sizing: border-box;
}

/* Panel Derecho de Previsualización (Workspace) */
.cnt-escudos-wrap .cnt-main-workspace {
    background: var(--cnt-uv-bg-surface);
    border: 1px solid var(--cnt-uv-border-subtle);
    border-radius: 1.5rem;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
    box-sizing: border-box;
    overflow: hidden;
}

/* En Desktop: Altura unificada estandarizada y sticky */
@media (min-width: 1024px) {
    .cnt-escudos-wrap .cnt-sidebar-controls {
        position: sticky;
        top: clamp(6.5rem, 10vw, 8.5rem);
        height: calc(100vh - clamp(7.5rem, 11vw, 9.5rem));
        max-height: calc(100vh - clamp(7.5rem, 11vw, 9.5rem));
        min-height: 580px;
        overflow: hidden;
    }

    .cnt-escudos-wrap .cnt-main-workspace {
        height: calc(100vh - clamp(7.5rem, 11vw, 9.5rem));
        max-height: calc(100vh - clamp(7.5rem, 11vw, 9.5rem));
        min-height: 580px;
    }
}

/* Scroll interior fluido del sidebar */
.cnt-escudos-wrap .cnt-sidebar-content {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 194, 255, 0.35) rgba(0, 0, 0, 0.25);
}

.cnt-escudos-wrap .cnt-sidebar-content::-webkit-scrollbar {
    width: 6px;
}

.cnt-escudos-wrap .cnt-sidebar-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 9999px;
}

.cnt-escudos-wrap .cnt-sidebar-content::-webkit-scrollbar-thumb {
    background: rgba(0, 194, 255, 0.35);
    border-radius: 9999px;
}

.cnt-escudos-wrap .cnt-sidebar-content::-webkit-scrollbar-thumb:hover {
    background: var(--cnt-uv-cyan-bright);
}

/* ==========================================================================
   4. TARJETAS DE CONTROL Y PASOS NUMERADOS (REGLA 12)
   ========================================================================== */
.cnt-escudos-wrap .cnt-control-card {
    background: var(--cnt-uv-bg-card);
    border: 1px solid var(--cnt-uv-border-subtle);
    border-radius: 1rem;
    padding: 1.15rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    transition: border-color 0.2s ease;
}

.cnt-escudos-wrap .cnt-control-card:hover {
    border-color: rgba(255, 255, 255, 0.14);
}

.cnt-escudos-wrap .cnt-card-header {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    border-bottom: 1px solid var(--cnt-uv-border-subtle);
    padding-bottom: 0.65rem;
}

.cnt-escudos-wrap .cnt-card-step {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0, 194, 255, 0.15);
    border: 1px solid rgba(0, 194, 255, 0.35);
    color: var(--cnt-uv-cyan-bright);
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cnt-escudos-wrap .cnt-card-header h3 {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--cnt-uv-text-primary);
    margin: 0;
    flex: 1;
}

.cnt-escudos-wrap .cnt-card-desc {
    font-size: 0.78rem;
    color: var(--cnt-uv-text-secondary);
    line-height: 1.45;
    margin: 0;
}

/* ==========================================================================
   5. ZONA DE SUBIDA / DROPZONE (REGLAS 5 Y 14 GEMINI.MD)
   ========================================================================== */
.cnt-escudos-wrap .cnt-dropzone {
    position: relative;
    border: 2px dashed rgba(0, 194, 255, 0.35);
    background: rgba(15, 23, 42, 0.45);
    border-radius: 0.85rem;
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    overflow: hidden;
}

.cnt-escudos-wrap .cnt-dropzone:hover,
.cnt-escudos-wrap .cnt-dropzone.dragover {
    border-color: var(--cnt-uv-cyan-bright);
    background: rgba(0, 194, 255, 0.08);
    box-shadow: 0 0 20px rgba(0, 194, 255, 0.2);
    transform: translateY(-2px);
}

.cnt-escudos-wrap .cnt-file-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 5;
}

.cnt-escudos-wrap .cnt-dropzone-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    pointer-events: none;
}

.cnt-escudos-wrap .cnt-dropzone-icon {
    font-size: 2rem;
    color: var(--cnt-uv-cyan-bright);
    margin-bottom: 0.25rem;
}

.cnt-escudos-wrap .cnt-dropzone-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--cnt-uv-text-primary);
}

.cnt-escudos-wrap .cnt-dropzone-subtitle {
    font-size: 0.74rem;
    color: var(--cnt-uv-text-secondary);
}

.cnt-escudos-wrap .cnt-dropzone-tags {
    font-size: 0.68rem;
    color: var(--cnt-uv-text-muted);
    margin-top: 0.2rem;
}

/* Spinner visual obligatorio de carga */
.cnt-escudos-wrap .cnt-dropzone-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0;
}

.cnt-escudos-wrap .cnt-dropzone-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(0, 194, 255, 0.2);
    border-top-color: var(--cnt-uv-cyan-bright);
    border-radius: 50%;
    animation: cntEscudosSpin 0.8s linear infinite;
}

@keyframes cntEscudosSpin {
    to { transform: rotate(360deg); }
}

.cnt-escudos-wrap .cnt-dropzone-loading-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--cnt-uv-cyan-bright);
}

.cnt-escudos-wrap .cnt-dropzone-loading-sub {
    font-size: 0.72rem;
    color: var(--cnt-uv-text-secondary);
}

/* Tarjeta del Archivo Cargado */
.cnt-escudos-wrap .cnt-file-info-card {
    background: rgba(10, 15, 28, 0.75);
    border: 1px solid rgba(0, 194, 255, 0.25);
    border-radius: 0.75rem;
    padding: 0.75rem;
}

.cnt-escudos-wrap .cnt-file-info-top {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cnt-escudos-wrap .cnt-file-thumb {
    width: 48px;
    height: 48px;
    border-radius: 0.5rem;
    background: #060907;
    border: 1px solid var(--cnt-uv-border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.cnt-escudos-wrap .cnt-file-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.cnt-escudos-wrap .cnt-file-meta {
    flex: 1;
    min-width: 0;
}

.cnt-escudos-wrap .cnt-file-name {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--cnt-uv-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.25rem;
}

.cnt-escudos-wrap .cnt-item-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.cnt-escudos-wrap .cnt-pill-tag {
    font-size: 0.65rem;
    padding: 0.15rem 0.45rem;
    border-radius: 9999px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.08);
    color: var(--cnt-uv-text-secondary);
}

.cnt-escudos-wrap .cnt-pill-dpi-ok,
.cnt-escudos-wrap .cnt-pill-trans-ok {
    background: rgba(0, 194, 255, 0.15);
    color: var(--cnt-uv-cyan-bright);
    border: 1px solid rgba(0, 194, 255, 0.3);
}

.cnt-escudos-wrap .cnt-item-delete-btn {
    width: 32px;
    height: 32px;
    border-radius: 0.5rem;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.cnt-escudos-wrap .cnt-item-delete-btn:hover {
    background: rgba(239, 68, 68, 0.25);
    color: #ffffff;
    transform: scale(1.05);
}

/* ==========================================================================
   6. CONTROLES DE DIMENSIONES (REGLA 15: SIN FLECHAS NATIVAS)
   ========================================================================== */
.cnt-escudos-wrap input[type="number"]::-webkit-outer-spin-button,
.cnt-escudos-wrap input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

.cnt-escudos-wrap input[type="number"] {
    -moz-appearance: textfield !important;
}

.cnt-escudos-wrap .cnt-preset-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.45rem;
    margin-top: 0.35rem;
}

.cnt-escudos-wrap .cnt-preset-pill {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--cnt-uv-border-subtle);
    border-radius: 0.5rem;
    color: var(--cnt-uv-text-secondary);
    padding: 0.45rem 0.5rem;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.cnt-escudos-wrap .cnt-preset-pill:hover,
.cnt-escudos-wrap .cnt-preset-pill.active {
    background: rgba(0, 194, 255, 0.12);
    border-color: var(--cnt-uv-cyan-bright);
    color: #ffffff;
}

.cnt-escudos-wrap .cnt-size-inputs-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.cnt-escudos-wrap .cnt-size-input-col {
    flex: 1;
}

.cnt-escudos-wrap .cnt-input-dim-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--cnt-uv-text-secondary);
    margin-bottom: 0.35rem;
}

.cnt-escudos-wrap .cnt-input-with-icon {
    display: flex;
    align-items: center;
    background: rgba(10, 15, 28, 0.85);
    border: 1px solid var(--cnt-uv-border-subtle);
    border-radius: 0.65rem;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.cnt-escudos-wrap .cnt-input-with-icon:focus-within {
    border-color: var(--cnt-uv-cyan-bright);
    box-shadow: 0 0 12px rgba(0, 194, 255, 0.25);
}

.cnt-escudos-wrap .cnt-input-icon-box {
    padding: 0 0.65rem;
    color: var(--cnt-uv-text-muted);
    font-size: 0.8rem;
}

.cnt-escudos-wrap .cnt-input-text {
    width: 100%;
    background: transparent;
    border: none;
    color: #ffffff;
    padding: 0.55rem 0.65rem 0.55rem 0;
    font-size: 0.88rem;
    font-weight: 700;
    outline: none;
}

.cnt-escudos-wrap .cnt-aspect-lock-col {
    padding-bottom: 0.15rem;
}

.cnt-escudos-wrap .cnt-aspect-lock-btn {
    width: 36px;
    height: 36px;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--cnt-uv-border-subtle);
    color: var(--cnt-uv-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.cnt-escudos-wrap .cnt-aspect-lock-btn.locked {
    background: rgba(0, 194, 255, 0.15);
    border-color: var(--cnt-uv-cyan-bright);
    color: var(--cnt-uv-cyan-bright);
}

.cnt-escudos-wrap .cnt-size-help-specs {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    color: var(--cnt-uv-text-muted);
    margin-top: 0.4rem;
    padding-top: 0.4rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.06);
}

.cnt-escudos-wrap .cnt-size-help-specs strong {
    color: var(--cnt-uv-text-secondary);
}

/* ==========================================================================
   7. GRID VISUAL DE TEXTURAS TÁCTILES DTF UV 3D (CON SCROLL VERTICAL COMPACTO)
   ========================================================================== */
.cnt-escudos-wrap .cnt-textures-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-top: 0.35rem;
    max-height: 210px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 6px;
    padding-bottom: 2px;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 194, 255, 0.4) rgba(0, 0, 0, 0.3);
}

.cnt-escudos-wrap .cnt-textures-grid::-webkit-scrollbar {
    width: 5px;
}

.cnt-escudos-wrap .cnt-textures-grid::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 9999px;
}

.cnt-escudos-wrap .cnt-textures-grid::-webkit-scrollbar-thumb {
    background: rgba(0, 194, 255, 0.35);
    border-radius: 9999px;
}

.cnt-escudos-wrap .cnt-textures-grid::-webkit-scrollbar-thumb:hover {
    background: var(--cnt-uv-cyan-bright);
}

.cnt-escudos-wrap .cnt-texture-card {
    background: rgba(10, 15, 28, 0.7);
    border: 1.5px solid var(--cnt-uv-border-subtle);
    border-radius: 0.75rem;
    padding: 0.5rem 0.4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.cnt-escudos-wrap .cnt-texture-card:hover {
    border-color: rgba(0, 194, 255, 0.45);
    background: rgba(0, 194, 255, 0.05);
    transform: translateY(-2px);
}

.cnt-escudos-wrap .cnt-texture-card.active {
    border-color: var(--cnt-uv-cyan-bright);
    background: linear-gradient(135deg, rgba(0, 194, 255, 0.15) 0%, rgba(99, 102, 241, 0.1) 100%);
    box-shadow: 0 4px 16px rgba(0, 194, 255, 0.25), inset 0 0 12px rgba(0, 194, 255, 0.1);
}

.cnt-escudos-wrap .cnt-texture-preview {
    width: 32px;
    height: 32px;
    border-radius: 0.45rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--cnt-uv-cyan-bright);
    margin-bottom: 0.25rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--cnt-uv-cyan-bright);
    margin-bottom: 0.35rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Patrones visuales sutiles en miniatura de texturas */
.cnt-escudos-wrap .cnt-tex-liso {
    background: radial-gradient(circle at 35% 35%, #38bdf8 0%, #0284c7 60%, #0f172a 100%);
}
.cnt-escudos-wrap .cnt-tex-curvy {
    background: repeating-radial-gradient(circle at 50% 50%, #0284c7, #0284c7 3px, #0f172a 4px, #0f172a 7px);
}
.cnt-escudos-wrap .cnt-tex-gotas {
    background: radial-gradient(circle at 30% 30%, #ffffff 0%, #0284c7 40%, #0f172a 100%);
}
.cnt-escudos-wrap .cnt-tex-carbono {
    background: linear-gradient(45deg, #1e293b 25%, #0284c7 25%, #0284c7 50%, #1e293b 50%, #1e293b 75%, #0284c7 75%, #0284c7 100%);
    background-size: 8px 8px;
}
.cnt-escudos-wrap .cnt-tex-piel {
    background: radial-gradient(#0284c7 15%, transparent 16%) 0 0, radial-gradient(#0284c7 15%, transparent 16%) 4px 4px;
    background-size: 8px 8px;
    background-color: #0f172a;
}
.cnt-escudos-wrap .cnt-tex-panal {
    background: radial-gradient(circle, #0284c7 20%, transparent 20%), radial-gradient(circle, #0284c7 20%, transparent 20%);
    background-size: 10px 10px;
    background-color: #0b1120;
}
.cnt-escudos-wrap .cnt-tex-ladrillo {
    background: linear-gradient(to right, #0284c7 1px, transparent 1px), linear-gradient(to bottom, #0284c7 1px, #0f172a 1px);
    background-size: 10px 6px;
}
.cnt-escudos-wrap .cnt-tex-puntos {
    background: radial-gradient(circle, #38bdf8 2px, #0f172a 2px);
    background-size: 6px 6px;
}
.cnt-escudos-wrap .cnt-tex-lineas {
    background: repeating-linear-gradient(45deg, #0284c7, #0284c7 2px, #0f172a 2px, #0f172a 6px);
}
.cnt-escudos-wrap .cnt-tex-diamante {
    background: linear-gradient(135deg, #0284c7 25%, transparent 25%) -4px 0, linear-gradient(225deg, #0284c7 25%, transparent 25%) -4px 0, linear-gradient(315deg, #0284c7 25%, transparent 25%), linear-gradient(45deg, #0284c7 25%, #0f172a 25%);
    background-size: 8px 8px;
}

.cnt-escudos-wrap .cnt-texture-name {
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--cnt-uv-text-primary);
    line-height: 1.15;
}

.cnt-escudos-wrap .cnt-texture-tag {
    font-size: 0.62rem;
    color: var(--cnt-uv-text-muted);
    margin-top: 0.1rem;
}

.cnt-escudos-wrap .cnt-texture-sliders-box {
    margin-top: 0.85rem;
    background: rgba(10, 15, 28, 0.5);
    border: 1px solid var(--cnt-uv-border-subtle);
    border-radius: 0.75rem;
    padding: 0.85rem;
}

.cnt-escudos-wrap .cnt-depth-presets-row {
    display: flex;
    gap: 0.35rem;
    margin: 0.45rem 0;
}

.cnt-escudos-wrap .cnt-depth-pill {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--cnt-uv-border-subtle);
    border-radius: 0.45rem;
    color: var(--cnt-uv-text-secondary);
    padding: 0.35rem 0.25rem;
    font-size: 0.68rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
}

.cnt-escudos-wrap .cnt-depth-pill:hover,
.cnt-escudos-wrap .cnt-depth-pill.active {
    background: rgba(0, 194, 255, 0.15);
    border-color: var(--cnt-uv-cyan-bright);
    color: #ffffff;
}

/* ==========================================================================
   8. SLIDERS Y CONTROLES DE RANGO
   ========================================================================== */
.cnt-escudos-wrap .cnt-slider-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.cnt-escudos-wrap .cnt-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
}

.cnt-escudos-wrap .cnt-slider-label {
    font-weight: 600;
    color: var(--cnt-uv-text-secondary);
}

.cnt-escudos-wrap .cnt-slider-val {
    font-weight: 700;
    color: var(--cnt-uv-cyan-bright);
}

.cnt-escudos-wrap .cnt-range-input {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    outline: none;
    margin: 0.4rem 0;
}

.cnt-escudos-wrap .cnt-range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--cnt-uv-cyan-bright);
    box-shadow: 0 0 10px rgba(0, 194, 255, 0.75);
    cursor: pointer;
    transition: transform 0.15s ease;
}

.cnt-escudos-wrap .cnt-range-input::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.cnt-escudos-wrap .cnt-range-ticks {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    color: var(--cnt-uv-text-muted);
}

/* ==========================================================================
   9. SELECTORES SEGMENTADOS, BOTONES Y SWITCHES
   ========================================================================== */
.cnt-escudos-wrap .cnt-field-group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.cnt-escudos-wrap .cnt-field-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--cnt-uv-text-secondary);
}

.cnt-escudos-wrap .cnt-btn-group-segmented {
    display: flex;
    background: rgba(10, 15, 28, 0.85);
    border: 1px solid var(--cnt-uv-border-subtle);
    border-radius: 0.75rem;
    padding: 0.25rem;
    gap: 0.25rem;
}

.cnt-escudos-wrap .cnt-btn-group-segmented button {
    flex: 1;
    background: transparent;
    border: none;
    border-radius: 0.55rem;
    color: var(--cnt-uv-text-secondary);
    padding: 0.5rem 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    transition: all 0.2s ease;
}

.cnt-escudos-wrap .cnt-btn-group-segmented button:hover {
    color: #ffffff;
}

.cnt-escudos-wrap .cnt-btn-group-segmented button.active {
    background: rgba(0, 194, 255, 0.18);
    border: 1px solid rgba(0, 194, 255, 0.4);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 194, 255, 0.2);
}

/* Selector Vertical de Modos de Aplicación */
.cnt-escudos-wrap .cnt-btn-group-vertical {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.cnt-escudos-wrap .cnt-app-mode-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(10, 15, 28, 0.65);
    border: 1.5px solid var(--cnt-uv-border-subtle);
    border-radius: 0.75rem;
    padding: 0.65rem 0.75rem;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
}

.cnt-escudos-wrap .cnt-app-mode-btn:hover {
    border-color: rgba(0, 194, 255, 0.4);
    background: rgba(0, 194, 255, 0.05);
}

.cnt-escudos-wrap .cnt-app-mode-btn.active {
    border-color: var(--cnt-uv-cyan-bright);
    background: linear-gradient(135deg, rgba(0, 194, 255, 0.14) 0%, rgba(99, 102, 241, 0.08) 100%);
    box-shadow: 0 4px 14px rgba(0, 194, 255, 0.2);
}

.cnt-escudos-wrap .cnt-app-mode-icon {
    width: 32px;
    height: 32px;
    border-radius: 0.5rem;
    background: rgba(0, 194, 255, 0.15);
    color: var(--cnt-uv-cyan-bright);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    flex-shrink: 0;
}

.cnt-escudos-wrap .cnt-app-mode-text {
    flex: 1;
}

.cnt-escudos-wrap .cnt-app-mode-text strong {
    display: block;
    font-size: 0.8rem;
    color: var(--cnt-uv-text-primary);
}

.cnt-escudos-wrap .cnt-app-mode-text span {
    display: block;
    font-size: 0.7rem;
    color: var(--cnt-uv-text-muted);
    line-height: 1.3;
}

.cnt-escudos-wrap .cnt-input-help {
    font-size: 0.7rem;
    color: var(--cnt-uv-text-muted);
    line-height: 1.35;
}

.cnt-escudos-wrap .cnt-input-help strong {
    color: var(--cnt-uv-cyan-bright);
}

.cnt-escudos-wrap .cnt-divider {
    height: 1px;
    background: var(--cnt-uv-border-subtle);
    margin: 0.4rem 0;
}

/* Switch Toggle */
.cnt-escudos-wrap .cnt-switch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.cnt-escudos-wrap .cnt-switch-info {
    flex: 1;
}

.cnt-escudos-wrap .cnt-switch-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--cnt-uv-text-primary);
}

.cnt-escudos-wrap .cnt-switch-desc {
    display: block;
    font-size: 0.68rem;
    color: var(--cnt-uv-text-muted);
}

.cnt-escudos-wrap .cnt-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
    flex-shrink: 0;
}

.cnt-escudos-wrap .cnt-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cnt-escudos-wrap .cnt-switch-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 9999px;
    transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.cnt-escudos-wrap .cnt-switch-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.cnt-escudos-wrap .cnt-switch input:checked + .cnt-switch-slider {
    background-color: var(--cnt-uv-cyan-bright);
}

.cnt-escudos-wrap .cnt-switch input:checked + .cnt-switch-slider:before {
    transform: translateX(18px);
}

/* Presets de Grosor de Bisel */
.cnt-escudos-wrap .cnt-bevel-presets-row {
    display: flex;
    gap: 0.35rem;
    margin-bottom: 0.45rem;
}

/* Grilla Unificada de Color de Contorno / Filete */
.cnt-escudos-wrap .cnt-border-color-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.45rem;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 480px) {
    .cnt-escudos-wrap .cnt-border-color-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.cnt-escudos-wrap .cnt-border-chip {
    padding: 0.42rem 0.5rem;
    border-radius: 0.65rem;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid var(--cnt-uv-border-subtle);
    background: rgba(15, 23, 42, 0.65);
    color: var(--cnt-uv-text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.42rem;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    user-select: none;
    min-height: 36px;
    box-sizing: border-box;
    text-align: center;
}

.cnt-escudos-wrap .cnt-border-chip:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.22);
    transform: translateY(-1px);
}

.cnt-escudos-wrap .cnt-border-chip.active {
    background: rgba(0, 194, 255, 0.14);
    border-color: var(--cnt-uv-cyan-bright);
    color: #ffffff;
    box-shadow: 0 0 12px rgba(0, 194, 255, 0.35);
}

.cnt-escudos-wrap .cnt-color-swatch-dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    box-sizing: border-box;
}

.cnt-escudos-wrap .cnt-swatch-gold {
    background: linear-gradient(135deg, #ffe066 0%, #ffd700 50%, #b8860b 100%);
    box-shadow: 0 0 6px rgba(255, 215, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.cnt-escudos-wrap .cnt-swatch-silver {
    background: linear-gradient(135deg, #ffffff 0%, #d1d5db 50%, #9ca3af 100%);
    box-shadow: 0 0 6px rgba(200, 200, 200, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.cnt-escudos-wrap .cnt-swatch-white {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.25);
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.3);
}

.cnt-escudos-wrap .cnt-swatch-black {
    background: #0f172a;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
}

.cnt-escudos-wrap .cnt-swatch-custom {
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 6px rgba(0, 194, 255, 0.4);
}

/* Chip de Color Personalizado con input integrado */
.cnt-escudos-wrap .cnt-chip-custom {
    overflow: hidden;
    position: relative;
}

.cnt-escudos-wrap .cnt-custom-color-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    border: none;
    padding: 0;
    margin: 0;
}

/* ==========================================================================
   10. WORKSPACE / VIEWPORT & TOPBAR TOOLBAR (1 SOLA LÍNEA ESTANDARIZADA)
   ========================================================================== */
.cnt-escudos-wrap .cnt-viewport-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 1.15rem;
    border-bottom: 1px solid var(--cnt-uv-border-subtle);
    background: rgba(10, 16, 28, 0.95);
    gap: 0.75rem;
    flex-wrap: nowrap;
    flex-shrink: 0;
    min-height: 48px;
    box-sizing: border-box;
    z-index: 20;
}

.cnt-escudos-wrap .cnt-topbar-left,
.cnt-escudos-wrap .cnt-topbar-center,
.cnt-escudos-wrap .cnt-topbar-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

.cnt-escudos-wrap .cnt-viewmode-selector {
    display: inline-flex;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid var(--cnt-uv-border-subtle);
    border-radius: 0.65rem;
    padding: 0.2rem;
    gap: 0.25rem;
}

.cnt-escudos-wrap .cnt-vmode-btn {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 0.45rem;
    color: var(--cnt-uv-text-secondary);
    padding: 0.35rem 0.75rem;
    font-size: 0.74rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cnt-escudos-wrap .cnt-vmode-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

.cnt-escudos-wrap .cnt-vmode-btn.active {
    background: linear-gradient(135deg, rgba(0, 194, 255, 0.25) 0%, rgba(2, 132, 199, 0.45) 100%);
    border: 1px solid rgba(0, 194, 255, 0.5);
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 194, 255, 0.2);
}

/* Selector de Sustrato / Fondo Prenda */
.cnt-escudos-wrap .cnt-substrate-selector {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--cnt-uv-border-subtle);
    border-radius: 0.55rem;
    padding: 0.28rem 0.45rem;
    height: 32px;
    box-sizing: border-box;
}

.cnt-escudos-wrap .cnt-sub-swatches {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.cnt-escudos-wrap .cnt-sub-swatch {
    width: 20px;
    height: 20px;
    border-radius: 0.35rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    padding: 0;
    position: relative;
    overflow: hidden;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.cnt-escudos-wrap .cnt-sub-swatch:hover,
.cnt-escudos-wrap .cnt-sub-swatch.active {
    border-color: var(--cnt-uv-cyan-bright);
    box-shadow: 0 0 8px rgba(0, 194, 255, 0.5);
}

.cnt-escudos-wrap .cnt-swatch-checkered {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(45deg, #1e293b 25%, transparent 25%),
        linear-gradient(-45deg, #1e293b 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #1e293b 75%),
        linear-gradient(-45deg, transparent 75%, #1e293b 75%);
    background-size: 6px 6px;
    background-color: #0b0f17;
}

/* Controles de Navegación 3D y Zoom Estandarizados */
.cnt-escudos-wrap .cnt-3d-controls {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.cnt-escudos-wrap .cnt-toggle-btn {
    width: 32px;
    height: 32px;
    border-radius: 0.55rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--cnt-uv-border-subtle);
    color: var(--cnt-uv-text-secondary);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
}

.cnt-escudos-wrap .cnt-toggle-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.cnt-escudos-wrap .cnt-toggle-btn.active {
    background: rgba(0, 194, 255, 0.15);
    border-color: var(--cnt-uv-cyan-bright);
    color: var(--cnt-uv-cyan-bright);
    box-shadow: 0 0 12px rgba(0, 194, 255, 0.25);
}

.cnt-escudos-wrap .cnt-zoom-controls {
    display: inline-flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--cnt-uv-border-subtle);
    border-radius: 0.65rem;
    overflow: hidden;
    gap: 0;
    padding: 0;
}

.cnt-escudos-wrap .cnt-zoom-btn {
    width: 34px;
    height: 32px;
    border-radius: 0;
    background: transparent;
    border: none;
    color: var(--cnt-uv-text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.78rem;
    transition: all 0.15s ease;
}

.cnt-escudos-wrap .cnt-zoom-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.cnt-escudos-wrap .cnt-zoom-btn-text {
    width: auto;
    padding: 0 0.75rem;
    font-size: 0.74rem;
    font-weight: 700;
    gap: 0.35rem;
    border-left: 1px solid var(--cnt-uv-border-subtle);
    white-space: nowrap;
}

.cnt-escudos-wrap .cnt-zoom-level {
    font-size: 0.76rem;
    font-weight: 800;
    color: #ffffff;
    min-width: 48px;
    text-align: center;
}

/* ==========================================================================
   11. ESCENARIO DEL VISOR & AJEDREZADO DE TRANSPARENCIA (REGLA 9)
   ========================================================================== */
.cnt-escudos-wrap .cnt-escudos-viewport {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    max-height: none;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #060907;
    background-image:
        linear-gradient(45deg, #0f1511 25%, transparent 25%),
        linear-gradient(-45deg, #0f1511 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #0f1511 75%),
        linear-gradient(-45deg, transparent 75%, #0f1511 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    user-select: none;
}

/* Modos de fondo del viewport */
.cnt-escudos-wrap .cnt-escudos-viewport.substrate-garment {
    background-image:
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.04) 0%, transparent 60%),
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.015) 0, rgba(255, 255, 255, 0.015) 1px, transparent 1px, transparent 2px);
    background-size: auto, 3px 3px;
}

/* Estado Vacío Estandarizado Colornitido */
.cnt-escudos-wrap .cnt-empty-state,
.cnt-escudos-wrap .cnt-viewport-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    max-width: 460px;
    margin: auto;
    pointer-events: auto;
    z-index: 5;
}

.cnt-escudos-wrap .cnt-empty-icon,
.cnt-escudos-wrap .cnt-placeholder-icon {
    width: 76px;
    height: 76px;
    border-radius: 1.35rem;
    background: rgba(0, 194, 255, 0.08);
    border: 1px solid rgba(0, 194, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--cnt-uv-cyan-bright);
    margin-bottom: 1rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 25px rgba(0, 194, 255, 0.15);
}

.cnt-escudos-wrap .cnt-empty-state h3,
.cnt-escudos-wrap .cnt-empty-state h4,
.cnt-escudos-wrap .cnt-viewport-placeholder h4 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 0.45rem;
}

.cnt-escudos-wrap .cnt-empty-state p,
.cnt-escudos-wrap .cnt-viewport-placeholder p {
    font-size: 0.85rem;
    color: var(--cnt-uv-text-secondary);
    margin: 0 0 1.35rem;
    line-height: 1.5;
}

.cnt-escudos-wrap .cnt-btn-empty-upload,
.cnt-escudos-wrap .cnt-btn-placeholder-upload {
    background: rgba(0, 194, 255, 0.15);
    color: var(--cnt-uv-cyan-bright);
    border: 1px solid rgba(0, 194, 255, 0.4);
    border-radius: 0.75rem;
    padding: 0.7rem 1.35rem;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    transition: all 0.25s ease;
}

.cnt-escudos-wrap .cnt-btn-empty-upload:hover,
.cnt-escudos-wrap .cnt-btn-placeholder-upload:hover {
    background: var(--cnt-uv-cyan-bright);
    color: #07090e;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 194, 255, 0.4);
}

/* Escenario Activo */
.cnt-escudos-wrap .cnt-viewer-stage {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    perspective: 1200px;
    -webkit-perspective: 1200px;
}

/* ==========================================================================
   12. ETIQUETAS FLOTANTES FIJAS Y HINT 3D (REGLA 11 GEMINI.MD)
   ========================================================================== */
.cnt-escudos-wrap .cnt-floating-tag {
    position: absolute;
    top: 16px;
    padding: 0.4rem 0.95rem;
    border-radius: 9999px;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    z-index: 35;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.55);
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.cnt-escudos-wrap .cnt-tag-orig {
    left: 16px;
    background: rgba(15, 23, 42, 0.9);
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.cnt-escudos-wrap .cnt-tag-res {
    right: 16px;
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.95) 0%, rgba(2, 132, 199, 0.95) 50%, rgba(99, 102, 241, 0.95) 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.38);
}

.cnt-escudos-wrap .cnt-3d-hint-pill {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(0, 194, 255, 0.35);
    color: var(--cnt-uv-cyan-bright);
    border-radius: 9999px;
    padding: 0.35rem 0.95rem;
    font-size: 0.72rem;
    font-weight: 600;
    z-index: 35;
    pointer-events: none;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

/* ==========================================================================
   13. CONTENEDOR DE ZOOM Y RENDERIZADO 3D
   ========================================================================== */
.cnt-escudos-wrap .cnt-zoomable-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-origin: center center;
    transition: transform 0.08s ease-out;
}

.cnt-escudos-wrap .cnt-zoomable-container.is-split-mode {
    overflow: visible;
    cursor: ew-resize !important;
}

/* Capa de Renderizado 3D */
.cnt-escudos-wrap .cnt-3d-render-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    cursor: grab;
    transition: filter 0.2s ease;
}

.cnt-escudos-wrap .cnt-3d-render-wrap:active {
    cursor: grabbing;
}

.cnt-escudos-wrap #cnt-uv-canvas-3d,
.cnt-escudos-wrap #cnt-uv-canvas-flat {
    display: block;
    max-width: none;
    border-radius: 6px;
}

/* Sombra dinámica 3D sobre la prenda */
.cnt-escudos-wrap .cnt-3d-render-wrap canvas {
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.65));
}

/* Capa 2D para Vista Dividida (Split) */
.cnt-escudos-wrap .cnt-layer-original {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: 6px;
    pointer-events: none;
}

/* ==========================================================================
   14. ESTÁNDAR UNIFICADO DE SPLIT SLIDER (REGLA 11 GEMINI.MD)
   ========================================================================== */
.cnt-escudos-wrap .cnt-slider-divider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: calc(56px * var(--cnt-inv-zoom, 1));
    margin-left: calc(-28px * var(--cnt-inv-zoom, 1));
    z-index: 30;
    cursor: ew-resize;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.cnt-escudos-wrap .cnt-slider-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: calc(3px * var(--cnt-inv-zoom, 1));
    background: linear-gradient(180deg, #00c2ff 0%, #ffffff 50%, #00c2ff 100%);
    box-shadow: 0 0 calc(2px * var(--cnt-inv-zoom, 1)) calc(1px * var(--cnt-inv-zoom, 1)) rgba(7, 9, 14, 0.85),
                0 0 calc(14px * var(--cnt-inv-zoom, 1)) rgba(0, 194, 255, 0.85);
}

.cnt-escudos-wrap .cnt-slider-handle {
    width: 44px;
    height: 44px;
    border-radius: 9999px;
    flex-shrink: 0;
    font-size: 0.95rem;
    background: rgba(15, 23, 42, 0.95);
    color: #ffffff;
    border: 2.5px solid #00c2ff;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.75), 0 0 18px rgba(0, 194, 255, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(var(--cnt-inv-zoom, 1));
    transform-origin: center center;
    z-index: 32;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.cnt-escudos-wrap .cnt-slider-divider:hover .cnt-slider-handle,
.cnt-escudos-wrap .cnt-slider-divider.is-dragging .cnt-slider-handle {
    transform: scale(calc(var(--cnt-inv-zoom, 1) * 1.15));
    background: linear-gradient(135deg, #00c2ff 0%, #0284c7 55%, #6366f1 100%);
    color: #ffffff;
    border-color: #ffffff;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.8), 0 0 26px rgba(0, 194, 255, 0.95);
}

/* ==========================================================================
   15. BARRA INFERIOR DE ACCIONES Y DESCARGA (REGLAS 6, 9 Y 10 GEMINI.MD)
   ========================================================================== */
.cnt-escudos-wrap .cnt-bottom-bar {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0.75rem 1.15rem 0.85rem;
    border-top: 1px solid var(--cnt-uv-border-subtle);
    background: rgba(10, 15, 28, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    gap: 0.65rem;
    z-index: 10;
    flex-shrink: 0;
    box-sizing: border-box;
}

/* Fila Superior: Métricas y Especificaciones Técnicas */
.cnt-escudos-wrap .cnt-bottom-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    width: 100%;
    min-width: 0;
    overflow: visible;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 0.55rem;
}

.cnt-escudos-wrap .cnt-bottom-info::-webkit-scrollbar {
    display: none;
}

.cnt-escudos-wrap .cnt-info-pill {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid var(--cnt-uv-border-subtle);
    border-radius: 9999px;
    padding: 0.35rem 0.75rem;
    font-size: 0.74rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    flex: 1 1 auto;
    justify-content: center;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.cnt-escudos-wrap .cnt-info-pill i {
    color: var(--cnt-uv-cyan-bright);
    font-size: 0.74rem;
    opacity: 0.85;
}

.cnt-escudos-wrap .cnt-info-label {
    color: var(--cnt-uv-text-muted);
    font-weight: 500;
}

.cnt-escudos-wrap .cnt-info-pill strong {
    color: var(--cnt-uv-text-primary);
    font-weight: 700;
}

.cnt-escudos-wrap .cnt-info-pill-accent {
    background: rgba(0, 194, 255, 0.08);
    border-color: rgba(0, 194, 255, 0.28);
}

.cnt-escudos-wrap .cnt-info-pill-accent strong {
    color: var(--cnt-uv-cyan-bright);
}

.cnt-escudos-wrap .cnt-info-pill:hover {
    background: rgba(15, 23, 42, 0.95);
    border-color: rgba(0, 194, 255, 0.3);
}

/* Fila Inferior: Botones de Acción y Descarga */
.cnt-escudos-wrap .cnt-bottom-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.65rem;
    width: 100%;
    flex-wrap: nowrap;
    box-sizing: border-box;
}

/* Botón Secundario Pack Producción */
.cnt-escudos-wrap .cnt-btn-pack-uv {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(0, 194, 255, 0.35);
    color: var(--cnt-uv-cyan-bright);
    border-radius: 0.75rem;
    padding: 0.7rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition: all 0.22s ease;
    flex-shrink: 0;
}

.cnt-escudos-wrap .cnt-btn-pack-uv:hover:not(:disabled) {
    background: rgba(0, 194, 255, 0.15);
    border-color: var(--cnt-uv-cyan-bright);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(0, 194, 255, 0.3);
    transform: translateY(-2px);
}

/* Botón Principal Único de Descarga (Regla 6 y 9 GEMINI.md) */
.cnt-escudos-wrap .cnt-btn-download-uv-main {
    background: linear-gradient(135deg, #00b4d8 0%, #0284c7 45%, #6366f1 100%);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 0.75rem;
    padding: 0.7rem 1.5rem;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 18px -2px rgba(2, 132, 199, 0.45);
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
}

.cnt-escudos-wrap .cnt-btn-download-uv-main:hover:not(:disabled) {
    background: linear-gradient(135deg, #00c2ff 0%, #0ea5e9 45%, #7c3aed 100%);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -4px rgba(124, 58, 237, 0.55), 0 0 20px rgba(0, 194, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Estados Desactivados Obligatorios (Regla 10) */
.cnt-escudos-wrap .cnt-bottom-bar button:disabled,
.cnt-escudos-wrap .cnt-btn-download-uv-main:disabled,
.cnt-escudos-wrap .cnt-btn-pack-uv:disabled {
    opacity: 0.42 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    transform: none !important;
    box-shadow: none !important;
}

/* ==========================================================================
   16. MODAL DE PROCESAMIENTO / RENDERIZADO 300 DPI
   ========================================================================== */
.cnt-escudos-wrap .cnt-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(5, 8, 15, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1.5rem;
}

.cnt-escudos-wrap .cnt-modal-box {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(0, 194, 255, 0.35);
    border-radius: 1.5rem;
    padding: 2.25rem 2rem;
    max-width: 440px;
    width: 100%;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.75), 0 0 35px rgba(0, 194, 255, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
}

.cnt-escudos-wrap .cnt-modal-spinner {
    font-size: 2.5rem;
    color: var(--cnt-uv-cyan-bright);
    margin-bottom: 0.35rem;
}

.cnt-escudos-wrap .cnt-modal-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
}

.cnt-escudos-wrap .cnt-modal-desc {
    font-size: 0.82rem;
    color: var(--cnt-uv-text-secondary);
    margin: 0;
    line-height: 1.45;
}

.cnt-escudos-wrap .cnt-modal-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.cnt-escudos-wrap .cnt-modal-progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #00c2ff 0%, #6366f1 100%);
    border-radius: 999px;
    transition: width 0.2s ease;
}

.cnt-escudos-wrap .cnt-modal-perc {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--cnt-uv-cyan-bright);
}

/* ==========================================================================
   17. RESPONSIVIDAD (MOBILE / TABLETS)
   ========================================================================== */
@media (max-width: 1023px) {
    .cnt-escudos-wrap .cnt-studio-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.25rem;
        width: 100%;
        max-width: 100%;
    }

    .cnt-escudos-wrap .cnt-sidebar-controls {
        height: 580px;
        max-height: 580px;
        position: relative;
        top: 0;
        overflow: hidden;
        min-width: 0;
        max-width: 100%;
    }

    .cnt-escudos-wrap .cnt-main-workspace {
        height: 560px;
        min-height: 500px;
        min-width: 0;
        max-width: 100%;
    }

    .cnt-escudos-wrap .cnt-viewport-toolbar {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.45rem;
        padding: 0.55rem 0.75rem;
        height: auto;
    }

    .cnt-escudos-wrap .cnt-topbar-left,
    .cnt-escudos-wrap .cnt-topbar-right,
    .cnt-escudos-wrap .cnt-view-mode-group {
        flex-wrap: wrap;
        justify-content: center;
        max-width: 100%;
    }

    .cnt-escudos-wrap .cnt-bottom-bar {
        padding: 0.75rem 0.85rem;
        gap: 0.65rem;
    }

    .cnt-escudos-wrap .cnt-bottom-info {
        flex-wrap: wrap;
        overflow-x: visible;
        justify-content: center;
    }

    .cnt-escudos-wrap .cnt-bottom-actions {
        flex-direction: column;
        width: 100%;
    }

    .cnt-escudos-wrap .cnt-btn-download-uv-main,
    .cnt-escudos-wrap .cnt-btn-pack-uv {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .cnt-escudos-wrap .cnt-info-pill {
        flex: 1 1 100%;
        justify-content: center;
        white-space: normal;
        text-align: center;
    }
    .cnt-escudos-wrap .cnt-3d-hint-pill {
        max-width: calc(100% - 24px);
        white-space: normal;
        text-align: center;
        font-size: 0.68rem;
    }
}
