/* ═══════════════════════════════════════════════════════════════════
   COLORNITIDO TOOLS — CREADOR DE FOTOS DE PERFIL
   Estilos 100% Autónomos, Modo Oscuro Neón & Diseño Ergonómico
   ═══════════════════════════════════════════════════════════════════ */

:root {
    --cnt-pfp-emerald: #0284c7;
    --cnt-pfp-emerald-bright: #00c2ff;
    --cnt-pfp-emerald-glow: rgba(0, 194, 255, 0.35);
    --cnt-pfp-emerald-dark: #6366f1;
    --cnt-pfp-cyan-bright: #38bdf8;
    --cnt-pfp-bg-surface: rgba(15, 23, 42, 0.90);
    --cnt-pfp-bg-card: rgba(20, 28, 48, 0.75);
    --cnt-pfp-border-subtle: rgba(255, 255, 255, 0.08);
    --cnt-pfp-text-primary: #f8fafc;
    --cnt-pfp-text-secondary: #94a3b8;
    --cnt-pfp-text-muted: #64748b;
    --cnt-pfp-danger: #ef4444;
}

/* ─── Contenedor Principal (Regla 13: 100% Viewport Width) ─── */
.cnt-pfp-wrap {
    position: relative;
    width: 100%;
    max-width: none !important;
    min-height: 100vh;
    color: var(--cnt-pfp-text-primary);
    box-sizing: border-box;
    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%),
        #07090e;
}

.cnt-tool-page .cnt-pfp-wrap,
#cnt-creador-foto-de-perfil {
    padding-top: clamp(8.5rem, 13vw, 11rem) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-bottom: 3rem;
}

/* ─── Resplandor ambiental de fondo ─── */
.cnt-pfp-wrap .cnt-bg-glow-emerald {
    position: absolute;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    width: 650px;
    height: 450px;
    background: radial-gradient(circle, rgba(0, 194, 255, 0.16) 0%, rgba(99, 102, 241, 0.06) 50%, transparent 75%);
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

/* ─── Encabezado (Alineado con Blocksy Container) ─── */
.cnt-pfp-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-pfp-wrap .cnt-header-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cnt-pfp-wrap .cnt-tool-icon-emerald {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(0, 194, 255, 0.25), rgba(99, 102, 241, 0.1));
    border: 1px solid rgba(0, 194, 255, 0.4);
    color: var(--cnt-pfp-emerald-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;
}

.cnt-pfp-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-pfp-emerald-bright);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.6rem;
}

.cnt-pfp-wrap .cnt-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--cnt-pfp-emerald-bright);
    box-shadow: 0 0 8px var(--cnt-pfp-emerald-bright);
}

.cnt-pfp-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, #fff 0%, #a1a1aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    overflow: visible;
}

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

/* ─── Layout Principal de 2 Columnas ─── */
.cnt-pfp-wrap .cnt-pfp-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-pfp-wrap .cnt-pfp-layout {
        grid-template-columns: 400px 1fr;
        align-items: start;
    }
}

/* ─── Barra Lateral de Controles (Regla 8: Sticky + Altura Unificada) ─── */
.cnt-pfp-wrap .cnt-sidebar-controls {
    display: flex;
    flex-direction: column;
    background: var(--cnt-pfp-bg-surface);
    border: 1px solid var(--cnt-pfp-border-subtle);
    border-radius: 1.5rem;
    padding: 1.25rem 1.15rem 1.15rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-sizing: border-box;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .cnt-pfp-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;
    }
    .cnt-pfp-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;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }
    .cnt-pfp-wrap .cnt-canvas-viewport {
        flex: 1 1 auto;
        min-height: 0;
        height: auto;
        max-height: none;
    }
}

@media (max-width: 1023px) {
    .cnt-pfp-wrap .cnt-sidebar-controls {
        position: relative;
        top: 0;
        height: 580px;
        max-height: 580px;
    }
    .cnt-pfp-wrap .cnt-main-workspace {
        height: 580px;
        min-height: 500px;
        display: flex;
        flex-direction: column;
    }
}

.cnt-pfp-wrap .cnt-sidebar-scroll-body {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    padding-right: 0.35rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 194, 255, 0.35) rgba(0, 0, 0, 0.25);
}

.cnt-pfp-wrap .cnt-sidebar-scroll-body::-webkit-scrollbar {
    width: 6px;
}
.cnt-pfp-wrap .cnt-sidebar-scroll-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 4px;
}
.cnt-pfp-wrap .cnt-sidebar-scroll-body::-webkit-scrollbar-thumb {
    background: rgba(0, 194, 255, 0.35);
    border-radius: 4px;
}
.cnt-pfp-wrap .cnt-sidebar-scroll-body::-webkit-scrollbar-thumb:hover {
    background: #00c2ff;
}

/* ─── Tarjetas de Control (Regla 12: Numeración Estándar) ─── */
.cnt-pfp-wrap .cnt-control-card {
    background: var(--cnt-pfp-bg-card);
    border: 1px solid var(--cnt-pfp-border-subtle);
    border-radius: 1rem;
    padding: 1rem 1.05rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    transition: border-color 0.25s ease;
}

.cnt-pfp-wrap .cnt-control-card:hover {
    border-color: rgba(0, 194, 255, 0.22);
}

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

.cnt-pfp-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-pfp-emerald-bright);
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

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

/* ─── 1. Dropzone de Carga ─── */
.cnt-pfp-wrap .cnt-dropzone {
    position: relative;
    border: 2px dashed rgba(0, 194, 255, 0.3);
    border-radius: 0.85rem;
    padding: 1.4rem 1rem;
    text-align: center;
    cursor: pointer;
    background: rgba(0, 194, 255, 0.02);
    transition: all 0.25s ease;
}

.cnt-pfp-wrap .cnt-dropzone:hover,
.cnt-pfp-wrap .cnt-dropzone.dragover {
    border-color: var(--cnt-pfp-emerald-bright);
    background: rgba(0, 194, 255, 0.06);
    box-shadow: 0 0 20px rgba(0, 194, 255, 0.15);
}

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

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

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

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

.cnt-pfp-wrap .cnt-dropzone-subtitle {
    font-size: 0.75rem;
    color: var(--cnt-pfp-text-secondary);
}

.cnt-pfp-wrap .cnt-dropzone-tags {
    font-size: 0.68rem;
    color: var(--cnt-pfp-text-muted);
    background: rgba(255, 255, 255, 0.04);
    padding: 0.25rem 0.6rem;
    border-radius: 9999px;
    margin-top: 0.25rem;
}

.cnt-pfp-wrap .cnt-dropzone-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 0.5rem;
}

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

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

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

/* Tarjeta de Archivo Cargado */
.cnt-pfp-wrap .cnt-file-info-card {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid var(--cnt-pfp-border-subtle);
    border-radius: 0.75rem;
    padding: 0.65rem 0.75rem;
    box-sizing: border-box;
}

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

.cnt-pfp-wrap .cnt-file-thumb {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    background: #000;
    border: 1.5px solid var(--cnt-pfp-emerald-bright);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cnt-pfp-wrap .cnt-file-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cnt-pfp-wrap .cnt-file-meta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cnt-pfp-wrap .cnt-file-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--cnt-pfp-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.cnt-pfp-wrap .cnt-pill-tag {
    font-size: 0.68rem;
    padding: 0.15rem 0.45rem;
    border-radius: 9999px;
    font-weight: 600;
}

.cnt-pfp-wrap .cnt-pill-size {
    background: rgba(255, 255, 255, 0.08);
    color: var(--cnt-pfp-text-secondary);
}

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

.cnt-pfp-wrap .cnt-file-actions-btn-group {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.cnt-pfp-wrap .cnt-btn-icon-action {
    width: 30px;
    height: 30px;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: var(--cnt-pfp-text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.2s ease;
}

.cnt-pfp-wrap .cnt-btn-icon-action:hover {
    background: rgba(0, 194, 255, 0.2);
    color: var(--cnt-pfp-emerald-bright);
    border-color: rgba(0, 194, 255, 0.4);
}

.cnt-pfp-wrap .cnt-btn-icon-danger:hover {
    background: rgba(239, 68, 68, 0.2);
    color: var(--cnt-pfp-danger);
    border-color: rgba(239, 68, 68, 0.4);
}

/* Panel de Quitar Fondo con IA */
.cnt-pfp-wrap .cnt-ai-bgrem-panel {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-top: 0.65rem;
    padding-top: 0.65rem;
    border-top: 1px solid var(--cnt-pfp-border-subtle);
}

.cnt-pfp-wrap .cnt-btn-ai-remove-bg {
    background: linear-gradient(135deg, rgba(0, 194, 255, 0.22) 0%, rgba(99, 102, 241, 0.28) 100%);
    border: 1px solid rgba(0, 194, 255, 0.45);
    color: #ffffff;
    border-radius: 0.65rem;
    padding: 0.6rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.cnt-pfp-wrap .cnt-btn-ai-remove-bg:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(0, 194, 255, 0.38) 0%, rgba(99, 102, 241, 0.48) 100%);
    box-shadow: 0 0 16px rgba(0, 194, 255, 0.45);
    border-color: #00c2ff;
    transform: translateY(-1px);
}

.cnt-pfp-wrap .cnt-btn-ai-remove-bg.is-processing {
    opacity: 0.65;
    pointer-events: none;
}

.cnt-pfp-wrap .cnt-bg-mode-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.2rem;
    border-radius: 0.55rem;
    border: 1px solid var(--cnt-pfp-border-subtle);
}

.cnt-pfp-wrap .cnt-bg-mode-pill {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 0.45rem;
    color: var(--cnt-pfp-text-secondary);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.35rem 0.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    transition: all 0.2s ease;
}

.cnt-pfp-wrap .cnt-bg-mode-pill:hover:not(:disabled) {
    color: var(--cnt-pfp-text-primary);
}

.cnt-pfp-wrap .cnt-bg-mode-pill.active {
    background: rgba(0, 194, 255, 0.2);
    border-color: rgba(0, 194, 255, 0.4);
    color: var(--cnt-pfp-emerald-bright);
    box-shadow: 0 0 10px rgba(0, 194, 255, 0.2);
}

.cnt-pfp-wrap .cnt-bg-mode-pill:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* ─── 2. Presets Llamativos (1 Clic) - Carrusel con Scroll Lateral ─── */
.cnt-pfp-wrap .cnt-carousel-nav-arrows {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-left: auto;
}

.cnt-pfp-wrap .cnt-carousel-arrow-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--cnt-pfp-border-subtle);
    color: var(--cnt-pfp-text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cnt-pfp-wrap .cnt-carousel-arrow-btn:hover {
    background: rgba(0, 194, 255, 0.2);
    border-color: var(--cnt-pfp-emerald-bright);
    color: var(--cnt-pfp-emerald-bright);
    transform: scale(1.08);
}

.cnt-pfp-wrap .cnt-presets-carousel-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.cnt-pfp-wrap .cnt-presets-scroll-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.55rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.55rem;
    padding-top: 0.25rem;
    padding-left: 0.15rem;
    padding-right: 0.15rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 194, 255, 0.45) rgba(0, 0, 0, 0.25);
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

.cnt-pfp-wrap .cnt-presets-scroll-grid::-webkit-scrollbar {
    height: 5px;
}

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

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

.cnt-pfp-wrap .cnt-presets-scroll-grid::-webkit-scrollbar-thumb:hover {
    background: var(--cnt-pfp-emerald-bright);
}

.cnt-pfp-wrap .cnt-preset-btn {
    flex: 0 0 68px;
    width: 68px;
    min-width: 68px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--cnt-pfp-border-subtle);
    border-radius: 0.75rem;
    padding: 0.55rem 0.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--cnt-pfp-text-secondary);
    user-select: none;
}

.cnt-pfp-wrap .cnt-preset-btn:hover {
    background: rgba(0, 194, 255, 0.1);
    border-color: rgba(0, 194, 255, 0.4);
    color: var(--cnt-pfp-text-primary);
    transform: translateY(-2px);
}

.cnt-pfp-wrap .cnt-preset-btn.active {
    background: rgba(0, 194, 255, 0.16);
    border-color: var(--cnt-pfp-emerald-bright);
    color: var(--cnt-pfp-emerald-bright);
    box-shadow: 0 0 12px rgba(0, 194, 255, 0.25);
}

.cnt-pfp-wrap .cnt-preset-preview {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.cnt-pfp-wrap .cnt-preset-preview-scallop { background: linear-gradient(135deg, #7ec6f8, #3b82f6); color: #fff; }
.cnt-pfp-wrap .cnt-preset-preview-popout-sunset { background: linear-gradient(135deg, #ff5500 0%, #ec4899 50%, #7c3aed 100%); color: #fff; }
.cnt-pfp-wrap .cnt-preset-preview-yellow-sticker { background: #fbb034; border: 2px solid #ffffff; color: #ffffff; }
.cnt-pfp-wrap .cnt-preset-preview-scene-retrowave { background: linear-gradient(180deg, #12042b 0%, #ec4899 50%, #05020a 51%); color: #ff007f; }
.cnt-pfp-wrap .cnt-preset-preview-scene-fluid { background: linear-gradient(135deg, #86efac 0%, #a855f7 50%, #06b6d4 100%); color: #fff; }
.cnt-pfp-wrap .cnt-preset-preview-scene-sky { background: linear-gradient(180deg, #38bdf8 0%, #bae6fd 60%, #ffffff 100%); color: #0284c7; }
.cnt-pfp-wrap .cnt-preset-preview-scene-pop-memphis { background: #e9d5ff; border: 1.5px solid #facc15; color: #a855f7; }
.cnt-pfp-wrap .cnt-preset-preview-scene-office { background: radial-gradient(circle at 70% 30%, #fef3c7 15%, #cbd5e1 55%, #64748b 100%); color: #334155; }
.cnt-pfp-wrap .cnt-preset-preview-scene-mountains { background: linear-gradient(180deg, #1e1035 0%, #c026d3 50%, #f97316 80%, #0a0514 81%); color: #f97316; }
.cnt-pfp-wrap .cnt-preset-preview-instagram { background: linear-gradient(135deg, #f59e0b, #ec4899, #8b5cf6); }
.cnt-pfp-wrap .cnt-preset-preview-linkedin { background: linear-gradient(135deg, #0a66c2, #0284c7); }
.cnt-pfp-wrap .cnt-preset-preview-gamer { background: linear-gradient(135deg, #06b6d4, #a855f7); }
.cnt-pfp-wrap .cnt-preset-preview-gold { background: linear-gradient(135deg, #fef08a, #d97706); color: #000; }
.cnt-pfp-wrap .cnt-preset-preview-cyber { background: linear-gradient(135deg, #ec4899, #06b6d4); }
.cnt-pfp-wrap .cnt-preset-preview-colornitido { background: linear-gradient(135deg, #00c2ff, #6366f1); }
.cnt-pfp-wrap .cnt-preset-preview-sticker { background: #eab308; color: #000; }
.cnt-pfp-wrap .cnt-preset-preview-fire { background: linear-gradient(135deg, #ef4444, #f97316); }
.cnt-pfp-wrap .cnt-preset-preview-minimal { background: #000; border: 1.5px solid #fff; }

.cnt-pfp-wrap .cnt-preset-name {
    font-size: 0.65rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.1;
}

/* ─── 3. Troqueles & Siluetas - Carrusel con Scroll Lateral ─── */
.cnt-pfp-wrap .cnt-shapes-carousel-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.cnt-pfp-wrap .cnt-shapes-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.55rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.55rem;
    padding-top: 0.25rem;
    padding-left: 0.15rem;
    padding-right: 0.15rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 194, 255, 0.45) rgba(0, 0, 0, 0.25);
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

.cnt-pfp-wrap .cnt-shapes-grid::-webkit-scrollbar {
    height: 5px;
}

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

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

.cnt-pfp-wrap .cnt-shapes-grid::-webkit-scrollbar-thumb:hover {
    background: var(--cnt-pfp-emerald-bright);
}

.cnt-pfp-wrap .cnt-shape-btn {
    flex: 0 0 68px;
    width: 68px;
    min-width: 68px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--cnt-pfp-border-subtle);
    border-radius: 0.75rem;
    padding: 0.55rem 0.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--cnt-pfp-text-secondary);
    user-select: none;
}

.cnt-pfp-wrap .cnt-shape-btn:hover {
    background: rgba(0, 194, 255, 0.1);
    border-color: rgba(0, 194, 255, 0.4);
    color: var(--cnt-pfp-text-primary);
    transform: translateY(-2px);
}

.cnt-pfp-wrap .cnt-shape-btn.active {
    background: rgba(0, 194, 255, 0.16);
    border-color: var(--cnt-pfp-emerald-bright);
    color: var(--cnt-pfp-emerald-bright);
    box-shadow: 0 0 12px rgba(0, 194, 255, 0.25);
}

.cnt-pfp-wrap .cnt-shape-preview {
    width: 28px;
    height: 28px;
    border: 2px solid var(--cnt-pfp-emerald-bright);
    background: rgba(0, 194, 255, 0.15);
}

.cnt-pfp-wrap .cnt-shape-preview-scallop {
    border-radius: 50%;
    background: radial-gradient(circle, #7ec6f8 0%, #3b82f6 100%);
    border: 2px dashed #00c2ff;
}
.cnt-pfp-wrap .cnt-shape-preview-circle { border-radius: 50%; }
.cnt-pfp-wrap .cnt-shape-preview-squircle { border-radius: 8px; }
.cnt-pfp-wrap .cnt-shape-preview-hexagon { clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%); border-radius: 0; }
.cnt-pfp-wrap .cnt-shape-preview-shield { clip-path: polygon(0% 0%, 100% 0%, 100% 70%, 50% 100%, 0% 70%); border-radius: 0; }
.cnt-pfp-wrap .cnt-shape-preview-star { clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); border-radius: 0; }
.cnt-pfp-wrap .cnt-shape-preview-heart { clip-path: polygon(50% 85%, 15% 50%, 15% 25%, 35% 15%, 50% 30%, 65% 15%, 85% 25%, 85% 50%); border-radius: 0; }
.cnt-pfp-wrap .cnt-shape-preview-blob { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
.cnt-pfp-wrap .cnt-shape-preview-square { border-radius: 3px; }

.cnt-pfp-wrap .cnt-shape-btn span {
    font-size: 0.72rem;
    font-weight: 700;
}

/* Switch & Toggle Item */
.cnt-pfp-wrap .cnt-toggle-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.55rem 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--cnt-pfp-border-subtle);
    border-radius: 0.65rem;
}

.cnt-pfp-wrap .cnt-toggle-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.cnt-pfp-wrap .cnt-toggle-text strong {
    font-size: 0.78rem;
    color: var(--cnt-pfp-text-primary);
}

.cnt-pfp-wrap .cnt-toggle-text span {
    font-size: 0.68rem;
    color: var(--cnt-pfp-text-muted);
}

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

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

.cnt-pfp-wrap .cnt-switch-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.15);
    transition: 0.25s ease;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cnt-pfp-wrap .cnt-switch-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: #ffffff;
    transition: 0.25s ease;
    border-radius: 50%;
}

.cnt-pfp-wrap .cnt-switch input:checked + .cnt-switch-slider {
    background-color: var(--cnt-pfp-emerald-bright);
    box-shadow: 0 0 10px rgba(0, 194, 255, 0.4);
}

.cnt-pfp-wrap .cnt-switch input:checked + .cnt-switch-slider:before {
    transform: translateX(18px);
    background-color: #0f172a;
}

/* Relleno del Troquel */
.cnt-pfp-wrap .cnt-troquel-fill-block {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 0.25rem;
}

.cnt-pfp-wrap .cnt-troquel-fill-types {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.35rem;
    background: rgba(10, 15, 28, 0.75);
    border: 1px solid var(--cnt-pfp-border-subtle);
    border-radius: 0.85rem;
    padding: 0.3rem;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.35);
}

.cnt-pfp-wrap .cnt-troquel-fill-btn {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 0.65rem;
    padding: 0.55rem 0.2rem 0.5rem;
    min-height: 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.32rem;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--cnt-pfp-text-secondary);
    user-select: none;
    position: relative;
}

.cnt-pfp-wrap .cnt-fill-btn-icon {
    font-size: 1.05rem;
    color: var(--cnt-pfp-text-secondary);
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.cnt-pfp-wrap .cnt-fill-btn-label {
    font-size: 0.71rem;
    font-weight: 600;
    line-height: 1.1;
    color: var(--cnt-pfp-text-secondary);
    white-space: nowrap;
    transition: all 0.22s ease;
}

.cnt-pfp-wrap .cnt-troquel-fill-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    transform: translateY(-1px);
}

.cnt-pfp-wrap .cnt-troquel-fill-btn:hover .cnt-fill-btn-icon {
    color: var(--cnt-pfp-emerald-bright);
    transform: scale(1.12);
}

.cnt-pfp-wrap .cnt-troquel-fill-btn:hover .cnt-fill-btn-label {
    color: #ffffff;
}

.cnt-pfp-wrap .cnt-troquel-fill-btn.active {
    background: linear-gradient(135deg, rgba(0, 194, 255, 0.22) 0%, rgba(99, 102, 241, 0.26) 100%);
    border: 1px solid var(--cnt-pfp-emerald-bright);
    box-shadow: 0 4px 14px rgba(0, 194, 255, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: none;
}

.cnt-pfp-wrap .cnt-troquel-fill-btn.active .cnt-fill-btn-icon {
    color: var(--cnt-pfp-emerald-bright);
    filter: drop-shadow(0 0 6px rgba(0, 194, 255, 0.7));
    transform: scale(1.08);
}

.cnt-pfp-wrap .cnt-troquel-fill-btn.active .cnt-fill-btn-label {
    color: #ffffff;
    font-weight: 800;
}

/* Controles de Sliders */
.cnt-pfp-wrap .cnt-slider-control {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.cnt-pfp-wrap .cnt-slider-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--cnt-pfp-text-secondary);
}

.cnt-pfp-wrap .cnt-slider-val {
    color: var(--cnt-pfp-emerald-bright);
    font-weight: 700;
    font-family: monospace;
    font-size: 0.8rem;
}

.cnt-pfp-wrap .cnt-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    outline: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.cnt-pfp-wrap .cnt-range:hover {
    background: rgba(255, 255, 255, 0.18);
}

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

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

/* Swatches de Color */
.cnt-pfp-wrap .cnt-color-picker-row {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.cnt-pfp-wrap .cnt-color-picker-row label {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--cnt-pfp-text-secondary);
}

.cnt-pfp-wrap .cnt-color-swatches {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.cnt-pfp-wrap .cnt-color-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    transition: all 0.15s ease;
    padding: 0;
}

.cnt-pfp-wrap .cnt-color-dot:hover {
    transform: scale(1.2);
}

.cnt-pfp-wrap .cnt-color-dot.active {
    border-color: #ffffff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 14px var(--cnt-pfp-emerald-bright);
    transform: scale(1.15);
}

.cnt-pfp-wrap .cnt-custom-color-input-wrap {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    color: var(--cnt-pfp-text-secondary);
    font-size: 0.65rem;
    background: rgba(255, 255, 255, 0.05);
}

.cnt-pfp-wrap .cnt-custom-color-input-wrap input[type="color"] {
    position: absolute;
    inset: -5px;
    opacity: 0;
    width: 40px;
    height: 40px;
    cursor: pointer;
}

/* Cuadrícula de Escenas Ilustradas & Texturas */
.cnt-pfp-wrap .cnt-scene-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.45rem;
}

.cnt-pfp-wrap .cnt-scene-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid var(--cnt-pfp-border-subtle);
    border-radius: 0.65rem;
    padding: 0.45rem 0.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--cnt-pfp-text-secondary);
}

.cnt-pfp-wrap .cnt-scene-card:hover {
    background: rgba(0, 194, 255, 0.1);
    border-color: rgba(0, 194, 255, 0.4);
    color: var(--cnt-pfp-text-primary);
    transform: translateY(-2px);
}

.cnt-pfp-wrap .cnt-scene-card.active {
    background: rgba(0, 194, 255, 0.18);
    border-color: var(--cnt-pfp-emerald-bright);
    color: var(--cnt-pfp-emerald-bright);
    box-shadow: 0 0 12px rgba(0, 194, 255, 0.28);
}

.cnt-pfp-wrap .cnt-scene-preview {
    width: 100%;
    height: 32px;
    border-radius: 0.4rem;
    box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.4);
}

.cnt-pfp-wrap .cnt-scene-preview-retrowave { background: linear-gradient(180deg, #12042b 0%, #ec4899 50%, #05020a 51%, #05020a 100%); }
.cnt-pfp-wrap .cnt-scene-preview-fluid { background: linear-gradient(135deg, #86efac 0%, #a855f7 50%, #06b6d4 100%); }
.cnt-pfp-wrap .cnt-scene-preview-sky { background: linear-gradient(180deg, #38bdf8 0%, #bae6fd 60%, #ffffff 100%); }
.cnt-pfp-wrap .cnt-scene-preview-pop-memphis { background: #e9d5ff; border: 1.5px solid #facc15; }
.cnt-pfp-wrap .cnt-scene-preview-office { background: radial-gradient(circle at 70% 30%, #fef3c7 15%, #cbd5e1 55%, #64748b 100%); }
.cnt-pfp-wrap .cnt-scene-preview-mountains { background: linear-gradient(180deg, #1e1035 0%, #c026d3 50%, #f97316 80%, #0a0514 81%); }
.cnt-pfp-wrap .cnt-scene-preview-cyber-neon { background: radial-gradient(circle at 30% 70%, #06b6d4 0%, #0f172a 60%, #ec4899 100%); }
.cnt-pfp-wrap .cnt-scene-preview-studio { background: radial-gradient(circle at 50% 30%, #475569 0%, #0f172a 75%); }

.cnt-pfp-wrap .cnt-scene-title {
    font-size: 0.65rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Subida de Fondo Personalizado */
.cnt-pfp-wrap .cnt-troquel-custom-box {
    background: rgba(0, 0, 0, 0.25);
    border: 1.5px dashed var(--cnt-pfp-border-subtle);
    border-radius: 0.75rem;
    padding: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cnt-pfp-wrap .cnt-troquel-custom-box:hover {
    border-color: var(--cnt-pfp-emerald-bright);
    background: rgba(0, 194, 255, 0.05);
}

.cnt-pfp-wrap .cnt-custom-bg-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    color: var(--cnt-pfp-text-secondary);
    font-size: 0.74rem;
    font-weight: 600;
    text-align: center;
}

.cnt-pfp-wrap .cnt-custom-bg-prompt i {
    font-size: 1.35rem;
    color: var(--cnt-pfp-emerald-bright);
}

.cnt-pfp-wrap .cnt-custom-bg-preview-card {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.cnt-pfp-wrap .cnt-custom-bg-preview-card img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 0.5rem;
    border: 1px solid var(--cnt-pfp-emerald-bright);
}

.cnt-pfp-wrap .cnt-custom-bg-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.cnt-pfp-wrap .cnt-custom-bg-info span {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--cnt-pfp-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cnt-pfp-wrap .cnt-btn-remove-custom-bg {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #ef4444;
    border-radius: 0.4rem;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    cursor: pointer;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.2s ease;
}

.cnt-pfp-wrap .cnt-btn-remove-custom-bg:hover {
    background: #ef4444;
    color: #fff;
}

/* Gradient Chips */
.cnt-pfp-wrap .cnt-gradient-chips-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.35rem;
}

.cnt-pfp-wrap .cnt-grad-chip {
    height: 22px;
    border-radius: 0.4rem;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
}

.cnt-pfp-wrap .cnt-grad-chip:hover {
    transform: scale(1.1);
}

.cnt-pfp-wrap .cnt-grad-chip.active {
    border-color: #ffffff;
    box-shadow: 0 0 10px rgba(0, 194, 255, 0.8);
    transform: scale(1.08);
}

/* Insignias de Estado / Badges */
.cnt-pfp-wrap .cnt-badge-options-row {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 0.5rem;
    border-top: 1px solid var(--cnt-pfp-border-subtle);
    padding-top: 0.65rem;
}

.cnt-pfp-wrap .cnt-badge-options-row label {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--cnt-pfp-text-secondary);
}

.cnt-pfp-wrap .cnt-badges-grid {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.cnt-pfp-wrap .cnt-badge-opt-btn {
    width: 32px;
    height: 32px;
    border-radius: 0.5rem;
    border: 1px solid var(--cnt-pfp-border-subtle);
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--cnt-pfp-text-secondary);
    transition: all 0.2s ease;
}

.cnt-pfp-wrap .cnt-badge-opt-btn:hover {
    background: rgba(0, 194, 255, 0.12);
    border-color: rgba(0, 194, 255, 0.4);
}

.cnt-pfp-wrap .cnt-badge-opt-btn.active {
    background: rgba(0, 194, 255, 0.2);
    border-color: var(--cnt-pfp-emerald-bright);
    box-shadow: 0 0 10px rgba(0, 194, 255, 0.3);
}

/* ─── 4. Opciones de Fondo Exterior ─── */
.cnt-pfp-wrap .cnt-bg-types-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
}

.cnt-pfp-wrap .cnt-selector-pill {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--cnt-pfp-border-subtle);
    border-radius: 0.65rem;
    padding: 0.5rem 0.3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.cnt-pfp-wrap .cnt-selector-pill strong {
    font-size: 0.75rem;
    color: var(--cnt-pfp-text-primary);
}

.cnt-pfp-wrap .cnt-selector-pill span {
    font-size: 0.65rem;
    color: var(--cnt-pfp-text-muted);
}

.cnt-pfp-wrap .cnt-selector-pill:hover {
    background: rgba(0, 194, 255, 0.08);
    border-color: rgba(0, 194, 255, 0.3);
}

.cnt-pfp-wrap .cnt-selector-pill.active {
    background: rgba(0, 194, 255, 0.16);
    border-color: var(--cnt-pfp-emerald-bright);
    box-shadow: 0 0 12px rgba(0, 194, 255, 0.25);
}

.cnt-pfp-wrap .cnt-selector-pill.active strong {
    color: var(--cnt-pfp-emerald-bright);
}

.cnt-pfp-wrap .cnt-bg-option-box {
    margin-top: 0.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.cnt-pfp-wrap .cnt-bg-gradients-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.4rem;
}

.cnt-pfp-wrap .cnt-bg-grad-card {
    height: 48px;
    border-radius: 0.55rem;
    border: 1.5px solid transparent;
    cursor: pointer;
    display: flex;
    align-items: flex-end;
    padding: 0.25rem 0.35rem;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.cnt-pfp-wrap .cnt-bg-grad-card span {
    font-size: 0.6rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.cnt-pfp-wrap .cnt-bg-grad-card:hover {
    transform: translateY(-2px);
}

.cnt-pfp-wrap .cnt-bg-grad-card.active {
    border-color: #ffffff;
    box-shadow: 0 0 14px rgba(0, 194, 255, 0.8);
    transform: translateY(-2px);
}

.cnt-pfp-wrap .cnt-box-hint {
    font-size: 0.72rem;
    color: var(--cnt-pfp-text-secondary);
    line-height: 1.4;
    margin: 0;
}

.cnt-pfp-wrap .cnt-box-hint strong {
    color: var(--cnt-pfp-emerald-bright);
}

/* ─── 5. Encuadre, Zoom y Posición ─── */
.cnt-pfp-wrap .cnt-inputs-2col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
}

.cnt-pfp-wrap .cnt-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.cnt-pfp-wrap .cnt-input-group label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--cnt-pfp-text-secondary);
}

.cnt-pfp-wrap .cnt-quick-actions-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.35rem;
    margin-top: 0.25rem;
}

.cnt-pfp-wrap .cnt-btn-subaction {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--cnt-pfp-border-subtle);
    border-radius: 0.55rem;
    padding: 0.45rem 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--cnt-pfp-text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cnt-pfp-wrap .cnt-btn-subaction:hover {
    background: rgba(0, 194, 255, 0.15);
    border-color: rgba(0, 194, 255, 0.4);
    color: var(--cnt-pfp-emerald-bright);
}

/* ─── 6. Filtros Fotográficos ─── */
.cnt-pfp-wrap .cnt-photo-filters-grid {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.cnt-pfp-wrap .cnt-photo-filter-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--cnt-pfp-border-subtle);
    border-radius: 9999px;
    padding: 0.25rem 0.65rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--cnt-pfp-text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.cnt-pfp-wrap .cnt-photo-filter-chip:hover {
    background: rgba(0, 194, 255, 0.12);
    color: var(--cnt-pfp-text-primary);
}

.cnt-pfp-wrap .cnt-photo-filter-chip.active {
    background: rgba(0, 194, 255, 0.2);
    border-color: var(--cnt-pfp-emerald-bright);
    color: var(--cnt-pfp-emerald-bright);
}

/* Borde de Silueta / Sticker (Borde Blanco) */
.cnt-pfp-wrap .cnt-outline-control-box {
    background: rgba(0, 194, 255, 0.05);
    border: 1px solid rgba(0, 194, 255, 0.2);
    border-radius: 0.75rem;
    padding: 0.75rem 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.cnt-pfp-wrap .cnt-outline-colors-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.15rem;
}

.cnt-pfp-wrap .cnt-outline-label {
    font-size: 0.73rem;
    font-weight: 700;
    color: var(--cnt-pfp-text-secondary);
}

.cnt-pfp-wrap #cnt-pfp-outline-colors {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* ─── 7. Exportación y Calidad ─── */
.cnt-pfp-wrap .cnt-crop-mode-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
}

.cnt-pfp-wrap .cnt-res-selector-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
}

.cnt-pfp-wrap .cnt-res-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--cnt-pfp-border-subtle);
    border-radius: 0.6rem;
    padding: 0.45rem 0.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cnt-pfp-wrap .cnt-res-btn strong {
    font-size: 0.72rem;
    color: var(--cnt-pfp-text-primary);
}

.cnt-pfp-wrap .cnt-res-btn span {
    font-size: 0.62rem;
    color: var(--cnt-pfp-text-muted);
}

.cnt-pfp-wrap .cnt-res-btn:hover {
    background: rgba(0, 194, 255, 0.1);
    border-color: rgba(0, 194, 255, 0.3);
}

.cnt-pfp-wrap .cnt-res-btn.active {
    background: rgba(0, 194, 255, 0.18);
    border-color: var(--cnt-pfp-emerald-bright);
}

.cnt-pfp-wrap .cnt-res-btn.active strong {
    color: var(--cnt-pfp-emerald-bright);
}

.cnt-pfp-wrap .cnt-format-selector-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
}

/* ═══════════════════════════════════════════════════════════════════
   ÁREA DE TRABAJO Y VISOR INTERACTIVO (WORKSPACE)
   ═══════════════════════════════════════════════════════════════════ */
.cnt-pfp-wrap .cnt-main-workspace {
    background: var(--cnt-pfp-bg-surface);
    border: 1px solid var(--cnt-pfp-border-subtle);
    border-radius: 1.5rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Toolbar Superior (1 Sola Línea Estandarizada) */
.cnt-pfp-wrap .cnt-viewer-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 1.15rem;
    min-height: 48px;
    border-bottom: 1px solid var(--cnt-pfp-border-subtle);
    background: rgba(10, 16, 28, 0.95);
    flex-shrink: 0;
    gap: 0.5rem;
    flex-wrap: nowrap;
    box-sizing: border-box;
}

.cnt-pfp-wrap .cnt-toolbar-left,
.cnt-pfp-wrap .cnt-toolbar-right {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

.cnt-pfp-wrap .cnt-social-preview-selector {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    background: rgba(5, 8, 15, 0.75);
    padding: 0.2rem;
    border-radius: 0.65rem;
    border: 1px solid var(--cnt-pfp-border-subtle);
}

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

.cnt-pfp-wrap .cnt-btn-tool:hover {
    color: var(--cnt-pfp-text-primary);
}

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

.cnt-pfp-wrap .cnt-zoom-controls {
    display: flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid var(--cnt-pfp-border-subtle);
    border-radius: 0.6rem;
    padding: 0.2rem;
    gap: 0.2rem;
}

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

.cnt-pfp-wrap .cnt-zoom-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--cnt-pfp-text-primary);
}

.cnt-pfp-wrap .cnt-zoom-btn-text {
    width: auto !important;
    padding: 0 0.65rem;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.cnt-pfp-wrap .cnt-zoom-divider {
    width: 1px;
    height: 16px;
    background: var(--cnt-pfp-border-subtle);
    margin: 0 0.15rem;
}

.cnt-pfp-wrap .cnt-zoom-level {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--cnt-pfp-text-primary);
    min-width: 48px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

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

.cnt-pfp-wrap .cnt-toggle-btn:hover {
    background: rgba(0, 194, 255, 0.15);
    border-color: rgba(0, 194, 255, 0.45);
    color: var(--cnt-pfp-emerald-bright);
    box-shadow: 0 0 10px rgba(0, 194, 255, 0.2);
}

/* ─── Viewport Interactivo (Regla 9: Ajedrezado de Transparencia Unificado) ─── */
.cnt-pfp-wrap .cnt-canvas-viewport {
    position: relative;
    background:
        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%),
        #060907;
    background-size: 20px 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
    user-select: none;
    touch-action: none;
}

/* Placeholder Inicial Vacío Estandarizado */
.cnt-pfp-wrap .cnt-viewport-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.cnt-pfp-wrap .cnt-placeholder-content {
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.cnt-pfp-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);
    color: var(--cnt-pfp-emerald-bright);
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.25rem;
    box-shadow: 0 0 30px rgba(0, 194, 255, 0.15);
}

.cnt-pfp-wrap .cnt-placeholder-content h3 {
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0;
    color: var(--cnt-pfp-text-primary);
}

.cnt-pfp-wrap .cnt-placeholder-content p {
    font-size: 0.85rem;
    color: var(--cnt-pfp-text-secondary);
    line-height: 1.5;
    margin: 0;
}

.cnt-pfp-wrap .cnt-btn-placeholder-upload {
    margin-top: 0.5rem;
    background: rgba(0, 194, 255, 0.15);
    color: var(--cnt-pfp-emerald-bright) !important;
    border: 1px solid rgba(0, 194, 255, 0.4);
    border-radius: 0.75rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    transition: all 0.25s ease;
}

.cnt-pfp-wrap .cnt-btn-placeholder-upload:hover {
    background: var(--cnt-pfp-emerald-bright);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0, 194, 255, 0.4);
    border-color: var(--cnt-pfp-emerald-bright);
}

/* Overlay de Carga (Regla 5) */
.cnt-pfp-wrap .cnt-processing-overlay {
    position: absolute;
    inset: 0;
    background: rgba(7, 9, 14, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

.cnt-pfp-wrap .cnt-processing-card {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(0, 194, 255, 0.4);
    border-radius: 1.25rem;
    padding: 2rem 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 194, 255, 0.2);
    max-width: 340px;
}

.cnt-pfp-wrap .cnt-processing-spinner {
    width: 48px;
    height: 48px;
    border: 3.5px solid rgba(0, 194, 255, 0.2);
    border-top-color: var(--cnt-pfp-emerald-bright);
    border-radius: 50%;
    animation: cnt-pfp-spin 0.8s linear infinite;
    margin-bottom: 1.2rem;
}

@keyframes cnt-pfp-spin {
    to { transform: rotate(360deg); }
}

.cnt-pfp-wrap .cnt-processing-card h4 {
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0 0 0.35rem;
    color: var(--cnt-pfp-text-primary);
}

.cnt-pfp-wrap .cnt-processing-card p {
    font-size: 0.8rem;
    color: var(--cnt-pfp-text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* Escenario y Canvas Interactivo */
.cnt-pfp-wrap .cnt-pfp-stage {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: grab;
}

.cnt-pfp-wrap .cnt-pfp-stage.is-dragging {
    cursor: grabbing;
}

.cnt-pfp-wrap .cnt-pfp-zoom-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-origin: center center;
    transition: transform 0.05s ease-out;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.7);
    border-radius: 12px;
}

.cnt-pfp-wrap #cnt-pfp-main-canvas {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

/* Guías de Centrado Superpuestas */
.cnt-pfp-wrap .cnt-pfp-guides-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: 8px;
    transition: opacity 0.2s ease;
}

.cnt-pfp-wrap .cnt-guide-line {
    position: absolute;
    background: rgba(0, 194, 255, 0.4);
}

.cnt-pfp-wrap .cnt-guide-h-center {
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    transform: translateY(-50%);
}

.cnt-pfp-wrap .cnt-guide-v-center {
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    transform: translateX(-50%);
}

.cnt-pfp-wrap .cnt-guide-oval {
    position: absolute;
    top: 38%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48%;
    height: 60%;
    border: 1px dashed rgba(0, 194, 255, 0.35);
    border-radius: 50%;
}

/* ═══════════════════════════════════════════════════════════════════
   SIMULADOR DE REDES SOCIALES (INTERFAZ VISUAL EN EL VISOR)
   ═══════════════════════════════════════════════════════════════════ */
.cnt-pfp-wrap .cnt-social-simulator-overlay {
    position: absolute;
    inset: 0;
    background: rgba(7, 9, 14, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 40;
    padding: 1.5rem;
    box-sizing: border-box;
}

.cnt-pfp-wrap .cnt-simulator-card {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1.25rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
    width: 100%;
    max-width: 480px;
    overflow: hidden;
    color: #fff;
    animation: cnt-pfp-scale-up 0.25s ease-out;
}

@keyframes cnt-pfp-scale-up {
    from { opacity: 0; transform: scale(0.94); }
    to { opacity: 1; transform: scale(1); }
}

/* Mockup WhatsApp */
.cnt-pfp-wrap .cnt-mock-wa-header {
    background: #1f2c34;
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.cnt-pfp-wrap .cnt-mock-avatar-sm {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.cnt-pfp-wrap .cnt-mock-avatar-sm img,
.cnt-pfp-wrap .cnt-mock-avatar-lg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cnt-pfp-wrap .cnt-mock-wa-body {
    background: #0b141a;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}
.cnt-pfp-wrap .cnt-mock-avatar-lg {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}
.cnt-pfp-wrap .cnt-mock-chat-bubble {
    background: #005c4b;
    border-radius: 0.6rem 0.6rem 0 0.6rem;
    padding: 0.65rem 0.95rem;
    font-size: 0.85rem;
    max-width: 80%;
    align-self: flex-end;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Mockup Instagram */
.cnt-pfp-wrap .cnt-mock-ig-box {
    background: #000;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}
.cnt-pfp-wrap .cnt-mock-ig-profile {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}
.cnt-pfp-wrap .cnt-mock-ig-ring {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, #f59e0b, #ec4899, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
}
.cnt-pfp-wrap .cnt-mock-ig-ring-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #000;
    padding: 2.5px;
    overflow: hidden;
}
.cnt-pfp-wrap .cnt-mock-ig-ring-inner img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

/* Mockup LinkedIn */
.cnt-pfp-wrap .cnt-mock-li-box {
    background: #1b1f23;
    overflow: hidden;
}
.cnt-pfp-wrap .cnt-mock-li-banner {
    height: 75px;
    background: linear-gradient(135deg, #0a66c2 0%, #004182 100%);
}
.cnt-pfp-wrap .cnt-mock-li-content {
    padding: 0 1.25rem 1.25rem;
    position: relative;
}
.cnt-pfp-wrap .cnt-mock-li-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 4px solid #1b1f23;
    margin-top: -45px;
    overflow: hidden;
    background: #000;
}
.cnt-pfp-wrap .cnt-mock-li-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Mockup Discord */
.cnt-pfp-wrap .cnt-mock-dc-box {
    background: #313338;
    padding: 1.25rem;
}
.cnt-pfp-wrap .cnt-mock-dc-msg {
    display: flex;
    gap: 0.95rem;
}
.cnt-pfp-wrap .cnt-mock-dc-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}
.cnt-pfp-wrap .cnt-mock-dc-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}
.cnt-pfp-wrap .cnt-mock-dc-status {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #23a55a;
    border: 3px solid #313338;
}

/* ═══════════════════════════════════════════════════════════════════
   BARRA INFERIOR DE ACCIONES (REGLAS 6, 9 Y 10)
   ═══════════════════════════════════════════════════════════════════ */
.cnt-pfp-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-pfp-border-subtle);
    background: rgba(10, 15, 28, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-shrink: 0;
    gap: 0.65rem;
    box-sizing: border-box;
    z-index: 10;
}

.cnt-pfp-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-pfp-wrap .cnt-info-pill {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid var(--cnt-pfp-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;
    color: #cbd5e1;
}

.cnt-pfp-wrap .cnt-info-pill i {
    color: var(--cnt-pfp-emerald-bright, #00c2ff);
    font-size: 0.75rem;
}

.cnt-pfp-wrap .cnt-info-label {
    color: var(--cnt-pfp-text-muted);
    font-size: 0.72rem;
    font-weight: 600;
}

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

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

.cnt-pfp-wrap .cnt-info-pill-accent strong,
.cnt-pfp-wrap .cnt-info-pill-accent span,
.cnt-pfp-wrap .cnt-info-pill-accent i {
    color: #00c2ff;
}

.cnt-pfp-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 Principal de Descarga Oficial (Regla 9) */
.cnt-pfp-wrap .cnt-btn-download-primary {
    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.6rem;
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    cursor: pointer;
    box-shadow: 0 4px 18px -2px rgba(2, 132, 199, 0.45);
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.cnt-pfp-wrap .cnt-btn-download-primary: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);
}

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

/* ─── Responsivo Móvil / Tablet ─── */
@media (max-width: 1023px) {
    .cnt-pfp-wrap .cnt-pfp-layout {
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
        max-width: 100%;
    }
    .cnt-pfp-wrap .cnt-sidebar-controls,
    .cnt-pfp-wrap .cnt-main-workspace {
        min-width: 0;
        max-width: 100%;
    }
}

@media (max-width: 900px) {
    .cnt-pfp-wrap .cnt-viewer-toolbar {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.45rem;
        padding: 0.55rem 0.75rem;
        height: auto;
    }
    .cnt-pfp-wrap .cnt-toolbar-left,
    .cnt-pfp-wrap .cnt-toolbar-right,
    .cnt-pfp-wrap .cnt-social-preview-selector {
        flex-wrap: wrap;
        justify-content: center;
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    .cnt-pfp-wrap .cnt-presets-scroll-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .cnt-pfp-wrap .cnt-bottom-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        padding: 0.75rem 0.85rem;
    }
    .cnt-pfp-wrap .cnt-bottom-info .cnt-info-pill {
        flex: 1 1 100%;
        white-space: normal;
        text-align: center;
        justify-content: center;
    }
    .cnt-pfp-wrap .cnt-bottom-actions {
        width: 100%;
        flex-direction: column;
    }
    .cnt-pfp-wrap .cnt-format-dropdown-wrap {
        width: 100%;
        justify-content: space-between;
    }
    .cnt-pfp-wrap .cnt-btn-download-primary {
        width: 100%;
        justify-content: center;
    }
}
