        :root {
            --primary: #ff4d29;
            --primary-hover: #ff2a5f;
            --dark: #0f0f11;
            --sidebar-bg: rgba(20, 20, 23, 0.85);
            --panel-bg: rgba(30, 30, 35, 0.9);
            --text-main: #ffffff;
            --text-muted: #a1a1aa;
        }

        body {
            margin: 0;
            display: flex;
            height: 100vh;
            overflow: hidden;
            font-family: 'Poppins', sans-serif;
            background: var(--dark) radial-gradient(circle at 50% 0%, rgba(255, 77, 41, 0.1), transparent 50%);
            color: var(--text-main);
        }

        .sidebar {
            width: 200px;
            background: var(--sidebar-bg);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-right: 1px solid rgba(255, 255, 255, 0.05);
            display: flex;
            flex-direction: column;
            padding: 20px 0;
            flex-shrink: 0;
            box-shadow: 5px 0 20px rgba(0,0,0,0.5);
            z-index: 10;
        }

        .logo {
            text-align: center;
            font-size: 1.5rem;
            font-weight: 600;
            margin-bottom: 30px;
            color: var(--text-main);
        }

        .logo span {
            background: linear-gradient(90deg, var(--primary), var(--primary-hover));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .config-panel {
            width: 350px;
            background: var(--panel-bg);
            backdrop-filter: blur(10px);
            border-right: 1px solid rgba(255, 255, 255, 0.05);
            display: flex;
            flex-direction: column;
            flex-shrink: 0;
            box-shadow: 5px 0 15px rgba(0,0,0,0.3);
            z-index: 5;
        }

        .config-scroll {
            padding: 25px;
            overflow-y: auto;
            height: 100%;
            box-sizing: border-box;
        }

        .config-scroll::-webkit-scrollbar {
            width: 6px;
        }
        .config-scroll::-webkit-scrollbar-thumb {
            background: rgba(255,255,255,0.1);
            border-radius: 10px;
        }

        .canvas-area {
            flex-grow: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 40px;
            overflow: auto;
            position: relative;
        }

        .canvas-area::before {
            content: '';
            position: absolute;
            width: 500px;
            height: 700px;
            background: radial-gradient(circle, rgba(255,77,41,0.15) 0%, rgba(0,0,0,0) 70%);
            z-index: -1;
            filter: blur(50px);
        }

        canvas {
            background: #fff;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
            border-radius: 4px;
            cursor: default;
        }

        .control-group {
            margin-bottom: 25px;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        h3 {
            color: var(--text-main);
            margin-top: 0;
            margin-bottom: 20px;
            font-size: 1.2rem;
            border-bottom: 1px solid rgba(255,255,255,0.1);
            padding-bottom: 10px;
        }

        .control-group label {
            font-size: 0.8rem;
            font-weight: 600;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        input[type="text"],
        select,
        input[type="file"] {
            padding: 12px 14px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: var(--text-main);
            border-radius: 8px;
            width: 100%;
            box-sizing: border-box;
            font-family: inherit;
            transition: all 0.3s;
        }

        input[type="text"]:focus,
        select:focus {
            border-color: var(--primary);
            background: rgba(255, 255, 255, 0.08);
            outline: none;
            box-shadow: 0 0 0 4px rgba(255, 77, 41, 0.1);
        }

        select option {
            background: var(--dark);
            color: var(--text-main);
        }

        input[type="color"] {
            background: none;
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: 8px;
            padding: 2px;
            height: 40px;
            cursor: pointer;
        }

        input[type="range"] {
            width: 100%;
            cursor: pointer;
            accent-color: var(--primary);
        }

        .btn-add {
            background: rgba(255, 255, 255, 0.05);
            color: var(--text-main);
            border: 1px dashed rgba(255, 255, 255, 0.2);
            padding: 12px;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            margin-bottom: 20px;
            width: 100%;
            transition: all 0.3s;
        }

        .btn-add:hover {
            background: rgba(255, 255, 255, 0.1);
            border-color: var(--primary);
            color: var(--primary);
        }

        .btn-save {
            background: linear-gradient(135deg, #10b981 0%, #059669 100%);
            color: white;
            border: none;
            padding: 16px;
            border-radius: 8px;
            font-weight: 700;
            cursor: pointer;
            width: 100%;
            margin-top: 20px;
            box-shadow: 0 10px 20px rgba(16, 185, 129, 0.2);
            transition: all 0.3s;
        }

        .btn-save:hover {
            transform: translateY(-2px);
            box-shadow: 0 15px 25px rgba(16, 185, 129, 0.3);
        }

        hr {
            border: 0;
            border-top: 1px solid rgba(255,255,255,0.1);
            margin: 30px 0;
        }

        .dual-control {
            display: flex;
            gap: 15px;
            align-items: center;
        }

        .custom-file-upload {
            display: flex;
            flex-direction: column;
            gap: 10px;
            margin-top: 5px;
        }

        .btn-archivo {
            background-color: rgba(255,255,255,0.05);
            color: var(--text-main);
            border: 1px dashed rgba(255,255,255,0.2);
            padding: 12px 20px;
            border-radius: 8px;
            cursor: pointer;
            text-align: center;
            font-weight: 600;
            transition: all 0.3s ease;
            display: inline-block;
            width: 100%;
            box-sizing: border-box;
        }

        .btn-archivo:hover {
            background-color: rgba(255,255,255,0.1);
            border-color: var(--primary);
            color: var(--primary);
        }

        .file-name {
            font-size: 0.8rem;
            color: var(--text-muted);
            margin: 0;
            font-style: italic;
        }

        /* =============================================
           RESPONSIVE — Tablet & Mobile
        ============================================= */
        @media (max-width: 1024px) {

            /* Banner de recomendación de escritorio */
            .desktop-notice {
                display: flex !important;
                position: fixed;
                bottom: 0;
                left: 0;
                right: 0;
                background: rgba(255, 77, 41, 0.95);
                backdrop-filter: blur(10px);
                color: #fff;
                padding: 12px 20px;
                font-size: 0.82rem;
                font-weight: 600;
                z-index: 1000;
                align-items: center;
                gap: 10px;
                border-top: 1px solid rgba(255,255,255,0.2);
            }
            .desktop-notice span { flex-grow: 1; }
            .desktop-notice button {
                background: rgba(255,255,255,0.25);
                border: none;
                color: #fff;
                padding: 6px 14px;
                border-radius: 20px;
                font-weight: 700;
                cursor: pointer;
                font-size: 0.8rem;
                white-space: nowrap;
            }

            /* Layout general — columna vertical */
            body {
                flex-direction: column;
                height: 100dvh;
                overflow: hidden;
            }

            /* Sidebar → barra horizontal compacta */
            .sidebar {
                width: 100%;
                height: auto;
                flex-direction: row;
                align-items: center;
                justify-content: space-between;
                padding: 12px 16px;
                box-sizing: border-box;
                border-right: none;
                border-bottom: 1px solid rgba(255, 255, 255, 0.07);
                order: 1;
                flex-shrink: 0;
            }
            .sidebar .logo {
                margin-bottom: 0;
                font-size: 1.1rem;
            }
            .sidebar nav {
                display: flex;
                padding: 0 !important;
                gap: 12px;
                align-items: center;
            }
            .sidebar nav div {
                margin-bottom: 0 !important;
                font-size: 0.82rem;
            }
            /* Ocultar etiqueta "MENÚ" en móvil */
            .sidebar nav div:first-child { display: none; }

            /* Sistema de tabs para panel/canvas */
            .mobile-tabs {
                display: flex !important;
                order: 2;
                flex-shrink: 0;
                background: rgba(20,20,23,0.95);
                border-bottom: 1px solid rgba(255,255,255,0.07);
            }
            .mobile-tab {
                flex: 1;
                padding: 10px;
                text-align: center;
                font-size: 0.8rem;
                font-weight: 600;
                color: var(--text-muted);
                cursor: pointer;
                border-bottom: 2px solid transparent;
                transition: all 0.25s;
            }
            .mobile-tab.active {
                color: var(--primary);
                border-bottom-color: var(--primary);
            }

            /* Canvas area */
            .canvas-area {
                order: 3;
                padding: 15px;
                box-sizing: border-box;
                flex-shrink: 0;
                height: calc(100dvh - 44px - 41px - 42px); /* total - sidebar - tabs - notice */
                display: none; /* oculto por defecto, tabs lo muestran */
                flex-grow: 0;
            }
            .canvas-area.tab-active { display: flex; }

            /* Config panel */
            .config-panel {
                width: 100%;
                height: calc(100dvh - 44px - 41px - 42px);
                order: 3;
                border-right: none;
                border-top: none;
                flex-grow: 0;
                display: none; /* oculto por defecto */
            }
            .config-panel.tab-active { display: flex; }
        }

        /* Ocultar elementos móviles en escritorio */
        .desktop-notice,
        .mobile-tabs { display: none; }